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"
3635 *darwin
*) ld64_flag
=yes;; # Darwin can only use a ld64-compatible linker.
3639 # With pre-defined ld
3641 # Check whether --with-ld was given.
3642 if test "${with_ld+set}" = set; then :
3643 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3646 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3647 if test ! -x "$DEFAULT_LINKER"; then
3648 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3649 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3651 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3655 cat >>confdefs.h
<<_ACEOF
3656 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3662 $as_echo_n "checking whether a default linker was specified... " >&6; }
3663 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3664 if test x
"$gnu_ld_flag" = x
"no"; then
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3666 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3669 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 $as_echo "no" >&6; }
3676 # With demangler in GNU ld
3678 # Check whether --with-demangler-in-ld was given.
3679 if test "${with_demangler_in_ld+set}" = set; then :
3680 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3686 # ----------------------
3687 # Find default assembler
3688 # ----------------------
3692 # Check whether --with-gnu-as was given.
3693 if test "${with_gnu_as+set}" = set; then :
3694 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3701 # Check whether --with-as was given.
3702 if test "${with_as+set}" = set; then :
3703 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3706 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3707 if test ! -x "$DEFAULT_ASSEMBLER"; then
3708 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3709 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3713 cat >>confdefs.h
<<_ACEOF
3714 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3720 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3721 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3722 if test x
"$gas_flag" = x
"no"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3724 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3727 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3738 # If a non-executable a.out is present (e.g. created by GNU as above even if
3739 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3740 # file, even when creating an executable, so an execution test fails.
3741 # Remove possible default executable files to avoid this.
3743 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3744 # Autoconf includes it.
3745 rm -f a.out a.exe b.out
3747 # Find the native compiler
3749 ac_cpp
='$CPP $CPPFLAGS'
3750 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3755 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if test "${ac_cv_prog_CC+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3761 if test -n "$CC"; then
3762 ac_cv_prog_CC
="$CC" # Let the user override the test.
3764 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3768 test -z "$as_dir" && as_dir
=.
3769 for ac_exec_ext
in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3782 if test -n "$CC"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3784 $as_echo "$CC" >&6; }
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3792 if test -z "$ac_cv_prog_CC"; then
3794 # Extract the first word of "gcc", so it can be a program name with args.
3795 set dummy gcc
; ac_word
=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3799 $as_echo_n "(cached) " >&6
3801 if test -n "$ac_ct_CC"; then
3802 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3808 test -z "$as_dir" && as_dir
=.
3809 for ac_exec_ext
in '' $ac_executable_extensions; do
3810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3811 ac_cv_prog_ac_ct_CC
="gcc"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3821 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3822 if test -n "$ac_ct_CC"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3824 $as_echo "$ac_ct_CC" >&6; }
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3830 if test "x$ac_ct_CC" = x
; then
3833 case $cross_compiling:$ac_tool_warned in
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3837 ac_tool_warned
=yes ;;
3845 if test -z "$CC"; then
3846 if test -n "$ac_tool_prefix"; then
3847 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3848 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if test "${ac_cv_prog_CC+set}" = set; then :
3852 $as_echo_n "(cached) " >&6
3854 if test -n "$CC"; then
3855 ac_cv_prog_CC
="$CC" # Let the user override the test.
3857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3861 test -z "$as_dir" && as_dir
=.
3862 for ac_exec_ext
in '' $ac_executable_extensions; do
3863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3864 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3875 if test -n "$CC"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3877 $as_echo "$CC" >&6; }
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3886 if test -z "$CC"; then
3887 # Extract the first word of "cc", so it can be a program name with args.
3888 set dummy cc
; ac_word
=$2
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890 $as_echo_n "checking for $ac_word... " >&6; }
3891 if test "${ac_cv_prog_CC+set}" = set; then :
3892 $as_echo_n "(cached) " >&6
3894 if test -n "$CC"; then
3895 ac_cv_prog_CC
="$CC" # Let the user override the test.
3898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3902 test -z "$as_dir" && as_dir
=.
3903 for ac_exec_ext
in '' $ac_executable_extensions; do
3904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3905 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3906 ac_prog_rejected
=yes
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3917 if test $ac_prog_rejected = yes; then
3918 # We found a bogon in the path, so make sure we never use it.
3919 set dummy
$ac_cv_prog_CC
3921 if test $# != 0; then
3922 # We chose a different compiler from the bogus one.
3923 # However, it has the same basename, so the bogon will be chosen
3924 # first if we set CC to just the basename; use the full file name.
3926 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3932 if test -n "$CC"; then
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3934 $as_echo "$CC" >&6; }
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3942 if test -z "$CC"; then
3943 if test -n "$ac_tool_prefix"; then
3944 for ac_prog
in cl.exe
3946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3947 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if test "${ac_cv_prog_CC+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3953 if test -n "$CC"; then
3954 ac_cv_prog_CC
="$CC" # Let the user override the test.
3956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3960 test -z "$as_dir" && as_dir
=.
3961 for ac_exec_ext
in '' $ac_executable_extensions; do
3962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3974 if test -n "$CC"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3976 $as_echo "$CC" >&6; }
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3983 test -n "$CC" && break
3986 if test -z "$CC"; then
3988 for ac_prog
in cl.exe
3990 # Extract the first word of "$ac_prog", so it can be a program name with args.
3991 set dummy
$ac_prog; ac_word
=$2
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3993 $as_echo_n "checking for $ac_word... " >&6; }
3994 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3995 $as_echo_n "(cached) " >&6
3997 if test -n "$ac_ct_CC"; then
3998 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4004 test -z "$as_dir" && as_dir
=.
4005 for ac_exec_ext
in '' $ac_executable_extensions; do
4006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007 ac_cv_prog_ac_ct_CC
="$ac_prog"
4008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4017 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4018 if test -n "$ac_ct_CC"; then
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4020 $as_echo "$ac_ct_CC" >&6; }
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 $as_echo "no" >&6; }
4027 test -n "$ac_ct_CC" && break
4030 if test "x$ac_ct_CC" = x
; then
4033 case $cross_compiling:$ac_tool_warned in
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4037 ac_tool_warned
=yes ;;
4046 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4048 as_fn_error
"no acceptable C compiler found in \$PATH
4049 See \`config.log' for more details." "$LINENO" 5; }
4051 # Provide some information about the compiler.
4052 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4055 for ac_option
in --version -v -V -qversion; do
4056 { { ac_try
="$ac_compiler $ac_option >&5"
4058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062 $as_echo "$ac_try_echo"; } >&5
4063 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4065 if test -s conftest.err; then
4067 ... rest of stderr output deleted ...
4068 10q' conftest.err >conftest.er1
4069 cat conftest.er1 >&5
4070 rm -f conftest.er1 conftest.err
4072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4073 test $ac_status = 0; }
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4087 ac_clean_files_save=$ac_clean_files
4088 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4089 # Try to create an executable without -o first, disregard a.out.
4090 # It will help us diagnose broken compilers, and finding out an intuition
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4093 $as_echo_n "checking for C compiler default output file name... " >&6; }
4094 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4096 # The possible output files:
4097 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4100 for ac_file in $ac_files
4103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4104 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4109 if { { ac_try="$ac_link_default"
4111 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4112 *) ac_try_echo
=$ac_try;;
4114 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4115 $as_echo "$ac_try_echo"; } >&5
4116 (eval "$ac_link_default") 2>&5
4118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4119 test $ac_status = 0; }; then :
4120 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4121 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4122 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4123 # so that the user can short-circuit this test for compilers unknown to
4125 for ac_file
in $ac_files ''
4127 test -f "$ac_file" ||
continue
4129 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4132 # We found the default executable, but exeext='' is most
4136 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4138 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4140 # We set ac_cv_exeext here because the later test for it is not
4141 # safe: cross compilers may not add the suffix if given an `-o'
4142 # argument, so we may need to know it at that point already.
4143 # Even if this section looks crufty: it has the advantage of
4150 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4156 $as_echo "$ac_file" >&6; }
4157 if test -z "$ac_file"; then :
4158 $as_echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.
$ac_ext >&5
4161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4163 { as_fn_set_status
77
4164 as_fn_error
"C compiler cannot create executables
4165 See \`config.log' for more details." "$LINENO" 5; }; }
4167 ac_exeext
=$ac_cv_exeext
4169 # Check that the compiler produces executables we can run. If not, either
4170 # the compiler is broken, or we cross compile.
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4172 $as_echo_n "checking whether the C compiler works... " >&6; }
4173 # If not cross compiling, check that we can run a simple program.
4174 if test "$cross_compiling" != yes; then
4175 if { ac_try
='./$ac_file'
4176 { { case "(($ac_try" in
4177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4181 $as_echo "$ac_try_echo"; } >&5
4182 (eval "$ac_try") 2>&5
4184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4185 test $ac_status = 0; }; }; then
4188 if test "$cross_compiling" = maybe; then
4191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4193 as_fn_error "cannot run C compiled programs.
4194 If you meant to cross compile
, use \
`--host'.
4195 See \`config.log
' for more details." "$LINENO" 5; }
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4200 $as_echo "yes" >&6; }
4202 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4203 ac_clean_files=$ac_clean_files_save
4204 # Check that the compiler produces executables we can run. If not, either
4205 # the compiler is broken, or we cross compile.
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4207 $as_echo_n "checking whether we are cross compiling... " >&6; }
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4209 $as_echo "$cross_compiling" >&6; }
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4212 $as_echo_n "checking for suffix of executables... " >&6; }
4213 if { { ac_try="$ac_link"
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219 $as_echo "$ac_try_echo"; } >&5
4220 (eval "$ac_link") 2>&5
4222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223 test $ac_status = 0; }; then :
4224 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4225 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4226 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4228 for ac_file
in conftest.exe conftest conftest.
*; do
4229 test -f "$ac_file" ||
continue
4231 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4232 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4240 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4241 See \`config.log' for more details." "$LINENO" 5; }
4243 rm -f conftest
$ac_cv_exeext
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4245 $as_echo "$ac_cv_exeext" >&6; }
4247 rm -f conftest.
$ac_ext
4248 EXEEXT
=$ac_cv_exeext
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4251 $as_echo_n "checking for suffix of object files... " >&6; }
4252 if test "${ac_cv_objext+set}" = set; then :
4253 $as_echo_n "(cached) " >&6
4255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4266 rm -f conftest.o conftest.obj
4267 if { { ac_try
="$ac_compile"
4269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4273 $as_echo "$ac_try_echo"; } >&5
4274 (eval "$ac_compile") 2>&5
4276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4277 test $ac_status = 0; }; then :
4278 for ac_file in conftest.o conftest.obj conftest.*; do
4279 test -f "$ac_file" || continue;
4281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4282 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4287 $as_echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4292 as_fn_error "cannot compute suffix of object files
: cannot compile
4293 See \
`config.log' for more details." "$LINENO" 5; }
4295 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4298 $as_echo "$ac_cv_objext" >&6; }
4299 OBJEXT=$ac_cv_objext
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4302 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4303 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4304 $as_echo_n "(cached) " >&6
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4320 if ac_fn_c_try_compile "$LINENO"; then :
4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4330 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4331 if test $ac_compiler_gnu = yes; then
4336 ac_test_CFLAGS=${CFLAGS+set}
4337 ac_save_CFLAGS=$CFLAGS
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4339 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4340 if test "${ac_cv_prog_cc_g+set}" = set; then :
4341 $as_echo_n "(cached) " >&6
4343 ac_save_c_werror_flag=$ac_c_werror_flag
4344 ac_c_werror_flag=yes
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4358 if ac_fn_c_try_compile "$LINENO"; then :
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4373 if ac_fn_c_try_compile "$LINENO"; then :
4376 ac_c_werror_flag=$ac_save_c_werror_flag
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4389 if ac_fn_c_try_compile "$LINENO"; then :
4392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397 ac_c_werror_flag=$ac_save_c_werror_flag
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4400 $as_echo "$ac_cv_prog_cc_g" >&6; }
4401 if test "$ac_test_CFLAGS" = set; then
4402 CFLAGS=$ac_save_CFLAGS
4403 elif test $ac_cv_prog_cc_g = yes; then
4404 if test "$GCC" = yes; then
4410 if test "$GCC" = yes; then
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4417 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4418 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4419 $as_echo_n "(cached) " >&6
4421 ac_cv_prog_cc_c89=no
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4427 #include <sys/types.h>
4428 #include <sys/stat.h>
4429 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4430 struct buf { int x; };
4431 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4432 static char *e (p, i)
4438 static char *f (char * (*g) (char **, int), char **p, ...)
4443 s = g (p, va_arg (v,int));
4448 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4449 function prototypes and stuff, but not '\xHH' hex character constants.
4450 These don't provoke an error unfortunately, instead are silently treated
4451 as 'x'. The following induces an error, until -std is added to get
4452 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4453 array size at least. It's necessary to write '\x00'==0 to get something
4454 that's true only with -std. */
4455 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4457 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4458 inside strings and character constants. */
4460 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4462 int test (int i, double x);
4463 struct s1 {int (*f) (int a);};
4464 struct s2 {int (*f) (double a);};
4465 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4471 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4476 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4477 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4479 CC="$ac_save_CC $ac_arg"
4480 if ac_fn_c_try_compile "$LINENO"; then :
4481 ac_cv_prog_cc_c89=$ac_arg
4483 rm -f core conftest.err conftest.$ac_objext
4484 test "x$ac_cv_prog_cc_c89" != "xno" && break
4486 rm -f conftest.$ac_ext
4491 case "x$ac_cv_prog_cc_c89" in
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4494 $as_echo "none needed" >&6; } ;;
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4497 $as_echo "unsupported" >&6; } ;;
4499 CC="$CC $ac_cv_prog_cc_c89"
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4501 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4503 if test "x$ac_cv_prog_cc_c89" != xno; then :
4508 ac_cpp='$CPP $CPPFLAGS'
4509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4514 ac_cpp='$CXXCPP $CPPFLAGS'
4515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4518 if test -z "$CXX"; then
4519 if test -n "$CCC"; then
4522 if test -n "$ac_tool_prefix"; then
4523 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528 $as_echo_n "checking for $ac_word... " >&6; }
4529 if test "${ac_cv_prog_CXX+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4532 if test -n "$CXX"; then
4533 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 if test -n "$CXX"; then
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4555 $as_echo "$CXX" >&6; }
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558 $as_echo "no" >&6; }
4562 test -n "$CXX" && break
4565 if test -z "$CXX"; then
4567 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4569 # Extract the first word of "$ac_prog", so it can be a program name with args.
4570 set dummy $ac_prog; ac_word=$2
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 $as_echo_n "checking for $ac_word... " >&6; }
4573 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4574 $as_echo_n "(cached) " >&6
4576 if test -n "$ac_ct_CXX"; then
4577 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586 ac_cv_prog_ac_ct_CXX="$ac_prog"
4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4596 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4597 if test -n "$ac_ct_CXX"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4599 $as_echo "$ac_ct_CXX" >&6; }
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602 $as_echo "no" >&6; }
4606 test -n "$ac_ct_CXX" && break
4609 if test "x$ac_ct_CXX" = x; then
4612 case $cross_compiling:$ac_tool_warned in
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4616 ac_tool_warned=yes ;;
4624 # Provide some information about the compiler.
4625 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4628 for ac_option in --version -v -V -qversion; do
4629 { { ac_try="$ac_compiler $ac_option >&5"
4631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4632 *) ac_try_echo
=$ac_try;;
4634 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4635 $as_echo "$ac_try_echo"; } >&5
4636 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4638 if test -s conftest.err
; then
4640 ... rest of stderr output deleted ...
4641 10q' conftest.err
>conftest.er1
4642 cat conftest.er1
>&5
4643 rm -f conftest.er1 conftest.err
4645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4646 test $ac_status = 0; }
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4650 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4651 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4668 if ac_fn_cxx_try_compile
"$LINENO"; then :
4673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4674 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4678 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4679 if test $ac_compiler_gnu = yes; then
4684 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4685 ac_save_CXXFLAGS
=$CXXFLAGS
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4687 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4688 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4691 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4692 ac_cxx_werror_flag
=yes
4695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4706 if ac_fn_cxx_try_compile
"$LINENO"; then :
4707 ac_cv_prog_cxx_g
=yes
4710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4721 if ac_fn_cxx_try_compile
"$LINENO"; then :
4724 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4737 if ac_fn_cxx_try_compile
"$LINENO"; then :
4738 ac_cv_prog_cxx_g
=yes
4740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4745 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4748 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4749 if test "$ac_test_CXXFLAGS" = set; then
4750 CXXFLAGS
=$ac_save_CXXFLAGS
4751 elif test $ac_cv_prog_cxx_g = yes; then
4752 if test "$GXX" = yes; then
4758 if test "$GXX" = yes; then
4765 ac_cpp
='$CPP $CPPFLAGS'
4766 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4767 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4768 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4773 if test -n "$ac_tool_prefix"; then
4774 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4775 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4781 if test -n "$GNATBIND"; then
4782 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4788 test -z "$as_dir" && as_dir
=.
4789 for ac_exec_ext
in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 GNATBIND
=$ac_cv_prog_GNATBIND
4802 if test -n "$GNATBIND"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4804 $as_echo "$GNATBIND" >&6; }
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4812 if test -z "$ac_cv_prog_GNATBIND"; then
4813 ac_ct_GNATBIND
=$GNATBIND
4814 # Extract the first word of "gnatbind", so it can be a program name with args.
4815 set dummy gnatbind
; ac_word
=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4819 $as_echo_n "(cached) " >&6
4821 if test -n "$ac_ct_GNATBIND"; then
4822 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4828 test -z "$as_dir" && as_dir
=.
4829 for ac_exec_ext
in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4842 if test -n "$ac_ct_GNATBIND"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4844 $as_echo "$ac_ct_GNATBIND" >&6; }
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4850 if test "x$ac_ct_GNATBIND" = x
; then
4853 case $cross_compiling:$ac_tool_warned in
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4857 ac_tool_warned
=yes ;;
4859 GNATBIND
=$ac_ct_GNATBIND
4862 GNATBIND
="$ac_cv_prog_GNATBIND"
4865 if test -n "$ac_tool_prefix"; then
4866 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4867 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4871 $as_echo_n "(cached) " >&6
4873 if test -n "$GNATMAKE"; then
4874 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4880 test -z "$as_dir" && as_dir
=.
4881 for ac_exec_ext
in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 GNATMAKE
=$ac_cv_prog_GNATMAKE
4894 if test -n "$GNATMAKE"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4896 $as_echo "$GNATMAKE" >&6; }
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4904 if test -z "$ac_cv_prog_GNATMAKE"; then
4905 ac_ct_GNATMAKE
=$GNATMAKE
4906 # Extract the first word of "gnatmake", so it can be a program name with args.
4907 set dummy gnatmake
; ac_word
=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4911 $as_echo_n "(cached) " >&6
4913 if test -n "$ac_ct_GNATMAKE"; then
4914 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4916 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4920 test -z "$as_dir" && as_dir
=.
4921 for ac_exec_ext
in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4934 if test -n "$ac_ct_GNATMAKE"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4936 $as_echo "$ac_ct_GNATMAKE" >&6; }
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4942 if test "x$ac_ct_GNATMAKE" = x
; then
4945 case $cross_compiling:$ac_tool_warned in
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4949 ac_tool_warned
=yes ;;
4951 GNATMAKE
=$ac_ct_GNATMAKE
4954 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4958 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4959 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4960 $as_echo_n "(cached) " >&6
4962 cat >conftest.adb
<<EOF
4963 procedure conftest is begin null; end conftest;
4965 acx_cv_cc_gcc_supports_ada
=no
4966 # There is a bug in old released versions of GCC which causes the
4967 # driver to exit successfully when the appropriate language module
4968 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4969 # Therefore we must check for the error message as well as an
4970 # unsuccessful exit.
4971 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4972 # given a .adb file, but produce no object file. So we must check
4973 # if an object file was really produced to guard against this.
4974 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4975 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4976 acx_cv_cc_gcc_supports_ada
=yes
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4981 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4983 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4990 # Do configure tests with the C++ compiler, since that's what we build with.
4992 ac_cpp
='$CXXCPP $CPPFLAGS'
4993 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4998 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4999 # optimizations to be activated explicitly by the toplevel.
5001 */prev-gcc
/xgcc
*) ;;
5002 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5003 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5008 # Determine PICFLAG for target gnatlib.
5014 # PIC is the default on some targets or must not be used.
5016 # For darwin, common symbols are not allowed in MH_DYLIB files
5018 # If we are using a compiler supporting mdynamic-no-pic
5019 # and the option has been tested as safe to add, then cancel
5020 # it here, since the code generated is incompatible with shared
5022 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5023 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5027 # PIC is the default.
5030 # PIC is the default for 64-bit PA HP-UX.
5032 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5034 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5036 i
[34567]86-*-interix[3-9]*)
5037 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5038 # Instead, we relocate shared libraries at runtime.
5040 i
[34567]86-*-nto-qnx*)
5041 # QNX uses GNU C++, but need to define -shared option too, otherwise
5043 PICFLAG_FOR_TARGET
='-fPIC -shared'
5045 i
[34567]86-pc-msdosdjgpp*)
5046 # DJGPP does not support shared libraries at all.
5049 # On IA64 HP-UX, PIC is the default but the pic flag
5050 # sets the default TLS model and affects inlining.
5051 PICFLAG_FOR_TARGET
=-fPIC
5054 # PIC is the default.
5056 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5057 # All AIX code is PIC.
5060 # Some targets support both -fPIC and -fpic, but prefer the latter.
5062 i
[34567]86-*-* | x86_64-
*-*)
5063 PICFLAG_FOR_TARGET
=-fpic
5065 # FIXME: Override -fPIC default in libgcc only?
5066 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5067 PICFLAG_FOR_TARGET
=-fpic
5069 # FIXME: Simplify to sh*-*-netbsd*?
5070 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5071 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5072 PICFLAG_FOR_TARGET
=-fpic
5074 # Default to -fPIC unless specified otherwise.
5076 PICFLAG_FOR_TARGET
=-fPIC
5080 # If the user explicitly uses -fpic/-fPIC, keep that.
5081 case "${CFLAGS_FOR_TARGET}" in
5083 PICFLAG_FOR_TARGET
=-fpic
5086 PICFLAG_FOR_TARGET
=-fPIC
5092 # -------------------------
5093 # Check C compiler features
5094 # -------------------------
5098 ac_cpp
='$CXXCPP $CPPFLAGS'
5099 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5100 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5101 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5103 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5104 if test -z "$CXXCPP"; then
5105 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5106 $as_echo_n "(cached) " >&6
5108 # Double quotes because CXXCPP needs to be expanded
5109 for CXXCPP
in "$CXX -E" "/lib/cpp"
5112 for ac_cxx_preproc_warn_flag
in '' yes
5114 # Use a header file that comes with gcc, so configuring glibc
5115 # with a fresh cross-compiler works.
5116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5117 # <limits.h> exists even on freestanding compilers.
5118 # On the NeXT, cc -E runs the code through the compiler's parser,
5119 # not just through cpp. "Syntax error" is here to catch this case.
5120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5123 # include <limits.h>
5125 # include <assert.h>
5129 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5132 # Broken: fails on valid input.
5135 rm -f conftest.err conftest.
$ac_ext
5137 # OK, works on sane cases. Now check whether nonexistent headers
5138 # can be detected and how.
5139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5141 #include <ac_nonexistent.h>
5143 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5144 # Broken: success on invalid input.
5147 # Passes both tests.
5151 rm -f conftest.err conftest.
$ac_ext
5154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5155 rm -f conftest.err conftest.
$ac_ext
5156 if $ac_preproc_ok; then :
5161 ac_cv_prog_CXXCPP
=$CXXCPP
5164 CXXCPP
=$ac_cv_prog_CXXCPP
5166 ac_cv_prog_CXXCPP
=$CXXCPP
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5169 $as_echo "$CXXCPP" >&6; }
5171 for ac_cxx_preproc_warn_flag
in '' yes
5173 # Use a header file that comes with gcc, so configuring glibc
5174 # with a fresh cross-compiler works.
5175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5176 # <limits.h> exists even on freestanding compilers.
5177 # On the NeXT, cc -E runs the code through the compiler's parser,
5178 # not just through cpp. "Syntax error" is here to catch this case.
5179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5182 # include <limits.h>
5184 # include <assert.h>
5188 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5191 # Broken: fails on valid input.
5194 rm -f conftest.err conftest.
$ac_ext
5196 # OK, works on sane cases. Now check whether nonexistent headers
5197 # can be detected and how.
5198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5200 #include <ac_nonexistent.h>
5202 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5203 # Broken: success on invalid input.
5206 # Passes both tests.
5210 rm -f conftest.err conftest.
$ac_ext
5213 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5214 rm -f conftest.err conftest.
$ac_ext
5215 if $ac_preproc_ok; then :
5218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5220 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
5221 See \`config.log' for more details." "$LINENO" 5; }
5225 ac_cpp
='$CXXCPP $CPPFLAGS'
5226 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5227 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5228 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5232 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5233 if test "${ac_cv_path_GREP+set}" = set; then :
5234 $as_echo_n "(cached) " >&6
5236 if test -z "$GREP"; then
5237 ac_path_GREP_found
=false
5238 # Loop through the user's path and test for each of PROGNAME-LIST
5239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5240 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5243 test -z "$as_dir" && as_dir
=.
5244 for ac_prog
in grep ggrep
; do
5245 for ac_exec_ext
in '' $ac_executable_extensions; do
5246 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5247 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5248 # Check for GNU ac_path_GREP and select it if it is found.
5249 # Check for GNU $ac_path_GREP
5250 case `"$ac_path_GREP" --version 2>&1` in
5252 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5255 $as_echo_n 0123456789 >"conftest.in"
5258 cat "conftest.in" "conftest.in" >"conftest.tmp"
5259 mv "conftest.tmp" "conftest.in"
5260 cp "conftest.in" "conftest.nl"
5261 $as_echo 'GREP' >> "conftest.nl"
5262 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5263 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5264 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5265 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5266 # Best one so far, save it but keep looking for a better one
5267 ac_cv_path_GREP
="$ac_path_GREP"
5268 ac_path_GREP_max
=$ac_count
5270 # 10*(2^10) chars as input seems more than enough
5271 test $ac_count -gt 10 && break
5273 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5276 $ac_path_GREP_found && break 3
5281 if test -z "$ac_cv_path_GREP"; then
5282 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5285 ac_cv_path_GREP
=$GREP
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5290 $as_echo "$ac_cv_path_GREP" >&6; }
5291 GREP
="$ac_cv_path_GREP"
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5295 $as_echo_n "checking for egrep... " >&6; }
5296 if test "${ac_cv_path_EGREP+set}" = set; then :
5297 $as_echo_n "(cached) " >&6
5299 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5300 then ac_cv_path_EGREP
="$GREP -E"
5302 if test -z "$EGREP"; then
5303 ac_path_EGREP_found
=false
5304 # Loop through the user's path and test for each of PROGNAME-LIST
5305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5306 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5309 test -z "$as_dir" && as_dir
=.
5310 for ac_prog
in egrep; do
5311 for ac_exec_ext
in '' $ac_executable_extensions; do
5312 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5313 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5314 # Check for GNU ac_path_EGREP and select it if it is found.
5315 # Check for GNU $ac_path_EGREP
5316 case `"$ac_path_EGREP" --version 2>&1` in
5318 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5321 $as_echo_n 0123456789 >"conftest.in"
5324 cat "conftest.in" "conftest.in" >"conftest.tmp"
5325 mv "conftest.tmp" "conftest.in"
5326 cp "conftest.in" "conftest.nl"
5327 $as_echo 'EGREP' >> "conftest.nl"
5328 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5329 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5330 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5331 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5332 # Best one so far, save it but keep looking for a better one
5333 ac_cv_path_EGREP
="$ac_path_EGREP"
5334 ac_path_EGREP_max
=$ac_count
5336 # 10*(2^10) chars as input seems more than enough
5337 test $ac_count -gt 10 && break
5339 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5342 $ac_path_EGREP_found && break 3
5347 if test -z "$ac_cv_path_EGREP"; then
5348 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5351 ac_cv_path_EGREP
=$EGREP
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5357 $as_echo "$ac_cv_path_EGREP" >&6; }
5358 EGREP
="$ac_cv_path_EGREP"
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5362 $as_echo_n "checking for ANSI C header files... " >&6; }
5363 if test "${ac_cv_header_stdc+set}" = set; then :
5364 $as_echo_n "(cached) " >&6
5366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5381 if ac_fn_cxx_try_compile
"$LINENO"; then :
5382 ac_cv_header_stdc
=yes
5384 ac_cv_header_stdc
=no
5386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5388 if test $ac_cv_header_stdc = yes; then
5389 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5396 $EGREP "memchr" >/dev
/null
2>&1; then :
5399 ac_cv_header_stdc
=no
5405 if test $ac_cv_header_stdc = yes; then
5406 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5413 $EGREP "free" >/dev
/null
2>&1; then :
5416 ac_cv_header_stdc
=no
5422 if test $ac_cv_header_stdc = yes; then
5423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5424 if test "$cross_compiling" = yes; then :
5427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5431 #if ((' ' & 0x0FF) == 0x020)
5432 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5433 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5435 # define ISLOWER(c) \
5436 (('a' <= (c) && (c) <= 'i') \
5437 || ('j' <= (c) && (c) <= 'r') \
5438 || ('s' <= (c) && (c) <= 'z'))
5439 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5442 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5447 for (i = 0; i < 256; i++)
5448 if (XOR (islower (i), ISLOWER (i))
5449 || toupper (i) != TOUPPER (i))
5454 if ac_fn_cxx_try_run
"$LINENO"; then :
5457 ac_cv_header_stdc
=no
5459 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5460 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5466 $as_echo "$ac_cv_header_stdc" >&6; }
5467 if test $ac_cv_header_stdc = yes; then
5469 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5473 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5474 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5475 inttypes.h stdint.h unistd.h
5477 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5478 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5480 eval as_val
=\$
$as_ac_Header
5481 if test "x$as_val" = x
""yes; then :
5482 cat >>confdefs.h
<<_ACEOF
5483 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5492 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5493 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5500 if test "$MINIX" = yes; then
5502 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5505 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5508 $as_echo "#define _MINIX 1" >>confdefs.h
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5514 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5515 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5516 $as_echo_n "(cached) " >&6
5518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5521 # define __EXTENSIONS__ 1
5522 $ac_includes_default
5531 if ac_fn_cxx_try_compile
"$LINENO"; then :
5532 ac_cv_safe_to_define___extensions__
=yes
5534 ac_cv_safe_to_define___extensions__
=no
5536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5539 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5540 test $ac_cv_safe_to_define___extensions__ = yes &&
5541 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5543 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5545 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5547 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5549 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5553 ac_cpp
='$CPP $CPPFLAGS'
5554 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5555 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5556 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5558 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5559 # On Suns, sometimes $CPP names a directory.
5560 if test -n "$CPP" && test -d "$CPP"; then
5563 if test -z "$CPP"; then
5564 if test "${ac_cv_prog_CPP+set}" = set; then :
5565 $as_echo_n "(cached) " >&6
5567 # Double quotes because CPP needs to be expanded
5568 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5571 for ac_c_preproc_warn_flag
in '' yes
5573 # Use a header file that comes with gcc, so configuring glibc
5574 # with a fresh cross-compiler works.
5575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5576 # <limits.h> exists even on freestanding compilers.
5577 # On the NeXT, cc -E runs the code through the compiler's parser,
5578 # not just through cpp. "Syntax error" is here to catch this case.
5579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5580 /* end confdefs.h. */
5582 # include <limits.h>
5584 # include <assert.h>
5588 if ac_fn_c_try_cpp
"$LINENO"; then :
5591 # Broken: fails on valid input.
5594 rm -f conftest.err conftest.
$ac_ext
5596 # OK, works on sane cases. Now check whether nonexistent headers
5597 # can be detected and how.
5598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5600 #include <ac_nonexistent.h>
5602 if ac_fn_c_try_cpp
"$LINENO"; then :
5603 # Broken: success on invalid input.
5606 # Passes both tests.
5610 rm -f conftest.err conftest.
$ac_ext
5613 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5614 rm -f conftest.err conftest.
$ac_ext
5615 if $ac_preproc_ok; then :
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5628 $as_echo "$CPP" >&6; }
5630 for ac_c_preproc_warn_flag
in '' yes
5632 # Use a header file that comes with gcc, so configuring glibc
5633 # with a fresh cross-compiler works.
5634 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5635 # <limits.h> exists even on freestanding compilers.
5636 # On the NeXT, cc -E runs the code through the compiler's parser,
5637 # not just through cpp. "Syntax error" is here to catch this case.
5638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5641 # include <limits.h>
5643 # include <assert.h>
5647 if ac_fn_c_try_cpp
"$LINENO"; then :
5650 # Broken: fails on valid input.
5653 rm -f conftest.err conftest.
$ac_ext
5655 # OK, works on sane cases. Now check whether nonexistent headers
5656 # can be detected and how.
5657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5659 #include <ac_nonexistent.h>
5661 if ac_fn_c_try_cpp
"$LINENO"; then :
5662 # Broken: success on invalid input.
5665 # Passes both tests.
5669 rm -f conftest.err conftest.
$ac_ext
5672 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5673 rm -f conftest.err conftest.
$ac_ext
5674 if $ac_preproc_ok; then :
5677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5679 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5680 See \`config.log' for more details." "$LINENO" 5; }
5684 ac_cpp
='$CXXCPP $CPPFLAGS'
5685 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5686 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5687 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5690 $as_echo_n "checking for inline... " >&6; }
5691 if test "${ac_cv_c_inline+set}" = set; then :
5692 $as_echo_n "(cached) " >&6
5695 for ac_kw
in inline __inline__ __inline
; do
5696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5700 static $ac_kw foo_t static_foo () {return 0; }
5701 $ac_kw foo_t foo () {return 0; }
5705 if ac_fn_cxx_try_compile
"$LINENO"; then :
5706 ac_cv_c_inline
=$ac_kw
5708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5709 test "$ac_cv_c_inline" != no
&& break
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5714 $as_echo "$ac_cv_c_inline" >&6; }
5716 case $ac_cv_c_inline in
5719 case $ac_cv_c_inline in
5721 *) ac_val
=$ac_cv_c_inline;;
5723 cat >>confdefs.h
<<_ACEOF
5725 #define inline $ac_val
5732 # Check whether --enable-largefile was given.
5733 if test "${enable_largefile+set}" = set; then :
5734 enableval
=$enable_largefile;
5737 if test "$enable_largefile" != no
; then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5740 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5741 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5744 ac_cv_sys_largefile_CC
=no
5745 if test "$GCC" != yes; then
5748 # IRIX 6.2 and later do not support large files by default,
5749 # so use the C compiler's -n32 option if that helps.
5750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h. */
5752 #include <sys/types.h>
5753 /* Check that off_t can represent 2**63 - 1 correctly.
5754 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5755 since some C++ compilers masquerading as C compilers
5756 incorrectly reject 9223372036854775807. */
5757 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5758 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5759 && LARGE_OFF_T % 2147483647 == 1)
5769 if ac_fn_cxx_try_compile
"$LINENO"; then :
5772 rm -f core conftest.err conftest.
$ac_objext
5774 if ac_fn_cxx_try_compile
"$LINENO"; then :
5775 ac_cv_sys_largefile_CC
=' -n32'; break
5777 rm -f core conftest.err conftest.
$ac_objext
5781 rm -f conftest.
$ac_ext
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5785 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5786 if test "$ac_cv_sys_largefile_CC" != no
; then
5787 CC
=$CC$ac_cv_sys_largefile_CC
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5791 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5792 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5793 $as_echo_n "(cached) " >&6
5796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5797 /* end confdefs.h. */
5798 #include <sys/types.h>
5799 /* Check that off_t can represent 2**63 - 1 correctly.
5800 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5801 since some C++ compilers masquerading as C compilers
5802 incorrectly reject 9223372036854775807. */
5803 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5804 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5805 && LARGE_OFF_T % 2147483647 == 1)
5815 if ac_fn_cxx_try_compile
"$LINENO"; then :
5816 ac_cv_sys_file_offset_bits
=no
; break
5818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5821 #define _FILE_OFFSET_BITS 64
5822 #include <sys/types.h>
5823 /* Check that off_t can represent 2**63 - 1 correctly.
5824 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5825 since some C++ compilers masquerading as C compilers
5826 incorrectly reject 9223372036854775807. */
5827 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5828 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5829 && LARGE_OFF_T % 2147483647 == 1)
5839 if ac_fn_cxx_try_compile
"$LINENO"; then :
5840 ac_cv_sys_file_offset_bits
=64; break
5842 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5843 ac_cv_sys_file_offset_bits
=unknown
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5848 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5849 case $ac_cv_sys_file_offset_bits in #(
5852 cat >>confdefs.h
<<_ACEOF
5853 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5858 if test $ac_cv_sys_file_offset_bits = unknown
; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5860 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5861 if test "${ac_cv_sys_large_files+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5867 #include <sys/types.h>
5868 /* Check that off_t can represent 2**63 - 1 correctly.
5869 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5870 since some C++ compilers masquerading as C compilers
5871 incorrectly reject 9223372036854775807. */
5872 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5873 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5874 && LARGE_OFF_T % 2147483647 == 1)
5884 if ac_fn_cxx_try_compile
"$LINENO"; then :
5885 ac_cv_sys_large_files
=no
; break
5887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5889 /* end confdefs.h. */
5890 #define _LARGE_FILES 1
5891 #include <sys/types.h>
5892 /* Check that off_t can represent 2**63 - 1 correctly.
5893 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5894 since some C++ compilers masquerading as C compilers
5895 incorrectly reject 9223372036854775807. */
5896 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5897 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5898 && LARGE_OFF_T % 2147483647 == 1)
5908 if ac_fn_cxx_try_compile
"$LINENO"; then :
5909 ac_cv_sys_large_files
=1; break
5911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5912 ac_cv_sys_large_files
=unknown
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5917 $as_echo "$ac_cv_sys_large_files" >&6; }
5918 case $ac_cv_sys_large_files in #(
5921 cat >>confdefs.h
<<_ACEOF
5922 #define _LARGE_FILES $ac_cv_sys_large_files
5931 # sizeof(char) is 1 by definition.
5932 # The cast to long int works around a bug in the HP C Compiler
5933 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5934 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5935 # This bug is HP SR number 8606223364.
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5937 $as_echo_n "checking size of void *... " >&6; }
5938 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5939 $as_echo_n "(cached) " >&6
5941 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5944 if test "$ac_cv_type_void_p" = yes; then
5945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5947 { as_fn_set_status
77
5948 as_fn_error
"cannot compute sizeof (void *)
5949 See \`config.log' for more details." "$LINENO" 5; }; }
5951 ac_cv_sizeof_void_p
=0
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5957 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5961 cat >>confdefs.h
<<_ACEOF
5962 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5966 # The cast to long int works around a bug in the HP C Compiler
5967 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5968 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5969 # This bug is HP SR number 8606223364.
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5971 $as_echo_n "checking size of short... " >&6; }
5972 if test "${ac_cv_sizeof_short+set}" = set; then :
5973 $as_echo_n "(cached) " >&6
5975 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5978 if test "$ac_cv_type_short" = yes; then
5979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5981 { as_fn_set_status
77
5982 as_fn_error
"cannot compute sizeof (short)
5983 See \`config.log' for more details." "$LINENO" 5; }; }
5985 ac_cv_sizeof_short
=0
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5991 $as_echo "$ac_cv_sizeof_short" >&6; }
5995 cat >>confdefs.h
<<_ACEOF
5996 #define SIZEOF_SHORT $ac_cv_sizeof_short
6000 # The cast to long int works around a bug in the HP C Compiler
6001 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6002 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6003 # This bug is HP SR number 8606223364.
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6005 $as_echo_n "checking size of int... " >&6; }
6006 if test "${ac_cv_sizeof_int+set}" = set; then :
6007 $as_echo_n "(cached) " >&6
6009 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6012 if test "$ac_cv_type_int" = yes; then
6013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6015 { as_fn_set_status
77
6016 as_fn_error
"cannot compute sizeof (int)
6017 See \`config.log' for more details." "$LINENO" 5; }; }
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6025 $as_echo "$ac_cv_sizeof_int" >&6; }
6029 cat >>confdefs.h
<<_ACEOF
6030 #define SIZEOF_INT $ac_cv_sizeof_int
6034 # The cast to long int works around a bug in the HP C Compiler
6035 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6036 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6037 # This bug is HP SR number 8606223364.
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6039 $as_echo_n "checking size of long... " >&6; }
6040 if test "${ac_cv_sizeof_long+set}" = set; then :
6041 $as_echo_n "(cached) " >&6
6043 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6046 if test "$ac_cv_type_long" = yes; then
6047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6049 { as_fn_set_status
77
6050 as_fn_error
"cannot compute sizeof (long)
6051 See \`config.log' for more details." "$LINENO" 5; }; }
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6059 $as_echo "$ac_cv_sizeof_long" >&6; }
6063 cat >>confdefs.h
<<_ACEOF
6064 #define SIZEOF_LONG $ac_cv_sizeof_long
6068 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6069 if test "x$ac_cv_type_long_long" = x
""yes; then :
6071 cat >>confdefs.h
<<_ACEOF
6072 #define HAVE_LONG_LONG 1
6075 # The cast to long int works around a bug in the HP C Compiler
6076 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6077 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6078 # This bug is HP SR number 8606223364.
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6080 $as_echo_n "checking size of long long... " >&6; }
6081 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6082 $as_echo_n "(cached) " >&6
6084 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6087 if test "$ac_cv_type_long_long" = yes; then
6088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6090 { as_fn_set_status
77
6091 as_fn_error
"cannot compute sizeof (long long)
6092 See \`config.log' for more details." "$LINENO" 5; }; }
6094 ac_cv_sizeof_long_long
=0
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6100 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6104 cat >>confdefs.h
<<_ACEOF
6105 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6111 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6112 case $ac_cv_c_int8_t in #(
6116 cat >>confdefs.h
<<_ACEOF
6117 #define int8_t $ac_cv_c_int8_t
6122 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6123 case $ac_cv_c_int16_t in #(
6127 cat >>confdefs.h
<<_ACEOF
6128 #define int16_t $ac_cv_c_int16_t
6133 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6134 case $ac_cv_c_int32_t in #(
6138 cat >>confdefs.h
<<_ACEOF
6139 #define int32_t $ac_cv_c_int32_t
6144 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6145 case $ac_cv_c_int64_t in #(
6149 cat >>confdefs.h
<<_ACEOF
6150 #define int64_t $ac_cv_c_int64_t
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6157 $as_echo_n "checking for long long int... " >&6; }
6158 if test "${ac_cv_type_long_long_int+set}" = set; then :
6159 $as_echo_n "(cached) " >&6
6161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6162 /* end confdefs.h. */
6164 /* For now, do not test the preprocessor; as of 2007 there are too many
6165 implementations with broken preprocessors. Perhaps this can
6166 be revisited in 2012. In the meantime, code should not expect
6167 #if to work with literals wider than 32 bits. */
6168 /* Test literals. */
6169 long long int ll = 9223372036854775807ll;
6170 long long int nll = -9223372036854775807LL;
6171 unsigned long long int ull = 18446744073709551615ULL;
6172 /* Test constant expressions. */
6173 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6175 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6181 /* Test availability of runtime routines for shift and division. */
6182 long long int llmax = 9223372036854775807ll;
6183 unsigned long long int ullmax = 18446744073709551615ull;
6184 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6185 | (llmax / ll) | (llmax % ll)
6186 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6187 | (ullmax / ull) | (ullmax % ull));
6193 if ac_fn_cxx_try_link
"$LINENO"; then :
6194 if test "$cross_compiling" = yes; then :
6195 ac_cv_type_long_long_int
=yes
6197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6202 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6203 # define LLONG_MAX (HALF - 1 + HALF)
6208 long long int n = 1;
6212 long long int m = n << i;
6215 if (LLONG_MAX / 2 < m)
6223 if ac_fn_cxx_try_run
"$LINENO"; then :
6224 ac_cv_type_long_long_int
=yes
6226 ac_cv_type_long_long_int
=no
6228 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6229 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6233 ac_cv_type_long_long_int
=no
6235 rm -f core conftest.err conftest.
$ac_objext \
6236 conftest
$ac_exeext conftest.
$ac_ext
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6239 $as_echo "$ac_cv_type_long_long_int" >&6; }
6240 if test $ac_cv_type_long_long_int = yes; then
6242 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6248 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6249 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6251 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6254 test $ac_cv_type_long_long_int = yes \
6255 && ac_type
='long long int' \
6256 || ac_type
='long int'
6258 cat >>confdefs.h
<<_ACEOF
6259 #define intmax_t $ac_type
6266 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6267 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6269 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6272 for ac_type
in 'int' 'long int' 'long long int'; do
6273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6275 $ac_includes_default
6279 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6286 if ac_fn_cxx_try_compile
"$LINENO"; then :
6288 cat >>confdefs.h
<<_ACEOF
6289 #define intptr_t $ac_type
6294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6295 test -z "$ac_type" && break
6300 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6301 case $ac_cv_c_uint8_t in #(
6305 $as_echo "#define _UINT8_T 1" >>confdefs.h
6308 cat >>confdefs.h
<<_ACEOF
6309 #define uint8_t $ac_cv_c_uint8_t
6314 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6315 case $ac_cv_c_uint16_t in #(
6320 cat >>confdefs.h
<<_ACEOF
6321 #define uint16_t $ac_cv_c_uint16_t
6326 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6327 case $ac_cv_c_uint32_t in #(
6331 $as_echo "#define _UINT32_T 1" >>confdefs.h
6334 cat >>confdefs.h
<<_ACEOF
6335 #define uint32_t $ac_cv_c_uint32_t
6340 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6341 case $ac_cv_c_uint64_t in #(
6345 $as_echo "#define _UINT64_T 1" >>confdefs.h
6348 cat >>confdefs.h
<<_ACEOF
6349 #define uint64_t $ac_cv_c_uint64_t
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6356 $as_echo_n "checking for unsigned long long int... " >&6; }
6357 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6358 $as_echo_n "(cached) " >&6
6360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6363 /* For now, do not test the preprocessor; as of 2007 there are too many
6364 implementations with broken preprocessors. Perhaps this can
6365 be revisited in 2012. In the meantime, code should not expect
6366 #if to work with literals wider than 32 bits. */
6367 /* Test literals. */
6368 long long int ll = 9223372036854775807ll;
6369 long long int nll = -9223372036854775807LL;
6370 unsigned long long int ull = 18446744073709551615ULL;
6371 /* Test constant expressions. */
6372 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6374 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6380 /* Test availability of runtime routines for shift and division. */
6381 long long int llmax = 9223372036854775807ll;
6382 unsigned long long int ullmax = 18446744073709551615ull;
6383 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6384 | (llmax / ll) | (llmax % ll)
6385 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6386 | (ullmax / ull) | (ullmax % ull));
6392 if ac_fn_cxx_try_link
"$LINENO"; then :
6393 ac_cv_type_unsigned_long_long_int
=yes
6395 ac_cv_type_unsigned_long_long_int
=no
6397 rm -f core conftest.err conftest.
$ac_objext \
6398 conftest
$ac_exeext conftest.
$ac_ext
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6401 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6402 if test $ac_cv_type_unsigned_long_long_int = yes; then
6404 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6410 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6411 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6413 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6416 test $ac_cv_type_unsigned_long_long_int = yes \
6417 && ac_type
='unsigned long long int' \
6418 || ac_type
='unsigned long int'
6420 cat >>confdefs.h
<<_ACEOF
6421 #define uintmax_t $ac_type
6428 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6429 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6431 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6434 for ac_type
in 'unsigned int' 'unsigned long int' \
6435 'unsigned long long int'; do
6436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6438 $ac_includes_default
6442 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6449 if ac_fn_cxx_try_compile
"$LINENO"; then :
6451 cat >>confdefs.h
<<_ACEOF
6452 #define uintptr_t $ac_type
6457 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6458 test -z "$ac_type" && break
6475 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6476 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6479 # check what underlying integer type int64_t uses
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6481 $as_echo_n "checking for int64_t underlying type... " >&6; }
6482 if test "${ac_cv_int64_t_type+set}" = set; then :
6483 $as_echo_n "(cached) " >&6
6486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h. */
6489 #ifdef HAVE_STDINT_H
6492 template <typename T> struct X { };
6494 struct X<long> { typedef long t; };
6504 if ac_fn_cxx_try_compile
"$LINENO"; then :
6505 ac_cv_int64_t_type
=long
6507 ac_cv_int64_t_type
="long long"
6509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6512 $as_echo "$ac_cv_int64_t_type" >&6; }
6513 if test "$ac_cv_int64_t_type" = "long"; then
6515 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6521 #ifdef HAVE_STDINT_H
6524 template <typename T> struct X { };
6526 struct X<long long> { typedef long long t; };
6536 if ac_fn_cxx_try_compile
"$LINENO"; then :
6539 as_fn_error
"error verifying int64_t uses long long" "$LINENO" 5
6541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6545 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6546 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6547 $as_echo_n "(cached) " >&6
6550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6558 int a, b; std::swap(a,b);
6563 if ac_fn_cxx_try_compile
"$LINENO"; then :
6564 ac_cv_std_swap_in_utility
=yes
6566 ac_cv_std_swap_in_utility
=no
6568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6571 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6572 if test $ac_cv_std_swap_in_utility = yes; then
6574 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6578 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6579 # If the host compiler is affected by the bug, and we build with optimization
6580 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6581 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6582 # Since there is no reliable feature check for the presence of this bug,
6583 # we simply use a GCC version number check. (This should never trigger for
6584 # stages 2 or 3 of a native bootstrap.)
6586 if test "$GCC" = yes; then
6587 saved_CXXFLAGS
="$CXXFLAGS"
6589 # The following test compilation will succeed if and only if $CXX accepts
6590 # -fno-strict-aliasing *and* is older than GCC 4.3.
6591 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6593 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6597 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6598 #error compiler not affected by placement new aliasing bug
6602 if ac_fn_cxx_try_compile
"$LINENO"; then :
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6604 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6611 CXXFLAGS
="$saved_CXXFLAGS"
6617 # ---------------------
6618 # Warnings and checking
6619 # ---------------------
6621 # Check $CC warning features (if it's GCC).
6622 # We want to use -pedantic, but we don't want warnings about
6625 # * overlong strings
6626 # * C++11 narrowing conversions in { }
6627 # So, we only use -pedantic if we can disable those warnings.
6629 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6630 # Check whether --enable-build-format-warnings was given.
6631 if test "${enable_build_format_warnings+set}" = set; then :
6632 enableval
=$enable_build_format_warnings;
6634 enable_build_format_warnings
=yes
6637 if test $enable_build_format_warnings = no
; then :
6643 ac_cpp
='$CXXCPP $CPPFLAGS'
6644 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6645 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6646 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6649 save_CXXFLAGS
="$CXXFLAGS"
6650 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6651 # Do the check with the no- prefix removed since gcc silently
6652 # accepts any -Wno-* option on purpose
6653 case $real_option in
6654 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6655 *) option
=$real_option ;;
6657 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6660 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6661 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6662 $as_echo_n "(cached) " >&6
6665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6666 /* end confdefs.h. */
6676 if ac_fn_cxx_try_compile
"$LINENO"; then :
6677 eval "$as_acx_Woption=yes"
6679 eval "$as_acx_Woption=no"
6681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6684 eval ac_res
=\$
$as_acx_Woption
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6686 $as_echo "$ac_res" >&6; }
6687 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6688 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6691 CXXFLAGS
="$save_CXXFLAGS"
6693 ac_cpp
='$CXXCPP $CPPFLAGS'
6694 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6695 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6696 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6701 ac_cpp
='$CPP $CPPFLAGS'
6702 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6703 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6704 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6707 save_CFLAGS
="$CFLAGS"
6708 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6709 # Do the check with the no- prefix removed since gcc silently
6710 # accepts any -Wno-* option on purpose
6711 case $real_option in
6712 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6713 *) option
=$real_option ;;
6715 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6718 $as_echo_n "checking whether $CC supports $option... " >&6; }
6719 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6720 $as_echo_n "(cached) " >&6
6723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h. */
6734 if ac_fn_c_try_compile
"$LINENO"; then :
6735 eval "$as_acx_Woption=yes"
6737 eval "$as_acx_Woption=no"
6739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6742 eval ac_res
=\$
$as_acx_Woption
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6744 $as_echo "$ac_res" >&6; }
6745 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6746 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6749 CFLAGS
="$save_CFLAGS"
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
6758 ac_cpp
='$CXXCPP $CPPFLAGS'
6759 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6760 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6761 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6764 save_CXXFLAGS
="$CXXFLAGS"
6765 for real_option
in -Wmissing-format-attribute; do
6766 # Do the check with the no- prefix removed since gcc silently
6767 # accepts any -Wno-* option on purpose
6768 case $real_option in
6769 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6770 *) option
=$real_option ;;
6772 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6775 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6776 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6777 $as_echo_n "(cached) " >&6
6780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6791 if ac_fn_cxx_try_compile
"$LINENO"; then :
6792 eval "$as_acx_Woption=yes"
6794 eval "$as_acx_Woption=no"
6796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6799 eval ac_res
=\$
$as_acx_Woption
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6801 $as_echo "$ac_res" >&6; }
6802 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6803 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6806 CXXFLAGS
="$save_CXXFLAGS"
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
6815 ac_cpp
='$CXXCPP $CPPFLAGS'
6816 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6817 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6818 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6820 save_CXXFLAGS
="$CXXFLAGS"
6821 for real_option
in -Woverloaded-virtual; do
6822 # Do the check with the no- prefix removed since gcc silently
6823 # accepts any -Wno-* option on purpose
6824 case $real_option in
6825 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6826 *) option
=$real_option ;;
6828 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6831 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6832 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6833 $as_echo_n "(cached) " >&6
6836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6847 if ac_fn_cxx_try_compile
"$LINENO"; then :
6848 eval "$as_acx_Woption=yes"
6850 eval "$as_acx_Woption=no"
6852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6855 eval ac_res
=\$
$as_acx_Woption
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6857 $as_echo "$ac_res" >&6; }
6858 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6859 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6862 CXXFLAGS
="$save_CXXFLAGS"
6864 ac_cpp
='$CXXCPP $CPPFLAGS'
6865 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6866 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6867 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6871 ac_cpp
='$CPP $CPPFLAGS'
6872 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6873 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6874 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6877 save_CFLAGS
="$CFLAGS"
6878 for real_option
in -Wold-style-definition -Wc++-compat; do
6879 # Do the check with the no- prefix removed since gcc silently
6880 # accepts any -Wno-* option on purpose
6881 case $real_option in
6882 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6883 *) option
=$real_option ;;
6885 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6888 $as_echo_n "checking whether $CC supports $option... " >&6; }
6889 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6890 $as_echo_n "(cached) " >&6
6893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */
6904 if ac_fn_c_try_compile
"$LINENO"; then :
6905 eval "$as_acx_Woption=yes"
6907 eval "$as_acx_Woption=no"
6909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6912 eval ac_res
=\$
$as_acx_Woption
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6914 $as_echo "$ac_res" >&6; }
6915 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6916 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6919 CFLAGS
="$save_CFLAGS"
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
6928 ac_cpp
='$CXXCPP $CPPFLAGS'
6929 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6930 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6931 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6933 # Do the check with the no- prefix removed from the warning options
6934 # since gcc silently accepts any -Wno-* option on purpose
6935 if test "$GXX" = yes; then :
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6937 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6938 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6939 $as_echo_n "(cached) " >&6
6941 save_CXXFLAGS
="$CXXFLAGS"
6942 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6944 /* end confdefs.h. */
6954 if ac_fn_cxx_try_compile
"$LINENO"; then :
6955 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6957 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6960 CXXFLAGS
="$save_CXXFLAGS"
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6963 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6964 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6965 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
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
6977 ac_cpp
='$CXXCPP $CPPFLAGS'
6978 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6979 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6980 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6982 # Check whether --enable-werror-always was given.
6983 if test "${enable_werror_always+set}" = set; then :
6984 enableval
=$enable_werror_always;
6986 enable_werror_always
=no
6989 if test $enable_werror_always = yes; then :
6990 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6994 ac_cpp
='$CXXCPP $CPPFLAGS'
6995 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6996 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6997 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7001 # The above macros do nothing if the compiler is not GCC. However, the
7002 # Makefile has more goo to add other flags, so these variables are used
7003 # to enable warnings only for GCC.
7006 if test "x$GCC" = "xyes"; then
7007 warn_cflags
='$(GCC_WARN_CFLAGS)'
7008 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7013 # Disable exceptions and RTTI if building with g++
7015 ac_cpp
='$CPP $CPPFLAGS'
7016 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7017 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7018 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7021 save_CFLAGS
="$CFLAGS"
7022 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7023 # Do the check with the no- prefix removed since gcc silently
7024 # accepts any -Wno-* option on purpose
7025 case $real_option in
7026 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7027 *) option
=$real_option ;;
7029 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7032 $as_echo_n "checking whether $CC supports $option... " >&6; }
7033 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7034 $as_echo_n "(cached) " >&6
7037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7048 if ac_fn_c_try_compile
"$LINENO"; then :
7049 eval "$as_acx_Woption=yes"
7051 eval "$as_acx_Woption=no"
7053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7056 eval ac_res
=\$
$as_acx_Woption
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7058 $as_echo "$ac_res" >&6; }
7059 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7060 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7063 CFLAGS
="$save_CFLAGS"
7065 ac_cpp
='$CXXCPP $CPPFLAGS'
7066 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7067 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7068 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7072 # Enable expensive internal checks
7074 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7078 # Check whether --enable-checking was given.
7079 if test "${enable_checking+set}" = set; then :
7080 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7083 # Determine the default checks.
7084 if test x
$is_release = x
; then
7085 ac_checking_flags
=yes
7087 ac_checking_flags
=release
7091 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7092 for check
in release
$ac_checking_flags
7095 # these set all the flags to specific states
7096 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7097 ac_fold_checking
= ; ac_gc_checking
=1 ;
7098 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7099 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7100 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7101 ac_types_checking
=1 ;;
7102 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7103 ac_fold_checking
= ; ac_gc_checking
= ;
7104 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7105 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7106 ac_tree_checking
= ; ac_valgrind_checking
= ;
7107 ac_types_checking
= ;;
7108 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7109 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
7110 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7111 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7112 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7113 ac_types_checking
=1 ;;
7114 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7115 ac_fold_checking
= ; ac_gc_checking
= ;
7116 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7117 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7118 ac_tree_checking
= ; ac_valgrind_checking
= ;
7119 ac_types_checking
= ;;
7120 # these enable particular checks
7121 assert
) ac_assert_checking
=1 ;;
7122 df
) ac_df_checking
=1 ;;
7123 fold) ac_fold_checking
=1 ;;
7124 gc
) ac_gc_checking
=1 ;;
7125 gcac
) ac_gc_always_collect
=1 ;;
7126 gimple
) ac_gimple_checking
=1 ;;
7127 misc
) ac_checking
=1 ;;
7128 rtl
) ac_rtl_checking
=1 ;;
7129 rtlflag
) ac_rtlflag_checking
=1 ;;
7130 runtime
) ac_runtime_checking
=1 ;;
7131 tree
) ac_tree_checking
=1 ;;
7132 types
) ac_types_checking
=1 ;;
7133 valgrind
) ac_valgrind_checking
=1 ;;
7134 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
7140 if test x
$ac_checking != x
; then
7142 $as_echo "#define CHECKING_P 1" >>confdefs.h
7144 nocommon_flag
=-fno-common
7146 $as_echo "#define CHECKING_P 0" >>confdefs.h
7150 if test x
$ac_df_checking != x
; then
7152 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7155 if test x
$ac_assert_checking != x
; then
7157 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7160 if test x
$ac_gimple_checking != x
; then
7162 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7166 if test x
$ac_runtime_checking != x
; then
7168 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7171 if test x
$ac_tree_checking != x
; then
7173 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7177 if test x
$ac_types_checking != x
; then
7179 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7183 if test x
$ac_rtl_checking != x
; then
7185 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7188 if test x
$ac_rtlflag_checking != x
; then
7190 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7193 if test x
$ac_gc_checking != x
; then
7195 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7198 if test x
$ac_gc_always_collect != x
; then
7200 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7203 if test x
$ac_fold_checking != x
; then
7205 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7208 valgrind_path_defines
=
7211 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7212 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
7220 # It is certainly possible that there's valgrind but no valgrind.h.
7221 # GCC relies on making annotations so we must have both.
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7223 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7226 #include <valgrind/memcheck.h>
7227 #ifndef VALGRIND_DISCARD
7228 #error VALGRIND_DISCARD not defined
7231 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7232 gcc_cv_header_valgrind_memcheck_h
=yes
7234 gcc_cv_header_valgrind_memcheck_h
=no
7236 rm -f conftest.err conftest.
$ac_ext
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7238 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7240 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h. */
7243 #include <memcheck.h>
7244 #ifndef VALGRIND_DISCARD
7245 #error VALGRIND_DISCARD not defined
7248 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7249 gcc_cv_header_memcheck_h
=yes
7251 gcc_cv_header_memcheck_h
=no
7253 rm -f conftest.err conftest.
$ac_ext
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7255 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7256 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7258 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7261 if test $gcc_cv_header_memcheck_h = yes; then
7263 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7267 if test x
$ac_valgrind_checking != x
; then
7269 # Prepare PATH_SEPARATOR.
7270 # The user is always right.
7271 if test "${PATH_SEPARATOR+set}" != set; then
7272 echo "#! /bin/sh" >conf$$.sh
7273 echo "exit 0" >>conf$$.sh
7275 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7283 # Find out how to test for executable files. Don't use a zero-byte file,
7284 # as systems may use methods other than mode bits to determine executability.
7285 cat >conf$$.
file <<_ASEOF
7289 chmod +x conf$$.
file
7290 if test -x conf$$.
file >/dev
/null
2>&1; then
7291 ac_executable_p
="test -x"
7293 ac_executable_p
="test -f"
7297 # Extract the first word of "valgrind", so it can be a program name with args.
7298 set dummy valgrind
; ac_word
=$2
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300 $as_echo_n "checking for $ac_word... " >&6; }
7301 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7302 $as_echo_n "(cached) " >&6
7304 case "$valgrind_path" in
7306 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7309 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7310 for ac_dir
in $PATH; do
7312 test -z "$ac_dir" && ac_dir
=.
7313 for ac_exec_ext
in '' $ac_executable_extensions; do
7314 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7315 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7316 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7326 valgrind_path
="$ac_cv_path_valgrind_path"
7327 if test -n "$valgrind_path"; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7329 $as_echo "$valgrind_path" >&6; }
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }
7335 if test "x$valgrind_path" = "x" \
7336 ||
(test $have_valgrind_h = no \
7337 && test $gcc_cv_header_memcheck_h = no \
7338 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7339 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7341 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7342 valgrind_command
="$valgrind_path -q"
7344 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7350 # Enable code coverage collection
7351 # Check whether --enable-coverage was given.
7352 if test "${enable_coverage+set}" = set; then :
7353 enableval
=$enable_coverage; case "${enableval}" in
7355 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7358 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7361 # a.k.a. --disable-coverage
7365 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7374 # Check whether --enable-gather-detailed-mem-stats was given.
7375 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7376 enableval
=$enable_gather_detailed_mem_stats;
7378 enable_gather_detailed_mem_stats
=no
7381 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7383 cat >>confdefs.h
<<_ACEOF
7384 #define GATHER_STATISTICS $gather_stats
7388 # Check whether --enable-valgrind-annotations was given.
7389 if test "${enable_valgrind_annotations+set}" = set; then :
7390 enableval
=$enable_valgrind_annotations;
7392 enable_valgrind_annotations
=no
7395 if test x
$enable_valgrind_annotations != xno \
7396 ||
test x
$ac_valgrind_checking != x
; then
7397 if (test $have_valgrind_h = no \
7398 && test $gcc_cv_header_memcheck_h = no \
7399 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7400 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7403 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7407 # -------------------------------
7408 # Miscenalleous configure options
7409 # -------------------------------
7413 # Check whether --with-stabs was given.
7414 if test "${with_stabs+set}" = set; then :
7415 withval
=$with_stabs; stabs
="$with_stabs"
7421 # Determine whether or not multilibs are enabled.
7422 # Check whether --enable-multilib was given.
7423 if test "${enable_multilib+set}" = set; then :
7424 enableval
=$enable_multilib;
7431 # Determine whether or not multiarch is enabled.
7432 # Check whether --enable-multiarch was given.
7433 if test "${enable_multiarch+set}" = set; then :
7434 enableval
=$enable_multiarch; case "${enableval}" in
7435 yes|no|auto
) enable_multiarch
=$enableval;;
7436 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7439 enable_multiarch
=auto
7442 if test x
${enable_multiarch} = xauto
; then
7443 if test x
${with_native_system_header_dir} != x
; then
7444 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7447 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7448 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7453 $as_echo_n "checking for multiarch configuration... " >&6; }
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7456 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7458 # needed for setting the multiarch name for soft-float/hard-float ABIs
7462 # Enable __cxa_atexit for C++.
7463 # Check whether --enable-__cxa_atexit was given.
7464 if test "${enable___cxa_atexit+set}" = set; then :
7465 enableval
=$enable___cxa_atexit;
7469 # Enable C extension for decimal float if target supports it.
7471 # Check whether --enable-decimal-float was given.
7472 if test "${enable_decimal_float+set}" = set; then :
7473 enableval
=$enable_decimal_float;
7474 case $enable_decimal_float in
7475 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7476 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7477 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7483 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7484 i?
86*-*-elfiamcu | i?
86*-*-gnu* | \
7485 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7486 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7487 enable_decimal_float
=yes
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7491 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7492 enable_decimal_float
=no
7499 # x86's use BID format instead of DPD
7500 case x
$enable_decimal_float in
7503 i?
86*-*-* | x86_64
*-*-*)
7504 enable_decimal_float
=bid
7507 enable_decimal_float
=dpd
7510 default_decimal_float
=$enable_decimal_float
7513 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7514 # dependency on libdecnumber.
7515 default_decimal_float
=dpd
7522 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7524 cat >>confdefs.h
<<_ACEOF
7525 #define ENABLE_DECIMAL_FLOAT $dfp
7529 # Use default_decimal_float for dependency.
7530 enable_decimal_float
=$default_decimal_float
7532 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7534 cat >>confdefs.h
<<_ACEOF
7535 #define ENABLE_DECIMAL_BID_FORMAT $bid
7539 # Enable C extension for fixed-point arithmetic.
7540 # Check whether --enable-fixed-point was given.
7541 if test "${enable_fixed_point+set}" = set; then :
7542 enableval
=$enable_fixed_point;
7547 enable_fixed_point
=yes
7551 enable_fixed_point
=yes
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7555 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7556 enable_fixed_point
=no
7564 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7566 cat >>confdefs.h
<<_ACEOF
7567 #define ENABLE_FIXED_POINT $fixedpoint
7572 # Pass with no value to take the default
7573 # Pass with a value to specify a thread package
7574 # Check whether --enable-threads was given.
7575 if test "${enable_threads+set}" = set; then :
7576 enableval
=$enable_threads;
7582 # Check whether --enable-tls was given.
7583 if test "${enable_tls+set}" = set; then :
7584 enableval
=$enable_tls;
7587 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7588 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7596 # Check whether --enable-objc-gc was given.
7597 if test "${enable_objc_gc+set}" = set; then :
7598 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7609 # Check whether --with-dwarf2 was given.
7610 if test "${with_dwarf2+set}" = set; then :
7611 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7617 # Check whether --enable-shared was given.
7618 if test "${enable_shared+set}" = set; then :
7619 enableval
=$enable_shared;
7620 case $enable_shared in
7624 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7625 for pkg
in $enableval; do
7626 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7641 # Check whether --with-specs was given.
7642 if test "${with_specs+set}" = set; then :
7643 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7653 # Check whether --with-pkgversion was given.
7654 if test "${with_pkgversion+set}" = set; then :
7655 withval
=$with_pkgversion; case "$withval" in
7656 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7658 *) PKGVERSION
="($withval) " ;;
7669 # Check whether --with-bugurl was given.
7670 if test "${with_bugurl+set}" = set; then :
7671 withval
=$with_bugurl; case "$withval" in
7672 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7675 *) BUGURL
="$withval"
7679 BUGURL
="http://gcc.gnu.org/bugs.html"
7689 REPORT_BUGS_TO
="<$BUGURL>"
7690 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7697 # Sanity check enable_languages in case someone does not run the toplevel
7698 # configure # script.
7699 # Check whether --enable-languages was given.
7700 if test "${enable_languages+set}" = set; then :
7701 enableval
=$enable_languages; case ,${enable_languages}, in
7703 # go safe -- we cannot be much sure without the toplevel
7705 # analysis of which target libs are present and usable
7709 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7714 enable_languages
=c
,${enable_languages}
7722 if test x
"$enable_as_accelerator_for" != x
; then
7724 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7726 enable_as_accelerator
=yes
7729 # In this case we expect offload compiler to be built as native, so we
7730 # need to rename the driver to avoid clashes with host's drivers.
7731 program_transform_name
="s&^&${target}-&" ;;
7733 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7734 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7735 accel_dir_suffix
=/accel
/${target_noncanonical}
7736 real_target_noncanonical
=${enable_as_accelerator_for}
7742 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7743 tgt
=`echo $tgt | sed 's/=.*//'`
7745 if echo "$tgt" |
grep "^hsa" > /dev
/null
; then
7751 if test x
"$offload_targets" = x
; then
7752 offload_targets
=$tgt
7754 offload_targets
="$offload_targets,$tgt"
7758 cat >>confdefs.h
<<_ACEOF
7759 #define OFFLOAD_TARGETS "$offload_targets"
7762 if test x
"$enable_offloading" != x
; then
7764 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7768 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7772 if test x
"$enable_hsa" = x1
; then
7774 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7779 # Check whether --with-multilib-list was given.
7780 if test "${with_multilib_list+set}" = set; then :
7781 withval
=$with_multilib_list; :
7783 with_multilib_list
=default
7787 # -------------------------
7788 # Checks for other programs
7789 # -------------------------
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7792 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7794 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7795 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7796 $as_echo_n "(cached) " >&6
7798 cat >conftest.
make <<\_ACEOF
7801 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7803 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7804 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7806 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7808 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7812 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7814 $as_echo "yes" >&6; }
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7819 SET_MAKE
="MAKE=${MAKE-make}"
7823 # Find some useful tools
7824 for ac_prog
in gawk mawk nawk
awk
7826 # Extract the first word of "$ac_prog", so it can be a program name with args.
7827 set dummy
$ac_prog; ac_word
=$2
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7829 $as_echo_n "checking for $ac_word... " >&6; }
7830 if test "${ac_cv_prog_AWK+set}" = set; then :
7831 $as_echo_n "(cached) " >&6
7833 if test -n "$AWK"; then
7834 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7836 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7840 test -z "$as_dir" && as_dir
=.
7841 for ac_exec_ext
in '' $ac_executable_extensions; do
7842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7843 ac_cv_prog_AWK
="$ac_prog"
7844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 if test -n "$AWK"; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7856 $as_echo "$AWK" >&6; }
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 $as_echo "no" >&6; }
7863 test -n "$AWK" && break
7866 # We need awk to create options.c and options.h.
7867 # Bail out if it's missing.
7869 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7873 $as_echo_n "checking whether ln -s works... " >&6; }
7874 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7875 $as_echo_n "(cached) " >&6
7877 rm -f conftestdata_t
7878 echo >conftestdata_f
7879 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7881 gcc_cv_prog_LN_S
="ln -s"
7883 if ln conftestdata_f conftestdata_t
2>/dev
/null
7887 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7889 gcc_cv_prog_LN_S
="cp -p"
7895 rm -f conftestdata_f conftestdata_t
7898 LN_S
="$gcc_cv_prog_LN_S"
7899 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7901 $as_echo "yes" >&6; }
7903 if test "$gcc_cv_prog_LN_S" = "ln"; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7905 $as_echo "no, using ln" >&6; }
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7908 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7913 $as_echo_n "checking whether ln works... " >&6; }
7914 if test "${acx_cv_prog_LN+set}" = set; then :
7915 $as_echo_n "(cached) " >&6
7917 rm -f conftestdata_t
7918 echo >conftestdata_f
7919 if ln conftestdata_f conftestdata_t
2>/dev
/null
7925 rm -f conftestdata_f conftestdata_t
7928 if test $acx_cv_prog_LN = no
; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7931 $as_echo "no, using $LN" >&6; }
7933 LN
="$acx_cv_prog_LN"
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7935 $as_echo "yes" >&6; }
7938 if test -n "$ac_tool_prefix"; then
7939 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7940 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942 $as_echo_n "checking for $ac_word... " >&6; }
7943 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7944 $as_echo_n "(cached) " >&6
7946 if test -n "$RANLIB"; then
7947 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7953 test -z "$as_dir" && as_dir
=.
7954 for ac_exec_ext
in '' $ac_executable_extensions; do
7955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7956 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7966 RANLIB
=$ac_cv_prog_RANLIB
7967 if test -n "$RANLIB"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7969 $as_echo "$RANLIB" >&6; }
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 $as_echo "no" >&6; }
7977 if test -z "$ac_cv_prog_RANLIB"; then
7978 ac_ct_RANLIB
=$RANLIB
7979 # Extract the first word of "ranlib", so it can be a program name with args.
7980 set dummy ranlib
; ac_word
=$2
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982 $as_echo_n "checking for $ac_word... " >&6; }
7983 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7984 $as_echo_n "(cached) " >&6
7986 if test -n "$ac_ct_RANLIB"; then
7987 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7993 test -z "$as_dir" && as_dir
=.
7994 for ac_exec_ext
in '' $ac_executable_extensions; do
7995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7996 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8006 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8007 if test -n "$ac_ct_RANLIB"; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8009 $as_echo "$ac_ct_RANLIB" >&6; }
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 $as_echo "no" >&6; }
8015 if test "x$ac_ct_RANLIB" = x
; then
8018 case $cross_compiling:$ac_tool_warned in
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8022 ac_tool_warned
=yes ;;
8024 RANLIB
=$ac_ct_RANLIB
8027 RANLIB
="$ac_cv_prog_RANLIB"
8033 # Find a good install program. We prefer a C program (faster),
8034 # so one script is as good as another. But avoid the broken or
8035 # incompatible versions:
8036 # SysV /etc/install, /usr/sbin/install
8037 # SunOS /usr/etc/install
8038 # IRIX /sbin/install
8040 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8041 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8042 # ./install, which can be erroneously created by make from ./install.sh.
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8044 $as_echo_n "checking for a BSD compatible install... " >&6; }
8045 if test -z "$INSTALL"; then
8046 if test "${ac_cv_path_install+set}" = set; then :
8047 $as_echo_n "(cached) " >&6
8049 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8050 for ac_dir
in $PATH; do
8051 # Account for people who put trailing slashes in PATH elements.
8053 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8055 # OSF1 and SCO ODT 3.0 have their own names for install.
8056 for ac_prog
in ginstall scoinst
install; do
8057 if test -f $ac_dir/$ac_prog; then
8058 if test $ac_prog = install &&
8059 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8060 # AIX install. It has an incompatible calling convention.
8061 # OSF/1 installbsd also uses dspmsg, but is usable.
8064 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8075 if test "${ac_cv_path_install+set}" = set; then
8076 INSTALL
="$ac_cv_path_install"
8078 # As a last resort, use the slow shell script. We don't cache a
8079 # path for INSTALL within a source directory, because that will
8080 # break other packages using the cache if that directory is
8081 # removed, or if the path is relative.
8082 INSTALL
="$ac_install_sh"
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8086 $as_echo "$INSTALL" >&6; }
8088 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8089 # It thinks the first close brace ends the variable substitution.
8090 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8092 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8095 # See if cmp has --ignore-initial.
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8097 $as_echo_n "checking for cmp's capabilities... " >&6; }
8098 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8099 $as_echo_n "(cached) " >&6
8103 gcc_cv_prog_cmp_skip
=slowcompare
8104 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8105 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8108 gcc_cv_prog_cmp_skip
=gnucompare
8111 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8112 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8113 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8116 gcc_cv_prog_cmp_skip
=fastcompare
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8124 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8125 make_compare_target
=$gcc_cv_prog_cmp_skip
8129 # See if we have the mktemp command.
8130 # Extract the first word of "mktemp", so it can be a program name with args.
8131 set dummy mktemp
; ac_word
=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8137 if test -n "$have_mktemp_command"; then
8138 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8144 test -z "$as_dir" && as_dir
=.
8145 for ac_exec_ext
in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_prog_have_mktemp_command
="yes"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8155 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8158 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8159 if test -n "$have_mktemp_command"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8161 $as_echo "$have_mktemp_command" >&6; }
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8169 # See if makeinfo has been installed and is modern enough
8170 # that we can use it.
8172 # Extract the first word of "makeinfo", so it can be a program name with args.
8173 set dummy makeinfo
; ac_word
=$2
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
8179 if test -n "$MAKEINFO"; then
8180 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8186 test -z "$as_dir" && as_dir
=.
8187 for ac_exec_ext
in '' $ac_executable_extensions; do
8188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8189 ac_cv_prog_MAKEINFO
="makeinfo"
8190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8199 MAKEINFO
=$ac_cv_prog_MAKEINFO
8200 if test -n "$MAKEINFO"; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8202 $as_echo "$MAKEINFO" >&6; }
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8209 if test -n "$MAKEINFO"; then
8210 # Found it, now check the version.
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8212 $as_echo_n "checking for modern makeinfo... " >&6; }
8213 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8214 $as_echo_n "(cached) " >&6
8216 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8217 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8219 case $ac_prog_version in
8220 '') gcc_cv_prog_makeinfo_modern
=no
;;
8221 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8222 *) gcc_cv_prog_makeinfo_modern
=no
;;
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8227 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8229 gcc_cv_prog_makeinfo_modern
=no
8231 if test $gcc_cv_prog_makeinfo_modern = no
; then
8232 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8235 if test $gcc_cv_prog_makeinfo_modern = no
; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8237 *** Makeinfo is missing or too old.
8238 *** Info documentation will not be built." >&5
8239 $as_echo "$as_me: WARNING:
8240 *** Makeinfo is missing or too old.
8241 *** Info documentation will not be built." >&2;}
8248 # Is pod2man recent enough to regenerate manpages?
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8250 $as_echo_n "checking for recent Pod::Man... " >&6; }
8251 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8253 $as_echo "yes" >&6; }
8254 GENERATED_MANPAGES
=generated-manpages
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257 $as_echo "no" >&6; }
8262 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8267 # Extract the first word of "$ac_prog", so it can be a program name with args.
8268 set dummy
$ac_prog; ac_word
=$2
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270 $as_echo_n "checking for $ac_word... " >&6; }
8271 if test "${ac_cv_prog_FLEX+set}" = set; then :
8272 $as_echo_n "(cached) " >&6
8274 if test -n "$FLEX"; then
8275 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8281 test -z "$as_dir" && as_dir
=.
8282 for ac_exec_ext
in '' $ac_executable_extensions; do
8283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8284 ac_cv_prog_FLEX
="$ac_prog"
8285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8294 FLEX
=$ac_cv_prog_FLEX
8295 if test -n "$FLEX"; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8297 $as_echo "$FLEX" >&6; }
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 $as_echo "no" >&6; }
8304 test -n "$FLEX" && break
8306 test -n "$FLEX" || FLEX
="$MISSING flex"
8310 for ac_prog
in bison
8312 # Extract the first word of "$ac_prog", so it can be a program name with args.
8313 set dummy
$ac_prog; ac_word
=$2
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315 $as_echo_n "checking for $ac_word... " >&6; }
8316 if test "${ac_cv_prog_BISON+set}" = set; then :
8317 $as_echo_n "(cached) " >&6
8319 if test -n "$BISON"; then
8320 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8326 test -z "$as_dir" && as_dir
=.
8327 for ac_exec_ext
in '' $ac_executable_extensions; do
8328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8329 ac_cv_prog_BISON
="$ac_prog"
8330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8339 BISON
=$ac_cv_prog_BISON
8340 if test -n "$BISON"; then
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8342 $as_echo "$BISON" >&6; }
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 $as_echo "no" >&6; }
8349 test -n "$BISON" && break
8351 test -n "$BISON" || BISON
="$MISSING bison"
8354 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8355 # check for build == host before using them.
8358 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8359 && test -d ..
/binutils
; then
8360 NM
='${objdir}/../binutils/nm-new'
8362 # Extract the first word of "nm", so it can be a program name with args.
8363 set dummy nm
; ac_word
=$2
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8365 $as_echo_n "checking for $ac_word... " >&6; }
8366 if test "${ac_cv_prog_NM+set}" = set; then :
8367 $as_echo_n "(cached) " >&6
8369 if test -n "$NM"; then
8370 ac_cv_prog_NM
="$NM" # Let the user override the test.
8372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8376 test -z "$as_dir" && as_dir
=.
8377 for ac_exec_ext
in '' $ac_executable_extensions; do
8378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8387 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8391 if test -n "$NM"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8393 $as_echo "$NM" >&6; }
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396 $as_echo "no" >&6; }
8403 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8404 && test -d ..
/binutils
; then
8405 AR
='${objdir}/../binutils/ar'
8407 # Extract the first word of "ar", so it can be a program name with args.
8408 set dummy
ar; ac_word
=$2
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8410 $as_echo_n "checking for $ac_word... " >&6; }
8411 if test "${ac_cv_prog_AR+set}" = set; then :
8412 $as_echo_n "(cached) " >&6
8414 if test -n "$AR"; then
8415 ac_cv_prog_AR
="$AR" # Let the user override the test.
8417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8421 test -z "$as_dir" && as_dir
=.
8422 for ac_exec_ext
in '' $ac_executable_extensions; do
8423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8432 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8436 if test -n "$AR"; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8438 $as_echo "$AR" >&6; }
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441 $as_echo "no" >&6; }
8447 # The jit documentation looks better if built with sphinx, but can be
8448 # built with texinfo if sphinx is not available.
8449 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8450 # Extract the first word of "sphinx-build", so it can be a program name with args.
8451 set dummy sphinx-build
; ac_word
=$2
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8453 $as_echo_n "checking for $ac_word... " >&6; }
8454 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8455 $as_echo_n "(cached) " >&6
8457 if test -n "$doc_build_sys"; then
8458 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8464 test -z "$as_dir" && as_dir
=.
8465 for ac_exec_ext
in '' $ac_executable_extensions; do
8466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8467 ac_cv_prog_doc_build_sys
="sphinx"
8468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8475 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8478 doc_build_sys
=$ac_cv_prog_doc_build_sys
8479 if test -n "$doc_build_sys"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8481 $as_echo "$doc_build_sys" >&6; }
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8489 # --------------------
8490 # Checks for C headers
8491 # --------------------
8493 # Need to reject headers which give warnings, so that the -Werror bootstrap
8494 # works later. *sigh* This needs to come before all header checks.
8496 ac_c_preproc_warn_flag
=yes
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8499 $as_echo_n "checking for ANSI C header files... " >&6; }
8500 if test "${ac_cv_header_stdc+set}" = set; then :
8501 $as_echo_n "(cached) " >&6
8503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8518 if ac_fn_cxx_try_compile
"$LINENO"; then :
8519 ac_cv_header_stdc
=yes
8521 ac_cv_header_stdc
=no
8523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8525 if test $ac_cv_header_stdc = yes; then
8526 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h. */
8532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8533 $EGREP "memchr" >/dev
/null
2>&1; then :
8536 ac_cv_header_stdc
=no
8542 if test $ac_cv_header_stdc = yes; then
8543 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8545 /* end confdefs.h. */
8549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8550 $EGREP "free" >/dev
/null
2>&1; then :
8553 ac_cv_header_stdc
=no
8559 if test $ac_cv_header_stdc = yes; then
8560 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8561 if test "$cross_compiling" = yes; then :
8564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8565 /* end confdefs.h. */
8568 #if ((' ' & 0x0FF) == 0x020)
8569 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8570 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8572 # define ISLOWER(c) \
8573 (('a' <= (c) && (c) <= 'i') \
8574 || ('j' <= (c) && (c) <= 'r') \
8575 || ('s' <= (c) && (c) <= 'z'))
8576 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8579 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8584 for (i = 0; i < 256; i++)
8585 if (XOR (islower (i), ISLOWER (i))
8586 || toupper (i) != TOUPPER (i))
8591 if ac_fn_cxx_try_run
"$LINENO"; then :
8594 ac_cv_header_stdc
=no
8596 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8597 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8603 $as_echo "$ac_cv_header_stdc" >&6; }
8604 if test $ac_cv_header_stdc = yes; then
8606 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8611 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8612 if test "${ac_cv_header_time+set}" = set; then :
8613 $as_echo_n "(cached) " >&6
8615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8616 /* end confdefs.h. */
8617 #include <sys/types.h>
8618 #include <sys/time.h>
8624 if ((struct tm *) 0)
8630 if ac_fn_cxx_try_compile
"$LINENO"; then :
8631 ac_cv_header_time
=yes
8633 ac_cv_header_time
=no
8635 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8638 $as_echo "$ac_cv_header_time" >&6; }
8639 if test $ac_cv_header_time = yes; then
8641 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8646 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8647 if test "${gcc_cv_header_string+set}" = set; then :
8648 $as_echo_n "(cached) " >&6
8650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8651 /* end confdefs.h. */
8653 #include <strings.h>
8662 if ac_fn_cxx_try_compile
"$LINENO"; then :
8663 gcc_cv_header_string
=yes
8665 gcc_cv_header_string
=no
8667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8670 $as_echo "$gcc_cv_header_string" >&6; }
8671 if test $gcc_cv_header_string = yes; then
8673 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8678 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8679 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8680 $as_echo_n "(cached) " >&6
8682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8683 /* end confdefs.h. */
8684 #include <sys/types.h>
8685 #include <sys/wait.h>
8687 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8690 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8698 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8703 if ac_fn_cxx_try_compile
"$LINENO"; then :
8704 ac_cv_header_sys_wait_h
=yes
8706 ac_cv_header_sys_wait_h
=no
8708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8711 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8712 if test $ac_cv_header_sys_wait_h = yes; then
8714 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8719 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8720 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8721 $as_echo_n "(cached) " >&6
8723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8724 /* end confdefs.h. */
8725 #include <sys/types.h>
8726 #include <termios.h>
8732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8733 $EGREP "yes" >/dev
/null
2>&1; then :
8734 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8736 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8742 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8744 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8746 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8747 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8748 $as_echo_n "(cached) " >&6
8750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h. */
8752 #include <sys/types.h>
8753 #include <sys/ioctl.h>
8759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8760 $EGREP "yes" >/dev
/null
2>&1; then :
8761 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8763 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8769 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8771 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8773 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8778 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8779 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8780 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8781 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8783 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8784 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8785 eval as_val
=\$
$as_ac_Header
8786 if test "x$as_val" = x
""yes; then :
8787 cat >>confdefs.h
<<_ACEOF
8788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8795 # Check for thread headers.
8796 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8797 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8803 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8804 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8811 # These tests can't be done till we know if we have limits.h.
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8813 $as_echo_n "checking for CHAR_BIT... " >&6; }
8814 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8815 $as_echo_n "(cached) " >&6
8817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8818 /* end confdefs.h. */
8819 #ifdef HAVE_LIMITS_H
8826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8827 $EGREP "found" >/dev
/null
2>&1; then :
8828 gcc_cv_decl_char_bit
=yes
8830 gcc_cv_decl_char_bit
=no
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8837 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8838 if test $gcc_cv_decl_char_bit = no
; then
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8840 $as_echo_n "checking number of bits in a byte... " >&6; }
8841 if test "${gcc_cv_c_nbby+set}" = set; then :
8842 $as_echo_n "(cached) " >&6
8846 while test $i -lt 65; do
8847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h. */
8854 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8855 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8861 if ac_fn_cxx_try_compile
"$LINENO"; then :
8862 gcc_cv_c_nbby
=$i; break
8864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8867 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8871 $as_echo "$gcc_cv_c_nbby" >&6; }
8872 if test $gcc_cv_c_nbby = failed
; then
8873 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8876 cat >>confdefs.h
<<_ACEOF
8877 #define CHAR_BIT $gcc_cv_c_nbby
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8883 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8884 if test "${ac_cv_c_bigendian+set}" = set; then :
8885 $as_echo_n "(cached) " >&6
8887 ac_cv_c_bigendian
=unknown
8888 # See if we're dealing with a universal compiler.
8889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h. */
8891 #ifndef __APPLE_CC__
8892 not a universal capable compiler
8897 if ac_fn_cxx_try_compile
"$LINENO"; then :
8899 # Check for potential -arch flags. It is not universal unless
8900 # there are at least two -arch flags with different values.
8903 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8904 if test -n "$ac_prev"; then
8906 i?
86 | x86_64 | ppc | ppc64
)
8907 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8910 ac_cv_c_bigendian
=universal
8916 elif test "x$ac_word" = "x-arch"; then
8921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8922 if test $ac_cv_c_bigendian = unknown
; then
8923 # See if sys/param.h defines the BYTE_ORDER macro.
8924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8926 #include <sys/types.h>
8927 #include <sys/param.h>
8932 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8933 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8942 if ac_fn_cxx_try_compile
"$LINENO"; then :
8943 # It does; now see whether it defined to BIG_ENDIAN or not.
8944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8945 /* end confdefs.h. */
8946 #include <sys/types.h>
8947 #include <sys/param.h>
8952 #if BYTE_ORDER != BIG_ENDIAN
8960 if ac_fn_cxx_try_compile
"$LINENO"; then :
8961 ac_cv_c_bigendian
=yes
8963 ac_cv_c_bigendian
=no
8965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8969 if test $ac_cv_c_bigendian = unknown
; then
8970 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8972 /* end confdefs.h. */
8978 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8986 if ac_fn_cxx_try_compile
"$LINENO"; then :
8987 # It does; now see whether it defined to _BIG_ENDIAN or not.
8988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8989 /* end confdefs.h. */
9003 if ac_fn_cxx_try_compile
"$LINENO"; then :
9004 ac_cv_c_bigendian
=yes
9006 ac_cv_c_bigendian
=no
9008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9012 if test $ac_cv_c_bigendian = unknown
; then
9013 # Compile a test program.
9014 if test "$cross_compiling" = yes; then :
9015 # Try to guess by grepping values from an object file.
9016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h. */
9018 short int ascii_mm[] =
9019 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9020 short int ascii_ii[] =
9021 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9022 int use_ascii (int i) {
9023 return ascii_mm[i] + ascii_ii[i];
9025 short int ebcdic_ii[] =
9026 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9027 short int ebcdic_mm[] =
9028 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9029 int use_ebcdic (int i) {
9030 return ebcdic_mm[i] + ebcdic_ii[i];
9037 return use_ascii (foo) == use_ebcdic (foo);
9042 if ac_fn_cxx_try_compile
"$LINENO"; then :
9043 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9044 ac_cv_c_bigendian
=yes
9046 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9047 if test "$ac_cv_c_bigendian" = unknown
; then
9048 ac_cv_c_bigendian
=no
9050 # finding both strings is unlikely to happen, but who knows?
9051 ac_cv_c_bigendian
=unknown
9055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9058 /* end confdefs.h. */
9059 $ac_includes_default
9064 /* Are we little or big endian? From Harbison&Steele. */
9068 char c[sizeof (long int)];
9071 return u.c[sizeof (long int) - 1] == 1;
9077 if ac_fn_cxx_try_run
"$LINENO"; then :
9078 ac_cv_c_bigendian
=no
9080 ac_cv_c_bigendian
=yes
9082 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9083 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9089 $as_echo "$ac_cv_c_bigendian" >&6; }
9090 case $ac_cv_c_bigendian in #(
9092 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9098 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9102 as_fn_error
"unknown endianness
9103 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9107 # ----------------------
9108 # Checks for C++ headers
9109 # ----------------------
9112 ac_cpp
='$CXXCPP $CPPFLAGS'
9113 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9114 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9115 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9117 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9118 if test -z "$CXXCPP"; then
9119 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9120 $as_echo_n "(cached) " >&6
9122 # Double quotes because CXXCPP needs to be expanded
9123 for CXXCPP
in "$CXX -E" "/lib/cpp"
9126 for ac_cxx_preproc_warn_flag
in '' yes
9128 # Use a header file that comes with gcc, so configuring glibc
9129 # with a fresh cross-compiler works.
9130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9131 # <limits.h> exists even on freestanding compilers.
9132 # On the NeXT, cc -E runs the code through the compiler's parser,
9133 # not just through cpp. "Syntax error" is here to catch this case.
9134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9137 # include <limits.h>
9139 # include <assert.h>
9143 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9146 # Broken: fails on valid input.
9149 rm -f conftest.err conftest.
$ac_ext
9151 # OK, works on sane cases. Now check whether nonexistent headers
9152 # can be detected and how.
9153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9155 #include <ac_nonexistent.h>
9157 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9158 # Broken: success on invalid input.
9161 # Passes both tests.
9165 rm -f conftest.err conftest.
$ac_ext
9168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9169 rm -f conftest.err conftest.
$ac_ext
9170 if $ac_preproc_ok; then :
9175 ac_cv_prog_CXXCPP
=$CXXCPP
9178 CXXCPP
=$ac_cv_prog_CXXCPP
9180 ac_cv_prog_CXXCPP
=$CXXCPP
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9183 $as_echo "$CXXCPP" >&6; }
9185 for ac_cxx_preproc_warn_flag
in '' yes
9187 # Use a header file that comes with gcc, so configuring glibc
9188 # with a fresh cross-compiler works.
9189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9190 # <limits.h> exists even on freestanding compilers.
9191 # On the NeXT, cc -E runs the code through the compiler's parser,
9192 # not just through cpp. "Syntax error" is here to catch this case.
9193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9194 /* end confdefs.h. */
9196 # include <limits.h>
9198 # include <assert.h>
9202 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9205 # Broken: fails on valid input.
9208 rm -f conftest.err conftest.
$ac_ext
9210 # OK, works on sane cases. Now check whether nonexistent headers
9211 # can be detected and how.
9212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214 #include <ac_nonexistent.h>
9216 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9217 # Broken: success on invalid input.
9220 # Passes both tests.
9224 rm -f conftest.err conftest.
$ac_ext
9227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9228 rm -f conftest.err conftest.
$ac_ext
9229 if $ac_preproc_ok; then :
9232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9235 See \`config.log' for more details." >&5
9236 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9237 See \`config.log' for more details." >&2;}; }
9241 ac_cpp
='$CXXCPP $CPPFLAGS'
9242 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9243 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9244 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9247 for ac_header
in unordered_map
9249 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9250 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
9251 cat >>confdefs.h
<<_ACEOF
9252 #define HAVE_UNORDERED_MAP 1
9258 for ac_header
in tr1/unordered_map
9260 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9261 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9262 cat >>confdefs.h
<<_ACEOF
9263 #define HAVE_TR1_UNORDERED_MAP 1
9269 for ac_header
in ext
/hash_map
9271 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9272 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9273 cat >>confdefs.h
<<_ACEOF
9274 #define HAVE_EXT_HASH_MAP 1
9282 # Dependency checking.
9285 rm -rf .tst
2>/dev
/null
9286 mkdir .tst
2>/dev
/null
9287 if test -d .tst
; then
9292 rmdir .tst
2>/dev
/null
9294 DEPDIR
="${am__leading_dot}deps"
9296 ac_config_commands
="$ac_config_commands depdir"
9299 ac_config_commands
="$ac_config_commands gccdepdir"
9302 depcc
="$CXX" am_compiler_list
=
9304 am_depcomp
=$ac_aux_dir/depcomp
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9306 $as_echo_n "checking dependency style of $depcc... " >&6; }
9307 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9308 $as_echo_n "(cached) " >&6
9310 if test -f "$am_depcomp"; then
9311 # We make a subdir and do the tests there. Otherwise we can end up
9312 # making bogus files that we don't know about and never remove. For
9313 # instance it was reported that on HP-UX the gcc test will end up
9314 # making a dummy file named `D' -- because `-MD' means `put the output
9317 # Copy depcomp to subdir because otherwise we won't find it if we're
9318 # using a relative directory.
9319 cp "$am_depcomp" conftest.dir
9321 # We will build objects and dependencies in a subdirectory because
9322 # it helps to detect inapplicable dependency modes. For instance
9323 # both Tru64's cc and ICC support -MD to output dependencies as a
9324 # side effect of compilation, but ICC will put the dependencies in
9325 # the current directory while Tru64 will put them in the object
9329 am_cv_CXX_dependencies_compiler_type
=none
9330 if test "$am_compiler_list" = ""; then
9331 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9333 for depmode
in $am_compiler_list; do
9334 if test $depmode = none
; then break; fi
9336 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9337 # Setup a source with many dependencies, because some compilers
9338 # like to wrap large dependency lists on column 80 (with \), and
9339 # we should not choose a depcomp mode which is confused by this.
9341 # We need to recreate these files for each test, as the compiler may
9342 # overwrite some of them when testing with obscure command lines.
9343 # This happens at least with the AIX C compiler.
9345 for i
in 1 2 3 4 5 6; do
9346 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9347 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9348 # Solaris 8's {/usr,}/bin/sh.
9349 touch sub
/conftst
$i.h
9351 echo "include sub/conftest.Po" > confmf
9353 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9354 # mode. It turns out that the SunPro C++ compiler does not properly
9355 # handle `-M -o', and we need to detect this.
9356 depcmd
="depmode=$depmode \
9357 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9358 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9359 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9360 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9361 if env
$depcmd > conftest.err
2>&1 &&
9362 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9363 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9364 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9365 # icc doesn't choke on unknown options, it will just issue warnings
9366 # or remarks (even with -Werror). So we grep stderr for any message
9367 # that says an option was ignored or not supported.
9368 # When given -MP, icc 7.0 and 7.1 complain thusly:
9369 # icc: Command line warning: ignoring option '-M'; no argument required
9370 # The diagnosis changed in icc 8.0:
9371 # icc: Command line remark: option '-MP' not supported
9372 if (grep 'ignoring option' conftest.err ||
9373 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9374 am_cv_CXX_dependencies_compiler_type
=$depmode
9375 $as_echo "$as_me:$LINENO: success" >&5
9379 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9380 sed -e 's/^/| /' < conftest.err
>&5
9386 am_cv_CXX_dependencies_compiler_type
=none
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9391 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9392 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9393 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9394 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9404 # These libraries may be used by collect2.
9405 # We may need a special search path to get them linked.
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9407 $as_echo_n "checking for collect2 libraries... " >&6; }
9408 if test "${gcc_cv_collect2_libs+set}" = set; then :
9409 $as_echo_n "(cached) " >&6
9412 for libs
in '' -lld -lmld \
9413 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9414 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9418 /* end confdefs.h. */
9420 /* Override any GCC internal prototype to avoid an error.
9421 Use char because int might match the return type of a GCC
9422 builtin and then its argument prototype would still apply. */
9435 if ac_fn_cxx_try_link
"$LINENO"; then :
9436 gcc_cv_collect2_libs
="$libs"; break
9438 rm -f core conftest.err conftest.
$ac_objext \
9439 conftest
$ac_exeext conftest.
$ac_ext
9442 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9445 $as_echo "$gcc_cv_collect2_libs" >&6; }
9446 case $gcc_cv_collect2_libs in
9448 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9452 # When building Ada code on Alpha, we need exc_resume which is usually in
9453 # -lexc. So test for it.
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9457 $as_echo_n "checking for library containing exc_resume... " >&6; }
9458 if test "${ac_cv_search_exc_resume+set}" = set; then :
9459 $as_echo_n "(cached) " >&6
9461 ac_func_search_save_LIBS
=$LIBS
9462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9465 /* Override any GCC internal prototype to avoid an error.
9466 Use char because int might match the return type of a GCC
9467 builtin and then its argument prototype would still apply. */
9475 return exc_resume ();
9480 for ac_lib
in '' exc
; do
9481 if test -z "$ac_lib"; then
9482 ac_res
="none required"
9485 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9487 if ac_fn_cxx_try_link
"$LINENO"; then :
9488 ac_cv_search_exc_resume
=$ac_res
9490 rm -f core conftest.err conftest.
$ac_objext \
9492 if test "${ac_cv_search_exc_resume+set}" = set; then :
9496 if test "${ac_cv_search_exc_resume+set}" = set; then :
9499 ac_cv_search_exc_resume
=no
9502 LIBS
=$ac_func_search_save_LIBS
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9505 $as_echo "$ac_cv_search_exc_resume" >&6; }
9506 ac_res
=$ac_cv_search_exc_resume
9507 if test "$ac_res" != no
; then :
9508 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9516 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9520 $as_echo_n "checking for library containing kstat_open... " >&6; }
9521 if test "${ac_cv_search_kstat_open+set}" = set; then :
9522 $as_echo_n "(cached) " >&6
9524 ac_func_search_save_LIBS
=$LIBS
9525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h. */
9528 /* Override any GCC internal prototype to avoid an error.
9529 Use char because int might match the return type of a GCC
9530 builtin and then its argument prototype would still apply. */
9538 return kstat_open ();
9543 for ac_lib
in '' kstat
; do
9544 if test -z "$ac_lib"; then
9545 ac_res
="none required"
9548 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9550 if ac_fn_cxx_try_link
"$LINENO"; then :
9551 ac_cv_search_kstat_open
=$ac_res
9553 rm -f core conftest.err conftest.
$ac_objext \
9555 if test "${ac_cv_search_kstat_open+set}" = set; then :
9559 if test "${ac_cv_search_kstat_open+set}" = set; then :
9562 ac_cv_search_kstat_open
=no
9565 LIBS
=$ac_func_search_save_LIBS
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9568 $as_echo "$ac_cv_search_kstat_open" >&6; }
9569 ac_res
=$ac_cv_search_kstat_open
9570 if test "$ac_res" != no
; then :
9571 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9575 EXTRA_GCC_LIBS
="$LIBS"
9579 # Some systems put ldexp and frexp in libm instead of libc; assume
9580 # they're both in the same place. jcf-dump needs them.
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9584 $as_echo_n "checking for library containing ldexp... " >&6; }
9585 if test "${ac_cv_search_ldexp+set}" = set; then :
9586 $as_echo_n "(cached) " >&6
9588 ac_func_search_save_LIBS
=$LIBS
9589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9590 /* end confdefs.h. */
9592 /* Override any GCC internal prototype to avoid an error.
9593 Use char because int might match the return type of a GCC
9594 builtin and then its argument prototype would still apply. */
9607 for ac_lib
in '' m
; do
9608 if test -z "$ac_lib"; then
9609 ac_res
="none required"
9612 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9614 if ac_fn_cxx_try_link
"$LINENO"; then :
9615 ac_cv_search_ldexp
=$ac_res
9617 rm -f core conftest.err conftest.
$ac_objext \
9619 if test "${ac_cv_search_ldexp+set}" = set; then :
9623 if test "${ac_cv_search_ldexp+set}" = set; then :
9626 ac_cv_search_ldexp
=no
9629 LIBS
=$ac_func_search_save_LIBS
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9632 $as_echo "$ac_cv_search_ldexp" >&6; }
9633 ac_res
=$ac_cv_search_ldexp
9634 if test "$ac_res" != no
; then :
9635 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9643 # Use <inttypes.h> only if it exists,
9644 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9647 $as_echo_n "checking for inttypes.h... " >&6; }
9648 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9649 $as_echo_n "(cached) " >&6
9651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9653 #define __STDC_FORMAT_MACROS
9654 #include <sys/types.h>
9655 #include <inttypes.h>
9667 if ac_fn_cxx_try_compile
"$LINENO"; then :
9668 gcc_cv_header_inttypes_h
=yes
9670 gcc_cv_header_inttypes_h
=no
9672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9676 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9677 if test $gcc_cv_header_inttypes_h = yes; then
9679 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9685 for ac_func
in times clock kill getrlimit setrlimit atoq \
9686 popen sysconf strsignal getrusage nl_langinfo \
9687 gettimeofday mbstowcs wcswidth mmap setlocale \
9688 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
9690 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9691 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9692 eval as_val
=\$
$as_ac_var
9693 if test "x$as_val" = x
""yes; then :
9694 cat >>confdefs.h
<<_ACEOF
9695 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9702 if test x
$ac_cv_func_mbstowcs = xyes
; then
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9704 $as_echo_n "checking whether mbstowcs works... " >&6; }
9705 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9706 $as_echo_n "(cached) " >&6
9708 if test "$cross_compiling" = yes; then :
9709 gcc_cv_func_mbstowcs_works
=yes
9711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9712 /* end confdefs.h. */
9720 if ac_fn_cxx_try_run
"$LINENO"; then :
9721 gcc_cv_func_mbstowcs_works
=yes
9723 gcc_cv_func_mbstowcs_works
=no
9725 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9726 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9731 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9732 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9734 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9739 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9740 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9744 cat >>confdefs.h
<<_ACEOF
9750 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9751 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9755 cat >>confdefs.h
<<_ACEOF
9756 #define caddr_t char *
9763 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9764 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9765 gcc_header_sys_mman_h
=yes
9767 gcc_header_sys_mman_h
=no
9770 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9771 if test "x$ac_cv_func_mmap" = x
""yes; then :
9777 if test "$gcc_header_sys_mman_h" != yes \
9778 ||
test "$gcc_func_mmap" != yes; then
9779 gcc_cv_func_mmap_file
=no
9780 gcc_cv_func_mmap_dev_zero
=no
9781 gcc_cv_func_mmap_anon
=no
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9784 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9785 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9786 $as_echo_n "(cached) " >&6
9788 # Add a system to this blacklist if
9789 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9790 # memory area containing the same data that you'd get if you applied
9791 # read() to the same fd. The only system known to have a problem here
9792 # is VMS, where text files have record structure.
9795 gcc_cv_func_mmap_file
=no
;;
9797 gcc_cv_func_mmap_file
=yes;;
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9801 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9803 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9804 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9805 $as_echo_n "(cached) " >&6
9807 # Add a system to this blacklist if it has mmap() but /dev/zero
9808 # does not exist, or if mmapping /dev/zero does not give anonymous
9809 # zeroed pages with both the following properties:
9810 # 1. If you map N consecutive pages in with one call, and then
9811 # unmap any subset of those pages, the pages that were not
9812 # explicitly unmapped remain accessible.
9813 # 2. If you map two adjacent blocks of memory and then unmap them
9814 # both at once, they must both go away.
9815 # Systems known to be in this category are Windows (all variants),
9818 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9819 gcc_cv_func_mmap_dev_zero
=no
;;
9821 gcc_cv_func_mmap_dev_zero
=yes;;
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9825 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9827 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9829 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9830 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9831 $as_echo_n "(cached) " >&6
9833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h. */
9835 #include <sys/types.h>
9836 #include <sys/mman.h>
9839 #ifndef MAP_ANONYMOUS
9840 #define MAP_ANONYMOUS MAP_ANON
9846 int n = MAP_ANONYMOUS;
9851 if ac_fn_cxx_try_compile
"$LINENO"; then :
9852 gcc_cv_decl_map_anon
=yes
9854 gcc_cv_decl_map_anon
=no
9856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9859 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9861 if test $gcc_cv_decl_map_anon = no
; then
9862 gcc_cv_func_mmap_anon
=no
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9865 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9866 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9867 $as_echo_n "(cached) " >&6
9869 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9870 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9871 # doesn't give anonymous zeroed pages with the same properties listed
9872 # above for use of /dev/zero.
9873 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9875 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9876 gcc_cv_func_mmap_anon
=no
;;
9878 gcc_cv_func_mmap_anon
=yes;;
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9882 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9886 if test $gcc_cv_func_mmap_file = yes; then
9888 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9891 if test $gcc_cv_func_mmap_dev_zero = yes; then
9893 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9896 if test $gcc_cv_func_mmap_anon = yes; then
9898 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9905 # Under VMS, vfork works very differently than on Unix. The standard test
9906 # won't work, and it isn't easily adaptable. It makes more sense to
9908 ac_cv_func_vfork_works
=yes
9911 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9912 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9916 cat >>confdefs.h
<<_ACEOF
9922 for ac_header
in vfork.h
9924 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9925 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9926 cat >>confdefs.h
<<_ACEOF
9927 #define HAVE_VFORK_H 1
9933 for ac_func
in fork vfork
9935 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9936 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9937 eval as_val
=\$
$as_ac_var
9938 if test "x$as_val" = x
""yes; then :
9939 cat >>confdefs.h
<<_ACEOF
9940 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9946 if test "x$ac_cv_func_fork" = xyes
; then
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9948 $as_echo_n "checking for working fork... " >&6; }
9949 if test "${ac_cv_func_fork_works+set}" = set; then :
9950 $as_echo_n "(cached) " >&6
9952 if test "$cross_compiling" = yes; then :
9953 ac_cv_func_fork_works
=cross
9955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9956 /* end confdefs.h. */
9957 $ac_includes_default
9962 /* By Ruediger Kuhlmann. */
9969 if ac_fn_cxx_try_run
"$LINENO"; then :
9970 ac_cv_func_fork_works
=yes
9972 ac_cv_func_fork_works
=no
9974 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9975 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9980 $as_echo "$ac_cv_func_fork_works" >&6; }
9983 ac_cv_func_fork_works
=$ac_cv_func_fork
9985 if test "x$ac_cv_func_fork_works" = xcross
; then
9987 *-*-amigaos* |
*-*-msdosdjgpp*)
9988 # Override, as these systems have only a dummy fork() stub
9989 ac_cv_func_fork_works
=no
9992 ac_cv_func_fork_works
=yes
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9996 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9998 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9999 if test "x$ac_cv_func_vfork" = xyes
; then
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10001 $as_echo_n "checking for working vfork... " >&6; }
10002 if test "${ac_cv_func_vfork_works+set}" = set; then :
10003 $as_echo_n "(cached) " >&6
10005 if test "$cross_compiling" = yes; then :
10006 ac_cv_func_vfork_works
=cross
10008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10009 /* end confdefs.h. */
10010 /* Thanks to Paul Eggert for this test. */
10011 $ac_includes_default
10012 #include <sys/wait.h>
10013 #ifdef HAVE_VFORK_H
10014 # include <vfork.h>
10016 /* On some sparc systems, changes by the child to local and incoming
10017 argument registers are propagated back to the parent. The compiler
10018 is told about this with #include <vfork.h>, but some compilers
10019 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10020 static variable whose address is put into a register that is
10021 clobbered by the vfork. */
10024 sparc_address_test (int arg)
10026 sparc_address_test (arg) int arg;
10029 static pid_t child;
10047 pid_t parent = getpid ();
10050 sparc_address_test (0);
10055 /* Here is another test for sparc vfork register problems. This
10056 test uses lots of local variables, at least as many local
10057 variables as main has allocated so far including compiler
10058 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10059 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10060 reuse the register of parent for one of the local variables,
10061 since it will think that parent can't possibly be used any more
10062 in this routine. Assigning to the local variable will thus
10063 munge parent in the parent process. */
10065 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10066 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10067 /* Convince the compiler that p..p7 are live; otherwise, it might
10068 use the same hardware register for all 8 local variables. */
10069 if (p != p1 || p != p2 || p != p3 || p != p4
10070 || p != p5 || p != p6 || p != p7)
10073 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10074 from child file descriptors. If the child closes a descriptor
10075 before it execs or exits, this munges the parent's descriptor
10076 as well. Test for this by closing stdout in the child. */
10077 _exit(close(fileno(stdout)) != 0);
10082 while (wait(&status) != child)
10085 /* Was there some problem with vforking? */
10088 /* Did the child fail? (This shouldn't happen.) */
10091 /* Did the vfork/compiler bug occur? */
10092 || parent != getpid()
10094 /* Did the file descriptor bug occur? */
10095 || fstat(fileno(stdout), &st) != 0
10100 if ac_fn_cxx_try_run
"$LINENO"; then :
10101 ac_cv_func_vfork_works
=yes
10103 ac_cv_func_vfork_works
=no
10105 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10106 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10111 $as_echo "$ac_cv_func_vfork_works" >&6; }
10114 if test "x$ac_cv_func_fork_works" = xcross
; then
10115 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10117 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10120 if test "x$ac_cv_func_vfork_works" = xyes
; then
10122 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10126 $as_echo "#define vfork fork" >>confdefs.h
10129 if test "x$ac_cv_func_fork_works" = xyes
; then
10131 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10137 if test "X$prefix" = "XNONE"; then
10138 acl_final_prefix
="$ac_default_prefix"
10140 acl_final_prefix
="$prefix"
10142 if test "X$exec_prefix" = "XNONE"; then
10143 acl_final_exec_prefix
='${prefix}'
10145 acl_final_exec_prefix
="$exec_prefix"
10147 acl_save_prefix
="$prefix"
10148 prefix
="$acl_final_prefix"
10149 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10150 prefix
="$acl_save_prefix"
10153 # Check whether --with-gnu-ld was given.
10154 if test "${with_gnu_ld+set}" = set; then :
10155 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10160 # Prepare PATH_SEPARATOR.
10161 # The user is always right.
10162 if test "${PATH_SEPARATOR+set}" != set; then
10163 echo "#! /bin/sh" >conf$$.sh
10164 echo "exit 0" >>conf$$.sh
10166 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10174 if test "$GCC" = yes; then
10175 # Check if gcc -print-prog-name=ld gives a path.
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10177 $as_echo_n "checking for ld used by GCC... " >&6; }
10180 # gcc leaves a trailing carriage return which upsets mingw
10181 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10183 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10186 # Accept absolute paths.
10187 [\\/]* |
[A-Za-z
]:[\\/]*)
10188 re_direlt
='/[^/][^/]*/\.\./'
10189 # Canonicalize the path of ld
10190 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10191 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10192 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10194 test -z "$LD" && LD
="$ac_prog"
10197 # If it fails, then pretend we aren't using GCC.
10201 # If it is relative, then search for the first ld in PATH.
10202 with_gnu_ld
=unknown
10205 elif test "$with_gnu_ld" = yes; then
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10207 $as_echo_n "checking for GNU ld... " >&6; }
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10210 $as_echo_n "checking for non-GNU ld... " >&6; }
10212 if test "${acl_cv_path_LD+set}" = set; then :
10213 $as_echo_n "(cached) " >&6
10215 if test -z "$LD"; then
10216 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10217 for ac_dir
in $PATH; do
10218 test -z "$ac_dir" && ac_dir
=.
10219 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10220 acl_cv_path_LD
="$ac_dir/$ac_prog"
10221 # Check to see if the program is GNU ld. I'd rather use --version,
10222 # but apparently some GNU ld's only accept -v.
10223 # Break only if it was the GNU/non-GNU ld that we prefer.
10224 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10225 test "$with_gnu_ld" != no
&& break
10227 test "$with_gnu_ld" != yes && break
10233 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10237 LD
="$acl_cv_path_LD"
10238 if test -n "$LD"; then
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10240 $as_echo "$LD" >&6; }
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243 $as_echo "no" >&6; }
10245 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10247 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10248 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10249 $as_echo_n "(cached) " >&6
10251 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10252 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10253 acl_cv_prog_gnu_ld
=yes
10255 acl_cv_prog_gnu_ld
=no
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10259 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10260 with_gnu_ld
=$acl_cv_prog_gnu_ld
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10265 $as_echo_n "checking for shared library run path origin... " >&6; }
10266 if test "${acl_cv_rpath+set}" = set; then :
10267 $as_echo_n "(cached) " >&6
10270 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10271 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10273 rm -f .
/conftest.sh
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10278 $as_echo "$acl_cv_rpath" >&6; }
10280 libext
="$acl_cv_libext"
10281 shlibext
="$acl_cv_shlibext"
10282 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10283 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10284 hardcode_direct
="$acl_cv_hardcode_direct"
10285 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10286 # Check whether --enable-rpath was given.
10287 if test "${enable_rpath+set}" = set; then :
10288 enableval
=$enable_rpath; :
10302 acl_save_prefix
="$prefix"
10303 prefix
="$acl_final_prefix"
10304 acl_save_exec_prefix
="$exec_prefix"
10305 exec_prefix
="$acl_final_exec_prefix"
10307 eval additional_includedir
=\"$includedir\"
10308 eval additional_libdir
=\"$libdir\"
10310 exec_prefix
="$acl_save_exec_prefix"
10311 prefix
="$acl_save_prefix"
10314 # Check whether --with-libiconv-prefix was given.
10315 if test "${with_libiconv_prefix+set}" = set; then :
10316 withval
=$with_libiconv_prefix;
10317 if test "X$withval" = "Xno"; then
10320 if test "X$withval" = "X"; then
10322 acl_save_prefix
="$prefix"
10323 prefix
="$acl_final_prefix"
10324 acl_save_exec_prefix
="$exec_prefix"
10325 exec_prefix
="$acl_final_exec_prefix"
10327 eval additional_includedir
=\"$includedir\"
10328 eval additional_libdir
=\"$libdir\"
10330 exec_prefix
="$acl_save_exec_prefix"
10331 prefix
="$acl_save_prefix"
10334 additional_includedir
="$withval/include"
10335 additional_libdir
="$withval/lib"
10346 names_already_handled
=
10347 names_next_round
='iconv '
10348 while test -n "$names_next_round"; do
10349 names_this_round
="$names_next_round"
10351 for name
in $names_this_round; do
10353 for n
in $names_already_handled; do
10354 if test "$n" = "$name"; then
10355 already_handled
=yes
10359 if test -z "$already_handled"; then
10360 names_already_handled
="$names_already_handled $name"
10361 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10362 eval value
=\"\
$HAVE_LIB$uppername\"
10363 if test -n "$value"; then
10364 if test "$value" = yes; then
10365 eval value
=\"\
$LIB$uppername\"
10366 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10367 eval value
=\"\
$LTLIB$uppername\"
10368 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10377 if test $use_additional = yes; then
10378 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10379 found_dir
="$additional_libdir"
10380 found_so
="$additional_libdir/lib$name.$shlibext"
10381 if test -f "$additional_libdir/lib$name.la"; then
10382 found_la
="$additional_libdir/lib$name.la"
10385 if test -f "$additional_libdir/lib$name.$libext"; then
10386 found_dir
="$additional_libdir"
10387 found_a
="$additional_libdir/lib$name.$libext"
10388 if test -f "$additional_libdir/lib$name.la"; then
10389 found_la
="$additional_libdir/lib$name.la"
10394 if test "X$found_dir" = "X"; then
10395 for x
in $LDFLAGS $LTLIBICONV; do
10397 acl_save_prefix
="$prefix"
10398 prefix
="$acl_final_prefix"
10399 acl_save_exec_prefix
="$exec_prefix"
10400 exec_prefix
="$acl_final_exec_prefix"
10402 exec_prefix
="$acl_save_exec_prefix"
10403 prefix
="$acl_save_prefix"
10407 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10408 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10410 found_so
="$dir/lib$name.$shlibext"
10411 if test -f "$dir/lib$name.la"; then
10412 found_la
="$dir/lib$name.la"
10415 if test -f "$dir/lib$name.$libext"; then
10417 found_a
="$dir/lib$name.$libext"
10418 if test -f "$dir/lib$name.la"; then
10419 found_la
="$dir/lib$name.la"
10425 if test "X$found_dir" != "X"; then
10430 if test "X$found_dir" != "X"; then
10431 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10432 if test "X$found_so" != "X"; then
10433 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10434 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10437 for x
in $ltrpathdirs; do
10438 if test "X$x" = "X$found_dir"; then
10443 if test -z "$haveit"; then
10444 ltrpathdirs
="$ltrpathdirs $found_dir"
10446 if test "$hardcode_direct" = yes; then
10447 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10449 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10450 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10452 for x
in $rpathdirs; do
10453 if test "X$x" = "X$found_dir"; then
10458 if test -z "$haveit"; then
10459 rpathdirs
="$rpathdirs $found_dir"
10463 for x
in $LDFLAGS $LIBICONV; do
10465 acl_save_prefix
="$prefix"
10466 prefix
="$acl_final_prefix"
10467 acl_save_exec_prefix
="$exec_prefix"
10468 exec_prefix
="$acl_final_exec_prefix"
10470 exec_prefix
="$acl_save_exec_prefix"
10471 prefix
="$acl_save_prefix"
10473 if test "X$x" = "X-L$found_dir"; then
10478 if test -z "$haveit"; then
10479 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10481 if test "$hardcode_minus_L" != no
; then
10482 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10484 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10490 if test "X$found_a" != "X"; then
10491 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10493 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10496 additional_includedir
=
10497 case "$found_dir" in
10499 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10500 additional_includedir
="$basedir/include"
10503 if test "X$additional_includedir" != "X"; then
10504 if test "X$additional_includedir" != "X/usr/include"; then
10506 if test "X$additional_includedir" = "X/usr/local/include"; then
10507 if test -n "$GCC"; then
10509 linux
*) haveit
=yes;;
10513 if test -z "$haveit"; then
10514 for x
in $CPPFLAGS $INCICONV; do
10516 acl_save_prefix
="$prefix"
10517 prefix
="$acl_final_prefix"
10518 acl_save_exec_prefix
="$exec_prefix"
10519 exec_prefix
="$acl_final_exec_prefix"
10521 exec_prefix
="$acl_save_exec_prefix"
10522 prefix
="$acl_save_prefix"
10524 if test "X$x" = "X-I$additional_includedir"; then
10529 if test -z "$haveit"; then
10530 if test -d "$additional_includedir"; then
10531 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10537 if test -n "$found_la"; then
10538 save_libdir
="$libdir"
10539 case "$found_la" in
10540 */* |
*\\*) .
"$found_la" ;;
10541 *) .
"./$found_la" ;;
10543 libdir
="$save_libdir"
10544 for dep
in $dependency_libs; do
10547 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10548 if test "X$additional_libdir" != "X/usr/lib"; then
10550 if test "X$additional_libdir" = "X/usr/local/lib"; then
10551 if test -n "$GCC"; then
10553 linux
*) haveit
=yes;;
10557 if test -z "$haveit"; then
10559 for x
in $LDFLAGS $LIBICONV; do
10561 acl_save_prefix
="$prefix"
10562 prefix
="$acl_final_prefix"
10563 acl_save_exec_prefix
="$exec_prefix"
10564 exec_prefix
="$acl_final_exec_prefix"
10566 exec_prefix
="$acl_save_exec_prefix"
10567 prefix
="$acl_save_prefix"
10569 if test "X$x" = "X-L$additional_libdir"; then
10574 if test -z "$haveit"; then
10575 if test -d "$additional_libdir"; then
10576 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10580 for x
in $LDFLAGS $LTLIBICONV; do
10582 acl_save_prefix
="$prefix"
10583 prefix
="$acl_final_prefix"
10584 acl_save_exec_prefix
="$exec_prefix"
10585 exec_prefix
="$acl_final_exec_prefix"
10587 exec_prefix
="$acl_save_exec_prefix"
10588 prefix
="$acl_save_prefix"
10590 if test "X$x" = "X-L$additional_libdir"; then
10595 if test -z "$haveit"; then
10596 if test -d "$additional_libdir"; then
10597 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10604 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10605 if test "$enable_rpath" != no
; then
10607 for x
in $rpathdirs; do
10608 if test "X$x" = "X$dir"; then
10613 if test -z "$haveit"; then
10614 rpathdirs
="$rpathdirs $dir"
10617 for x
in $ltrpathdirs; do
10618 if test "X$x" = "X$dir"; then
10623 if test -z "$haveit"; then
10624 ltrpathdirs
="$ltrpathdirs $dir"
10629 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10632 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10635 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10636 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10642 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10643 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10649 if test "X$rpathdirs" != "X"; then
10650 if test -n "$hardcode_libdir_separator"; then
10652 for found_dir
in $rpathdirs; do
10653 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10655 acl_save_libdir
="$libdir"
10657 eval flag
=\"$hardcode_libdir_flag_spec\"
10658 libdir
="$acl_save_libdir"
10659 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10661 for found_dir
in $rpathdirs; do
10662 acl_save_libdir
="$libdir"
10663 libdir
="$found_dir"
10664 eval flag
=\"$hardcode_libdir_flag_spec\"
10665 libdir
="$acl_save_libdir"
10666 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10670 if test "X$ltrpathdirs" != "X"; then
10671 for found_dir
in $ltrpathdirs; do
10672 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10683 $as_echo_n "checking for iconv... " >&6; }
10684 if test "${am_cv_func_iconv+set}" = set; then :
10685 $as_echo_n "(cached) " >&6
10688 am_cv_func_iconv
="no, consider installing GNU libiconv"
10690 am_save_CPPFLAGS
="$CPPFLAGS"
10691 CPPFLAGS
="$CPPFLAGS $INCICONV"
10692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10693 /* end confdefs.h. */
10694 #include <stdlib.h>
10699 iconv_t cd = iconv_open("","");
10700 iconv(cd,NULL,NULL,NULL,NULL);
10706 if ac_fn_cxx_try_link
"$LINENO"; then :
10707 am_cv_func_iconv
=yes
10709 rm -f core conftest.err conftest.
$ac_objext \
10710 conftest
$ac_exeext conftest.
$ac_ext
10711 CPPFLAGS
="$am_save_CPPFLAGS"
10713 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
10714 for _libs
in .libs _libs
; do
10715 am_save_CPPFLAGS
="$CPPFLAGS"
10716 am_save_LIBS
="$LIBS"
10717 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
10718 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h. */
10721 #include <stdlib.h>
10726 iconv_t cd = iconv_open("","");
10727 iconv(cd,NULL,NULL,NULL,NULL);
10733 if ac_fn_cxx_try_link
"$LINENO"; then :
10734 INCICONV
="-I../libiconv/include"
10735 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
10736 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
10737 am_cv_lib_iconv
=yes
10738 am_cv_func_iconv
=yes
10740 rm -f core conftest.err conftest.
$ac_objext \
10741 conftest
$ac_exeext conftest.
$ac_ext
10742 CPPFLAGS
="$am_save_CPPFLAGS"
10743 LIBS
="$am_save_LIBS"
10744 if test "$am_cv_func_iconv" = "yes"; then
10750 if test "$am_cv_func_iconv" != yes; then
10751 am_save_CPPFLAGS
="$CPPFLAGS"
10752 am_save_LIBS
="$LIBS"
10753 CPPFLAGS
="$LIBS $INCICONV"
10754 LIBS
="$LIBS $LIBICONV"
10755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10756 /* end confdefs.h. */
10757 #include <stdlib.h>
10762 iconv_t cd = iconv_open("","");
10763 iconv(cd,NULL,NULL,NULL,NULL);
10769 if ac_fn_cxx_try_link
"$LINENO"; then :
10770 am_cv_lib_iconv
=yes
10771 am_cv_func_iconv
=yes
10773 rm -f core conftest.err conftest.
$ac_objext \
10774 conftest
$ac_exeext conftest.
$ac_ext
10775 CPPFLAGS
="$am_save_CPPFLAGS"
10776 LIBS
="$am_save_LIBS"
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10781 $as_echo "$am_cv_func_iconv" >&6; }
10782 if test "$am_cv_func_iconv" = yes; then
10784 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10787 if test "$am_cv_lib_iconv" = yes; then
10789 for element
in $INCICONV; do
10791 for x
in $CPPFLAGS; do
10793 acl_save_prefix
="$prefix"
10794 prefix
="$acl_final_prefix"
10795 acl_save_exec_prefix
="$exec_prefix"
10796 exec_prefix
="$acl_final_exec_prefix"
10798 exec_prefix
="$acl_save_exec_prefix"
10799 prefix
="$acl_save_prefix"
10801 if test "X$x" = "X$element"; then
10806 if test -z "$haveit"; then
10807 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10812 $as_echo_n "checking how to link with libiconv... " >&6; }
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10814 $as_echo "$LIBICONV" >&6; }
10822 if test "$am_cv_func_iconv" = yes; then
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10824 $as_echo_n "checking for iconv declaration... " >&6; }
10825 if test "${am_cv_proto_iconv+set}" = set; then :
10826 $as_echo_n "(cached) " >&6
10829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h. */
10832 #include <stdlib.h>
10838 #if defined(__STDC__) || defined(__cplusplus)
10839 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10852 if ac_fn_cxx_try_compile
"$LINENO"; then :
10853 am_cv_proto_iconv_arg1
=""
10855 am_cv_proto_iconv_arg1
="const"
10857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10858 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);"
10861 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10863 }$am_cv_proto_iconv" >&5
10865 }$am_cv_proto_iconv" >&6; }
10867 cat >>confdefs.h
<<_ACEOF
10868 #define ICONV_CONST $am_cv_proto_iconv_arg1
10874 # Until we have in-tree GNU iconv:
10876 if test -f "$LTLIBICONV"; then
10877 LIBICONV_DEP
=$LTLIBICONV
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10883 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10884 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10885 $as_echo_n "(cached) " >&6
10887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10888 /* end confdefs.h. */
10889 #include <locale.h>
10898 if ac_fn_cxx_try_link
"$LINENO"; then :
10899 am_cv_val_LC_MESSAGES
=yes
10901 am_cv_val_LC_MESSAGES
=no
10903 rm -f core conftest.err conftest.
$ac_objext \
10904 conftest
$ac_exeext conftest.
$ac_ext
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10907 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10908 if test $am_cv_val_LC_MESSAGES = yes; then
10910 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10917 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10918 if test "${am_cv_langinfo_codeset+set}" = set; then :
10919 $as_echo_n "(cached) " >&6
10921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10922 /* end confdefs.h. */
10923 #include <langinfo.h>
10927 char* cs = nl_langinfo(CODESET);
10932 if ac_fn_cxx_try_link
"$LINENO"; then :
10933 am_cv_langinfo_codeset
=yes
10935 am_cv_langinfo_codeset
=no
10937 rm -f core conftest.err conftest.
$ac_objext \
10938 conftest
$ac_exeext conftest.
$ac_ext
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10942 $as_echo "$am_cv_langinfo_codeset" >&6; }
10943 if test $am_cv_langinfo_codeset = yes; then
10945 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10950 # We will need to find libiberty.h and ansidecl.h
10951 saved_CFLAGS
="$CFLAGS"
10952 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10953 saved_CXXFLAGS
="$CXXFLAGS"
10954 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10956 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10957 # normal autoconf function for these. But force definition of
10958 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10959 # basename handling in libiberty.h.
10960 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10961 #undef HAVE_DECL_BASENAME
10962 #define HAVE_DECL_BASENAME 1
10963 #include \"ansidecl.h\"
10964 #include \"system.h\"
10966 if test "x$ac_cv_have_decl_basename_const_charp_" = x
""yes; then :
10972 cat >>confdefs.h
<<_ACEOF
10973 #define HAVE_DECL_BASENAME $ac_have_decl
10975 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10976 #undef HAVE_DECL_BASENAME
10977 #define HAVE_DECL_BASENAME 1
10978 #include \"ansidecl.h\"
10979 #include \"system.h\"
10981 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x
""yes; then :
10987 cat >>confdefs.h
<<_ACEOF
10988 #define HAVE_DECL_STRSTR $ac_have_decl
10992 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10993 madvise stpcpy strnlen strsignal strverscmp \
10994 strtol strtoul strtoll strtoull setenv unsetenv \
10995 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10996 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
10998 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11000 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11001 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11002 $as_echo_n "(cached) " >&6
11004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11005 /* end confdefs.h. */
11007 #define $ac_tr_decl 1
11009 #include "ansidecl.h"
11010 #include "system.h"
11016 char *(*pfn) = (char *(*)) $ac_func ;
11022 if ac_fn_cxx_try_compile
"$LINENO"; then :
11023 eval "gcc_cv_have_decl_$ac_func=yes"
11025 eval "gcc_cv_have_decl_$ac_func=no"
11027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11030 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11032 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11033 #define $ac_tr_decl 1
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11039 #define $ac_tr_decl 0
11047 for ac_func
in getrlimit setrlimit getrusage
11049 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11051 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11052 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11053 $as_echo_n "(cached) " >&6
11055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11056 /* end confdefs.h. */
11058 #define $ac_tr_decl 1
11060 #include "ansidecl.h"
11061 #include "system.h"
11062 #ifdef HAVE_SYS_RESOURCE_H
11063 #include <sys/resource.h>
11071 char *(*pfn) = (char *(*)) $ac_func ;
11077 if ac_fn_cxx_try_compile
"$LINENO"; then :
11078 eval "gcc_cv_have_decl_$ac_func=yes"
11080 eval "gcc_cv_have_decl_$ac_func=no"
11082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11085 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11087 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11088 #define $ac_tr_decl 1
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11093 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11094 #define $ac_tr_decl 0
11102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11103 /* end confdefs.h. */
11105 #include "ansidecl.h"
11106 #include "system.h"
11107 #ifdef HAVE_SYS_RESOURCE_H
11108 #include <sys/resource.h>
11119 if ac_fn_cxx_try_compile
"$LINENO"; then :
11123 $as_echo "#define rlim_t long" >>confdefs.h
11126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11128 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11129 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11130 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11131 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11132 for ac_func
in ldgetname
11134 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11136 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11137 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11138 $as_echo_n "(cached) " >&6
11140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11141 /* end confdefs.h. */
11143 #define $ac_tr_decl 1
11145 #include "ansidecl.h"
11146 #include "system.h"
11147 #ifdef HAVE_LDFCN_H
11158 char *(*pfn) = (char *(*)) $ac_func ;
11164 if ac_fn_cxx_try_compile
"$LINENO"; then :
11165 eval "gcc_cv_have_decl_$ac_func=yes"
11167 eval "gcc_cv_have_decl_$ac_func=no"
11169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11172 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11174 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11175 #define $ac_tr_decl 1
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11181 #define $ac_tr_decl 0
11189 for ac_func
in times
11191 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11193 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11194 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11195 $as_echo_n "(cached) " >&6
11197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h. */
11200 #define $ac_tr_decl 1
11202 #include "ansidecl.h"
11203 #include "system.h"
11204 #ifdef HAVE_SYS_TIMES_H
11205 #include <sys/times.h>
11213 char *(*pfn) = (char *(*)) $ac_func ;
11219 if ac_fn_cxx_try_compile
"$LINENO"; then :
11220 eval "gcc_cv_have_decl_$ac_func=yes"
11222 eval "gcc_cv_have_decl_$ac_func=no"
11224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11227 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11229 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11230 #define $ac_tr_decl 1
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11235 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11236 #define $ac_tr_decl 0
11244 for ac_func
in sigaltstack
11246 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11248 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11249 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11250 $as_echo_n "(cached) " >&6
11252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11253 /* end confdefs.h. */
11255 #define $ac_tr_decl 1
11257 #include "ansidecl.h"
11258 #include "system.h"
11259 #include <signal.h>
11266 char *(*pfn) = (char *(*)) $ac_func ;
11272 if ac_fn_cxx_try_compile
"$LINENO"; then :
11273 eval "gcc_cv_have_decl_$ac_func=yes"
11275 eval "gcc_cv_have_decl_$ac_func=no"
11277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11280 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11282 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11283 #define $ac_tr_decl 1
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11288 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11289 #define $ac_tr_decl 0
11297 # More time-related stuff.
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11299 $as_echo_n "checking for struct tms... " >&6; }
11300 if test "${ac_cv_struct_tms+set}" = set; then :
11301 $as_echo_n "(cached) " >&6
11304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11305 /* end confdefs.h. */
11307 #include "ansidecl.h"
11308 #include "system.h"
11309 #ifdef HAVE_SYS_TIMES_H
11310 #include <sys/times.h>
11321 if ac_fn_cxx_try_compile
"$LINENO"; then :
11322 ac_cv_struct_tms
=yes
11324 ac_cv_struct_tms
=no
11326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11329 $as_echo "$ac_cv_struct_tms" >&6; }
11330 if test $ac_cv_struct_tms = yes; then
11332 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11336 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11337 # revisit after autoconf 2.50.
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11339 $as_echo_n "checking for clock_t... " >&6; }
11340 if test "${gcc_cv_type_clock_t+set}" = set; then :
11341 $as_echo_n "(cached) " >&6
11344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h. */
11347 #include "ansidecl.h"
11348 #include "system.h"
11358 if ac_fn_cxx_try_compile
"$LINENO"; then :
11359 gcc_cv_type_clock_t
=yes
11361 gcc_cv_type_clock_t
=no
11363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11366 $as_echo "$gcc_cv_type_clock_t" >&6; }
11367 if test $gcc_cv_type_clock_t = yes; then
11369 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11373 # Check if F_SETLKW is supported by fcntl.
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11375 $as_echo_n "checking for F_SETLKW... " >&6; }
11376 if test "${ac_cv_f_setlkw+set}" = set; then :
11377 $as_echo_n "(cached) " >&6
11380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11393 return fcntl (1, F_SETLKW, &fl);
11398 if ac_fn_cxx_try_compile
"$LINENO"; then :
11403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11406 $as_echo "$ac_cv_f_setlkw" >&6; }
11407 if test $ac_cv_f_setlkw = yes; then
11409 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11413 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11414 CFLAGS
="$saved_CFLAGS"
11415 CXXFLAGS
="$saved_CXXFLAGS"
11417 # mkdir takes a single argument on some systems.
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11419 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11420 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11421 $as_echo_n "(cached) " >&6
11423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11424 /* end confdefs.h. */
11426 #include <sys/types.h>
11427 #ifdef HAVE_SYS_STAT_H
11428 # include <sys/stat.h>
11430 #ifdef HAVE_UNISTD_H
11431 # include <unistd.h>
11433 #ifdef HAVE_DIRECT_H
11434 # include <direct.h>
11444 if ac_fn_cxx_try_compile
"$LINENO"; then :
11445 gcc_cv_mkdir_takes_one_arg
=no
11447 gcc_cv_mkdir_takes_one_arg
=yes
11449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11452 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11453 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11455 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11466 # With Setjmp/Longjmp based exception handling.
11467 # Check whether --enable-sjlj-exceptions was given.
11468 if test "${enable_sjlj_exceptions+set}" = set; then :
11469 enableval
=$enable_sjlj_exceptions; case $target in
11471 if test $enableval != yes; then
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11473 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11478 force_sjlj_exceptions
=yes
11482 force_sjlj_exceptions
=yes
11486 force_sjlj_exceptions
=yes
11490 force_sjlj_exceptions
=no
11495 if test $force_sjlj_exceptions = yes; then
11496 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11498 cat >>confdefs.h
<<_ACEOF
11499 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11504 # --------------------------------------------------------
11505 # Build, host, and target specific configuration fragments
11506 # --------------------------------------------------------
11508 # Collect build-machine-specific information.
11509 .
${srcdir}/config.build
11511 # Collect host-machine-specific information.
11512 .
${srcdir}/config.
host
11516 # Collect target-machine-specific information.
11517 .
${srcdir}/config.gcc
11519 extra_objs
="${host_extra_objs} ${extra_objs}"
11520 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11522 # Default the target-machine variables that were not explicitly set.
11523 if test x
"$tm_file" = x
11524 then tm_file
=$cpu_type/$cpu_type.h
; fi
11526 if test x
"$extra_headers" = x
11527 then extra_headers
=; fi
11529 if test x
$md_file = x
11530 then md_file
=$cpu_type/$cpu_type.md
; fi
11532 if test x
$out_file = x
11533 then out_file
=$cpu_type/$cpu_type.c
; fi
11535 if test x
"$tmake_file" = x
11536 then tmake_file
=$cpu_type/t-
$cpu_type
11539 # Support --enable-initfini-array.
11540 if test x
$enable_initfini_array != xno
; then
11541 tm_file
="${tm_file} initfini-array.h"
11544 if test x
"$dwarf2" = xyes
11545 then tm_file
="$tm_file tm-dwarf2.h"
11548 # Say what files are being used for the output code and MD file.
11549 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11550 echo "Using \`$srcdir/config/$md_file' as machine description file."
11552 # If any of the xm_file variables contain nonexistent files, warn
11553 # about them and drop them.
11556 for x
in $build_xm_file; do
11557 if test -f $srcdir/config
/$x
11559 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11560 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11563 build_xm_file
="$bx"
11566 for x
in $host_xm_file; do
11567 if test -f $srcdir/config
/$x
11569 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11570 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11576 for x
in $xm_file; do
11577 if test -f $srcdir/config
/$x
11579 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11580 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11586 for f
in $tm_file; do
11589 if test $count = ax
; then
11590 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11592 echo "Using the following target machine macro files:"
11593 for f
in $tm_file; do
11594 echo " $srcdir/config/$f"
11598 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11600 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11604 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11606 cat >>confdefs.h
<<_ACEOF
11607 #define HAVE_GNU_LD $gnu_ld_bool
11611 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11613 cat >>confdefs.h
<<_ACEOF
11614 #define HAVE_GNU_AS $gnu_as_bool
11619 for f
in $host_xm_file; do
11622 if test $count = a
; then
11624 elif test $count = ax
; then
11625 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11627 echo "Using the following host machine macro files:"
11628 for f
in $host_xm_file; do
11629 echo " $srcdir/config/$f"
11632 echo "Using ${out_host_hook_obj} for host machine hooks."
11634 if test "$host_xm_file" != "$build_xm_file"; then
11636 for f
in $build_xm_file; do
11639 if test $count = a
; then
11641 elif test $count = ax
; then
11642 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11644 echo "Using the following build machine macro files:"
11645 for f
in $build_xm_file; do
11646 echo " $srcdir/config/$f"
11651 if test -n "$configured_native_system_header_dir"; then
11652 native_system_header_dir
=$configured_native_system_header_dir
11654 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11658 powerpc
*-*-darwin*)
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11660 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11661 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11662 $as_echo_n "(cached) " >&6
11664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11665 /* end confdefs.h. */
11667 #include <sys/cdefs.h>
11668 #include <sys/signal.h>
11669 #include <ucontext.h>
11670 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11673 if ac_fn_cxx_try_compile
"$LINENO"; then :
11674 gcc_cv_mcontext_underscores
=no
11676 gcc_cv_mcontext_underscores
=yes
11678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11681 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11682 if test $gcc_cv_mcontext_underscores = yes; then
11684 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11694 # Check if a valid thread package
11695 case ${enable_threads} in
11698 target_thread_file
='single'
11702 target_thread_file
='single'
11704 aix | dce | lynx | mipssde | posix | rtems | \
11705 single | tpf | vxworks | win32
)
11706 target_thread_file
=${enable_threads}
11709 echo "${enable_threads} is an unknown thread package" 1>&2
11714 if test x
${thread_file} = x
; then
11715 # No thread file set by target-specific clauses in config.gcc,
11716 # so use file chosen by default logic above
11717 thread_file
=${target_thread_file}
11725 if test x
$enable___cxa_atexit = xyes || \
11726 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11727 if test x
$host = x
$target; then
11729 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11730 # keyed to flag_use_cxa_atexit
11738 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11739 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11742 echo "__cxa_atexit can't be enabled on this target"
11748 # We can't check for __cxa_atexit when building a cross, so assume
11752 if test x
$use_cxa_atexit = xyes
; then
11754 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11759 # Look for a file containing extra machine modes.
11760 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11761 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11764 cat >>confdefs.h
<<_ACEOF
11765 #define EXTRA_MODES_FILE "config/$extra_modes"
11770 # Convert extra_options into a form suitable for Makefile use.
11773 for f
in $extra_options; do
11774 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11775 all_opt_files
="$all_opt_files $srcdir/config/$f"
11779 # auto-host.h is the file containing items generated by autoconf and is
11780 # the first file included by config.h.
11781 # If host=build, it is correct to have bconfig include auto-host.h
11782 # as well. If host!=build, we are in error and need to do more
11783 # work to find out the build config parameters.
11784 if test x
$host = x
$build
11786 build_auto
=auto-host.h
11788 # We create a subdir, then run autoconf in the subdir.
11789 # To prevent recursion we set host and build for the new
11790 # invocation of configure to the build for this invocation
11797 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11798 *) realsrcdir
=..
/${srcdir};;
11800 # Clearing GMPINC is necessary to prevent host headers being
11801 # used by the build compiler. Defining GENERATOR_FILE stops
11802 # system.h from including gmp.h.
11803 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11804 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11805 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11806 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11807 ${realsrcdir}/configure \
11808 --enable-languages=${enable_languages-all} \
11809 --target=$target_alias --host=$build_alias --build=$build_alias
11811 # We just finished tests for the build machine, so rename
11812 # the file auto-build.h in the gcc directory.
11813 mv auto-host.h ..
/auto-build.h
11816 build_auto
=auto-build.h
11820 tm_file
="${tm_file} defaults.h"
11821 tm_p_file
="${tm_p_file} tm-preds.h"
11822 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11823 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11824 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11825 # put this back in temporarily.
11826 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11832 # Compile in configure arguments.
11833 if test -f configargs.h
; then
11834 # Being re-configured.
11835 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11836 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11838 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11841 # Double all backslashes and backslash all quotes to turn
11842 # gcc_config_arguments into a C string.
11843 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11844 $gcc_config_arguments
11846 gcc_config_arguments_str
=`cat conftest.out`
11849 cat > configargs.h
<<EOF
11850 /* Generated automatically. */
11851 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11852 static const char thread_model[] = "$thread_file";
11854 static const struct {
11855 const char *name, *value;
11856 } configure_default_options[] = $configure_default_options;
11859 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11860 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11861 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11862 if test -f $srcdir/REVISION
; then
11863 gcc_REVISION
=`cat $srcdir/REVISION`
11867 cat > plugin-version.h
<<EOF
11868 #include "configargs.h"
11870 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11871 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11872 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11873 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11875 static char basever[] = "$gcc_BASEVER";
11876 static char datestamp[] = "$gcc_DATESTAMP";
11877 static char devphase[] = "$gcc_DEVPHASE";
11878 static char revision[] = "$gcc_REVISION";
11880 /* FIXME plugins: We should make the version information more precise.
11881 One way to do is to add a checksum. */
11883 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11884 devphase, revision,
11885 configuration_arguments};
11888 # Internationalization
11889 # If we haven't got the data from the intl directory,
11890 # assume NLS is disabled.
11899 if test -f ..
/intl
/config.intl
; then
11900 . ..
/intl
/config.intl
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11903 $as_echo_n "checking whether NLS is requested... " >&6; }
11904 if test x
"$USE_NLS" != xyes
; then
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11906 $as_echo "no" >&6; }
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11909 $as_echo "yes" >&6; }
11911 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11915 $as_echo_n "checking for catalogs to be installed... " >&6; }
11916 # Look for .po and .gmo files in the source directory.
11919 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11920 # If there aren't any .gmo files the shell will give us the
11921 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11923 case "$cat" in *\
**)
11926 # The quadruple backslash is collapsed to a double backslash
11927 # by the backticks, then collapsed again by the double quotes,
11928 # leaving us with one backslash in the sed expression (right
11929 # before the dot that mustn't act as a wildcard).
11930 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11931 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11932 # The user is allowed to set LINGUAS to a list of languages to
11933 # install catalogs for. If it's empty that means "all of them."
11934 if test "x$LINGUAS" = x
; then
11935 CATALOGS
="$CATALOGS $cat"
11936 XLINGUAS
="$XLINGUAS $lang"
11938 case "$LINGUAS" in *$lang*)
11939 CATALOGS
="$CATALOGS $cat"
11940 XLINGUAS
="$XLINGUAS $lang"
11945 LINGUAS
="$XLINGUAS"
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11947 $as_echo "$LINGUAS" >&6; }
11960 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11961 # -liconv on the link line twice.
11962 case "$LIBINTL" in *$LIBICONV*)
11966 # Check whether --enable-secureplt was given.
11967 if test "${enable_secureplt+set}" = set; then :
11968 enableval
=$enable_secureplt;
11972 # Check whether --enable-leading-mingw64-underscores was given.
11973 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11974 enableval
=$enable_leading_mingw64_underscores;
11977 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11979 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11983 # Check whether --enable-cld was given.
11984 if test "${enable_cld+set}" = set; then :
11985 enableval
=$enable_cld;
11991 # Check whether --enable-frame-pointer was given.
11992 if test "${enable_frame_pointer+set}" = set; then :
11993 enableval
=$enable_frame_pointer;
11997 linux
* | darwin
[8912]*)
11998 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12000 enable_frame_pointer
=no
12003 enable_frame_pointer
=yes
12010 # Windows32 Registry support for specifying GCC installation paths.
12011 # Check whether --enable-win32-registry was given.
12012 if test "${enable_win32_registry+set}" = set; then :
12013 enableval
=$enable_win32_registry;
12018 win32 | pe | cygwin
* | mingw32
*)
12019 if test "x$enable_win32_registry" != xno
; then
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12021 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12022 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12023 $as_echo_n "(cached) " >&6
12025 ac_func_search_save_LIBS
=$LIBS
12026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12027 /* end confdefs.h. */
12029 /* Override any GCC internal prototype to avoid an error.
12030 Use char because int might match the return type of a GCC
12031 builtin and then its argument prototype would still apply. */
12035 char RegOpenKeyExA ();
12039 return RegOpenKeyExA ();
12044 for ac_lib
in '' advapi32
; do
12045 if test -z "$ac_lib"; then
12046 ac_res
="none required"
12049 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12051 if ac_fn_cxx_try_link
"$LINENO"; then :
12052 ac_cv_search_RegOpenKeyExA
=$ac_res
12054 rm -f core conftest.err conftest.
$ac_objext \
12056 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12060 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12063 ac_cv_search_RegOpenKeyExA
=no
12065 rm conftest.
$ac_ext
12066 LIBS
=$ac_func_search_save_LIBS
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12069 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12070 ac_res
=$ac_cv_search_RegOpenKeyExA
12071 if test "$ac_res" != no
; then :
12072 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12075 enable_win32_registry
=no
12080 if test "x$enable_win32_registry" != xno
; then
12082 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12085 if test "x$enable_win32_registry" != xyes \
12086 && test "x$enable_win32_registry" != x
; then
12088 cat >>confdefs.h
<<_ACEOF
12089 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12097 # Get an absolute path to the GCC top-level source directory
12098 holddir
=`${PWDCMD-pwd}`
12100 topdir
=`${PWDCMD-pwd}`
12103 # Conditionalize the makefile for this host machine.
12105 for f
in ${host_xmake_file}
12107 if test -f ${srcdir}/config
/$f
12109 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12113 # Conditionalize the makefile for this target machine.
12115 for f
in ${tmake_file}
12117 if test -f ${srcdir}/config
/$f
12119 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12122 tmake_file
="${tmake_file_}"
12124 out_object_file
=`basename $out_file .c`.o
12125 common_out_object_file
=`basename $common_out_file .c`.o
12127 tm_file_list
="options.h"
12128 tm_include_list
="options.h insn-constants.h"
12129 for f
in $tm_file; do
12132 f
=`echo $f | sed 's/^..//'`
12133 tm_file_list
="${tm_file_list} $f"
12134 tm_include_list
="${tm_include_list} $f"
12137 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12138 tm_include_list
="${tm_include_list} $f"
12141 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12142 tm_include_list
="${tm_include_list} config/$f"
12149 for f
in $tm_p_file; do
12152 tm_p_file_list
="${tm_p_file_list} $f"
12153 tm_p_include_list
="${tm_p_include_list} $f"
12156 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12157 tm_p_include_list
="${tm_p_include_list} config/$f"
12163 for f
in $xm_file; do
12166 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12167 xm_include_list
="${xm_include_list} $f"
12170 xm_file_list
="${xm_file_list} $f"
12171 xm_include_list
="${xm_include_list} $f"
12174 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12175 xm_include_list
="${xm_include_list} config/$f"
12181 host_xm_include_list
=
12182 for f
in $host_xm_file; do
12185 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12186 host_xm_include_list
="${host_xm_include_list} $f"
12189 host_xm_file_list
="${host_xm_file_list} $f"
12190 host_xm_include_list
="${host_xm_include_list} $f"
12193 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12194 host_xm_include_list
="${host_xm_include_list} config/$f"
12199 build_xm_file_list
=
12200 for f
in $build_xm_file; do
12203 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12204 build_xm_include_list
="${build_xm_include_list} $f"
12206 auto-build.h | auto-host.h
)
12207 build_xm_file_list
="${build_xm_file_list} $f"
12208 build_xm_include_list
="${build_xm_include_list} $f"
12211 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12212 build_xm_include_list
="${build_xm_include_list} config/$f"
12217 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12218 # cross-compiler which does not use the native headers and libraries.
12219 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12222 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12224 if test "x$with_build_sysroot" != x
; then
12225 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12227 # This value is used, even on a native system, because
12228 # CROSS_SYSTEM_HEADER_DIR is just
12229 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12230 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
12233 if test x
$host != x
$target
12235 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12237 SYSTEM_HEADER_DIR
=$build_system_header_dir
12238 case "$host","$target" in
12239 # Darwin crosses can use the host system's libraries and headers,
12240 # because of the fat library support. Of course, it must be the
12241 # same version of Darwin on both sides. Allow the user to
12242 # just say --target=foo-darwin without a version number to mean
12243 # "the version on this system".
12244 *-*-darwin*,*-*-darwin*)
12245 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12246 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12247 if test $hostos = $targetos -o $targetos = darwin
; then
12249 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12254 i?
86-*-*,x86_64-
*-* \
12255 | powerpc
*-*-*,powerpc64
*-*-*)
12256 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12261 if test "x$with_headers" = x
; then
12268 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12269 SYSTEM_HEADER_DIR
=$build_system_header_dir
12272 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
12273 if test "x$with_headers" != x
; then
12274 target_header_dir
=$with_headers
12275 elif test "x$with_sysroot" = x
; then
12276 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12277 elif test "x$with_build_sysroot" != "x"; then
12278 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12279 elif test "x$with_sysroot" = xyes
; then
12280 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12282 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12285 target_header_dir
=${native_system_header_dir}
12288 # If this is a cross-compiler that does not
12289 # have its own set of headers then define
12292 # If this is using newlib, without having the headers available now,
12293 # then define inhibit_libc in LIBGCC2_CFLAGS.
12294 # This prevents libgcc2 from containing any code which requires libc
12296 : ${inhibit_libc=false}
12297 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12298 test x
$with_newlib = xyes
; } &&
12299 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12304 # When building gcc with a cross-compiler, we need to adjust things so
12305 # that the generator programs are still built with the native compiler.
12306 # Also, we cannot run fixincludes.
12308 # These are the normal (build=host) settings:
12309 CC_FOR_BUILD
='$(CC)'
12310 CXX_FOR_BUILD
='$(CXX)'
12311 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12312 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12313 BUILD_LDFLAGS
='$(LDFLAGS)'
12314 STMP_FIXINC
=stmp-fixinc
12316 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
12317 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
12319 # And these apply if build != host, or we are generating coverage data
12320 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12322 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12323 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12324 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12326 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12327 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12328 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
12329 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
12334 # Expand extra_headers to include complete path.
12335 # This substitutes for lots of t-* files.
12336 extra_headers_list
=
12337 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12338 for file in ${extra_headers} ; do
12339 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12342 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12343 if test x
"$use_gcc_tgmath" = xyes
12344 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12347 # Define collect2 in Makefile.
12348 case $host_can_use_collect2 in
12350 *) collect2
='collect2$(exeext)' ;;
12354 # Add a definition of USE_COLLECT2 if system wants one.
12355 case $use_collect2 in
12356 no
) use_collect2
= ;;
12359 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12360 xm_defines
="${xm_defines} USE_COLLECT2"
12361 case $host_can_use_collect2 in
12363 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12370 cat >>confdefs.h
<<_ACEOF
12371 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12375 # ---------------------------
12376 # Assembler & linker features
12377 # ---------------------------
12379 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12380 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12381 # However when ld-new is first executed from the build tree, libtool will
12382 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12383 # to the build tree. While doing this we need to use the previous-stage
12384 # linker, or we have an infinite loop. The presence of a shell script as
12385 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12386 # the gcc/collect-ld script. So we need to know how libtool works, or
12387 # exec-tool will fail.
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12393 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12398 macro_version
='2.2.7a'
12399 macro_revision
='1.3134'
12413 ltmain
="$ac_aux_dir/ltmain.sh"
12415 # Backslashify metacharacters that are still active within
12416 # double-quoted strings.
12417 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12419 # Same as above, but do not quote variable references.
12420 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12422 # Sed substitution to delay expansion of an escaped shell variable in a
12423 # double_quote_subst'ed string.
12424 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12426 # Sed substitution to delay expansion of an escaped single quote.
12427 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12429 # Sed substitution to avoid accidental globbing in evaled expressions
12430 no_glob_subst
='s/\*/\\\*/g'
12432 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12433 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12434 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12437 $as_echo_n "checking how to print strings... " >&6; }
12438 # Test print first, because it will be a builtin if present.
12439 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12440 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12442 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12445 # Use this function as a fallback that always works.
12446 func_fallback_echo ()
12448 eval 'cat <<_LTECHO_EOF
12452 ECHO='func_fallback_echo
'
12455 # func_echo_all arg...
12456 # Invoke $ECHO with all args, space-separated.
12463 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12464 $as_echo "printf" >&6; } ;;
12465 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12466 $as_echo "print -r" >&6; } ;;
12467 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12468 $as_echo "cat" >&6; } ;;
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12485 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12486 if test "${ac_cv_path_SED+set}" = set; then :
12487 $as_echo_n "(cached) " >&6
12489 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12490 for ac_i in 1 2 3 4 5 6 7; do
12491 ac_script="$ac_script$as_nl$ac_script"
12493 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12494 { ac_script=; unset ac_script;}
12495 if test -z "$SED"; then
12496 ac_path_SED_found=false
12497 # Loop through the user's path and
test for each of PROGNAME-LIST
12498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12499 for as_dir
in $PATH
12502 test -z "$as_dir" && as_dir
=.
12503 for ac_prog
in sed gsed
; do
12504 for ac_exec_ext
in '' $ac_executable_extensions; do
12505 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12506 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12507 # Check for GNU ac_path_SED and select it if it is found.
12508 # Check for GNU $ac_path_SED
12509 case `"$ac_path_SED" --version 2>&1` in
12511 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12514 $as_echo_n 0123456789 >"conftest.in"
12517 cat "conftest.in" "conftest.in" >"conftest.tmp"
12518 mv "conftest.tmp" "conftest.in"
12519 cp "conftest.in" "conftest.nl"
12520 $as_echo '' >> "conftest.nl"
12521 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12522 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12523 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12524 if test $ac_count -gt ${ac_path_SED_max-0}; then
12525 # Best one so far, save it but keep looking for a better one
12526 ac_cv_path_SED
="$ac_path_SED"
12527 ac_path_SED_max
=$ac_count
12529 # 10*(2^10) chars as input seems more than enough
12530 test $ac_count -gt 10 && break
12532 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12535 $ac_path_SED_found && break 3
12540 if test -z "$ac_cv_path_SED"; then
12541 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12544 ac_cv_path_SED
=$SED
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12549 $as_echo "$ac_cv_path_SED" >&6; }
12550 SED
="$ac_cv_path_SED"
12553 test -z "$SED" && SED
=sed
12554 Xsed
="$SED -e 1s/^X//"
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12567 $as_echo_n "checking for fgrep... " >&6; }
12568 if test "${ac_cv_path_FGREP+set}" = set; then :
12569 $as_echo_n "(cached) " >&6
12571 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12572 then ac_cv_path_FGREP
="$GREP -F"
12574 if test -z "$FGREP"; then
12575 ac_path_FGREP_found
=false
12576 # Loop through the user's path and test for each of PROGNAME-LIST
12577 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12578 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12581 test -z "$as_dir" && as_dir
=.
12582 for ac_prog
in fgrep
; do
12583 for ac_exec_ext
in '' $ac_executable_extensions; do
12584 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12585 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12586 # Check for GNU ac_path_FGREP and select it if it is found.
12587 # Check for GNU $ac_path_FGREP
12588 case `"$ac_path_FGREP" --version 2>&1` in
12590 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12593 $as_echo_n 0123456789 >"conftest.in"
12596 cat "conftest.in" "conftest.in" >"conftest.tmp"
12597 mv "conftest.tmp" "conftest.in"
12598 cp "conftest.in" "conftest.nl"
12599 $as_echo 'FGREP' >> "conftest.nl"
12600 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12601 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12602 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12603 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12604 # Best one so far, save it but keep looking for a better one
12605 ac_cv_path_FGREP
="$ac_path_FGREP"
12606 ac_path_FGREP_max
=$ac_count
12608 # 10*(2^10) chars as input seems more than enough
12609 test $ac_count -gt 10 && break
12611 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12614 $ac_path_FGREP_found && break 3
12619 if test -z "$ac_cv_path_FGREP"; then
12620 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12623 ac_cv_path_FGREP
=$FGREP
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12629 $as_echo "$ac_cv_path_FGREP" >&6; }
12630 FGREP
="$ac_cv_path_FGREP"
12633 test -z "$GREP" && GREP
=grep
12653 # Check whether --with-gnu-ld was given.
12654 if test "${with_gnu_ld+set}" = set; then :
12655 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12661 if test "$GCC" = yes; then
12662 # Check if gcc -print-prog-name=ld gives a path.
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12664 $as_echo_n "checking for ld used by $CC... " >&6; }
12667 # gcc leaves a trailing carriage return which upsets mingw
12668 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12670 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12673 # Accept absolute paths.
12675 re_direlt
='/[^/][^/]*/\.\./'
12676 # Canonicalize the pathname of ld
12677 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12678 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12679 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12681 test -z "$LD" && LD
="$ac_prog"
12684 # If it fails, then pretend we aren't using GCC.
12688 # If it is relative, then search for the first ld in PATH.
12689 with_gnu_ld
=unknown
12692 elif test "$with_gnu_ld" = yes; then
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12694 $as_echo_n "checking for GNU ld... " >&6; }
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12697 $as_echo_n "checking for non-GNU ld... " >&6; }
12699 if test "${lt_cv_path_LD+set}" = set; then :
12700 $as_echo_n "(cached) " >&6
12702 if test -z "$LD"; then
12703 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12704 for ac_dir
in $PATH; do
12706 test -z "$ac_dir" && ac_dir
=.
12707 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12708 lt_cv_path_LD
="$ac_dir/$ac_prog"
12709 # Check to see if the program is GNU ld. I'd rather use --version,
12710 # but apparently some variants of GNU ld only accept -v.
12711 # Break only if it was the GNU/non-GNU ld that we prefer.
12712 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12713 *GNU
* |
*'with BFD'*)
12714 test "$with_gnu_ld" != no
&& break
12717 test "$with_gnu_ld" != yes && break
12724 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12728 LD
="$lt_cv_path_LD"
12729 if test -n "$LD"; then
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12731 $as_echo "$LD" >&6; }
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12734 $as_echo "no" >&6; }
12736 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12738 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12739 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12740 $as_echo_n "(cached) " >&6
12742 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12743 case `$LD -v 2>&1 </dev/null` in
12744 *GNU
* |
*'with BFD'*)
12745 lt_cv_prog_gnu_ld
=yes
12748 lt_cv_prog_gnu_ld
=no
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12753 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12754 with_gnu_ld
=$lt_cv_prog_gnu_ld
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12765 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12766 if test "${lt_cv_path_NM+set}" = set; then :
12767 $as_echo_n "(cached) " >&6
12769 if test -n "$NM"; then
12770 # Let the user override the test.
12771 lt_cv_path_NM
="$NM"
12773 lt_nm_to_check
="${ac_tool_prefix}nm"
12774 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12775 lt_nm_to_check
="$lt_nm_to_check nm"
12777 for lt_tmp_nm
in $lt_nm_to_check; do
12778 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12779 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12781 test -z "$ac_dir" && ac_dir
=.
12782 tmp_nm
="$ac_dir/$lt_tmp_nm"
12783 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12784 # Check to see if the nm accepts a BSD-compat flag.
12785 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12786 # nm: unknown option "B" ignored
12787 # Tru64's nm complains that /dev/null is an invalid object file
12788 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12789 */dev
/null
* |
*'Invalid file or object type'*)
12790 lt_cv_path_NM
="$tmp_nm -B"
12794 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12796 lt_cv_path_NM
="$tmp_nm -p"
12800 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12801 continue # so that we can try to find one that supports BSD flags
12810 : ${lt_cv_path_NM=no}
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12814 $as_echo "$lt_cv_path_NM" >&6; }
12815 if test "$lt_cv_path_NM" != "no"; then
12816 NM
="$lt_cv_path_NM"
12818 # Didn't find any BSD compatible name lister, look for dumpbin.
12819 if test -n "$DUMPBIN"; then :
12820 # Let the user override the test.
12822 if test -n "$ac_tool_prefix"; then
12823 for ac_prog
in dumpbin
"link -dump"
12825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12826 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12828 $as_echo_n "checking for $ac_word... " >&6; }
12829 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12830 $as_echo_n "(cached) " >&6
12832 if test -n "$DUMPBIN"; then
12833 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12836 for as_dir
in $PATH
12839 test -z "$as_dir" && as_dir
=.
12840 for ac_exec_ext
in '' $ac_executable_extensions; do
12841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12842 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12852 DUMPBIN
=$ac_cv_prog_DUMPBIN
12853 if test -n "$DUMPBIN"; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12855 $as_echo "$DUMPBIN" >&6; }
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858 $as_echo "no" >&6; }
12862 test -n "$DUMPBIN" && break
12865 if test -z "$DUMPBIN"; then
12866 ac_ct_DUMPBIN
=$DUMPBIN
12867 for ac_prog
in dumpbin
"link -dump"
12869 # Extract the first word of "$ac_prog", so it can be a program name with args.
12870 set dummy
$ac_prog; ac_word
=$2
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12872 $as_echo_n "checking for $ac_word... " >&6; }
12873 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12874 $as_echo_n "(cached) " >&6
12876 if test -n "$ac_ct_DUMPBIN"; then
12877 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12880 for as_dir
in $PATH
12883 test -z "$as_dir" && as_dir
=.
12884 for ac_exec_ext
in '' $ac_executable_extensions; do
12885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12886 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12896 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12897 if test -n "$ac_ct_DUMPBIN"; then
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12899 $as_echo "$ac_ct_DUMPBIN" >&6; }
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902 $as_echo "no" >&6; }
12906 test -n "$ac_ct_DUMPBIN" && break
12909 if test "x$ac_ct_DUMPBIN" = x
; then
12912 case $cross_compiling:$ac_tool_warned in
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12916 ac_tool_warned
=yes ;;
12918 DUMPBIN
=$ac_ct_DUMPBIN
12922 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12924 DUMPBIN
="$DUMPBIN -symbols"
12932 if test "$DUMPBIN" != ":"; then
12936 test -z "$NM" && NM
=nm
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12944 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12945 if test "${lt_cv_nm_interface+set}" = set; then :
12946 $as_echo_n "(cached) " >&6
12948 lt_cv_nm_interface
="BSD nm"
12949 echo "int some_variable = 0;" > conftest.
$ac_ext
12950 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12951 (eval "$ac_compile" 2>conftest.err
)
12952 cat conftest.err
>&5
12953 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12954 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12955 cat conftest.err
>&5
12956 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12957 cat conftest.out
>&5
12958 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12959 lt_cv_nm_interface
="MS dumpbin"
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12964 $as_echo "$lt_cv_nm_interface" >&6; }
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12967 $as_echo_n "checking whether ln -s works... " >&6; }
12969 if test "$LN_S" = "ln -s"; then
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12971 $as_echo "yes" >&6; }
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12974 $as_echo "no, using $LN_S" >&6; }
12977 # find the maximum length of command line arguments
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12979 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12980 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12981 $as_echo_n "(cached) " >&6
12988 # On DJGPP, this test can blow up pretty badly due to problems in libc
12989 # (any single argument exceeding 2000 bytes causes a buffer overrun
12990 # during glob expansion). Even if it were fixed, the result of this
12991 # check would be larger than it should be.
12992 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12996 # Under GNU Hurd, this test is not required because there is
12997 # no limit to the length of command line arguments.
12998 # Libtool will interpret -1 as no limit whatsoever
12999 lt_cv_sys_max_cmd_len
=-1;
13002 cygwin
* | mingw
* | cegcc
*)
13003 # On Win9x/ME, this test blows up -- it succeeds, but takes
13004 # about 5 minutes as the teststring grows exponentially.
13005 # Worse, since 9x/ME are not pre-emptively multitasking,
13006 # you end up with a "frozen" computer, even though with patience
13007 # the test eventually succeeds (with a max line length of 256k).
13008 # Instead, let's just punt: use the minimum linelength reported by
13009 # all of the supported platforms: 8192 (on NT/2K/XP).
13010 lt_cv_sys_max_cmd_len
=8192;
13014 # On MiNT this can take a long time and run out of memory.
13015 lt_cv_sys_max_cmd_len
=8192;
13019 # On AmigaOS with pdksh, this test takes hours, literally.
13020 # So we just punt and use a minimum line length of 8192.
13021 lt_cv_sys_max_cmd_len
=8192;
13024 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
13025 # This has been around since 386BSD, at least. Likely further.
13026 if test -x /sbin
/sysctl
; then
13027 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
13028 elif test -x /usr
/sbin
/sysctl
; then
13029 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
13031 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
13033 # And add a safety zone
13034 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13035 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13039 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13040 lt_cv_sys_max_cmd_len
=196608
13044 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13045 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13046 # nice to cause kernel panics so lets avoid the loop below.
13047 # First set a reasonable default.
13048 lt_cv_sys_max_cmd_len
=16384
13050 if test -x /sbin
/sysconfig
; then
13051 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13052 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13057 lt_cv_sys_max_cmd_len
=102400
13059 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13060 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13061 if test -n "$kargmax"; then
13062 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13064 lt_cv_sys_max_cmd_len
=32768
13068 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13069 if test -n "$lt_cv_sys_max_cmd_len"; then
13070 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13071 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13073 # Make teststring a little bigger before we do anything with it.
13074 # a 1K string should be a reasonable start.
13075 for i
in 1 2 3 4 5 6 7 8 ; do
13076 teststring
=$teststring$teststring
13078 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13079 # If test is not a shell built-in, we'll probably end up computing a
13080 # maximum length that is only half of the actual maximum length, but
13082 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13083 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13084 test $i != 17 # 1/2 MB should be enough
13087 teststring
=$teststring$teststring
13089 # Only check the string length outside the loop.
13090 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13092 # Add a significant safety factor because C++ compilers can tack on
13093 # massive amounts of additional arguments before passing them to the
13094 # linker. It appears as though 1/2 is a usable value.
13095 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13102 if test -n $lt_cv_sys_max_cmd_len ; then
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13104 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13107 $as_echo "none" >&6; }
13109 max_cmd_len
=$lt_cv_sys_max_cmd_len
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13121 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13122 # Try some XSI features
13124 ( _lt_dummy
="a/b/c"
13125 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13127 && eval 'test $(( 1 + 1 )) -eq 2 \
13128 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13131 $as_echo "$xsi_shell" >&6; }
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13135 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13137 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13139 && lt_shell_append=yes
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13141 $as_echo "$lt_shell_append" >&6; }
13144 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13154 # test EBCDIC or ASCII
13155 case `echo X|tr X '\101'` in
13156 A) # ASCII based system
13157 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13158 lt_SP2NL='tr \040 \012'
13159 lt_NL2SP='tr \015\012 \040\040'
13161 *) # EBCDIC based system
13162 lt_SP2NL='tr \100 \n'
13163 lt_NL2SP='tr \r\n \100\100'
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13176 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13177 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13178 $as_echo_n "(cached
) " >&6
13180 lt_cv_ld_reload_flag='-r'
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13183 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13184 reload_flag=$lt_cv_ld_reload_flag
13185 case $reload_flag in
13187 *) reload_flag=" $reload_flag" ;;
13189 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13192 if test "$GCC" = yes; then
13193 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13195 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13208 if test -n "$ac_tool_prefix"; then
13209 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13210 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13212 $as_echo_n "checking
for $ac_word...
" >&6; }
13213 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13214 $as_echo_n "(cached
) " >&6
13216 if test -n "$OBJDUMP"; then
13217 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220 for as_dir in $PATH
13223 test -z "$as_dir" && as_dir=.
13224 for ac_exec_ext in '' $ac_executable_extensions; do
13225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13226 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13227 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13236 OBJDUMP=$ac_cv_prog_OBJDUMP
13237 if test -n "$OBJDUMP"; then
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13239 $as_echo "$OBJDUMP" >&6; }
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13242 $as_echo "no
" >&6; }
13247 if test -z "$ac_cv_prog_OBJDUMP"; then
13248 ac_ct_OBJDUMP=$OBJDUMP
13249 # Extract the first word of "objdump
", so it can be a program name with args.
13250 set dummy objdump; ac_word=$2
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13252 $as_echo_n "checking
for $ac_word...
" >&6; }
13253 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13254 $as_echo_n "(cached
) " >&6
13256 if test -n "$ac_ct_OBJDUMP"; then
13257 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13260 for as_dir in $PATH
13263 test -z "$as_dir" && as_dir=.
13264 for ac_exec_ext in '' $ac_executable_extensions; do
13265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13266 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13267 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13276 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13277 if test -n "$ac_ct_OBJDUMP"; then
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13279 $as_echo "$ac_ct_OBJDUMP" >&6; }
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13282 $as_echo "no
" >&6; }
13285 if test "x
$ac_ct_OBJDUMP" = x; then
13288 case $cross_compiling:$ac_tool_warned in
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13291 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13292 ac_tool_warned=yes ;;
13294 OBJDUMP=$ac_ct_OBJDUMP
13297 OBJDUMP="$ac_cv_prog_OBJDUMP"
13300 test -z "$OBJDUMP" && OBJDUMP=objdump
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13311 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13312 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13313 $as_echo_n "(cached
) " >&6
13315 lt_cv_file_magic_cmd='$MAGIC_CMD'
13316 lt_cv_file_magic_test_file=
13317 lt_cv_deplibs_check_method='unknown'
13318 # Need to set the preceding variable on all platforms that support
13319 # interlibrary dependencies.
13320 # 'none' -- dependencies not supported.
13321 # `unknown' -- same as none, but documents that we really don't know.
13322 # 'pass_all' -- all dependencies passed with no checks.
13323 # 'test_compile' -- check by making test program.
13324 # 'file_magic [[regex]]' -- check by looking for files in library path
13325 # which responds to the $file_magic_cmd with a given extended regex.
13326 # If you have `file' or equivalent on your system and you're not sure
13327 # whether `pass_all' will *always* work, you probably want this one.
13331 lt_cv_deplibs_check_method=pass_all
13335 lt_cv_deplibs_check_method=pass_all
13339 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13340 lt_cv_file_magic_cmd='/usr/bin/file -L'
13341 lt_cv_file_magic_test_file=/shlib/libc.so
13345 # func_win32_libid is a shell function defined in ltmain.sh
13346 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13347 lt_cv_file_magic_cmd='func_win32_libid'
13351 # Base MSYS/MinGW do not provide the 'file' command needed by
13352 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13353 # unless we find 'file', for example because we are cross-compiling.
13354 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13355 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13356 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13357 lt_cv_file_magic_cmd='func_win32_libid'
13359 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13360 lt_cv_file_magic_cmd='$OBJDUMP -f'
13365 # use the weaker test based on 'objdump'. See mingw*.
13366 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13367 lt_cv_file_magic_cmd='$OBJDUMP -f'
13370 darwin* | rhapsody*)
13371 lt_cv_deplibs_check_method=pass_all
13374 freebsd* | dragonfly*)
13375 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13378 # Not sure whether the presence of OpenBSD here was a mistake.
13379 # Let's accept both of them until this is cleared up.
13380 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13381 lt_cv_file_magic_cmd=/usr/bin/file
13382 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13386 lt_cv_deplibs_check_method=pass_all
13391 lt_cv_deplibs_check_method=pass_all
13395 lt_cv_deplibs_check_method=pass_all
13398 hpux10.20* | hpux11*)
13399 lt_cv_file_magic_cmd=/usr/bin/file
13402 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13403 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13406 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]'
13407 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13410 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13411 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13417 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13421 irix5* | irix6* | nonstopux*)
13423 *-32|*"-32 ") libmagic=32-bit;;
13424 *-n32|*"-n32 ") libmagic=N32;;
13425 *-64|*"-64 ") libmagic=64-bit;;
13426 *) libmagic=never-match;;
13428 lt_cv_deplibs_check_method=pass_all
13431 # This must be Linux ELF.
13432 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13433 lt_cv_deplibs_check_method=pass_all
13437 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13445 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13446 lt_cv_file_magic_cmd=/usr/bin/file
13447 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13451 lt_cv_deplibs_check_method=pass_all
13455 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13462 osf3* | osf4* | osf5*)
13463 lt_cv_deplibs_check_method=pass_all
13467 lt_cv_deplibs_check_method=pass_all
13471 lt_cv_deplibs_check_method=pass_all
13474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13475 lt_cv_deplibs_check_method=pass_all
13479 case $host_vendor in
13481 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]'
13482 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13485 lt_cv_deplibs_check_method=pass_all
13488 lt_cv_file_magic_cmd='/bin/file'
13489 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13492 lt_cv_file_magic_cmd='/bin/file'
13493 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13494 lt_cv_file_magic_test_file=/lib/libc.so
13497 lt_cv_deplibs_check_method=pass_all
13500 lt_cv_deplibs_check_method=pass_all
13506 lt_cv_deplibs_check_method=pass_all
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13512 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13513 file_magic_cmd=$lt_cv_file_magic_cmd
13514 deplibs_check_method=$lt_cv_deplibs_check_method
13515 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13528 if test -n "$ac_tool_prefix"; then
13529 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13530 set dummy ${ac_tool_prefix}ar; ac_word=$2
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13532 $as_echo_n "checking
for $ac_word...
" >&6; }
13533 if test "${ac_cv_prog_AR+set}" = set; then :
13534 $as_echo_n "(cached
) " >&6
13536 if test -n "$AR"; then
13537 ac_cv_prog_AR="$AR" # Let the user override the test.
13539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13540 for as_dir in $PATH
13543 test -z "$as_dir" && as_dir=.
13544 for ac_exec_ext in '' $ac_executable_extensions; do
13545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13546 ac_cv_prog_AR="${ac_tool_prefix}ar"
13547 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13557 if test -n "$AR"; then
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13559 $as_echo "$AR" >&6; }
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13562 $as_echo "no
" >&6; }
13567 if test -z "$ac_cv_prog_AR"; then
13569 # Extract the first word of "ar", so it can be a program name with args.
13570 set dummy ar; ac_word=$2
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13572 $as_echo_n "checking
for $ac_word...
" >&6; }
13573 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13574 $as_echo_n "(cached
) " >&6
13576 if test -n "$ac_ct_AR"; then
13577 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13580 for as_dir in $PATH
13583 test -z "$as_dir" && as_dir=.
13584 for ac_exec_ext in '' $ac_executable_extensions; do
13585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13586 ac_cv_prog_ac_ct_AR="ar"
13587 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13596 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13597 if test -n "$ac_ct_AR"; then
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13599 $as_echo "$ac_ct_AR" >&6; }
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13602 $as_echo "no
" >&6; }
13605 if test "x
$ac_ct_AR" = x; then
13608 case $cross_compiling:$ac_tool_warned in
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13611 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13612 ac_tool_warned=yes ;;
13617 AR="$ac_cv_prog_AR"
13620 test -z "$AR" && AR=ar
13621 test -z "$AR_FLAGS" && AR_FLAGS=cru
13633 if test -n "$ac_tool_prefix"; then
13634 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13635 set dummy ${ac_tool_prefix}strip; ac_word=$2
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13637 $as_echo_n "checking
for $ac_word...
" >&6; }
13638 if test "${ac_cv_prog_STRIP+set}" = set; then :
13639 $as_echo_n "(cached
) " >&6
13641 if test -n "$STRIP"; then
13642 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13645 for as_dir in $PATH
13648 test -z "$as_dir" && as_dir=.
13649 for ac_exec_ext in '' $ac_executable_extensions; do
13650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13651 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13652 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13661 STRIP=$ac_cv_prog_STRIP
13662 if test -n "$STRIP"; then
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13664 $as_echo "$STRIP" >&6; }
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13667 $as_echo "no
" >&6; }
13672 if test -z "$ac_cv_prog_STRIP"; then
13674 # Extract the first word of "strip
", so it can be a program name with args.
13675 set dummy strip; ac_word=$2
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13677 $as_echo_n "checking
for $ac_word...
" >&6; }
13678 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13679 $as_echo_n "(cached
) " >&6
13681 if test -n "$ac_ct_STRIP"; then
13682 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13685 for as_dir in $PATH
13688 test -z "$as_dir" && as_dir=.
13689 for ac_exec_ext in '' $ac_executable_extensions; do
13690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13691 ac_cv_prog_ac_ct_STRIP="strip
"
13692 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13701 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13702 if test -n "$ac_ct_STRIP"; then
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13704 $as_echo "$ac_ct_STRIP" >&6; }
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13707 $as_echo "no
" >&6; }
13710 if test "x
$ac_ct_STRIP" = x; then
13713 case $cross_compiling:$ac_tool_warned in
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13716 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13717 ac_tool_warned=yes ;;
13722 STRIP="$ac_cv_prog_STRIP"
13725 test -z "$STRIP" && STRIP=:
13732 if test -n "$ac_tool_prefix"; then
13733 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13734 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13736 $as_echo_n "checking
for $ac_word...
" >&6; }
13737 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13738 $as_echo_n "(cached
) " >&6
13740 if test -n "$RANLIB"; then
13741 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13744 for as_dir in $PATH
13747 test -z "$as_dir" && as_dir=.
13748 for ac_exec_ext in '' $ac_executable_extensions; do
13749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13750 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13751 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13760 RANLIB=$ac_cv_prog_RANLIB
13761 if test -n "$RANLIB"; then
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13763 $as_echo "$RANLIB" >&6; }
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13766 $as_echo "no
" >&6; }
13771 if test -z "$ac_cv_prog_RANLIB"; then
13772 ac_ct_RANLIB=$RANLIB
13773 # Extract the first word of "ranlib
", so it can be a program name with args.
13774 set dummy ranlib; ac_word=$2
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13776 $as_echo_n "checking
for $ac_word...
" >&6; }
13777 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13778 $as_echo_n "(cached
) " >&6
13780 if test -n "$ac_ct_RANLIB"; then
13781 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13784 for as_dir in $PATH
13787 test -z "$as_dir" && as_dir=.
13788 for ac_exec_ext in '' $ac_executable_extensions; do
13789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13790 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13791 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13800 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13801 if test -n "$ac_ct_RANLIB"; then
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13803 $as_echo "$ac_ct_RANLIB" >&6; }
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13806 $as_echo "no
" >&6; }
13809 if test "x
$ac_ct_RANLIB" = x; then
13812 case $cross_compiling:$ac_tool_warned in
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13815 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13816 ac_tool_warned=yes ;;
13818 RANLIB=$ac_ct_RANLIB
13821 RANLIB="$ac_cv_prog_RANLIB"
13824 test -z "$RANLIB" && RANLIB=:
13831 # Determine commands to create old-style static archives.
13832 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13833 old_postinstall_cmds='chmod 644 $oldlib'
13834 old_postuninstall_cmds=
13836 if test -n "$RANLIB"; then
13839 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13842 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13845 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13850 lock_old_archive_extraction=yes ;;
13852 lock_old_archive_extraction=no ;;
13893 # If no C compiler was specified, use CC.
13896 # If no C compiler flags were specified, use CFLAGS.
13897 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13899 # Allow CC to be a program name with arguments.
13903 # Check for command to grab the raw symbol name followed by C symbol from nm.
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13905 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13906 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13907 $as_echo_n "(cached
) " >&6
13910 # These are sane defaults that work on at least a few old systems.
13911 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13913 # Character class describing NM global symbol codes.
13914 symcode='[BCDEGRST]'
13916 # Regexp to match symbols that can be accessed directly from C.
13917 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13919 # Define system-specific variables.
13924 cygwin* | mingw* | pw32* | cegcc*)
13925 symcode='[ABCDGISTW]'
13928 if test "$host_cpu" = ia64; then
13929 symcode='[ABCDEGRST]'
13932 irix* | nonstopux*)
13933 symcode='[BCDEGRST]'
13936 symcode='[BCDEGQRST]'
13947 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13955 # If we're using GNU nm, then use its standard symbol codes.
13956 case `$NM -V 2>&1` in
13957 *GNU* | *'with BFD'*)
13958 symcode='[ABCDGIRSTW]' ;;
13961 # Transform an extracted symbol line into a proper C declaration.
13962 # Some systems (esp. on ia64) link data and code symbols differently,
13963 # so use this general approach.
13964 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13966 # Transform an extracted symbol line into symbol name and symbol address
13967 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13968 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'"
13970 # Handle CRLF in mingw tool chain
13974 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13978 # Try without a prefix underscore, then with it.
13979 for ac_symprfx in "" "_
"; do
13981 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13982 symxfrm="\\1 $ac_symprfx\\2 \\2"
13984 # Write the raw and C identifiers.
13985 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13986 # Fake it for dumpbin and say T for any non-static function
13987 # and D for any global variable.
13988 # Also find C++ and __fastcall symbols from MSVC++,
13989 # which start with @ or ?.
13990 lt_cv_sys_global_symbol_pipe="$AWK '"\
13991 " {last_section=section; section=\$ 3};"\
13992 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13993 " \$ 0!~/External *\|/{next};"\
13994 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13995 " {if(hide[section]) next};"\
13996 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13997 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13998 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13999 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14000 " ' prfx
=^
$ac_symprfx"
14002 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14005 # Check to see that the pipe works correctly.
14009 cat > conftest.$ac_ext <<_LT_EOF
14014 void nm_test_func(void);
14015 void nm_test_func(void){}
14019 int main(){nm_test_var='a';nm_test_func();return(0);}
14022 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14023 (eval $ac_compile) 2>&5
14025 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14026 test $ac_status = 0; }; then
14027 # Now try to grab the symbols.
14029 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
14030 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14032 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14033 test $ac_status = 0; } && test -s "$nlist"; then
14034 # Try sorting and uniquifying the output.
14035 if sort "$nlist" | uniq > "$nlist"T; then
14036 mv -f "$nlist"T "$nlist"
14041 # Make sure that we snagged all the symbols we need.
14042 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14043 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14044 cat <<_LT_EOF > conftest.$ac_ext
14050 # Now generate the symbol file.
14051 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14053 cat <<_LT_EOF >> conftest.$ac_ext
14055 /* The mapping between symbol names and symbols. */
14060 lt__PROGRAM__LTX_preloaded_symbols[] =
14062 { "@PROGRAM@
", (void *) 0 },
14064 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14065 cat <<\_LT_EOF >> conftest.$ac_ext
14069 /* This works around a problem in FreeBSD linker */
14070 #ifdef FREEBSD_WORKAROUND
14071 static const void *lt_preloaded_setup() {
14072 return lt__PROGRAM__LTX_preloaded_symbols;
14080 # Now try linking the two files.
14081 mv conftest.$ac_objext conftstm.$ac_objext
14082 lt_save_LIBS="$LIBS"
14083 lt_save_CFLAGS="$CFLAGS"
14084 LIBS="conftstm.
$ac_objext"
14085 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14086 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14087 (eval $ac_link) 2>&5
14089 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14090 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14093 LIBS="$lt_save_LIBS"
14094 CFLAGS="$lt_save_CFLAGS"
14096 echo "cannot
find nm_test_func
in $nlist" >&5
14099 echo "cannot
find nm_test_var
in $nlist" >&5
14102 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14105 echo "$progname: failed program was
:" >&5
14106 cat conftest.$ac_ext >&5
14108 rm -rf conftest* conftst*
14110 # Do not use the global_symbol_pipe unless it works.
14111 if test "$pipe_works" = yes; then
14114 lt_cv_sys_global_symbol_pipe=
14120 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14121 lt_cv_sys_global_symbol_to_cdecl=
14123 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14125 $as_echo "failed
" >&6; }
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14128 $as_echo "ok
" >&6; }
14152 # Check whether --enable-libtool-lock was given.
14153 if test "${enable_libtool_lock+set}" = set; then :
14154 enableval=$enable_libtool_lock;
14157 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14159 # Some flags need to be propagated to the compiler or linker for good
14163 # Find out which ABI we are using.
14164 echo 'int i;' > conftest.$ac_ext
14165 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14166 (eval $ac_compile) 2>&5
14168 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14169 test $ac_status = 0; }; then
14170 case `/usr/bin/file conftest.$ac_objext` in
14172 HPUX_IA64_MODE="32"
14175 HPUX_IA64_MODE="64"
14182 # Find out which ABI we are using.
14183 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14184 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14185 (eval $ac_compile) 2>&5
14187 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14188 test $ac_status = 0; }; then
14189 if test "$lt_cv_prog_gnu_ld" = yes; then
14190 case `/usr/bin/file conftest.$ac_objext` in
14192 LD="${LD-ld} -melf32bsmip"
14195 LD="${LD-ld} -melf32bmipn32"
14198 LD="${LD-ld} -melf64bmip"
14202 case `/usr/bin/file conftest.$ac_objext` in
14218 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14219 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14220 # Find out which ABI we are using.
14221 echo 'int i;' > conftest.$ac_ext
14222 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14223 (eval $ac_compile) 2>&5
14225 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14226 test $ac_status = 0; }; then
14227 case `/usr/bin/file conftest.o` in
14230 x86_64-*kfreebsd*-gnu)
14231 LD="${LD-ld} -m elf_i386_fbsd
"
14234 case `/usr/bin/file conftest.o` in
14236 LD="${LD-ld} -m elf32_x86_64
"
14239 LD="${LD-ld} -m elf_i386
"
14243 powerpc64le-*linux*)
14244 LD="${LD-ld} -m elf32lppclinux
"
14247 LD="${LD-ld} -m elf32ppclinux
"
14250 LD="${LD-ld} -m elf_s390
"
14253 LD="${LD-ld} -m elf32_sparc
"
14259 x86_64-*kfreebsd*-gnu)
14260 LD="${LD-ld} -m elf_x86_64_fbsd
"
14263 LD="${LD-ld} -m elf_x86_64
"
14266 LD="${LD-ld} -m elf64lppc
"
14269 LD="${LD-ld} -m elf64ppc
"
14271 s390*-*linux*|s390*-*tpf*)
14272 LD="${LD-ld} -m elf64_s390
"
14275 LD="${LD-ld} -m elf64_sparc
"
14285 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14286 SAVE_CFLAGS="$CFLAGS"
14287 CFLAGS="$CFLAGS -belf"
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14289 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14290 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14291 $as_echo_n "(cached
) " >&6
14294 ac_cpp='$CPP $CPPFLAGS'
14295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14300 /* end confdefs.h. */
14310 if ac_fn_c_try_link "$LINENO"; then :
14311 lt_cv_cc_needs_belf=yes
14313 lt_cv_cc_needs_belf=no
14315 rm -f core conftest.err conftest.$ac_objext \
14316 conftest$ac_exeext conftest.$ac_ext
14318 ac_cpp='$CPP $CPPFLAGS'
14319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14325 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14326 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14327 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14328 CFLAGS="$SAVE_CFLAGS"
14332 # Find out which ABI we are using.
14333 echo 'int i;' > conftest.$ac_ext
14334 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14335 (eval $ac_compile) 2>&5
14337 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14338 test $ac_status = 0; }; then
14339 case `/usr/bin/file conftest.o` in
14341 case $lt_cv_prog_gnu_ld in
14342 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14344 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14356 need_locks="$enable_libtool_lock"
14360 rhapsody* | darwin*)
14361 if test -n "$ac_tool_prefix"; then
14362 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14363 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14365 $as_echo_n "checking
for $ac_word...
" >&6; }
14366 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14367 $as_echo_n "(cached
) " >&6
14369 if test -n "$DSYMUTIL"; then
14370 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14373 for as_dir in $PATH
14376 test -z "$as_dir" && as_dir=.
14377 for ac_exec_ext in '' $ac_executable_extensions; do
14378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14379 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14380 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14389 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14390 if test -n "$DSYMUTIL"; then
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14392 $as_echo "$DSYMUTIL" >&6; }
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14395 $as_echo "no
" >&6; }
14400 if test -z "$ac_cv_prog_DSYMUTIL"; then
14401 ac_ct_DSYMUTIL=$DSYMUTIL
14402 # Extract the first word of "dsymutil
", so it can be a program name with args.
14403 set dummy dsymutil; ac_word=$2
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14405 $as_echo_n "checking
for $ac_word...
" >&6; }
14406 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14407 $as_echo_n "(cached
) " >&6
14409 if test -n "$ac_ct_DSYMUTIL"; then
14410 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14413 for as_dir in $PATH
14416 test -z "$as_dir" && as_dir=.
14417 for ac_exec_ext in '' $ac_executable_extensions; do
14418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14419 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14420 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14429 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14430 if test -n "$ac_ct_DSYMUTIL"; then
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14432 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14435 $as_echo "no
" >&6; }
14438 if test "x
$ac_ct_DSYMUTIL" = x; then
14441 case $cross_compiling:$ac_tool_warned in
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14444 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14445 ac_tool_warned=yes ;;
14447 DSYMUTIL=$ac_ct_DSYMUTIL
14450 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14453 if test -n "$ac_tool_prefix"; then
14454 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14455 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14457 $as_echo_n "checking
for $ac_word...
" >&6; }
14458 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14459 $as_echo_n "(cached
) " >&6
14461 if test -n "$NMEDIT"; then
14462 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14465 for as_dir in $PATH
14468 test -z "$as_dir" && as_dir=.
14469 for ac_exec_ext in '' $ac_executable_extensions; do
14470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14471 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14472 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14481 NMEDIT=$ac_cv_prog_NMEDIT
14482 if test -n "$NMEDIT"; then
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14484 $as_echo "$NMEDIT" >&6; }
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14487 $as_echo "no
" >&6; }
14492 if test -z "$ac_cv_prog_NMEDIT"; then
14493 ac_ct_NMEDIT=$NMEDIT
14494 # Extract the first word of "nmedit
", so it can be a program name with args.
14495 set dummy nmedit; ac_word=$2
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14497 $as_echo_n "checking
for $ac_word...
" >&6; }
14498 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14499 $as_echo_n "(cached
) " >&6
14501 if test -n "$ac_ct_NMEDIT"; then
14502 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14505 for as_dir in $PATH
14508 test -z "$as_dir" && as_dir=.
14509 for ac_exec_ext in '' $ac_executable_extensions; do
14510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14511 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14512 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14521 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14522 if test -n "$ac_ct_NMEDIT"; then
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14524 $as_echo "$ac_ct_NMEDIT" >&6; }
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14527 $as_echo "no
" >&6; }
14530 if test "x
$ac_ct_NMEDIT" = x; then
14533 case $cross_compiling:$ac_tool_warned in
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14536 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14537 ac_tool_warned=yes ;;
14539 NMEDIT=$ac_ct_NMEDIT
14542 NMEDIT="$ac_cv_prog_NMEDIT"
14545 if test -n "$ac_tool_prefix"; then
14546 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14547 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14549 $as_echo_n "checking
for $ac_word...
" >&6; }
14550 if test "${ac_cv_prog_LIPO+set}" = set; then :
14551 $as_echo_n "(cached
) " >&6
14553 if test -n "$LIPO"; then
14554 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14557 for as_dir in $PATH
14560 test -z "$as_dir" && as_dir=.
14561 for ac_exec_ext in '' $ac_executable_extensions; do
14562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14563 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14564 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14573 LIPO=$ac_cv_prog_LIPO
14574 if test -n "$LIPO"; then
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14576 $as_echo "$LIPO" >&6; }
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14579 $as_echo "no
" >&6; }
14584 if test -z "$ac_cv_prog_LIPO"; then
14586 # Extract the first word of "lipo
", so it can be a program name with args.
14587 set dummy lipo; ac_word=$2
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14589 $as_echo_n "checking
for $ac_word...
" >&6; }
14590 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14591 $as_echo_n "(cached
) " >&6
14593 if test -n "$ac_ct_LIPO"; then
14594 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14597 for as_dir in $PATH
14600 test -z "$as_dir" && as_dir=.
14601 for ac_exec_ext in '' $ac_executable_extensions; do
14602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14603 ac_cv_prog_ac_ct_LIPO="lipo
"
14604 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14613 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14614 if test -n "$ac_ct_LIPO"; then
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14616 $as_echo "$ac_ct_LIPO" >&6; }
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14619 $as_echo "no
" >&6; }
14622 if test "x
$ac_ct_LIPO" = x; then
14625 case $cross_compiling:$ac_tool_warned in
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14628 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14629 ac_tool_warned=yes ;;
14634 LIPO="$ac_cv_prog_LIPO"
14637 if test -n "$ac_tool_prefix"; then
14638 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14639 set dummy ${ac_tool_prefix}otool; ac_word=$2
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14641 $as_echo_n "checking
for $ac_word...
" >&6; }
14642 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14643 $as_echo_n "(cached
) " >&6
14645 if test -n "$OTOOL"; then
14646 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14649 for as_dir in $PATH
14652 test -z "$as_dir" && as_dir=.
14653 for ac_exec_ext in '' $ac_executable_extensions; do
14654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14655 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14656 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14665 OTOOL=$ac_cv_prog_OTOOL
14666 if test -n "$OTOOL"; then
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14668 $as_echo "$OTOOL" >&6; }
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14671 $as_echo "no
" >&6; }
14676 if test -z "$ac_cv_prog_OTOOL"; then
14678 # Extract the first word of "otool
", so it can be a program name with args.
14679 set dummy otool; ac_word=$2
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14681 $as_echo_n "checking
for $ac_word...
" >&6; }
14682 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14683 $as_echo_n "(cached
) " >&6
14685 if test -n "$ac_ct_OTOOL"; then
14686 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14689 for as_dir in $PATH
14692 test -z "$as_dir" && as_dir=.
14693 for ac_exec_ext in '' $ac_executable_extensions; do
14694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14695 ac_cv_prog_ac_ct_OTOOL="otool
"
14696 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14705 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14706 if test -n "$ac_ct_OTOOL"; then
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14708 $as_echo "$ac_ct_OTOOL" >&6; }
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14711 $as_echo "no
" >&6; }
14714 if test "x
$ac_ct_OTOOL" = x; then
14717 case $cross_compiling:$ac_tool_warned in
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14720 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14721 ac_tool_warned=yes ;;
14726 OTOOL="$ac_cv_prog_OTOOL"
14729 if test -n "$ac_tool_prefix"; then
14730 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14731 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14733 $as_echo_n "checking
for $ac_word...
" >&6; }
14734 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14735 $as_echo_n "(cached
) " >&6
14737 if test -n "$OTOOL64"; then
14738 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14741 for as_dir in $PATH
14744 test -z "$as_dir" && as_dir=.
14745 for ac_exec_ext in '' $ac_executable_extensions; do
14746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14747 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14748 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14757 OTOOL64=$ac_cv_prog_OTOOL64
14758 if test -n "$OTOOL64"; then
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14760 $as_echo "$OTOOL64" >&6; }
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14763 $as_echo "no
" >&6; }
14768 if test -z "$ac_cv_prog_OTOOL64"; then
14769 ac_ct_OTOOL64=$OTOOL64
14770 # Extract the first word of "otool64
", so it can be a program name with args.
14771 set dummy otool64; ac_word=$2
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14773 $as_echo_n "checking
for $ac_word...
" >&6; }
14774 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14775 $as_echo_n "(cached
) " >&6
14777 if test -n "$ac_ct_OTOOL64"; then
14778 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14781 for as_dir in $PATH
14784 test -z "$as_dir" && as_dir=.
14785 for ac_exec_ext in '' $ac_executable_extensions; do
14786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14787 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14788 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14797 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14798 if test -n "$ac_ct_OTOOL64"; then
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14800 $as_echo "$ac_ct_OTOOL64" >&6; }
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14803 $as_echo "no
" >&6; }
14806 if test "x
$ac_ct_OTOOL64" = x; then
14809 case $cross_compiling:$ac_tool_warned in
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14812 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14813 ac_tool_warned=yes ;;
14815 OTOOL64=$ac_ct_OTOOL64
14818 OTOOL64="$ac_cv_prog_OTOOL64"
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14848 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14849 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14850 $as_echo_n "(cached
) " >&6
14852 lt_cv_apple_cc_single_mod=no
14853 if test -z "${LT_MULTI_MODULE}"; then
14854 # By default we will add the -single_module flag. You can override
14855 # by either setting the environment variable LT_MULTI_MODULE
14856 # non-empty at configure time, or by adding -multi_module to the
14858 rm -rf libconftest.dylib*
14859 echo "int foo
(void
){return 1;}" > conftest.c
14860 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14861 -dynamiclib -Wl,-single_module conftest.c
" >&5
14862 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14863 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14865 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14866 lt_cv_apple_cc_single_mod=yes
14868 cat conftest.err >&5
14870 rm -rf libconftest.dylib*
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14875 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14877 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14878 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14879 $as_echo_n "(cached
) " >&6
14881 lt_cv_ld_exported_symbols_list=no
14882 save_LDFLAGS=$LDFLAGS
14883 echo "_main
" > conftest.sym
14884 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14886 /* end confdefs.h. */
14896 if ac_fn_c_try_link "$LINENO"; then :
14897 lt_cv_ld_exported_symbols_list=yes
14899 lt_cv_ld_exported_symbols_list=no
14901 rm -f core conftest.err conftest.$ac_objext \
14902 conftest$ac_exeext conftest.$ac_ext
14903 LDFLAGS="$save_LDFLAGS"
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14907 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14909 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14910 if test "${lt_cv_ld_force_load+set}" = set; then :
14911 $as_echo_n "(cached
) " >&6
14913 lt_cv_ld_force_load=no
14914 cat > conftest.c << _LT_EOF
14915 int forced_loaded() { return 2;}
14917 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14918 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14919 echo "$AR cru libconftest.a conftest.o
" >&5
14920 $AR cru libconftest.a conftest.o 2>&5
14921 cat > conftest.c << _LT_EOF
14922 int main() { return 0;}
14924 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14925 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14927 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14928 lt_cv_ld_force_load=yes
14930 cat conftest.err >&5
14932 rm -f conftest.err libconftest.a conftest conftest.c
14933 rm -rf conftest.dSYM
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14937 $as_echo "$lt_cv_ld_force_load" >&6; }
14939 rhapsody* | darwin1.[012])
14940 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14942 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14943 darwin*) # darwin 5.x on
14944 # if running on 10.5 or later, the deployment target defaults
14945 # to the OS version, if on x86, and 10.4, the deployment
14946 # target defaults to 10.4. Don't you love it?
14947 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14948 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14949 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14951 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14953 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14957 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14958 _lt_dar_single_mod='$single_module'
14960 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14961 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14963 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14965 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14966 _lt_dsymutil='~$DSYMUTIL $lib || :'
14974 for ac_header in dlfcn.h
14976 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14977 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14978 cat >>confdefs.h <<_ACEOF
14979 #define HAVE_DLFCN_H 1
14996 enable_win32_dll=no
14999 # Check whether --enable-shared was given.
15000 if test "${enable_shared+set}" = set; then :
15001 enableval=$enable_shared; p=${PACKAGE-default}
15003 yes) enable_shared=yes ;;
15004 no) enable_shared=no ;;
15007 # Look at the argument we got. We use all the common list separators.
15008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15009 for pkg in $enableval; do
15011 if test "X
$pkg" = "X
$p"; then
15030 # Check whether --enable-static was given.
15031 if test "${enable_static+set}" = set; then :
15032 enableval=$enable_static; p=${PACKAGE-default}
15034 yes) enable_static=yes ;;
15035 no) enable_static=no ;;
15038 # Look at the argument we got. We use all the common list separators.
15039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15040 for pkg in $enableval; do
15042 if test "X
$pkg" = "X
$p"; then
15062 # Check whether --with-pic was given.
15063 if test "${with_pic+set}" = set; then :
15064 withval=$with_pic; pic_mode="$withval"
15070 test -z "$pic_mode" && pic_mode=default
15078 # Check whether --enable-fast-install was given.
15079 if test "${enable_fast_install+set}" = set; then :
15080 enableval=$enable_fast_install; p=${PACKAGE-default}
15082 yes) enable_fast_install=yes ;;
15083 no) enable_fast_install=no ;;
15085 enable_fast_install=no
15086 # Look at the argument we got. We use all the common list separators.
15087 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15088 for pkg in $enableval; do
15090 if test "X
$pkg" = "X
$p"; then
15091 enable_fast_install=yes
15098 enable_fast_install=yes
15111 # This can be used to rebuild libtool when needed
15112 LIBTOOL_DEPS="$ltmain"
15114 # Always use our own libtool.
15115 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15142 test -z "$LN_S" && LN_S="ln -s"
15157 if test -n "${ZSH_VERSION+set}" ; then
15158 setopt NO_GLOB_SUBST
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15162 $as_echo_n "checking
for objdir...
" >&6; }
15163 if test "${lt_cv_objdir+set}" = set; then :
15164 $as_echo_n "(cached
) " >&6
15166 rm -f .libs 2>/dev/null
15167 mkdir .libs 2>/dev/null
15168 if test -d .libs; then
15171 # MS-DOS does not allow filenames that begin with a dot.
15174 rmdir .libs 2>/dev/null
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15177 $as_echo "$lt_cv_objdir" >&6; }
15178 objdir=$lt_cv_objdir
15184 cat >>confdefs.h <<_ACEOF
15185 #define LT_OBJDIR "$lt_cv_objdir/"
15193 # AIX sometimes has problems with the GCC collect2 program. For some
15194 # reason, if we set the COLLECT_NAMES environment variable, the problems
15195 # vanish in a puff of smoke.
15196 if test "X
${COLLECT_NAMES+set}" != Xset; then
15198 export COLLECT_NAMES
15203 # Global variables:
15205 can_build_shared=yes
15207 # All known linkers require a `.a' archive for static linking (except MSVC,
15208 # which needs '.lib').
15211 with_gnu_ld="$lt_cv_prog_gnu_ld"
15214 old_CFLAGS="$CFLAGS"
15216 # Set sane defaults for various variables
15217 test -z "$CC" && CC=cc
15218 test -z "$LTCC" && LTCC=$CC
15219 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15220 test -z "$LD" && LD=ld
15221 test -z "$ac_objext" && ac_objext=o
15223 for cc_temp in $compiler""; do
15225 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15226 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15231 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15234 # Only perform the check for file, if the check method requires it
15235 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15236 case $deplibs_check_method in
15238 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15240 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15241 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15242 $as_echo_n "(cached
) " >&6
15246 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15249 lt_save_MAGIC_CMD="$MAGIC_CMD"
15250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15251 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15252 for ac_dir in $ac_dummy; do
15254 test -z "$ac_dir" && ac_dir=.
15255 if test -f $ac_dir/${ac_tool_prefix}file; then
15256 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15257 if test -n "$file_magic_test_file"; then
15258 case $deplibs_check_method in
15260 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15261 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15262 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15263 $EGREP "$file_magic_regex" > /dev/null; then
15268 *** Warning: the command libtool uses to detect shared libraries,
15269 *** $file_magic_cmd, produces output that libtool cannot recognize.
15270 *** The result is that libtool may fail to recognize shared libraries
15271 *** as such. This will affect the creation of libtool libraries that
15272 *** depend on shared libraries, but programs linked with such libtool
15273 *** libraries will work regardless of this problem. Nevertheless, you
15274 *** may want to report the problem to your system manager and/or to
15275 *** bug-libtool@gnu.org
15285 MAGIC_CMD="$lt_save_MAGIC_CMD"
15290 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15291 if test -n "$MAGIC_CMD"; then
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15293 $as_echo "$MAGIC_CMD" >&6; }
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15296 $as_echo "no
" >&6; }
15303 if test -z "$lt_cv_path_MAGIC_CMD"; then
15304 if test -n "$ac_tool_prefix"; then
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15306 $as_echo_n "checking
for file...
" >&6; }
15307 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15308 $as_echo_n "(cached
) " >&6
15312 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15315 lt_save_MAGIC_CMD="$MAGIC_CMD"
15316 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15317 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15318 for ac_dir in $ac_dummy; do
15320 test -z "$ac_dir" && ac_dir=.
15321 if test -f $ac_dir/file; then
15322 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15323 if test -n "$file_magic_test_file"; then
15324 case $deplibs_check_method in
15326 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15327 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15328 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15329 $EGREP "$file_magic_regex" > /dev/null; then
15334 *** Warning: the command libtool uses to detect shared libraries,
15335 *** $file_magic_cmd, produces output that libtool cannot recognize.
15336 *** The result is that libtool may fail to recognize shared libraries
15337 *** as such. This will affect the creation of libtool libraries that
15338 *** depend on shared libraries, but programs linked with such libtool
15339 *** libraries will work regardless of this problem. Nevertheless, you
15340 *** may want to report the problem to your system manager and/or to
15341 *** bug-libtool@gnu.org
15351 MAGIC_CMD="$lt_save_MAGIC_CMD"
15356 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15357 if test -n "$MAGIC_CMD"; then
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15359 $as_echo "$MAGIC_CMD" >&6; }
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15362 $as_echo "no
" >&6; }
15375 # Use C for the default configuration in the libtool script
15379 ac_cpp='$CPP $CPPFLAGS'
15380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15385 # Source file extension for C test sources.
15388 # Object file extension for compiled C test sources.
15392 # Code to be used in simple compile tests
15393 lt_simple_compile_test_code="int some_variable
= 0;"
15395 # Code to be used in simple link tests
15396 lt_simple_link_test_code='int main(){return(0);}'
15404 # If no C compiler was specified, use CC.
15407 # If no C compiler flags were specified, use CFLAGS.
15408 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15410 # Allow CC to be a program name with arguments.
15413 # Save the default compiler, since it gets overwritten when the other
15414 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15415 compiler_DEFAULT=$CC
15417 # save warnings/boilerplate of simple test code
15418 ac_outfile=conftest.$ac_objext
15419 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15420 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15421 _lt_compiler_boilerplate=`cat conftest.err`
15424 ac_outfile=conftest.$ac_objext
15425 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15426 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15427 _lt_linker_boilerplate=`cat conftest.err`
15432 ## There is no encapsulation within the following macros, do not change
15433 ## the running order or otherwise move them around unless you know exactly
15434 ## what you are doing...
15435 if test -n "$compiler"; then
15437 lt_prog_compiler_no_builtin_flag=
15439 if test "$GCC" = yes; then
15440 case $cc_basename in
15442 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15444 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15448 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15449 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15450 $as_echo_n "(cached
) " >&6
15452 lt_cv_prog_compiler_rtti_exceptions=no
15453 ac_outfile=conftest.$ac_objext
15454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15455 lt_compiler_flag="-fno-rtti -fno-exceptions"
15456 # Insert the option either (1) after the last *FLAGS variable, or
15457 # (2) before a word containing "conftest.
", or (3) at the end.
15458 # Note that $ac_compile itself does not contain backslashes and begins
15459 # with a dollar sign (not a hyphen), so the echo should work correctly.
15460 # The option is referenced via a variable to avoid confusing sed.
15461 lt_compile=`echo "$ac_compile" | $SED \
15462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15464 -e 's:$: $lt_compiler_flag:'`
15465 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15466 (eval "$lt_compile" 2>conftest.err)
15468 cat conftest.err >&5
15469 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15470 if (exit $ac_status) && test -s "$ac_outfile"; then
15471 # The compiler can only warn and ignore the option if not recognized
15472 # So say no if there are warnings other than the usual output.
15473 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15475 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15476 lt_cv_prog_compiler_rtti_exceptions=yes
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15483 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15485 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15486 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15498 lt_prog_compiler_wl=
15499 lt_prog_compiler_pic=
15500 lt_prog_compiler_static=
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15503 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15505 if test "$GCC" = yes; then
15506 lt_prog_compiler_wl='-Wl,'
15507 lt_prog_compiler_static='-static'
15511 # All AIX code is PIC.
15512 if test "$host_cpu" = ia64; then
15513 # AIX 5 now supports IA64 processor
15514 lt_prog_compiler_static='-Bstatic'
15516 lt_prog_compiler_pic='-fPIC'
15522 # see comment about AmigaOS4 .so support
15523 lt_prog_compiler_pic='-fPIC'
15526 # FIXME: we need at least 68020 code to build shared libraries, but
15527 # adding the `-m68020' flag to GCC prevents building anything better,
15529 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15534 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15535 # PIC is the default for these OSes.
15538 mingw* | cygwin* | pw32* | os2* | cegcc*)
15539 # This hack is so that the source file can tell whether it is being
15540 # built for inclusion in a dll (and should export symbols for example).
15541 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15542 # (--disable-auto-import) libraries
15543 lt_prog_compiler_pic='-DDLL_EXPORT'
15546 darwin* | rhapsody*)
15547 # PIC is the default on this platform
15548 # Common symbols not allowed in MH_DYLIB files
15549 lt_prog_compiler_pic='-fno-common'
15553 # PIC is the default for Haiku.
15554 # The "-static" flag exists, but is broken.
15555 lt_prog_compiler_static=
15559 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15560 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15561 # sets the default TLS model and affects inlining.
15567 lt_prog_compiler_pic='-fPIC'
15573 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15574 # Instead, we relocate shared libraries at runtime.
15578 # Just because we use GCC doesn't mean we suddenly get shared libraries
15579 # on systems that don't support them.
15580 lt_prog_compiler_can_build_shared=no
15585 # QNX uses GNU C++, but need to define -shared option too, otherwise
15586 # it will coredump.
15587 lt_prog_compiler_pic='-fPIC -shared'
15591 if test -d /usr/nec; then
15592 lt_prog_compiler_pic=-Kconform_pic
15597 lt_prog_compiler_pic='-fPIC'
15601 case $cc_basename in
15602 nvcc*) # Cuda Compiler Driver 2.2
15603 lt_prog_compiler_wl='-Xlinker '
15604 lt_prog_compiler_pic='-Xcompiler -fPIC'
15608 # PORTME Check for flag to pass linker flags through the system compiler.
15611 lt_prog_compiler_wl='-Wl,'
15612 if test "$host_cpu" = ia64; then
15613 # AIX 5 now supports IA64 processor
15614 lt_prog_compiler_static='-Bstatic'
15616 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15620 mingw* | cygwin* | pw32* | os2* | cegcc*)
15621 # This hack is so that the source file can tell whether it is being
15622 # built for inclusion in a dll (and should export symbols for example).
15623 lt_prog_compiler_pic='-DDLL_EXPORT'
15626 hpux9* | hpux10* | hpux11*)
15627 lt_prog_compiler_wl='-Wl,'
15628 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15629 # not for PA HP-UX.
15635 lt_prog_compiler_pic='+Z'
15638 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15639 lt_prog_compiler_static='${wl}-a ${wl}archive'
15642 irix5* | irix6* | nonstopux*)
15643 lt_prog_compiler_wl='-Wl,'
15644 # PIC (with -KPIC) is the default.
15645 lt_prog_compiler_static='-non_shared'
15648 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15649 case $cc_basename in
15650 # old Intel for x86_64 which still supported -KPIC.
15652 lt_prog_compiler_wl='-Wl,'
15653 lt_prog_compiler_pic='-KPIC'
15654 lt_prog_compiler_static='-static'
15656 # icc used to be incompatible with GCC.
15657 # ICC 10 doesn't accept -KPIC any more.
15659 lt_prog_compiler_wl='-Wl,'
15660 lt_prog_compiler_pic='-fPIC'
15661 lt_prog_compiler_static='-static'
15663 # Lahey Fortran 8.1.
15665 lt_prog_compiler_wl='-Wl,'
15666 lt_prog_compiler_pic='--shared'
15667 lt_prog_compiler_static='--static'
15669 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15670 # Portland Group compilers (*not* the Pentium gcc compiler,
15671 # which looks to be a dead project)
15672 lt_prog_compiler_wl='-Wl,'
15673 lt_prog_compiler_pic='-fpic'
15674 lt_prog_compiler_static='-Bstatic'
15677 lt_prog_compiler_wl='-Wl,'
15678 # All Alpha code is PIC.
15679 lt_prog_compiler_static='-non_shared'
15681 xl* | bgxl* | bgf* | mpixl*)
15682 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15683 lt_prog_compiler_wl='-Wl,'
15684 lt_prog_compiler_pic='-qpic'
15685 lt_prog_compiler_static='-qstaticlink'
15688 case `$CC -V 2>&1 | sed 5q` in
15689 *Sun\ F* | *Sun*Fortran*)
15690 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15691 lt_prog_compiler_pic='-KPIC'
15692 lt_prog_compiler_static='-Bstatic'
15693 lt_prog_compiler_wl=''
15697 lt_prog_compiler_pic='-KPIC'
15698 lt_prog_compiler_static='-Bstatic'
15699 lt_prog_compiler_wl='-Wl,'
15707 lt_prog_compiler_pic='-KPIC'
15708 lt_prog_compiler_static='-Bstatic'
15712 # QNX uses GNU C++, but need to define -shared option too, otherwise
15713 # it will coredump.
15714 lt_prog_compiler_pic='-fPIC -shared'
15717 osf3* | osf4* | osf5*)
15718 lt_prog_compiler_wl='-Wl,'
15719 # All OSF/1 code is PIC.
15720 lt_prog_compiler_static='-non_shared'
15724 lt_prog_compiler_static='-non_shared'
15728 lt_prog_compiler_pic='-KPIC'
15729 lt_prog_compiler_static='-Bstatic'
15730 case $cc_basename in
15731 f77* | f90* | f95*)
15732 lt_prog_compiler_wl='-Qoption ld ';;
15734 lt_prog_compiler_wl='-Wl,';;
15739 lt_prog_compiler_wl='-Qoption ld '
15740 lt_prog_compiler_pic='-PIC'
15741 lt_prog_compiler_static='-Bstatic'
15744 sysv4 | sysv4.2uw2* | sysv4.3*)
15745 lt_prog_compiler_wl='-Wl,'
15746 lt_prog_compiler_pic='-KPIC'
15747 lt_prog_compiler_static='-Bstatic'
15751 if test -d /usr/nec ;then
15752 lt_prog_compiler_pic='-Kconform_pic'
15753 lt_prog_compiler_static='-Bstatic'
15757 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15758 lt_prog_compiler_wl='-Wl,'
15759 lt_prog_compiler_pic='-KPIC'
15760 lt_prog_compiler_static='-Bstatic'
15764 lt_prog_compiler_wl='-Wl,'
15765 lt_prog_compiler_can_build_shared=no
15769 lt_prog_compiler_pic='-pic'
15770 lt_prog_compiler_static='-Bstatic'
15774 lt_prog_compiler_can_build_shared=no
15780 # For platforms which do not support PIC, -DPIC is meaningless:
15782 lt_prog_compiler_pic=
15785 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15789 $as_echo "$lt_prog_compiler_pic" >&6; }
15797 # Check to make sure the PIC flag actually works.
15799 if test -n "$lt_prog_compiler_pic"; then
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15801 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15802 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15803 $as_echo_n "(cached
) " >&6
15805 lt_cv_prog_compiler_pic_works=no
15806 ac_outfile=conftest.$ac_objext
15807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15808 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15809 # Insert the option either (1) after the last *FLAGS variable, or
15810 # (2) before a word containing "conftest.
", or (3) at the end.
15811 # Note that $ac_compile itself does not contain backslashes and begins
15812 # with a dollar sign (not a hyphen), so the echo should work correctly.
15813 # The option is referenced via a variable to avoid confusing sed.
15814 lt_compile=`echo "$ac_compile" | $SED \
15815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15817 -e 's:$: $lt_compiler_flag:'`
15818 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15819 (eval "$lt_compile" 2>conftest.err)
15821 cat conftest.err >&5
15822 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15823 if (exit $ac_status) && test -s "$ac_outfile"; then
15824 # The compiler can only warn and ignore the option if not recognized
15825 # So say no if there are warnings other than the usual output.
15826 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15828 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15829 lt_cv_prog_compiler_pic_works=yes
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15836 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15838 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15839 case $lt_prog_compiler_pic in
15841 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15844 lt_prog_compiler_pic=
15845 lt_prog_compiler_can_build_shared=no
15856 # Check to make sure the static flag actually works.
15858 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15860 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15861 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15862 $as_echo_n "(cached
) " >&6
15864 lt_cv_prog_compiler_static_works=no
15865 save_LDFLAGS="$LDFLAGS"
15866 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15867 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15868 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15869 # The linker can only warn and ignore the option if not recognized
15870 # So say no if there are warnings
15871 if test -s conftest.err; then
15872 # Append any errors to the config.log.
15873 cat conftest.err 1>&5
15874 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15876 if diff conftest.exp conftest.er2 >/dev/null; then
15877 lt_cv_prog_compiler_static_works=yes
15880 lt_cv_prog_compiler_static_works=yes
15884 LDFLAGS="$save_LDFLAGS"
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15888 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15890 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15893 lt_prog_compiler_static=
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15903 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15904 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15905 $as_echo_n "(cached
) " >&6
15907 lt_cv_prog_compiler_c_o=no
15908 $RM -r conftest 2>/dev/null
15912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15914 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15915 # Insert the option either (1) after the last *FLAGS variable, or
15916 # (2) before a word containing "conftest.
", or (3) at the end.
15917 # Note that $ac_compile itself does not contain backslashes and begins
15918 # with a dollar sign (not a hyphen), so the echo should work correctly.
15919 lt_compile=`echo "$ac_compile" | $SED \
15920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15922 -e 's:$: $lt_compiler_flag:'`
15923 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15924 (eval "$lt_compile" 2>out/conftest.err)
15926 cat out/conftest.err >&5
15927 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15928 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15930 # The compiler can only warn and ignore the option if not recognized
15931 # So say no if there are warnings
15932 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15933 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15934 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15935 lt_cv_prog_compiler_c_o=yes
15940 # SGI C++ compiler will create directory out/ii_files/ for
15941 # template instantiation
15942 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15943 $RM out/* && rmdir out
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15950 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15958 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15959 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15960 $as_echo_n "(cached
) " >&6
15962 lt_cv_prog_compiler_c_o=no
15963 $RM -r conftest 2>/dev/null
15967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15969 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15970 # Insert the option either (1) after the last *FLAGS variable, or
15971 # (2) before a word containing "conftest.
", or (3) at the end.
15972 # Note that $ac_compile itself does not contain backslashes and begins
15973 # with a dollar sign (not a hyphen), so the echo should work correctly.
15974 lt_compile=`echo "$ac_compile" | $SED \
15975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15977 -e 's:$: $lt_compiler_flag:'`
15978 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15979 (eval "$lt_compile" 2>out/conftest.err)
15981 cat out/conftest.err >&5
15982 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15983 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15985 # The compiler can only warn and ignore the option if not recognized
15986 # So say no if there are warnings
15987 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15988 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15989 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15990 lt_cv_prog_compiler_c_o=yes
15995 # SGI C++ compiler will create directory out/ii_files/ for
15996 # template instantiation
15997 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15998 $RM out/* && rmdir out
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16005 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16010 hard_links="nottested
"
16011 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16012 # do not overwrite the value of need_locks provided by the user
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
16014 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
16017 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16019 ln conftest.a conftest.b 2>&5 || hard_links=no
16020 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
16022 $as_echo "$hard_links" >&6; }
16023 if test "$hard_links" = no; then
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
16025 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16038 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16041 allow_undefined_flag=
16042 always_export_symbols=no
16044 archive_expsym_cmds=
16045 compiler_needs_object=no
16046 enable_shared_with_static_runtimes=no
16047 export_dynamic_flag_spec=
16048 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16049 hardcode_automatic=no
16051 hardcode_direct_absolute=no
16052 hardcode_libdir_flag_spec=
16053 hardcode_libdir_flag_spec_ld=
16054 hardcode_libdir_separator=
16055 hardcode_minus_L=no
16056 hardcode_shlibpath_var=unsupported
16058 link_all_deplibs=unknown
16060 module_expsym_cmds=
16061 old_archive_from_new_cmds=
16062 old_archive_from_expsyms_cmds=
16063 thread_safe_flag_spec=
16064 whole_archive_flag_spec=
16065 # include_expsyms should be a list of space-separated symbols to be *always*
16066 # included in the symbol list
16068 # exclude_expsyms can be an extended regexp of symbols to exclude
16069 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16070 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16071 # as well as any symbol that contains `d'.
16072 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16073 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16074 # platforms (ab)use it in PIC code, but their linkers get confused if
16075 # the symbol is explicitly referenced. Since portable code cannot
16076 # rely on this symbol name, it's probably fine to never include it in
16077 # preloaded symbol tables.
16078 # Exclude shared library initialization/finalization symbols.
16079 extract_expsyms_cmds=
16082 cygwin* | mingw* | pw32* | cegcc*)
16083 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16084 # When not using gcc, we currently assume that we are using
16085 # Microsoft Visual C++.
16086 if test "$GCC" != yes; then
16091 # we just hope/assume this is gcc and not c89 (= MSVC++)
16101 # On some targets, GNU ld is compatible enough with the native linker
16102 # that we're better off using the native interface for both.
16103 lt_use_gnu_ld_interface=no
16104 if test "$with_gnu_ld" = yes; then
16107 # The AIX port of GNU ld has always aspired to compatibility
16108 # with the native linker. However, as the warning in the GNU ld
16109 # block says, versions before 2.19.5* couldn't really create working
16110 # shared libraries, regardless of the interface used.
16111 case `$LD -v 2>&1` in
16112 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16113 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16114 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16116 lt_use_gnu_ld_interface=yes
16121 lt_use_gnu_ld_interface=yes
16126 if test "$lt_use_gnu_ld_interface" = yes; then
16127 # If archive_cmds runs LD, not CC, wlarc should be empty
16130 # Set some defaults for GNU ld with shared library support. These
16131 # are reset later if shared libraries are not supported. Putting them
16132 # here allows them to be overridden if necessary.
16133 runpath_var=LD_RUN_PATH
16134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16135 export_dynamic_flag_spec='${wl}--export-dynamic'
16136 # ancient GNU ld didn't support --whole-archive et. al.
16137 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16138 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16140 whole_archive_flag_spec=
16142 supports_anon_versioning=no
16143 case `$LD -v 2>&1` in
16144 *GNU\ gold*) supports_anon_versioning=yes ;;
16145 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16146 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16147 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16148 *\ 2.11.*) ;; # other 2.11 versions
16149 *) supports_anon_versioning=yes ;;
16152 # See if GNU ld supports shared libraries.
16155 # On AIX/PPC, the GNU linker is very broken
16156 if test "$host_cpu" != ia64; then
16160 *** Warning: the GNU linker, at least up to release 2.19, is reported
16161 *** to be unable to reliably create shared libraries on AIX.
16162 *** Therefore, libtool is disabling shared libraries support. If you
16163 *** really care for shared libraries, you may want to install binutils
16164 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16165 *** You will then need to restart the configuration process.
16174 # see comment about AmigaOS4 .so support
16175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16176 archive_expsym_cmds=''
16179 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)'
16180 hardcode_libdir_flag_spec
='-L$libdir'
16181 hardcode_minus_L
=yes
16187 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16188 allow_undefined_flag
=unsupported
16189 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16190 # support --undefined. This deserves some investigation. FIXME
16191 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16197 cygwin
* | mingw
* | pw32
* | cegcc
*)
16198 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16199 # as there is no search path for DLLs.
16200 hardcode_libdir_flag_spec
='-L$libdir'
16201 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16202 allow_undefined_flag
=unsupported
16203 always_export_symbols
=no
16204 enable_shared_with_static_runtimes
=yes
16205 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16207 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16208 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16209 # If the export-symbols file already is a .def file (1st line
16210 # is EXPORTS), use it as is; otherwise, prepend...
16211 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16212 cp $export_symbols $output_objdir/$soname.def;
16214 echo EXPORTS > $output_objdir/$soname.def;
16215 cat $export_symbols >> $output_objdir/$soname.def;
16217 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16224 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16225 link_all_deplibs
=yes
16230 hardcode_shlibpath_var
=no
16231 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16232 export_dynamic_flag_spec
='${wl}-E'
16233 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16234 # Instead, shared libraries are loaded at an image base (0x10000000 by
16235 # default) and relocated if they conflict, which is a slow very memory
16236 # consuming and fragmenting process. To avoid this, we pick a random,
16237 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16238 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16239 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16240 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'
16243 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16245 if test "$host_os" = linux-dietlibc
; then
16246 case $cc_basename in
16247 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16250 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16251 && test "$tmp_diet" = no
16253 tmp_addflag
=' $pic_flag'
16254 tmp_sharedflag
='-shared'
16255 case $cc_basename,$host_cpu in
16256 pgcc
*) # Portland Group C compiler
16257 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'
16258 tmp_addflag
=' $pic_flag'
16260 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16261 # Portland Group f77 and f90 compilers
16262 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'
16263 tmp_addflag
=' $pic_flag -Mnomain' ;;
16264 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16265 tmp_addflag
=' -i_dynamic' ;;
16266 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16267 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16268 ifc
* | ifort
*) # Intel Fortran compiler
16269 tmp_addflag
=' -nofor_main' ;;
16270 lf95
*) # Lahey Fortran 8.1
16271 whole_archive_flag_spec
=
16272 tmp_sharedflag
='--shared' ;;
16273 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16274 tmp_sharedflag
='-qmkshrobj'
16276 nvcc
*) # Cuda Compiler Driver 2.2
16277 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'
16278 compiler_needs_object
=yes
16281 case `$CC -V 2>&1 | sed 5q` in
16282 *Sun\ C
*) # Sun C 5.9
16283 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'
16284 compiler_needs_object
=yes
16285 tmp_sharedflag
='-G' ;;
16286 *Sun\ F
*) # Sun Fortran 8.3
16287 tmp_sharedflag
='-G' ;;
16289 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16291 if test "x$supports_anon_versioning" = xyes
; then
16292 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16293 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16294 echo "local: *; };" >> $output_objdir/$libname.ver~
16295 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16298 case $cc_basename in
16299 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16300 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16301 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16302 hardcode_libdir_flag_spec
=
16303 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16304 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16305 if test "x$supports_anon_versioning" = xyes
; then
16306 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16307 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16308 echo "local: *; };" >> $output_objdir/$libname.ver~
16309 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16319 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16320 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16323 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16324 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16329 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16333 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16334 *** create shared libraries on Solaris systems. Therefore, libtool
16335 *** is disabling shared libraries support. We urge you to upgrade GNU
16336 *** binutils to release 2.9.1 or newer. Another option is to modify
16337 *** your PATH or compiler configuration so that the native linker is
16338 *** used, and then restart.
16341 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16342 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16343 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16349 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16350 case `$LD -v 2>&1` in
16351 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16355 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16356 *** reliably create shared libraries on SCO systems. Therefore, libtool
16357 *** is disabling shared libraries support. We urge you to upgrade GNU
16358 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16359 *** your PATH or compiler configuration so that the native linker is
16360 *** used, and then restart.
16365 # For security reasons, it is highly recommended that you always
16366 # use absolute paths for naming shared libraries, and exclude the
16367 # DT_RUNPATH tag from executables and libraries. But doing so
16368 # requires that you compile everything twice, which is a pain.
16369 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16370 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16371 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16372 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16381 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16383 hardcode_direct
=yes
16384 hardcode_shlibpath_var
=no
16388 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16389 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16390 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16397 if test "$ld_shlibs" = no
; then
16399 hardcode_libdir_flag_spec
=
16400 export_dynamic_flag_spec
=
16401 whole_archive_flag_spec
=
16404 # PORTME fill in a description of your system's linker (not GNU ld)
16407 allow_undefined_flag
=unsupported
16408 always_export_symbols
=yes
16409 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'
16410 # Note: this linker hardcodes the directories in LIBPATH if there
16411 # are no directories specified by -L.
16412 hardcode_minus_L
=yes
16413 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16414 # Neither direct hardcoding nor static linking is supported with a
16416 hardcode_direct
=unsupported
16421 if test "$host_cpu" = ia64
; then
16422 # On IA64, the linker does run time linking by default, so we don't
16423 # have to do anything special.
16424 aix_use_runtimelinking
=no
16425 exp_sym_flag
='-Bexport'
16428 # If we're using GNU nm, then we don't want the "-C" option.
16429 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16430 # Also, AIX nm treats weak defined symbols like other global
16431 # defined symbols, whereas GNU nm marks them as "W".
16432 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16433 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'
16435 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'
16437 aix_use_runtimelinking
=no
16439 # Test if we are trying to use run time linking or normal
16440 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16441 # need to do runtime linking.
16442 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16443 for ld_flag
in $LDFLAGS; do
16444 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16445 aix_use_runtimelinking
=yes
16452 exp_sym_flag
='-bexport'
16453 no_entry_flag
='-bnoentry'
16456 # When large executables or shared objects are built, AIX ld can
16457 # have problems creating the table of contents. If linking a library
16458 # or program results in "error TOC overflow" add -mminimal-toc to
16459 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16460 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16463 hardcode_direct
=yes
16464 hardcode_direct_absolute
=yes
16465 hardcode_libdir_separator
=':'
16466 link_all_deplibs
=yes
16467 file_list_spec
='${wl}-f,'
16469 if test "$GCC" = yes; then
16470 case $host_os in aix4.
[012]|aix4.
[012].
*)
16471 # We only want to do this on AIX 4.2 and lower, the check
16472 # below for broken collect2 doesn't work under 4.3+
16473 collect2name
=`${CC} -print-prog-name=collect2`
16474 if test -f "$collect2name" &&
16475 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16477 # We have reworked collect2
16480 # We have old collect2
16481 hardcode_direct
=unsupported
16482 # It fails to find uninstalled libraries when the uninstalled
16483 # path is not listed in the libpath. Setting hardcode_minus_L
16484 # to unsupported forces relinking
16485 hardcode_minus_L
=yes
16486 hardcode_libdir_flag_spec
='-L$libdir'
16487 hardcode_libdir_separator
=
16491 shared_flag
='-shared'
16492 if test "$aix_use_runtimelinking" = yes; then
16493 shared_flag
="$shared_flag "'${wl}-G'
16497 if test "$host_cpu" = ia64
; then
16498 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16499 # chokes on -Wl,-G. The following line is correct:
16502 if test "$aix_use_runtimelinking" = yes; then
16503 shared_flag
='${wl}-G'
16505 shared_flag
='${wl}-bM:SRE'
16510 export_dynamic_flag_spec
='${wl}-bexpall'
16511 # It seems that -bexpall does not export symbols beginning with
16512 # underscore (_), so it is better to generate a list of symbols to export.
16513 always_export_symbols
=yes
16514 if test "$aix_use_runtimelinking" = yes; then
16515 # Warning - without using the other runtime loading flags (-brtl),
16516 # -berok will link without error, but may produce a broken library.
16517 allow_undefined_flag
='-berok'
16518 # Determine the default libpath from the value encoded in an
16519 # empty executable.
16520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16521 /* end confdefs.h. */
16531 if ac_fn_c_try_link
"$LINENO"; then :
16533 lt_aix_libpath_sed
='
16534 /Import File Strings/,/^$/ {
16540 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16541 # Check for a 64-bit object if we didn't find anything.
16542 if test -z "$aix_libpath"; then
16543 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16546 rm -f core conftest.err conftest.
$ac_objext \
16547 conftest
$ac_exeext conftest.
$ac_ext
16548 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16550 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16551 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"
16553 if test "$host_cpu" = ia64
; then
16554 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16555 allow_undefined_flag
="-z nodefs"
16556 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"
16558 # Determine the default libpath from the value encoded in an
16559 # empty executable.
16560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16561 /* end confdefs.h. */
16571 if ac_fn_c_try_link
"$LINENO"; then :
16573 lt_aix_libpath_sed
='
16574 /Import File Strings/,/^$/ {
16580 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16581 # Check for a 64-bit object if we didn't find anything.
16582 if test -z "$aix_libpath"; then
16583 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16586 rm -f core conftest.err conftest.
$ac_objext \
16587 conftest
$ac_exeext conftest.
$ac_ext
16588 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16590 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16591 # Warning - without using the other run time loading flags,
16592 # -berok will link without error, but may produce a broken library.
16593 no_undefined_flag
=' ${wl}-bernotok'
16594 allow_undefined_flag
=' ${wl}-berok'
16595 if test "$with_gnu_ld" = yes; then
16596 # We only use this code for GNU lds that support --whole-archive.
16597 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16599 # Exported symbols can be pulled into shared objects from archives
16600 whole_archive_flag_spec
='$convenience'
16602 archive_cmds_need_lc
=yes
16603 # This is similar to how AIX traditionally builds its shared libraries.
16604 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'
16612 # see comment about AmigaOS4 .so support
16613 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16614 archive_expsym_cmds
=''
16617 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)'
16618 hardcode_libdir_flag_spec
='-L$libdir'
16619 hardcode_minus_L
=yes
16625 export_dynamic_flag_spec
=-rdynamic
16628 cygwin
* | mingw
* | pw32
* | cegcc
*)
16629 # When not using gcc, we currently assume that we are using
16630 # Microsoft Visual C++.
16631 # hardcode_libdir_flag_spec is actually meaningless, as there is
16632 # no search path for DLLs.
16633 hardcode_libdir_flag_spec
=' '
16634 allow_undefined_flag
=unsupported
16635 # Tell ltmain to make .lib files, not .a files.
16637 # Tell ltmain to make .dll files, not .so files.
16639 # FIXME: Setting linknames here is a bad hack.
16640 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16641 # The linker will automatically build a .lib file if we build a DLL.
16642 old_archive_from_new_cmds
='true'
16643 # FIXME: Should let the user specify the lib program.
16644 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16645 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16646 enable_shared_with_static_runtimes
=yes
16649 darwin
* | rhapsody
*)
16652 archive_cmds_need_lc
=no
16654 hardcode_automatic
=yes
16655 hardcode_shlibpath_var
=unsupported
16656 if test "$lt_cv_ld_force_load" = "yes"; then
16657 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\"`'
16659 whole_archive_flag_spec
=''
16661 link_all_deplibs
=yes
16662 allow_undefined_flag
="$_lt_dar_allow_undefined"
16663 case $cc_basename in
16664 ifort
*) _lt_dar_can_shared
=yes ;;
16665 *) _lt_dar_can_shared
=$GCC ;;
16667 if test "$_lt_dar_can_shared" = "yes"; then
16668 output_verbose_link_cmd
=func_echo_all
16669 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16670 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16671 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}"
16672 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}"
16681 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16682 hardcode_libdir_flag_spec
='-L$libdir'
16683 hardcode_shlibpath_var
=no
16686 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16687 # support. Future versions do this automatically, but an explicit c++rt0.o
16688 # does not break anything, and helps significantly (at the cost of a little
16691 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16692 hardcode_libdir_flag_spec
='-R$libdir'
16693 hardcode_direct
=yes
16694 hardcode_shlibpath_var
=no
16697 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16699 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16700 hardcode_direct
=yes
16701 hardcode_minus_L
=yes
16702 hardcode_shlibpath_var
=no
16705 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16706 freebsd
* | dragonfly
*)
16707 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16708 hardcode_libdir_flag_spec
='-R$libdir'
16709 hardcode_direct
=yes
16710 hardcode_shlibpath_var
=no
16714 if test "$GCC" = yes; then
16715 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'
16717 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'
16719 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16720 hardcode_libdir_separator
=:
16721 hardcode_direct
=yes
16723 # hardcode_minus_L: Not really in the search PATH,
16724 # but as the default location of the library.
16725 hardcode_minus_L
=yes
16726 export_dynamic_flag_spec
='${wl}-E'
16730 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16731 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16733 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16735 if test "$with_gnu_ld" = no
; then
16736 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16737 hardcode_libdir_flag_spec_ld
='+b $libdir'
16738 hardcode_libdir_separator
=:
16739 hardcode_direct
=yes
16740 hardcode_direct_absolute
=yes
16741 export_dynamic_flag_spec
='${wl}-E'
16742 # hardcode_minus_L: Not really in the search PATH,
16743 # but as the default location of the library.
16744 hardcode_minus_L
=yes
16749 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16752 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16755 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16758 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16764 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16767 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16771 # Older versions of the 11.00 compiler do not understand -b yet
16772 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16774 $as_echo_n "checking if $CC understands -b... " >&6; }
16775 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16776 $as_echo_n "(cached) " >&6
16778 lt_cv_prog_compiler__b
=no
16779 save_LDFLAGS
="$LDFLAGS"
16780 LDFLAGS
="$LDFLAGS -b"
16781 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16782 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16783 # The linker can only warn and ignore the option if not recognized
16784 # So say no if there are warnings
16785 if test -s conftest.err
; then
16786 # Append any errors to the config.log.
16787 cat conftest.err
1>&5
16788 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16789 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16790 if diff conftest.exp conftest.er2
>/dev
/null
; then
16791 lt_cv_prog_compiler__b
=yes
16794 lt_cv_prog_compiler__b
=yes
16798 LDFLAGS
="$save_LDFLAGS"
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16802 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16804 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16805 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16807 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16813 if test "$with_gnu_ld" = no
; then
16814 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16815 hardcode_libdir_separator
=:
16820 hardcode_shlibpath_var
=no
16823 hardcode_direct
=yes
16824 hardcode_direct_absolute
=yes
16825 export_dynamic_flag_spec
='${wl}-E'
16827 # hardcode_minus_L: Not really in the search PATH,
16828 # but as the default location of the library.
16829 hardcode_minus_L
=yes
16835 irix5
* | irix6
* | nonstopux
*)
16836 if test "$GCC" = yes; then
16837 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'
16838 # Try to use the -exported_symbol ld option, if it does not
16839 # work, assume that -exports_file does not work either and
16840 # implicitly export all symbols.
16841 save_LDFLAGS
="$LDFLAGS"
16842 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16844 /* end confdefs.h. */
16847 if ac_fn_c_try_link
"$LINENO"; then :
16848 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'
16851 rm -f core conftest.err conftest.
$ac_objext \
16852 conftest
$ac_exeext conftest.
$ac_ext
16853 LDFLAGS
="$save_LDFLAGS"
16855 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'
16856 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'
16858 archive_cmds_need_lc
='no'
16859 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16860 hardcode_libdir_separator
=:
16862 link_all_deplibs
=yes
16866 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16867 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16869 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16871 hardcode_libdir_flag_spec
='-R$libdir'
16872 hardcode_direct
=yes
16873 hardcode_shlibpath_var
=no
16877 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16878 hardcode_direct
=yes
16879 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16880 hardcode_libdir_separator
=:
16881 hardcode_shlibpath_var
=no
16888 if test -f /usr
/libexec
/ld.so
; then
16889 hardcode_direct
=yes
16890 hardcode_shlibpath_var
=no
16891 hardcode_direct_absolute
=yes
16892 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16893 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16894 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16895 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16896 export_dynamic_flag_spec
='${wl}-E'
16899 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16900 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16901 hardcode_libdir_flag_spec
='-R$libdir'
16904 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16905 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16915 hardcode_libdir_flag_spec
='-L$libdir'
16916 hardcode_minus_L
=yes
16917 allow_undefined_flag
=unsupported
16918 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'
16919 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16923 if test "$GCC" = yes; then
16924 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16925 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'
16927 allow_undefined_flag
=' -expect_unresolved \*'
16928 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'
16930 archive_cmds_need_lc
='no'
16931 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16932 hardcode_libdir_separator
=:
16935 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16936 if test "$GCC" = yes; then
16937 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16938 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'
16939 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16941 allow_undefined_flag
=' -expect_unresolved \*'
16942 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'
16943 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~
16944 $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'
16946 # Both c and cxx compiler support -rpath directly
16947 hardcode_libdir_flag_spec
='-rpath $libdir'
16949 archive_cmds_need_lc
='no'
16950 hardcode_libdir_separator
=:
16954 no_undefined_flag
=' -z defs'
16955 if test "$GCC" = yes; then
16957 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16958 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16959 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16961 case `$CC -V 2>&1` in
16964 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16965 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16966 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16970 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16971 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16972 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16976 hardcode_libdir_flag_spec
='-R$libdir'
16977 hardcode_shlibpath_var
=no
16979 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16981 # The compiler driver will combine and reorder linker options,
16982 # but understands `-z linker_flag'. GCC discards it without `$wl',
16983 # but is careful enough not to reorder.
16984 # Supported since Solaris 2.6 (maybe 2.5.1?)
16985 if test "$GCC" = yes; then
16986 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16988 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16992 link_all_deplibs
=yes
16996 if test "x$host_vendor" = xsequent
; then
16997 # Use $CC to link under sequent, because it throws in some extra .o
16998 # files that make .init and .fini sections work.
16999 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17001 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17003 hardcode_libdir_flag_spec
='-L$libdir'
17004 hardcode_direct
=yes
17005 hardcode_minus_L
=yes
17006 hardcode_shlibpath_var
=no
17010 case $host_vendor in
17012 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17013 hardcode_direct
=yes # is this really true???
17016 ## LD is ld it makes a PLAMLIB
17017 ## CC just makes a GrossModule.
17018 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17019 reload_cmds
='$CC -r -o $output$reload_objs'
17023 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17024 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17027 runpath_var
='LD_RUN_PATH'
17028 hardcode_shlibpath_var
=no
17032 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17033 hardcode_shlibpath_var
=no
17034 export_dynamic_flag_spec
='-Bexport'
17038 if test -d /usr
/nec
; then
17039 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17040 hardcode_shlibpath_var
=no
17041 runpath_var
=LD_RUN_PATH
17042 hardcode_runpath_var
=yes
17047 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17048 no_undefined_flag
='${wl}-z,text'
17049 archive_cmds_need_lc
=no
17050 hardcode_shlibpath_var
=no
17051 runpath_var
='LD_RUN_PATH'
17053 if test "$GCC" = yes; then
17054 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17055 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17057 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17058 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17062 sysv5
* | sco3.2v5
* | sco5v6
*)
17063 # Note: We can NOT use -z defs as we might desire, because we do not
17064 # link with -lc, and that would cause any symbols used from libc to
17065 # always be unresolved, which means just about no library would
17066 # ever link correctly. If we're not using GNU ld we use -z text
17067 # though, which does catch some bad symbols but isn't as heavy-handed
17069 no_undefined_flag
='${wl}-z,text'
17070 allow_undefined_flag
='${wl}-z,nodefs'
17071 archive_cmds_need_lc
=no
17072 hardcode_shlibpath_var
=no
17073 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17074 hardcode_libdir_separator
=':'
17075 link_all_deplibs
=yes
17076 export_dynamic_flag_spec
='${wl}-Bexport'
17077 runpath_var
='LD_RUN_PATH'
17079 if test "$GCC" = yes; then
17080 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17081 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17083 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17084 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17089 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17090 hardcode_libdir_flag_spec
='-L$libdir'
17091 hardcode_shlibpath_var
=no
17099 if test x
$host_vendor = xsni
; then
17101 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17102 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17109 $as_echo "$ld_shlibs" >&6; }
17110 test "$ld_shlibs" = no
&& can_build_shared
=no
17112 with_gnu_ld
=$with_gnu_ld
17129 # Do we need to explicitly link libc?
17131 case "x$archive_cmds_need_lc" in
17133 # Assume -lc should be added
17134 archive_cmds_need_lc
=yes
17136 if test "$enable_shared" = yes && test "$GCC" = yes; then
17137 case $archive_cmds in
17139 # FIXME: we may have to deal with multi-command sequences.
17142 # Test whether the compiler implicitly links with -lc since on some
17143 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17144 # to ld, don't add -lc before -lgcc.
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17146 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17147 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17148 $as_echo_n "(cached) " >&6
17151 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17154 (eval $ac_compile) 2>&5
17156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17157 test $ac_status = 0; } 2>conftest.err
; then
17160 libobjs
=conftest.
$ac_objext
17162 wl
=$lt_prog_compiler_wl
17163 pic_flag
=$lt_prog_compiler_pic
17169 lt_save_allow_undefined_flag
=$allow_undefined_flag
17170 allow_undefined_flag
=
17171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17172 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17175 test $ac_status = 0; }
17177 lt_cv_archive_cmds_need_lc
=no
17179 lt_cv_archive_cmds_need_lc
=yes
17181 allow_undefined_flag
=$lt_save_allow_undefined_flag
17183 cat conftest.err
1>&5
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17189 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17190 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17354 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17356 if test "$GCC" = yes; then
17358 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17359 *) lt_awk_arg
="/^libraries:/" ;;
17362 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17363 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17365 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17366 case $lt_search_path_spec in
17368 # if the path contains ";" then we assume it to be the separator
17369 # otherwise default to the standard path separator (i.e. ":") - it is
17370 # assumed that no part of a normal pathname contains ";" but that should
17371 # okay in the real world where ";" in dirpaths is itself problematic.
17372 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17375 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17378 # Ok, now we have the path, separated by spaces, we can step through it
17379 # and add multilib dir if necessary.
17380 lt_tmp_lt_search_path_spec
=
17381 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17382 for lt_sys_path
in $lt_search_path_spec; do
17383 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17384 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17386 test -d "$lt_sys_path" && \
17387 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17390 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17391 BEGIN {RS=" "; FS="/|\n";} {
17394 for (lt_i = NF; lt_i > 0; lt_i--) {
17395 if ($lt_i != "" && $lt_i != ".") {
17396 if ($lt_i == "..") {
17399 if (lt_count == 0) {
17400 lt_foo="/" $lt_i lt_foo;
17407 if (lt_foo != "") { lt_freq[lt_foo]++; }
17408 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17410 # AWK program above erroneously prepends '/' to C:/dos/paths
17413 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17414 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17416 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17418 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17420 library_names_spec
=
17421 libname_spec
='lib$name'
17425 postuninstall_cmds
=
17429 shlibpath_overrides_runpath
=unknown
17431 dynamic_linker
="$host_os ld.so"
17432 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17433 need_lib_prefix
=unknown
17434 hardcode_into_libs
=no
17436 # when you set need_version to no, make sure it does not cause -set_version
17437 # flags to be left without arguments
17438 need_version
=unknown
17443 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17444 shlibpath_var
=LIBPATH
17446 # AIX 3 has no versioning support, so we append a major version to the name.
17447 soname_spec
='${libname}${release}${shared_ext}$major'
17454 hardcode_into_libs
=yes
17455 if test "$host_cpu" = ia64
; then
17456 # AIX 5 supports IA64
17457 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17458 shlibpath_var
=LD_LIBRARY_PATH
17460 # With GCC up to 2.95.x, collect2 would create an import file
17461 # for dependence libraries. The import file would start with
17462 # the line `#! .'. This would cause the generated library to
17463 # depend on `.', always an invalid library. This was fixed in
17464 # development snapshots of GCC prior to 3.0.
17466 aix4 | aix4.
[01] | aix4.
[01].
*)
17467 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17469 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17472 can_build_shared
=no
17476 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17477 # soname into executable. Probably we can add versioning support to
17478 # collect2, so additional links can be useful in future.
17479 if test "$aix_use_runtimelinking" = yes; then
17480 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17481 # instead of lib<name>.a to let people know that these are not
17482 # typical AIX shared libraries.
17483 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17485 # We preserve .a as extension for shared libraries through AIX4.2
17486 # and later when we are not doing run time linking.
17487 library_names_spec
='${libname}${release}.a $libname.a'
17488 soname_spec
='${libname}${release}${shared_ext}$major'
17490 shlibpath_var
=LIBPATH
17497 # Since July 2007 AmigaOS4 officially supports .so libraries.
17498 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17499 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17502 library_names_spec
='$libname.ixlibrary $libname.a'
17503 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17504 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'
17510 library_names_spec
='${libname}${shared_ext}'
17511 dynamic_linker
="$host_os ld.so"
17512 shlibpath_var
=LIBRARY_PATH
17518 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17519 soname_spec
='${libname}${release}${shared_ext}$major'
17520 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17521 shlibpath_var
=LD_LIBRARY_PATH
17522 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17523 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17524 # the default ld.so.conf also contains /usr/contrib/lib and
17525 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17526 # libtool to hard-code these into programs
17529 cygwin
* | mingw
* | pw32
* | cegcc
*)
17530 version_type
=windows
17535 case $GCC,$host_os in
17536 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17537 library_names_spec
='$libname.dll.a'
17538 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17539 postinstall_cmds
='base_file=`basename \${file}`~
17540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17541 dldir=$destdir/`dirname \$dlpath`~
17542 test -d \$dldir || mkdir -p \$dldir~
17543 $install_prog $dir/$dlname \$dldir/$dlname~
17544 chmod a+x \$dldir/$dlname~
17545 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17546 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17548 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17549 dlpath=$dir/\$dldll~
17551 shlibpath_overrides_runpath
=yes
17555 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17556 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17558 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17561 # MinGW DLLs use traditional 'lib' prefix
17562 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17565 # pw32 DLLs use 'pw' prefix rather than 'lib'
17566 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17572 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17575 dynamic_linker
='Win32 ld.exe'
17576 # FIXME: first we should search . and the directory the executable is in
17580 darwin
* | rhapsody
*)
17581 dynamic_linker
="$host_os dyld"
17582 version_type
=darwin
17585 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17586 soname_spec
='${libname}${release}${major}$shared_ext'
17587 shlibpath_overrides_runpath
=yes
17588 shlibpath_var
=DYLD_LIBRARY_PATH
17589 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17591 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17592 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17599 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17600 soname_spec
='${libname}${release}${shared_ext}$major'
17601 shlibpath_var
=LD_LIBRARY_PATH
17604 freebsd
* | dragonfly
*)
17605 # DragonFly does not have aout. When/if they implement a new
17606 # versioning mechanism, adjust this.
17607 if test -x /usr
/bin
/objformat
; then
17608 objformat
=`/usr/bin/objformat`
17611 freebsd
[23].
*) objformat
=aout
;;
17612 *) objformat
=elf
;;
17615 version_type
=freebsd-
$objformat
17616 case $version_type in
17618 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17623 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17627 shlibpath_var
=LD_LIBRARY_PATH
17630 shlibpath_overrides_runpath
=yes
17632 freebsd3.
[01]* | freebsdelf3.
[01]*)
17633 shlibpath_overrides_runpath
=yes
17634 hardcode_into_libs
=yes
17636 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17637 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17638 shlibpath_overrides_runpath
=no
17639 hardcode_into_libs
=yes
17641 *) # from 4.6 on, and DragonFly
17642 shlibpath_overrides_runpath
=yes
17643 hardcode_into_libs
=yes
17652 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17653 soname_spec
='${libname}${release}${shared_ext}$major'
17654 shlibpath_var
=LD_LIBRARY_PATH
17655 hardcode_into_libs
=yes
17662 dynamic_linker
="$host_os runtime_loader"
17663 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17664 soname_spec
='${libname}${release}${shared_ext}$major'
17665 shlibpath_var
=LIBRARY_PATH
17666 shlibpath_overrides_runpath
=yes
17667 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17668 hardcode_into_libs
=yes
17671 hpux9
* | hpux10
* | hpux11
*)
17672 # Give a soname corresponding to the major version so that dld.sl refuses to
17673 # link against other versions.
17680 hardcode_into_libs
=yes
17681 dynamic_linker
="$host_os dld.so"
17682 shlibpath_var
=LD_LIBRARY_PATH
17683 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17684 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17685 soname_spec
='${libname}${release}${shared_ext}$major'
17686 if test "X$HPUX_IA64_MODE" = X32
; then
17687 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17689 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17691 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17695 hardcode_into_libs
=yes
17696 dynamic_linker
="$host_os dld.sl"
17697 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17698 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17699 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17700 soname_spec
='${libname}${release}${shared_ext}$major'
17701 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17702 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17706 dynamic_linker
="$host_os dld.sl"
17707 shlibpath_var
=SHLIB_PATH
17708 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17709 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17710 soname_spec
='${libname}${release}${shared_ext}$major'
17713 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17714 postinstall_cmds
='chmod 555 $lib'
17715 # or fails outright, so override atomically:
17716 install_override_mode
=555
17723 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17724 soname_spec
='${libname}${release}${shared_ext}$major'
17725 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17726 shlibpath_var
=LD_LIBRARY_PATH
17727 shlibpath_overrides_runpath
=no
17728 hardcode_into_libs
=yes
17731 irix5
* | irix6
* | nonstopux
*)
17733 nonstopux
*) version_type
=nonstopux
;;
17735 if test "$lt_cv_prog_gnu_ld" = yes; then
17743 soname_spec
='${libname}${release}${shared_ext}$major'
17744 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17746 irix5
* | nonstopux
*)
17747 libsuff
= shlibsuff
=
17750 case $LD in # libtool.m4 will add one of these switches to LD
17751 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17752 libsuff
= shlibsuff
= libmagic
=32-bit;;
17753 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17754 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17755 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17756 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17757 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17761 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17762 shlibpath_overrides_runpath
=no
17763 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17764 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17765 hardcode_into_libs
=yes
17768 # No shared lib support for Linux oldld, aout, or coff.
17769 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17773 # This must be Linux ELF.
17774 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17778 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17779 soname_spec
='${libname}${release}${shared_ext}$major'
17780 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17781 shlibpath_var
=LD_LIBRARY_PATH
17782 shlibpath_overrides_runpath
=no
17784 # Some binutils ld are patched to set DT_RUNPATH
17785 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17786 $as_echo_n "(cached) " >&6
17788 lt_cv_shlibpath_overrides_runpath
=no
17789 save_LDFLAGS
=$LDFLAGS
17790 save_libdir
=$libdir
17791 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17792 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17794 /* end confdefs.h. */
17804 if ac_fn_c_try_link
"$LINENO"; then :
17805 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17806 lt_cv_shlibpath_overrides_runpath
=yes
17809 rm -f core conftest.err conftest.
$ac_objext \
17810 conftest
$ac_exeext conftest.
$ac_ext
17811 LDFLAGS
=$save_LDFLAGS
17812 libdir
=$save_libdir
17816 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17818 # This implies no fast_install, which is unacceptable.
17819 # Some rework will be needed to allow for fast_install
17820 # before this can be enabled.
17821 hardcode_into_libs
=yes
17823 # Append ld.so.conf contents to the search path
17824 if test -f /etc
/ld.so.conf
; then
17825 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' ' '`
17826 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17829 # We used to test for /lib/ld.so.1 and disable shared libraries on
17830 # powerpc, because MkLinux only supported shared libraries with the
17831 # GNU dynamic linker. Since this was broken with cross compilers,
17832 # most powerpc-linux boxes support dynamic linking these days and
17833 # people can always --disable-shared, the test was removed, and we
17834 # assume the GNU/Linux dynamic linker is in use.
17835 dynamic_linker
='GNU/Linux ld.so'
17842 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17843 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17844 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17845 dynamic_linker
='NetBSD (a.out) ld.so'
17847 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17848 soname_spec
='${libname}${release}${shared_ext}$major'
17849 dynamic_linker
='NetBSD ld.elf_so'
17851 shlibpath_var
=LD_LIBRARY_PATH
17852 shlibpath_overrides_runpath
=yes
17853 hardcode_into_libs
=yes
17858 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17859 shlibpath_var
=LD_LIBRARY_PATH
17860 shlibpath_overrides_runpath
=yes
17867 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17868 soname_spec
='${libname}${release}${shared_ext}$major'
17869 shlibpath_var
=LD_LIBRARY_PATH
17870 shlibpath_overrides_runpath
=no
17871 hardcode_into_libs
=yes
17872 dynamic_linker
='ldqnx.so'
17877 sys_lib_dlsearch_path_spec
="/usr/lib"
17879 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17881 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17882 *) need_version
=no
;;
17884 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17885 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17886 shlibpath_var
=LD_LIBRARY_PATH
17887 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17889 openbsd2.
[89] | openbsd2.
[89].
*)
17890 shlibpath_overrides_runpath
=no
17893 shlibpath_overrides_runpath
=yes
17897 shlibpath_overrides_runpath
=yes
17902 libname_spec
='$name'
17905 library_names_spec
='$libname${shared_ext} $libname.a'
17906 dynamic_linker
='OS/2 ld.exe'
17907 shlibpath_var
=LIBPATH
17910 osf3
* | osf4
* | osf5
*)
17914 soname_spec
='${libname}${release}${shared_ext}$major'
17915 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17916 shlibpath_var
=LD_LIBRARY_PATH
17917 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17918 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17929 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17930 soname_spec
='${libname}${release}${shared_ext}$major'
17931 shlibpath_var
=LD_LIBRARY_PATH
17932 shlibpath_overrides_runpath
=yes
17933 hardcode_into_libs
=yes
17934 # ldd complains unless libraries are executable
17935 postinstall_cmds
='chmod +x $lib'
17940 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17941 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17942 shlibpath_var
=LD_LIBRARY_PATH
17943 shlibpath_overrides_runpath
=yes
17944 if test "$with_gnu_ld" = yes; then
17952 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17953 soname_spec
='${libname}${release}${shared_ext}$major'
17954 shlibpath_var
=LD_LIBRARY_PATH
17955 case $host_vendor in
17957 shlibpath_overrides_runpath
=no
17959 runpath_var
=LD_RUN_PATH
17967 shlibpath_overrides_runpath
=no
17968 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17974 if test -d /usr
/nec
;then
17976 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17977 soname_spec
='$libname${shared_ext}.$major'
17978 shlibpath_var
=LD_LIBRARY_PATH
17982 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17983 version_type
=freebsd-elf
17986 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17987 soname_spec
='${libname}${release}${shared_ext}$major'
17988 shlibpath_var
=LD_LIBRARY_PATH
17989 shlibpath_overrides_runpath
=yes
17990 hardcode_into_libs
=yes
17991 if test "$with_gnu_ld" = yes; then
17992 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17994 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17997 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18001 sys_lib_dlsearch_path_spec
='/usr/lib'
18005 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18009 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18010 shlibpath_var
=LD_LIBRARY_PATH
18011 shlibpath_overrides_runpath
=no
18012 hardcode_into_libs
=yes
18017 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18018 soname_spec
='${libname}${release}${shared_ext}$major'
18019 shlibpath_var
=LD_LIBRARY_PATH
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18027 $as_echo "$dynamic_linker" >&6; }
18028 test "$dynamic_linker" = no
&& can_build_shared
=no
18030 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18031 if test "$GCC" = yes; then
18032 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18035 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18036 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18038 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18039 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18134 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18136 if test -n "$hardcode_libdir_flag_spec" ||
18137 test -n "$runpath_var" ||
18138 test "X$hardcode_automatic" = "Xyes" ; then
18140 # We can hardcode non-existent directories.
18141 if test "$hardcode_direct" != no
&&
18142 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18143 # have to relink, otherwise we might link with an installed library
18144 # when we should be linking with a yet-to-be-installed one
18145 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18146 test "$hardcode_minus_L" != no
; then
18147 # Linking always hardcodes the temporary library directory.
18148 hardcode_action
=relink
18150 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18151 hardcode_action
=immediate
18154 # We cannot hardcode anything, or else we can only hardcode existing
18156 hardcode_action
=unsupported
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18159 $as_echo "$hardcode_action" >&6; }
18161 if test "$hardcode_action" = relink ||
18162 test "$inherit_rpath" = yes; then
18163 # Fast installation is not supported
18164 enable_fast_install
=no
18165 elif test "$shlibpath_overrides_runpath" = yes ||
18166 test "$enable_shared" = no
; then
18167 # Fast installation is not necessary
18168 enable_fast_install
=needless
18176 if test "x$enable_dlopen" != xyes
; then
18177 enable_dlopen
=unknown
18178 enable_dlopen_self
=unknown
18179 enable_dlopen_self_static
=unknown
18186 lt_cv_dlopen
="load_add_on"
18188 lt_cv_dlopen_self
=yes
18191 mingw
* | pw32
* | cegcc
*)
18192 lt_cv_dlopen
="LoadLibrary"
18197 lt_cv_dlopen
="dlopen"
18202 # if libdl is installed we need to link against it
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18204 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18205 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18206 $as_echo_n "(cached) " >&6
18208 ac_check_lib_save_LIBS
=$LIBS
18210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18211 /* end confdefs.h. */
18213 /* Override any GCC internal prototype to avoid an error.
18214 Use char because int might match the return type of a GCC
18215 builtin and then its argument prototype would still apply. */
18228 if ac_fn_c_try_link
"$LINENO"; then :
18229 ac_cv_lib_dl_dlopen
=yes
18231 ac_cv_lib_dl_dlopen
=no
18233 rm -f core conftest.err conftest.
$ac_objext \
18234 conftest
$ac_exeext conftest.
$ac_ext
18235 LIBS
=$ac_check_lib_save_LIBS
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18238 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18239 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18240 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18243 lt_cv_dlopen
="dyld"
18245 lt_cv_dlopen_self
=yes
18252 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18253 if test "x$ac_cv_func_shl_load" = x
""yes; then :
18254 lt_cv_dlopen
="shl_load"
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18257 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18258 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18259 $as_echo_n "(cached) " >&6
18261 ac_check_lib_save_LIBS
=$LIBS
18263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18264 /* end confdefs.h. */
18266 /* Override any GCC internal prototype to avoid an error.
18267 Use char because int might match the return type of a GCC
18268 builtin and then its argument prototype would still apply. */
18276 return shl_load ();
18281 if ac_fn_c_try_link
"$LINENO"; then :
18282 ac_cv_lib_dld_shl_load
=yes
18284 ac_cv_lib_dld_shl_load
=no
18286 rm -f core conftest.err conftest.
$ac_objext \
18287 conftest
$ac_exeext conftest.
$ac_ext
18288 LIBS
=$ac_check_lib_save_LIBS
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18291 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18292 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
18293 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18295 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18296 if test "x$ac_cv_func_dlopen" = x
""yes; then :
18297 lt_cv_dlopen
="dlopen"
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18300 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18301 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18302 $as_echo_n "(cached) " >&6
18304 ac_check_lib_save_LIBS
=$LIBS
18306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18307 /* end confdefs.h. */
18309 /* Override any GCC internal prototype to avoid an error.
18310 Use char because int might match the return type of a GCC
18311 builtin and then its argument prototype would still apply. */
18324 if ac_fn_c_try_link
"$LINENO"; then :
18325 ac_cv_lib_dl_dlopen
=yes
18327 ac_cv_lib_dl_dlopen
=no
18329 rm -f core conftest.err conftest.
$ac_objext \
18330 conftest
$ac_exeext conftest.
$ac_ext
18331 LIBS
=$ac_check_lib_save_LIBS
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18334 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18335 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18336 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18339 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18340 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18341 $as_echo_n "(cached) " >&6
18343 ac_check_lib_save_LIBS
=$LIBS
18344 LIBS
="-lsvld $LIBS"
18345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18346 /* end confdefs.h. */
18348 /* Override any GCC internal prototype to avoid an error.
18349 Use char because int might match the return type of a GCC
18350 builtin and then its argument prototype would still apply. */
18363 if ac_fn_c_try_link
"$LINENO"; then :
18364 ac_cv_lib_svld_dlopen
=yes
18366 ac_cv_lib_svld_dlopen
=no
18368 rm -f core conftest.err conftest.
$ac_objext \
18369 conftest
$ac_exeext conftest.
$ac_ext
18370 LIBS
=$ac_check_lib_save_LIBS
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18373 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18374 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18375 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18378 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18379 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18380 $as_echo_n "(cached) " >&6
18382 ac_check_lib_save_LIBS
=$LIBS
18384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18385 /* end confdefs.h. */
18387 /* Override any GCC internal prototype to avoid an error.
18388 Use char because int might match the return type of a GCC
18389 builtin and then its argument prototype would still apply. */
18397 return dld_link ();
18402 if ac_fn_c_try_link
"$LINENO"; then :
18403 ac_cv_lib_dld_dld_link
=yes
18405 ac_cv_lib_dld_dld_link
=no
18407 rm -f core conftest.err conftest.
$ac_objext \
18408 conftest
$ac_exeext conftest.
$ac_ext
18409 LIBS
=$ac_check_lib_save_LIBS
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18412 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18413 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18414 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18435 if test "x$lt_cv_dlopen" != xno
; then
18441 case $lt_cv_dlopen in
18443 save_CPPFLAGS
="$CPPFLAGS"
18444 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18446 save_LDFLAGS
="$LDFLAGS"
18447 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18450 LIBS
="$lt_cv_dlopen_libs $LIBS"
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18453 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18454 if test "${lt_cv_dlopen_self+set}" = set; then :
18455 $as_echo_n "(cached) " >&6
18457 if test "$cross_compiling" = yes; then :
18458 lt_cv_dlopen_self
=cross
18460 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18461 lt_status
=$lt_dlunknown
18462 cat > conftest.
$ac_ext <<_LT_EOF
18463 #line 18463 "configure"
18464 #include "confdefs.h"
18473 # define LT_DLGLOBAL RTLD_GLOBAL
18476 # define LT_DLGLOBAL DL_GLOBAL
18478 # define LT_DLGLOBAL 0
18482 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18483 find out it does not work in some platform. */
18484 #ifndef LT_DLLAZY_OR_NOW
18486 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18489 # define LT_DLLAZY_OR_NOW DL_LAZY
18492 # define LT_DLLAZY_OR_NOW RTLD_NOW
18495 # define LT_DLLAZY_OR_NOW DL_NOW
18497 # define LT_DLLAZY_OR_NOW 0
18504 /* When -fvisbility=hidden is used, assume the code has been annotated
18505 correspondingly for the symbols needed. */
18506 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18507 void fnord () __attribute__((visibility("default")));
18510 void fnord () { int i=42; }
18513 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18514 int status = $lt_dlunknown;
18518 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18521 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18522 else puts (dlerror ());
18524 /* dlclose (self); */
18532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18533 (eval $ac_link) 2>&5
18535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18536 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18537 (.
/conftest
; exit; ) >&5 2>/dev
/null
18539 case x
$lt_status in
18540 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18541 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18542 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18545 # compilation failed
18546 lt_cv_dlopen_self
=no
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18554 $as_echo "$lt_cv_dlopen_self" >&6; }
18556 if test "x$lt_cv_dlopen_self" = xyes
; then
18557 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18559 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18560 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18561 $as_echo_n "(cached) " >&6
18563 if test "$cross_compiling" = yes; then :
18564 lt_cv_dlopen_self_static
=cross
18566 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18567 lt_status
=$lt_dlunknown
18568 cat > conftest.
$ac_ext <<_LT_EOF
18569 #line 18569 "configure"
18570 #include "confdefs.h"
18579 # define LT_DLGLOBAL RTLD_GLOBAL
18582 # define LT_DLGLOBAL DL_GLOBAL
18584 # define LT_DLGLOBAL 0
18588 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18589 find out it does not work in some platform. */
18590 #ifndef LT_DLLAZY_OR_NOW
18592 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18595 # define LT_DLLAZY_OR_NOW DL_LAZY
18598 # define LT_DLLAZY_OR_NOW RTLD_NOW
18601 # define LT_DLLAZY_OR_NOW DL_NOW
18603 # define LT_DLLAZY_OR_NOW 0
18610 /* When -fvisbility=hidden is used, assume the code has been annotated
18611 correspondingly for the symbols needed. */
18612 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18613 void fnord () __attribute__((visibility("default")));
18616 void fnord () { int i=42; }
18619 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18620 int status = $lt_dlunknown;
18624 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18627 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18628 else puts (dlerror ());
18630 /* dlclose (self); */
18638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18639 (eval $ac_link) 2>&5
18641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18642 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18643 (.
/conftest
; exit; ) >&5 2>/dev
/null
18645 case x
$lt_status in
18646 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18647 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18648 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18651 # compilation failed
18652 lt_cv_dlopen_self_static
=no
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18660 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18663 CPPFLAGS
="$save_CPPFLAGS"
18664 LDFLAGS
="$save_LDFLAGS"
18669 case $lt_cv_dlopen_self in
18670 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18671 *) enable_dlopen_self
=unknown
;;
18674 case $lt_cv_dlopen_self_static in
18675 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18676 *) enable_dlopen_self_static
=unknown
;;
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18699 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18700 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18701 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18702 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18704 $as_echo "yes" >&6; }
18706 # FIXME - insert some real tests, host_os isn't really good enough
18709 if test -n "$STRIP" ; then
18710 striplib
="$STRIP -x"
18711 old_striplib
="$STRIP -S"
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18713 $as_echo "yes" >&6; }
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18716 $as_echo "no" >&6; }
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18721 $as_echo "no" >&6; }
18737 # Report which library types will actually be built
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18739 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18741 $as_echo "$can_build_shared" >&6; }
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18744 $as_echo_n "checking whether to build shared libraries... " >&6; }
18745 test "$can_build_shared" = "no" && enable_shared
=no
18747 # On AIX, shared libraries and static libraries use the same namespace, and
18748 # are all built from PIC.
18751 test "$enable_shared" = yes && enable_static
=no
18752 if test -n "$RANLIB"; then
18753 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18754 postinstall_cmds
='$RANLIB $lib'
18759 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18760 test "$enable_shared" = yes && enable_static
=no
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18765 $as_echo "$enable_shared" >&6; }
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18768 $as_echo_n "checking whether to build static libraries... " >&6; }
18769 # Make sure either enable_shared or enable_static is yes.
18770 test "$enable_shared" = yes || enable_static
=yes
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18772 $as_echo "$enable_static" >&6; }
18779 ac_cpp
='$CXXCPP $CPPFLAGS'
18780 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18781 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18782 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18786 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18787 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18788 (test "X$CXX" != "Xg++"))) ; then
18790 ac_cpp
='$CXXCPP $CPPFLAGS'
18791 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18792 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18793 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18795 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18796 if test -z "$CXXCPP"; then
18797 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18798 $as_echo_n "(cached) " >&6
18800 # Double quotes because CXXCPP needs to be expanded
18801 for CXXCPP
in "$CXX -E" "/lib/cpp"
18803 ac_preproc_ok
=false
18804 for ac_cxx_preproc_warn_flag
in '' yes
18806 # Use a header file that comes with gcc, so configuring glibc
18807 # with a fresh cross-compiler works.
18808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18809 # <limits.h> exists even on freestanding compilers.
18810 # On the NeXT, cc -E runs the code through the compiler's parser,
18811 # not just through cpp. "Syntax error" is here to catch this case.
18812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18813 /* end confdefs.h. */
18815 # include <limits.h>
18817 # include <assert.h>
18821 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18824 # Broken: fails on valid input.
18827 rm -f conftest.err conftest.
$ac_ext
18829 # OK, works on sane cases. Now check whether nonexistent headers
18830 # can be detected and how.
18831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18832 /* end confdefs.h. */
18833 #include <ac_nonexistent.h>
18835 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18836 # Broken: success on invalid input.
18839 # Passes both tests.
18843 rm -f conftest.err conftest.
$ac_ext
18846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18847 rm -f conftest.err conftest.
$ac_ext
18848 if $ac_preproc_ok; then :
18853 ac_cv_prog_CXXCPP
=$CXXCPP
18856 CXXCPP
=$ac_cv_prog_CXXCPP
18858 ac_cv_prog_CXXCPP
=$CXXCPP
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18861 $as_echo "$CXXCPP" >&6; }
18862 ac_preproc_ok
=false
18863 for ac_cxx_preproc_warn_flag
in '' yes
18865 # Use a header file that comes with gcc, so configuring glibc
18866 # with a fresh cross-compiler works.
18867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18868 # <limits.h> exists even on freestanding compilers.
18869 # On the NeXT, cc -E runs the code through the compiler's parser,
18870 # not just through cpp. "Syntax error" is here to catch this case.
18871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18872 /* end confdefs.h. */
18874 # include <limits.h>
18876 # include <assert.h>
18880 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18883 # Broken: fails on valid input.
18886 rm -f conftest.err conftest.
$ac_ext
18888 # OK, works on sane cases. Now check whether nonexistent headers
18889 # can be detected and how.
18890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18891 /* end confdefs.h. */
18892 #include <ac_nonexistent.h>
18894 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18895 # Broken: success on invalid input.
18898 # Passes both tests.
18902 rm -f conftest.err conftest.
$ac_ext
18905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18906 rm -f conftest.err conftest.
$ac_ext
18907 if $ac_preproc_ok; then :
18910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18912 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18913 See \`config.log' for more details." "$LINENO" 5; }
18917 ac_cpp
='$CXXCPP $CPPFLAGS'
18918 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18919 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18920 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18923 _lt_caught_CXX_error
=yes
18927 ac_cpp
='$CXXCPP $CPPFLAGS'
18928 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18929 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18930 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18932 archive_cmds_need_lc_CXX
=no
18933 allow_undefined_flag_CXX
=
18934 always_export_symbols_CXX
=no
18935 archive_expsym_cmds_CXX
=
18936 compiler_needs_object_CXX
=no
18937 export_dynamic_flag_spec_CXX
=
18938 hardcode_direct_CXX
=no
18939 hardcode_direct_absolute_CXX
=no
18940 hardcode_libdir_flag_spec_CXX
=
18941 hardcode_libdir_flag_spec_ld_CXX
=
18942 hardcode_libdir_separator_CXX
=
18943 hardcode_minus_L_CXX
=no
18944 hardcode_shlibpath_var_CXX
=unsupported
18945 hardcode_automatic_CXX
=no
18946 inherit_rpath_CXX
=no
18948 module_expsym_cmds_CXX
=
18949 link_all_deplibs_CXX
=unknown
18950 old_archive_cmds_CXX
=$old_archive_cmds
18951 reload_flag_CXX
=$reload_flag
18952 reload_cmds_CXX
=$reload_cmds
18953 no_undefined_flag_CXX
=
18954 whole_archive_flag_spec_CXX
=
18955 enable_shared_with_static_runtimes_CXX
=no
18957 # Source file extension for C++ test sources.
18960 # Object file extension for compiled C++ test sources.
18964 # No sense in running all these tests if we already determined that
18965 # the CXX compiler isn't working. Some variables (like enable_shared)
18966 # are currently assumed to apply to all compilers on this platform,
18967 # and will be corrupted by setting them based on a non-working compiler.
18968 if test "$_lt_caught_CXX_error" != yes; then
18969 # Code to be used in simple compile tests
18970 lt_simple_compile_test_code
="int some_variable = 0;"
18972 # Code to be used in simple link tests
18973 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18975 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18982 # If no C compiler was specified, use CC.
18985 # If no C compiler flags were specified, use CFLAGS.
18986 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18988 # Allow CC to be a program name with arguments.
18992 # save warnings/boilerplate of simple test code
18993 ac_outfile
=conftest.
$ac_objext
18994 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18995 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18996 _lt_compiler_boilerplate
=`cat conftest.err`
18999 ac_outfile
=conftest.
$ac_objext
19000 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19001 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19002 _lt_linker_boilerplate
=`cat conftest.err`
19006 # Allow CC to be a program name with arguments.
19011 lt_save_with_gnu_ld
=$with_gnu_ld
19012 lt_save_path_LD
=$lt_cv_path_LD
19013 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19014 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
19016 $as_unset lt_cv_prog_gnu_ld
19018 if test -n "${lt_cv_path_LDCXX+set}"; then
19019 lt_cv_path_LD
=$lt_cv_path_LDCXX
19021 $as_unset lt_cv_path_LD
19023 test -z "${LDCXX+set}" || LD
=$LDCXX
19027 for cc_temp
in $compiler""; do
19029 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19030 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19035 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19038 if test -n "$compiler"; then
19039 # We don't want -fno-exception when compiling C++ code, so set the
19040 # no_builtin_flag separately
19041 if test "$GXX" = yes; then
19042 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19044 lt_prog_compiler_no_builtin_flag_CXX
=
19047 if test "$GXX" = yes; then
19048 # Set up default GNU C++ configuration
19052 # Check whether --with-gnu-ld was given.
19053 if test "${with_gnu_ld+set}" = set; then :
19054 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19060 if test "$GCC" = yes; then
19061 # Check if gcc -print-prog-name=ld gives a path.
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19063 $as_echo_n "checking for ld used by $CC... " >&6; }
19066 # gcc leaves a trailing carriage return which upsets mingw
19067 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19069 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19072 # Accept absolute paths.
19074 re_direlt
='/[^/][^/]*/\.\./'
19075 # Canonicalize the pathname of ld
19076 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19077 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19078 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19080 test -z "$LD" && LD
="$ac_prog"
19083 # If it fails, then pretend we aren't using GCC.
19087 # If it is relative, then search for the first ld in PATH.
19088 with_gnu_ld
=unknown
19091 elif test "$with_gnu_ld" = yes; then
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19093 $as_echo_n "checking for GNU ld... " >&6; }
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19096 $as_echo_n "checking for non-GNU ld... " >&6; }
19098 if test "${lt_cv_path_LD+set}" = set; then :
19099 $as_echo_n "(cached) " >&6
19101 if test -z "$LD"; then
19102 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19103 for ac_dir
in $PATH; do
19105 test -z "$ac_dir" && ac_dir
=.
19106 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19107 lt_cv_path_LD
="$ac_dir/$ac_prog"
19108 # Check to see if the program is GNU ld. I'd rather use --version,
19109 # but apparently some variants of GNU ld only accept -v.
19110 # Break only if it was the GNU/non-GNU ld that we prefer.
19111 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19112 *GNU
* |
*'with BFD'*)
19113 test "$with_gnu_ld" != no
&& break
19116 test "$with_gnu_ld" != yes && break
19123 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19127 LD
="$lt_cv_path_LD"
19128 if test -n "$LD"; then
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19130 $as_echo "$LD" >&6; }
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19133 $as_echo "no" >&6; }
19135 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19137 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19138 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19139 $as_echo_n "(cached) " >&6
19141 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19142 case `$LD -v 2>&1 </dev/null` in
19143 *GNU
* |
*'with BFD'*)
19144 lt_cv_prog_gnu_ld
=yes
19147 lt_cv_prog_gnu_ld
=no
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19152 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19153 with_gnu_ld
=$lt_cv_prog_gnu_ld
19161 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19162 # archiving commands below assume that GNU ld is being used.
19163 if test "$with_gnu_ld" = yes; then
19164 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19165 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'
19167 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19168 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19170 # If archive_cmds runs LD, not CC, wlarc should be empty
19171 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19172 # investigate it a little bit more. (MM)
19175 # ancient GNU ld didn't support --whole-archive et. al.
19176 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19177 $GREP 'no-whole-archive' > /dev
/null
; then
19178 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19180 whole_archive_flag_spec_CXX
=
19186 # A generic and very simple default shared library creation
19187 # command for GNU C++ for the case where it uses the native
19188 # linker, instead of GNU ld. If possible, this setting should
19189 # overridden to take advantage of the native linker features on
19190 # the platform it is being used on.
19191 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19194 # Commands to make compiler produce verbose output that lists
19195 # what "hidden" libraries, object files and flags are used when
19196 # linking a shared library.
19197 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19205 # PORTME: fill in a description of your system's C++ link characteristics
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19207 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19211 # FIXME: insert proper C++ library support
19215 if test "$host_cpu" = ia64
; then
19216 # On IA64, the linker does run time linking by default, so we don't
19217 # have to do anything special.
19218 aix_use_runtimelinking
=no
19219 exp_sym_flag
='-Bexport'
19222 aix_use_runtimelinking
=no
19224 # Test if we are trying to use run time linking or normal
19225 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19226 # need to do runtime linking.
19227 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19228 for ld_flag
in $LDFLAGS; do
19231 aix_use_runtimelinking
=yes
19239 exp_sym_flag
='-bexport'
19240 no_entry_flag
='-bnoentry'
19243 # When large executables or shared objects are built, AIX ld can
19244 # have problems creating the table of contents. If linking a library
19245 # or program results in "error TOC overflow" add -mminimal-toc to
19246 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19247 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19249 archive_cmds_CXX
=''
19250 hardcode_direct_CXX
=yes
19251 hardcode_direct_absolute_CXX
=yes
19252 hardcode_libdir_separator_CXX
=':'
19253 link_all_deplibs_CXX
=yes
19254 file_list_spec_CXX
='${wl}-f,'
19256 if test "$GXX" = yes; then
19257 case $host_os in aix4.
[012]|aix4.
[012].
*)
19258 # We only want to do this on AIX 4.2 and lower, the check
19259 # below for broken collect2 doesn't work under 4.3+
19260 collect2name
=`${CC} -print-prog-name=collect2`
19261 if test -f "$collect2name" &&
19262 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19264 # We have reworked collect2
19267 # We have old collect2
19268 hardcode_direct_CXX
=unsupported
19269 # It fails to find uninstalled libraries when the uninstalled
19270 # path is not listed in the libpath. Setting hardcode_minus_L
19271 # to unsupported forces relinking
19272 hardcode_minus_L_CXX
=yes
19273 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19274 hardcode_libdir_separator_CXX
=
19277 shared_flag
='-shared'
19278 if test "$aix_use_runtimelinking" = yes; then
19279 shared_flag
="$shared_flag "'${wl}-G'
19283 if test "$host_cpu" = ia64
; then
19284 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19285 # chokes on -Wl,-G. The following line is correct:
19288 if test "$aix_use_runtimelinking" = yes; then
19289 shared_flag
='${wl}-G'
19291 shared_flag
='${wl}-bM:SRE'
19296 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19297 # It seems that -bexpall does not export symbols beginning with
19298 # underscore (_), so it is better to generate a list of symbols to
19300 always_export_symbols_CXX
=yes
19301 if test "$aix_use_runtimelinking" = yes; then
19302 # Warning - without using the other runtime loading flags (-brtl),
19303 # -berok will link without error, but may produce a broken library.
19304 allow_undefined_flag_CXX
='-berok'
19305 # Determine the default libpath from the value encoded in an empty
19307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19308 /* end confdefs.h. */
19318 if ac_fn_cxx_try_link
"$LINENO"; then :
19320 lt_aix_libpath_sed
='
19321 /Import File Strings/,/^$/ {
19327 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19328 # Check for a 64-bit object if we didn't find anything.
19329 if test -z "$aix_libpath"; then
19330 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19333 rm -f core conftest.err conftest.
$ac_objext \
19334 conftest
$ac_exeext conftest.
$ac_ext
19335 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19337 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19339 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"
19341 if test "$host_cpu" = ia64
; then
19342 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19343 allow_undefined_flag_CXX
="-z nodefs"
19344 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"
19346 # Determine the default libpath from the value encoded in an
19347 # empty executable.
19348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19349 /* end confdefs.h. */
19359 if ac_fn_cxx_try_link
"$LINENO"; then :
19361 lt_aix_libpath_sed
='
19362 /Import File Strings/,/^$/ {
19368 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19369 # Check for a 64-bit object if we didn't find anything.
19370 if test -z "$aix_libpath"; then
19371 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19374 rm -f core conftest.err conftest.
$ac_objext \
19375 conftest
$ac_exeext conftest.
$ac_ext
19376 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19378 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19379 # Warning - without using the other run time loading flags,
19380 # -berok will link without error, but may produce a broken library.
19381 no_undefined_flag_CXX
=' ${wl}-bernotok'
19382 allow_undefined_flag_CXX
=' ${wl}-berok'
19383 if test "$with_gnu_ld" = yes; then
19384 # We only use this code for GNU lds that support --whole-archive.
19385 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19387 # Exported symbols can be pulled into shared objects from archives
19388 whole_archive_flag_spec_CXX
='$convenience'
19390 archive_cmds_need_lc_CXX
=yes
19391 # This is similar to how AIX traditionally builds its shared
19393 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'
19399 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19400 allow_undefined_flag_CXX
=unsupported
19401 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19402 # support --undefined. This deserves some investigation. FIXME
19403 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19410 case $cc_basename in
19412 # FIXME: insert proper C++ library support
19418 cygwin
* | mingw
* | pw32
* | cegcc
*)
19419 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19420 # as there is no search path for DLLs.
19421 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19422 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19423 allow_undefined_flag_CXX
=unsupported
19424 always_export_symbols_CXX
=no
19425 enable_shared_with_static_runtimes_CXX
=yes
19427 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19428 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'
19429 # If the export-symbols file already is a .def file (1st line
19430 # is EXPORTS), use it as is; otherwise, prepend...
19431 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19432 cp $export_symbols $output_objdir/$soname.def;
19434 echo EXPORTS > $output_objdir/$soname.def;
19435 cat $export_symbols >> $output_objdir/$soname.def;
19437 $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'
19442 darwin
* | rhapsody
*)
19445 archive_cmds_need_lc_CXX
=no
19446 hardcode_direct_CXX
=no
19447 hardcode_automatic_CXX
=yes
19448 hardcode_shlibpath_var_CXX
=unsupported
19449 if test "$lt_cv_ld_force_load" = "yes"; then
19450 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\"`'
19452 whole_archive_flag_spec_CXX
=''
19454 link_all_deplibs_CXX
=yes
19455 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19456 case $cc_basename in
19457 ifort
*) _lt_dar_can_shared
=yes ;;
19458 *) _lt_dar_can_shared
=$GCC ;;
19460 if test "$_lt_dar_can_shared" = "yes"; then
19461 output_verbose_link_cmd
=func_echo_all
19462 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}"
19463 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19464 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}"
19465 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}"
19466 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19467 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}"
19468 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}"
19478 case $cc_basename in
19480 # FIXME: insert proper C++ library support
19484 # Green Hills C++ Compiler
19485 # FIXME: insert proper C++ library support
19489 # FIXME: insert proper C++ library support
19496 # C++ shared libraries reported to be fairly broken before
19502 archive_cmds_need_lc_CXX
=no
19505 freebsd
* | dragonfly
*)
19506 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19515 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19516 link_all_deplibs_CXX
=yes
19520 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19521 hardcode_libdir_separator_CXX
=:
19522 export_dynamic_flag_spec_CXX
='${wl}-E'
19523 hardcode_direct_CXX
=yes
19524 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19525 # but as the default
19526 # location of the library.
19528 case $cc_basename in
19530 # FIXME: insert proper C++ library support
19534 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'
19535 # Commands to make compiler produce verbose output that lists
19536 # what "hidden" libraries, object files and flags are used when
19537 # linking a shared library.
19539 # There doesn't appear to be a way to prevent this compiler from
19540 # explicitly linking system object files so we need to strip them
19541 # from the output so that they don't get included in the library
19543 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"'
19546 if test "$GXX" = yes; then
19547 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'
19549 # FIXME: insert proper C++ library support
19557 if test $with_gnu_ld = no
; then
19558 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19559 hardcode_libdir_separator_CXX
=:
19565 export_dynamic_flag_spec_CXX
='${wl}-E'
19571 hardcode_direct_CXX
=no
19572 hardcode_shlibpath_var_CXX
=no
19575 hardcode_direct_CXX
=yes
19576 hardcode_direct_absolute_CXX
=yes
19577 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19578 # but as the default
19579 # location of the library.
19583 case $cc_basename in
19585 # FIXME: insert proper C++ library support
19591 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19594 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19597 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19600 # Commands to make compiler produce verbose output that lists
19601 # what "hidden" libraries, object files and flags are used when
19602 # linking a shared library.
19604 # There doesn't appear to be a way to prevent this compiler from
19605 # explicitly linking system object files so we need to strip them
19606 # from the output so that they don't get included in the library
19608 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"'
19611 if test "$GXX" = yes; then
19612 if test $with_gnu_ld = no
; then
19615 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19618 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19621 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'
19626 # FIXME: insert proper C++ library support
19634 hardcode_direct_CXX
=no
19635 hardcode_shlibpath_var_CXX
=no
19636 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19637 export_dynamic_flag_spec_CXX
='${wl}-E'
19638 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19639 # Instead, shared libraries are loaded at an image base (0x10000000 by
19640 # default) and relocated if they conflict, which is a slow very memory
19641 # consuming and fragmenting process. To avoid this, we pick a random,
19642 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19643 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19644 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'
19645 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'
19648 case $cc_basename in
19651 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'
19653 # Archives containing C++ object files must be created using
19654 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19655 # necessary to make sure instantiated templates are included
19657 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19660 if test "$GXX" = yes; then
19661 if test "$with_gnu_ld" = no
; then
19662 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'
19664 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'
19667 link_all_deplibs_CXX
=yes
19670 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19671 hardcode_libdir_separator_CXX
=:
19672 inherit_rpath_CXX
=yes
19675 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19676 case $cc_basename in
19678 # Kuck and Associates, Inc. (KAI) C++ Compiler
19680 # KCC will only create a shared library if the output file
19681 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19682 # to its proper name (with version) after linking.
19683 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'
19684 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'
19685 # Commands to make compiler produce verbose output that lists
19686 # what "hidden" libraries, object files and flags are used when
19687 # linking a shared library.
19689 # There doesn't appear to be a way to prevent this compiler from
19690 # explicitly linking system object files so we need to strip them
19691 # from the output so that they don't get included in the library
19693 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"'
19695 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19696 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19698 # Archives containing C++ object files must be created using
19699 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19700 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19705 # version 8.0 and above of icpc choke on multiply defined symbols
19706 # if we add $predep_objects and $postdep_objects, however 7.1 and
19707 # earlier do not add the objects themselves.
19708 case `$CC -V 2>&1` in
19710 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19711 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'
19713 *) # Version 8.0 or newer
19716 ia64
*) tmp_idyn
=' -i_dynamic';;
19718 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19719 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'
19722 archive_cmds_need_lc_CXX
=no
19723 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19724 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19725 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19728 # Portland Group C++ compiler
19730 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19731 prelink_cmds_CXX
='tpldir=Template.dir~
19733 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19734 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19735 old_archive_cmds_CXX
='tpldir=Template.dir~
19737 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19738 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19740 archive_cmds_CXX
='tpldir=Template.dir~
19742 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19743 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19744 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19746 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19747 $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'
19749 *) # Version 6 and above use weak symbols
19750 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19751 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'
19755 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19756 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19757 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'
19761 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19762 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'
19764 runpath_var
=LD_RUN_PATH
19765 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19766 hardcode_libdir_separator_CXX
=:
19768 # Commands to make compiler produce verbose output that lists
19769 # what "hidden" libraries, object files and flags are used when
19770 # linking a shared library.
19772 # There doesn't appear to be a way to prevent this compiler from
19773 # explicitly linking system object files so we need to strip them
19774 # from the output so that they don't get included in the library
19776 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'
19778 xl
* | mpixl
* | bgxl
*)
19779 # IBM XL 8.0 on PPC, with GNU ld
19780 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19781 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19782 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19783 if test "x$supports_anon_versioning" = xyes
; then
19784 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19785 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19786 echo "local: *; };" >> $output_objdir/$libname.ver~
19787 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19791 case `$CC -V 2>&1 | sed 5q` in
19794 no_undefined_flag_CXX
=' -zdefs'
19795 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19796 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'
19797 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19798 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'
19799 compiler_needs_object_CXX
=yes
19801 # Not sure whether something based on
19802 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19804 output_verbose_link_cmd
='func_echo_all'
19806 # Archives containing C++ object files must be created using
19807 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19808 # necessary to make sure instantiated templates are included
19810 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19818 # FIXME: insert proper C++ library support
19823 # FIXME: insert proper C++ library support
19828 case $cc_basename in
19830 # FIXME: insert proper C++ library support
19834 # FIXME: insert proper C++ library support
19841 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19842 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19844 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19845 hardcode_direct_CXX
=yes
19846 hardcode_shlibpath_var_CXX
=no
19848 # Workaround some broken pre-1.5 toolchains
19849 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19857 # C++ shared libraries are fairly broken
19862 if test -f /usr
/libexec
/ld.so
; then
19863 hardcode_direct_CXX
=yes
19864 hardcode_shlibpath_var_CXX
=no
19865 hardcode_direct_absolute_CXX
=yes
19866 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19867 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19868 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19869 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19870 export_dynamic_flag_spec_CXX
='${wl}-E'
19871 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19873 output_verbose_link_cmd
=func_echo_all
19879 osf3
* | osf4
* | osf5
*)
19880 case $cc_basename in
19882 # Kuck and Associates, Inc. (KAI) C++ Compiler
19884 # KCC will only create a shared library if the output file
19885 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19886 # to its proper name (with version) after linking.
19887 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'
19889 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19890 hardcode_libdir_separator_CXX
=:
19892 # Archives containing C++ object files must be created using
19893 # the KAI C++ compiler.
19895 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19896 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19900 # Rational C++ 2.4.1
19901 # FIXME: insert proper C++ library support
19907 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19908 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'
19909 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19912 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19913 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'
19914 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19915 echo "-hidden">> $lib.exp~
19916 $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~
19918 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19922 hardcode_libdir_separator_CXX
=:
19924 # Commands to make compiler produce verbose output that lists
19925 # what "hidden" libraries, object files and flags are used when
19926 # linking a shared library.
19928 # There doesn't appear to be a way to prevent this compiler from
19929 # explicitly linking system object files so we need to strip them
19930 # from the output so that they don't get included in the library
19932 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"'
19935 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19936 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19939 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'
19942 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'
19946 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19947 hardcode_libdir_separator_CXX
=:
19949 # Commands to make compiler produce verbose output that lists
19950 # what "hidden" libraries, object files and flags are used when
19951 # linking a shared library.
19952 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19955 # FIXME: insert proper C++ library support
19963 # FIXME: insert proper C++ library support
19968 case $cc_basename in
19971 # FIXME: insert proper C++ library support
19976 # FIXME: insert proper C++ library support
19980 # FIXME: insert proper C++ library support
19987 case $cc_basename in
19989 # Sun C++ 4.2, 5.x and Centerline C++
19990 archive_cmds_need_lc_CXX
=yes
19991 no_undefined_flag_CXX
=' -zdefs'
19992 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19993 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19994 $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'
19996 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19997 hardcode_shlibpath_var_CXX
=no
19999 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20001 # The compiler driver will combine and reorder linker options,
20002 # but understands `-z linker_flag'.
20003 # Supported since Solaris 2.6 (maybe 2.5.1?)
20004 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
20007 link_all_deplibs_CXX
=yes
20009 output_verbose_link_cmd
='func_echo_all'
20011 # Archives containing C++ object files must be created using
20012 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20013 # necessary to make sure instantiated templates are included
20015 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20018 # Green Hills C++ Compiler
20019 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20021 # The C++ compiler must be used to create the archive.
20022 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20025 # GNU C++ compiler with Solaris linker
20026 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20027 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
20028 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
20029 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20030 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20031 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20033 # Commands to make compiler produce verbose output that lists
20034 # what "hidden" libraries, object files and flags are used when
20035 # linking a shared library.
20036 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20038 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20040 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20041 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20042 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20044 # Commands to make compiler produce verbose output that lists
20045 # what "hidden" libraries, object files and flags are used when
20046 # linking a shared library.
20047 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20050 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20052 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20054 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20062 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20063 no_undefined_flag_CXX
='${wl}-z,text'
20064 archive_cmds_need_lc_CXX
=no
20065 hardcode_shlibpath_var_CXX
=no
20066 runpath_var
='LD_RUN_PATH'
20068 case $cc_basename in
20070 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20071 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20074 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20075 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20080 sysv5
* | sco3.2v5
* | sco5v6
*)
20081 # Note: We can NOT use -z defs as we might desire, because we do not
20082 # link with -lc, and that would cause any symbols used from libc to
20083 # always be unresolved, which means just about no library would
20084 # ever link correctly. If we're not using GNU ld we use -z text
20085 # though, which does catch some bad symbols but isn't as heavy-handed
20087 no_undefined_flag_CXX
='${wl}-z,text'
20088 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20089 archive_cmds_need_lc_CXX
=no
20090 hardcode_shlibpath_var_CXX
=no
20091 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20092 hardcode_libdir_separator_CXX
=':'
20093 link_all_deplibs_CXX
=yes
20094 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20095 runpath_var
='LD_RUN_PATH'
20097 case $cc_basename in
20099 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20100 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20101 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20102 '"$old_archive_cmds_CXX"
20103 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20104 '"$reload_cmds_CXX"
20107 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20108 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20114 case $cc_basename in
20116 # NonStop-UX NCC 3.20
20117 # FIXME: insert proper C++ library support
20121 # FIXME: insert proper C++ library support
20128 # FIXME: insert proper C++ library support
20133 # FIXME: insert proper C++ library support
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20139 $as_echo "$ld_shlibs_CXX" >&6; }
20140 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20146 ## There is no encapsulation within the following macros, do not change
20147 ## the running order or otherwise move them around unless you know exactly
20148 ## what you are doing...
20149 # Dependencies to place before and after the object being linked:
20150 predep_objects_CXX
=
20151 postdep_objects_CXX
=
20154 compiler_lib_search_path_CXX
=
20156 cat > conftest.
$ac_ext <<_LT_EOF
20160 Foo (void) { a = 0; }
20166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20167 (eval $ac_compile) 2>&5
20169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20170 test $ac_status = 0; }; then
20171 # Parse the compiler output and extract the necessary
20172 # objects, libraries and library flags.
20174 # Sentinel used to keep track of whether or not we are before
20175 # the conftest object file.
20176 pre_test_object_deps_done
=no
20178 for p
in `eval "$output_verbose_link_cmd"`; do
20182 # Some compilers place space between "-{L,R}" and the path.
20183 # Remove the space.
20184 if test $p = "-L" ||
20185 test $p = "-R"; then
20192 if test "$pre_test_object_deps_done" = no
; then
20195 # Internal compiler library paths should come after those
20196 # provided the user. The postdeps already come after the
20197 # user supplied libs so there is no need to process them.
20198 if test -z "$compiler_lib_search_path_CXX"; then
20199 compiler_lib_search_path_CXX
="${prev}${p}"
20201 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20204 # The "-l" case would never come before the object being
20205 # linked, so don't bother handling this case.
20208 if test -z "$postdeps_CXX"; then
20209 postdeps_CXX
="${prev}${p}"
20211 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20217 # This assumes that the test object file only shows up
20218 # once in the compiler output.
20219 if test "$p" = "conftest.$objext"; then
20220 pre_test_object_deps_done
=yes
20224 if test "$pre_test_object_deps_done" = no
; then
20225 if test -z "$predep_objects_CXX"; then
20226 predep_objects_CXX
="$p"
20228 predep_objects_CXX
="$predep_objects_CXX $p"
20231 if test -z "$postdep_objects_CXX"; then
20232 postdep_objects_CXX
="$p"
20234 postdep_objects_CXX
="$postdep_objects_CXX $p"
20239 *) ;; # Ignore the rest.
20247 echo "libtool.m4: error: problem compiling CXX test program"
20250 $RM -f confest.
$objext
20252 # PORTME: override above test on systems where it is broken
20255 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20256 # hack all around it, let's just trust "g++" to DTRT.
20257 predep_objects_CXX
=
20258 postdep_objects_CXX
=
20263 case `$CC -V 2>&1 | sed 5q` in
20267 # The more standards-conforming stlport4 library is
20268 # incompatible with the Cstd library. Avoid specifying
20269 # it if it's in CXXFLAGS. Ignore libCrun as
20270 # -library=stlport4 depends on it.
20271 case " $CXX $CXXFLAGS " in
20272 *" -library=stlport4 "*)
20273 solaris_use_stlport4
=yes
20277 if test "$solaris_use_stlport4" != yes; then
20278 postdeps_CXX
='-library=Cstd -library=Crun'
20285 case $cc_basename in
20287 # The more standards-conforming stlport4 library is
20288 # incompatible with the Cstd library. Avoid specifying
20289 # it if it's in CXXFLAGS. Ignore libCrun as
20290 # -library=stlport4 depends on it.
20291 case " $CXX $CXXFLAGS " in
20292 *" -library=stlport4 "*)
20293 solaris_use_stlport4
=yes
20297 # Adding this requires a known-good setup of shared libraries for
20298 # Sun compiler versions before 5.6, else PIC objects from an old
20299 # archive will be linked into the output, leading to subtle bugs.
20300 if test "$solaris_use_stlport4" != yes; then
20301 postdeps_CXX
='-library=Cstd -library=Crun'
20309 case " $postdeps_CXX " in
20310 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20312 compiler_lib_search_dirs_CXX
=
20313 if test -n "${compiler_lib_search_path_CXX}"; then
20314 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20347 lt_prog_compiler_wl_CXX
=
20348 lt_prog_compiler_pic_CXX
=
20349 lt_prog_compiler_static_CXX
=
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20352 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20354 # C++ specific cases for pic, static, wl, etc.
20355 if test "$GXX" = yes; then
20356 lt_prog_compiler_wl_CXX
='-Wl,'
20357 lt_prog_compiler_static_CXX
='-static'
20361 # All AIX code is PIC.
20362 if test "$host_cpu" = ia64
; then
20363 # AIX 5 now supports IA64 processor
20364 lt_prog_compiler_static_CXX
='-Bstatic'
20366 lt_prog_compiler_pic_CXX
='-fPIC'
20372 # see comment about AmigaOS4 .so support
20373 lt_prog_compiler_pic_CXX
='-fPIC'
20376 # FIXME: we need at least 68020 code to build shared libraries, but
20377 # adding the `-m68020' flag to GCC prevents building anything better,
20379 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20384 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20385 # PIC is the default for these OSes.
20387 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20388 # This hack is so that the source file can tell whether it is being
20389 # built for inclusion in a dll (and should export symbols for example).
20390 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20391 # (--disable-auto-import) libraries
20392 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20394 darwin
* | rhapsody
*)
20395 # PIC is the default on this platform
20396 # Common symbols not allowed in MH_DYLIB files
20397 lt_prog_compiler_pic_CXX
='-fno-common'
20400 # DJGPP does not support shared libraries at all
20401 lt_prog_compiler_pic_CXX
=
20404 # PIC is the default for Haiku.
20405 # The "-static" flag exists, but is broken.
20406 lt_prog_compiler_static_CXX
=
20409 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20410 # Instead, we relocate shared libraries at runtime.
20413 if test -d /usr
/nec
; then
20414 lt_prog_compiler_pic_CXX
=-Kconform_pic
20418 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20419 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20420 # sets the default TLS model and affects inlining.
20425 lt_prog_compiler_pic_CXX
='-fPIC'
20430 # QNX uses GNU C++, but need to define -shared option too, otherwise
20431 # it will coredump.
20432 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20435 lt_prog_compiler_pic_CXX
='-fPIC'
20441 # All AIX code is PIC.
20442 if test "$host_cpu" = ia64
; then
20443 # AIX 5 now supports IA64 processor
20444 lt_prog_compiler_static_CXX
='-Bstatic'
20446 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20450 case $cc_basename in
20452 # Green Hills C++ Compiler
20453 # _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"
20458 case $cc_basename in
20460 lt_prog_compiler_pic_CXX
='-KPIC'
20463 # Green Hills C++ Compiler
20464 lt_prog_compiler_pic_CXX
='-pic'
20470 freebsd
* | dragonfly
*)
20471 # FreeBSD uses GNU C++
20473 hpux9
* | hpux10
* | hpux11
*)
20474 case $cc_basename in
20476 lt_prog_compiler_wl_CXX
='-Wl,'
20477 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20478 if test "$host_cpu" != ia64
; then
20479 lt_prog_compiler_pic_CXX
='+Z'
20483 lt_prog_compiler_wl_CXX
='-Wl,'
20484 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20490 lt_prog_compiler_pic_CXX
='+Z'
20499 # This is c89, which is MS Visual C++ (no shared libs)
20500 # Anyone wants to do a port?
20502 irix5
* | irix6
* | nonstopux
*)
20503 case $cc_basename in
20505 lt_prog_compiler_wl_CXX
='-Wl,'
20506 lt_prog_compiler_static_CXX
='-non_shared'
20507 # CC pic flag -KPIC is the default.
20513 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20514 case $cc_basename in
20517 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20518 lt_prog_compiler_pic_CXX
='-fPIC'
20521 # old Intel C++ for x86_64 which still supported -KPIC.
20522 lt_prog_compiler_wl_CXX
='-Wl,'
20523 lt_prog_compiler_pic_CXX
='-KPIC'
20524 lt_prog_compiler_static_CXX
='-static'
20527 # Intel C++, used to be incompatible with GCC.
20528 # ICC 10 doesn't accept -KPIC any more.
20529 lt_prog_compiler_wl_CXX
='-Wl,'
20530 lt_prog_compiler_pic_CXX
='-fPIC'
20531 lt_prog_compiler_static_CXX
='-static'
20534 # Portland Group C++ compiler
20535 lt_prog_compiler_wl_CXX
='-Wl,'
20536 lt_prog_compiler_pic_CXX
='-fpic'
20537 lt_prog_compiler_static_CXX
='-Bstatic'
20541 # Make sure the PIC flag is empty. It appears that all Alpha
20542 # Linux and Compaq Tru64 Unix objects are PIC.
20543 lt_prog_compiler_pic_CXX
=
20544 lt_prog_compiler_static_CXX
='-non_shared'
20546 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20547 # IBM XL 8.0, 9.0 on PPC and BlueGene
20548 lt_prog_compiler_wl_CXX
='-Wl,'
20549 lt_prog_compiler_pic_CXX
='-qpic'
20550 lt_prog_compiler_static_CXX
='-qstaticlink'
20553 case `$CC -V 2>&1 | sed 5q` in
20556 lt_prog_compiler_pic_CXX
='-KPIC'
20557 lt_prog_compiler_static_CXX
='-Bstatic'
20558 lt_prog_compiler_wl_CXX
='-Qoption ld '
20569 case $cc_basename in
20571 lt_prog_compiler_pic_CXX
='-W c,exportall'
20580 # QNX uses GNU C++, but need to define -shared option too, otherwise
20581 # it will coredump.
20582 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20584 osf3
* | osf4
* | osf5
*)
20585 case $cc_basename in
20587 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20590 # Rational C++ 2.4.1
20591 lt_prog_compiler_pic_CXX
='-pic'
20594 # Digital/Compaq C++
20595 lt_prog_compiler_wl_CXX
='-Wl,'
20596 # Make sure the PIC flag is empty. It appears that all Alpha
20597 # Linux and Compaq Tru64 Unix objects are PIC.
20598 lt_prog_compiler_pic_CXX
=
20599 lt_prog_compiler_static_CXX
='-non_shared'
20608 case $cc_basename in
20610 # Sun C++ 4.2, 5.x and Centerline C++
20611 lt_prog_compiler_pic_CXX
='-KPIC'
20612 lt_prog_compiler_static_CXX
='-Bstatic'
20613 lt_prog_compiler_wl_CXX
='-Qoption ld '
20616 # Green Hills C++ Compiler
20617 lt_prog_compiler_pic_CXX
='-PIC'
20624 case $cc_basename in
20627 lt_prog_compiler_pic_CXX
='-pic'
20628 lt_prog_compiler_static_CXX
='-Bstatic'
20632 lt_prog_compiler_pic_CXX
='-pic'
20638 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20639 case $cc_basename in
20641 lt_prog_compiler_wl_CXX
='-Wl,'
20642 lt_prog_compiler_pic_CXX
='-KPIC'
20643 lt_prog_compiler_static_CXX
='-Bstatic'
20648 case $cc_basename in
20650 # NonStop-UX NCC 3.20
20651 lt_prog_compiler_pic_CXX
='-KPIC'
20660 lt_prog_compiler_can_build_shared_CXX
=no
20666 # For platforms which do not support PIC, -DPIC is meaningless:
20668 lt_prog_compiler_pic_CXX
=
20671 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20675 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20680 # Check to make sure the PIC flag actually works.
20682 if test -n "$lt_prog_compiler_pic_CXX"; then
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20684 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20685 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20686 $as_echo_n "(cached) " >&6
20688 lt_cv_prog_compiler_pic_works_CXX
=no
20689 ac_outfile
=conftest.
$ac_objext
20690 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20691 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20692 # Insert the option either (1) after the last *FLAGS variable, or
20693 # (2) before a word containing "conftest.", or (3) at the end.
20694 # Note that $ac_compile itself does not contain backslashes and begins
20695 # with a dollar sign (not a hyphen), so the echo should work correctly.
20696 # The option is referenced via a variable to avoid confusing sed.
20697 lt_compile
=`echo "$ac_compile" | $SED \
20698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20700 -e 's:$: $lt_compiler_flag:'`
20701 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20702 (eval "$lt_compile" 2>conftest.err
)
20704 cat conftest.err
>&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 if (exit $ac_status) && test -s "$ac_outfile"; then
20707 # The compiler can only warn and ignore the option if not recognized
20708 # So say no if there are warnings other than the usual output.
20709 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20710 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20711 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20712 lt_cv_prog_compiler_pic_works_CXX
=yes
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20719 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20721 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20722 case $lt_prog_compiler_pic_CXX in
20724 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20727 lt_prog_compiler_pic_CXX
=
20728 lt_prog_compiler_can_build_shared_CXX
=no
20736 # Check to make sure the static flag actually works.
20738 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20740 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20741 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20742 $as_echo_n "(cached) " >&6
20744 lt_cv_prog_compiler_static_works_CXX
=no
20745 save_LDFLAGS
="$LDFLAGS"
20746 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20747 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20748 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20749 # The linker can only warn and ignore the option if not recognized
20750 # So say no if there are warnings
20751 if test -s conftest.err
; then
20752 # Append any errors to the config.log.
20753 cat conftest.err
1>&5
20754 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20755 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20756 if diff conftest.exp conftest.er2
>/dev
/null
; then
20757 lt_cv_prog_compiler_static_works_CXX
=yes
20760 lt_cv_prog_compiler_static_works_CXX
=yes
20764 LDFLAGS
="$save_LDFLAGS"
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20768 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20770 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20773 lt_prog_compiler_static_CXX
=
20779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20780 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20781 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20782 $as_echo_n "(cached) " >&6
20784 lt_cv_prog_compiler_c_o_CXX
=no
20785 $RM -r conftest
2>/dev
/null
20789 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20791 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20792 # Insert the option either (1) after the last *FLAGS variable, or
20793 # (2) before a word containing "conftest.", or (3) at the end.
20794 # Note that $ac_compile itself does not contain backslashes and begins
20795 # with a dollar sign (not a hyphen), so the echo should work correctly.
20796 lt_compile
=`echo "$ac_compile" | $SED \
20797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20799 -e 's:$: $lt_compiler_flag:'`
20800 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20801 (eval "$lt_compile" 2>out
/conftest.err
)
20803 cat out
/conftest.err
>&5
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20807 # The compiler can only warn and ignore the option if not recognized
20808 # So say no if there are warnings
20809 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20810 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20811 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20812 lt_cv_prog_compiler_c_o_CXX
=yes
20817 # SGI C++ compiler will create directory out/ii_files/ for
20818 # template instantiation
20819 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20820 $RM out
/* && rmdir out
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20827 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20832 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20833 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20834 $as_echo_n "(cached) " >&6
20836 lt_cv_prog_compiler_c_o_CXX
=no
20837 $RM -r conftest
2>/dev
/null
20841 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20843 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20844 # Insert the option either (1) after the last *FLAGS variable, or
20845 # (2) before a word containing "conftest.", or (3) at the end.
20846 # Note that $ac_compile itself does not contain backslashes and begins
20847 # with a dollar sign (not a hyphen), so the echo should work correctly.
20848 lt_compile
=`echo "$ac_compile" | $SED \
20849 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20851 -e 's:$: $lt_compiler_flag:'`
20852 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20853 (eval "$lt_compile" 2>out
/conftest.err
)
20855 cat out
/conftest.err
>&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20859 # The compiler can only warn and ignore the option if not recognized
20860 # So say no if there are warnings
20861 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20862 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20863 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20864 lt_cv_prog_compiler_c_o_CXX
=yes
20869 # SGI C++ compiler will create directory out/ii_files/ for
20870 # template instantiation
20871 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20872 $RM out
/* && rmdir out
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20879 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20884 hard_links
="nottested"
20885 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20886 # do not overwrite the value of need_locks provided by the user
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20888 $as_echo_n "checking if we can lock with hard links... " >&6; }
20891 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20893 ln conftest.a conftest.b
2>&5 || hard_links
=no
20894 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20896 $as_echo "$hard_links" >&6; }
20897 if test "$hard_links" = no
; then
20898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20899 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20909 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20911 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20914 # If we're using GNU nm, then we don't want the "-C" option.
20915 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20916 # Also, AIX nm treats weak defined symbols like other global defined
20917 # symbols, whereas GNU nm marks them as "W".
20918 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20919 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'
20921 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'
20925 export_symbols_cmds_CXX
="$ltdll_cmds"
20927 cygwin
* | mingw
* | cegcc
*)
20928 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'
20931 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20934 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20937 $as_echo "$ld_shlibs_CXX" >&6; }
20938 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20940 with_gnu_ld_CXX
=$with_gnu_ld
20948 # Do we need to explicitly link libc?
20950 case "x$archive_cmds_need_lc_CXX" in
20952 # Assume -lc should be added
20953 archive_cmds_need_lc_CXX
=yes
20955 if test "$enable_shared" = yes && test "$GCC" = yes; then
20956 case $archive_cmds_CXX in
20958 # FIXME: we may have to deal with multi-command sequences.
20961 # Test whether the compiler implicitly links with -lc since on some
20962 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20963 # to ld, don't add -lc before -lgcc.
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20965 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20966 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20967 $as_echo_n "(cached) " >&6
20970 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20973 (eval $ac_compile) 2>&5
20975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20976 test $ac_status = 0; } 2>conftest.err
; then
20979 libobjs
=conftest.
$ac_objext
20981 wl
=$lt_prog_compiler_wl_CXX
20982 pic_flag
=$lt_prog_compiler_pic_CXX
20988 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20989 allow_undefined_flag_CXX
=
20990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20991 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20994 test $ac_status = 0; }
20996 lt_cv_archive_cmds_need_lc_CXX
=no
20998 lt_cv_archive_cmds_need_lc_CXX
=yes
21000 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
21002 cat conftest.err
1>&5
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21008 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21009 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21080 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21082 library_names_spec
=
21083 libname_spec
='lib$name'
21087 postuninstall_cmds
=
21091 shlibpath_overrides_runpath
=unknown
21093 dynamic_linker
="$host_os ld.so"
21094 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21095 need_lib_prefix
=unknown
21096 hardcode_into_libs
=no
21098 # when you set need_version to no, make sure it does not cause -set_version
21099 # flags to be left without arguments
21100 need_version
=unknown
21105 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21106 shlibpath_var
=LIBPATH
21108 # AIX 3 has no versioning support, so we append a major version to the name.
21109 soname_spec
='${libname}${release}${shared_ext}$major'
21116 hardcode_into_libs
=yes
21117 if test "$host_cpu" = ia64
; then
21118 # AIX 5 supports IA64
21119 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21120 shlibpath_var
=LD_LIBRARY_PATH
21122 # With GCC up to 2.95.x, collect2 would create an import file
21123 # for dependence libraries. The import file would start with
21124 # the line `#! .'. This would cause the generated library to
21125 # depend on `.', always an invalid library. This was fixed in
21126 # development snapshots of GCC prior to 3.0.
21128 aix4 | aix4.
[01] | aix4.
[01].
*)
21129 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21131 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21134 can_build_shared
=no
21138 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21139 # soname into executable. Probably we can add versioning support to
21140 # collect2, so additional links can be useful in future.
21141 if test "$aix_use_runtimelinking" = yes; then
21142 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21143 # instead of lib<name>.a to let people know that these are not
21144 # typical AIX shared libraries.
21145 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21147 # We preserve .a as extension for shared libraries through AIX4.2
21148 # and later when we are not doing run time linking.
21149 library_names_spec
='${libname}${release}.a $libname.a'
21150 soname_spec
='${libname}${release}${shared_ext}$major'
21152 shlibpath_var
=LIBPATH
21159 # Since July 2007 AmigaOS4 officially supports .so libraries.
21160 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21161 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21164 library_names_spec
='$libname.ixlibrary $libname.a'
21165 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21166 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'
21172 library_names_spec
='${libname}${shared_ext}'
21173 dynamic_linker
="$host_os ld.so"
21174 shlibpath_var
=LIBRARY_PATH
21180 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21181 soname_spec
='${libname}${release}${shared_ext}$major'
21182 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21183 shlibpath_var
=LD_LIBRARY_PATH
21184 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21185 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21186 # the default ld.so.conf also contains /usr/contrib/lib and
21187 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21188 # libtool to hard-code these into programs
21191 cygwin
* | mingw
* | pw32
* | cegcc
*)
21192 version_type
=windows
21197 case $GCC,$host_os in
21198 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21199 library_names_spec
='$libname.dll.a'
21200 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21201 postinstall_cmds
='base_file=`basename \${file}`~
21202 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21203 dldir=$destdir/`dirname \$dlpath`~
21204 test -d \$dldir || mkdir -p \$dldir~
21205 $install_prog $dir/$dlname \$dldir/$dlname~
21206 chmod a+x \$dldir/$dlname~
21207 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21208 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21210 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21211 dlpath=$dir/\$dldll~
21213 shlibpath_overrides_runpath
=yes
21217 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21218 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21222 # MinGW DLLs use traditional 'lib' prefix
21223 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21226 # pw32 DLLs use 'pw' prefix rather than 'lib'
21227 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21233 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21236 dynamic_linker
='Win32 ld.exe'
21237 # FIXME: first we should search . and the directory the executable is in
21241 darwin
* | rhapsody
*)
21242 dynamic_linker
="$host_os dyld"
21243 version_type
=darwin
21246 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21247 soname_spec
='${libname}${release}${major}$shared_ext'
21248 shlibpath_overrides_runpath
=yes
21249 shlibpath_var
=DYLD_LIBRARY_PATH
21250 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21252 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21259 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21260 soname_spec
='${libname}${release}${shared_ext}$major'
21261 shlibpath_var
=LD_LIBRARY_PATH
21264 freebsd
* | dragonfly
*)
21265 # DragonFly does not have aout. When/if they implement a new
21266 # versioning mechanism, adjust this.
21267 if test -x /usr
/bin
/objformat
; then
21268 objformat
=`/usr/bin/objformat`
21271 freebsd
[23].
*) objformat
=aout
;;
21272 *) objformat
=elf
;;
21275 version_type
=freebsd-
$objformat
21276 case $version_type in
21278 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21283 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21287 shlibpath_var
=LD_LIBRARY_PATH
21290 shlibpath_overrides_runpath
=yes
21292 freebsd3.
[01]* | freebsdelf3.
[01]*)
21293 shlibpath_overrides_runpath
=yes
21294 hardcode_into_libs
=yes
21296 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21297 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21298 shlibpath_overrides_runpath
=no
21299 hardcode_into_libs
=yes
21301 *) # from 4.6 on, and DragonFly
21302 shlibpath_overrides_runpath
=yes
21303 hardcode_into_libs
=yes
21312 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21313 soname_spec
='${libname}${release}${shared_ext}$major'
21314 shlibpath_var
=LD_LIBRARY_PATH
21315 hardcode_into_libs
=yes
21322 dynamic_linker
="$host_os runtime_loader"
21323 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21324 soname_spec
='${libname}${release}${shared_ext}$major'
21325 shlibpath_var
=LIBRARY_PATH
21326 shlibpath_overrides_runpath
=yes
21327 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21328 hardcode_into_libs
=yes
21331 hpux9
* | hpux10
* | hpux11
*)
21332 # Give a soname corresponding to the major version so that dld.sl refuses to
21333 # link against other versions.
21340 hardcode_into_libs
=yes
21341 dynamic_linker
="$host_os dld.so"
21342 shlibpath_var
=LD_LIBRARY_PATH
21343 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21344 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21345 soname_spec
='${libname}${release}${shared_ext}$major'
21346 if test "X$HPUX_IA64_MODE" = X32
; then
21347 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21349 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21351 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21355 hardcode_into_libs
=yes
21356 dynamic_linker
="$host_os dld.sl"
21357 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21358 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21359 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21360 soname_spec
='${libname}${release}${shared_ext}$major'
21361 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21362 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21366 dynamic_linker
="$host_os dld.sl"
21367 shlibpath_var
=SHLIB_PATH
21368 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21369 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21370 soname_spec
='${libname}${release}${shared_ext}$major'
21373 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21374 postinstall_cmds
='chmod 555 $lib'
21375 # or fails outright, so override atomically:
21376 install_override_mode
=555
21383 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21384 soname_spec
='${libname}${release}${shared_ext}$major'
21385 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21386 shlibpath_var
=LD_LIBRARY_PATH
21387 shlibpath_overrides_runpath
=no
21388 hardcode_into_libs
=yes
21391 irix5
* | irix6
* | nonstopux
*)
21393 nonstopux
*) version_type
=nonstopux
;;
21395 if test "$lt_cv_prog_gnu_ld" = yes; then
21403 soname_spec
='${libname}${release}${shared_ext}$major'
21404 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21406 irix5
* | nonstopux
*)
21407 libsuff
= shlibsuff
=
21410 case $LD in # libtool.m4 will add one of these switches to LD
21411 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21412 libsuff
= shlibsuff
= libmagic
=32-bit;;
21413 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21414 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21415 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21416 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21417 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21421 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21422 shlibpath_overrides_runpath
=no
21423 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21424 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21425 hardcode_into_libs
=yes
21428 # No shared lib support for Linux oldld, aout, or coff.
21429 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21433 # This must be Linux ELF.
21434 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21438 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21439 soname_spec
='${libname}${release}${shared_ext}$major'
21440 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21441 shlibpath_var
=LD_LIBRARY_PATH
21442 shlibpath_overrides_runpath
=no
21444 # Some binutils ld are patched to set DT_RUNPATH
21445 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21446 $as_echo_n "(cached) " >&6
21448 lt_cv_shlibpath_overrides_runpath
=no
21449 save_LDFLAGS
=$LDFLAGS
21450 save_libdir
=$libdir
21451 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21452 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21454 /* end confdefs.h. */
21464 if ac_fn_cxx_try_link
"$LINENO"; then :
21465 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21466 lt_cv_shlibpath_overrides_runpath
=yes
21469 rm -f core conftest.err conftest.
$ac_objext \
21470 conftest
$ac_exeext conftest.
$ac_ext
21471 LDFLAGS
=$save_LDFLAGS
21472 libdir
=$save_libdir
21476 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21478 # This implies no fast_install, which is unacceptable.
21479 # Some rework will be needed to allow for fast_install
21480 # before this can be enabled.
21481 hardcode_into_libs
=yes
21483 # Append ld.so.conf contents to the search path
21484 if test -f /etc
/ld.so.conf
; then
21485 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' ' '`
21486 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21489 # We used to test for /lib/ld.so.1 and disable shared libraries on
21490 # powerpc, because MkLinux only supported shared libraries with the
21491 # GNU dynamic linker. Since this was broken with cross compilers,
21492 # most powerpc-linux boxes support dynamic linking these days and
21493 # people can always --disable-shared, the test was removed, and we
21494 # assume the GNU/Linux dynamic linker is in use.
21495 dynamic_linker
='GNU/Linux ld.so'
21502 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21503 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21504 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21505 dynamic_linker
='NetBSD (a.out) ld.so'
21507 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21508 soname_spec
='${libname}${release}${shared_ext}$major'
21509 dynamic_linker
='NetBSD ld.elf_so'
21511 shlibpath_var
=LD_LIBRARY_PATH
21512 shlibpath_overrides_runpath
=yes
21513 hardcode_into_libs
=yes
21518 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21519 shlibpath_var
=LD_LIBRARY_PATH
21520 shlibpath_overrides_runpath
=yes
21527 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21528 soname_spec
='${libname}${release}${shared_ext}$major'
21529 shlibpath_var
=LD_LIBRARY_PATH
21530 shlibpath_overrides_runpath
=no
21531 hardcode_into_libs
=yes
21532 dynamic_linker
='ldqnx.so'
21537 sys_lib_dlsearch_path_spec
="/usr/lib"
21539 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21541 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21542 *) need_version
=no
;;
21544 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21545 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21546 shlibpath_var
=LD_LIBRARY_PATH
21547 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21549 openbsd2.
[89] | openbsd2.
[89].
*)
21550 shlibpath_overrides_runpath
=no
21553 shlibpath_overrides_runpath
=yes
21557 shlibpath_overrides_runpath
=yes
21562 libname_spec
='$name'
21565 library_names_spec
='$libname${shared_ext} $libname.a'
21566 dynamic_linker
='OS/2 ld.exe'
21567 shlibpath_var
=LIBPATH
21570 osf3
* | osf4
* | osf5
*)
21574 soname_spec
='${libname}${release}${shared_ext}$major'
21575 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21576 shlibpath_var
=LD_LIBRARY_PATH
21577 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21578 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21589 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21590 soname_spec
='${libname}${release}${shared_ext}$major'
21591 shlibpath_var
=LD_LIBRARY_PATH
21592 shlibpath_overrides_runpath
=yes
21593 hardcode_into_libs
=yes
21594 # ldd complains unless libraries are executable
21595 postinstall_cmds
='chmod +x $lib'
21600 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21601 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21602 shlibpath_var
=LD_LIBRARY_PATH
21603 shlibpath_overrides_runpath
=yes
21604 if test "$with_gnu_ld" = yes; then
21612 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21613 soname_spec
='${libname}${release}${shared_ext}$major'
21614 shlibpath_var
=LD_LIBRARY_PATH
21615 case $host_vendor in
21617 shlibpath_overrides_runpath
=no
21619 runpath_var
=LD_RUN_PATH
21627 shlibpath_overrides_runpath
=no
21628 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21634 if test -d /usr
/nec
;then
21636 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21637 soname_spec
='$libname${shared_ext}.$major'
21638 shlibpath_var
=LD_LIBRARY_PATH
21642 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21643 version_type
=freebsd-elf
21646 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21647 soname_spec
='${libname}${release}${shared_ext}$major'
21648 shlibpath_var
=LD_LIBRARY_PATH
21649 shlibpath_overrides_runpath
=yes
21650 hardcode_into_libs
=yes
21651 if test "$with_gnu_ld" = yes; then
21652 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21654 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21657 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21661 sys_lib_dlsearch_path_spec
='/usr/lib'
21665 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21669 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21670 shlibpath_var
=LD_LIBRARY_PATH
21671 shlibpath_overrides_runpath
=no
21672 hardcode_into_libs
=yes
21677 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21678 soname_spec
='${libname}${release}${shared_ext}$major'
21679 shlibpath_var
=LD_LIBRARY_PATH
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21687 $as_echo "$dynamic_linker" >&6; }
21688 test "$dynamic_linker" = no
&& can_build_shared
=no
21690 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21691 if test "$GCC" = yes; then
21692 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21695 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21696 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21698 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21699 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21740 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21741 hardcode_action_CXX
=
21742 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21743 test -n "$runpath_var_CXX" ||
21744 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21746 # We can hardcode non-existent directories.
21747 if test "$hardcode_direct_CXX" != no
&&
21748 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21749 # have to relink, otherwise we might link with an installed library
21750 # when we should be linking with a yet-to-be-installed one
21751 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21752 test "$hardcode_minus_L_CXX" != no
; then
21753 # Linking always hardcodes the temporary library directory.
21754 hardcode_action_CXX
=relink
21756 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21757 hardcode_action_CXX
=immediate
21760 # We cannot hardcode anything, or else we can only hardcode existing
21762 hardcode_action_CXX
=unsupported
21764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21765 $as_echo "$hardcode_action_CXX" >&6; }
21767 if test "$hardcode_action_CXX" = relink ||
21768 test "$inherit_rpath_CXX" = yes; then
21769 # Fast installation is not supported
21770 enable_fast_install
=no
21771 elif test "$shlibpath_overrides_runpath" = yes ||
21772 test "$enable_shared" = no
; then
21773 # Fast installation is not necessary
21774 enable_fast_install
=needless
21783 fi # test -n "$compiler"
21789 with_gnu_ld
=$lt_save_with_gnu_ld
21790 lt_cv_path_LDCXX
=$lt_cv_path_LD
21791 lt_cv_path_LD
=$lt_save_path_LD
21792 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21793 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21794 fi # test "$_lt_caught_CXX_error" != yes
21797 ac_cpp
='$CXXCPP $CPPFLAGS'
21798 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21799 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21800 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21817 # Only expand once:
21823 # Identify the assembler which will work hand-in-glove with the newly
21824 # built GCC, so that we can examine its features. This is the assembler
21825 # which will be driven by the driver program.
21827 # If build != host, and we aren't building gas in-tree, we identify a
21828 # build->target assembler and hope that it will have the same features
21829 # as the host->target assembler we'll be using.
21830 gcc_cv_gas_major_version
=
21831 gcc_cv_gas_minor_version
=
21832 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21834 if test "${gcc_cv_as+set}" = set; then :
21838 if test -x "$DEFAULT_ASSEMBLER"; then
21839 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21840 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21841 && test -f ..
/gas
/Makefile \
21842 && test x
$build = x
$host; then
21843 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21844 elif test -x as
$build_exeext; then
21845 # Build using assembler in the current directory.
21846 gcc_cv_as
=.
/as
$build_exeext
21847 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21848 gcc_cv_as
="$AS_FOR_TARGET"
21850 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21851 set dummy
$AS_FOR_TARGET; ac_word
=$2
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21853 $as_echo_n "checking for $ac_word... " >&6; }
21854 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21855 $as_echo_n "(cached) " >&6
21859 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21863 for as_dir
in $PATH
21866 test -z "$as_dir" && as_dir
=.
21867 for ac_exec_ext
in '' $ac_executable_extensions; do
21868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21869 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21880 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21881 if test -n "$gcc_cv_as"; then
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21883 $as_echo "$gcc_cv_as" >&6; }
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21886 $as_echo "no" >&6; }
21893 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21895 case "$ORIGINAL_AS_FOR_TARGET" in
21896 .
/as | .
/as
$build_exeext) ;;
21897 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21902 $as_echo_n "checking what assembler to use... " >&6; }
21903 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21904 # Single tree build which includes gas. We want to prefer it
21905 # over whatever linker top-level may have detected, since
21906 # we'll use what we're building after installation anyway.
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21908 $as_echo "newly built gas" >&6; }
21910 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21911 for f
in $gcc_cv_as_bfd_srcdir/configure \
21912 $gcc_cv_as_gas_srcdir/configure \
21913 $gcc_cv_as_gas_srcdir/configure.ac \
21914 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21915 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21916 if test x
$gcc_cv_gas_version != x
; then
21920 case $gcc_cv_gas_version in
21922 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21924 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21925 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21926 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21927 case $gcc_cv_gas_patch_version in
21928 "") gcc_cv_gas_patch_version
="0" ;;
21930 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21931 + $gcc_cv_gas_minor_version \) \* 1000 \
21932 + $gcc_cv_gas_patch_version`
21934 in_tree_gas_is_elf
=no
21935 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21936 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21937 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21939 in_tree_gas_is_elf
=yes
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21943 $as_echo "$gcc_cv_as" >&6; }
21948 # Check whether --enable-ld was given.
21949 if test "${enable_ld+set}" = set; then :
21950 enableval
=$enable_ld; case "${enableval}" in
21958 install_gold_as_default
=no
21959 # Check whether --enable-gold was given.
21960 if test "${enable_gold+set}" = set; then :
21961 enableval
=$enable_gold; case "${enableval}" in
21963 install_gold_as_default
=yes
21966 if test x
${default_ld} != x
; then
21967 install_gold_as_default
=yes
21973 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21979 # Identify the linker which will work hand-in-glove with the newly
21980 # built GCC, so that we can examine its features. This is the linker
21981 # which will be driven by the driver program.
21983 # If build != host, and we aren't building gas in-tree, we identify a
21984 # build->target linker and hope that it will have the same features
21985 # as the host->target linker we'll be using.
21986 gcc_cv_gld_major_version
=
21987 gcc_cv_gld_minor_version
=
21988 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21989 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21990 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21992 if test "${gcc_cv_ld+set}" = set; then :
21996 if test -x "$DEFAULT_LINKER"; then
21997 gcc_cv_ld
="$DEFAULT_LINKER"
21998 elif test $install_gold_as_default = yes \
21999 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22000 && test -f ..
/gold
/Makefile \
22001 && test x
$build = x
$host; then
22002 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
22003 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22004 && test -f ..
/ld
/Makefile \
22005 && test x
$build = x
$host; then
22006 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
22007 elif test -x collect-ld
$build_exeext; then
22008 # Build using linker in the current directory.
22009 gcc_cv_ld
=.
/collect-ld
$build_exeext
22010 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
22011 gcc_cv_ld
="$LD_FOR_TARGET"
22013 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22014 set dummy
$LD_FOR_TARGET; ac_word
=$2
22015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22016 $as_echo_n "checking for $ac_word... " >&6; }
22017 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22018 $as_echo_n "(cached) " >&6
22022 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
22025 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22026 for as_dir
in $PATH
22029 test -z "$as_dir" && as_dir
=.
22030 for ac_exec_ext
in '' $ac_executable_extensions; do
22031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22032 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
22033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22043 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22044 if test -n "$gcc_cv_ld"; then
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22046 $as_echo "$gcc_cv_ld" >&6; }
22048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22049 $as_echo "no" >&6; }
22056 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22057 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22058 # if the PLUGIN_LD is set ld-new, just have it as ld
22059 # as that is the installed named.
22060 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22061 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22062 PLUGIN_LD_SUFFIX
=ld
22065 # Check whether --with-plugin-ld was given.
22066 if test "${with_plugin_ld+set}" = set; then :
22067 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22068 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22069 PLUGIN_LD_SUFFIX
="$withval"
22075 cat >>confdefs.h
<<_ACEOF
22076 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22080 # Check to see if we are using gold instead of ld
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22082 $as_echo_n "checking whether we are using gold... " >&6; }
22084 if test x
$gcc_cv_ld != x
; then
22085 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22086 |
grep "GNU gold" > /dev
/null
; then
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22091 $as_echo "$ld_is_gold" >&6; }
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22094 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22095 # Check to see if default ld is not gold, but gold is
22096 # available and has support for split stack. If gcc was configured
22097 # with gold then no checking is done.
22099 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22101 # For platforms other than powerpc64*, enable as appropriate.
22103 gold_non_default
=no
22104 ld_gold
=`which ${gcc_cv_ld}.gold`
22105 # Make sure this gold has minimal split stack support
22106 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22107 ld_vers
=`$ld_gold --version | sed 1q`
22108 gold_vers
=`echo $ld_vers | sed -n \
22109 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22111 # check that the gold version contains the complete split stack support
22112 # on powerpc64 big and little endian
22114 case "$gold_vers" in
22115 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22117 *) gold_non_default
=no
22123 if test $gold_non_default = yes; then
22125 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22130 $as_echo "$gold_non_default" >&6; }
22132 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22134 case "$ORIGINAL_LD_FOR_TARGET" in
22135 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22136 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22141 $as_echo_n "checking what linker to use... " >&6; }
22142 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22143 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22144 # Single tree build which includes ld. We want to prefer it
22145 # over whatever linker top-level may have detected, since
22146 # we'll use what we're building after installation anyway.
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22148 $as_echo "newly built ld" >&6; }
22150 in_tree_ld_is_elf
=no
22151 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22152 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22153 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22154 in_tree_ld_is_elf
=yes
22155 elif test "$ld_is_gold" = yes; then
22156 in_tree_ld_is_elf
=yes
22158 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
22160 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22161 if test x
$gcc_cv_gld_version != x
; then
22165 case $gcc_cv_gld_version in
22167 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22169 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22170 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22171 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22172 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22175 $as_echo "$gcc_cv_ld" >&6; }
22177 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22178 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22179 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22185 # Figure out what nm we will be using.
22186 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22187 if test "${gcc_cv_nm+set}" = set; then :
22191 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22192 && test -f ..
/binutils
/Makefile \
22193 && test x
$build = x
$host; then
22194 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22195 elif test -x nm
$build_exeext; then
22196 gcc_cv_nm
=.
/nm
$build_exeext
22197 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22198 gcc_cv_nm
="$NM_FOR_TARGET"
22200 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22201 set dummy
$NM_FOR_TARGET; ac_word
=$2
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22203 $as_echo_n "checking for $ac_word... " >&6; }
22204 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22205 $as_echo_n "(cached) " >&6
22209 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22213 for as_dir
in $PATH
22216 test -z "$as_dir" && as_dir
=.
22217 for ac_exec_ext
in '' $ac_executable_extensions; do
22218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22219 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22230 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22231 if test -n "$gcc_cv_nm"; then
22232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22233 $as_echo "$gcc_cv_nm" >&6; }
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22236 $as_echo "no" >&6; }
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22244 $as_echo_n "checking what nm to use... " >&6; }
22245 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22246 # Single tree build which includes binutils.
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22248 $as_echo "newly built nm" >&6; }
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22252 $as_echo "$gcc_cv_nm" >&6; }
22256 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22258 case "$ORIGINAL_NM_FOR_TARGET" in
22259 .
/nm | .
/nm
$build_exeext) ;;
22260 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22265 # Figure out what objdump we will be using.
22266 if test "${gcc_cv_objdump+set}" = set; then :
22270 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22271 && test -f ..
/binutils
/Makefile \
22272 && test x
$build = x
$host; then
22273 # Single tree build which includes binutils.
22274 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22275 elif test -x objdump
$build_exeext; then
22276 gcc_cv_objdump
=.
/objdump
$build_exeext
22277 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22278 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22280 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22281 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22283 $as_echo_n "checking for $ac_word... " >&6; }
22284 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22285 $as_echo_n "(cached) " >&6
22287 case $gcc_cv_objdump in
22289 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22293 for as_dir
in $PATH
22296 test -z "$as_dir" && as_dir
=.
22297 for ac_exec_ext
in '' $ac_executable_extensions; do
22298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22299 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22310 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22311 if test -n "$gcc_cv_objdump"; then
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22313 $as_echo "$gcc_cv_objdump" >&6; }
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22316 $as_echo "no" >&6; }
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22324 $as_echo_n "checking what objdump to use... " >&6; }
22325 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22326 # Single tree build which includes binutils.
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22328 $as_echo "newly built objdump" >&6; }
22329 elif test x
$gcc_cv_objdump = x
; then
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22331 $as_echo "not found" >&6; }
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22334 $as_echo "$gcc_cv_objdump" >&6; }
22337 # Figure out what readelf we will be using.
22338 if test "${gcc_cv_readelf+set}" = set; then :
22342 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22343 && test -f ..
/binutils
/Makefile \
22344 && test x
$build = x
$host; then
22345 # Single tree build which includes binutils.
22346 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22347 elif test -x readelf
$build_exeext; then
22348 gcc_cv_readelf
=.
/readelf
$build_exeext
22349 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22350 gcc_cv_readelf
="$READELF_FOR_TARGET"
22352 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22353 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22355 $as_echo_n "checking for $ac_word... " >&6; }
22356 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22357 $as_echo_n "(cached) " >&6
22359 case $gcc_cv_readelf in
22361 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22365 for as_dir
in $PATH
22368 test -z "$as_dir" && as_dir
=.
22369 for ac_exec_ext
in '' $ac_executable_extensions; do
22370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22371 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22382 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22383 if test -n "$gcc_cv_readelf"; then
22384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22385 $as_echo "$gcc_cv_readelf" >&6; }
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22388 $as_echo "no" >&6; }
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22396 $as_echo_n "checking what readelf to use... " >&6; }
22397 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22398 # Single tree build which includes binutils.
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22400 $as_echo "newly built readelf" >&6; }
22401 elif test x
$gcc_cv_readelf = x
; then
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22403 $as_echo "not found" >&6; }
22405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22406 $as_echo "$gcc_cv_readelf" >&6; }
22409 # Figure out what assembler alignment features are present.
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22411 $as_echo_n "checking assembler flags... " >&6; }
22412 if test "${gcc_cv_as_flags+set}" = set; then :
22413 $as_echo_n "(cached) " >&6
22416 i
[34567]86-*-linux*)
22417 gcc_cv_as_flags
=--32
22419 x86_64-
*-linux-gnux32)
22420 gcc_cv_as_flags
=--x32
22423 gcc_cv_as_flags
=--64
22425 powerpc
*-*-darwin*)
22426 gcc_cv_as_flags
="-arch ppc"
22429 gcc_cv_as_flags
=" "
22433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22434 $as_echo "$gcc_cv_as_flags" >&6; }
22436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22437 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22438 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22439 $as_echo_n "(cached) " >&6
22441 gcc_cv_as_balign_and_p2align
=no
22442 if test $in_tree_gas = yes; then
22443 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22444 then gcc_cv_as_balign_and_p2align
=yes
22446 elif test x
$gcc_cv_as != x
; then
22447 $as_echo '.balign 4
22448 .p2align 2' > conftest.s
22449 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22451 (eval $ac_try) 2>&5
22453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22454 test $ac_status = 0; }; }
22456 gcc_cv_as_balign_and_p2align
=yes
22458 echo "configure: failed program was" >&5
22461 rm -f conftest.o conftest.s
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22465 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22466 if test $gcc_cv_as_balign_and_p2align = yes; then
22468 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22473 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22474 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22475 $as_echo_n "(cached) " >&6
22477 gcc_cv_as_max_skip_p2align
=no
22478 if test $in_tree_gas = yes; then
22479 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22480 then gcc_cv_as_max_skip_p2align
=yes
22482 elif test x
$gcc_cv_as != x
; then
22483 $as_echo '.p2align 4,,7' > conftest.s
22484 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22486 (eval $ac_try) 2>&5
22488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22489 test $ac_status = 0; }; }
22491 gcc_cv_as_max_skip_p2align
=yes
22493 echo "configure: failed program was" >&5
22496 rm -f conftest.o conftest.s
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22500 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22501 if test $gcc_cv_as_max_skip_p2align = yes; then
22503 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22508 $as_echo_n "checking assembler for .literal16... " >&6; }
22509 if test "${gcc_cv_as_literal16+set}" = set; then :
22510 $as_echo_n "(cached) " >&6
22512 gcc_cv_as_literal16
=no
22513 if test $in_tree_gas = yes; then
22514 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22515 then gcc_cv_as_literal16
=yes
22517 elif test x
$gcc_cv_as != x
; then
22518 $as_echo '.literal16' > conftest.s
22519 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22521 (eval $ac_try) 2>&5
22523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22524 test $ac_status = 0; }; }
22526 gcc_cv_as_literal16
=yes
22528 echo "configure: failed program was" >&5
22531 rm -f conftest.o conftest.s
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22535 $as_echo "$gcc_cv_as_literal16" >&6; }
22536 if test $gcc_cv_as_literal16 = yes; then
22538 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22543 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22544 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22545 $as_echo_n "(cached) " >&6
22547 gcc_cv_as_subsection_m1
=no
22548 if test $in_tree_gas = yes; then
22549 if test $in_tree_gas_is_elf = yes \
22550 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22551 then gcc_cv_as_subsection_m1
=yes
22553 elif test x
$gcc_cv_as != x
; then
22554 $as_echo 'conftest_label1: .word 0
22556 conftest_label2: .word 0
22557 .previous' > conftest.s
22558 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22560 (eval $ac_try) 2>&5
22562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22563 test $ac_status = 0; }; }
22565 if test x
$gcc_cv_nm != x
; then
22566 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22567 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22568 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22570 else gcc_cv_as_subsection_m1
=yes
22572 rm -f conftest.nm1 conftest.nm2
22575 echo "configure: failed program was" >&5
22578 rm -f conftest.o conftest.s
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22582 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22583 if test $gcc_cv_as_subsection_m1 = yes; then
22585 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22590 $as_echo_n "checking assembler for .weak... " >&6; }
22591 if test "${gcc_cv_as_weak+set}" = set; then :
22592 $as_echo_n "(cached) " >&6
22595 if test $in_tree_gas = yes; then
22596 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22597 then gcc_cv_as_weak
=yes
22599 elif test x
$gcc_cv_as != x
; then
22600 $as_echo ' .weak foobar' > conftest.s
22601 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22603 (eval $ac_try) 2>&5
22605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22606 test $ac_status = 0; }; }
22610 echo "configure: failed program was" >&5
22613 rm -f conftest.o conftest.s
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22617 $as_echo "$gcc_cv_as_weak" >&6; }
22618 if test $gcc_cv_as_weak = yes; then
22620 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22625 $as_echo_n "checking assembler for .weakref... " >&6; }
22626 if test "${gcc_cv_as_weakref+set}" = set; then :
22627 $as_echo_n "(cached) " >&6
22629 gcc_cv_as_weakref
=no
22630 if test $in_tree_gas = yes; then
22631 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22632 then gcc_cv_as_weakref
=yes
22634 elif test x
$gcc_cv_as != x
; then
22635 $as_echo ' .weakref foobar, barfnot' > conftest.s
22636 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22638 (eval $ac_try) 2>&5
22640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22641 test $ac_status = 0; }; }
22643 gcc_cv_as_weakref
=yes
22645 echo "configure: failed program was" >&5
22648 rm -f conftest.o conftest.s
22651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22652 $as_echo "$gcc_cv_as_weakref" >&6; }
22653 if test $gcc_cv_as_weakref = yes; then
22655 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22660 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22661 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22662 $as_echo_n "(cached) " >&6
22664 gcc_cv_as_nsubspa_comdat
=no
22665 if test $in_tree_gas = yes; then
22666 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22667 then gcc_cv_as_nsubspa_comdat
=yes
22669 elif test x
$gcc_cv_as != x
; then
22670 $as_echo ' .SPACE $TEXT$
22671 .NSUBSPA $CODE$,COMDAT' > conftest.s
22672 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22674 (eval $ac_try) 2>&5
22676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22677 test $ac_status = 0; }; }
22679 gcc_cv_as_nsubspa_comdat
=yes
22681 echo "configure: failed program was" >&5
22684 rm -f conftest.o conftest.s
22687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22688 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22689 if test $gcc_cv_as_nsubspa_comdat = yes; then
22691 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22695 # .hidden needs to be supported in both the assembler and the linker,
22696 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22697 # This is irritatingly difficult to feature test for; we have to check the
22698 # date string after the version number. If we've got an in-tree
22699 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22701 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22703 $as_echo_n "checking assembler for .hidden... " >&6; }
22704 if test "${gcc_cv_as_hidden+set}" = set; then :
22705 $as_echo_n "(cached) " >&6
22707 gcc_cv_as_hidden
=no
22708 if test $in_tree_gas = yes; then
22709 if test $in_tree_gas_is_elf = yes \
22710 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22711 then gcc_cv_as_hidden
=yes
22713 elif test x
$gcc_cv_as != x
; then
22714 $as_echo ' .hidden foobar
22715 foobar:' > conftest.s
22716 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22718 (eval $ac_try) 2>&5
22720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22721 test $ac_status = 0; }; }
22723 gcc_cv_as_hidden
=yes
22725 echo "configure: failed program was" >&5
22728 rm -f conftest.o conftest.s
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22732 $as_echo "$gcc_cv_as_hidden" >&6; }
22734 case "${target}" in
22736 # Darwin as has some visibility support, though with a different syntax.
22737 gcc_cv_as_hidden
=yes
22741 # gnu_indirect_function type is an extension proposed at
22742 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22743 # selection of function implementation
22744 # Check whether --enable-gnu-indirect-function was given.
22745 if test "${enable_gnu_indirect_function+set}" = set; then :
22746 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22748 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22749 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22752 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22756 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22758 cat >>confdefs.h
<<_ACEOF
22759 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22764 if test $in_tree_ld != yes ; then
22765 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22766 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22767 if test x
"$ld_is_gold" = xyes
; then
22768 # GNU gold --version looks like this:
22770 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22772 # We extract the binutils version which is more familiar and specific
22773 # than the gold version.
22774 ld_vers
=`echo $ld_ver | sed -n \
22775 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22777 # GNU ld --version looks like this:
22779 # GNU ld (GNU Binutils) 2.21.51.20110225
22780 ld_vers
=`echo $ld_ver | sed -n \
22781 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22783 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'`
22784 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22785 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22786 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22788 case "${target}" in
22790 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22793 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22794 # /usr/ccs/bin/ld has been configured.
22795 ld_ver
=`$gcc_cv_ld -V 2>&1`
22796 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22797 ld_vers
=`echo $ld_ver | sed -n \
22798 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22799 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22800 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22808 $as_echo_n "checking linker for .hidden support... " >&6; }
22809 if test "${gcc_cv_ld_hidden+set}" = set; then :
22810 $as_echo_n "(cached) " >&6
22812 if test $in_tree_ld = yes ; then
22813 gcc_cv_ld_hidden
=no
22814 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 \
22815 && test $in_tree_ld_is_elf = yes; then
22816 gcc_cv_ld_hidden
=yes
22819 gcc_cv_ld_hidden
=yes
22820 if test x
"$ld_is_gold" = xyes
; then
22822 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22823 case "${target}" in
22824 mmix-knuth-mmixware
)
22825 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22826 gcc_cv_ld_hidden
=no
22829 if test 0"$ld_date" -lt 20020404; then
22830 if test -n "$ld_date"; then
22831 # If there was date string, but was earlier than 2002-04-04, fail
22832 gcc_cv_ld_hidden
=no
22833 elif test -z "$ld_vers"; then
22834 # If there was no date string nor ld version number, something is wrong
22835 gcc_cv_ld_hidden
=no
22837 test -z "$ld_vers_patch" && ld_vers_patch
=0
22838 if test "$ld_vers_major" -lt 2; then
22839 gcc_cv_ld_hidden
=no
22840 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22841 gcc_cv_ld_hidden
="no"
22842 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22843 gcc_cv_ld_hidden
=no
22848 case "${target}" in
22850 # Darwin ld has some visibility support.
22851 gcc_cv_ld_hidden
=yes
22853 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22854 gcc_cv_ld_hidden
=yes
22856 *-*-solaris2.1
[0-9]*)
22857 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22858 # .symbolic was only added in Solaris 9 12/02.
22859 gcc_cv_ld_hidden
=yes
22862 gcc_cv_ld_hidden
=no
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22869 $as_echo "$gcc_cv_ld_hidden" >&6; }
22870 libgcc_visibility
=no
22873 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22874 libgcc_visibility
=yes
22876 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22881 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22882 gcc_cv_ld_ro_rw_mix
=unknown
22883 if test $in_tree_ld = yes ; then
22884 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 \
22885 && test $in_tree_ld_is_elf = yes; then
22886 gcc_cv_ld_ro_rw_mix
=read-write
22888 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22889 echo '.section myfoosect, "a"' > conftest1.s
22890 echo '.section myfoosect, "aw"' > conftest2.s
22891 echo '.byte 1' >> conftest2.s
22892 echo '.section myfoosect, "a"' > conftest3.s
22893 echo '.byte 0' >> conftest3.s
22894 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22895 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22896 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22897 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22898 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22899 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22900 | sed -e '/myfoosect/!d' -e N`
22901 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22902 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22903 gcc_cv_ld_ro_rw_mix
=read-only
22905 gcc_cv_ld_ro_rw_mix
=read-write
22909 rm -f conftest.
* conftest
[123].
*
22911 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22913 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22917 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22919 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22920 case "${target}" in
22923 # Solaris 2 ld -V output looks like this for a regular version:
22925 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22927 # but test versions add stuff at the end:
22929 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22931 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22932 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22933 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22934 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22935 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22936 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22942 # Check whether --enable-initfini-array was given.
22943 if test "${enable_initfini_array+set}" = set; then :
22944 enableval
=$enable_initfini_array;
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22948 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22949 if test "${gcc_cv_initfini_array+set}" = set; then :
22950 $as_echo_n "(cached) " >&6
22952 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22953 case "${target}" in
22955 if test "$cross_compiling" = yes; then :
22956 gcc_cv_initfini_array
=no
22958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22959 /* end confdefs.h. */
22962 #error Not an ELF OS
22964 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22965 if it can be used. */
22967 int main (void) { return x; }
22968 int foo (void) { x = 0; }
22969 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22972 if ac_fn_cxx_try_run
"$LINENO"; then :
22973 gcc_cv_initfini_array
=yes
22975 gcc_cv_initfini_array
=no
22977 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22978 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22982 gcc_cv_initfini_array
=no
22983 if test $in_tree_ld = yes ; then
22984 if test "$gcc_cv_gld_major_version" -eq 2 \
22985 -a "$gcc_cv_gld_minor_version" -ge 22 \
22986 -o "$gcc_cv_gld_major_version" -gt 2 \
22987 && test $in_tree_ld_is_elf = yes; then
22988 gcc_cv_initfini_array
=yes
22990 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22991 case $target:$gas in
22994 sh_type
='%progbits'
22996 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
22998 sh_type
='@progbits'
23000 sparc
*-*-solaris2*:no
)
23002 sh_type
='#progbits'
23006 case "$target:$gnu_ld" in
23008 cat > conftest.s
<<EOF
23009 .section .dtors,$sh_flags,$sh_type
23011 .byte 'A', 'A', 'A', 'A'
23012 .section .ctors,$sh_flags,$sh_type
23014 .byte 'B', 'B', 'B', 'B'
23015 .section .fini_array.65530,$sh_flags,$sh_type
23017 .byte 'C', 'C', 'C', 'C'
23018 .section .init_array.65530,$sh_flags,$sh_type
23020 .byte 'D', 'D', 'D', 'D'
23021 .section .dtors.64528,$sh_flags,$sh_type
23023 .byte 'E', 'E', 'E', 'E'
23024 .section .ctors.64528,$sh_flags,$sh_type
23026 .byte 'F', 'F', 'F', 'F'
23027 .section .fini_array.01005,$sh_flags,$sh_type
23029 .byte 'G', 'G', 'G', 'G'
23030 .section .init_array.01005,$sh_flags,$sh_type
23032 .byte 'H', 'H', 'H', 'H'
23037 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23038 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23039 && $gcc_cv_objdump -s -j .init_array conftest \
23040 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23041 && $gcc_cv_objdump -s -j .fini_array conftest \
23042 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23043 gcc_cv_initfini_array
=yes
23047 # When Solaris ld added constructor priority support, it was
23048 # decided to only handle .init_array.N/.fini_array.N since
23049 # there was no need for backwards compatibility with
23050 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23051 # sections with correct execution order resp. to
23052 # .init_array/.fini_array, while gld merges them into
23053 # .init_array/.fini_array.
23054 cat > conftest.s
<<EOF
23055 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23057 .byte 'C', 'C', 'C', 'C'
23058 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23060 .byte 'D', 'D', 'D', 'D'
23061 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23063 .byte 'G', 'G', 'G', 'G'
23064 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23066 .byte 'H', 'H', 'H', 'H'
23071 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23072 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23073 && $gcc_cv_objdump -s -j .init_array conftest \
23074 |
grep HHHHDDDD
> /dev
/null
2>&1 \
23075 && $gcc_cv_objdump -s -j .fini_array conftest \
23076 |
grep GGGGCCCC
> /dev
/null
2>&1; then
23077 gcc_cv_initfini_array
=yes
23081 rm -f conftest conftest.
*
23083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23084 /* end confdefs.h. */
23087 # error Not an ELF OS
23089 #include <stdlib.h>
23090 #if defined __GLIBC_PREREQ
23091 # if __GLIBC_PREREQ (2, 4)
23093 # error GLIBC 2.4 required
23096 # if defined __sun__ && defined __svr4__
23097 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23099 # error The C library not known to support .init_array/.fini_array
23104 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23107 gcc_cv_initfini_array
=no
23109 rm -f conftest.err conftest.
$ac_ext;;
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23113 $as_echo_n "checking cross compile... guessing... " >&6; }
23114 gcc_cv_initfini_array
=no
23117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23118 $as_echo "$gcc_cv_initfini_array" >&6; }
23119 enable_initfini_array
=$gcc_cv_initfini_array
23124 cat >>confdefs.h
<<_ACEOF
23125 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23130 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23132 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23133 if test "${gcc_cv_as_leb128+set}" = set; then :
23134 $as_echo_n "(cached) " >&6
23136 gcc_cv_as_leb128
=no
23137 if test $in_tree_gas = yes; then
23138 if test $in_tree_gas_is_elf = yes \
23139 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23140 then gcc_cv_as_leb128
=yes
23142 elif test x
$gcc_cv_as != x
; then
23149 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23151 (eval $ac_try) 2>&5
23153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23154 test $ac_status = 0; }; }
23156 # GAS versions before 2.11 do not support uleb128,
23157 # despite appearing to.
23158 # ??? There exists an elf-specific test that will crash
23159 # the assembler. Perhaps it's better to figure out whether
23160 # arbitrary sections are supported and try the test.
23161 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23162 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23163 as_vers
=`echo $as_ver | sed -n \
23164 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23165 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23166 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23167 if test $as_major -eq 2 && test $as_minor -lt 11
23169 else gcc_cv_as_leb128
=yes
23173 echo "configure: failed program was" >&5
23176 rm -f conftest.o conftest.s
23179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23180 $as_echo "$gcc_cv_as_leb128" >&6; }
23181 if test $gcc_cv_as_leb128 = yes; then
23183 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23187 # Check if we have assembler support for unwind directives.
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23189 $as_echo_n "checking assembler for cfi directives... " >&6; }
23190 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23191 $as_echo_n "(cached) " >&6
23193 gcc_cv_as_cfi_directive
=no
23194 if test x
$gcc_cv_as != x
; then
23200 .cfi_escape 1, 2, 3, 4, 5
23201 .cfi_endproc' > conftest.s
23202 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23204 (eval $ac_try) 2>&5
23206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23207 test $ac_status = 0; }; }
23211 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23212 # read-only and read-write sections, we need to make sure that the
23213 # assembler used emits read-write .eh_frame sections.
23214 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
23215 if test "x$gcc_cv_objdump" != x
; then
23216 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23217 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
23218 gcc_cv_as_cfi_directive
=no
23221 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
23222 # On Solaris/x86, make sure that GCC and assembler agree on using
23223 # read-only .eh_frame sections for 64-bit.
23224 if test x
$gas = xyes
; then
23225 as_ix86_64_opt
="--64"
23227 as_ix86_64_opt
="-xarch=amd64"
23229 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23230 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23231 sed -e /.eh_frame
/!d
-e N | \
23232 grep READONLY
> /dev
/null
; then
23233 gcc_cv_as_cfi_directive
=yes
23235 gcc_cv_as_cfi_directive
=no
23239 gcc_cv_as_cfi_directive
=yes
23244 # no objdump, err on the side of caution
23245 gcc_cv_as_cfi_directive
=no
23248 gcc_cv_as_cfi_directive
=yes
23252 gcc_cv_as_cfi_directive
=yes
23256 echo "configure: failed program was" >&5
23259 rm -f conftest.o conftest.s
23262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23263 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23265 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23267 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23268 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23269 $as_echo_n "(cached) " >&6
23271 gcc_cv_as_cfi_advance_working
=no
23272 if test x
$gcc_cv_as != x
; then
23275 .cfi_adjust_cfa_offset 64
23277 .cfi_adjust_cfa_offset 128
23278 .cfi_endproc' > conftest.s
23279 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23281 (eval $ac_try) 2>&5
23283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23284 test $ac_status = 0; }; }
23287 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23288 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23289 gcc_cv_as_cfi_advance_working
=yes
23293 echo "configure: failed program was" >&5
23296 rm -f conftest.o conftest.s
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23300 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23303 # no objdump, err on the side of caution
23304 gcc_cv_as_cfi_advance_working
=no
23308 cat >>confdefs.h
<<_ACEOF
23309 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23310 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23316 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23317 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23318 $as_echo_n "(cached) " >&6
23320 gcc_cv_as_cfi_personality_directive
=no
23321 if test x
$gcc_cv_as != x
; then
23324 .cfi_personality 0, symbol
23325 .cfi_endproc' > conftest.s
23326 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23328 (eval $ac_try) 2>&5
23330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23331 test $ac_status = 0; }; }
23333 gcc_cv_as_cfi_personality_directive
=yes
23335 echo "configure: failed program was" >&5
23338 rm -f conftest.o conftest.s
23341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23342 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23345 cat >>confdefs.h
<<_ACEOF
23346 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23347 then echo 1; else echo 0; fi`
23351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23352 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23353 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23354 $as_echo_n "(cached) " >&6
23356 gcc_cv_as_cfi_sections_directive
=no
23357 if test x
$gcc_cv_as != x
; then
23359 .cfi_sections .debug_frame, .eh_frame
23361 .cfi_endproc' > conftest.s
23362 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23364 (eval $ac_try) 2>&5
23366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23367 test $ac_status = 0; }; }
23370 win32 | pe | cygwin
* | mingw32
*)
23371 # Need to check that we generated the correct relocation for the
23372 # .debug_frame section. This was fixed for binutils 2.21.
23373 gcc_cv_as_cfi_sections_directive
=no
23374 if test "x$gcc_cv_objdump" != x
; then
23375 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23376 grep secrel
> /dev
/null
; then
23377 gcc_cv_as_cfi_sections_directive
=yes
23382 gcc_cv_as_cfi_sections_directive
=yes
23386 echo "configure: failed program was" >&5
23389 rm -f conftest.o conftest.s
23392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23393 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23397 cat >>confdefs.h
<<_ACEOF
23398 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23399 then echo 1; else echo 0; fi`
23403 # GAS versions up to and including 2.11.0 may mis-optimize
23405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23406 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23407 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23408 $as_echo_n "(cached) " >&6
23410 gcc_cv_as_eh_frame
=no
23411 if test $in_tree_gas = yes; then
23412 if test $in_tree_gas_is_elf = yes \
23413 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23414 then gcc_cv_as_eh_frame
=yes
23416 elif test x
$gcc_cv_as != x
; then
23423 .section .eh_frame,"aw",@progbits
23425 .4byte .LECIE1-.LSCIE1
23439 .4byte .LEFDE1-.LASFDE1
23441 .4byte .LASFDE1-__FRAME_BEGIN__
23448 .LEFDE1:' > conftest.s
23449 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23451 (eval $ac_try) 2>&5
23453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23454 test $ac_status = 0; }; }
23456 cat > conftest.lit
<<EOF
23457 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23458 0010 01000000 12000000 18000000 00000000 ................
23459 0020 08000000 04080000 0044 .........D
23461 cat > conftest.big
<<EOF
23462 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23463 0010 00000001 00000012 00000018 00000000 ................
23464 0020 00000008 04000000 0844 .........D
23466 # If the assembler didn't choke, and we can objdump,
23467 # and we got the correct data, then succeed.
23468 # The text in the here-document typically retains its unix-style line
23469 # endings, while the output of objdump will use host line endings.
23470 # Therefore, use diff -b for the comparisons.
23471 if test x
$gcc_cv_objdump != x \
23472 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23473 |
tail -3 > conftest.got \
23474 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23475 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23477 gcc_cv_as_eh_frame
=yes
23478 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23480 (eval $ac_try) 2>&5
23482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23483 test $ac_status = 0; }; }; then
23484 gcc_cv_as_eh_frame
=buggy
23486 # Uh oh, what do we do now?
23487 gcc_cv_as_eh_frame
=no
23490 echo "configure: failed program was" >&5
23493 rm -f conftest.o conftest.s
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23497 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23500 if test $gcc_cv_as_eh_frame = buggy
; then
23502 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23507 $as_echo_n "checking assembler for section merging support... " >&6; }
23508 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23509 $as_echo_n "(cached) " >&6
23511 gcc_cv_as_shf_merge
=no
23512 if test $in_tree_gas = yes; then
23513 if test $in_tree_gas_is_elf = yes \
23514 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23515 then gcc_cv_as_shf_merge
=yes
23517 elif test x
$gcc_cv_as != x
; then
23518 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23519 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23521 (eval $ac_try) 2>&5
23523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23524 test $ac_status = 0; }; }
23526 gcc_cv_as_shf_merge
=yes
23528 echo "configure: failed program was" >&5
23531 rm -f conftest.o conftest.s
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23535 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23537 if test $gcc_cv_as_shf_merge = no
; then
23538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23539 $as_echo_n "checking assembler for section merging support... " >&6; }
23540 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23541 $as_echo_n "(cached) " >&6
23543 gcc_cv_as_shf_merge
=no
23544 if test $in_tree_gas = yes; then
23545 if test $in_tree_gas_is_elf = yes \
23546 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23547 then gcc_cv_as_shf_merge
=yes
23549 elif test x
$gcc_cv_as != x
; then
23550 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23551 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23553 (eval $ac_try) 2>&5
23555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23556 test $ac_status = 0; }; }
23558 gcc_cv_as_shf_merge
=yes
23560 echo "configure: failed program was" >&5
23563 rm -f conftest.o conftest.s
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23567 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23571 cat >>confdefs.h
<<_ACEOF
23572 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23577 $as_echo_n "checking assembler for stabs directive... " >&6; }
23578 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23579 $as_echo_n "(cached) " >&6
23581 gcc_cv_as_stabs_directive
=no
23582 if test x
$gcc_cv_as != x
; then
23583 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23584 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23586 (eval $ac_try) 2>&5
23588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23589 test $ac_status = 0; }; }
23591 gcc_cv_as_stabs_directive
=yes
23593 echo "configure: failed program was" >&5
23596 rm -f conftest.o conftest.s
23599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23600 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23601 if test $gcc_cv_as_stabs_directive = yes; then
23603 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23608 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23609 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23610 $as_echo_n "(cached) " >&6
23612 gcc_cv_as_comdat_group
=no
23613 if test $in_tree_gas = yes; then
23614 if test $in_tree_gas_is_elf = yes \
23615 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23616 then gcc_cv_as_comdat_group
=yes
23618 elif test x
$gcc_cv_as != x
; then
23619 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23620 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23622 (eval $ac_try) 2>&5
23624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23625 test $ac_status = 0; }; }
23627 gcc_cv_as_comdat_group
=yes
23629 echo "configure: failed program was" >&5
23632 rm -f conftest.o conftest.s
23635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23636 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23638 if test $gcc_cv_as_comdat_group = yes; then
23639 gcc_cv_as_comdat_group_percent
=no
23640 gcc_cv_as_comdat_group_group
=no
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23643 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23644 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23645 $as_echo_n "(cached) " >&6
23647 gcc_cv_as_comdat_group_percent
=no
23648 if test $in_tree_gas = yes; then
23649 if test $in_tree_gas_is_elf = yes \
23650 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23651 then gcc_cv_as_comdat_group_percent
=yes
23653 elif test x
$gcc_cv_as != x
; then
23654 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23655 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23657 (eval $ac_try) 2>&5
23659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23660 test $ac_status = 0; }; }
23662 gcc_cv_as_comdat_group_percent
=yes
23664 echo "configure: failed program was" >&5
23667 rm -f conftest.o conftest.s
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23671 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23673 if test $gcc_cv_as_comdat_group_percent = yes; then
23674 gcc_cv_as_comdat_group_group
=no
23676 case "${target}" in
23677 # Sun as uses a completely different syntax.
23679 case "${target}" in
23680 sparc
*-*-solaris2*)
23682 .group foo,".text%foo",#comdat
23683 .section ".text%foo", #alloc,#execinstr,#progbits
23688 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23690 .group foo,.text%foo,#comdat
23691 .section .text%foo, "ax", @progbits
23697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23698 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23699 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23700 $as_echo_n "(cached) " >&6
23702 gcc_cv_as_comdat_group_group
=no
23703 if test x
$gcc_cv_as != x
; then
23704 $as_echo "$conftest_s" > conftest.s
23705 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23707 (eval $ac_try) 2>&5
23709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23710 test $ac_status = 0; }; }
23712 gcc_cv_as_comdat_group_group
=yes
23714 echo "configure: failed program was" >&5
23717 rm -f conftest.o conftest.s
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23721 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23725 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23726 gcc_cv_as_comdat_group_group
=no
23730 if test x
"$ld_is_gold" = xyes
; then
23732 elif test $in_tree_ld = yes ; then
23734 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 \
23735 && test $in_tree_ld_is_elf = yes; then
23738 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23740 if test 0"$ld_date" -lt 20050308; then
23741 if test -n "$ld_date"; then
23742 # If there was date string, but was earlier than 2005-03-08, fail
23744 elif test "$ld_vers_major" -lt 2; then
23746 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23751 case "${target}" in
23752 *-*-solaris2.1
[1-9]*)
23754 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23755 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23758 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23759 # least ld version 1.2267.
23760 if test "$ld_vers_major" -gt 1; then
23762 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23764 elif test "$ld_vers_minor" -ge 2267; then
23769 # Assume linkers other than GNU ld don't support COMDAT group.
23774 # Allow overriding the automatic COMDAT group tests above.
23775 # Check whether --enable-comdat was given.
23776 if test "${enable_comdat+set}" = set; then :
23777 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23780 if test $comdat_group = no
; then
23781 gcc_cv_as_comdat_group
=no
23782 gcc_cv_as_comdat_group_percent
=no
23783 gcc_cv_as_comdat_group_group
=no
23786 cat >>confdefs.h
<<_ACEOF
23787 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23788 || test $gcc_cv_as_comdat_group_percent = yes \
23789 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23794 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23795 if test "${gcc_cv_as_discriminator+set}" = set; then :
23796 $as_echo_n "(cached) " >&6
23798 gcc_cv_as_discriminator
=no
23799 if test $in_tree_gas = yes; then
23800 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23801 then gcc_cv_as_discriminator
=yes
23803 elif test x
$gcc_cv_as != x
; then
23806 .loc 1 1 0 discriminator 1' > conftest.s
23807 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23809 (eval $ac_try) 2>&5
23811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23812 test $ac_status = 0; }; }
23814 gcc_cv_as_discriminator
=yes
23816 echo "configure: failed program was" >&5
23819 rm -f conftest.o conftest.s
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23823 $as_echo "$gcc_cv_as_discriminator" >&6; }
23824 if test $gcc_cv_as_discriminator = yes; then
23826 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23830 # Thread-local storage - the check is heavily parameterized.
23838 .section ".tdata","awT",@progbits
23841 ldq $27,__tls_get_addr($29) !literal!1
23842 lda $16,foo($29) !tlsgd!1
23843 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23844 ldq $27,__tls_get_addr($29) !literal!2
23845 lda $16,foo($29) !tlsldm!2
23846 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23847 ldq $1,foo($29) !gotdtprel
23848 ldah $2,foo($29) !dtprelhi
23849 lda $3,foo($2) !dtprello
23850 lda $4,foo($29) !dtprel
23851 ldq $1,foo($29) !gottprel
23852 ldah $2,foo($29) !tprelhi
23853 lda $3,foo($2) !tprello
23854 lda $4,foo($29) !tprel'
23857 tls_as_opt
=--fatal-warnings
23859 cris-
*-*|crisv32-
*-*)
23861 .section ".tdata","awT",@progbits
23868 tls_as_opt
=--fatal-warnings
23872 .section ".tdata","awT",@progbits
23875 call #gettlsoff(x)'
23884 .section ".tdata","awT",@progbits
23888 addil LT%foo-$tls_gdidx$,gp
23889 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23892 addil LT%foo-$tls_ldidx$,gp
23894 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23895 addil LR%foo-$tls_dtpoff$,%ret0
23896 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23898 addil LT%foo-$tls_ieoff$,gp
23899 ldw RT%foo-$tls_ieoff$(%r1),%t2
23902 addil LR%foo-$tls_leoff$,%t1
23903 ldo RR%foo-$tls_leoff$(%r1),%t2'
23906 tls_as_opt
=--fatal-warnings
23910 .section ".tdata","awT",%progbits
23913 .word foo(gottpoff)
23921 i
[34567]86-*-* | x86_64-
*-*)
23923 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
23930 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23932 .section .tdata,"awt",@progbits'
23937 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23941 .section ".tdata","awT",@progbits'
23945 tls_as_opt
="--fatal-warnings"
23949 conftest_s
="$conftest_s
23953 leal foo@tlsgd(,%ebx,1), %eax
23954 leal foo@tlsldm(%ebx), %eax
23955 leal foo@dtpoff(%eax), %edx
23956 movl foo@gottpoff(%ebx), %eax
23957 subl foo@gottpoff(%ebx), %eax
23958 addl foo@gotntpoff(%ebx), %eax
23959 movl foo@indntpoff, %eax
23960 movl \$foo@tpoff, %eax
23961 subl \$foo@tpoff, %eax
23962 leal foo@ntpoff(%ecx), %eax"
23965 if test x
$on_solaris = xyes
; then
23967 yes) tls_as_opt
="$tls_as_opt --64" ;;
23968 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
23971 conftest_s
="$conftest_s
23975 leaq foo@tlsgd(%rip), %rdi
23976 leaq foo@tlsld(%rip), %rdi
23977 leaq foo@dtpoff(%rax), %rdx
23978 movq foo@gottpoff(%rip), %rax
23979 movq \$foo@tpoff, %rax"
23985 .section ".tdata","awT",@progbits
23988 addl r16 = @ltoff(@dtpmod(foo#)), gp
23989 addl r17 = @ltoff(@dtprel(foo#)), gp
23990 addl r18 = @ltoff(@tprel(foo#)), gp
23991 addl r19 = @dtprel(foo#), gp
23992 adds r21 = @dtprel(foo#), r13
23993 movl r23 = @dtprel(foo#)
23994 addl r20 = @tprel(foo#), gp
23995 adds r22 = @tprel(foo#), r13
23996 movl r24 = @tprel(foo#)'
23999 tls_as_opt
=--fatal-warnings
24003 .section .tdata,"awT",@progbits
24007 addik r5,r20,x@TLSGD
24008 addik r5,r20,x@TLSLDM'
24011 tls_as_opt
='--fatal-warnings'
24015 .section .tdata,"awT",@progbits
24019 addiu $4, $28, %tlsgd(x)
24020 addiu $4, $28, %tlsldm(x)
24021 lui $4, %dtprel_hi(x)
24022 addiu $4, $4, %dtprel_lo(x)
24023 lw $4, %gottprel(x)($28)
24024 lui $4, %tprel_hi(x)
24025 addiu $4, $4, %tprel_lo(x)'
24028 tls_as_opt
='-32 --fatal-warnings'
24032 .section .tdata,"awT",@progbits
24037 move.l x@TLSGD(%a5),%a0
24038 move.l x@TLSLDM(%a5),%a0
24039 move.l x@TLSLDO(%a5),%a0
24040 move.l x@TLSIE(%a5),%a0
24041 move.l x@TLSLE(%a5),%a0'
24044 tls_as_opt
='--fatal-warnings'
24048 .section ".tdata","awT",@progbits'
24051 tls_as_opt
="--fatal-warnings"
24055 .section ".tdata","awT",%progbits
24059 add x0, x0, #:tlsgd_lo12:x
24064 tls_as_opt
='--fatal-warnings'
24068 .extern __get_tpointer
24086 .section ".tdata","awT",@progbits
24094 addi 3,2,ld0@got@tlsgd
24100 addi 3,2,x1@got@tlsld
24106 addis 9,3,x2@dtprel@ha
24107 addi 9,9,x2@dtprel@l
24110 ld 9,x3@got@dtprel(2)
24116 tls_as_opt
="-a64 --fatal-warnings"
24120 .section ".tdata","awT",@progbits
24128 addi 3,31,ld0@got@tlsgd
24130 addi 3,31,x1@got@tlsld
24133 addis 9,3,x2@dtprel@ha
24134 addi 9,9,x2@dtprel@l
24135 lwz 9,x3@got@tprel(31)
24138 addis 9,2,x2@tprel@ha
24139 addi 9,9,x2@tprel@l'
24142 tls_as_opt
="-a32 --fatal-warnings"
24146 .section ".tdata","awT",@progbits
24153 .long foo@GOTNTPOFF
24154 .long foo@INDNTPOFF
24155 l %r1,foo@GOTNTPOFF(%r12)
24156 l %r1,0(%r1):tls_load:foo
24157 bas %r14,0(%r1,%r13):tls_gdcall:foo
24158 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24161 tls_as_opt
="-m31 --fatal-warnings"
24165 .section ".tdata","awT",@progbits
24172 .quad foo@GOTNTPOFF
24173 lg %r1,foo@GOTNTPOFF(%r12)
24174 larl %r1,foo@INDNTPOFF
24175 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24176 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24179 tls_as_opt
="-m64 -Aesame --fatal-warnings"
24181 sh-
*-* | sh
[123456789lbe
]*-*-*)
24183 .section ".tdata","awT",@progbits
24193 tls_as_opt
=--fatal-warnings
24197 sparc
*-sun-solaris2.
*)
24204 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24206 .section ".tdata",#alloc,#write,#tls'
24211 .section ".tdata","awT",@progbits'
24214 tls_as_opt
="-32 --fatal-warnings"
24216 conftest_s
="$conftest_s
24219 sethi %tgd_hi22(foo), %o0
24220 add %o0, %tgd_lo10(foo), %o1
24221 add %l7, %o1, %o0, %tgd_add(foo)
24222 call __tls_get_addr, %tgd_call(foo)
24223 sethi %tldm_hi22(foo), %l1
24224 add %l1, %tldm_lo10(foo), %l2
24225 add %l7, %l2, %o0, %tldm_add(foo)
24226 call __tls_get_addr, %tldm_call(foo)
24227 sethi %tldo_hix22(foo), %l3
24228 xor %l3, %tldo_lox10(foo), %l4
24229 add %o0, %l4, %l5, %tldo_add(foo)
24230 sethi %tie_hi22(foo), %o3
24231 add %o3, %tie_lo10(foo), %o3
24232 ld [%l7 + %o3], %o2, %tie_ld(foo)
24233 add %g7, %o2, %o4, %tie_add(foo)
24234 sethi %tle_hix22(foo), %l1
24235 xor %l1, %tle_lox10(foo), %o5
24236 ld [%g7 + %o5], %o1"
24240 .section ".tdata","awT",@progbits
24243 addli r0, zero, tls_gd(foo)
24244 auli r0, zero, tls_gd_ha16(foo)
24245 addli r0, r0, tls_gd_lo16(foo)
24247 addli r0, zero, tls_ie(foo)
24248 auli r0, r0, tls_ie_ha16(foo)
24249 addli r0, r0, tls_ie_lo16(foo)'
24252 tls_as_opt
="--fatal-warnings"
24256 .section ".tdata","awT",@progbits
24259 shl16insli r0, zero, hw0_last_tls_gd(foo)
24260 shl16insli r0, zero, hw1_last_tls_gd(foo)
24261 shl16insli r0, r0, hw0_tls_gd(foo)
24263 shl16insli r0, zero, hw1_last_tls_ie(foo)
24264 shl16insli r0, r0, hw0_tls_ie(foo)'
24267 tls_as_opt
="--fatal-warnings"
24271 .section ".tdata","awT",@progbits
24274 movi a8, foo@TLSFUNC
24275 movi a10, foo@TLSARG
24276 callx8.tls a8, foo@TLSCALL'
24282 if test "x$enable_tls" = xno
; then
24283 : # TLS explicitly disabled.
24284 elif test "x$enable_tls" = xyes
; then
24285 set_have_as_tls
=yes # TLS explicitly enabled.
24286 elif test -z "$tls_first_major"; then
24287 : # If we don't have a check, assume no support.
24289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24290 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24291 if test "${gcc_cv_as_tls+set}" = set; then :
24292 $as_echo_n "(cached) " >&6
24295 if test $in_tree_gas = yes; then
24296 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24297 then gcc_cv_as_tls
=yes
24299 elif test x
$gcc_cv_as != x
; then
24300 $as_echo "$conftest_s" > conftest.s
24301 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24303 (eval $ac_try) 2>&5
24305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24306 test $ac_status = 0; }; }
24310 echo "configure: failed program was" >&5
24313 rm -f conftest.o conftest.s
24316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24317 $as_echo "$gcc_cv_as_tls" >&6; }
24318 if test $gcc_cv_as_tls = yes; then
24319 set_have_as_tls
=yes
24322 if test $set_have_as_tls = yes ; then
24324 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24328 # Target-specific assembler checks.
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24331 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24332 gcc_cv_ld_static_dynamic
=no
24333 gcc_cv_ld_static_option
='-Bstatic'
24334 gcc_cv_ld_dynamic_option
='-Bdynamic'
24335 if test $in_tree_ld = yes ; then
24336 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
24337 gcc_cv_ld_static_dynamic
=yes
24339 elif test x
$gcc_cv_ld != x
; then
24340 # Check if linker supports -Bstatic/-Bdynamic option
24341 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
24342 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
24343 gcc_cv_ld_static_dynamic
=yes
24346 # AIX ld uses -b flags
24347 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24348 gcc_cv_ld_static_dynamic
=yes
24349 gcc_cv_ld_static_option
="-bstatic"
24350 gcc_cv_ld_dynamic_option
="-bdynamic"
24352 # HP-UX ld uses -a flags to select between shared and archive.
24354 if test x
"$gnu_ld" = xno
; then
24355 gcc_cv_ld_static_dynamic
=yes
24356 gcc_cv_ld_static_option
="-aarchive_shared"
24357 gcc_cv_ld_dynamic_option
="-adefault"
24360 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24362 gcc_cv_ld_static_dynamic
=yes
24367 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24369 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24372 cat >>confdefs.h
<<_ACEOF
24373 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24377 cat >>confdefs.h
<<_ACEOF
24378 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24383 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24385 if test x
"$demangler_in_ld" = xyes
; then
24386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24387 $as_echo_n "checking linker --demangle support... " >&6; }
24388 gcc_cv_ld_demangle
=no
24389 if test $in_tree_ld = yes; then
24390 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 \
24391 gcc_cv_ld_demangle
=yes
24393 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24394 # Check if the GNU linker supports --demangle option
24395 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
24396 gcc_cv_ld_demangle
=yes
24399 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24401 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24405 $as_echo "$gcc_cv_ld_demangle" >&6; }
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24409 $as_echo_n "checking linker plugin support... " >&6; }
24410 gcc_cv_lto_plugin
=0
24411 if test -f liblto_plugin.la
; then
24412 save_ld_ver
="$ld_ver"
24413 save_ld_vers_major
="$ld_vers_major"
24414 save_ld_vers_minor
="$ld_vers_minor"
24415 save_ld_is_gold
="$ld_is_gold"
24419 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24421 # FIXME: ld_is_gold?
24422 ld_vers_major
="$gcc_cv_gld_major_version"
24423 ld_vers_minor
="$gcc_cv_gld_minor_version"
24425 # Determine plugin linker version.
24426 # FIXME: Partial duplicate from above, generalize.
24427 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24428 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24429 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24431 ld_vers
=`echo $ld_ver | sed -n \
24432 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24434 ld_vers
=`echo $ld_ver | sed -n \
24435 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24437 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24438 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24442 # Determine plugin support.
24443 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24444 # Require GNU ld or gold 2.21+ for plugin support by default.
24445 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24446 gcc_cv_lto_plugin
=2
24447 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24448 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24449 gcc_cv_lto_plugin
=1
24453 ld_ver
="$save_ld_ver"
24454 ld_vers_major
="$save_ld_vers_major"
24455 ld_vers_minor
="$save_ld_vers_minor"
24456 ld_is_gold
="$save_ld_is_gold"
24459 cat >>confdefs.h
<<_ACEOF
24460 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24464 $as_echo "$gcc_cv_lto_plugin" >&6; }
24466 # Target OS-specific assembler checks.
24468 case "$target_os" in
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24471 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24472 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24473 $as_echo_n "(cached) " >&6
24475 gcc_cv_as_mmacosx_version_min
=no
24476 if test x
$gcc_cv_as != x
; then
24477 $as_echo '.text' > conftest.s
24478 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24480 (eval $ac_try) 2>&5
24482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24483 test $ac_status = 0; }; }
24485 gcc_cv_as_mmacosx_version_min
=yes
24487 echo "configure: failed program was" >&5
24490 rm -f conftest.o conftest.s
24493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24494 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24495 if test $gcc_cv_as_mmacosx_version_min = yes; then
24497 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24503 # Target CPU-specific assembler checks.
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24508 $as_echo_n "checking assembler for -mabi option... " >&6; }
24509 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24510 $as_echo_n "(cached) " >&6
24512 gcc_cv_as_aarch64_mabi
=no
24513 if test x
$gcc_cv_as != x
; then
24514 $as_echo '.text' > conftest.s
24515 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24517 (eval $ac_try) 2>&5
24519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24520 test $ac_status = 0; }; }
24522 gcc_cv_as_aarch64_mabi
=yes
24524 echo "configure: failed program was" >&5
24527 rm -f conftest.o conftest.s
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24531 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24533 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24535 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24538 if test x
$with_abi = xilp32
; then
24539 as_fn_error
"Assembler does not support -mabi=ilp32.\
24540 Upgrade the Assembler." "$LINENO" 5
24542 if test x
"$with_multilib_list" = xdefault
; then
24543 TM_MULTILIB_CONFIG
=lp64
24545 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24546 for aarch64_multilib
in ${aarch64_multilibs}; do
24547 case ${aarch64_multilib} in
24549 as_fn_error
"Assembler does not support -mabi=ilp32.\
24550 Upgrade the Assembler." "$LINENO" 5
24558 # Check if we have binutils support for relocations types needed by -fpic
24559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24560 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24561 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24562 $as_echo_n "(cached) " >&6
24564 gcc_cv_as_aarch64_picreloc
=no
24565 if test x
$gcc_cv_as != x
; then
24568 ldr x0, [x2, #:gotpage_lo15:globalsym]
24570 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24572 (eval $ac_try) 2>&5
24574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24575 test $ac_status = 0; }; }
24577 gcc_cv_as_aarch64_picreloc
=yes
24579 echo "configure: failed program was" >&5
24582 rm -f conftest.o conftest.s
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24586 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24587 if test $gcc_cv_as_aarch64_picreloc = yes; then
24589 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24592 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24593 # Check whether --enable-fix-cortex-a53-835769 was given.
24594 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24595 enableval
=$enable_fix_cortex_a53_835769;
24598 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24603 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24604 Valid choices are 'yes' and 'no'." "$LINENO" 5
24611 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24612 # Check whether --enable-fix-cortex-a53-843419 was given.
24613 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24614 enableval
=$enable_fix_cortex_a53_843419;
24617 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24622 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24623 Valid choices are 'yes' and 'no'." "$LINENO" 5
24632 # All TARGET_ABI_OSF targets.
24633 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24635 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24636 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24637 $as_echo_n "(cached) " >&6
24639 gcc_cv_as_alpha_explicit_relocs
=no
24640 if test $in_tree_gas = yes; then
24641 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24642 then gcc_cv_as_alpha_explicit_relocs
=yes
24644 elif test x
$gcc_cv_as != x
; then
24645 $as_echo ' .set nomacro
24647 extbl $3, $2, $3 !lituse_bytoff!1
24648 ldq $2, a($29) !literal!1
24649 ldq $4, b($29) !literal!2
24650 ldq_u $3, 0($2) !lituse_base!1
24651 ldq $27, f($29) !literal!5
24652 jsr $26, ($27), f !lituse_jsr!5
24653 ldah $29, 0($26) !gpdisp!3
24654 lda $0, c($29) !gprel
24655 ldah $1, d($29) !gprelhigh
24656 lda $1, d($1) !gprellow
24657 lda $29, 0($29) !gpdisp!3' > conftest.s
24658 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24660 (eval $ac_try) 2>&5
24662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24663 test $ac_status = 0; }; }
24665 gcc_cv_as_alpha_explicit_relocs
=yes
24667 echo "configure: failed program was" >&5
24670 rm -f conftest.o conftest.s
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24674 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24675 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24677 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24681 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24682 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24683 $as_echo_n "(cached) " >&6
24685 gcc_cv_as_alpha_jsrdirect_relocs
=no
24686 if test $in_tree_gas = yes; then
24687 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24688 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24690 elif test x
$gcc_cv_as != x
; then
24691 $as_echo ' .set nomacro
24693 ldq $27, a($29) !literal!1
24694 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24695 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24697 (eval $ac_try) 2>&5
24699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24700 test $ac_status = 0; }; }
24702 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24704 echo "configure: failed program was" >&5
24707 rm -f conftest.o conftest.s
24710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24711 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24712 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24714 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24721 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24722 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24723 $as_echo_n "(cached) " >&6
24725 gcc_cv_as_avr_mlink_relax
=no
24726 if test x
$gcc_cv_as != x
; then
24727 $as_echo '.text' > conftest.s
24728 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24730 (eval $ac_try) 2>&5
24732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24733 test $ac_status = 0; }; }
24735 gcc_cv_as_avr_mlink_relax
=yes
24737 echo "configure: failed program was" >&5
24740 rm -f conftest.o conftest.s
24743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24744 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24745 if test $gcc_cv_as_avr_mlink_relax = yes; then
24747 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24752 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24753 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24754 $as_echo_n "(cached) " >&6
24756 gcc_cv_as_avr_mrmw
=no
24757 if test x
$gcc_cv_as != x
; then
24758 $as_echo '.text' > conftest.s
24759 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24761 (eval $ac_try) 2>&5
24763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24764 test $ac_status = 0; }; }
24766 gcc_cv_as_avr_mrmw
=yes
24768 echo "configure: failed program was" >&5
24771 rm -f conftest.o conftest.s
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24775 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24776 if test $gcc_cv_as_avr_mrmw = yes; then
24778 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24785 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24786 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24787 $as_echo_n "(cached) " >&6
24789 gcc_cv_as_cris_no_mul_bug
=no
24790 if test $in_tree_gas = yes; then
24791 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24792 then gcc_cv_as_cris_no_mul_bug
=yes
24794 elif test x
$gcc_cv_as != x
; then
24795 $as_echo '.text' > conftest.s
24796 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24798 (eval $ac_try) 2>&5
24800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24801 test $ac_status = 0; }; }
24803 gcc_cv_as_cris_no_mul_bug
=yes
24805 echo "configure: failed program was" >&5
24808 rm -f conftest.o conftest.s
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24812 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24813 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24815 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24822 $as_echo_n "checking assembler for .register... " >&6; }
24823 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24824 $as_echo_n "(cached) " >&6
24826 gcc_cv_as_sparc_register_op
=no
24827 if test x
$gcc_cv_as != x
; then
24828 $as_echo '.register %g2, #scratch' > conftest.s
24829 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24831 (eval $ac_try) 2>&5
24833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24834 test $ac_status = 0; }; }
24836 gcc_cv_as_sparc_register_op
=yes
24838 echo "configure: failed program was" >&5
24841 rm -f conftest.o conftest.s
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24845 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24846 if test $gcc_cv_as_sparc_register_op = yes; then
24848 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24853 $as_echo_n "checking assembler for -relax option... " >&6; }
24854 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24855 $as_echo_n "(cached) " >&6
24857 gcc_cv_as_sparc_relax
=no
24858 if test x
$gcc_cv_as != x
; then
24859 $as_echo '.text' > conftest.s
24860 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24862 (eval $ac_try) 2>&5
24864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24865 test $ac_status = 0; }; }
24867 gcc_cv_as_sparc_relax
=yes
24869 echo "configure: failed program was" >&5
24872 rm -f conftest.o conftest.s
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24876 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24877 if test $gcc_cv_as_sparc_relax = yes; then
24879 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24884 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24885 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24886 $as_echo_n "(cached) " >&6
24888 gcc_cv_as_sparc_gotdata_op
=no
24889 if test x
$gcc_cv_as != x
; then
24895 sethi %gdop_hix22(foo), %g1
24896 xor %g1, %gdop_lox10(foo), %g1
24897 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24898 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24900 (eval $ac_try) 2>&5
24902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24903 test $ac_status = 0; }; }
24905 if test x
$gcc_cv_ld != x \
24906 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24907 if test x
$gcc_cv_objdump != x
; then
24908 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24909 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24910 gcc_cv_as_sparc_gotdata_op
=no
24912 gcc_cv_as_sparc_gotdata_op
=yes
24918 echo "configure: failed program was" >&5
24921 rm -f conftest.o conftest.s
24924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24925 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24926 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24928 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24933 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24934 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24935 $as_echo_n "(cached) " >&6
24937 gcc_cv_as_sparc_ua_pcrel
=no
24938 if test x
$gcc_cv_as != x
; then
24945 .uaword %r_disp32(foo)' > conftest.s
24946 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24948 (eval $ac_try) 2>&5
24950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24951 test $ac_status = 0; }; }
24953 if test x
$gcc_cv_ld != x \
24954 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24955 gcc_cv_as_sparc_ua_pcrel
=yes
24959 echo "configure: failed program was" >&5
24962 rm -f conftest.o conftest.s
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24966 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24967 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24969 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24973 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24974 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24975 $as_echo_n "(cached) " >&6
24977 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24978 if test x
$gcc_cv_as != x
; then
24982 .uaword %r_disp32(foo)
24983 .byte 0x32, 0x33, 0x34
24987 .skip 4' > conftest.s
24988 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -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_ld != x
&& test x
$gcc_cv_objdump != x \
24996 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24997 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24998 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24999 if $gcc_cv_objdump -R conftest
2> /dev
/null \
25000 |
grep 'DISP32' > /dev
/null
2>&1; then
25003 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
25008 echo "configure: failed program was" >&5
25011 rm -f conftest.o conftest.s
25014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25015 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25016 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25018 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25022 fi # unaligned pcrel relocs
25024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25025 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25026 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25027 $as_echo_n "(cached) " >&6
25029 gcc_cv_as_sparc_offsetable_lo10
=no
25030 if test x
$gcc_cv_as != x
; then
25032 or %g1, %lo(ab) + 12, %g1
25033 or %g1, %lo(ab + 12), %g1' > conftest.s
25034 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25036 (eval $ac_try) 2>&5
25038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25039 test $ac_status = 0; }; }
25041 if test x
$gcc_cv_objdump != x \
25042 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
25043 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
25044 gcc_cv_as_sparc_offsetable_lo10
=yes
25047 echo "configure: failed program was" >&5
25050 rm -f conftest.o conftest.s
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25054 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25055 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25057 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25062 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25063 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25064 $as_echo_n "(cached) " >&6
25066 gcc_cv_as_sparc_fmaf
=no
25067 if test x
$gcc_cv_as != x
; then
25069 .register %g2, #scratch
25070 .register %g3, #scratch
25072 fmaddd %f0, %f2, %f4, %f6
25073 addxccc %g1, %g2, %g3
25074 fsrl32 %f2, %f4, %f8
25075 fnaddd %f10, %f12, %f14' > conftest.s
25076 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25078 (eval $ac_try) 2>&5
25080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25081 test $ac_status = 0; }; }
25083 gcc_cv_as_sparc_fmaf
=yes
25085 echo "configure: failed program was" >&5
25088 rm -f conftest.o conftest.s
25091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25092 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25093 if test $gcc_cv_as_sparc_fmaf = yes; then
25095 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25100 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25101 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25102 $as_echo_n "(cached) " >&6
25104 gcc_cv_as_sparc_sparc4
=no
25105 if test x
$gcc_cv_as != x
; then
25107 .register %g2, #scratch
25108 .register %g3, #scratch
25111 1: cwbneg %g2, %g3, 1f
25114 aes_kexpand0 %f4, %f6, %f8
25115 des_round %f38, %f40, %f42, %f44
25116 camellia_f %f54, %f56, %f58, %f60
25117 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25118 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25120 (eval $ac_try) 2>&5
25122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25123 test $ac_status = 0; }; }
25125 gcc_cv_as_sparc_sparc4
=yes
25127 echo "configure: failed program was" >&5
25130 rm -f conftest.o conftest.s
25133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25134 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25135 if test $gcc_cv_as_sparc_sparc4 = yes; then
25137 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25142 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25143 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25144 $as_echo_n "(cached) " >&6
25146 gcc_cv_as_sparc_sparc5
=no
25147 if test x
$gcc_cv_as != x
; then
25149 .register %g2, #scratch
25150 .register %g3, #scratch
25152 subxc %g1, %g2, %g3
25153 fpadd8 %f0, %f2, %f4' > conftest.s
25154 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25156 (eval $ac_try) 2>&5
25158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25159 test $ac_status = 0; }; }
25161 gcc_cv_as_sparc_sparc5
=yes
25163 echo "configure: failed program was" >&5
25166 rm -f conftest.o conftest.s
25169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25170 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25171 if test $gcc_cv_as_sparc_sparc5 = yes; then
25173 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25178 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25179 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25180 $as_echo_n "(cached) " >&6
25182 gcc_cv_as_sparc_leon
=no
25183 if test x
$gcc_cv_as != x
; then
25185 .register %g2, #scratch
25186 .register %g3, #scratch
25190 casa [%g2] 0xb, %g3, %g1' > conftest.s
25191 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25193 (eval $ac_try) 2>&5
25195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25196 test $ac_status = 0; }; }
25198 gcc_cv_as_sparc_leon
=yes
25200 echo "configure: failed program was" >&5
25203 rm -f conftest.o conftest.s
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25207 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25208 if test $gcc_cv_as_sparc_leon = yes; then
25210 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25215 i
[34567]86-*-* | x86_64-
*-*)
25218 # Full C++ conformance when using a shared libstdc++-v3 requires some
25219 # support from the Cygwin DLL, which in more recent versions exports
25220 # wrappers to aid in interposing and redirecting operators new, delete,
25221 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25222 # are configuring for a version of Cygwin that exports the wrappers.
25223 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
25224 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25225 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
25226 gcc_ac_cygwin_dll_wrappers
=yes
25228 gcc_ac_cygwin_dll_wrappers
=no
25232 # Can't check presence of libc functions during cross-compile, so
25233 # we just have to assume we're building for an up-to-date target.
25234 gcc_ac_cygwin_dll_wrappers
=yes
25237 cat >>confdefs.h
<<_ACEOF
25238 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25243 cygwin
* | pe | mingw32
* | interix
*)
25244 # Recent binutils allows the three-operand form of ".comm" on PE. This
25245 # definition is used unconditionally to initialise the default state of
25246 # the target option variable that governs usage of the feature.
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25248 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25249 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25250 $as_echo_n "(cached) " >&6
25252 gcc_cv_as_comm_has_align
=no
25253 if test $in_tree_gas = yes; then
25254 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25255 then gcc_cv_as_comm_has_align
=yes
25257 elif test x
$gcc_cv_as != x
; then
25258 $as_echo '.comm foo,1,32' > conftest.s
25259 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25261 (eval $ac_try) 2>&5
25263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25264 test $ac_status = 0; }; }
25266 gcc_cv_as_comm_has_align
=yes
25268 echo "configure: failed program was" >&5
25271 rm -f conftest.o conftest.s
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25275 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25278 cat >>confdefs.h
<<_ACEOF
25279 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25282 # Used for DWARF 2 in PE
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25284 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25285 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25286 $as_echo_n "(cached) " >&6
25288 gcc_cv_as_ix86_pe_secrel32
=no
25289 if test $in_tree_gas = yes; then
25290 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25291 then gcc_cv_as_ix86_pe_secrel32
=yes
25293 elif test x
$gcc_cv_as != x
; then
25297 .secrel32 foo' > conftest.s
25298 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25300 (eval $ac_try) 2>&5
25302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25303 test $ac_status = 0; }; }
25305 if test x
$gcc_cv_ld != x \
25306 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
25307 gcc_cv_as_ix86_pe_secrel32
=yes
25311 echo "configure: failed program was" >&5
25314 rm -f conftest.o conftest.s
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25318 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25319 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25321 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25324 # Test if the assembler supports the extended form of the .section
25325 # directive that specifies section alignment. LTO support uses this,
25326 # but normally only after installation, so we warn but don't fail the
25327 # configure if LTO is enabled but the assembler does not support it.
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25329 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25330 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25331 $as_echo_n "(cached) " >&6
25333 gcc_cv_as_section_has_align
=no
25334 if test $in_tree_gas = yes; then
25335 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25336 then gcc_cv_as_section_has_align
=yes
25338 elif test x
$gcc_cv_as != x
; then
25339 $as_echo '.section lto_test,"dr0"' > conftest.s
25340 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25342 (eval $ac_try) 2>&5
25344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25345 test $ac_status = 0; }; }
25347 gcc_cv_as_section_has_align
=yes
25349 echo "configure: failed program was" >&5
25352 rm -f conftest.o conftest.s
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25356 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25358 if test x
$gcc_cv_as_section_has_align != xyes
; then
25359 case ",$enable_languages," in
25361 { $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
25362 $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;}
25369 # Test if the assembler supports the section flag 'e' for specifying
25370 # an excluded section.
25371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25372 $as_echo_n "checking assembler for .section with e... " >&6; }
25373 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25374 $as_echo_n "(cached) " >&6
25376 gcc_cv_as_section_has_e
=no
25377 if test $in_tree_gas = yes; then
25378 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25379 then gcc_cv_as_section_has_e
=yes
25381 elif test x
$gcc_cv_as != x
; then
25382 $as_echo '.section foo1,"e"
25383 .byte 0,0,0,0' > conftest.s
25384 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25386 (eval $ac_try) 2>&5
25388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25389 test $ac_status = 0; }; }
25391 gcc_cv_as_section_has_e
=yes
25393 echo "configure: failed program was" >&5
25396 rm -f conftest.o conftest.s
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25400 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25403 cat >>confdefs.h
<<_ACEOF
25404 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25409 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25410 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25411 $as_echo_n "(cached) " >&6
25413 gcc_cv_as_ix86_filds
=no
25414 if test x
$gcc_cv_as != x
; then
25415 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25416 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25418 (eval $ac_try) 2>&5
25420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25421 test $ac_status = 0; }; }
25423 gcc_cv_as_ix86_filds
=yes
25425 echo "configure: failed program was" >&5
25428 rm -f conftest.o conftest.s
25431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25432 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25433 if test $gcc_cv_as_ix86_filds = yes; then
25435 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25440 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25441 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25442 $as_echo_n "(cached) " >&6
25444 gcc_cv_as_ix86_fildq
=no
25445 if test x
$gcc_cv_as != x
; then
25446 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25447 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25449 (eval $ac_try) 2>&5
25451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25452 test $ac_status = 0; }; }
25454 gcc_cv_as_ix86_fildq
=yes
25456 echo "configure: failed program was" >&5
25459 rm -f conftest.o conftest.s
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25463 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25464 if test $gcc_cv_as_ix86_fildq = yes; then
25466 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25471 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25472 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25473 $as_echo_n "(cached) " >&6
25475 gcc_cv_as_ix86_cmov_sun_syntax
=no
25476 if test x
$gcc_cv_as != x
; then
25477 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25478 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25480 (eval $ac_try) 2>&5
25482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25483 test $ac_status = 0; }; }
25485 gcc_cv_as_ix86_cmov_sun_syntax
=yes
25487 echo "configure: failed program was" >&5
25490 rm -f conftest.o conftest.s
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25494 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25495 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25497 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25502 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25503 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25504 $as_echo_n "(cached) " >&6
25506 gcc_cv_as_ix86_ffreep
=no
25507 if test x
$gcc_cv_as != x
; then
25508 $as_echo 'ffreep %st(1)' > conftest.s
25509 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25511 (eval $ac_try) 2>&5
25513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25514 test $ac_status = 0; }; }
25516 gcc_cv_as_ix86_ffreep
=yes
25518 echo "configure: failed program was" >&5
25521 rm -f conftest.o conftest.s
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25525 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25526 if test $gcc_cv_as_ix86_ffreep = yes; then
25528 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25533 $as_echo_n "checking assembler for .quad directive... " >&6; }
25534 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25535 $as_echo_n "(cached) " >&6
25537 gcc_cv_as_ix86_quad
=no
25538 if test x
$gcc_cv_as != x
; then
25539 $as_echo '.quad 0' > conftest.s
25540 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25542 (eval $ac_try) 2>&5
25544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25545 test $ac_status = 0; }; }
25547 gcc_cv_as_ix86_quad
=yes
25549 echo "configure: failed program was" >&5
25552 rm -f conftest.o conftest.s
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25556 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25557 if test $gcc_cv_as_ix86_quad = yes; then
25559 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25564 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25565 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25566 $as_echo_n "(cached) " >&6
25568 gcc_cv_as_ix86_sahf
=no
25569 if test x
$gcc_cv_as != x
; then
25572 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25574 (eval $ac_try) 2>&5
25576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25577 test $ac_status = 0; }; }
25579 gcc_cv_as_ix86_sahf
=yes
25581 echo "configure: failed program was" >&5
25584 rm -f conftest.o conftest.s
25587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25588 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25589 if test $gcc_cv_as_ix86_sahf = yes; then
25591 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25596 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25597 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25598 $as_echo_n "(cached) " >&6
25600 gcc_cv_as_ix86_interunit_movq
=no
25601 if test x
$gcc_cv_as != x
; then
25604 movq %rax, %xmm0' > conftest.s
25605 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25607 (eval $ac_try) 2>&5
25609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25610 test $ac_status = 0; }; }
25612 gcc_cv_as_ix86_interunit_movq
=yes
25614 echo "configure: failed program was" >&5
25617 rm -f conftest.o conftest.s
25620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25621 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25624 cat >>confdefs.h
<<_ACEOF
25625 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25630 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25631 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25632 $as_echo_n "(cached) " >&6
25634 gcc_cv_as_ix86_hle
=no
25635 if test x
$gcc_cv_as != x
; then
25636 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25637 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25639 (eval $ac_try) 2>&5
25641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25642 test $ac_status = 0; }; }
25644 gcc_cv_as_ix86_hle
=yes
25646 echo "configure: failed program was" >&5
25649 rm -f conftest.o conftest.s
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25653 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25654 if test $gcc_cv_as_ix86_hle = yes; then
25656 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25661 $as_echo_n "checking assembler for swap suffix... " >&6; }
25662 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25663 $as_echo_n "(cached) " >&6
25665 gcc_cv_as_ix86_swap
=no
25666 if test x
$gcc_cv_as != x
; then
25667 $as_echo 'movl.s %esp, %ebp' > conftest.s
25668 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25670 (eval $ac_try) 2>&5
25672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25673 test $ac_status = 0; }; }
25675 gcc_cv_as_ix86_swap
=yes
25677 echo "configure: failed program was" >&5
25680 rm -f conftest.o conftest.s
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25684 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25685 if test $gcc_cv_as_ix86_swap = yes; then
25687 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25692 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25693 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25694 $as_echo_n "(cached) " >&6
25696 gcc_cv_as_ix86_diff_sect_delta
=no
25697 if test x
$gcc_cv_as != x
; then
25698 $as_echo '.section .rodata
25704 .L2: nop' > conftest.s
25705 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25707 (eval $ac_try) 2>&5
25709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25710 test $ac_status = 0; }; }
25712 gcc_cv_as_ix86_diff_sect_delta
=yes
25714 echo "configure: failed program was" >&5
25717 rm -f conftest.o conftest.s
25720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25721 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25722 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25724 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25728 # These two are used unconditionally by i386.[ch]; it is to be defined
25729 # to 1 if the feature is present, 0 otherwise.
25730 as_ix86_gotoff_in_data_opt
=
25731 if test x
$gas = xyes
; then
25732 as_ix86_gotoff_in_data_opt
="--32"
25734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25735 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25736 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25737 $as_echo_n "(cached) " >&6
25739 gcc_cv_as_ix86_gotoff_in_data
=no
25740 if test $in_tree_gas = yes; then
25741 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25742 then gcc_cv_as_ix86_gotoff_in_data
=yes
25744 elif test x
$gcc_cv_as != x
; then
25749 .long .L0@GOTOFF' > conftest.s
25750 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25752 (eval $ac_try) 2>&5
25754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25755 test $ac_status = 0; }; }
25757 gcc_cv_as_ix86_gotoff_in_data
=yes
25759 echo "configure: failed program was" >&5
25762 rm -f conftest.o conftest.s
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25766 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25769 cat >>confdefs.h
<<_ACEOF
25770 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25775 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25776 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25777 $as_echo_n "(cached) " >&6
25779 gcc_cv_as_ix86_rep_lock_prefix
=no
25780 if test x
$gcc_cv_as != x
; then
25781 $as_echo 'rep movsl
25786 lock addl %edi, (%eax,%esi)
25787 lock orl $0, (%esp)' > conftest.s
25788 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25790 (eval $ac_try) 2>&5
25792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25793 test $ac_status = 0; }; }
25795 gcc_cv_as_ix86_rep_lock_prefix
=yes
25797 echo "configure: failed program was" >&5
25800 rm -f conftest.o conftest.s
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25804 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25805 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25807 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25812 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25813 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25814 $as_echo_n "(cached) " >&6
25816 gcc_cv_as_ix86_ud2
=no
25817 if test x
$gcc_cv_as != x
; then
25818 $as_echo 'ud2' > conftest.s
25819 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25821 (eval $ac_try) 2>&5
25823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25824 test $ac_status = 0; }; }
25826 gcc_cv_as_ix86_ud2
=yes
25828 echo "configure: failed program was" >&5
25831 rm -f conftest.o conftest.s
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25835 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25836 if test $gcc_cv_as_ix86_ud2 = yes; then
25838 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25843 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25844 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25845 $as_echo_n "(cached) " >&6
25847 gcc_cv_as_ix86_tlsgdplt
=no
25848 if test x
$gcc_cv_as != x
; then
25849 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25850 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25852 (eval $ac_try) 2>&5
25854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25855 test $ac_status = 0; }; }
25857 if test x
$gcc_cv_ld != x \
25858 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25859 gcc_cv_as_ix86_tlsgdplt
=yes
25863 echo "configure: failed program was" >&5
25866 rm -f conftest.o conftest.s
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25870 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25871 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25873 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25878 .section .tdata,"aw'$tls_section_flag'",@progbits
25880 .section .text,"ax",@progbits
25881 call tls_ld@tlsldmplt'
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25883 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25884 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25885 $as_echo_n "(cached) " >&6
25887 gcc_cv_as_ix86_tlsldmplt
=no
25888 if test x
$gcc_cv_as != x
; then
25889 $as_echo "$conftest_s" > conftest.s
25890 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25892 (eval $ac_try) 2>&5
25894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25895 test $ac_status = 0; }; }
25897 if test x
$gcc_cv_ld != x \
25898 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25899 gcc_cv_as_ix86_tlsldmplt
=yes
25903 echo "configure: failed program was" >&5
25906 rm -f conftest.o conftest.s
25909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25910 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25913 cat >>confdefs.h
<<_ACEOF
25914 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25918 # Enforce 32-bit output with gas and gld.
25919 if test x
$gas = xyes
; then
25920 as_ix86_tls_ldm_opt
="--32"
25922 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25923 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
25924 ld_ix86_tls_ldm_opt
="-melf_i386_sol2"
25926 ld_ix86_tls_ldm_opt
="-melf_i386"
25930 .section .text,"ax",@progbits
25932 .type _start, @function
25934 leal value@tlsldm(%ebx), %eax
25935 call ___tls_get_addr@plt
25937 .section .tdata,"aw'$tls_section_flag'",@progbits
25938 .type value, @object
25940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25941 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25942 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25943 $as_echo_n "(cached) " >&6
25945 gcc_cv_as_ix86_tlsldm
=no
25946 if test x
$gcc_cv_as != x
; then
25947 $as_echo "$conftest_s" > conftest.s
25948 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25950 (eval $ac_try) 2>&5
25952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25953 test $ac_status = 0; }; }
25955 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25956 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
25957 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
25958 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
25959 gcc_cv_as_ix86_tlsldm
=yes
25964 echo "configure: failed program was" >&5
25967 rm -f conftest.o conftest.s
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25971 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25974 cat >>confdefs.h
<<_ACEOF
25975 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25983 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25984 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25985 $as_echo_n "(cached) " >&6
25987 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25988 if test $in_tree_gas = yes; then
25989 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25990 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25992 elif test x
$gcc_cv_as != x
; then
25994 addl r15 = @ltoffx(x#), gp
25996 ld8.mov r16 = [r15], x#' > conftest.s
25997 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25999 (eval $ac_try) 2>&5
26001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26002 test $ac_status = 0; }; }
26004 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26006 echo "configure: failed program was" >&5
26009 rm -f conftest.o conftest.s
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26013 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26014 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26016 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26027 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26028 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26029 $as_echo_n "(cached) " >&6
26031 gcc_cv_as_machine_directive
=no
26032 if test x
$gcc_cv_as != x
; then
26033 $as_echo ' .machine ppc7400' > conftest.s
26034 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26036 (eval $ac_try) 2>&5
26038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26039 test $ac_status = 0; }; }
26041 gcc_cv_as_machine_directive
=yes
26043 echo "configure: failed program was" >&5
26046 rm -f conftest.o conftest.s
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26050 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26052 if test x
$gcc_cv_as_machine_directive != xyes
; then
26053 echo "*** This target requires an assembler supporting \".machine\"" >&2
26054 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
26055 test x
$build = x
$target && exit 1
26061 *-*-aix*) conftest_s
=' .machine "pwr5"
26064 *-*-darwin*) conftest_s
=' .text
26066 *) conftest_s
=' .machine power4
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26072 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26073 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26074 $as_echo_n "(cached) " >&6
26076 gcc_cv_as_powerpc_mfcrf
=no
26077 if test $in_tree_gas = yes; then
26078 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26079 then gcc_cv_as_powerpc_mfcrf
=yes
26081 elif test x
$gcc_cv_as != x
; then
26082 $as_echo "$conftest_s" > conftest.s
26083 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26085 (eval $ac_try) 2>&5
26087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26088 test $ac_status = 0; }; }
26090 gcc_cv_as_powerpc_mfcrf
=yes
26092 echo "configure: failed program was" >&5
26095 rm -f conftest.o conftest.s
26098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26099 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26100 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26102 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26107 *-*-aix*) conftest_s
=' .machine "pwr5"
26110 *) conftest_s
=' .machine power5
26115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26116 $as_echo_n "checking assembler for popcntb support... " >&6; }
26117 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26118 $as_echo_n "(cached) " >&6
26120 gcc_cv_as_powerpc_popcntb
=no
26121 if test $in_tree_gas = yes; then
26122 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26123 then gcc_cv_as_powerpc_popcntb
=yes
26125 elif test x
$gcc_cv_as != x
; then
26126 $as_echo "$conftest_s" > conftest.s
26127 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26129 (eval $ac_try) 2>&5
26131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26132 test $ac_status = 0; }; }
26134 gcc_cv_as_powerpc_popcntb
=yes
26136 echo "configure: failed program was" >&5
26139 rm -f conftest.o conftest.s
26142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26143 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26144 if test $gcc_cv_as_powerpc_popcntb = yes; then
26146 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26151 *-*-aix*) conftest_s
=' .machine "pwr5x"
26154 *) conftest_s
=' .machine power5
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26160 $as_echo_n "checking assembler for fp round support... " >&6; }
26161 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26162 $as_echo_n "(cached) " >&6
26164 gcc_cv_as_powerpc_fprnd
=no
26165 if test $in_tree_gas = yes; then
26166 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26167 then gcc_cv_as_powerpc_fprnd
=yes
26169 elif test x
$gcc_cv_as != x
; then
26170 $as_echo "$conftest_s" > conftest.s
26171 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26173 (eval $ac_try) 2>&5
26175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26176 test $ac_status = 0; }; }
26178 gcc_cv_as_powerpc_fprnd
=yes
26180 echo "configure: failed program was" >&5
26183 rm -f conftest.o conftest.s
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26187 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26188 if test $gcc_cv_as_powerpc_fprnd = yes; then
26190 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26195 *-*-aix*) conftest_s
=' .machine "pwr6"
26198 *) conftest_s
=' .machine power6
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26204 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26205 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26206 $as_echo_n "(cached) " >&6
26208 gcc_cv_as_powerpc_mfpgpr
=no
26209 if test $in_tree_gas = yes; then
26210 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26211 then gcc_cv_as_powerpc_mfpgpr
=yes
26213 elif test x
$gcc_cv_as != x
; then
26214 $as_echo "$conftest_s" > conftest.s
26215 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26217 (eval $ac_try) 2>&5
26219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26220 test $ac_status = 0; }; }
26222 gcc_cv_as_powerpc_mfpgpr
=yes
26224 echo "configure: failed program was" >&5
26227 rm -f conftest.o conftest.s
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26231 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26232 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26234 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26239 *-*-aix*) conftest_s
=' .csect .text[PR]
26241 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26245 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26246 *) conftest_s
=' .text
26248 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26252 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26253 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26254 $as_echo_n "(cached) " >&6
26256 gcc_cv_as_powerpc_rel16
=no
26257 if test $in_tree_gas = yes; then
26258 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26259 then gcc_cv_as_powerpc_rel16
=yes
26261 elif test x
$gcc_cv_as != x
; then
26262 $as_echo "$conftest_s" > conftest.s
26263 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26265 (eval $ac_try) 2>&5
26267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26268 test $ac_status = 0; }; }
26270 gcc_cv_as_powerpc_rel16
=yes
26272 echo "configure: failed program was" >&5
26275 rm -f conftest.o conftest.s
26278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26279 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26280 if test $gcc_cv_as_powerpc_rel16 = yes; then
26282 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26287 *-*-aix*) conftest_s
=' .machine "pwr6"
26290 *) conftest_s
=' .machine power6
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26296 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26297 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26298 $as_echo_n "(cached) " >&6
26300 gcc_cv_as_powerpc_cmpb
=no
26301 if test $in_tree_gas = yes; then
26302 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26303 then gcc_cv_as_powerpc_cmpb
=yes
26305 elif test x
$gcc_cv_as != x
; then
26306 $as_echo "$conftest_s" > conftest.s
26307 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26309 (eval $ac_try) 2>&5
26311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26312 test $ac_status = 0; }; }
26314 gcc_cv_as_powerpc_cmpb
=yes
26316 echo "configure: failed program was" >&5
26319 rm -f conftest.o conftest.s
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26323 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26324 if test $gcc_cv_as_powerpc_cmpb = yes; then
26326 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26331 *-*-aix*) conftest_s
=' .machine "pwr6"
26334 *) conftest_s
=' .machine power6
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26340 $as_echo_n "checking assembler for decimal float support... " >&6; }
26341 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26342 $as_echo_n "(cached) " >&6
26344 gcc_cv_as_powerpc_dfp
=no
26345 if test $in_tree_gas = yes; then
26346 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26347 then gcc_cv_as_powerpc_dfp
=yes
26349 elif test x
$gcc_cv_as != x
; then
26350 $as_echo "$conftest_s" > conftest.s
26351 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26353 (eval $ac_try) 2>&5
26355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26356 test $ac_status = 0; }; }
26358 gcc_cv_as_powerpc_dfp
=yes
26360 echo "configure: failed program was" >&5
26363 rm -f conftest.o conftest.s
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26367 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26368 if test $gcc_cv_as_powerpc_dfp = yes; then
26370 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26375 *-*-aix*) conftest_s
=' .machine "pwr7"
26378 *) conftest_s
=' .machine power7
26383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26384 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26385 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26386 $as_echo_n "(cached) " >&6
26388 gcc_cv_as_powerpc_vsx
=no
26389 if test $in_tree_gas = yes; then
26390 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26391 then gcc_cv_as_powerpc_vsx
=yes
26393 elif test x
$gcc_cv_as != x
; then
26394 $as_echo "$conftest_s" > conftest.s
26395 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26397 (eval $ac_try) 2>&5
26399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26400 test $ac_status = 0; }; }
26402 gcc_cv_as_powerpc_vsx
=yes
26404 echo "configure: failed program was" >&5
26407 rm -f conftest.o conftest.s
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26411 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26412 if test $gcc_cv_as_powerpc_vsx = yes; then
26414 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26419 *-*-aix*) conftest_s
=' .machine "pwr7"
26422 *) conftest_s
=' .machine power7
26427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26428 $as_echo_n "checking assembler for popcntd support... " >&6; }
26429 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26430 $as_echo_n "(cached) " >&6
26432 gcc_cv_as_powerpc_popcntd
=no
26433 if test $in_tree_gas = yes; then
26434 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26435 then gcc_cv_as_powerpc_popcntd
=yes
26437 elif test x
$gcc_cv_as != x
; then
26438 $as_echo "$conftest_s" > conftest.s
26439 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26441 (eval $ac_try) 2>&5
26443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26444 test $ac_status = 0; }; }
26446 gcc_cv_as_powerpc_popcntd
=yes
26448 echo "configure: failed program was" >&5
26451 rm -f conftest.o conftest.s
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26455 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26456 if test $gcc_cv_as_powerpc_popcntd = yes; then
26458 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26463 *-*-aix*) conftest_s
=' .machine "pwr8"
26464 .csect .text[PR]';;
26465 *) conftest_s
=' .machine power8
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26470 $as_echo_n "checking assembler for power8 support... " >&6; }
26471 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26472 $as_echo_n "(cached) " >&6
26474 gcc_cv_as_powerpc_power8
=no
26475 if test $in_tree_gas = yes; then
26476 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26477 then gcc_cv_as_powerpc_power8
=yes
26479 elif test x
$gcc_cv_as != x
; then
26480 $as_echo "$conftest_s" > conftest.s
26481 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26483 (eval $ac_try) 2>&5
26485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26486 test $ac_status = 0; }; }
26488 gcc_cv_as_powerpc_power8
=yes
26490 echo "configure: failed program was" >&5
26493 rm -f conftest.o conftest.s
26496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26497 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26498 if test $gcc_cv_as_powerpc_power8 = yes; then
26500 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26505 *-*-aix*) conftest_s
=' .machine "pwr9"
26506 .csect .text[PR]';;
26507 *) conftest_s
=' .machine power9
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26512 $as_echo_n "checking assembler for power9 support... " >&6; }
26513 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26514 $as_echo_n "(cached) " >&6
26516 gcc_cv_as_powerpc_power9
=no
26517 if test $in_tree_gas = yes; then
26518 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26519 then gcc_cv_as_powerpc_power9
=yes
26521 elif test x
$gcc_cv_as != x
; then
26522 $as_echo "$conftest_s" > conftest.s
26523 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26525 (eval $ac_try) 2>&5
26527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26528 test $ac_status = 0; }; }
26530 gcc_cv_as_powerpc_power9
=yes
26532 echo "configure: failed program was" >&5
26535 rm -f conftest.o conftest.s
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26539 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26540 if test $gcc_cv_as_powerpc_power9 = yes; then
26542 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26547 *-*-aix*) conftest_s
=' .csect .text[PR]
26549 *) conftest_s
=' .text
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26554 $as_echo_n "checking assembler for lwsync support... " >&6; }
26555 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26556 $as_echo_n "(cached) " >&6
26558 gcc_cv_as_powerpc_lwsync
=no
26559 if test $in_tree_gas = yes; then
26560 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26561 then gcc_cv_as_powerpc_lwsync
=yes
26563 elif test x
$gcc_cv_as != x
; then
26564 $as_echo "$conftest_s" > conftest.s
26565 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26567 (eval $ac_try) 2>&5
26569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26570 test $ac_status = 0; }; }
26572 gcc_cv_as_powerpc_lwsync
=yes
26574 echo "configure: failed program was" >&5
26577 rm -f conftest.o conftest.s
26580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26581 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26582 if test $gcc_cv_as_powerpc_lwsync = yes; then
26584 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26589 *-*-aix*) conftest_s
=' .machine "476"
26592 *) conftest_s
=' .machine "476"
26597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26598 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26599 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26600 $as_echo_n "(cached) " >&6
26602 gcc_cv_as_powerpc_dci
=no
26603 if test $in_tree_gas = yes; then
26604 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26605 then gcc_cv_as_powerpc_dci
=yes
26607 elif test x
$gcc_cv_as != x
; then
26608 $as_echo "$conftest_s" > conftest.s
26609 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26611 (eval $ac_try) 2>&5
26613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26614 test $ac_status = 0; }; }
26616 gcc_cv_as_powerpc_dci
=yes
26618 echo "configure: failed program was" >&5
26621 rm -f conftest.o conftest.s
26624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26625 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26626 if test $gcc_cv_as_powerpc_dci = yes; then
26628 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26633 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26634 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26635 $as_echo_n "(cached) " >&6
26637 gcc_cv_as_powerpc_gnu_attribute
=no
26638 if test $in_tree_gas = yes; then
26639 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26640 then gcc_cv_as_powerpc_gnu_attribute
=yes
26642 elif test x
$gcc_cv_as != x
; then
26643 $as_echo '.gnu_attribute 4,1' > conftest.s
26644 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26646 (eval $ac_try) 2>&5
26648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26649 test $ac_status = 0; }; }
26651 gcc_cv_as_powerpc_gnu_attribute
=yes
26653 echo "configure: failed program was" >&5
26656 rm -f conftest.o conftest.s
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26660 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26661 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26663 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26668 $as_echo_n "checking assembler for tls marker support... " >&6; }
26669 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26670 $as_echo_n "(cached) " >&6
26672 gcc_cv_as_powerpc_tls_markers
=no
26673 if test $in_tree_gas = yes; then
26674 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26675 then gcc_cv_as_powerpc_tls_markers
=yes
26677 elif test x
$gcc_cv_as != x
; then
26678 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26679 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26681 (eval $ac_try) 2>&5
26683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26684 test $ac_status = 0; }; }
26686 gcc_cv_as_powerpc_tls_markers
=yes
26688 echo "configure: failed program was" >&5
26691 rm -f conftest.o conftest.s
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26695 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26696 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26698 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26703 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26704 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26705 $as_echo_n "(cached) " >&6
26707 gcc_cv_as_powerpc_entry_markers
=no
26708 if test $in_tree_gas = yes; then
26709 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26710 then gcc_cv_as_powerpc_entry_markers
=yes
26712 elif test x
$gcc_cv_as != x
; then
26713 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26714 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26716 (eval $ac_try) 2>&5
26718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26719 test $ac_status = 0; }; }
26721 gcc_cv_as_powerpc_entry_markers
=yes
26723 echo "configure: failed program was" >&5
26726 rm -f conftest.o conftest.s
26729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26730 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26731 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26733 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26740 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26741 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26742 $as_echo_n "(cached) " >&6
26744 gcc_cv_as_aix_ref
=no
26745 if test $in_tree_gas = yes; then
26746 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26747 then gcc_cv_as_aix_ref
=yes
26749 elif test x
$gcc_cv_as != x
; then
26750 $as_echo ' .csect stuff[rw]
26756 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26758 (eval $ac_try) 2>&5
26760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26761 test $ac_status = 0; }; }
26763 gcc_cv_as_aix_ref
=yes
26765 echo "configure: failed program was" >&5
26768 rm -f conftest.o conftest.s
26771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26772 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26773 if test $gcc_cv_as_aix_ref = yes; then
26775 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26780 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26781 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26782 $as_echo_n "(cached) " >&6
26784 gcc_cv_as_aix_dwloc
=no
26785 if test $in_tree_gas = yes; then
26786 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26787 then gcc_cv_as_aix_dwloc
=yes
26789 elif test x
$gcc_cv_as != x
; then
26790 $as_echo ' .dwsect 0xA0000
26794 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26796 (eval $ac_try) 2>&5
26798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26799 test $ac_status = 0; }; }
26801 gcc_cv_as_aix_dwloc
=yes
26803 echo "configure: failed program was" >&5
26806 rm -f conftest.o conftest.s
26809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26810 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26811 if test $gcc_cv_as_aix_dwloc = yes; then
26813 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26822 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26823 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26824 $as_echo_n "(cached) " >&6
26826 gcc_cv_as_mips_explicit_relocs
=no
26827 if test $in_tree_gas = yes; then
26828 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26829 then gcc_cv_as_mips_explicit_relocs
=yes
26831 elif test x
$gcc_cv_as != x
; then
26832 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26833 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26835 (eval $ac_try) 2>&5
26837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26838 test $ac_status = 0; }; }
26840 gcc_cv_as_mips_explicit_relocs
=yes
26842 echo "configure: failed program was" >&5
26845 rm -f conftest.o conftest.s
26848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26849 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26850 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26851 if test x
$target_cpu_default = x
26852 then target_cpu_default
=MASK_EXPLICIT_RELOCS
26853 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26858 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26859 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26860 $as_echo_n "(cached) " >&6
26862 gcc_cv_as_mips_no_shared
=no
26863 if test $in_tree_gas = yes; then
26864 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26865 then gcc_cv_as_mips_no_shared
=yes
26867 elif test x
$gcc_cv_as != x
; then
26868 $as_echo 'nop' > conftest.s
26869 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26871 (eval $ac_try) 2>&5
26873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26874 test $ac_status = 0; }; }
26876 gcc_cv_as_mips_no_shared
=yes
26878 echo "configure: failed program was" >&5
26881 rm -f conftest.o conftest.s
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26885 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26886 if test $gcc_cv_as_mips_no_shared = yes; then
26888 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26893 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26894 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26895 $as_echo_n "(cached) " >&6
26897 gcc_cv_as_mips_gnu_attribute
=no
26898 if test $in_tree_gas = yes; then
26899 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26900 then gcc_cv_as_mips_gnu_attribute
=yes
26902 elif test x
$gcc_cv_as != x
; then
26903 $as_echo '.gnu_attribute 4,1' > conftest.s
26904 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26906 (eval $ac_try) 2>&5
26908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26909 test $ac_status = 0; }; }
26911 gcc_cv_as_mips_gnu_attribute
=yes
26913 echo "configure: failed program was" >&5
26916 rm -f conftest.o conftest.s
26919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26920 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26921 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26923 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26928 $as_echo_n "checking assembler for .module support... " >&6; }
26929 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26930 $as_echo_n "(cached) " >&6
26932 gcc_cv_as_mips_dot_module
=no
26933 if test x
$gcc_cv_as != x
; then
26934 $as_echo '.module mips2
26935 .module fp=xx' > conftest.s
26936 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26938 (eval $ac_try) 2>&5
26940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26941 test $ac_status = 0; }; }
26943 gcc_cv_as_mips_dot_module
=yes
26945 echo "configure: failed program was" >&5
26948 rm -f conftest.o conftest.s
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26952 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26953 if test $gcc_cv_as_mips_dot_module = yes; then
26955 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26958 if test x
$gcc_cv_as_mips_dot_module = xno \
26959 && test x
$with_fp_32 != x
; then
26960 as_fn_error
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26964 $as_echo_n "checking assembler for .micromips support... " >&6; }
26965 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26966 $as_echo_n "(cached) " >&6
26968 gcc_cv_as_micromips_support
=no
26969 if test x
$gcc_cv_as != x
; then
26970 $as_echo '.set micromips' > conftest.s
26971 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26973 (eval $ac_try) 2>&5
26975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26976 test $ac_status = 0; }; }
26978 gcc_cv_as_micromips_support
=yes
26980 echo "configure: failed program was" >&5
26983 rm -f conftest.o conftest.s
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26987 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26988 if test $gcc_cv_as_micromips_support = yes; then
26990 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26995 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26996 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26997 $as_echo_n "(cached) " >&6
26999 gcc_cv_as_mips_dtprelword
=no
27000 if test $in_tree_gas = yes; then
27001 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27002 then gcc_cv_as_mips_dtprelword
=yes
27004 elif test x
$gcc_cv_as != x
; then
27005 $as_echo '.section .tdata,"awT",@progbits
27009 .dtprelword x+0x8000' > conftest.s
27010 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27012 (eval $ac_try) 2>&5
27014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27015 test $ac_status = 0; }; }
27017 gcc_cv_as_mips_dtprelword
=yes
27019 echo "configure: failed program was" >&5
27022 rm -f conftest.o conftest.s
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27026 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27027 if test $gcc_cv_as_mips_dtprelword = yes; then
27029 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27034 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27035 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27036 $as_echo_n "(cached) " >&6
27038 gcc_cv_as_mips_dspr1_mult
=no
27039 if test x
$gcc_cv_as != x
; then
27040 $as_echo ' .set mips32r2
27048 multu $ac3,$4,$5' > conftest.s
27049 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27051 (eval $ac_try) 2>&5
27053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27054 test $ac_status = 0; }; }
27056 gcc_cv_as_mips_dspr1_mult
=yes
27058 echo "configure: failed program was" >&5
27061 rm -f conftest.o conftest.s
27064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27065 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27066 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27068 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27073 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27074 gcc_cv_as_ld_jalr_reloc
=no
27075 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27076 if test $in_tree_ld = yes ; then
27077 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 \
27078 && test $in_tree_ld_is_elf = yes; then
27079 gcc_cv_as_ld_jalr_reloc
=yes
27081 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27082 echo ' .ent x' > conftest.s
27083 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27084 echo ' lw $25,%call16(y)($28)' >> conftest.s
27085 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27086 echo '1: jalr $25' >> conftest.s
27087 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27088 echo '1: jalr $25' >> conftest.s
27089 echo ' .end x' >> conftest.s
27090 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
27091 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
27092 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
27093 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
27094 gcc_cv_as_ld_jalr_reloc
=yes
27100 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27101 if test x
$target_cpu_default = x
; then
27102 target_cpu_default
=MASK_RELAX_PIC_CALLS
27104 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27108 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27111 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27112 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27113 $as_echo_n "(cached) " >&6
27115 gcc_cv_ld_mips_personality_relaxation
=no
27116 if test $in_tree_ld = yes ; then
27117 if test "$gcc_cv_gld_major_version" -eq 2 \
27118 -a "$gcc_cv_gld_minor_version" -ge 21 \
27119 -o "$gcc_cv_gld_major_version" -gt 2; then
27120 gcc_cv_ld_mips_personality_relaxation
=yes
27122 elif test x
$gcc_cv_as != x \
27123 -a x
$gcc_cv_ld != x \
27124 -a x
$gcc_cv_readelf != x
; then
27125 cat > conftest.s
<<EOF
27127 .cfi_personality 0x80,indirect_ptr
27134 .section .data,"aw",@progbits
27138 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
27139 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
27140 if $gcc_cv_readelf -d conftest
2>&1 \
27141 |
grep TEXTREL
> /dev
/null
2>&1; then
27143 elif $gcc_cv_readelf --relocs conftest
2>&1 \
27144 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
27147 gcc_cv_ld_mips_personality_relaxation
=yes
27151 rm -f conftest.s conftest.o conftest
27153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27154 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27155 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
27157 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27162 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27163 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27164 $as_echo_n "(cached) " >&6
27166 gcc_cv_as_mips_nan
=no
27167 if test x
$gcc_cv_as != x
; then
27168 $as_echo '' > conftest.s
27169 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27171 (eval $ac_try) 2>&5
27173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27174 test $ac_status = 0; }; }
27176 gcc_cv_as_mips_nan
=yes
27178 echo "configure: failed program was" >&5
27181 rm -f conftest.o conftest.s
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27185 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27186 if test $gcc_cv_as_mips_nan = yes; then
27188 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27191 if test x
$gcc_cv_as_mips_nan = xno \
27192 && test x
$with_nan != x
; then
27193 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27198 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27199 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27200 $as_echo_n "(cached) " >&6
27202 gcc_cv_as_s390_gnu_attribute
=no
27203 if test $in_tree_gas = yes; then
27204 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27205 then gcc_cv_as_s390_gnu_attribute
=yes
27207 elif test x
$gcc_cv_as != x
; then
27208 $as_echo '.gnu_attribute 8,1' > conftest.s
27209 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27211 (eval $ac_try) 2>&5
27213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27214 test $ac_status = 0; }; }
27216 gcc_cv_as_s390_gnu_attribute
=yes
27218 echo "configure: failed program was" >&5
27221 rm -f conftest.o conftest.s
27224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27225 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27226 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27228 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27232 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27233 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27234 $as_echo_n "(cached) " >&6
27236 gcc_cv_as_s390_machine_machinemode
=no
27237 if test $in_tree_gas = yes; then
27238 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27239 then gcc_cv_as_s390_machine_machinemode
=yes
27241 elif test x
$gcc_cv_as != x
; then
27242 $as_echo ' .machinemode push
27245 .machine pop' > conftest.s
27246 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27248 (eval $ac_try) 2>&5
27250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27251 test $ac_status = 0; }; }
27253 gcc_cv_as_s390_machine_machinemode
=yes
27255 echo "configure: failed program was" >&5
27258 rm -f conftest.o conftest.s
27261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27262 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27263 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27265 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27269 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27270 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27271 $as_echo_n "(cached) " >&6
27273 gcc_cv_as_s390_architecture_modifiers
=no
27274 if test $in_tree_gas = yes; then
27275 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27276 then gcc_cv_as_s390_architecture_modifiers
=yes
27278 elif test x
$gcc_cv_as != x
; then
27279 $as_echo ' .machine z13+vx ' > conftest.s
27280 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27282 (eval $ac_try) 2>&5
27284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27285 test $ac_status = 0; }; }
27287 gcc_cv_as_s390_architecture_modifiers
=yes
27289 echo "configure: failed program was" >&5
27292 rm -f conftest.o conftest.s
27295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27296 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27297 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27299 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27305 # Mips and HP-UX need the GNU assembler.
27306 # Linux on IA64 might be able to use the Intel assembler.
27309 mips
*-*-* |
*-*-hpux* )
27310 if test x
$gas_flag = xyes \
27311 ||
test x
"$host" != x
"$build" \
27312 ||
test ! -x "$gcc_cv_as" \
27313 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
27316 echo "*** This configuration requires the GNU assembler" >&2
27322 # ??? Not all targets support dwarf2 debug_line, even within a version
27323 # of gas. Moreover, we need to emit a valid instruction to trigger any
27324 # info to the output file. So, as supported targets are added to gas 2.11,
27325 # add some instruction here to (also) show we expect this might work.
27326 # ??? Once 2.11 is released, probably need to add first known working
27327 # version to the per-target configury.
27328 case "$cpu_type" in
27329 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27330 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
27331 | visium | xstormy16 | xtensa
)
27341 if test x
"$insn" != x
; then
27343 .file 1 \"conftest.s\"
27346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27347 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27348 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27349 $as_echo_n "(cached) " >&6
27351 gcc_cv_as_dwarf2_debug_line
=no
27352 if test $in_tree_gas = yes; then
27353 if test $in_tree_gas_is_elf = yes \
27354 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27355 then gcc_cv_as_dwarf2_debug_line
=yes
27357 elif test x
$gcc_cv_as != x
; then
27358 $as_echo "$conftest_s" > conftest.s
27359 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27361 (eval $ac_try) 2>&5
27363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27364 test $ac_status = 0; }; }
27366 if test x
$gcc_cv_objdump != x \
27367 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
27368 |
grep debug_line
> /dev
/null
2>&1; then
27369 gcc_cv_as_dwarf2_debug_line
=yes
27372 echo "configure: failed program was" >&5
27375 rm -f conftest.o conftest.s
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27379 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27382 # The .debug_line file table must be in the exact order that
27383 # we specified the files, since these indices are also used
27384 # by DW_AT_decl_file. Approximate this test by testing if
27385 # the assembler bitches if the same index is assigned twice.
27386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27387 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27388 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27389 $as_echo_n "(cached) " >&6
27391 gcc_cv_as_dwarf2_file_buggy
=no
27392 if test x
$gcc_cv_as != x
; then
27393 $as_echo ' .file 1 "foo.s"
27394 .file 1 "bar.s"' > conftest.s
27395 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27397 (eval $ac_try) 2>&5
27399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27400 test $ac_status = 0; }; }
27402 gcc_cv_as_dwarf2_file_buggy
=yes
27404 echo "configure: failed program was" >&5
27407 rm -f conftest.o conftest.s
27410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27411 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27414 if test $gcc_cv_as_dwarf2_debug_line = yes \
27415 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
27417 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27422 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27423 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27424 $as_echo_n "(cached) " >&6
27426 gcc_cv_as_gdwarf2_flag
=no
27427 if test $in_tree_gas = yes; then
27428 if test $in_tree_gas_is_elf = yes \
27429 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27430 then gcc_cv_as_gdwarf2_flag
=yes
27432 elif test x
$gcc_cv_as != x
; then
27433 $as_echo "$insn" > conftest.s
27434 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27436 (eval $ac_try) 2>&5
27438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27439 test $ac_status = 0; }; }
27441 gcc_cv_as_gdwarf2_flag
=yes
27443 echo "configure: failed program was" >&5
27446 rm -f conftest.o conftest.s
27449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27450 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27451 if test $gcc_cv_as_gdwarf2_flag = yes; then
27453 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27458 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27459 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27460 $as_echo_n "(cached) " >&6
27462 gcc_cv_as_gstabs_flag
=no
27463 if test $in_tree_gas = yes; then
27464 if test $in_tree_gas_is_elf = yes \
27465 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27466 then gcc_cv_as_gstabs_flag
=yes
27468 elif test x
$gcc_cv_as != x
; then
27469 $as_echo "$insn" > conftest.s
27470 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27472 (eval $ac_try) 2>&5
27474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27475 test $ac_status = 0; }; }
27477 gcc_cv_as_gstabs_flag
=yes
27479 echo "configure: failed program was" >&5
27482 rm -f conftest.o conftest.s
27485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27486 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27487 if test $gcc_cv_as_gstabs_flag = yes; then
27489 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27494 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27495 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27496 $as_echo_n "(cached) " >&6
27498 gcc_cv_as_debug_prefix_map_flag
=no
27499 if test $in_tree_gas = yes; then
27500 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27501 then gcc_cv_as_debug_prefix_map_flag
=yes
27503 elif test x
$gcc_cv_as != x
; then
27504 $as_echo "$insn" > conftest.s
27505 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27507 (eval $ac_try) 2>&5
27509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27510 test $ac_status = 0; }; }
27512 gcc_cv_as_debug_prefix_map_flag
=yes
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_debug_prefix_map_flag" >&5
27521 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27522 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27524 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27530 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27531 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27532 $as_echo_n "(cached) " >&6
27534 gcc_cv_as_compress_debug
=no
27535 if test x
$gcc_cv_as != x
; then
27536 $as_echo '' > conftest.s
27537 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27539 (eval $ac_try) 2>&5
27541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27542 test $ac_status = 0; }; }
27544 # gas compiled without zlib cannot compress debug sections and warns
27545 # about it, but still exits successfully. So check for this, too.
27546 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
27548 gcc_cv_as_compress_debug
=0
27549 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
27551 gcc_cv_as_compress_debug
=1
27552 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27553 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27555 gcc_cv_as_compress_debug
=0
27556 # FIXME: Future gas versions will support ELF gABI style via
27557 # --compress-debug-sections[=type].
27560 echo "configure: failed program was" >&5
27563 rm -f conftest.o conftest.s
27566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27567 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27570 cat >>confdefs.h
<<_ACEOF
27571 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27575 cat >>confdefs.h
<<_ACEOF
27576 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27580 cat >>confdefs.h
<<_ACEOF
27581 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27586 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27587 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27588 $as_echo_n "(cached) " >&6
27590 gcc_cv_as_lcomm_with_alignment
=no
27591 if test x
$gcc_cv_as != x
; then
27592 $as_echo '.lcomm bar,4,16' > conftest.s
27593 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27595 (eval $ac_try) 2>&5
27597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27598 test $ac_status = 0; }; }
27600 gcc_cv_as_lcomm_with_alignment
=yes
27602 echo "configure: failed program was" >&5
27605 rm -f conftest.o conftest.s
27608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27609 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27610 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27612 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27616 if test x
$with_sysroot = x
&& test x
$host = x
$target \
27617 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27618 && test "$prefix" != "NONE"; then
27620 cat >>confdefs.h
<<_ACEOF
27621 #define PREFIX_INCLUDE_DIR "$prefix/include"
27626 # Determine the version of glibc, if any, used on the target.
27627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27628 $as_echo_n "checking for target glibc version... " >&6; }
27630 # Check whether --with-glibc-version was given.
27631 if test "${with_glibc_version+set}" = set; then :
27632 withval
=$with_glibc_version;
27633 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27634 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27635 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27637 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
27641 glibc_version_major
=0
27642 glibc_version_minor
=0
27643 if test -f $target_header_dir/features.h \
27644 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27645 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27646 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27647 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27652 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27654 cat >>confdefs.h
<<_ACEOF
27655 #define TARGET_GLIBC_MAJOR $glibc_version_major
27659 cat >>confdefs.h
<<_ACEOF
27660 #define TARGET_GLIBC_MINOR $glibc_version_minor
27664 # Check whether --enable-gnu-unique-object was given.
27665 if test "${enable_gnu_unique_object+set}" = set; then :
27666 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27668 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27669 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27673 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27674 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27675 $as_echo_n "(cached) " >&6
27677 gcc_cv_as_gnu_unique_object
=no
27678 if test $in_tree_gas = yes; then
27679 if test $in_tree_gas_is_elf = yes \
27680 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27681 then gcc_cv_as_gnu_unique_object
=yes
27683 elif test x
$gcc_cv_as != x
; then
27684 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27685 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27687 (eval $ac_try) 2>&5
27689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27690 test $ac_status = 0; }; }
27692 gcc_cv_as_gnu_unique_object
=yes
27694 echo "configure: failed program was" >&5
27697 rm -f conftest.o conftest.s
27700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27701 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27702 if test $gcc_cv_as_gnu_unique_object = yes; then
27703 # We need to unquote above to to use the definition from config.gcc.
27704 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27706 if test $glibc_version_major -gt 2 \
27707 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27708 enable_gnu_unique_object
=yes
27714 if test x
$enable_gnu_unique_object = xyes
; then
27716 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27721 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27722 if test "${gcc_cv_as_line_zero+set}" = set; then :
27723 $as_echo_n "(cached) " >&6
27725 gcc_cv_as_line_zero
=no
27726 if test $in_tree_gas = yes; then
27727 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27728 then gcc_cv_as_line_zero
=yes
27730 elif test "x$gcc_cv_as" != x
; then
27731 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27732 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27734 (eval $ac_try) 2>&5
27736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27737 test $ac_status = 0; }; } &&
27738 test "x`cat conftest.out`" = x
27740 gcc_cv_as_line_zero
=yes
27742 echo "configure: failed program was" >&5
27744 echo "configure: error output was" >&5
27745 cat conftest.out
>&5
27747 rm -f conftest.o conftest.s conftest.out
27750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27751 $as_echo "$gcc_cv_as_line_zero" >&6; }
27752 if test "x$gcc_cv_as_line_zero" = xyes
; then
27754 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27759 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27760 gcc_cv_ld_eh_frame_hdr
=no
27761 if test $in_tree_ld = yes ; then
27762 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 \
27763 && test $in_tree_ld_is_elf = yes; then
27764 gcc_cv_ld_eh_frame_hdr
=yes
27766 elif test x
$gcc_cv_ld != x
; then
27767 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27768 # Check if linker supports --eh-frame-hdr option
27769 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
27770 gcc_cv_ld_eh_frame_hdr
=yes
27775 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27776 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
27777 gcc_cv_ld_eh_frame_hdr
=yes
27784 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
27786 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27790 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27793 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27794 gcc_cv_ld_eh_frame_ciev3
=no
27795 if test $in_tree_ld = yes ; then
27796 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 \
27797 && test $in_tree_ld_is_elf = yes; then
27798 gcc_cv_ld_eh_frame_ciev3
=yes
27800 elif test x
$gcc_cv_ld != x
; then
27801 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27802 gcc_cv_ld_eh_frame_ciev3
=yes
27803 if test 0"$ld_date" -lt 20040513; then
27804 if test -n "$ld_date"; then
27805 # If there was date string, but was earlier than 2004-05-13, fail
27806 gcc_cv_ld_eh_frame_ciev3
=no
27807 elif test "$ld_vers_major" -lt 2; then
27808 gcc_cv_ld_eh_frame_ciev3
=no
27809 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27810 gcc_cv_ld_eh_frame_ciev3
=no
27816 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27817 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
27818 gcc_cv_ld_eh_frame_ciev3
=yes
27825 cat >>confdefs.h
<<_ACEOF
27826 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27830 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27833 $as_echo_n "checking linker position independent executable support... " >&6; }
27835 if test $in_tree_ld = yes ; then
27837 # Full PIE support on Solaris was only introduced in gld 2.26.
27838 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
27839 *) gcc_gld_pie_min_version
=15 ;;
27841 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 \
27842 && test $in_tree_ld_is_elf = yes; then
27845 elif test x
$gcc_cv_ld != x
; then
27846 # Check if linker supports -pie option
27847 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
27851 if echo "$ld_ver" |
grep GNU
> /dev
/null \
27852 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27859 *-*-solaris2.1
[1-9]*)
27860 # Solaris 11.x and Solaris 12 added PIE support.
27861 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
27868 if test x
"$gcc_cv_ld_pie" = xyes
; then
27870 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27874 $as_echo "$gcc_cv_ld_pie" >&6; }
27876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27877 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27878 gcc_cv_ld_pie_copyreloc
=no
27879 if test $gcc_cv_ld_pie = yes ; then
27880 if test $in_tree_ld = yes ; then
27881 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
27882 gcc_cv_ld_pie_copyreloc
=yes
27884 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27885 # Check if linker supports -pie option with copy reloc
27887 i?
86-*-linux* | x86_64-
*-linux*)
27888 cat > conftest1.s
<<EOF
27891 .type a_glob, @object
27896 cat > conftest2.s
<<EOF
27899 .type main, @function
27901 movl %eax, a_glob(%rip)
27904 .section .data.rel,"aw",@progbits
27909 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27910 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
27911 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27912 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
27913 gcc_cv_ld_pie_copyreloc
=yes
27915 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27921 cat >>confdefs.h
<<_ACEOF
27922 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27926 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27929 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27930 gcc_cv_ld_eh_gc_sections
=no
27931 if test $in_tree_ld = yes ; then
27932 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 \
27933 && test $in_tree_ld_is_elf = yes; then
27934 gcc_cv_ld_eh_gc_sections
=yes
27936 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27937 cat > conftest.s
<<EOF
27940 .type _start, @function
27943 .size _start, .-_start
27944 .section .text.foo,"ax",@progbits
27945 .type foo, @function
27949 .section .gcc_except_table.foo,"a",@progbits
27952 .section .eh_frame,"a",@progbits
27955 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27956 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27957 |
grep "gc-sections option ignored" > /dev
/null
; then
27958 gcc_cv_ld_eh_gc_sections
=no
27959 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27960 |
grep gcc_except_table
> /dev
/null
; then
27961 gcc_cv_ld_eh_gc_sections
=yes
27962 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27963 if test x
$gcc_cv_as_comdat_group != xyes
; then
27964 gcc_cv_ld_eh_gc_sections
=no
27965 cat > conftest.s
<<EOF
27968 .type _start, @function
27971 .size _start, .-_start
27972 .section .gnu.linkonce.t.foo,"ax",@progbits
27973 .type foo, @function
27977 .section .gcc_except_table.foo,"a",@progbits
27980 .section .eh_frame,"a",@progbits
27983 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27984 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27985 |
grep "gc-sections option ignored" > /dev
/null
; then
27986 gcc_cv_ld_eh_gc_sections
=no
27987 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27988 |
grep gcc_except_table
> /dev
/null
; then
27989 gcc_cv_ld_eh_gc_sections
=yes
27995 rm -f conftest.s conftest.o conftest
27999 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28000 gcc_cv_ld_eh_gc_sections
=no
28003 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
28005 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28009 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28012 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28013 gcc_cv_ld_eh_gc_sections_bug
=no
28014 if test $in_tree_ld = yes ; then
28015 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 \
28016 && test $in_tree_ld_is_elf = yes; then
28017 gcc_cv_ld_eh_gc_sections_bug
=yes
28019 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
28020 gcc_cv_ld_eh_gc_sections_bug
=yes
28021 cat > conftest.s
<<EOF
28024 .type _start, @function
28027 .size _start, .-_start
28028 .section .text.startup.foo,"ax",@progbits
28029 .type foo, @function
28033 .section .gcc_except_table.foo,"a",@progbits
28036 .section .eh_frame,"a",@progbits
28039 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28040 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28041 |
grep "gc-sections option ignored" > /dev
/null
; then
28043 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28044 |
grep gcc_except_table
> /dev
/null
; then
28045 gcc_cv_ld_eh_gc_sections_bug
=no
28048 rm -f conftest.s conftest.o conftest
28050 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
28052 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28056 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28059 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28060 # gold/gld support compressed debug sections since binutils 2.19/2.21
28061 if test $in_tree_ld = yes ; then
28062 gcc_cv_ld_compress_debug
=0
28063 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 \
28064 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28065 gcc_cv_ld_compress_debug
=2
28066 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28067 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 \
28068 && test $in_tree_ld_is_elf = yes; then
28069 gcc_cv_ld_compress_debug
=1
28071 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28072 gcc_cv_ld_compress_debug
=1
28073 if test 0"$ld_date" -lt 20050308; then
28074 if test -n "$ld_date"; then
28075 # If there was date string, but was earlier than 2005-03-08, fail
28076 gcc_cv_ld_compress_debug
=0
28077 elif test "$ld_vers_major" -lt 2; then
28078 gcc_cv_ld_compress_debug
=0
28079 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28080 gcc_cv_ld_compress_debug
=0
28083 if test $ld_is_gold = yes; then
28084 gcc_cv_ld_compress_debug
=2
28085 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28088 case "${target}" in
28090 # Introduced in Solaris 11.2.
28091 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
28092 gcc_cv_ld_compress_debug
=3
28093 gcc_cv_ld_compress_debug_option
="-z compress-sections"
28095 gcc_cv_ld_compress_debug
=0
28099 # Assume linkers other than GNU ld don't support compessed debug
28101 gcc_cv_ld_compress_debug
=0
28106 cat >>confdefs.h
<<_ACEOF
28107 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28111 cat >>confdefs.h
<<_ACEOF
28112 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28116 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28118 if test x
"$ld64_flag" = x
"yes"; then
28120 # Set defaults for possibly untestable items.
28121 gcc_cv_ld64_export_dynamic
=0
28123 if test "$build" = "$host"; then
28129 # On Darwin, because of FAT library support, it is often possible to execute
28130 # exes from compatible archs even when the host differs from the build system.
28131 case "$build","$host" in
28132 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
28133 darwin_try_test
=1;;
28137 # If the configurer specified a minimum ld64 version to be supported, then use
28138 # that to determine feature support.
28139 if test x
"${gcc_cv_ld64_version}" != x
; then
28140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28141 $as_echo_n "checking ld64 specified version... " >&6; }
28142 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28144 $as_echo "$gcc_cv_ld64_major" >&6; }
28145 if test "$gcc_cv_ld64_major" -ge 236; then
28146 gcc_cv_ld64_export_dynamic
=1
28148 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28149 # If the version was not specified, try to find it.
28150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28151 $as_echo_n "checking linker version... " >&6; }
28152 if test x
"${gcc_cv_ld64_version}" = x
; then
28153 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28156 $as_echo "$gcc_cv_ld64_version" >&6; }
28158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28159 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28160 gcc_cv_ld64_export_dynamic
=1
28161 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
28162 gcc_cv_ld64_export_dynamic
=0
28164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28165 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28168 if test x
"${gcc_cv_ld64_version}" != x
; then
28170 cat >>confdefs.h
<<_ACEOF
28171 #define LD64_VERSION "${gcc_cv_ld64_version}"
28177 cat >>confdefs.h
<<_ACEOF
28178 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28188 $as_echo_n "checking linker --as-needed support... " >&6; }
28189 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28190 $as_echo_n "(cached) " >&6
28192 gcc_cv_ld_as_needed
=no
28193 gcc_cv_ld_as_needed_option
='--as-needed'
28194 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
28195 if test $in_tree_ld = yes ; then
28196 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 \
28197 && test $in_tree_ld_is_elf = yes; then
28198 gcc_cv_ld_as_needed
=yes
28200 elif test x
$gcc_cv_ld != x
; then
28201 # Check if linker supports --as-needed and --no-as-needed options
28202 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
28203 gcc_cv_ld_as_needed
=yes
28206 # Solaris 2 ld always supports -z ignore/-z record.
28208 gcc_cv_ld_as_needed
=yes
28209 gcc_cv_ld_as_needed_option
="-z ignore"
28210 gcc_cv_ld_no_as_needed_option
="-z record"
28215 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28216 # dl_iterate_phdr, i.e. since Solaris 11.
28218 *-*-solaris2.1
[1-9]*)
28220 i?
86-*-* | x86_64-
*-*)
28221 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28222 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28223 gcc_cv_ld_as_needed
=no
28229 gcc_cv_ld_as_needed
=no
28234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28235 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28236 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
28238 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28241 cat >>confdefs.h
<<_ACEOF
28242 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28246 cat >>confdefs.h
<<_ACEOF
28247 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28253 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28254 saved_LDFLAGS
="$LDFLAGS"
28255 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
28256 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28258 /* end confdefs.h. */
28259 int main(void) {return 0;}
28261 if ac_fn_cxx_try_link
"$LINENO"; then :
28262 gcc_cv_ld_clearcap
=yes; break
28264 gcc_cv_ld_clearcap
=no
28266 rm -f core conftest.err conftest.
$ac_objext \
28267 conftest
$ac_exeext conftest.
$ac_ext
28269 LDFLAGS
="$saved_LDFLAGS"
28270 if test "x$gcc_cv_ld_clearcap" = xyes
; then
28272 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28274 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28278 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28280 case "$target:$tm_file" in
28281 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
28284 emul_name
="-melf64lppc"
28287 emul_name
="-melf64ppc"
28290 emul_name
="-melf64ppc_fbsd"
28293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28294 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28295 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28296 $as_echo_n "(cached) " >&6
28298 gcc_cv_ld_no_dot_syms
=no
28299 if test x
"$ld_is_gold" = xyes
; then
28300 gcc_cv_ld_no_dot_syms
=yes
28301 elif test $in_tree_ld = yes ; then
28302 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
28303 gcc_cv_ld_no_dot_syms
=yes
28305 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28306 cat > conftest1.s
<<EOF
28310 cat > conftest2.s
<<EOF
28311 .section ".opd","aw"
28314 .type foo,@function
28316 .quad .LEfoo,.TOC.@tocbase,0
28322 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28323 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28324 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
28325 gcc_cv_ld_no_dot_syms
=yes
28327 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28332 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28333 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
28335 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28340 $as_echo_n "checking linker large toc support... " >&6; }
28341 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28342 $as_echo_n "(cached) " >&6
28344 gcc_cv_ld_large_toc
=no
28345 if test x
"$ld_is_gold" = xyes
; then
28346 gcc_cv_ld_large_toc
=yes
28347 elif test $in_tree_ld = yes ; then
28348 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
28349 gcc_cv_ld_large_toc
=yes
28351 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28352 cat > conftest.s
<<EOF
28353 .section ".tbss","awT",@nobits
28359 addis 9,13,ie0@got@tprel@ha
28360 ld 9,ie0@got@tprel@l(9)
28362 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28363 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
28364 gcc_cv_ld_large_toc
=yes
28366 rm -f conftest conftest.o conftest.s
28370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28371 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28372 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28374 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28379 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28380 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28381 $as_echo_n "(cached) " >&6
28383 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
28384 cat > conftest.s
<<EOF
28389 .section .data.rel.ro,"aw",@progbits
28394 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28395 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
28396 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)) }'`
28398 rm -f conftest conftest.o conftest.s
28402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28403 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28404 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28406 cat >>confdefs.h
<<_ACEOF
28407 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28417 $as_echo_n "checking linker large toc support... " >&6; }
28418 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28419 $as_echo_n "(cached) " >&6
28421 gcc_cv_ld_large_toc
=no
28422 if test x
$gcc_cv_as != x
; then
28423 cat > conftest.s
<<EOF
28433 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
28434 gcc_cv_ld_large_toc
=yes
28436 rm -f conftest conftest.o conftest.s
28440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28441 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28442 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28444 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28451 $as_echo_n "checking linker --build-id support... " >&6; }
28452 if test "${gcc_cv_ld_buildid+set}" = set; then :
28453 $as_echo_n "(cached) " >&6
28455 gcc_cv_ld_buildid
=no
28456 if test $in_tree_ld = yes ; then
28457 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28458 "$gcc_cv_gld_minor_version" -ge 18 -o \
28459 "$gcc_cv_gld_major_version" -gt 2 \
28460 && test $in_tree_ld_is_elf = yes; then
28461 gcc_cv_ld_buildid
=yes
28463 elif test x
$gcc_cv_ld != x
; then
28464 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
28465 gcc_cv_ld_buildid
=yes
28469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28470 $as_echo "$gcc_cv_ld_buildid" >&6; }
28471 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28473 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28477 # Check whether --enable-linker-build-id was given.
28478 if test "${enable_linker_build_id+set}" = set; then :
28479 enableval
=$enable_linker_build_id;
28481 enable_linker_build_id
=no
28485 if test x
"$enable_linker_build_id" = xyes
; then
28486 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28488 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28492 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28496 # In binutils 2.21, GNU ld gained support for new emulations fully
28497 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28499 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28500 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28501 $as_echo_n "(cached) " >&6
28503 gcc_cv_ld_sol2_emulation
=no
28504 if test $in_tree_ld = yes ; then
28505 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28506 "$gcc_cv_gld_minor_version" -ge 21 -o \
28507 "$gcc_cv_gld_major_version" -gt 2 \
28508 && test $in_tree_ld_is_elf = yes; then
28509 gcc_cv_ld_sol2_emulation
=yes
28511 elif test x
$gcc_cv_ld != x
; then
28512 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
28513 grep _sol2
> /dev
/null
; then
28514 gcc_cv_ld_sol2_emulation
=yes
28518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28519 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28520 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
28522 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28527 $as_echo_n "checking linker --sysroot support... " >&6; }
28528 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28529 $as_echo_n "(cached) " >&6
28531 gcc_cv_ld_sysroot
=no
28532 if test $in_tree_ld = yes ; then
28533 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
28534 gcc_cv_ld_sysroot
=yes
28536 elif test x
$gcc_cv_ld != x
; then
28537 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
28538 gcc_cv_ld_sysroot
=yes
28542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28543 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28544 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
28546 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28552 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28554 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28555 if test "${gcc_cv_solaris_crts+set}" = set; then :
28556 $as_echo_n "(cached) " >&6
28558 gcc_cv_solaris_crts
=no
28559 if test x
$host != x
$target; then
28560 if test "x$with_sysroot" = xyes
; then
28561 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
28563 target_sysroot
="${with_sysroot}"
28566 target_libdir
="$target_sysroot/usr/lib"
28567 # At the time they were added, gcrt1.o became a symlink for backwards
28568 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28570 i?
86-*-solaris2* | x86_64-
*-solaris2*)
28571 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
28573 sparc
*-*-solaris2*)
28574 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
28578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28579 $as_echo "$gcc_cv_solaris_crts" >&6; }
28582 if test x
$gcc_cv_solaris_crts = xyes
; then
28584 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28588 # Test for stack protector support in target C library.
28589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28590 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28591 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28592 $as_echo_n "(cached) " >&6
28594 gcc_cv_libc_provides_ssp
=no
28597 # All versions of musl provide stack protector
28598 gcc_cv_libc_provides_ssp
=yes;;
28599 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
28600 # glibc 2.4 and later provides __stack_chk_fail and
28601 # either __stack_chk_guard, or TLS access to stack guard canary.
28603 if test $glibc_version_major -gt 2 \
28604 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28605 gcc_cv_libc_provides_ssp
=yes
28608 if test -f $target_header_dir/features.h \
28609 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28610 $target_header_dir/features.h
> /dev
/null
; then
28611 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28612 $target_header_dir/features.h
> /dev
/null
&& \
28613 test -f $target_header_dir/bits
/uClibc_config.h
&& \
28614 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28615 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
28616 gcc_cv_libc_provides_ssp
=yes
28618 # all versions of Bionic support stack protector
28619 elif test -f $target_header_dir/sys
/cdefs.h \
28620 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28621 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
28622 gcc_cv_libc_provides_ssp
=yes
28627 # Avoid complicated tests (see
28628 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28629 # simply assert that glibc does provide this, which is true for all
28630 # realistically usable GNU/Hurd configurations.
28631 # All supported versions of musl provide it as well
28632 gcc_cv_libc_provides_ssp
=yes;;
28633 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
28634 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28635 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
28636 gcc_cv_libc_provides_ssp
=yes
28638 echo "no __stack_chk_fail on this target"
28642 *) gcc_cv_libc_provides_ssp
=no
;;
28645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28646 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28648 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28650 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28654 # Check whether --enable-default-ssp was given.
28655 # Check whether --enable-default-ssp was given.
28656 if test "${enable_default_ssp+set}" = set; then :
28657 enableval
=$enable_default_ssp;
28658 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28660 ia64
*-*-*) enable_default_ssp
=no
;;
28661 *) enable_default_ssp
=$enableval ;;
28664 enable_default_ssp
=no
28667 enable_default_ssp
=no
28670 if test x
$enable_default_ssp = xyes
; then
28672 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28677 # Test for <sys/sdt.h> on the target.
28679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28680 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28682 if test -f $target_header_dir/sys
/sdt.h
; then
28685 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28689 $as_echo "$have_sys_sdt_h" >&6; }
28691 # Check if TFmode long double should be used by default or not.
28692 # Some glibc targets used DFmode long double, but with glibc 2.4
28693 # and later they can use TFmode.
28695 powerpc
*-*-linux* | \
28696 sparc
*-*-linux* | \
28700 # Check whether --with-long-double-128 was given.
28701 if test "${with_long_double_128+set}" = set; then :
28702 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
28705 if test $glibc_version_major -gt 2 \
28706 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28707 gcc_cv_target_ldbl128
=yes
28710 gcc_cv_target_ldbl128
=no
28711 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28712 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
28713 && gcc_cv_target_ldbl128
=yes
28720 if test x
$gcc_cv_target_ldbl128 = xyes
; then
28722 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28726 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
28727 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
28728 gcc_cv_libc_provides_hwcap_in_tcb
=no
28732 if test $glibc_version_major -gt 2 \
28733 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
28734 gcc_cv_libc_provides_hwcap_in_tcb
=yes
28738 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
28740 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
28744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28745 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28746 gcc_cv_target_dl_iterate_phdr
=unknown
28748 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28749 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28750 # libdl there, both complicating its use and breaking compatibility
28751 # between Solaris 10 updates.
28752 *-*-solaris2.1
[1-9]*)
28753 # <link.h> needs both a dl_iterate_phdr declaration and support for
28754 # compilation with largefile support.
28755 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
28756 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
28757 gcc_cv_target_dl_iterate_phdr
=yes
28759 gcc_cv_target_dl_iterate_phdr
=no
28762 *-*-dragonfly* |
*-*-freebsd*)
28763 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
28764 gcc_cv_target_dl_iterate_phdr
=yes
28766 gcc_cv_target_dl_iterate_phdr
=no
28770 gcc_cv_target_dl_iterate_phdr
=yes
28774 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
28776 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28780 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28782 # We no longer support different GC mechanisms. Emit an error if
28783 # the user configures with --with-gc.
28785 # Check whether --with-gc was given.
28786 if test "${with_gc+set}" = set; then :
28787 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28791 # Libraries to use on the host. This will normally be set by the top
28792 # level Makefile. Here we simply capture the value for our Makefile.
28793 if test -z "${HOST_LIBS+set}"; then
28798 # Use the system's zlib library.
28800 # Use the system's zlib library.
28801 zlibdir
="-L\$(top_builddir)/../zlib"
28802 zlibinc
="-I\$(top_srcdir)/../zlib"
28804 # Check whether --with-system-zlib was given.
28805 if test "${with_system_zlib+set}" = set; then :
28806 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
28818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28819 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28820 # Check whether --enable-maintainer-mode was given.
28821 if test "${enable_maintainer_mode+set}" = set; then :
28822 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
28828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28829 $as_echo "$maintainer_mode" >&6; }
28831 if test "$maintainer_mode" = "yes"; then
28838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28839 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28840 # Check whether --enable-link-mutex was given.
28841 if test "${enable_link_mutex+set}" = set; then :
28842 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
28847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28848 $as_echo "$do_link_mutex" >&6; }
28850 if test "$do_link_mutex" = "yes"; then
28853 DO_LINK_MUTEX
=false
28861 # Make empty files to contain the specs and options for each language.
28862 # Then add #include lines to for a compiler that has specs and/or options.
28868 # These (without "all_") are set in each config-lang.in.
28869 # `language' must be a single word so is spelled singularly.
28872 all_outputs
='Makefile'
28873 # List of language makefile fragments.
28874 all_lang_makefrags
=
28875 # Additional files for gengtype
28876 all_gtfiles
="$target_gtfiles"
28878 # These are the languages that are set in --enable-languages,
28879 # and are available in the GCC tree.
28880 all_selected_languages
=
28882 # Add the language fragments.
28883 # Languages are added via two mechanisms. Some information must be
28884 # recorded in makefile variables, these are defined in config-lang.in.
28885 # We accumulate them and plug them into the main Makefile.
28886 # The other mechanism is a set of hooks for each of the main targets
28887 # like `clean', `install', etc.
28889 language_hooks
="Make-hooks"
28891 for lang
in ${srcdir}/*/config-lang.
in
28893 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28895 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28896 if test "x$lang_alias" = x
28898 echo "$lang doesn't set \$language." 1>&2
28901 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28902 subdirs
="$subdirs $subdir"
28904 # $gcc_subdir is where the gcc integration files are to be found
28905 # for a language, both for internal compiler purposes (compiler
28906 # sources implementing front-end to GCC tree converters), and for
28907 # build infrastructure purposes (Make-lang.in, etc.)
28909 # This will be <subdir> (relative to $srcdir) if a line like
28910 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28911 # is found in <langdir>/config-lang.in, and will remain <langdir>
28914 # Except for the language alias (fetched above), the regular
28915 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28916 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28917 # only this and the language alias.
28919 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28920 if [ "$gcc_subdir" = "" ]; then
28921 gcc_subdir
="$subdir"
28924 case ",$enable_languages," in
28926 all_selected_languages
="$all_selected_languages $lang_alias"
28927 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
28928 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28939 .
${srcdir}/$gcc_subdir/config-lang.
in
28940 if test "x$language" = x
28942 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28947 case ",$enable_languages," in
28948 *,$lang_alias,*) ;;
28950 for i
in $subdir_requires; do
28951 test -f "${srcdir}/$i/config-lang.in" && continue
28959 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28960 if test -f $srcdir/$gcc_subdir/lang.opt
; then
28961 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28962 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28964 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
28965 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28967 all_languages
="$all_languages $language"
28968 all_compilers
="$all_compilers $compilers"
28969 all_outputs
="$all_outputs $outputs"
28970 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
28971 case ",$enable_languages," in
28974 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28984 for language
in $all_selected_languages
28986 check_languages
="$check_languages check-$language"
28989 # We link each language in with a set of hooks, reached indirectly via
28990 # lang.${target}. Only do so for selected languages.
28994 target_list
="all.cross start.encap rest.encap tags \
28995 install-common install-man install-info install-pdf install-html dvi \
28996 pdf html uninstall info man srcextra srcman srcinfo \
28997 mostlyclean clean distclean maintainer-clean install-plugin"
28999 for t
in $target_list
29002 for lang
in $all_selected_languages
29006 echo "lang.$t: $x" >> Make-hooks
29010 # Option include files
29013 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
29014 option_includes
="option-includes.mk"
29023 echo "dir ." > .gdbinit
29024 echo "dir ${srcdir}" >> .gdbinit
29025 if test x
$gdb_needs_out_file_path = xyes
29027 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29029 if test "x$subdirs" != x
; then
29032 echo "dir ${srcdir}/$s" >> .gdbinit
29035 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29036 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29038 # Put a breakpoint on __asan_report_error to help with debugging buffer
29041 *-fsanitize=address
*)
29042 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29046 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29050 # Find a directory in which to install a shared libgcc.
29052 # Check whether --enable-version-specific-runtime-libs was given.
29053 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29054 enableval
=$enable_version_specific_runtime_libs;
29058 # Substitute configuration variables
29122 if test x
${build} = x
${host} ; then
29123 if test x
${host} = x
${target} ; then
29124 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29126 echo "Links are now set up to build a cross-compiler" 1>&2
29127 echo " from ${host} to ${target}." 1>&2
29130 if test x
${host} = x
${target} ; then
29131 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29132 echo " for ${target}." 1>&2
29134 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29135 echo " from ${host} to ${target}." 1>&2
29144 if test "x${ISLLIBS}" != "x" ; then
29146 $as_echo "#define HAVE_isl 1" >>confdefs.h
29150 # Check whether isl_options_set_schedule_serialize_sccs is available;
29151 # it's new in isl 0.15.
29152 if test "x${ISLLIBS}" != "x" ; then
29153 saved_CXXFLAGS
="$CXXFLAGS"
29154 CXXFLAGS
="$CXXFLAGS $ISLINC $GMPINC"
29156 LIBS
="$LIBS $ISLLIBS $GMPLIBS"
29158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
29159 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
29160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29161 /* end confdefs.h. */
29162 #include <isl/schedule.h>
29166 isl_options_set_schedule_serialize_sccs (NULL, 0);
29171 if ac_fn_cxx_try_link
"$LINENO"; then :
29172 ac_has_isl_options_set_schedule_serialize_sccs
=yes
29174 ac_has_isl_options_set_schedule_serialize_sccs
=no
29176 rm -f core conftest.err conftest.
$ac_objext \
29177 conftest
$ac_exeext conftest.
$ac_ext
29178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
29179 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
29182 CXXFLAGS
="$saved_CXXFLAGS"
29184 if test x
"$ac_has_isl_options_set_schedule_serialize_sccs" = x
"yes"; then
29186 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
29191 # Check for plugin support
29192 # Check whether --enable-plugin was given.
29193 if test "${enable_plugin+set}" = set; then :
29194 enableval
=$enable_plugin; enable_plugin
=$enableval
29196 enable_plugin
=yes; default_plugin
=yes
29204 if test x
$build = x
$host; then
29205 export_sym_check
="nm${exeext} -g"
29206 elif test x
$host = x
$target; then
29207 export_sym_check
="$gcc_cv_nm -g"
29213 if test x
$build = x
$host; then
29214 export_sym_check
="objdump${exeext} -T"
29215 elif test x
$host = x
$target; then
29216 export_sym_check
="$gcc_cv_objdump -T"
29223 if test x
"$enable_plugin" = x
"yes"; then
29225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29226 $as_echo_n "checking for exported symbols... " >&6; }
29227 if test "x$export_sym_check" != x
; then
29228 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29229 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29230 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
29231 : # No need to use a flag
29232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29233 $as_echo "yes" >&6; }
29235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29236 $as_echo "yes" >&6; }
29237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29238 $as_echo_n "checking for -rdynamic... " >&6; }
29239 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29240 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
29241 plugin_rdynamic
=yes
29242 pluginlibs
="-rdynamic"
29247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29248 $as_echo "$plugin_rdynamic" >&6; }
29251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29252 $as_echo "unable to check" >&6; }
29257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29258 $as_echo_n "checking for library containing dlopen... " >&6; }
29259 if test "${ac_cv_search_dlopen+set}" = set; then :
29260 $as_echo_n "(cached) " >&6
29262 ac_func_search_save_LIBS
=$LIBS
29263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29264 /* end confdefs.h. */
29266 /* Override any GCC internal prototype to avoid an error.
29267 Use char because int might match the return type of a GCC
29268 builtin and then its argument prototype would still apply. */
29281 for ac_lib
in '' dl
; do
29282 if test -z "$ac_lib"; then
29283 ac_res
="none required"
29286 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29288 if ac_fn_cxx_try_link
"$LINENO"; then :
29289 ac_cv_search_dlopen
=$ac_res
29291 rm -f core conftest.err conftest.
$ac_objext \
29293 if test "${ac_cv_search_dlopen+set}" = set; then :
29297 if test "${ac_cv_search_dlopen+set}" = set; then :
29300 ac_cv_search_dlopen
=no
29302 rm conftest.
$ac_ext
29303 LIBS
=$ac_func_search_save_LIBS
29305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29306 $as_echo "$ac_cv_search_dlopen" >&6; }
29307 ac_res
=$ac_cv_search_dlopen
29308 if test "$ac_res" != no
; then :
29309 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
29313 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
29314 pluginlibs
="$pluginlibs -ldl"
29318 # Check that we can build shared objects with -fPIC -shared
29319 saved_LDFLAGS
="$LDFLAGS"
29320 saved_CFLAGS
="$CFLAGS"
29323 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29324 CFLAGS
="$CFLAGS -fPIC"
29325 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
29328 CFLAGS
="$CFLAGS -fPIC"
29329 LDFLAGS
="$LDFLAGS -fPIC -shared"
29332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29333 $as_echo_n "checking for -fPIC -shared... " >&6; }
29334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29335 /* end confdefs.h. */
29345 if ac_fn_cxx_try_link
"$LINENO"; then :
29346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29347 $as_echo "yes" >&6; }; have_pic_shared
=yes
29349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29350 $as_echo "no" >&6; }; have_pic_shared
=no
29352 rm -f core conftest.err conftest.
$ac_objext \
29353 conftest
$ac_exeext conftest.
$ac_ext
29354 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
29358 LDFLAGS
="$saved_LDFLAGS"
29359 CFLAGS
="$saved_CFLAGS"
29361 # If plugin support had been requested but not available, fail.
29362 if test x
"$enable_plugin" = x
"no" ; then
29363 if test x
"$default_plugin" != x
"yes"; then
29365 Building GCC with plugin support requires a host that supports
29366 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29373 if test x
"$enable_plugin" = x
"yes"; then
29375 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29380 # Enable --enable-host-shared
29381 # Check whether --enable-host-shared was given.
29382 if test "${enable_host_shared+set}" = set; then :
29383 enableval
=$enable_host_shared; PICFLAG
=-fPIC
29392 # Check whether --enable-libquadmath-support was given.
29393 if test "${enable_libquadmath_support+set}" = set; then :
29394 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
29396 ENABLE_LIBQUADMATH_SUPPORT
=yes
29399 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29401 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29406 # Specify what hash style to use by default.
29408 # Check whether --with-linker-hash-style was given.
29409 if test "${with_linker_hash_style+set}" = set; then :
29410 withval
=$with_linker_hash_style; case x
"$withval" in
29412 LINKER_HASH_STYLE
=sysv
29415 LINKER_HASH_STYLE
=gnu
29418 LINKER_HASH_STYLE
=both
29421 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29425 LINKER_HASH_STYLE
=''
29428 if test x
"${LINKER_HASH_STYLE}" != x
; then
29430 cat >>confdefs.h
<<_ACEOF
29431 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29436 # Specify what should be the default of -fdiagnostics-color option.
29438 # Check whether --with-diagnostics-color was given.
29439 if test "${with_diagnostics_color+set}" = set; then :
29440 withval
=$with_diagnostics_color; case x
"$withval" in
29442 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
29445 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29448 DIAGNOSTICS_COLOR_DEFAULT
=-1
29451 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
29454 as_fn_error
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29458 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29462 cat >>confdefs.h
<<_ACEOF
29463 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29467 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29468 # of jit/jit-playback.c.
29469 cat > gcc-driver-name.h
<<EOF
29470 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29473 # Check whether --enable-default-pie was given.
29474 # Check whether --enable-default-pie was given.
29475 if test "${enable_default_pie+set}" = set; then :
29476 enableval
=$enable_default_pie; enable_default_pie
=$enableval
29478 enable_default_pie
=no
29481 if test x
$enable_default_pie = xyes
; then
29483 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29488 # Check if -fno-PIE works.
29489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29490 $as_echo_n "checking for -fno-PIE option... " >&6; }
29491 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29492 $as_echo_n "(cached) " >&6
29494 saved_CXXFLAGS
="$CXXFLAGS"
29495 CXXFLAGS
="$CXXFLAGS -fno-PIE"
29496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29497 /* end confdefs.h. */
29498 int main(void) {return 0;}
29500 if ac_fn_cxx_try_compile
"$LINENO"; then :
29501 gcc_cv_c_no_fpie
=yes
29503 gcc_cv_c_no_fpie
=no
29505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29506 CXXFLAGS
="$saved_CXXFLAGS"
29508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29509 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29510 if test "$gcc_cv_c_no_fpie" = "yes"; then
29511 NO_PIE_CFLAGS
="-fno-PIE"
29515 # Check if -no-pie works.
29516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29517 $as_echo_n "checking for -no-pie option... " >&6; }
29518 if test "${gcc_cv_no_pie+set}" = set; then :
29519 $as_echo_n "(cached) " >&6
29521 saved_LDFLAGS
="$LDFLAGS"
29522 LDFLAGS
="$LDFLAGS -no-pie"
29523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29524 /* end confdefs.h. */
29525 int main(void) {return 0;}
29527 if ac_fn_cxx_try_link
"$LINENO"; then :
29532 rm -f core conftest.err conftest.
$ac_objext \
29533 conftest
$ac_exeext conftest.
$ac_ext
29534 LDFLAGS
="$saved_LDFLAGS"
29536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29537 $as_echo "$gcc_cv_no_pie" >&6; }
29538 if test "$gcc_cv_no_pie" = "yes"; then
29539 NO_PIE_FLAG
="-no-pie"
29543 # Check linker supports '-z bndplt'
29544 ld_bndplt_support
=no
29545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29546 $as_echo_n "checking linker -z bndplt option... " >&6; }
29547 if test x
"$ld_is_gold" = xno
; then
29548 if test $in_tree_ld = yes ; then
29549 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
29550 ld_bndplt_support
=yes
29552 elif test x
$gcc_cv_ld != x
; then
29553 # Check if linker supports -a bndplt option
29554 if $gcc_cv_ld --help 2>/dev
/null |
grep -- '-z bndplt' > /dev
/null
; then
29555 ld_bndplt_support
=yes
29559 if test x
"$ld_bndplt_support" = xyes
; then
29561 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29565 $as_echo "$ld_bndplt_support" >&6; }
29567 # Configure the subdirectories
29568 # AC_CONFIG_SUBDIRS($subdirs)
29570 # Create the Makefile
29571 # and configure language subdirectories
29572 ac_config_files
="$ac_config_files $all_outputs"
29575 ac_config_commands
="$ac_config_commands default"
29577 cat >confcache
<<\_ACEOF
29578 # This file is a shell script that caches the results of configure
29579 # tests run on this system so they can be shared between configure
29580 # scripts and configure runs, see configure's option --config-cache.
29581 # It is not useful on other systems. If it contains results you don't
29582 # want to keep, you may remove or edit it.
29584 # config.status only pays attention to the cache file if you give it
29585 # the --recheck option to rerun configure.
29587 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29588 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29589 # following values.
29593 # The following way of writing the cache mishandles newlines in values,
29594 # but we know of no workaround that is simple, portable, and efficient.
29595 # So, we kill variables containing newlines.
29596 # Ultrix sh set writes to stderr and can't be redirected directly,
29597 # and sets the high bit in the cache file unless we assign to the vars.
29599 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29600 eval ac_val
=\$
$ac_var
29604 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29605 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29608 _ | IFS | as_nl
) ;; #(
29609 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
29610 *) { eval $ac_var=; unset $ac_var;} ;;
29616 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29617 *${as_nl}ac_space
=\
*)
29618 # `set' does not quote correctly, so add quotes: double-quote
29619 # substitution turns \\\\ into \\, and sed turns \\ into \.
29622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29625 # `set' quotes correctly as required by POSIX, so do not add quotes.
29626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29635 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29637 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29639 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29640 if test -w "$cache_file"; then
29641 test "x$cache_file" != "x/dev/null" &&
29642 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29643 $as_echo "$as_me: updating cache $cache_file" >&6;}
29644 cat confcache
>$cache_file
29646 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29647 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29652 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29653 # Let make expand exec_prefix.
29654 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29656 DEFS
=-DHAVE_CONFIG_H
29660 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29661 # 1. Remove the extension, and $U if already installed.
29662 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29663 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
29664 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29665 # will be set to the directory where LIBOBJS objects are built.
29666 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29667 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
29669 LIBOBJS
=$ac_libobjs
29671 LTLIBOBJS
=$ac_ltlibobjs
29676 : ${CONFIG_STATUS=./config.status}
29678 ac_clean_files_save
=$ac_clean_files
29679 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29680 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29681 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29683 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29685 # Generated by $as_me.
29686 # Run this file to recreate the current configuration.
29687 # Compiler output produced by configure, useful for debugging
29688 # configure, is in config.log if it exists.
29691 ac_cs_recheck=false
29694 SHELL=\${CONFIG_SHELL-$SHELL}
29697 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
29698 ## -------------------- ##
29699 ## M4sh Initialization. ##
29700 ## -------------------- ##
29702 # Be more Bourne compatible
29703 DUALCASE
=1; export DUALCASE
# for MKS sh
29704 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
29707 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29708 # is contrary to our usage. Disable this feature.
29709 alias -g '${1+"$@"}'='"$@"'
29710 setopt NO_GLOB_SUBST
29712 case `(set -o) 2>/dev/null` in #(
29724 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29725 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29726 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29727 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29728 # Prefer a ksh shell builtin over an external printf program on Solaris,
29729 # but without wasting forks for bash or zsh.
29730 if test -z "$BASH_VERSION$ZSH_VERSION" \
29731 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29732 as_echo='print
-r --'
29733 as_echo_n='print
-rn --'
29734 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29735 as_echo='printf %s
\n'
29736 as_echo_n='printf %s
'
29738 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29739 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
29740 as_echo_n='/usr
/ucb
/echo -n'
29742 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29743 as_echo_n_body='eval
29747 expr "X$arg" : "X\\(.*\\)$as_nl";
29748 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29750 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
29752 export as_echo_n_body
29753 as_echo_n='sh
-c $as_echo_n_body as_echo
'
29755 export as_echo_body
29756 as_echo='sh
-c $as_echo_body as_echo
'
29759 # The user is always right.
29760 if test "${PATH_SEPARATOR+set}" != set; then
29762 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29763 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29770 # We need space, tab and new line, in precisely that order. Quoting is
29771 # there to prevent editors from complaining about space-tab.
29772 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29773 # splitting by setting IFS to empty value.)
29776 # Find who we are. Look in the path if we contain no directory separator.
29778 *[\\/]* ) as_myself=$0 ;;
29779 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29780 for as_dir in $PATH
29783 test -z "$as_dir" && as_dir=.
29784 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29790 # We did not find ourselves, most probably we were run as `sh COMMAND'
29791 # in which case we are not to be found in the path.
29792 if test "x$as_myself" = x
; then
29795 if test ! -f "$as_myself"; then
29796 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29800 # Unset variables that we do not need and which cause bugs (e.g. in
29801 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29802 # suppresses any "Segmentation fault" message there. '((' could
29803 # trigger a bug in pdksh 5.2.14.
29804 for as_var
in BASH_ENV ENV MAIL MAILPATH
29805 do eval test x\
${$as_var+set} = xset \
29806 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
29819 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
29822 # as_fn_error ERROR [LINENO LOG_FD]
29823 # ---------------------------------
29824 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29825 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29826 # script with status $?, using 1 if that was 0.
29829 as_status
=$?
; test $as_status -eq 0 && as_status
=1
29831 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
29832 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29834 $as_echo "$as_me: error: $1" >&2
29835 as_fn_exit
$as_status
29839 # as_fn_set_status STATUS
29840 # -----------------------
29841 # Set $? to STATUS, without forking.
29842 as_fn_set_status
()
29845 } # as_fn_set_status
29847 # as_fn_exit STATUS
29848 # -----------------
29849 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29853 as_fn_set_status
$1
29859 # Portably unset VAR.
29862 { eval $1=; unset $1;}
29864 as_unset
=as_fn_unset
29865 # as_fn_append VAR VALUE
29866 # ----------------------
29867 # Append the text in VALUE to the end of the definition contained in VAR. Take
29868 # advantage of any shell optimizations that allow amortized linear growth over
29869 # repeated appends, instead of the typical quadratic growth present in naive
29871 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
29872 eval 'as_fn_append ()
29883 # as_fn_arith ARG...
29884 # ------------------
29885 # Perform arithmetic evaluation on the ARGs, and store the result in the
29886 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29887 # must be portable across $(()) and expr.
29888 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
29889 eval 'as_fn_arith ()
29896 as_val
=`expr "$@" || test $? -eq 1`
29901 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29902 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29908 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29909 as_basename
=basename
29914 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29920 as_me
=`$as_basename -- "$0" ||
29921 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29922 X"$0" : 'X\(//\)$' \| \
29923 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29925 sed '/^.*\/\([^/][^/]*\)\/*$/{
29939 # Avoid depending upon Character Ranges.
29940 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29941 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29942 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29943 as_cr_digits
='0123456789'
29944 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29946 ECHO_C
= ECHO_N
= ECHO_T
=
29947 case `echo -n x` in #(((((
29949 case `echo 'xy\c'` in
29950 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29952 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
29959 rm -f conf$$ conf$$.exe conf$$.
file
29960 if test -d conf$$.dir
; then
29961 rm -f conf$$.dir
/conf$$.
file
29964 mkdir conf$$.dir
2>/dev
/null
29966 if (echo >conf$$.
file) 2>/dev
/null
; then
29967 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29969 # ... but there are two gotchas:
29970 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29971 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29972 # In both cases, we have to default to `cp -p'.
29973 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29975 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29983 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29984 rmdir conf$$.dir
2>/dev
/null
29989 # Create "$as_dir" as a directory, including parents if necessary.
29994 -*) as_dir
=.
/$as_dir;;
29996 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
30000 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30001 *) as_qdir
=$as_dir;;
30003 as_dirs
="'$as_qdir' $as_dirs"
30004 as_dir
=`$as_dirname -- "$as_dir" ||
30005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30006 X"$as_dir" : 'X\(//\)[^/]' \| \
30007 X"$as_dir" : 'X\(//\)$' \| \
30008 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30009 $as_echo X"$as_dir" |
30010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30014 /^X\(\/\/\)[^/].*/{
30027 test -d "$as_dir" && break
30029 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30030 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
30034 if mkdir
-p .
2>/dev
/null
; then
30035 as_mkdir_p
='mkdir -p "$as_dir"'
30037 test -d .
/-p && rmdir .
/-p
30041 if test -x / >/dev
/null
2>&1; then
30042 as_test_x
='test -x'
30044 if ls -dL / >/dev
/null
2>&1; then
30051 if test -d "$1"; then
30057 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30058 ???[sx]*):;;*)false;;esac;fi
30062 as_executable_p
=$as_test_x
30064 # Sed expression to map a string onto a valid CPP name.
30065 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30067 # Sed expression to map a string onto a valid variable name.
30068 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30072 ## ----------------------------------- ##
30073 ## Main body of $CONFIG_STATUS script. ##
30074 ## ----------------------------------- ##
30076 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
30078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30079 # Save the log message, to keep $0 and so on meaningful, and to
30080 # report actual input values of CONFIG_FILES etc. instead of their
30081 # values after options handling.
30083 This file was extended by $as_me, which was
30084 generated by GNU Autoconf 2.64. Invocation command line was
30086 CONFIG_FILES = $CONFIG_FILES
30087 CONFIG_HEADERS = $CONFIG_HEADERS
30088 CONFIG_LINKS = $CONFIG_LINKS
30089 CONFIG_COMMANDS = $CONFIG_COMMANDS
30092 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30097 case $ac_config_files in *"
30098 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
30101 case $ac_config_headers in *"
30102 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
30106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30107 # Files that config.status was made for.
30108 config_files="$ac_config_files"
30109 config_headers="$ac_config_headers"
30110 config_links="$ac_config_links"
30111 config_commands="$ac_config_commands"
30115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30117 \`$as_me' instantiates files and other configuration actions
30118 from templates according to the current configuration. Unless the files
30119 and actions are specified as TAGs, all are instantiated by default.
30121 Usage: $0 [OPTION]... [TAG]...
30123 -h, --help print this help, then exit
30124 -V, --version print version number and configuration settings, then exit
30125 -q, --quiet, --silent
30126 do not print progress messages
30127 -d, --debug don't remove temporary files
30128 --recheck update $as_me by reconfiguring in the same conditions
30129 --file=FILE[:TEMPLATE]
30130 instantiate the configuration file FILE
30131 --header=FILE[:TEMPLATE]
30132 instantiate the configuration header FILE
30134 Configuration files:
30137 Configuration headers:
30140 Configuration links:
30143 Configuration commands:
30146 Report bugs to the package provider."
30149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30152 configured by $0, generated by GNU Autoconf 2.64,
30153 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30155 Copyright (C) 2009 Free Software Foundation, Inc.
30156 This config.status script is free software; the Free Software Foundation
30157 gives unlimited permission to copy, distribute and modify it."
30162 test -n "\$AWK" || AWK=awk
30165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30166 # The default lists apply if the user does not specify any file.
30172 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30173 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
30184 # Handling of the options.
30185 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
30187 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
30188 $as_echo "$ac_cs_version"; exit ;;
30189 --debug |
--debu |
--deb |
--de |
--d |
-d )
30191 --file |
--fil |
--fi |
--f )
30194 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30196 as_fn_append CONFIG_FILES
" '$ac_optarg'"
30197 ac_need_defaults
=false
;;
30198 --header |
--heade |
--head |
--hea )
30201 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30203 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
30204 ac_need_defaults
=false
;;
30206 # Conflict between --help and --header
30207 as_fn_error
"ambiguous option: \`$1'
30208 Try \`$0 --help' for more information.";;
30209 --help |
--hel |
-h )
30210 $as_echo "$ac_cs_usage"; exit ;;
30211 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
30212 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
30215 # This is an error.
30216 -*) as_fn_error
"unrecognized option: \`$1'
30217 Try \`$0 --help' for more information." ;;
30219 *) as_fn_append ac_config_targets
" $1"
30220 ac_need_defaults
=false
;;
30226 ac_configure_extra_args
=
30228 if $ac_cs_silent; then
30230 ac_configure_extra_args
="$ac_configure_extra_args --silent"
30234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30235 if \$ac_cs_recheck; then
30236 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30238 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30239 CONFIG_SHELL='$SHELL'
30240 export CONFIG_SHELL
30245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30249 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30250 ## Running $as_me. ##
30256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30260 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30261 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30268 # Handling of arguments.
30269 for ac_config_target
in $ac_config_targets
30271 case $ac_config_target in
30272 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
30273 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
30274 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
30275 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
30276 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30277 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
30278 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30279 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
30280 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
30282 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30287 # If the user did not use the arguments to specify the items to instantiate,
30288 # then the envvar interface is used. Set only those that are not.
30289 # We use the long form for the default assignment because of an extremely
30290 # bizarre bug on SunOS 4.1.3.
30291 if $ac_need_defaults; then
30292 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
30293 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
30294 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
30295 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
30298 # Have a temporary directory for convenience. Make it in the build tree
30299 # simply because there is no reason against having it here, and in addition,
30300 # creating and moving files from /tmp can sometimes cause problems.
30301 # Hook for its removal unless debugging.
30302 # Note that there is a small window in which the directory will not be cleaned:
30303 # after its creation but before its name has been assigned to `$tmp'.
30307 trap 'exit_status=$?
30308 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30310 trap 'as_fn_exit 1' 1 2 13 15
30312 # Create a (secure) tmp directory for tmp files.
30315 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30316 test -n "$tmp" && test -d "$tmp"
30319 tmp
=.
/conf$$
-$RANDOM
30320 (umask 077 && mkdir
"$tmp")
30321 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
30323 # Set up the scripts for CONFIG_FILES section.
30324 # No need to generate them if there are no CONFIG_FILES.
30325 # This happens for instance with `./config.status config.h'.
30326 if test -n "$CONFIG_FILES"; then
30328 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
30329 ac_cs_awk_getline
=:
30330 ac_cs_awk_pipe_init
=
30331 ac_cs_awk_read_file
='
30332 while ((getline aline < (F[key])) > 0)
30335 ac_cs_awk_pipe_fini
=
30337 ac_cs_awk_getline
=false
30338 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
30339 ac_cs_awk_read_file
='
30341 print "cat " F[key] " &&"
30342 '$ac_cs_awk_pipe_init
30343 # The final `:' finishes the AND list.
30344 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
30346 ac_cr
=`echo X | tr X '\015'`
30347 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30348 # But we know of no other shell where ac_cr would be empty at this
30349 # point, so we can use a bashism as a fallback.
30350 if test "x$ac_cr" = x
; then
30351 eval ac_cr
=\$
\'\\r
\'
30353 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30354 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30357 ac_cs_awk_cr
=$ac_cr
30360 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30363 # Create commands to substitute file output variables.
30365 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30366 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30367 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
30370 } >conf$
$files.sh
&&
30371 . .
/conf$
$files.sh ||
30372 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
30373 rm -f conf$
$files.sh
30376 echo "cat >conf$$subs.awk <<_ACEOF" &&
30377 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30379 } >conf$$subs.sh ||
30380 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30381 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30383 for ac_last_try in false false false false false :; do
30384 . ./conf$$subs.sh ||
30385 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30387 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
30388 if test $ac_delim_n = $ac_delim_num; then
30390 elif $ac_last_try; then
30391 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30393 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30396 rm -f conf$$subs.sh
30398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30399 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
30403 s/^/S["/; s
/!.
*/"]=/
30413 s/\(.\{148\}\).*/\1/
30415 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
30420 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30427 s/\(.\{148\}\).*/\1/
30429 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
30433 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30438 ' <conf$$subs.awk | sed '
30443 ' >>$CONFIG_STATUS || ac_write_fail=1
30444 rm -f conf$$subs.awk
30445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30447 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
30448 for (key in S) S_is_set[key] = 1
30450 \$ac_cs_awk_pipe_init
30454 nfields = split(line, field, "@
")
30456 len = length(field[1])
30457 for (i = 2; i < nfields; i++) {
30459 keylen = length(key)
30460 if (S_is_set[key]) {
30462 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30463 len += length(value) + length(field[++i])
30468 if (nfields == 3 && !substed) {
30470 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30471 \$ac_cs_awk_read_file
30477 \$ac_cs_awk_pipe_fini
30480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30481 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30482 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
30485 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
30486 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
30489 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30490 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
30491 # trailing colons and then remove the whole line if VPATH becomes empty
30492 # (actually we leave an empty line to preserve line numbers).
30493 if test "x
$srcdir" = x.; then
30494 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30495 s/:*\$(srcdir):*/:/
30496 s/:*\${srcdir}:*/:/
30498 s/^\([^=]*=[ ]*\):*/\1/
30504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30505 fi # test -n "$CONFIG_FILES"
30507 # Set up the scripts for CONFIG_HEADERS section.
30508 # No need to generate them if there are no CONFIG_HEADERS.
30509 # This happens for instance with `./config.status Makefile'.
30510 if test -n "$CONFIG_HEADERS"; then
30511 cat >"$tmp/defines.
awk" <<\_ACAWK ||
30515 # Transform confdefs.h into an awk script `defines.awk', embedded as
30516 # here-document in config.status, that substitutes the proper values into
30517 # config.h.in to produce config.h.
30519 # Create a delimiter string that does not exist in confdefs.h, to ease
30520 # handling of long lines.
30522 for ac_last_try in false false :; do
30523 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
30524 if test -z "$ac_t"; then
30526 elif $ac_last_try; then
30527 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
30529 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30533 # For the awk script, D is an array of macro values keyed by name,
30534 # likewise P contains macro parameters if any. Preserve backslash
30535 # newline sequences.
30537 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30539 s/.\{148\}/&'"$ac_delim"'/g
30542 s/^[ ]*#[ ]*define[ ][ ]*/ /
30549 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30551 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30555 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30556 D["\
1"]=" \
3\\\\\\n
"\\/p
30558 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30563 s/.\{148\}/&'"$ac_delim"'/g
30568 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30571 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30573 ' <confdefs.h | sed '
30574 s/'"$ac_delim"'/"\\\
30575 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30578 for (key in D) D_is_set[key] = 1
30581 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30583 split(line, arg, " ")
30584 if (arg[1] == "#") {
30588 defundef
= substr
(arg
[1], 2)
30591 split(mac1
, mac2
, "(") #)
30593 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30594 if (D_is_set
[macro
]) {
30595 # Preserve the white space surrounding the "#".
30596 print prefix
"define", macro P
[macro
] D
[macro
]
30599 # Replace #undef with comments. This is necessary, for example,
30600 # in the case of _POSIX_SOURCE, which is predefined and required
30601 # on some systems where configure will not decide to define it.
30602 if (defundef
== "undef") {
30603 print
"/*", prefix defundef
, macro
, "*/"
30611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30612 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
30613 fi # test -n "$CONFIG_HEADERS"
30616 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30621 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30623 case $ac_mode$ac_tag in
30625 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
30626 :[FH
]-) ac_tag
=-:-;;
30627 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30644 -) ac_f
="$tmp/stdin";;
30645 *) # Look for the file first in the build tree, then in the source tree
30646 # (if the path is not absolute). The absolute path cannot be DOS-style,
30647 # because $ac_f cannot contain `:'.
30651 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30653 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
30655 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30656 as_fn_append ac_file_inputs
" '$ac_f'"
30659 # Let's still pretend it is `configure' which instantiates (i.e., don't
30660 # use $as_me), people would be surprised to read:
30661 # /* config.h. Generated by config.status. */
30662 configure_input
='Generated from '`
30663 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30665 if test x
"$ac_file" != x-
; then
30666 configure_input
="$ac_file. $configure_input"
30667 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30668 $as_echo "$as_me: creating $ac_file" >&6;}
30670 # Neutralize special characters interpreted by sed in replacement strings.
30671 case $configure_input in #(
30672 *\
&* |
*\|
* |
*\\* )
30673 ac_sed_conf_input
=`$as_echo "$configure_input" |
30674 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30675 *) ac_sed_conf_input
=$configure_input;;
30679 *:-:* |
*:-) cat >"$tmp/stdin" \
30680 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
30685 ac_dir
=`$as_dirname -- "$ac_file" ||
30686 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30687 X"$ac_file" : 'X\(//\)[^/]' \| \
30688 X"$ac_file" : 'X\(//\)$' \| \
30689 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30690 $as_echo X"$ac_file" |
30691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30695 /^X\(\/\/\)[^/].*/{
30708 as_dir
="$ac_dir"; as_fn_mkdir_p
30712 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30714 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30715 # A ".." for each directory in $ac_dir_suffix.
30716 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30717 case $ac_top_builddir_sub in
30718 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30719 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30722 ac_abs_top_builddir
=$ac_pwd
30723 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30724 # for backward compatibility:
30725 ac_top_builddir
=$ac_top_build_prefix
30728 .
) # We are building in place.
30730 ac_top_srcdir
=$ac_top_builddir_sub
30731 ac_abs_top_srcdir
=$ac_pwd ;;
30732 [\\/]* | ?
:[\\/]* ) # Absolute name.
30733 ac_srcdir
=$srcdir$ac_dir_suffix;
30734 ac_top_srcdir
=$srcdir
30735 ac_abs_top_srcdir
=$srcdir ;;
30736 *) # Relative name.
30737 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30738 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30739 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30741 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30753 # If the template does not know about datarootdir, expand it.
30754 # FIXME: This hack should be removed a few years after 2.60.
30755 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30766 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30767 *datarootdir
*) ac_datarootdir_seen
=yes;;
30768 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30770 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30773 ac_datarootdir_hack='
30774 s&@datadir@&$datadir&g
30775 s&@docdir@&$docdir&g
30776 s&@infodir@&$infodir&g
30777 s&@localedir@&$localedir&g
30778 s&@mandir@&$mandir&g
30779 s&\\\${datarootdir}&$datarootdir&g' ;;
30783 # Neutralize VPATH when `$srcdir' = `.'.
30784 # Shell code in configure.ac might set extrasub.
30785 # FIXME: do we really want to maintain this feature?
30786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30787 ac_sed_extra="$ac_vpsub
30790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30792 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30793 s|@configure_input@|
$ac_sed_conf_input|
;t t
30794 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30795 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30796 s
&@srcdir@
&$ac_srcdir&;t t
30797 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30798 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30799 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30800 s
&@builddir@
&$ac_builddir&;t t
30801 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30802 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30803 $ac_datarootdir_hack
30805 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30806 if $ac_cs_awk_getline; then
30807 $AWK -f "$tmp/subs.
awk"
30809 $AWK -f "$tmp/subs.
awk" | $SHELL
30811 || as_fn_error "could not create
$ac_file" "$LINENO" 5
30813 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30814 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
30815 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
30816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30817 which seems to be undefined. Please make sure it is defined." >&5
30818 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30819 which seems to be undefined. Please make sure it is defined." >&2;}
30823 -) cat "$tmp/out" && rm -f "$tmp/out";;
30824 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30826 || as_fn_error "could not create $ac_file" "$LINENO" 5
30832 if test x"$ac_file" != x-; then
30834 $as_echo "/* $configure_input */" \
30835 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30836 } >"$tmp/config.h" \
30837 || as_fn_error "could not create $ac_file" "$LINENO" 5
30838 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30839 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30840 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30843 mv "$tmp/config.h" "$ac_file" \
30844 || as_fn_error "could not create $ac_file" "$LINENO" 5
30847 $as_echo "/* $configure_input */" \
30848 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30849 || as_fn_error "could not create -" "$LINENO" 5
30857 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
30860 # Prefer the file from the source tree if names are identical.
30861 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30862 ac_source=$srcdir/$ac_source
30865 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30866 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30868 if test ! -r "$ac_source"; then
30869 as_fn_error "$ac_source: file not found" "$LINENO" 5
30873 # Try a relative symlink, then a hard link, then a copy.
30875 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30876 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30878 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30879 ln "$ac_source" "$ac_file" 2>/dev/null ||
30880 cp -p "$ac_source" "$ac_file" ||
30881 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30884 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30885 $as_echo "$as_me: executing $ac_file commands" >&6;}
30890 case $ac_file$ac_mode in
30891 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30893 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30894 for lang in $subdirs c-family common
30896 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30898 "as":F) chmod +x as ;;
30899 "collect-ld":F) chmod +x collect-ld ;;
30900 "nm":F) chmod +x nm ;;
30902 case ${CONFIG_HEADERS} in
30903 *auto-host.h:config.in*)
30906 # Make sure all the subdirs exist.
30907 for d in $subdirs doc build common c-family
30909 test -d $d || mkdir $d
30919 ac_clean_files=$ac_clean_files_save
30921 test $ac_write_fail = 0 ||
30922 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30925 # configure is writing to config.log, and then calls config.status.
30926 # config.status does its own redirection, appending to config.log.
30927 # Unfortunately, on DOS this fails, as config.log is still kept open
30928 # by configure, so config.status won't be able to
write to it
; its
30929 # output is simply discarded. So we exec the FD to /dev/null,
30930 # effectively closing config.log, so it can be properly (re)opened and
30931 # appended to by config.status. When coming back to configure, we
30932 # need to make the FD available again.
30933 if test "$no_create" != yes; then
30935 ac_config_status_args
=
30936 test "$silent" = yes &&
30937 ac_config_status_args
="$ac_config_status_args --quiet"
30939 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30941 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30942 # would make configure fail if this is the last instruction.
30943 $ac_cs_success || as_fn_exit $?
30945 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
30946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30947 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}