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
865 program_transform_name
876 ac_subst_files
='option_includes
879 enable_option_checking
882 with_native_system_header_dir
887 enable_generated_files_in_srcdir
894 enable_build_format_warnings
898 enable_gather_detailed_mem_stats
899 enable_valgrind_annotations
919 enable_sjlj_exceptions
921 enable_leading_mingw64_underscores
924 enable_win32_registry
932 enable_gnu_indirect_function
933 enable_initfini_array
935 enable_fix_cortex_a53_835769
936 enable_fix_cortex_a53_843419
938 enable_gnu_unique_object
939 enable_linker_build_id
944 enable_maintainer_mode
946 enable_version_specific_runtime_libs
949 enable_libquadmath_support
950 with_linker_hash_style
951 with_diagnostics_color
954 ac_precious_vars
='build_alias
973 # Initialize some variables set by options.
975 ac_init_version
=false
976 ac_unrecognized_opts
=
978 # The variables have the same names as the options, with
979 # dashes changed to underlines.
987 program_transform_name
=s
,x
,x
,
995 # Installation directory options.
996 # These are left unexpanded so users can "make install exec_prefix=/foo"
997 # and all the variables that are supposed to be based on exec_prefix
998 # by default will actually change.
999 # Use braces instead of parens because sh, perl, etc. also accept them.
1000 # (The list follows the same order as the GNU Coding Standards.)
1001 bindir
='${exec_prefix}/bin'
1002 sbindir
='${exec_prefix}/sbin'
1003 libexecdir
='${exec_prefix}/libexec'
1004 datarootdir
='${prefix}/share'
1005 datadir
='${datarootdir}'
1006 sysconfdir
='${prefix}/etc'
1007 sharedstatedir
='${prefix}/com'
1008 localstatedir
='${prefix}/var'
1009 includedir
='${prefix}/include'
1010 oldincludedir
='/usr/include'
1011 docdir
='${datarootdir}/doc/${PACKAGE}'
1012 infodir
='${datarootdir}/info'
1017 libdir
='${exec_prefix}/lib'
1018 localedir
='${datarootdir}/locale'
1019 mandir
='${datarootdir}/man'
1025 # If the previous option needs an argument, assign it.
1026 if test -n "$ac_prev"; then
1027 eval $ac_prev=\
$ac_option
1033 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1037 # Accept the important Cygnus configure options, so we can diagnose typos.
1039 case $ac_dashdash$ac_option in
1043 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1045 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1046 bindir
=$ac_optarg ;;
1048 -build |
--build |
--buil |
--bui |
--bu)
1049 ac_prev
=build_alias
;;
1050 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1051 build_alias
=$ac_optarg ;;
1053 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1054 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1055 ac_prev
=cache_file
;;
1056 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1057 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1058 cache_file
=$ac_optarg ;;
1060 --config-cache |
-C)
1061 cache_file
=config.cache
;;
1063 -datadir |
--datadir |
--datadi |
--datad)
1065 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1066 datadir
=$ac_optarg ;;
1068 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1069 |
--dataroo |
--dataro |
--datar)
1070 ac_prev
=datarootdir
;;
1071 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1072 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1073 datarootdir
=$ac_optarg ;;
1075 -disable-* |
--disable-*)
1076 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1079 as_fn_error
"invalid feature name: $ac_useropt"
1080 ac_useropt_orig
=$ac_useropt
1081 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1084 "enable_
$ac_useropt"
1086 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1087 ac_unrecognized_sep
=', ';;
1089 eval enable_
$ac_useropt=no
;;
1091 -docdir |
--docdir |
--docdi |
--doc |
--do)
1093 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1094 docdir
=$ac_optarg ;;
1096 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1098 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1099 dvidir
=$ac_optarg ;;
1101 -enable-* |
--enable-*)
1102 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1105 as_fn_error
"invalid feature name: $ac_useropt"
1106 ac_useropt_orig
=$ac_useropt
1107 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1110 "enable_
$ac_useropt"
1112 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1113 ac_unrecognized_sep
=', ';;
1115 eval enable_
$ac_useropt=\
$ac_optarg ;;
1117 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1118 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1119 |
--exec |
--exe |
--ex)
1120 ac_prev
=exec_prefix
;;
1121 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1122 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1123 |
--exec=* |
--exe=* |
--ex=*)
1124 exec_prefix
=$ac_optarg ;;
1126 -gas |
--gas |
--ga |
--g)
1127 # Obsolete; use --with-gas.
1130 -help |
--help |
--hel |
--he |
-h)
1131 ac_init_help
=long
;;
1132 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1133 ac_init_help
=recursive
;;
1134 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1135 ac_init_help
=short
;;
1137 -host |
--host |
--hos |
--ho)
1138 ac_prev
=host_alias
;;
1139 -host=* |
--host=* |
--hos=* |
--ho=*)
1140 host_alias
=$ac_optarg ;;
1142 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1144 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1146 htmldir
=$ac_optarg ;;
1148 -includedir |
--includedir |
--includedi |
--included |
--include \
1149 |
--includ |
--inclu |
--incl |
--inc)
1150 ac_prev
=includedir
;;
1151 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1152 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1153 includedir
=$ac_optarg ;;
1155 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1157 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1158 infodir
=$ac_optarg ;;
1160 -libdir |
--libdir |
--libdi |
--libd)
1162 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1163 libdir
=$ac_optarg ;;
1165 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1166 |
--libexe |
--libex |
--libe)
1167 ac_prev
=libexecdir
;;
1168 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1169 |
--libexe=* |
--libex=* |
--libe=*)
1170 libexecdir
=$ac_optarg ;;
1172 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1173 ac_prev
=localedir
;;
1174 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1175 localedir
=$ac_optarg ;;
1177 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1178 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1179 ac_prev
=localstatedir
;;
1180 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1181 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1182 localstatedir
=$ac_optarg ;;
1184 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1186 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1187 mandir
=$ac_optarg ;;
1189 -nfp |
--nfp |
--nf)
1190 # Obsolete; use --without-fp.
1193 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1194 |
--no-cr |
--no-c |
-n)
1197 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1198 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1201 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1202 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1203 |
--oldin |
--oldi |
--old |
--ol |
--o)
1204 ac_prev
=oldincludedir
;;
1205 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1206 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1207 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1208 oldincludedir
=$ac_optarg ;;
1210 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1212 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1213 prefix
=$ac_optarg ;;
1215 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1216 |
--program-pre |
--program-pr |
--program-p)
1217 ac_prev
=program_prefix
;;
1218 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1219 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1220 program_prefix
=$ac_optarg ;;
1222 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1223 |
--program-suf |
--program-su |
--program-s)
1224 ac_prev
=program_suffix
;;
1225 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1226 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1227 program_suffix
=$ac_optarg ;;
1229 -program-transform-name |
--program-transform-name \
1230 |
--program-transform-nam |
--program-transform-na \
1231 |
--program-transform-n |
--program-transform- \
1232 |
--program-transform |
--program-transfor \
1233 |
--program-transfo |
--program-transf \
1234 |
--program-trans |
--program-tran \
1235 |
--progr-tra |
--program-tr |
--program-t)
1236 ac_prev
=program_transform_name
;;
1237 -program-transform-name=* |
--program-transform-name=* \
1238 |
--program-transform-nam=* |
--program-transform-na=* \
1239 |
--program-transform-n=* |
--program-transform-=* \
1240 |
--program-transform=* |
--program-transfor=* \
1241 |
--program-transfo=* |
--program-transf=* \
1242 |
--program-trans=* |
--program-tran=* \
1243 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1244 program_transform_name
=$ac_optarg ;;
1246 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1248 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1249 pdfdir
=$ac_optarg ;;
1251 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1253 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1256 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1257 |
-silent |
--silent |
--silen |
--sile |
--sil)
1260 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1262 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1264 sbindir
=$ac_optarg ;;
1266 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1267 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1268 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1270 ac_prev
=sharedstatedir
;;
1271 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1272 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1273 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1275 sharedstatedir
=$ac_optarg ;;
1277 -site |
--site |
--sit)
1279 -site=* |
--site=* |
--sit=*)
1282 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1284 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1285 srcdir
=$ac_optarg ;;
1287 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1288 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1289 ac_prev
=sysconfdir
;;
1290 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1291 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1292 sysconfdir
=$ac_optarg ;;
1294 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1295 ac_prev
=target_alias
;;
1296 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1297 target_alias
=$ac_optarg ;;
1299 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1302 -version |
--version |
--versio |
--versi |
--vers |
-V)
1303 ac_init_version
=: ;;
1306 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1309 as_fn_error
"invalid package name: $ac_useropt"
1310 ac_useropt_orig
=$ac_useropt
1311 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1316 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1317 ac_unrecognized_sep
=', ';;
1319 eval with_
$ac_useropt=\
$ac_optarg ;;
1321 -without-* |
--without-*)
1322 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1323 # Reject names that are not valid shell variable names.
1324 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1325 as_fn_error
"invalid package name: $ac_useropt"
1326 ac_useropt_orig
=$ac_useropt
1327 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1328 case $ac_user_opts in
1332 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1333 ac_unrecognized_sep
=', ';;
1335 eval with_
$ac_useropt=no
;;
1338 # Obsolete; use --with-x.
1341 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1342 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1343 ac_prev
=x_includes
;;
1344 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1345 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1346 x_includes
=$ac_optarg ;;
1348 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1349 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1350 ac_prev
=x_libraries
;;
1351 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1352 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1353 x_libraries
=$ac_optarg ;;
1355 -*) as_fn_error
"unrecognized option: \`$ac_option'
1356 Try \`$0 --help' for more information."
1360 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1361 # Reject names that are not valid shell variable names.
1362 case $ac_envvar in #(
1363 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1364 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1366 eval $ac_envvar=\
$ac_optarg
1367 export $ac_envvar ;;
1370 # FIXME: should be removed in autoconf 3.0.
1371 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1372 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1373 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1374 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1380 if test -n "$ac_prev"; then
1381 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1382 as_fn_error
"missing argument to $ac_option"
1385 if test -n "$ac_unrecognized_opts"; then
1386 case $enable_option_checking in
1388 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1389 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1393 # Check all directory arguments for consistency.
1394 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1395 datadir sysconfdir sharedstatedir localstatedir includedir \
1396 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1397 libdir localedir mandir
1399 eval ac_val
=\$
$ac_var
1400 # Remove trailing slashes.
1403 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1404 eval $ac_var=\
$ac_val;;
1406 # Be sure to have absolute directory names.
1408 [\\/$
]* | ?
:[\\/]* ) continue;;
1409 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1411 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1414 # There might be people who depend on the old broken behavior: `$host'
1415 # used to hold the argument of --host etc.
1416 # FIXME: To remove some day.
1419 target
=$target_alias
1421 # FIXME: To remove some day.
1422 if test "x$host_alias" != x
; then
1423 if test "x$build_alias" = x
; then
1424 cross_compiling
=maybe
1425 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1426 If a cross compiler is detected then cross compile mode will be used." >&2
1427 elif test "x$build_alias" != "x$host_alias"; then
1433 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1435 test "$silent" = yes && exec 6>/dev
/null
1438 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1439 ac_ls_di
=`ls -di .` &&
1440 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1441 as_fn_error
"working directory cannot be determined"
1442 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1443 as_fn_error
"pwd does not report name of working directory"
1446 # Find the source files, if location was not specified.
1447 if test -z "$srcdir"; then
1448 ac_srcdir_defaulted
=yes
1449 # Try the directory containing this script, then the parent directory.
1450 ac_confdir
=`$as_dirname -- "$as_myself" ||
1451 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1452 X"$as_myself" : 'X\(//\)[^/]' \| \
1453 X"$as_myself" : 'X\(//\)$' \| \
1454 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1455 $as_echo X"$as_myself" |
1456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1478 ac_srcdir_defaulted
=no
1480 if test ! -r "$srcdir/$ac_unique_file"; then
1481 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1482 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1484 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1486 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1488 # When building in place, set srcdir=.
1489 if test "$ac_abs_confdir" = "$ac_pwd"; then
1492 # Remove unnecessary trailing slashes from srcdir.
1493 # Double slashes in file names in object file debugging info
1494 # mess up M-x gdb in Emacs.
1496 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1498 for ac_var
in $ac_precious_vars; do
1499 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1500 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1501 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1502 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1506 # Report the --help message.
1508 if test "$ac_init_help" = "long"; then
1509 # Omit some internal or obsolete options to make the list less imposing.
1510 # This message is too long to be a string in the A/UX 3.1 sh.
1512 \`configure' configures this package to adapt to many kinds of systems.
1514 Usage: $0 [OPTION]... [VAR=VALUE]...
1516 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1517 VAR=VALUE. See below for descriptions of some of the useful variables.
1519 Defaults for the options are specified in brackets.
1522 -h, --help display this help and exit
1523 --help=short display options specific to this package
1524 --help=recursive display the short help of all the included packages
1525 -V, --version display version information and exit
1526 -q, --quiet, --silent do not print \`checking...' messages
1527 --cache-file=FILE cache test results in FILE [disabled]
1528 -C, --config-cache alias for \`--cache-file=config.cache'
1529 -n, --no-create do not create output files
1530 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1532 Installation directories:
1533 --prefix=PREFIX install architecture-independent files in PREFIX
1534 [$ac_default_prefix]
1535 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1538 By default, \`make install' will install all the files in
1539 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1540 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1541 for instance \`--prefix=\$HOME'.
1543 For better control, use the options below.
1545 Fine tuning of the installation directories:
1546 --bindir=DIR user executables [EPREFIX/bin]
1547 --sbindir=DIR system admin executables [EPREFIX/sbin]
1548 --libexecdir=DIR program executables [EPREFIX/libexec]
1549 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1550 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1551 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1552 --libdir=DIR object code libraries [EPREFIX/lib]
1553 --includedir=DIR C header files [PREFIX/include]
1554 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1555 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1556 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1557 --infodir=DIR info documentation [DATAROOTDIR/info]
1558 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1559 --mandir=DIR man documentation [DATAROOTDIR/man]
1560 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1561 --htmldir=DIR html documentation [DOCDIR]
1562 --dvidir=DIR dvi documentation [DOCDIR]
1563 --pdfdir=DIR pdf documentation [DOCDIR]
1564 --psdir=DIR ps documentation [DOCDIR]
1570 --program-prefix=PREFIX prepend PREFIX to installed program names
1571 --program-suffix=SUFFIX append SUFFIX to installed program names
1572 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1575 --build=BUILD configure
for building on BUILD
[guessed
]
1576 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1577 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1581 if test -n "$ac_init_help"; then
1586 --disable-option-checking ignore unrecognized
--enable/--with options
1587 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1588 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1589 --enable-generated-files-in-srcdir
1590 put copies of generated files
in source dir intended
1591 for creating
source tarballs
for users without
1592 texinfo bison or flex
1593 --disable-largefile omit support
for large files
1594 --disable-build-format-warnings
1595 don
't use -Wformat while building GCC
1596 --enable-werror-always enable -Werror despite compiler version
1597 --enable-checking[=LIST]
1598 enable expensive run-time checks. With LIST, enable
1599 only specific categories of checks. Categories are:
1600 yes,no,all,none,release. Flags are:
1601 assert,df,extra,fold,gc,gcac,gimple,misc,
1602 rtlflag,rtl,runtime,tree,valgrind,types
1603 --enable-coverage[=LEVEL]
1604 enable compiler's code coverage collection. Use to
1605 measure compiler performance and
locate unused parts
1606 of the compiler. With LEVEL
, specify optimization.
1607 Values are opt
, noopt
, default is noopt
1608 --enable-gather-detailed-mem-stats
1609 enable detailed memory allocation stats gathering
1610 --enable-valgrind-annotations
1611 enable valgrind runtime interaction
1612 --enable-multilib enable library support
for multiple ABIs
1613 --enable-multiarch enable support
for multiarch paths
1614 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1615 --enable-decimal-float={no
,yes,bid
,dpd
}
1616 enable decimal float extension to C. Selecting
'bid'
1617 or
'dpd' choses
which decimal floating point format
1619 --enable-fixed-point enable fixed-point arithmetic extension to C
1620 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1622 --enable-tls enable or disable generation of tls code overriding
1623 the assembler check
for tls support
1624 --enable-vtable-verify enable vtable verification feature
1625 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1626 GNU Objective-C runtime
1627 --disable-shared don't provide a shared libgcc
1628 --enable-languages=LIST specify
which front-ends to build
1629 --disable-rpath do not hardcode runtime library paths
1630 --enable-sjlj-exceptions
1631 arrange to use setjmp
/longjmp exception handling
1632 --enable-secureplt enable -msecure-plt by default
for PowerPC
1633 --enable-leading-mingw64-underscores
1634 enable leading underscores on
64 bit mingw targets
1635 --enable-cld enable -mcld by default
for 32bit x86
1636 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1638 --disable-win32-registry
1639 disable lookup of installation paths
in the Registry
1641 --enable-win32-registry enable registry lookup
(default
)
1642 --enable-win32-registry=KEY
1643 use KEY instead of GCC version as the last portion
1645 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1646 --enable-static[=PKGS
] build static libraries
[default
=yes]
1647 --enable-fast-install[=PKGS
]
1648 optimize
for fast installation
[default
=yes]
1649 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1650 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1651 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1652 --enable-gnu-indirect-function
1653 enable the use of the @gnu_indirect_function to
1655 --enable-initfini-array use .init_array
/.fini_array sections
1656 --enable-comdat enable COMDAT group support
1658 --enable-fix-cortex-a53-835769
1659 enable workaround
for AArch64 Cortex-A53 erratum
1661 --disable-fix-cortex-a53-835769
1662 disable workaround
for AArch64 Cortex-A53 erratum
1666 --enable-fix-cortex-a53-843419
1667 enable workaround
for AArch64 Cortex-A53 erratum
1669 --disable-fix-cortex-a53-843419
1670 disable workaround
for AArch64 Cortex-A53 erratum
1673 --enable-gnu-unique-object
1674 enable the use of the @gnu_unique_object ELF
1675 extension on glibc systems
1676 --enable-linker-build-id
1677 compiler will always pass
--build-id to linker
1678 --enable-default-ssp enable Stack Smashing Protection as default
1679 --enable-maintainer-mode
1680 enable make rules and dependencies not useful
(and
1681 sometimes confusing
) to the casual installer
1682 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1683 thrashing on the build machine
1684 --enable-version-specific-runtime-libs
1685 specify that runtime libraries should be installed
1686 in a compiler-specific directory
1687 --enable-plugin enable plugin support
1688 --enable-host-shared build
host code as shared libraries
1689 --disable-libquadmath-support
1690 disable libquadmath support
for Fortran
1691 --enable-default-pie enable Position Independent Executable as default
1694 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1695 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1696 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1697 --with-local-prefix=DIR specifies directory to put
local include
1698 --with-native-system-header-dir=dir
1699 use dir as the directory to
look for standard
1700 system header files
in. Defaults to
/usr
/include.
1701 --with-build-sysroot=sysroot
1702 use sysroot as the system root during the build
1703 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1704 --with-gxx-include-dir=DIR
1705 specifies directory to put g
++ header files
1706 --with-cpp-install-dir=DIR
1707 install the user visible C preprocessor
in DIR
1708 (relative to PREFIX
) as well as PREFIX
/bin
1709 --with-gnu-ld arrange to work with GNU ld
1710 --with-ld arrange to use the specified ld
(full pathname
)
1711 --with-demangler-in-ld try to use demangler
in GNU ld
1712 --with-gnu-as arrange to work with GNU as
1713 --with-as arrange to use the specified as
(full pathname
)
1714 --with-stabs arrange to use stabs instead of
host debug format
1715 --with-dwarf2 force the default debug format to be DWARF
2
1716 --with-specs=SPECS add SPECS to driver command-line processing
1717 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1718 --with-bugurl=URL Direct users to URL to report a bug
1719 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1720 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1721 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1722 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1723 --with-pic try to use only PIC/non-PIC objects [default=use
1725 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1726 --with-plugin-ld=[ARG] specify the plugin linker
1727 --with-glibc-version=M.N
1728 assume GCC used with glibc version M.N or later
1729 --with-long-double-128 use 128-bit long double by default
1730 --with-gc={page,zone} this option is not supported anymore. It used to
1731 choose the garbage collection mechanism to use with
1733 --with-system-zlib use installed libz
1734 --with-linker-hash-style={sysv,gnu,both}
1735 specify the linker hash style
1736 --with-diagnostics-color={never,auto,auto-if-env,always}
1737 specify the default of -fdiagnostics-color option
1738 auto-if-env stands for -fdiagnostics-color=auto if
1739 GCC_COLOR environment variable is present and
1740 -fdiagnostics-color=never otherwise
1742 Some influential environment variables:
1743 CC C compiler command
1744 CFLAGS C compiler flags
1745 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1746 nonstandard directory <lib dir>
1747 LIBS libraries to pass to the linker, e.g. -l<library>
1748 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1749 you have headers in a nonstandard directory <include dir>
1750 CXX C++ compiler command
1751 CXXFLAGS C++ compiler flags
1752 CXXCPP C++ preprocessor
1754 GMPLIBS How to link GMP
1755 GMPINC How to find GMP include files
1756 ISLLIBS How to link isl
1757 ISLINC How to find isl include files
1759 Use these variables to override the choices made by `configure' or to
help
1760 it to
find libraries and programs with nonstandard names
/locations.
1762 Report bugs to the package provider.
1767 if test "$ac_init_help" = "recursive"; then
1768 # If there are subdirs, report their specific --help.
1769 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1770 test -d "$ac_dir" ||
1771 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1776 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1778 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1779 # A ".." for each directory in $ac_dir_suffix.
1780 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1781 case $ac_top_builddir_sub in
1782 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1783 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1786 ac_abs_top_builddir
=$ac_pwd
1787 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1788 # for backward compatibility:
1789 ac_top_builddir
=$ac_top_build_prefix
1792 .
) # We are building in place.
1794 ac_top_srcdir
=$ac_top_builddir_sub
1795 ac_abs_top_srcdir
=$ac_pwd ;;
1796 [\\/]* | ?
:[\\/]* ) # Absolute name.
1797 ac_srcdir
=$srcdir$ac_dir_suffix;
1798 ac_top_srcdir
=$srcdir
1799 ac_abs_top_srcdir
=$srcdir ;;
1801 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1802 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1803 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1805 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1807 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1808 # Check for guested configure.
1809 if test -f "$ac_srcdir/configure.gnu"; then
1811 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1812 elif test -f "$ac_srcdir/configure"; then
1814 $SHELL "$ac_srcdir/configure" --help=recursive
1816 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1818 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1822 test -n "$ac_init_help" && exit $ac_status
1823 if $ac_init_version; then
1826 generated by GNU Autoconf
2.64
1828 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1829 This configure
script is free software
; the Free Software Foundation
1830 gives unlimited permission to copy
, distribute and modify it.
1835 ## ------------------------ ##
1836 ## Autoconf initialization. ##
1837 ## ------------------------ ##
1839 # ac_fn_c_try_compile LINENO
1840 # --------------------------
1841 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1842 ac_fn_c_try_compile
()
1844 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1845 rm -f conftest.
$ac_objext
1846 if { { ac_try
="$ac_compile"
1848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_compile") 2>conftest.err
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && {
1862 test -z "$ac_c_werror_flag" ||
1863 test ! -s conftest.err
1864 } && test -s conftest.$ac_objext; then :
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1872 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875 } # ac_fn_c_try_compile
1877 # ac_fn_cxx_try_compile LINENO
1878 # ----------------------------
1879 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1880 ac_fn_cxx_try_compile ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 rm -f conftest.$ac_objext
1884 if { { ac_try="$ac_compile"
1886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1887 *) ac_try_echo
=$ac_try;;
1889 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_compile") 2>conftest.err
1893 if test -s conftest.err
; then
1894 grep -v '^ *+' conftest.err
>conftest.er1
1895 cat conftest.er1
>&5
1896 mv -f conftest.er1 conftest.err
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && {
1900 test -z "$ac_cxx_werror_flag" ||
1901 test ! -s conftest.err
1902 } && test -s conftest.
$ac_objext; then :
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.
$ac_ext >&5
1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1913 } # ac_fn_cxx_try_compile
1915 # ac_fn_cxx_try_cpp LINENO
1916 # ------------------------
1917 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1918 ac_fn_cxx_try_cpp
()
1920 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1921 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1924 *) ac_try_echo=$ac_try;;
1926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927 $as_echo "$ac_try_echo"; } >&5
1928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1930 if test -s conftest.err; then
1931 grep -v '^ *+' conftest.err >conftest.er1
1932 cat conftest.er1 >&5
1933 mv -f conftest.er1 conftest.err
1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936 test $ac_status = 0; } >/dev/null && {
1937 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1938 test ! -s conftest.err
1942 $as_echo "$as_me: failed program was:" >&5
1943 sed 's/^/| /' conftest.$ac_ext >&5
1947 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1950 } # ac_fn_cxx_try_cpp
1952 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1953 # ---------------------------------------------------------
1954 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1955 # the include files in INCLUDES and setting the cache variable VAR
1957 ac_fn_cxx_check_header_mongrel ()
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 $as_echo_n "(cached) " >&6
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1970 # Is the header compilable?
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1972 $as_echo_n "checking $2 usability... " >&6; }
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1978 if ac_fn_cxx_try_compile "$LINENO"; then :
1979 ac_header_compiler=yes
1981 ac_header_compiler=no
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1985 $as_echo "$ac_header_compiler" >&6; }
1987 # Is the header present?
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1989 $as_echo_n "checking $2 presence... " >&6; }
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1994 if ac_fn_cxx_try_cpp "$LINENO"; then :
1995 ac_header_preproc=yes
1997 ac_header_preproc=no
1999 rm -f conftest.err conftest.$ac_ext
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2001 $as_echo "$ac_header_preproc" >&6; }
2003 # So? What about this header?
2004 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2007 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2009 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2013 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2015 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2017 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2019 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2021 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2025 $as_echo_n "checking for $2... " >&6; }
2026 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2027 $as_echo_n "(cached) " >&6
2029 eval "$3=\$ac_header_compiler"
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 $as_echo "$ac_res" >&6; }
2035 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037 } # ac_fn_cxx_check_header_mongrel
2039 # ac_fn_cxx_try_run LINENO
2040 # ------------------------
2041 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2042 # that executables *can* be run.
2043 ac_fn_cxx_try_run ()
2045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046 if { { ac_try="$ac_link"
2048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2049 *) ac_try_echo
=$ac_try;;
2051 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052 $as_echo "$ac_try_echo"; } >&5
2053 (eval "$ac_link") 2>&5
2055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2057 { { case "(($ac_try" in
2058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2059 *) ac_try_echo=$ac_try;;
2061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062 $as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_try") 2>&5
2065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066 test $ac_status = 0; }; }; then :
2069 $as_echo "$as_me: program exited with status $ac_status" >&5
2070 $as_echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2073 ac_retval=$ac_status
2075 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2076 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2079 } # ac_fn_cxx_try_run
2081 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2082 # ---------------------------------------------------------
2083 # Tests whether HEADER exists and can be compiled using the include files in
2084 # INCLUDES, setting the cache variable VAR accordingly.
2085 ac_fn_cxx_check_header_compile ()
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089 $as_echo_n "checking for $2... " >&6; }
2090 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2091 $as_echo_n "(cached) " >&6
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2098 if ac_fn_cxx_try_compile "$LINENO"; then :
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107 $as_echo "$ac_res" >&6; }
2108 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2110 } # ac_fn_cxx_check_header_compile
2112 # ac_fn_c_try_cpp LINENO
2113 # ----------------------
2114 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 if { { ac_try="$ac_cpp conftest.$ac_ext"
2120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2121 *) ac_try_echo
=$ac_try;;
2123 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2124 $as_echo "$ac_try_echo"; } >&5
2125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2127 if test -s conftest.err
; then
2128 grep -v '^ *+' conftest.err
>conftest.er1
2129 cat conftest.er1
>&5
2130 mv -f conftest.er1 conftest.err
2132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2133 test $ac_status = 0; } >/dev
/null
&& {
2134 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2135 test ! -s conftest.err
2139 $as_echo "$as_me: failed program was:" >&5
2140 sed 's/^/| /' conftest.
$ac_ext >&5
2144 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2149 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2150 # ----------------------------------------------
2151 # Tries to find the compile-time value of EXPR in a program that includes
2152 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2154 ac_fn_cxx_compute_int
()
2156 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2157 if test "$cross_compiling" = yes; then
2158 # Depending upon the size, compute the lo and hi bounds.
2159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2165 static int test_array [1 - 2 * !(($2) >= 0)];
2172 if ac_fn_cxx_try_compile
"$LINENO"; then :
2175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2181 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2188 if ac_fn_cxx_try_compile
"$LINENO"; then :
2189 ac_hi
=$ac_mid; break
2191 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2192 if test $ac_lo -le $ac_mid; then
2196 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2207 static int test_array [1 - 2 * !(($2) < 0)];
2214 if ac_fn_cxx_try_compile
"$LINENO"; then :
2217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2223 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2230 if ac_fn_cxx_try_compile
"$LINENO"; then :
2231 ac_lo
=$ac_mid; break
2233 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2234 if test $ac_mid -le $ac_hi; then
2238 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2248 # Binary search between lo and hi bounds.
2249 while test "x$ac_lo" != "x$ac_hi"; do
2250 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2257 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2264 if ac_fn_cxx_try_compile
"$LINENO"; then :
2267 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2272 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2279 static long int longval () { return $2; }
2280 static unsigned long int ulongval () { return $2; }
2287 FILE *f = fopen ("conftest.val", "w");
2292 long int i = longval ();
2295 fprintf (f, "%ld", i);
2299 unsigned long int i = ulongval ();
2302 fprintf (f, "%lu", i);
2304 /* Do not output a trailing newline, as this causes \r\n confusion
2305 on some platforms. */
2306 return ferror (f) || fclose (f) != 0;
2312 if ac_fn_cxx_try_run
"$LINENO"; then :
2313 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2317 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2318 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2322 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2325 } # ac_fn_cxx_compute_int
2327 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2328 # ---------------------------------------------
2329 # Tests whether TYPE exists after having included INCLUDES, setting cache
2330 # variable VAR accordingly.
2331 ac_fn_cxx_check_type
()
2333 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2335 $as_echo_n "checking for $2... " >&6; }
2336 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2337 $as_echo_n "(cached) " >&6
2340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h. */
2352 if ac_fn_cxx_try_compile
"$LINENO"; then :
2353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2365 if ac_fn_cxx_try_compile
"$LINENO"; then :
2370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2376 $as_echo "$ac_res" >&6; }
2377 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2379 } # ac_fn_cxx_check_type
2381 # ac_fn_c_find_intX_t LINENO BITS VAR
2382 # -----------------------------------
2383 # Finds a signed integer type with width BITS, setting cache variable VAR
2385 ac_fn_c_find_intX_t
()
2387 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2389 $as_echo_n "checking for int$2_t... " >&6; }
2390 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2391 $as_echo_n "(cached) " >&6
2394 for ac_type
in int
$2_t 'int' 'long int' \
2395 'long long int' 'short int' 'signed char'; do
2396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2398 $ac_includes_default
2402 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2409 if ac_fn_cxx_try_compile
"$LINENO"; then :
2410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2412 $ac_includes_default
2416 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2417 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2424 if ac_fn_cxx_try_compile
"$LINENO"; then :
2431 eval "$3=\$ac_type" ;;
2434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2438 if test "x$as_val" = x
""no
; then :
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2447 $as_echo "$ac_res" >&6; }
2448 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2450 } # ac_fn_c_find_intX_t
2452 # ac_fn_cxx_try_link LINENO
2453 # -------------------------
2454 # Try to link conftest.$ac_ext, and return whether this succeeded.
2455 ac_fn_cxx_try_link
()
2457 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2458 rm -f conftest.
$ac_objext conftest
$ac_exeext
2459 if { { ac_try
="$ac_link"
2461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2465 $as_echo "$ac_try_echo"; } >&5
2466 (eval "$ac_link") 2>conftest.err
2468 if test -s conftest.err; then
2469 grep -v '^ *+' conftest.err >conftest.er1
2470 cat conftest.er1 >&5
2471 mv -f conftest.er1 conftest.err
2473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2474 test $ac_status = 0; } && {
2475 test -z "$ac_cxx_werror_flag" ||
2476 test ! -s conftest.err
2477 } && test -s conftest$ac_exeext && {
2478 test "$cross_compiling" = yes ||
2479 $as_test_x conftest$ac_exeext
2483 $as_echo "$as_me: failed program was:" >&5
2484 sed 's/^/| /' conftest.$ac_ext >&5
2488 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2489 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2490 # interfere with the next link command; also delete a directory that is
2491 # left behind by Apple's compiler. We do this before executing the actions.
2492 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2493 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2496 } # ac_fn_cxx_try_link
2498 # ac_fn_c_find_uintX_t LINENO BITS VAR
2499 # ------------------------------------
2500 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2502 ac_fn_c_find_uintX_t ()
2504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2506 $as_echo_n "checking for uint$2_t... " >&6; }
2507 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2508 $as_echo_n "(cached) " >&6
2511 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2512 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h. */
2515 $ac_includes_default
2519 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2526 if ac_fn_cxx_try_compile "$LINENO"; then :
2531 eval "$3=\$ac_type" ;;
2534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2536 if test "x$as_val" = x""no; then :
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2545 $as_echo "$ac_res" >&6; }
2546 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2548 } # ac_fn_c_find_uintX_t
2550 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2551 # ------------------------------------------------
2552 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2553 ac_fn_cxx_check_header_preproc ()
2555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2557 $as_echo_n "checking for $2... " >&6; }
2558 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2559 $as_echo_n "(cached) " >&6
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h. */
2565 if ac_fn_cxx_try_cpp "$LINENO"; then :
2570 rm -f conftest.err conftest.$ac_ext
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2574 $as_echo "$ac_res" >&6; }
2575 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2577 } # ac_fn_cxx_check_header_preproc
2579 # ac_fn_cxx_check_func LINENO FUNC VAR
2580 # ------------------------------------
2581 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2582 ac_fn_cxx_check_func ()
2584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2586 $as_echo_n "checking for $2... " >&6; }
2587 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2588 $as_echo_n "(cached) " >&6
2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h. */
2592 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2594 #define $2 innocuous_$2
2596 /* System header to define __stub macros and hopefully few prototypes,
2597 which can conflict with char $2 (); below.
2598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2599 <limits.h> exists even on freestanding compilers. */
2602 # include <limits.h>
2604 # include <assert.h>
2609 /* Override any GCC internal prototype to avoid an error.
2610 Use char because int might match the return type of a GCC
2611 builtin and then its argument prototype would still apply. */
2616 /* The GNU C library defines this for functions which it implements
2617 to always fail with ENOSYS. Some functions are actually named
2618 something starting with __ and the normal name is an alias. */
2619 #if defined __stub_$2 || defined __stub___$2
2631 if ac_fn_cxx_try_link "$LINENO"; then :
2636 rm -f core conftest.err conftest.$ac_objext \
2637 conftest$ac_exeext conftest.$ac_ext
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2641 $as_echo "$ac_res" >&6; }
2642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2644 } # ac_fn_cxx_check_func
2646 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2647 # --------------------------------------
2648 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2649 ac_fn_cxx_check_decl ()
2651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2652 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2653 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2655 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2656 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2657 $as_echo_n "(cached) " >&6
2659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2660 /* end confdefs.h. */
2665 #ifndef $as_decl_name
2667 (void) $as_decl_use;
2669 (void) $as_decl_name;
2677 if ac_fn_cxx_try_compile "$LINENO"; then :
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2686 $as_echo "$ac_res" >&6; }
2687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2689 } # ac_fn_cxx_check_decl
2691 # ac_fn_c_try_link LINENO
2692 # -----------------------
2693 # Try to link conftest.$ac_ext, and return whether this succeeded.
2696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2697 rm -f conftest.$ac_objext conftest$ac_exeext
2698 if { { ac_try="$ac_link"
2700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2701 *) ac_try_echo
=$ac_try;;
2703 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2704 $as_echo "$ac_try_echo"; } >&5
2705 (eval "$ac_link") 2>conftest.err
2707 if test -s conftest.err
; then
2708 grep -v '^ *+' conftest.err
>conftest.er1
2709 cat conftest.er1
>&5
2710 mv -f conftest.er1 conftest.err
2712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2713 test $ac_status = 0; } && {
2714 test -z "$ac_c_werror_flag" ||
2715 test ! -s conftest.err
2716 } && test -s conftest
$ac_exeext && {
2717 test "$cross_compiling" = yes ||
2718 $as_test_x conftest
$ac_exeext
2722 $as_echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.
$ac_ext >&5
2727 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2728 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2729 # interfere with the next link command; also delete a directory that is
2730 # left behind by Apple's compiler. We do this before executing the actions.
2731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2732 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2735 } # ac_fn_c_try_link
2737 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2738 # ----------------------------------------------
2739 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2740 ac_fn_c_check_header_preproc
()
2742 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2744 $as_echo_n "checking for $2... " >&6; }
2745 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2746 $as_echo_n "(cached) " >&6
2748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h. */
2752 if ac_fn_c_try_cpp
"$LINENO"; then :
2757 rm -f conftest.err conftest.
$ac_ext
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2761 $as_echo "$ac_res" >&6; }
2762 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2764 } # ac_fn_c_check_header_preproc
2766 # ac_fn_c_check_func LINENO FUNC VAR
2767 # ----------------------------------
2768 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2769 ac_fn_c_check_func
()
2771 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2773 $as_echo_n "checking for $2... " >&6; }
2774 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2775 $as_echo_n "(cached) " >&6
2777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2778 /* end confdefs.h. */
2779 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2781 #define $2 innocuous_$2
2783 /* System header to define __stub macros and hopefully few prototypes,
2784 which can conflict with char $2 (); below.
2785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2786 <limits.h> exists even on freestanding compilers. */
2789 # include <limits.h>
2791 # include <assert.h>
2796 /* Override any GCC internal prototype to avoid an error.
2797 Use char because int might match the return type of a GCC
2798 builtin and then its argument prototype would still apply. */
2803 /* The GNU C library defines this for functions which it implements
2804 to always fail with ENOSYS. Some functions are actually named
2805 something starting with __ and the normal name is an alias. */
2806 #if defined __stub_$2 || defined __stub___$2
2818 if ac_fn_c_try_link
"$LINENO"; then :
2823 rm -f core conftest.err conftest.
$ac_objext \
2824 conftest
$ac_exeext conftest.
$ac_ext
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2828 $as_echo "$ac_res" >&6; }
2829 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2831 } # ac_fn_c_check_func
2832 cat >config.log
<<_ACEOF
2833 This file contains any messages produced by compilers while
2834 running configure, to aid debugging if configure makes a mistake.
2836 It was created by $as_me, which was
2837 generated by GNU Autoconf 2.64. Invocation command line was
2849 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2850 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2851 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2852 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2853 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2855 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2856 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2858 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2859 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2860 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2861 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2862 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2863 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2864 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2872 test -z "$as_dir" && as_dir
=.
2873 $as_echo "PATH: $as_dir"
2889 # Keep a trace of the command line.
2890 # Strip out --no-create and --no-recursion so they do not pile up.
2891 # Strip out --silent because we don't want to record it for future runs.
2892 # Also quote any args containing shell meta-characters.
2893 # Make two passes to allow for proper duplicate-argument suppression.
2897 ac_must_keep_next
=false
2903 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2904 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2905 |
-silent |
--silent |
--silen |
--sile |
--sil)
2908 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2911 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2913 as_fn_append ac_configure_args1
" '$ac_arg'"
2914 if test $ac_must_keep_next = true
; then
2915 ac_must_keep_next
=false
# Got value, back to normal.
2918 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2919 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2920 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2921 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2922 case "$ac_configure_args0 " in
2923 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2926 -* ) ac_must_keep_next
=true
;;
2929 as_fn_append ac_configure_args
" '$ac_arg'"
2934 { ac_configure_args0
=; unset ac_configure_args0
;}
2935 { ac_configure_args1
=; unset ac_configure_args1
;}
2937 # When interrupted or exit'd, cleanup temporary files, and complete
2938 # config.log. We remove comments because anyway the quotes in there
2939 # would cause problems or look ugly.
2940 # WARNING: Use '\'' to represent an apostrophe within the trap.
2941 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2942 trap 'exit_status=$?
2943 # Save into config.log some information that might help in debugging.
2948 ## ---------------- ##
2949 ## Cache variables. ##
2950 ## ---------------- ##
2953 # The following way of writing the cache mishandles newlines in values,
2955 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2956 eval ac_val=\$$ac_var
2960 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2961 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2964 _ | IFS | as_nl) ;; #(
2965 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2966 *) { eval $ac_var=; unset $ac_var;} ;;
2971 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2972 *${as_nl}ac_space=\ *)
2974 "s/'\''/'\''\\\\'\'''\''/g;
2975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2978 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2986 ## ----------------- ##
2987 ## Output variables. ##
2988 ## ----------------- ##
2991 for ac_var in $ac_subst_vars
2993 eval ac_val=\$$ac_var
2995 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2997 $as_echo "$ac_var='\''$ac_val'\''"
3001 if test -n "$ac_subst_files"; then
3003 ## ------------------- ##
3004 ## File substitutions. ##
3005 ## ------------------- ##
3008 for ac_var
in $ac_subst_files
3010 eval ac_val
=\$
$ac_var
3012 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3014 $as_echo "$ac_var='\''$ac_val'\''"
3019 if test -s confdefs.h; then
3029 test "$ac_signal" != 0 &&
3030 $as_echo "$as_me: caught signal $ac_signal"
3031 $as_echo "$as_me: exit $exit_status"
3033 rm -f core *.core core.conftest.* &&
3034 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3037 for ac_signal
in 1 2 13 15; do
3038 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3042 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3043 rm -f -r conftest
* confdefs.h
3045 $as_echo "/* confdefs.h */" > confdefs.h
3047 # Predefined preprocessor variables.
3049 cat >>confdefs.h
<<_ACEOF
3050 #define PACKAGE_NAME "$PACKAGE_NAME"
3053 cat >>confdefs.h
<<_ACEOF
3054 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3057 cat >>confdefs.h
<<_ACEOF
3058 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3061 cat >>confdefs.h
<<_ACEOF
3062 #define PACKAGE_STRING "$PACKAGE_STRING"
3065 cat >>confdefs.h
<<_ACEOF
3066 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3069 cat >>confdefs.h
<<_ACEOF
3070 #define PACKAGE_URL "$PACKAGE_URL"
3074 # Let the site file select an alternate cache file if it wants to.
3075 # Prefer an explicitly selected file to automatically selected ones.
3078 if test -n "$CONFIG_SITE"; then
3079 ac_site_file1
=$CONFIG_SITE
3080 elif test "x$prefix" != xNONE
; then
3081 ac_site_file1
=$prefix/share
/config.site
3082 ac_site_file2
=$prefix/etc
/config.site
3084 ac_site_file1
=$ac_default_prefix/share
/config.site
3085 ac_site_file2
=$ac_default_prefix/etc
/config.site
3087 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3089 test "x$ac_site_file" = xNONE
&& continue
3090 if test -r "$ac_site_file"; then
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3092 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3093 sed 's/^/| /' "$ac_site_file" >&5
3098 if test -r "$cache_file"; then
3099 # Some versions of bash will fail to source /dev/null (special
3100 # files actually), so we avoid doing that.
3101 if test -f "$cache_file"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3103 $as_echo "$as_me: loading cache $cache_file" >&6;}
3105 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3106 *) .
"./$cache_file";;
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3111 $as_echo "$as_me: creating cache $cache_file" >&6;}
3115 # Check that the precious variables saved in the cache have kept the same
3117 ac_cache_corrupted
=false
3118 for ac_var
in $ac_precious_vars; do
3119 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3120 eval ac_new_set
=\
$ac_env_${ac_var}_set
3121 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3122 eval ac_new_val
=\
$ac_env_${ac_var}_value
3123 case $ac_old_set,$ac_new_set in
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3126 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3127 ac_cache_corrupted
=: ;;
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3130 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3131 ac_cache_corrupted
=: ;;
3134 if test "x$ac_old_val" != "x$ac_new_val"; then
3135 # differences in whitespace do not lead to failure.
3136 ac_old_val_w
=`echo x $ac_old_val`
3137 ac_new_val_w
=`echo x $ac_new_val`
3138 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3140 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3141 ac_cache_corrupted
=:
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3144 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3145 eval $ac_var=\
$ac_old_val
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3148 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3150 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3153 # Pass precious variables to config.status.
3154 if test "$ac_new_set" = set; then
3156 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3157 *) ac_arg
=$ac_var=$ac_new_val ;;
3159 case " $ac_configure_args " in
3160 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3161 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3165 if $ac_cache_corrupted; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3169 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3170 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3172 ## -------------------- ##
3173 ## Main body of script. ##
3174 ## -------------------- ##
3177 ac_cpp
='$CPP $CPPFLAGS'
3178 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3187 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3190 gcc_version
=`cat $srcdir/BASE-VER`
3192 # Determine the host, build, and target systems
3194 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3195 for ac_t
in install-sh
install.sh shtool
; do
3196 if test -f "$ac_dir/$ac_t"; then
3198 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3203 if test -z "$ac_aux_dir"; then
3204 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3207 # These three variables are undocumented and unsupported,
3208 # and are intended to be withdrawn in a future Autoconf release.
3209 # They can cause serious problems if a builder's source tree is in a directory
3210 # whose full name contains unusual characters.
3211 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3212 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3213 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3216 # Make sure we can run config.sub.
3217 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3218 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3221 $as_echo_n "checking build system type... " >&6; }
3222 if test "${ac_cv_build+set}" = set; then :
3223 $as_echo_n "(cached) " >&6
3225 ac_build_alias
=$build_alias
3226 test "x$ac_build_alias" = x
&&
3227 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3228 test "x$ac_build_alias" = x
&&
3229 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3230 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3231 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3235 $as_echo "$ac_cv_build" >&6; }
3236 case $ac_cv_build in
3238 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3241 ac_save_IFS
=$IFS; IFS
='-'
3247 # Remember, the first character of IFS is used to create $*,
3248 # except with old shells:
3251 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3255 $as_echo_n "checking host system type... " >&6; }
3256 if test "${ac_cv_host+set}" = set; then :
3257 $as_echo_n "(cached) " >&6
3259 if test "x$host_alias" = x
; then
3260 ac_cv_host
=$ac_cv_build
3262 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3263 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3268 $as_echo "$ac_cv_host" >&6; }
3271 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3274 ac_save_IFS
=$IFS; IFS
='-'
3280 # Remember, the first character of IFS is used to create $*,
3281 # except with old shells:
3284 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3288 $as_echo_n "checking target system type... " >&6; }
3289 if test "${ac_cv_target+set}" = set; then :
3290 $as_echo_n "(cached) " >&6
3292 if test "x$target_alias" = x
; then
3293 ac_cv_target
=$ac_cv_host
3295 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3296 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3301 $as_echo "$ac_cv_target" >&6; }
3302 case $ac_cv_target in
3304 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3306 target
=$ac_cv_target
3307 ac_save_IFS
=$IFS; IFS
='-'
3313 # Remember, the first character of IFS is used to create $*,
3314 # except with old shells:
3317 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3320 # The aliases save the names the user supplied, while $host etc.
3321 # will get canonicalized.
3322 test -n "$target_alias" &&
3323 test "$program_prefix$program_suffix$program_transform_name" = \
3325 program_prefix
=${target_alias}-
3327 # Determine the noncanonical host name, for Ada.
3328 case ${build_alias} in
3329 "") build_noncanonical
=${build} ;;
3330 *) build_noncanonical
=${build_alias} ;;
3333 case ${host_alias} in
3334 "") host_noncanonical
=${build_noncanonical} ;;
3335 *) host_noncanonical
=${host_alias} ;;
3341 # Determine the noncanonical target name, for directory use.
3342 case ${target_alias} in
3343 "") target_noncanonical
=${host_noncanonical} ;;
3344 *) target_noncanonical
=${target_alias} ;;
3350 # Used for constructing correct paths for offload compilers.
3351 real_target_noncanonical
=${target_noncanonical}
3354 # Determine the target- and build-specific subdirectories
3356 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3357 # have matching libraries, they should use host libraries: Makefile.tpl
3358 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3359 # However, they still use the build modules, because the corresponding
3360 # host modules (e.g. bison) are only built for the host when bootstrap
3362 # - build_subdir is where we find build modules, and never changes.
3363 # - build_libsubdir is where we find build libraries, and can be overridden.
3365 # Prefix 'build-' so this never conflicts with target_subdir.
3366 build_subdir
="build-${build_noncanonical}"
3368 # Check whether --with-build-libsubdir was given.
3369 if test "${with_build_libsubdir+set}" = set; then :
3370 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3372 build_libsubdir
="$build_subdir"
3375 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3376 if ( test $srcdir = .
&& test -d gcc
) \
3377 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3378 host_subdir
="host-${host_noncanonical}"
3383 target_subdir
=${target_noncanonical}
3386 # Set program_transform_name
3387 test "$program_prefix" != NONE
&&
3388 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3389 # Use a double $ so make ignores it.
3390 test "$program_suffix" != NONE
&&
3391 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3392 # Double any \ or $.
3393 # By default was `s,x,x', remove it if useless.
3394 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3395 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3398 # Check for bogus environment variables.
3399 # Test if LIBRARY_PATH contains the notation for the current directory
3400 # since this would lead to problems installing/building glibc.
3401 # LIBRARY_PATH contains the current directory if one of the following
3403 # - one of the terminals (":" and ";") is the first or last sign
3404 # - two terminals occur directly after each other
3405 # - the path contains an element with a dot in it
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3407 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3408 case ${LIBRARY_PATH} in
3409 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3410 library_path_setting
="contains current directory"
3413 library_path_setting
="ok"
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3417 $as_echo "$library_path_setting" >&6; }
3418 if test "$library_path_setting" != "ok"; then
3420 *** LIBRARY_PATH shouldn't contain the current directory when
3421 *** building gcc. Please change the environment variable
3422 *** and run configure again." "$LINENO" 5
3425 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3426 # since this would lead to problems installing/building glibc.
3427 # GCC_EXEC_PREFIX contains the current directory if one of the following
3429 # - one of the terminals (":" and ";") is the first or last sign
3430 # - two terminals occur directly after each other
3431 # - the path contains an element with a dot in it
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3433 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3434 case ${GCC_EXEC_PREFIX} in
3435 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3436 gcc_exec_prefix_setting
="contains current directory"
3439 gcc_exec_prefix_setting
="ok"
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3443 $as_echo "$gcc_exec_prefix_setting" >&6; }
3444 if test "$gcc_exec_prefix_setting" != "ok"; then
3446 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3447 *** building gcc. Please change the environment variable
3448 *** and run configure again." "$LINENO" 5
3455 # Specify the local prefix
3458 # Check whether --with-local-prefix was given.
3459 if test "${with_local_prefix+set}" = set; then :
3460 withval
=$with_local_prefix; case "${withval}" in
3461 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3463 *) local_prefix
=$with_local_prefix ;;
3468 # Default local prefix if it is empty
3469 if test x
$local_prefix = x
; then
3470 local_prefix
=/usr
/local
3474 # Check whether --with-native-system-header-dir was given.
3475 if test "${with_native_system_header_dir+set}" = set; then :
3476 withval
=$with_native_system_header_dir;
3477 case ${with_native_system_header_dir} in
3478 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3479 /* |
[A-Za-z
]:[\\/]*) ;;
3480 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3482 configured_native_system_header_dir
="${withval}"
3485 configured_native_system_header_dir
=
3490 # Check whether --with-build-sysroot was given.
3491 if test "${with_build_sysroot+set}" = set; then :
3492 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
3493 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
3496 SYSROOT_CFLAGS_FOR_TARGET
=
3501 if test "x$prefix" = xNONE
; then
3502 test_prefix
=/usr
/local
3506 if test "x$exec_prefix" = xNONE
; then
3507 test_exec_prefix
=$test_prefix
3509 test_exec_prefix
=$exec_prefix
3513 # Check whether --with-sysroot was given.
3514 if test "${with_sysroot+set}" = set; then :
3515 withval
=$with_sysroot;
3516 case ${with_sysroot} in
3518 */) with_sysroot
=`echo $with_sysroot | sed 's,/$,,'` ;;
3520 case ${with_sysroot} in
3521 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3522 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
3525 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3526 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3528 case ${TARGET_SYSTEM_ROOT} in
3529 "${test_prefix}"|
"${test_prefix}/"*|\
3530 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
3531 '${prefix}'|
'${prefix}/'*|\
3532 '${exec_prefix}'|
'${exec_prefix}/'*)
3533 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3534 TARGET_SYSTEM_ROOT_DEFINE
="$t"
3541 TARGET_SYSTEM_ROOT_DEFINE
=
3542 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
3550 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3551 # passed in by the toplevel make and thus we'd get different behavior
3552 # depending on where we built the sources.
3553 gcc_gxx_include_dir
=
3554 # Specify the g++ header file directory
3556 # Check whether --with-gxx-include-dir was given.
3557 if test "${with_gxx_include_dir+set}" = set; then :
3558 withval
=$with_gxx_include_dir; case "${withval}" in
3559 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3561 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3566 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3567 if test x
${gcc_gxx_include_dir} = x
; then
3568 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3569 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3571 libstdcxx_incdir
='include/c++/$(version)'
3572 if test x
$host != x
$target; then
3573 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3575 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3579 gcc_gxx_include_dir_add_sysroot
=0
3580 if test "${with_sysroot+set}" = set; then
3581 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3582 if test "${gcc_gxx_without_sysroot}"; then
3583 if test x
${with_sysroot} != x
/; then
3584 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3586 gcc_gxx_include_dir_add_sysroot
=1
3591 # Check whether --with-cpp_install_dir was given.
3592 if test "${with_cpp_install_dir+set}" = set; then :
3593 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3594 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3595 elif test x
$withval != xno
; then
3596 cpp_install_dir
=$withval
3601 # We would like to our source tree to be readonly. However when releases or
3602 # pre-releases are generated, the flex/bison generated files as well as the
3603 # various formats of manuals need to be included along with the rest of the
3604 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3608 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3609 # Check whether --enable-generated-files-in-srcdir was given.
3610 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3611 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3613 generated_files_in_srcdir
=no
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3618 $as_echo "$generated_files_in_srcdir" >&6; }
3620 if test "$generated_files_in_srcdir" = "yes"; then
3627 # -------------------
3628 # Find default linker
3629 # -------------------
3633 # Check whether --with-gnu-ld was given.
3634 if test "${with_gnu_ld+set}" = set; then :
3635 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3641 # With pre-defined ld
3643 # Check whether --with-ld was given.
3644 if test "${with_ld+set}" = set; then :
3645 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3648 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3649 if test ! -x "$DEFAULT_LINKER"; then
3650 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3651 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /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*)
5071 PICFLAG_FOR_TARGET
=-fpic
5073 # Default to -fPIC unless specified otherwise.
5075 PICFLAG_FOR_TARGET
=-fPIC
5079 # If the user explicitly uses -fpic/-fPIC, keep that.
5080 case "${CFLAGS_FOR_TARGET}" in
5082 PICFLAG_FOR_TARGET
=-fpic
5085 PICFLAG_FOR_TARGET
=-fPIC
5091 # -------------------------
5092 # Check C compiler features
5093 # -------------------------
5097 ac_cpp
='$CXXCPP $CPPFLAGS'
5098 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5102 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5103 if test -z "$CXXCPP"; then
5104 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5107 # Double quotes because CXXCPP needs to be expanded
5108 for CXXCPP
in "$CXX -E" "/lib/cpp"
5111 for ac_cxx_preproc_warn_flag
in '' yes
5113 # Use a header file that comes with gcc, so configuring glibc
5114 # with a fresh cross-compiler works.
5115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5116 # <limits.h> exists even on freestanding compilers.
5117 # On the NeXT, cc -E runs the code through the compiler's parser,
5118 # not just through cpp. "Syntax error" is here to catch this case.
5119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5122 # include <limits.h>
5124 # include <assert.h>
5128 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5131 # Broken: fails on valid input.
5134 rm -f conftest.err conftest.
$ac_ext
5136 # OK, works on sane cases. Now check whether nonexistent headers
5137 # can be detected and how.
5138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140 #include <ac_nonexistent.h>
5142 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5143 # Broken: success on invalid input.
5146 # Passes both tests.
5150 rm -f conftest.err conftest.
$ac_ext
5153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5154 rm -f conftest.err conftest.
$ac_ext
5155 if $ac_preproc_ok; then :
5160 ac_cv_prog_CXXCPP
=$CXXCPP
5163 CXXCPP
=$ac_cv_prog_CXXCPP
5165 ac_cv_prog_CXXCPP
=$CXXCPP
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5168 $as_echo "$CXXCPP" >&6; }
5170 for ac_cxx_preproc_warn_flag
in '' yes
5172 # Use a header file that comes with gcc, so configuring glibc
5173 # with a fresh cross-compiler works.
5174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5175 # <limits.h> exists even on freestanding compilers.
5176 # On the NeXT, cc -E runs the code through the compiler's parser,
5177 # not just through cpp. "Syntax error" is here to catch this case.
5178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5181 # include <limits.h>
5183 # include <assert.h>
5187 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5190 # Broken: fails on valid input.
5193 rm -f conftest.err conftest.
$ac_ext
5195 # OK, works on sane cases. Now check whether nonexistent headers
5196 # can be detected and how.
5197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199 #include <ac_nonexistent.h>
5201 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5202 # Broken: success on invalid input.
5205 # Passes both tests.
5209 rm -f conftest.err conftest.
$ac_ext
5212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5213 rm -f conftest.err conftest.
$ac_ext
5214 if $ac_preproc_ok; then :
5217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5219 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
5220 See \`config.log' for more details." "$LINENO" 5; }
5224 ac_cpp
='$CXXCPP $CPPFLAGS'
5225 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5226 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5227 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5231 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5232 if test "${ac_cv_path_GREP+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5235 if test -z "$GREP"; then
5236 ac_path_GREP_found
=false
5237 # Loop through the user's path and test for each of PROGNAME-LIST
5238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5239 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5242 test -z "$as_dir" && as_dir
=.
5243 for ac_prog
in grep ggrep
; do
5244 for ac_exec_ext
in '' $ac_executable_extensions; do
5245 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5246 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5247 # Check for GNU ac_path_GREP and select it if it is found.
5248 # Check for GNU $ac_path_GREP
5249 case `"$ac_path_GREP" --version 2>&1` in
5251 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5254 $as_echo_n 0123456789 >"conftest.in"
5257 cat "conftest.in" "conftest.in" >"conftest.tmp"
5258 mv "conftest.tmp" "conftest.in"
5259 cp "conftest.in" "conftest.nl"
5260 $as_echo 'GREP' >> "conftest.nl"
5261 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5262 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5263 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5264 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5265 # Best one so far, save it but keep looking for a better one
5266 ac_cv_path_GREP
="$ac_path_GREP"
5267 ac_path_GREP_max
=$ac_count
5269 # 10*(2^10) chars as input seems more than enough
5270 test $ac_count -gt 10 && break
5272 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5275 $ac_path_GREP_found && break 3
5280 if test -z "$ac_cv_path_GREP"; then
5281 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5284 ac_cv_path_GREP
=$GREP
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5289 $as_echo "$ac_cv_path_GREP" >&6; }
5290 GREP
="$ac_cv_path_GREP"
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5294 $as_echo_n "checking for egrep... " >&6; }
5295 if test "${ac_cv_path_EGREP+set}" = set; then :
5296 $as_echo_n "(cached) " >&6
5298 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5299 then ac_cv_path_EGREP
="$GREP -E"
5301 if test -z "$EGREP"; then
5302 ac_path_EGREP_found
=false
5303 # Loop through the user's path and test for each of PROGNAME-LIST
5304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5305 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5308 test -z "$as_dir" && as_dir
=.
5309 for ac_prog
in egrep; do
5310 for ac_exec_ext
in '' $ac_executable_extensions; do
5311 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5312 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5313 # Check for GNU ac_path_EGREP and select it if it is found.
5314 # Check for GNU $ac_path_EGREP
5315 case `"$ac_path_EGREP" --version 2>&1` in
5317 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5320 $as_echo_n 0123456789 >"conftest.in"
5323 cat "conftest.in" "conftest.in" >"conftest.tmp"
5324 mv "conftest.tmp" "conftest.in"
5325 cp "conftest.in" "conftest.nl"
5326 $as_echo 'EGREP' >> "conftest.nl"
5327 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5328 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5329 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5330 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5331 # Best one so far, save it but keep looking for a better one
5332 ac_cv_path_EGREP
="$ac_path_EGREP"
5333 ac_path_EGREP_max
=$ac_count
5335 # 10*(2^10) chars as input seems more than enough
5336 test $ac_count -gt 10 && break
5338 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5341 $ac_path_EGREP_found && break 3
5346 if test -z "$ac_cv_path_EGREP"; then
5347 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5350 ac_cv_path_EGREP
=$EGREP
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5356 $as_echo "$ac_cv_path_EGREP" >&6; }
5357 EGREP
="$ac_cv_path_EGREP"
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5361 $as_echo_n "checking for ANSI C header files... " >&6; }
5362 if test "${ac_cv_header_stdc+set}" = set; then :
5363 $as_echo_n "(cached) " >&6
5365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5380 if ac_fn_cxx_try_compile
"$LINENO"; then :
5381 ac_cv_header_stdc
=yes
5383 ac_cv_header_stdc
=no
5385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5387 if test $ac_cv_header_stdc = yes; then
5388 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5395 $EGREP "memchr" >/dev
/null
2>&1; then :
5398 ac_cv_header_stdc
=no
5404 if test $ac_cv_header_stdc = yes; then
5405 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5412 $EGREP "free" >/dev
/null
2>&1; then :
5415 ac_cv_header_stdc
=no
5421 if test $ac_cv_header_stdc = yes; then
5422 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5423 if test "$cross_compiling" = yes; then :
5426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5430 #if ((' ' & 0x0FF) == 0x020)
5431 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5432 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5434 # define ISLOWER(c) \
5435 (('a' <= (c) && (c) <= 'i') \
5436 || ('j' <= (c) && (c) <= 'r') \
5437 || ('s' <= (c) && (c) <= 'z'))
5438 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5441 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5446 for (i = 0; i < 256; i++)
5447 if (XOR (islower (i), ISLOWER (i))
5448 || toupper (i) != TOUPPER (i))
5453 if ac_fn_cxx_try_run
"$LINENO"; then :
5456 ac_cv_header_stdc
=no
5458 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5459 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5465 $as_echo "$ac_cv_header_stdc" >&6; }
5466 if test $ac_cv_header_stdc = yes; then
5468 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5472 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5473 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5474 inttypes.h stdint.h unistd.h
5476 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5477 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5479 eval as_val
=\$
$as_ac_Header
5480 if test "x$as_val" = x
""yes; then :
5481 cat >>confdefs.h
<<_ACEOF
5482 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5491 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5492 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5499 if test "$MINIX" = yes; then
5501 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5504 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5507 $as_echo "#define _MINIX 1" >>confdefs.h
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5513 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5514 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5515 $as_echo_n "(cached) " >&6
5517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5518 /* end confdefs.h. */
5520 # define __EXTENSIONS__ 1
5521 $ac_includes_default
5530 if ac_fn_cxx_try_compile
"$LINENO"; then :
5531 ac_cv_safe_to_define___extensions__
=yes
5533 ac_cv_safe_to_define___extensions__
=no
5535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5538 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5539 test $ac_cv_safe_to_define___extensions__ = yes &&
5540 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5542 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5544 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5546 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5548 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5552 ac_cpp
='$CPP $CPPFLAGS'
5553 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5554 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5555 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5557 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5558 # On Suns, sometimes $CPP names a directory.
5559 if test -n "$CPP" && test -d "$CPP"; then
5562 if test -z "$CPP"; then
5563 if test "${ac_cv_prog_CPP+set}" = set; then :
5564 $as_echo_n "(cached) " >&6
5566 # Double quotes because CPP needs to be expanded
5567 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5570 for ac_c_preproc_warn_flag
in '' yes
5572 # Use a header file that comes with gcc, so configuring glibc
5573 # with a fresh cross-compiler works.
5574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5575 # <limits.h> exists even on freestanding compilers.
5576 # On the NeXT, cc -E runs the code through the compiler's parser,
5577 # not just through cpp. "Syntax error" is here to catch this case.
5578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h. */
5581 # include <limits.h>
5583 # include <assert.h>
5587 if ac_fn_c_try_cpp
"$LINENO"; then :
5590 # Broken: fails on valid input.
5593 rm -f conftest.err conftest.
$ac_ext
5595 # OK, works on sane cases. Now check whether nonexistent headers
5596 # can be detected and how.
5597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5599 #include <ac_nonexistent.h>
5601 if ac_fn_c_try_cpp
"$LINENO"; then :
5602 # Broken: success on invalid input.
5605 # Passes both tests.
5609 rm -f conftest.err conftest.
$ac_ext
5612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5613 rm -f conftest.err conftest.
$ac_ext
5614 if $ac_preproc_ok; then :
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5627 $as_echo "$CPP" >&6; }
5629 for ac_c_preproc_warn_flag
in '' yes
5631 # Use a header file that comes with gcc, so configuring glibc
5632 # with a fresh cross-compiler works.
5633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5634 # <limits.h> exists even on freestanding compilers.
5635 # On the NeXT, cc -E runs the code through the compiler's parser,
5636 # not just through cpp. "Syntax error" is here to catch this case.
5637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5640 # include <limits.h>
5642 # include <assert.h>
5646 if ac_fn_c_try_cpp
"$LINENO"; then :
5649 # Broken: fails on valid input.
5652 rm -f conftest.err conftest.
$ac_ext
5654 # OK, works on sane cases. Now check whether nonexistent headers
5655 # can be detected and how.
5656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5657 /* end confdefs.h. */
5658 #include <ac_nonexistent.h>
5660 if ac_fn_c_try_cpp
"$LINENO"; then :
5661 # Broken: success on invalid input.
5664 # Passes both tests.
5668 rm -f conftest.err conftest.
$ac_ext
5671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5672 rm -f conftest.err conftest.
$ac_ext
5673 if $ac_preproc_ok; then :
5676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5678 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5679 See \`config.log' for more details." "$LINENO" 5; }
5683 ac_cpp
='$CXXCPP $CPPFLAGS'
5684 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5685 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5686 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5689 $as_echo_n "checking for inline... " >&6; }
5690 if test "${ac_cv_c_inline+set}" = set; then :
5691 $as_echo_n "(cached) " >&6
5694 for ac_kw
in inline __inline__ __inline
; do
5695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5699 static $ac_kw foo_t static_foo () {return 0; }
5700 $ac_kw foo_t foo () {return 0; }
5704 if ac_fn_cxx_try_compile
"$LINENO"; then :
5705 ac_cv_c_inline
=$ac_kw
5707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5708 test "$ac_cv_c_inline" != no
&& break
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5713 $as_echo "$ac_cv_c_inline" >&6; }
5715 case $ac_cv_c_inline in
5718 case $ac_cv_c_inline in
5720 *) ac_val
=$ac_cv_c_inline;;
5722 cat >>confdefs.h
<<_ACEOF
5724 #define inline $ac_val
5731 # Check whether --enable-largefile was given.
5732 if test "${enable_largefile+set}" = set; then :
5733 enableval
=$enable_largefile;
5736 if test "$enable_largefile" != no
; then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5739 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5740 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5741 $as_echo_n "(cached) " >&6
5743 ac_cv_sys_largefile_CC
=no
5744 if test "$GCC" != yes; then
5747 # IRIX 6.2 and later do not support large files by default,
5748 # so use the C compiler's -n32 option if that helps.
5749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751 #include <sys/types.h>
5752 /* Check that off_t can represent 2**63 - 1 correctly.
5753 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5754 since some C++ compilers masquerading as C compilers
5755 incorrectly reject 9223372036854775807. */
5756 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5758 && LARGE_OFF_T % 2147483647 == 1)
5768 if ac_fn_cxx_try_compile
"$LINENO"; then :
5771 rm -f core conftest.err conftest.
$ac_objext
5773 if ac_fn_cxx_try_compile
"$LINENO"; then :
5774 ac_cv_sys_largefile_CC
=' -n32'; break
5776 rm -f core conftest.err conftest.
$ac_objext
5780 rm -f conftest.
$ac_ext
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5784 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5785 if test "$ac_cv_sys_largefile_CC" != no
; then
5786 CC
=$CC$ac_cv_sys_largefile_CC
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5790 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5791 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5792 $as_echo_n "(cached) " >&6
5795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5797 #include <sys/types.h>
5798 /* Check that off_t can represent 2**63 - 1 correctly.
5799 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5800 since some C++ compilers masquerading as C compilers
5801 incorrectly reject 9223372036854775807. */
5802 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5803 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5804 && LARGE_OFF_T % 2147483647 == 1)
5814 if ac_fn_cxx_try_compile
"$LINENO"; then :
5815 ac_cv_sys_file_offset_bits
=no
; break
5817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5820 #define _FILE_OFFSET_BITS 64
5821 #include <sys/types.h>
5822 /* Check that off_t can represent 2**63 - 1 correctly.
5823 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5824 since some C++ compilers masquerading as C compilers
5825 incorrectly reject 9223372036854775807. */
5826 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5827 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5828 && LARGE_OFF_T % 2147483647 == 1)
5838 if ac_fn_cxx_try_compile
"$LINENO"; then :
5839 ac_cv_sys_file_offset_bits
=64; break
5841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5842 ac_cv_sys_file_offset_bits
=unknown
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5847 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5848 case $ac_cv_sys_file_offset_bits in #(
5851 cat >>confdefs.h
<<_ACEOF
5852 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5857 if test $ac_cv_sys_file_offset_bits = unknown
; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5859 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5860 if test "${ac_cv_sys_large_files+set}" = set; then :
5861 $as_echo_n "(cached) " >&6
5864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5866 #include <sys/types.h>
5867 /* Check that off_t can represent 2**63 - 1 correctly.
5868 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5869 since some C++ compilers masquerading as C compilers
5870 incorrectly reject 9223372036854775807. */
5871 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5872 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5873 && LARGE_OFF_T % 2147483647 == 1)
5883 if ac_fn_cxx_try_compile
"$LINENO"; then :
5884 ac_cv_sys_large_files
=no
; break
5886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5889 #define _LARGE_FILES 1
5890 #include <sys/types.h>
5891 /* Check that off_t can represent 2**63 - 1 correctly.
5892 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5893 since some C++ compilers masquerading as C compilers
5894 incorrectly reject 9223372036854775807. */
5895 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5896 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5897 && LARGE_OFF_T % 2147483647 == 1)
5907 if ac_fn_cxx_try_compile
"$LINENO"; then :
5908 ac_cv_sys_large_files
=1; break
5910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5911 ac_cv_sys_large_files
=unknown
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5916 $as_echo "$ac_cv_sys_large_files" >&6; }
5917 case $ac_cv_sys_large_files in #(
5920 cat >>confdefs.h
<<_ACEOF
5921 #define _LARGE_FILES $ac_cv_sys_large_files
5930 # sizeof(char) is 1 by definition.
5931 # The cast to long int works around a bug in the HP C Compiler
5932 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5933 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5934 # This bug is HP SR number 8606223364.
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5936 $as_echo_n "checking size of void *... " >&6; }
5937 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5940 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5943 if test "$ac_cv_type_void_p" = yes; then
5944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5946 { as_fn_set_status
77
5947 as_fn_error
"cannot compute sizeof (void *)
5948 See \`config.log' for more details." "$LINENO" 5; }; }
5950 ac_cv_sizeof_void_p
=0
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5956 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5960 cat >>confdefs.h
<<_ACEOF
5961 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5965 # The cast to long int works around a bug in the HP C Compiler
5966 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5967 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5968 # This bug is HP SR number 8606223364.
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5970 $as_echo_n "checking size of short... " >&6; }
5971 if test "${ac_cv_sizeof_short+set}" = set; then :
5972 $as_echo_n "(cached) " >&6
5974 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5977 if test "$ac_cv_type_short" = yes; then
5978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5980 { as_fn_set_status
77
5981 as_fn_error
"cannot compute sizeof (short)
5982 See \`config.log' for more details." "$LINENO" 5; }; }
5984 ac_cv_sizeof_short
=0
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5990 $as_echo "$ac_cv_sizeof_short" >&6; }
5994 cat >>confdefs.h
<<_ACEOF
5995 #define SIZEOF_SHORT $ac_cv_sizeof_short
5999 # The cast to long int works around a bug in the HP C Compiler
6000 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6001 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6002 # This bug is HP SR number 8606223364.
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6004 $as_echo_n "checking size of int... " >&6; }
6005 if test "${ac_cv_sizeof_int+set}" = set; then :
6006 $as_echo_n "(cached) " >&6
6008 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6011 if test "$ac_cv_type_int" = yes; then
6012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6014 { as_fn_set_status
77
6015 as_fn_error
"cannot compute sizeof (int)
6016 See \`config.log' for more details." "$LINENO" 5; }; }
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6024 $as_echo "$ac_cv_sizeof_int" >&6; }
6028 cat >>confdefs.h
<<_ACEOF
6029 #define SIZEOF_INT $ac_cv_sizeof_int
6033 # The cast to long int works around a bug in the HP C Compiler
6034 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6035 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6036 # This bug is HP SR number 8606223364.
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6038 $as_echo_n "checking size of long... " >&6; }
6039 if test "${ac_cv_sizeof_long+set}" = set; then :
6040 $as_echo_n "(cached) " >&6
6042 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6045 if test "$ac_cv_type_long" = yes; then
6046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6048 { as_fn_set_status
77
6049 as_fn_error
"cannot compute sizeof (long)
6050 See \`config.log' for more details." "$LINENO" 5; }; }
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6058 $as_echo "$ac_cv_sizeof_long" >&6; }
6062 cat >>confdefs.h
<<_ACEOF
6063 #define SIZEOF_LONG $ac_cv_sizeof_long
6067 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6068 if test "x$ac_cv_type_long_long" = x
""yes; then :
6070 cat >>confdefs.h
<<_ACEOF
6071 #define HAVE_LONG_LONG 1
6074 # The cast to long int works around a bug in the HP C Compiler
6075 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6076 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6077 # This bug is HP SR number 8606223364.
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6079 $as_echo_n "checking size of long long... " >&6; }
6080 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6081 $as_echo_n "(cached) " >&6
6083 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6086 if test "$ac_cv_type_long_long" = yes; then
6087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6089 { as_fn_set_status
77
6090 as_fn_error
"cannot compute sizeof (long long)
6091 See \`config.log' for more details." "$LINENO" 5; }; }
6093 ac_cv_sizeof_long_long
=0
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6099 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6103 cat >>confdefs.h
<<_ACEOF
6104 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6110 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6111 case $ac_cv_c_int8_t in #(
6115 cat >>confdefs.h
<<_ACEOF
6116 #define int8_t $ac_cv_c_int8_t
6121 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6122 case $ac_cv_c_int16_t in #(
6126 cat >>confdefs.h
<<_ACEOF
6127 #define int16_t $ac_cv_c_int16_t
6132 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6133 case $ac_cv_c_int32_t in #(
6137 cat >>confdefs.h
<<_ACEOF
6138 #define int32_t $ac_cv_c_int32_t
6143 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6144 case $ac_cv_c_int64_t in #(
6148 cat >>confdefs.h
<<_ACEOF
6149 #define int64_t $ac_cv_c_int64_t
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6156 $as_echo_n "checking for long long int... " >&6; }
6157 if test "${ac_cv_type_long_long_int+set}" = set; then :
6158 $as_echo_n "(cached) " >&6
6160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6161 /* end confdefs.h. */
6163 /* For now, do not test the preprocessor; as of 2007 there are too many
6164 implementations with broken preprocessors. Perhaps this can
6165 be revisited in 2012. In the meantime, code should not expect
6166 #if to work with literals wider than 32 bits. */
6167 /* Test literals. */
6168 long long int ll = 9223372036854775807ll;
6169 long long int nll = -9223372036854775807LL;
6170 unsigned long long int ull = 18446744073709551615ULL;
6171 /* Test constant expressions. */
6172 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6174 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6180 /* Test availability of runtime routines for shift and division. */
6181 long long int llmax = 9223372036854775807ll;
6182 unsigned long long int ullmax = 18446744073709551615ull;
6183 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6184 | (llmax / ll) | (llmax % ll)
6185 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6186 | (ullmax / ull) | (ullmax % ull));
6192 if ac_fn_cxx_try_link
"$LINENO"; then :
6193 if test "$cross_compiling" = yes; then :
6194 ac_cv_type_long_long_int
=yes
6196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6201 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6202 # define LLONG_MAX (HALF - 1 + HALF)
6207 long long int n = 1;
6211 long long int m = n << i;
6214 if (LLONG_MAX / 2 < m)
6222 if ac_fn_cxx_try_run
"$LINENO"; then :
6223 ac_cv_type_long_long_int
=yes
6225 ac_cv_type_long_long_int
=no
6227 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6228 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6232 ac_cv_type_long_long_int
=no
6234 rm -f core conftest.err conftest.
$ac_objext \
6235 conftest
$ac_exeext conftest.
$ac_ext
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6238 $as_echo "$ac_cv_type_long_long_int" >&6; }
6239 if test $ac_cv_type_long_long_int = yes; then
6241 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6247 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6248 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6250 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6253 test $ac_cv_type_long_long_int = yes \
6254 && ac_type
='long long int' \
6255 || ac_type
='long int'
6257 cat >>confdefs.h
<<_ACEOF
6258 #define intmax_t $ac_type
6265 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6266 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6268 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6271 for ac_type
in 'int' 'long int' 'long long int'; do
6272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274 $ac_includes_default
6278 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6285 if ac_fn_cxx_try_compile
"$LINENO"; then :
6287 cat >>confdefs.h
<<_ACEOF
6288 #define intptr_t $ac_type
6293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6294 test -z "$ac_type" && break
6299 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6300 case $ac_cv_c_uint8_t in #(
6304 $as_echo "#define _UINT8_T 1" >>confdefs.h
6307 cat >>confdefs.h
<<_ACEOF
6308 #define uint8_t $ac_cv_c_uint8_t
6313 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6314 case $ac_cv_c_uint16_t in #(
6319 cat >>confdefs.h
<<_ACEOF
6320 #define uint16_t $ac_cv_c_uint16_t
6325 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6326 case $ac_cv_c_uint32_t in #(
6330 $as_echo "#define _UINT32_T 1" >>confdefs.h
6333 cat >>confdefs.h
<<_ACEOF
6334 #define uint32_t $ac_cv_c_uint32_t
6339 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6340 case $ac_cv_c_uint64_t in #(
6344 $as_echo "#define _UINT64_T 1" >>confdefs.h
6347 cat >>confdefs.h
<<_ACEOF
6348 #define uint64_t $ac_cv_c_uint64_t
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6355 $as_echo_n "checking for unsigned long long int... " >&6; }
6356 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6357 $as_echo_n "(cached) " >&6
6359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h. */
6362 /* For now, do not test the preprocessor; as of 2007 there are too many
6363 implementations with broken preprocessors. Perhaps this can
6364 be revisited in 2012. In the meantime, code should not expect
6365 #if to work with literals wider than 32 bits. */
6366 /* Test literals. */
6367 long long int ll = 9223372036854775807ll;
6368 long long int nll = -9223372036854775807LL;
6369 unsigned long long int ull = 18446744073709551615ULL;
6370 /* Test constant expressions. */
6371 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6373 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6379 /* Test availability of runtime routines for shift and division. */
6380 long long int llmax = 9223372036854775807ll;
6381 unsigned long long int ullmax = 18446744073709551615ull;
6382 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6383 | (llmax / ll) | (llmax % ll)
6384 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6385 | (ullmax / ull) | (ullmax % ull));
6391 if ac_fn_cxx_try_link
"$LINENO"; then :
6392 ac_cv_type_unsigned_long_long_int
=yes
6394 ac_cv_type_unsigned_long_long_int
=no
6396 rm -f core conftest.err conftest.
$ac_objext \
6397 conftest
$ac_exeext conftest.
$ac_ext
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6400 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6401 if test $ac_cv_type_unsigned_long_long_int = yes; then
6403 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6409 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6410 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6412 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6415 test $ac_cv_type_unsigned_long_long_int = yes \
6416 && ac_type
='unsigned long long int' \
6417 || ac_type
='unsigned long int'
6419 cat >>confdefs.h
<<_ACEOF
6420 #define uintmax_t $ac_type
6427 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6428 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6430 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6433 for ac_type
in 'unsigned int' 'unsigned long int' \
6434 'unsigned long long int'; do
6435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h. */
6437 $ac_includes_default
6441 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6448 if ac_fn_cxx_try_compile
"$LINENO"; then :
6450 cat >>confdefs.h
<<_ACEOF
6451 #define uintptr_t $ac_type
6456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6457 test -z "$ac_type" && break
6474 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6475 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6478 # check what underlying integer type int64_t uses
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6480 $as_echo_n "checking for int64_t underlying type... " >&6; }
6481 if test "${ac_cv_int64_t_type+set}" = set; then :
6482 $as_echo_n "(cached) " >&6
6485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6486 /* end confdefs.h. */
6488 #ifdef HAVE_STDINT_H
6491 template <typename T> struct X { };
6493 struct X<long> { typedef long t; };
6503 if ac_fn_cxx_try_compile
"$LINENO"; then :
6504 ac_cv_int64_t_type
=long
6506 ac_cv_int64_t_type
="long long"
6508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6511 $as_echo "$ac_cv_int64_t_type" >&6; }
6512 if test "$ac_cv_int64_t_type" = "long"; then
6514 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */
6520 #ifdef HAVE_STDINT_H
6523 template <typename T> struct X { };
6525 struct X<long long> { typedef long long t; };
6535 if ac_fn_cxx_try_compile
"$LINENO"; then :
6538 as_fn_error
"error verifying int64_t uses long long" "$LINENO" 5
6540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6544 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6545 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6546 $as_echo_n "(cached) " >&6
6549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6557 int a, b; std::swap(a,b);
6562 if ac_fn_cxx_try_compile
"$LINENO"; then :
6563 ac_cv_std_swap_in_utility
=yes
6565 ac_cv_std_swap_in_utility
=no
6567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6570 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6571 if test $ac_cv_std_swap_in_utility = yes; then
6573 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6577 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6578 # If the host compiler is affected by the bug, and we build with optimization
6579 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6580 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6581 # Since there is no reliable feature check for the presence of this bug,
6582 # we simply use a GCC version number check. (This should never trigger for
6583 # stages 2 or 3 of a native bootstrap.)
6585 if test "$GCC" = yes; then
6586 saved_CXXFLAGS
="$CXXFLAGS"
6588 # The following test compilation will succeed if and only if $CXX accepts
6589 # -fno-strict-aliasing *and* is older than GCC 4.3.
6590 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6592 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6594 /* end confdefs.h. */
6596 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6597 #error compiler not affected by placement new aliasing bug
6601 if ac_fn_cxx_try_compile
"$LINENO"; then :
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6603 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6610 CXXFLAGS
="$saved_CXXFLAGS"
6616 # ---------------------
6617 # Warnings and checking
6618 # ---------------------
6620 # Check $CC warning features (if it's GCC).
6621 # We want to use -pedantic, but we don't want warnings about
6624 # * overlong strings
6625 # * C++11 narrowing conversions in { }
6626 # So, we only use -pedantic if we can disable those warnings.
6628 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6629 # Check whether --enable-build-format-warnings was given.
6630 if test "${enable_build_format_warnings+set}" = set; then :
6631 enableval
=$enable_build_format_warnings;
6633 enable_build_format_warnings
=yes
6636 if test $enable_build_format_warnings = no
; then :
6642 ac_cpp
='$CXXCPP $CPPFLAGS'
6643 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6644 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6645 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6648 save_CXXFLAGS
="$CXXFLAGS"
6649 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6650 # Do the check with the no- prefix removed since gcc silently
6651 # accepts any -Wno-* option on purpose
6652 case $real_option in
6653 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6654 *) option
=$real_option ;;
6656 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6659 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6660 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6661 $as_echo_n "(cached) " >&6
6664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6675 if ac_fn_cxx_try_compile
"$LINENO"; then :
6676 eval "$as_acx_Woption=yes"
6678 eval "$as_acx_Woption=no"
6680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6683 eval ac_res
=\$
$as_acx_Woption
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6685 $as_echo "$ac_res" >&6; }
6686 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6687 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6690 CXXFLAGS
="$save_CXXFLAGS"
6692 ac_cpp
='$CXXCPP $CPPFLAGS'
6693 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6694 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6695 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6700 ac_cpp
='$CPP $CPPFLAGS'
6701 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6702 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6703 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6706 save_CFLAGS
="$CFLAGS"
6707 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6708 # Do the check with the no- prefix removed since gcc silently
6709 # accepts any -Wno-* option on purpose
6710 case $real_option in
6711 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6712 *) option
=$real_option ;;
6714 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6717 $as_echo_n "checking whether $CC supports $option... " >&6; }
6718 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6719 $as_echo_n "(cached) " >&6
6722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6723 /* end confdefs.h. */
6733 if ac_fn_c_try_compile
"$LINENO"; then :
6734 eval "$as_acx_Woption=yes"
6736 eval "$as_acx_Woption=no"
6738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6741 eval ac_res
=\$
$as_acx_Woption
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6743 $as_echo "$ac_res" >&6; }
6744 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6745 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6748 CFLAGS
="$save_CFLAGS"
6750 ac_cpp
='$CXXCPP $CPPFLAGS'
6751 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6752 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6753 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6757 ac_cpp
='$CXXCPP $CPPFLAGS'
6758 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6759 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6760 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6763 save_CXXFLAGS
="$CXXFLAGS"
6764 for real_option
in -Wmissing-format-attribute; do
6765 # Do the check with the no- prefix removed since gcc silently
6766 # accepts any -Wno-* option on purpose
6767 case $real_option in
6768 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6769 *) option
=$real_option ;;
6771 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6774 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6775 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6776 $as_echo_n "(cached) " >&6
6779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6790 if ac_fn_cxx_try_compile
"$LINENO"; then :
6791 eval "$as_acx_Woption=yes"
6793 eval "$as_acx_Woption=no"
6795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6798 eval ac_res
=\$
$as_acx_Woption
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6800 $as_echo "$ac_res" >&6; }
6801 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6802 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6805 CXXFLAGS
="$save_CXXFLAGS"
6807 ac_cpp
='$CXXCPP $CPPFLAGS'
6808 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6809 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6810 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6814 ac_cpp
='$CXXCPP $CPPFLAGS'
6815 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6816 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6817 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6819 save_CXXFLAGS
="$CXXFLAGS"
6820 for real_option
in -Woverloaded-virtual; do
6821 # Do the check with the no- prefix removed since gcc silently
6822 # accepts any -Wno-* option on purpose
6823 case $real_option in
6824 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6825 *) option
=$real_option ;;
6827 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6830 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6831 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6832 $as_echo_n "(cached) " >&6
6835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6846 if ac_fn_cxx_try_compile
"$LINENO"; then :
6847 eval "$as_acx_Woption=yes"
6849 eval "$as_acx_Woption=no"
6851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6854 eval ac_res
=\$
$as_acx_Woption
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6856 $as_echo "$ac_res" >&6; }
6857 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6858 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6861 CXXFLAGS
="$save_CXXFLAGS"
6863 ac_cpp
='$CXXCPP $CPPFLAGS'
6864 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6865 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6866 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6870 ac_cpp
='$CPP $CPPFLAGS'
6871 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6872 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6873 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6876 save_CFLAGS
="$CFLAGS"
6877 for real_option
in -Wold-style-definition -Wc++-compat; do
6878 # Do the check with the no- prefix removed since gcc silently
6879 # accepts any -Wno-* option on purpose
6880 case $real_option in
6881 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6882 *) option
=$real_option ;;
6884 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6887 $as_echo_n "checking whether $CC supports $option... " >&6; }
6888 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6889 $as_echo_n "(cached) " >&6
6892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6903 if ac_fn_c_try_compile
"$LINENO"; then :
6904 eval "$as_acx_Woption=yes"
6906 eval "$as_acx_Woption=no"
6908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6911 eval ac_res
=\$
$as_acx_Woption
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6913 $as_echo "$ac_res" >&6; }
6914 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6915 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6918 CFLAGS
="$save_CFLAGS"
6920 ac_cpp
='$CXXCPP $CPPFLAGS'
6921 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6922 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6923 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6927 ac_cpp
='$CXXCPP $CPPFLAGS'
6928 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6929 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6930 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6932 # Do the check with the no- prefix removed from the warning options
6933 # since gcc silently accepts any -Wno-* option on purpose
6934 if test "$GXX" = yes; then :
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6936 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6937 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6938 $as_echo_n "(cached) " >&6
6940 save_CXXFLAGS
="$CXXFLAGS"
6941 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6953 if ac_fn_cxx_try_compile
"$LINENO"; then :
6954 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6956 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6959 CXXFLAGS
="$save_CXXFLAGS"
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6962 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6963 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6964 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6969 ac_cpp
='$CXXCPP $CPPFLAGS'
6970 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6971 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6972 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6976 ac_cpp
='$CXXCPP $CPPFLAGS'
6977 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6978 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6979 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6981 # Check whether --enable-werror-always was given.
6982 if test "${enable_werror_always+set}" = set; then :
6983 enableval
=$enable_werror_always;
6985 enable_werror_always
=no
6988 if test $enable_werror_always = yes; then :
6989 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6993 ac_cpp
='$CXXCPP $CPPFLAGS'
6994 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6995 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6996 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7000 # The above macros do nothing if the compiler is not GCC. However, the
7001 # Makefile has more goo to add other flags, so these variables are used
7002 # to enable warnings only for GCC.
7005 if test "x$GCC" = "xyes"; then
7006 warn_cflags
='$(GCC_WARN_CFLAGS)'
7007 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7012 # Disable exceptions and RTTI if building with g++
7014 ac_cpp
='$CPP $CPPFLAGS'
7015 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7016 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7017 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7020 save_CFLAGS
="$CFLAGS"
7021 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7022 # Do the check with the no- prefix removed since gcc silently
7023 # accepts any -Wno-* option on purpose
7024 case $real_option in
7025 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7026 *) option
=$real_option ;;
7028 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7031 $as_echo_n "checking whether $CC supports $option... " >&6; }
7032 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7033 $as_echo_n "(cached) " >&6
7036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7047 if ac_fn_c_try_compile
"$LINENO"; then :
7048 eval "$as_acx_Woption=yes"
7050 eval "$as_acx_Woption=no"
7052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7055 eval ac_res
=\$
$as_acx_Woption
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7057 $as_echo "$ac_res" >&6; }
7058 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7059 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7062 CFLAGS
="$save_CFLAGS"
7064 ac_cpp
='$CXXCPP $CPPFLAGS'
7065 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7066 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7067 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7071 # Enable expensive internal checks
7073 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7077 # Check whether --enable-checking was given.
7078 if test "${enable_checking+set}" = set; then :
7079 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7082 # Determine the default checks.
7083 if test x
$is_release = x
; then
7084 ac_checking_flags
=yes,extra
7086 ac_checking_flags
=release
7090 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7091 for check
in release
$ac_checking_flags
7094 # these set all the flags to specific states
7095 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7096 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7097 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7098 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7099 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7100 ac_types_checking
=1 ;;
7101 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7102 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7103 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7104 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7105 ac_tree_checking
= ; ac_valgrind_checking
= ;
7106 ac_types_checking
= ;;
7107 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7108 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7109 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7110 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7111 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7112 ac_types_checking
=1 ;;
7113 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7114 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7115 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7116 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7117 ac_tree_checking
= ; ac_valgrind_checking
= ;
7118 ac_types_checking
= ;;
7119 # these enable particular checks
7120 assert
) ac_assert_checking
=1 ;;
7121 df
) ac_df_checking
=1 ;;
7122 extra
) ac_extra_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
7141 if test x
$ac_extra_checking != x
; then
7145 cat >>confdefs.h
<<_ACEOF
7146 #define CHECKING_P $ac_checking
7149 nocommon_flag
=-fno-common
7151 $as_echo "#define CHECKING_P 0" >>confdefs.h
7155 if test x
$ac_df_checking != x
; then
7157 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7160 if test x
$ac_assert_checking != x
; then
7162 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7165 if test x
$ac_gimple_checking != x
; then
7167 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7171 if test x
$ac_runtime_checking != x
; then
7173 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7176 if test x
$ac_tree_checking != x
; then
7178 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7182 if test x
$ac_types_checking != x
; then
7184 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7188 if test x
$ac_rtl_checking != x
; then
7190 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7193 if test x
$ac_rtlflag_checking != x
; then
7195 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7198 if test x
$ac_gc_checking != x
; then
7200 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7203 if test x
$ac_gc_always_collect != x
; then
7205 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7208 if test x
$ac_fold_checking != x
; then
7210 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7213 valgrind_path_defines
=
7216 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7217 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
7225 # It is certainly possible that there's valgrind but no valgrind.h.
7226 # GCC relies on making annotations so we must have both.
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7228 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7231 #include <valgrind/memcheck.h>
7232 #ifndef VALGRIND_DISCARD
7233 #error VALGRIND_DISCARD not defined
7236 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7237 gcc_cv_header_valgrind_memcheck_h
=yes
7239 gcc_cv_header_valgrind_memcheck_h
=no
7241 rm -f conftest.err conftest.
$ac_ext
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7243 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7245 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7248 #include <memcheck.h>
7249 #ifndef VALGRIND_DISCARD
7250 #error VALGRIND_DISCARD not defined
7253 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7254 gcc_cv_header_memcheck_h
=yes
7256 gcc_cv_header_memcheck_h
=no
7258 rm -f conftest.err conftest.
$ac_ext
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7260 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7261 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7263 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7266 if test $gcc_cv_header_memcheck_h = yes; then
7268 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7272 if test x
$ac_valgrind_checking != x
; then
7274 # Prepare PATH_SEPARATOR.
7275 # The user is always right.
7276 if test "${PATH_SEPARATOR+set}" != set; then
7277 echo "#! /bin/sh" >conf$$.sh
7278 echo "exit 0" >>conf$$.sh
7280 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7288 # Find out how to test for executable files. Don't use a zero-byte file,
7289 # as systems may use methods other than mode bits to determine executability.
7290 cat >conf$$.
file <<_ASEOF
7294 chmod +x conf$$.
file
7295 if test -x conf$$.
file >/dev
/null
2>&1; then
7296 ac_executable_p
="test -x"
7298 ac_executable_p
="test -f"
7302 # Extract the first word of "valgrind", so it can be a program name with args.
7303 set dummy valgrind
; ac_word
=$2
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7307 $as_echo_n "(cached) " >&6
7309 case "$valgrind_path" in
7311 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7314 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7315 for ac_dir
in $PATH; do
7317 test -z "$ac_dir" && ac_dir
=.
7318 for ac_exec_ext
in '' $ac_executable_extensions; do
7319 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7320 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7321 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7331 valgrind_path
="$ac_cv_path_valgrind_path"
7332 if test -n "$valgrind_path"; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7334 $as_echo "$valgrind_path" >&6; }
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337 $as_echo "no" >&6; }
7340 if test "x$valgrind_path" = "x" \
7341 ||
(test $have_valgrind_h = no \
7342 && test $gcc_cv_header_memcheck_h = no \
7343 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7344 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7346 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7347 valgrind_command
="$valgrind_path -q"
7349 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7355 # Enable code coverage collection
7356 # Check whether --enable-coverage was given.
7357 if test "${enable_coverage+set}" = set; then :
7358 enableval
=$enable_coverage; case "${enableval}" in
7360 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7363 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7366 # a.k.a. --disable-coverage
7370 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7379 # Check whether --enable-gather-detailed-mem-stats was given.
7380 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7381 enableval
=$enable_gather_detailed_mem_stats;
7383 enable_gather_detailed_mem_stats
=no
7386 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7388 cat >>confdefs.h
<<_ACEOF
7389 #define GATHER_STATISTICS $gather_stats
7393 # Check whether --enable-valgrind-annotations was given.
7394 if test "${enable_valgrind_annotations+set}" = set; then :
7395 enableval
=$enable_valgrind_annotations;
7397 enable_valgrind_annotations
=no
7400 if test x
$enable_valgrind_annotations != xno \
7401 ||
test x
$ac_valgrind_checking != x
; then
7402 if (test $have_valgrind_h = no \
7403 && test $gcc_cv_header_memcheck_h = no \
7404 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7405 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7408 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7412 # -------------------------------
7413 # Miscenalleous configure options
7414 # -------------------------------
7418 # Check whether --with-stabs was given.
7419 if test "${with_stabs+set}" = set; then :
7420 withval
=$with_stabs; stabs
="$with_stabs"
7426 # Determine whether or not multilibs are enabled.
7427 # Check whether --enable-multilib was given.
7428 if test "${enable_multilib+set}" = set; then :
7429 enableval
=$enable_multilib;
7436 # Determine whether or not multiarch is enabled.
7437 # Check whether --enable-multiarch was given.
7438 if test "${enable_multiarch+set}" = set; then :
7439 enableval
=$enable_multiarch; case "${enableval}" in
7440 yes|no|auto
) enable_multiarch
=$enableval;;
7441 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7444 enable_multiarch
=auto
7447 if test x
${enable_multiarch} = xauto
; then
7448 if test x
${with_native_system_header_dir} != x
; then
7449 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7452 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7453 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7458 $as_echo_n "checking for multiarch configuration... " >&6; }
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7461 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7463 # needed for setting the multiarch name for soft-float/hard-float ABIs
7467 # Enable __cxa_atexit for C++.
7468 # Check whether --enable-__cxa_atexit was given.
7469 if test "${enable___cxa_atexit+set}" = set; then :
7470 enableval
=$enable___cxa_atexit;
7474 # Enable C extension for decimal float if target supports it.
7476 # Check whether --enable-decimal-float was given.
7477 if test "${enable_decimal_float+set}" = set; then :
7478 enableval
=$enable_decimal_float;
7479 case $enable_decimal_float in
7480 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7481 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7482 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7488 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7489 i?
86*-*-elfiamcu | i?
86*-*-gnu* | \
7490 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7491 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7492 enable_decimal_float
=yes
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7496 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7497 enable_decimal_float
=no
7504 # x86's use BID format instead of DPD
7505 case x
$enable_decimal_float in
7508 i?
86*-*-* | x86_64
*-*-*)
7509 enable_decimal_float
=bid
7512 enable_decimal_float
=dpd
7515 default_decimal_float
=$enable_decimal_float
7518 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7519 # dependency on libdecnumber.
7520 default_decimal_float
=dpd
7527 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7529 cat >>confdefs.h
<<_ACEOF
7530 #define ENABLE_DECIMAL_FLOAT $dfp
7534 # Use default_decimal_float for dependency.
7535 enable_decimal_float
=$default_decimal_float
7537 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7539 cat >>confdefs.h
<<_ACEOF
7540 #define ENABLE_DECIMAL_BID_FORMAT $bid
7544 # Enable C extension for fixed-point arithmetic.
7545 # Check whether --enable-fixed-point was given.
7546 if test "${enable_fixed_point+set}" = set; then :
7547 enableval
=$enable_fixed_point;
7552 enable_fixed_point
=yes
7556 enable_fixed_point
=yes
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7560 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7561 enable_fixed_point
=no
7569 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7571 cat >>confdefs.h
<<_ACEOF
7572 #define ENABLE_FIXED_POINT $fixedpoint
7577 # Pass with no value to take the default
7578 # Pass with a value to specify a thread package
7579 # Check whether --enable-threads was given.
7580 if test "${enable_threads+set}" = set; then :
7581 enableval
=$enable_threads;
7587 # Check whether --enable-tls was given.
7588 if test "${enable_tls+set}" = set; then :
7589 enableval
=$enable_tls;
7592 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7593 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7601 # Check whether --enable-vtable-verify was given.
7602 if test "${enable_vtable_verify+set}" = set; then :
7603 enableval
=$enable_vtable_verify;
7605 enable_vtable_verify
=no
7608 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7610 cat >>confdefs.h
<<_ACEOF
7611 #define ENABLE_VTABLE_VERIFY $vtable_verify
7615 # Check whether --enable-objc-gc was given.
7616 if test "${enable_objc_gc+set}" = set; then :
7617 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7628 # Check whether --with-dwarf2 was given.
7629 if test "${with_dwarf2+set}" = set; then :
7630 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7636 # Check whether --enable-shared was given.
7637 if test "${enable_shared+set}" = set; then :
7638 enableval
=$enable_shared;
7639 case $enable_shared in
7643 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7644 for pkg
in $enableval; do
7645 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7660 # Check whether --with-specs was given.
7661 if test "${with_specs+set}" = set; then :
7662 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7672 # Check whether --with-pkgversion was given.
7673 if test "${with_pkgversion+set}" = set; then :
7674 withval
=$with_pkgversion; case "$withval" in
7675 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7677 *) PKGVERSION
="($withval) " ;;
7688 # Check whether --with-bugurl was given.
7689 if test "${with_bugurl+set}" = set; then :
7690 withval
=$with_bugurl; case "$withval" in
7691 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7694 *) BUGURL
="$withval"
7698 BUGURL
="http://gcc.gnu.org/bugs.html"
7708 REPORT_BUGS_TO
="<$BUGURL>"
7709 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7716 # Sanity check enable_languages in case someone does not run the toplevel
7717 # configure # script.
7718 # Check whether --enable-languages was given.
7719 if test "${enable_languages+set}" = set; then :
7720 enableval
=$enable_languages; case ,${enable_languages}, in
7722 # go safe -- we cannot be much sure without the toplevel
7724 # analysis of which target libs are present and usable
7728 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7733 enable_languages
=c
,${enable_languages}
7741 if test x
"$enable_as_accelerator_for" != x
; then
7743 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7745 enable_as_accelerator
=yes
7748 # In this case we expect offload compiler to be built as native, so we
7749 # need to rename the driver to avoid clashes with host's drivers.
7750 program_transform_name
="s&^&${target}-&" ;;
7752 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7753 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7754 accel_dir_suffix
=/accel
/${target_noncanonical}
7755 real_target_noncanonical
=${enable_as_accelerator_for}
7761 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7762 tgt
=`echo $tgt | sed 's/=.*//'`
7764 if echo "$tgt" |
grep "^hsa" > /dev
/null
; then
7770 if test x
"$offload_targets" = x
; then
7771 offload_targets
=$tgt
7773 offload_targets
="$offload_targets,$tgt"
7777 cat >>confdefs.h
<<_ACEOF
7778 #define OFFLOAD_TARGETS "$offload_targets"
7781 if test x
"$enable_offloading" != x
; then
7783 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7787 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7791 if test x
"$enable_hsa" = x1
; then
7793 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7798 # Check whether --with-multilib-list was given.
7799 if test "${with_multilib_list+set}" = set; then :
7800 withval
=$with_multilib_list; :
7802 with_multilib_list
=default
7806 # -------------------------
7807 # Checks for other programs
7808 # -------------------------
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7811 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7813 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7814 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7815 $as_echo_n "(cached) " >&6
7817 cat >conftest.
make <<\_ACEOF
7820 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7822 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7823 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7825 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7827 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7831 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7833 $as_echo "yes" >&6; }
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7838 SET_MAKE
="MAKE=${MAKE-make}"
7842 # Find some useful tools
7843 for ac_prog
in gawk mawk nawk
awk
7845 # Extract the first word of "$ac_prog", so it can be a program name with args.
7846 set dummy
$ac_prog; ac_word
=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if test "${ac_cv_prog_AWK+set}" = set; then :
7850 $as_echo_n "(cached) " >&6
7852 if test -n "$AWK"; then
7853 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7855 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7859 test -z "$as_dir" && as_dir
=.
7860 for ac_exec_ext
in '' $ac_executable_extensions; do
7861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7862 ac_cv_prog_AWK
="$ac_prog"
7863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7873 if test -n "$AWK"; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7875 $as_echo "$AWK" >&6; }
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7882 test -n "$AWK" && break
7885 # We need awk to create options.c and options.h.
7886 # Bail out if it's missing.
7888 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7892 $as_echo_n "checking whether ln -s works... " >&6; }
7893 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7894 $as_echo_n "(cached) " >&6
7896 rm -f conftestdata_t
7897 echo >conftestdata_f
7898 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7900 gcc_cv_prog_LN_S
="ln -s"
7902 if ln conftestdata_f conftestdata_t
2>/dev
/null
7906 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7908 gcc_cv_prog_LN_S
="cp -p"
7914 rm -f conftestdata_f conftestdata_t
7917 LN_S
="$gcc_cv_prog_LN_S"
7918 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7920 $as_echo "yes" >&6; }
7922 if test "$gcc_cv_prog_LN_S" = "ln"; then
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7924 $as_echo "no, using ln" >&6; }
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7927 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7932 $as_echo_n "checking whether ln works... " >&6; }
7933 if test "${acx_cv_prog_LN+set}" = set; then :
7934 $as_echo_n "(cached) " >&6
7936 rm -f conftestdata_t
7937 echo >conftestdata_f
7938 if ln conftestdata_f conftestdata_t
2>/dev
/null
7944 rm -f conftestdata_f conftestdata_t
7947 if test $acx_cv_prog_LN = no
; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7950 $as_echo "no, using $LN" >&6; }
7952 LN
="$acx_cv_prog_LN"
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7954 $as_echo "yes" >&6; }
7957 if test -n "$ac_tool_prefix"; then
7958 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7959 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7963 $as_echo_n "(cached) " >&6
7965 if test -n "$RANLIB"; then
7966 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7972 test -z "$as_dir" && as_dir
=.
7973 for ac_exec_ext
in '' $ac_executable_extensions; do
7974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7975 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7985 RANLIB
=$ac_cv_prog_RANLIB
7986 if test -n "$RANLIB"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7988 $as_echo "$RANLIB" >&6; }
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7996 if test -z "$ac_cv_prog_RANLIB"; then
7997 ac_ct_RANLIB
=$RANLIB
7998 # Extract the first word of "ranlib", so it can be a program name with args.
7999 set dummy ranlib
; ac_word
=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8003 $as_echo_n "(cached) " >&6
8005 if test -n "$ac_ct_RANLIB"; then
8006 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8012 test -z "$as_dir" && as_dir
=.
8013 for ac_exec_ext
in '' $ac_executable_extensions; do
8014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8015 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8026 if test -n "$ac_ct_RANLIB"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8028 $as_echo "$ac_ct_RANLIB" >&6; }
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8034 if test "x$ac_ct_RANLIB" = x
; then
8037 case $cross_compiling:$ac_tool_warned in
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8041 ac_tool_warned
=yes ;;
8043 RANLIB
=$ac_ct_RANLIB
8046 RANLIB
="$ac_cv_prog_RANLIB"
8052 # Find a good install program. We prefer a C program (faster),
8053 # so one script is as good as another. But avoid the broken or
8054 # incompatible versions:
8055 # SysV /etc/install, /usr/sbin/install
8056 # SunOS /usr/etc/install
8057 # IRIX /sbin/install
8059 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8060 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8061 # ./install, which can be erroneously created by make from ./install.sh.
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8063 $as_echo_n "checking for a BSD compatible install... " >&6; }
8064 if test -z "$INSTALL"; then
8065 if test "${ac_cv_path_install+set}" = set; then :
8066 $as_echo_n "(cached) " >&6
8068 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8069 for ac_dir
in $PATH; do
8070 # Account for people who put trailing slashes in PATH elements.
8072 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8074 # OSF1 and SCO ODT 3.0 have their own names for install.
8075 for ac_prog
in ginstall scoinst
install; do
8076 if test -f $ac_dir/$ac_prog; then
8077 if test $ac_prog = install &&
8078 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8079 # AIX install. It has an incompatible calling convention.
8080 # OSF/1 installbsd also uses dspmsg, but is usable.
8083 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8094 if test "${ac_cv_path_install+set}" = set; then
8095 INSTALL
="$ac_cv_path_install"
8097 # As a last resort, use the slow shell script. We don't cache a
8098 # path for INSTALL within a source directory, because that will
8099 # break other packages using the cache if that directory is
8100 # removed, or if the path is relative.
8101 INSTALL
="$ac_install_sh"
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8105 $as_echo "$INSTALL" >&6; }
8107 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8108 # It thinks the first close brace ends the variable substitution.
8109 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8111 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8114 # See if cmp has --ignore-initial.
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8116 $as_echo_n "checking for cmp's capabilities... " >&6; }
8117 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8118 $as_echo_n "(cached) " >&6
8122 gcc_cv_prog_cmp_skip
=slowcompare
8123 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8124 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8127 gcc_cv_prog_cmp_skip
=gnucompare
8130 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8131 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8132 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8135 gcc_cv_prog_cmp_skip
=fastcompare
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8143 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8144 make_compare_target
=$gcc_cv_prog_cmp_skip
8148 # See if we have the mktemp command.
8149 # Extract the first word of "mktemp", so it can be a program name with args.
8150 set dummy mktemp
; ac_word
=$2
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8152 $as_echo_n "checking for $ac_word... " >&6; }
8153 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8154 $as_echo_n "(cached) " >&6
8156 if test -n "$have_mktemp_command"; then
8157 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8159 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8163 test -z "$as_dir" && as_dir
=.
8164 for ac_exec_ext
in '' $ac_executable_extensions; do
8165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8166 ac_cv_prog_have_mktemp_command
="yes"
8167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8174 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8177 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8178 if test -n "$have_mktemp_command"; then
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8180 $as_echo "$have_mktemp_command" >&6; }
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183 $as_echo "no" >&6; }
8188 # See if makeinfo has been installed and is modern enough
8189 # that we can use it.
8191 # Extract the first word of "makeinfo", so it can be a program name with args.
8192 set dummy makeinfo
; ac_word
=$2
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8194 $as_echo_n "checking for $ac_word... " >&6; }
8195 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8196 $as_echo_n "(cached) " >&6
8198 if test -n "$MAKEINFO"; then
8199 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8201 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8205 test -z "$as_dir" && as_dir
=.
8206 for ac_exec_ext
in '' $ac_executable_extensions; do
8207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8208 ac_cv_prog_MAKEINFO
="makeinfo"
8209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 MAKEINFO
=$ac_cv_prog_MAKEINFO
8219 if test -n "$MAKEINFO"; then
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8221 $as_echo "$MAKEINFO" >&6; }
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224 $as_echo "no" >&6; }
8228 if test -n "$MAKEINFO"; then
8229 # Found it, now check the version.
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8231 $as_echo_n "checking for modern makeinfo... " >&6; }
8232 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8233 $as_echo_n "(cached) " >&6
8235 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8236 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8238 case $ac_prog_version in
8239 '') gcc_cv_prog_makeinfo_modern
=no
;;
8240 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8241 *) gcc_cv_prog_makeinfo_modern
=no
;;
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8246 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8248 gcc_cv_prog_makeinfo_modern
=no
8250 if test $gcc_cv_prog_makeinfo_modern = no
; then
8251 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8254 if test $gcc_cv_prog_makeinfo_modern = no
; then
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8256 *** Makeinfo is missing or too old.
8257 *** Info documentation will not be built." >&5
8258 $as_echo "$as_me: WARNING:
8259 *** Makeinfo is missing or too old.
8260 *** Info documentation will not be built." >&2;}
8267 # Is pod2man recent enough to regenerate manpages?
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8269 $as_echo_n "checking for recent Pod::Man... " >&6; }
8270 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8272 $as_echo "yes" >&6; }
8273 GENERATED_MANPAGES
=generated-manpages
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276 $as_echo "no" >&6; }
8281 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8286 # Extract the first word of "$ac_prog", so it can be a program name with args.
8287 set dummy
$ac_prog; ac_word
=$2
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289 $as_echo_n "checking for $ac_word... " >&6; }
8290 if test "${ac_cv_prog_FLEX+set}" = set; then :
8291 $as_echo_n "(cached) " >&6
8293 if test -n "$FLEX"; then
8294 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8300 test -z "$as_dir" && as_dir
=.
8301 for ac_exec_ext
in '' $ac_executable_extensions; do
8302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8303 ac_cv_prog_FLEX
="$ac_prog"
8304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313 FLEX
=$ac_cv_prog_FLEX
8314 if test -n "$FLEX"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8316 $as_echo "$FLEX" >&6; }
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8323 test -n "$FLEX" && break
8325 test -n "$FLEX" || FLEX
="$MISSING flex"
8329 for ac_prog
in bison
8331 # Extract the first word of "$ac_prog", so it can be a program name with args.
8332 set dummy
$ac_prog; ac_word
=$2
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334 $as_echo_n "checking for $ac_word... " >&6; }
8335 if test "${ac_cv_prog_BISON+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
8338 if test -n "$BISON"; then
8339 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8341 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8345 test -z "$as_dir" && as_dir
=.
8346 for ac_exec_ext
in '' $ac_executable_extensions; do
8347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8348 ac_cv_prog_BISON
="$ac_prog"
8349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8358 BISON
=$ac_cv_prog_BISON
8359 if test -n "$BISON"; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8361 $as_echo "$BISON" >&6; }
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8368 test -n "$BISON" && break
8370 test -n "$BISON" || BISON
="$MISSING bison"
8373 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8374 # check for build == host before using them.
8377 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8378 && test -d ..
/binutils
; then
8379 NM
='${objdir}/../binutils/nm-new'
8381 # Extract the first word of "nm", so it can be a program name with args.
8382 set dummy nm
; ac_word
=$2
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8384 $as_echo_n "checking for $ac_word... " >&6; }
8385 if test "${ac_cv_prog_NM+set}" = set; then :
8386 $as_echo_n "(cached) " >&6
8388 if test -n "$NM"; then
8389 ac_cv_prog_NM
="$NM" # Let the user override the test.
8391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8395 test -z "$as_dir" && as_dir
=.
8396 for ac_exec_ext
in '' $ac_executable_extensions; do
8397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8406 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8410 if test -n "$NM"; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8412 $as_echo "$NM" >&6; }
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8422 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8423 && test -d ..
/binutils
; then
8424 AR
='${objdir}/../binutils/ar'
8426 # Extract the first word of "ar", so it can be a program name with args.
8427 set dummy
ar; ac_word
=$2
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 $as_echo_n "checking for $ac_word... " >&6; }
8430 if test "${ac_cv_prog_AR+set}" = set; then :
8431 $as_echo_n "(cached) " >&6
8433 if test -n "$AR"; then
8434 ac_cv_prog_AR
="$AR" # Let the user override the test.
8436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8440 test -z "$as_dir" && as_dir
=.
8441 for ac_exec_ext
in '' $ac_executable_extensions; do
8442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8451 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8455 if test -n "$AR"; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8457 $as_echo "$AR" >&6; }
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8466 # The jit documentation looks better if built with sphinx, but can be
8467 # built with texinfo if sphinx is not available.
8468 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8469 # Extract the first word of "sphinx-build", so it can be a program name with args.
8470 set dummy sphinx-build
; ac_word
=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8474 $as_echo_n "(cached) " >&6
8476 if test -n "$doc_build_sys"; then
8477 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8483 test -z "$as_dir" && as_dir
=.
8484 for ac_exec_ext
in '' $ac_executable_extensions; do
8485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8486 ac_cv_prog_doc_build_sys
="sphinx"
8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8494 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8497 doc_build_sys
=$ac_cv_prog_doc_build_sys
8498 if test -n "$doc_build_sys"; then
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8500 $as_echo "$doc_build_sys" >&6; }
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503 $as_echo "no" >&6; }
8508 # --------------------
8509 # Checks for C headers
8510 # --------------------
8512 # Need to reject headers which give warnings, so that the -Werror bootstrap
8513 # works later. *sigh* This needs to come before all header checks.
8515 ac_c_preproc_warn_flag
=yes
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8518 $as_echo_n "checking for ANSI C header files... " >&6; }
8519 if test "${ac_cv_header_stdc+set}" = set; then :
8520 $as_echo_n "(cached) " >&6
8522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8537 if ac_fn_cxx_try_compile
"$LINENO"; then :
8538 ac_cv_header_stdc
=yes
8540 ac_cv_header_stdc
=no
8542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8544 if test $ac_cv_header_stdc = yes; then
8545 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8547 /* end confdefs.h. */
8551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8552 $EGREP "memchr" >/dev
/null
2>&1; then :
8555 ac_cv_header_stdc
=no
8561 if test $ac_cv_header_stdc = yes; then
8562 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8564 /* end confdefs.h. */
8568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8569 $EGREP "free" >/dev
/null
2>&1; then :
8572 ac_cv_header_stdc
=no
8578 if test $ac_cv_header_stdc = yes; then
8579 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8580 if test "$cross_compiling" = yes; then :
8583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8584 /* end confdefs.h. */
8587 #if ((' ' & 0x0FF) == 0x020)
8588 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8589 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8591 # define ISLOWER(c) \
8592 (('a' <= (c) && (c) <= 'i') \
8593 || ('j' <= (c) && (c) <= 'r') \
8594 || ('s' <= (c) && (c) <= 'z'))
8595 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8598 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8603 for (i = 0; i < 256; i++)
8604 if (XOR (islower (i), ISLOWER (i))
8605 || toupper (i) != TOUPPER (i))
8610 if ac_fn_cxx_try_run
"$LINENO"; then :
8613 ac_cv_header_stdc
=no
8615 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8616 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8622 $as_echo "$ac_cv_header_stdc" >&6; }
8623 if test $ac_cv_header_stdc = yes; then
8625 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8630 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8631 if test "${ac_cv_header_time+set}" = set; then :
8632 $as_echo_n "(cached) " >&6
8634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8636 #include <sys/types.h>
8637 #include <sys/time.h>
8643 if ((struct tm *) 0)
8649 if ac_fn_cxx_try_compile
"$LINENO"; then :
8650 ac_cv_header_time
=yes
8652 ac_cv_header_time
=no
8654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8657 $as_echo "$ac_cv_header_time" >&6; }
8658 if test $ac_cv_header_time = yes; then
8660 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8665 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8666 if test "${gcc_cv_header_string+set}" = set; then :
8667 $as_echo_n "(cached) " >&6
8669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8670 /* end confdefs.h. */
8672 #include <strings.h>
8681 if ac_fn_cxx_try_compile
"$LINENO"; then :
8682 gcc_cv_header_string
=yes
8684 gcc_cv_header_string
=no
8686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8689 $as_echo "$gcc_cv_header_string" >&6; }
8690 if test $gcc_cv_header_string = yes; then
8692 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8697 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8698 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8699 $as_echo_n "(cached) " >&6
8701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8703 #include <sys/types.h>
8704 #include <sys/wait.h>
8706 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8709 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8717 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8722 if ac_fn_cxx_try_compile
"$LINENO"; then :
8723 ac_cv_header_sys_wait_h
=yes
8725 ac_cv_header_sys_wait_h
=no
8727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8730 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8731 if test $ac_cv_header_sys_wait_h = yes; then
8733 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8738 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8739 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8740 $as_echo_n "(cached) " >&6
8742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8744 #include <sys/types.h>
8745 #include <termios.h>
8751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8752 $EGREP "yes" >/dev
/null
2>&1; then :
8753 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8755 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8761 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8763 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8765 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8766 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8767 $as_echo_n "(cached) " >&6
8769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8771 #include <sys/types.h>
8772 #include <sys/ioctl.h>
8778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8779 $EGREP "yes" >/dev
/null
2>&1; then :
8780 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8782 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8788 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8790 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8792 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8797 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8798 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8799 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8800 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8802 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8803 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8804 eval as_val
=\$
$as_ac_Header
8805 if test "x$as_val" = x
""yes; then :
8806 cat >>confdefs.h
<<_ACEOF
8807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8814 # Check for thread headers.
8815 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8816 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8822 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8823 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8830 # These tests can't be done till we know if we have limits.h.
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8832 $as_echo_n "checking for CHAR_BIT... " >&6; }
8833 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8834 $as_echo_n "(cached) " >&6
8836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8838 #ifdef HAVE_LIMITS_H
8845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8846 $EGREP "found" >/dev
/null
2>&1; then :
8847 gcc_cv_decl_char_bit
=yes
8849 gcc_cv_decl_char_bit
=no
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8856 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8857 if test $gcc_cv_decl_char_bit = no
; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8859 $as_echo_n "checking number of bits in a byte... " >&6; }
8860 if test "${gcc_cv_c_nbby+set}" = set; then :
8861 $as_echo_n "(cached) " >&6
8865 while test $i -lt 65; do
8866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8873 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8874 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8880 if ac_fn_cxx_try_compile
"$LINENO"; then :
8881 gcc_cv_c_nbby
=$i; break
8883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8886 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8890 $as_echo "$gcc_cv_c_nbby" >&6; }
8891 if test $gcc_cv_c_nbby = failed
; then
8892 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8895 cat >>confdefs.h
<<_ACEOF
8896 #define CHAR_BIT $gcc_cv_c_nbby
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8902 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8903 if test "${ac_cv_c_bigendian+set}" = set; then :
8904 $as_echo_n "(cached) " >&6
8906 ac_cv_c_bigendian
=unknown
8907 # See if we're dealing with a universal compiler.
8908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h. */
8910 #ifndef __APPLE_CC__
8911 not a universal capable compiler
8916 if ac_fn_cxx_try_compile
"$LINENO"; then :
8918 # Check for potential -arch flags. It is not universal unless
8919 # there are at least two -arch flags with different values.
8922 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8923 if test -n "$ac_prev"; then
8925 i?
86 | x86_64 | ppc | ppc64
)
8926 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8929 ac_cv_c_bigendian
=universal
8935 elif test "x$ac_word" = "x-arch"; then
8940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8941 if test $ac_cv_c_bigendian = unknown
; then
8942 # See if sys/param.h defines the BYTE_ORDER macro.
8943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8945 #include <sys/types.h>
8946 #include <sys/param.h>
8951 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8952 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8961 if ac_fn_cxx_try_compile
"$LINENO"; then :
8962 # It does; now see whether it defined to BIG_ENDIAN or not.
8963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8965 #include <sys/types.h>
8966 #include <sys/param.h>
8971 #if BYTE_ORDER != BIG_ENDIAN
8979 if ac_fn_cxx_try_compile
"$LINENO"; then :
8980 ac_cv_c_bigendian
=yes
8982 ac_cv_c_bigendian
=no
8984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8988 if test $ac_cv_c_bigendian = unknown
; then
8989 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h. */
8997 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9005 if ac_fn_cxx_try_compile
"$LINENO"; then :
9006 # It does; now see whether it defined to _BIG_ENDIAN or not.
9007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h. */
9022 if ac_fn_cxx_try_compile
"$LINENO"; then :
9023 ac_cv_c_bigendian
=yes
9025 ac_cv_c_bigendian
=no
9027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9031 if test $ac_cv_c_bigendian = unknown
; then
9032 # Compile a test program.
9033 if test "$cross_compiling" = yes; then :
9034 # Try to guess by grepping values from an object file.
9035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9036 /* end confdefs.h. */
9037 short int ascii_mm[] =
9038 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9039 short int ascii_ii[] =
9040 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9041 int use_ascii (int i) {
9042 return ascii_mm[i] + ascii_ii[i];
9044 short int ebcdic_ii[] =
9045 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9046 short int ebcdic_mm[] =
9047 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9048 int use_ebcdic (int i) {
9049 return ebcdic_mm[i] + ebcdic_ii[i];
9056 return use_ascii (foo) == use_ebcdic (foo);
9061 if ac_fn_cxx_try_compile
"$LINENO"; then :
9062 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9063 ac_cv_c_bigendian
=yes
9065 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9066 if test "$ac_cv_c_bigendian" = unknown
; then
9067 ac_cv_c_bigendian
=no
9069 # finding both strings is unlikely to happen, but who knows?
9070 ac_cv_c_bigendian
=unknown
9074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9078 $ac_includes_default
9083 /* Are we little or big endian? From Harbison&Steele. */
9087 char c[sizeof (long int)];
9090 return u.c[sizeof (long int) - 1] == 1;
9096 if ac_fn_cxx_try_run
"$LINENO"; then :
9097 ac_cv_c_bigendian
=no
9099 ac_cv_c_bigendian
=yes
9101 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9102 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9108 $as_echo "$ac_cv_c_bigendian" >&6; }
9109 case $ac_cv_c_bigendian in #(
9111 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9117 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9121 as_fn_error
"unknown endianness
9122 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9126 # ----------------------
9127 # Checks for C++ headers
9128 # ----------------------
9131 ac_cpp
='$CXXCPP $CPPFLAGS'
9132 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9133 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9134 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9136 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9137 if test -z "$CXXCPP"; then
9138 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9139 $as_echo_n "(cached) " >&6
9141 # Double quotes because CXXCPP needs to be expanded
9142 for CXXCPP
in "$CXX -E" "/lib/cpp"
9145 for ac_cxx_preproc_warn_flag
in '' yes
9147 # Use a header file that comes with gcc, so configuring glibc
9148 # with a fresh cross-compiler works.
9149 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9150 # <limits.h> exists even on freestanding compilers.
9151 # On the NeXT, cc -E runs the code through the compiler's parser,
9152 # not just through cpp. "Syntax error" is here to catch this case.
9153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9156 # include <limits.h>
9158 # include <assert.h>
9162 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9165 # Broken: fails on valid input.
9168 rm -f conftest.err conftest.
$ac_ext
9170 # OK, works on sane cases. Now check whether nonexistent headers
9171 # can be detected and how.
9172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9173 /* end confdefs.h. */
9174 #include <ac_nonexistent.h>
9176 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9177 # Broken: success on invalid input.
9180 # Passes both tests.
9184 rm -f conftest.err conftest.
$ac_ext
9187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9188 rm -f conftest.err conftest.
$ac_ext
9189 if $ac_preproc_ok; then :
9194 ac_cv_prog_CXXCPP
=$CXXCPP
9197 CXXCPP
=$ac_cv_prog_CXXCPP
9199 ac_cv_prog_CXXCPP
=$CXXCPP
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9202 $as_echo "$CXXCPP" >&6; }
9204 for ac_cxx_preproc_warn_flag
in '' yes
9206 # Use a header file that comes with gcc, so configuring glibc
9207 # with a fresh cross-compiler works.
9208 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9209 # <limits.h> exists even on freestanding compilers.
9210 # On the NeXT, cc -E runs the code through the compiler's parser,
9211 # not just through cpp. "Syntax error" is here to catch this case.
9212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9215 # include <limits.h>
9217 # include <assert.h>
9221 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9224 # Broken: fails on valid input.
9227 rm -f conftest.err conftest.
$ac_ext
9229 # OK, works on sane cases. Now check whether nonexistent headers
9230 # can be detected and how.
9231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233 #include <ac_nonexistent.h>
9235 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9236 # Broken: success on invalid input.
9239 # Passes both tests.
9243 rm -f conftest.err conftest.
$ac_ext
9246 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9247 rm -f conftest.err conftest.
$ac_ext
9248 if $ac_preproc_ok; then :
9251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9254 See \`config.log' for more details." >&5
9255 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9256 See \`config.log' for more details." >&2;}; }
9260 ac_cpp
='$CXXCPP $CPPFLAGS'
9261 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9262 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9263 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9266 for ac_header
in unordered_map
9268 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9269 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
9270 cat >>confdefs.h
<<_ACEOF
9271 #define HAVE_UNORDERED_MAP 1
9277 for ac_header
in tr1/unordered_map
9279 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9280 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9281 cat >>confdefs.h
<<_ACEOF
9282 #define HAVE_TR1_UNORDERED_MAP 1
9288 for ac_header
in ext
/hash_map
9290 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9291 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9292 cat >>confdefs.h
<<_ACEOF
9293 #define HAVE_EXT_HASH_MAP 1
9301 # Dependency checking.
9304 rm -rf .tst
2>/dev
/null
9305 mkdir .tst
2>/dev
/null
9306 if test -d .tst
; then
9311 rmdir .tst
2>/dev
/null
9313 DEPDIR
="${am__leading_dot}deps"
9315 ac_config_commands
="$ac_config_commands depdir"
9318 ac_config_commands
="$ac_config_commands gccdepdir"
9321 depcc
="$CXX" am_compiler_list
=
9323 am_depcomp
=$ac_aux_dir/depcomp
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9325 $as_echo_n "checking dependency style of $depcc... " >&6; }
9326 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9327 $as_echo_n "(cached) " >&6
9329 if test -f "$am_depcomp"; then
9330 # We make a subdir and do the tests there. Otherwise we can end up
9331 # making bogus files that we don't know about and never remove. For
9332 # instance it was reported that on HP-UX the gcc test will end up
9333 # making a dummy file named `D' -- because `-MD' means `put the output
9336 # Copy depcomp to subdir because otherwise we won't find it if we're
9337 # using a relative directory.
9338 cp "$am_depcomp" conftest.dir
9340 # We will build objects and dependencies in a subdirectory because
9341 # it helps to detect inapplicable dependency modes. For instance
9342 # both Tru64's cc and ICC support -MD to output dependencies as a
9343 # side effect of compilation, but ICC will put the dependencies in
9344 # the current directory while Tru64 will put them in the object
9348 am_cv_CXX_dependencies_compiler_type
=none
9349 if test "$am_compiler_list" = ""; then
9350 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9352 for depmode
in $am_compiler_list; do
9353 if test $depmode = none
; then break; fi
9355 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9356 # Setup a source with many dependencies, because some compilers
9357 # like to wrap large dependency lists on column 80 (with \), and
9358 # we should not choose a depcomp mode which is confused by this.
9360 # We need to recreate these files for each test, as the compiler may
9361 # overwrite some of them when testing with obscure command lines.
9362 # This happens at least with the AIX C compiler.
9364 for i
in 1 2 3 4 5 6; do
9365 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9366 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9367 # Solaris 8's {/usr,}/bin/sh.
9368 touch sub
/conftst
$i.h
9370 echo "include sub/conftest.Po" > confmf
9372 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9373 # mode. It turns out that the SunPro C++ compiler does not properly
9374 # handle `-M -o', and we need to detect this.
9375 depcmd
="depmode=$depmode \
9376 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9377 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9378 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9379 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9380 if env
$depcmd > conftest.err
2>&1 &&
9381 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9382 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9383 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9384 # icc doesn't choke on unknown options, it will just issue warnings
9385 # or remarks (even with -Werror). So we grep stderr for any message
9386 # that says an option was ignored or not supported.
9387 # When given -MP, icc 7.0 and 7.1 complain thusly:
9388 # icc: Command line warning: ignoring option '-M'; no argument required
9389 # The diagnosis changed in icc 8.0:
9390 # icc: Command line remark: option '-MP' not supported
9391 if (grep 'ignoring option' conftest.err ||
9392 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9393 am_cv_CXX_dependencies_compiler_type
=$depmode
9394 $as_echo "$as_me:$LINENO: success" >&5
9398 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9399 sed -e 's/^/| /' < conftest.err
>&5
9405 am_cv_CXX_dependencies_compiler_type
=none
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9410 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9411 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9412 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9413 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9423 # These libraries may be used by collect2.
9424 # We may need a special search path to get them linked.
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9426 $as_echo_n "checking for collect2 libraries... " >&6; }
9427 if test "${gcc_cv_collect2_libs+set}" = set; then :
9428 $as_echo_n "(cached) " >&6
9431 for libs
in '' -lld -lmld \
9432 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9433 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9437 /* end confdefs.h. */
9439 /* Override any GCC internal prototype to avoid an error.
9440 Use char because int might match the return type of a GCC
9441 builtin and then its argument prototype would still apply. */
9454 if ac_fn_cxx_try_link
"$LINENO"; then :
9455 gcc_cv_collect2_libs
="$libs"; break
9457 rm -f core conftest.err conftest.
$ac_objext \
9458 conftest
$ac_exeext conftest.
$ac_ext
9461 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9464 $as_echo "$gcc_cv_collect2_libs" >&6; }
9465 case $gcc_cv_collect2_libs in
9467 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9471 # When building Ada code on Alpha, we need exc_resume which is usually in
9472 # -lexc. So test for it.
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9476 $as_echo_n "checking for library containing exc_resume... " >&6; }
9477 if test "${ac_cv_search_exc_resume+set}" = set; then :
9478 $as_echo_n "(cached) " >&6
9480 ac_func_search_save_LIBS
=$LIBS
9481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9484 /* Override any GCC internal prototype to avoid an error.
9485 Use char because int might match the return type of a GCC
9486 builtin and then its argument prototype would still apply. */
9494 return exc_resume ();
9499 for ac_lib
in '' exc
; do
9500 if test -z "$ac_lib"; then
9501 ac_res
="none required"
9504 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9506 if ac_fn_cxx_try_link
"$LINENO"; then :
9507 ac_cv_search_exc_resume
=$ac_res
9509 rm -f core conftest.err conftest.
$ac_objext \
9511 if test "${ac_cv_search_exc_resume+set}" = set; then :
9515 if test "${ac_cv_search_exc_resume+set}" = set; then :
9518 ac_cv_search_exc_resume
=no
9521 LIBS
=$ac_func_search_save_LIBS
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9524 $as_echo "$ac_cv_search_exc_resume" >&6; }
9525 ac_res
=$ac_cv_search_exc_resume
9526 if test "$ac_res" != no
; then :
9527 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9535 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9539 $as_echo_n "checking for library containing kstat_open... " >&6; }
9540 if test "${ac_cv_search_kstat_open+set}" = set; then :
9541 $as_echo_n "(cached) " >&6
9543 ac_func_search_save_LIBS
=$LIBS
9544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9545 /* end confdefs.h. */
9547 /* Override any GCC internal prototype to avoid an error.
9548 Use char because int might match the return type of a GCC
9549 builtin and then its argument prototype would still apply. */
9557 return kstat_open ();
9562 for ac_lib
in '' kstat
; do
9563 if test -z "$ac_lib"; then
9564 ac_res
="none required"
9567 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9569 if ac_fn_cxx_try_link
"$LINENO"; then :
9570 ac_cv_search_kstat_open
=$ac_res
9572 rm -f core conftest.err conftest.
$ac_objext \
9574 if test "${ac_cv_search_kstat_open+set}" = set; then :
9578 if test "${ac_cv_search_kstat_open+set}" = set; then :
9581 ac_cv_search_kstat_open
=no
9584 LIBS
=$ac_func_search_save_LIBS
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9587 $as_echo "$ac_cv_search_kstat_open" >&6; }
9588 ac_res
=$ac_cv_search_kstat_open
9589 if test "$ac_res" != no
; then :
9590 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9594 EXTRA_GCC_LIBS
="$LIBS"
9598 # Some systems put ldexp and frexp in libm instead of libc; assume
9599 # they're both in the same place. jcf-dump needs them.
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9603 $as_echo_n "checking for library containing ldexp... " >&6; }
9604 if test "${ac_cv_search_ldexp+set}" = set; then :
9605 $as_echo_n "(cached) " >&6
9607 ac_func_search_save_LIBS
=$LIBS
9608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9609 /* end confdefs.h. */
9611 /* Override any GCC internal prototype to avoid an error.
9612 Use char because int might match the return type of a GCC
9613 builtin and then its argument prototype would still apply. */
9626 for ac_lib
in '' m
; do
9627 if test -z "$ac_lib"; then
9628 ac_res
="none required"
9631 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9633 if ac_fn_cxx_try_link
"$LINENO"; then :
9634 ac_cv_search_ldexp
=$ac_res
9636 rm -f core conftest.err conftest.
$ac_objext \
9638 if test "${ac_cv_search_ldexp+set}" = set; then :
9642 if test "${ac_cv_search_ldexp+set}" = set; then :
9645 ac_cv_search_ldexp
=no
9648 LIBS
=$ac_func_search_save_LIBS
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9651 $as_echo "$ac_cv_search_ldexp" >&6; }
9652 ac_res
=$ac_cv_search_ldexp
9653 if test "$ac_res" != no
; then :
9654 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9662 # Use <inttypes.h> only if it exists,
9663 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9666 $as_echo_n "checking for inttypes.h... " >&6; }
9667 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9668 $as_echo_n "(cached) " >&6
9670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9671 /* end confdefs.h. */
9672 #define __STDC_FORMAT_MACROS
9673 #include <sys/types.h>
9674 #include <inttypes.h>
9686 if ac_fn_cxx_try_compile
"$LINENO"; then :
9687 gcc_cv_header_inttypes_h
=yes
9689 gcc_cv_header_inttypes_h
=no
9691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9695 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9696 if test $gcc_cv_header_inttypes_h = yes; then
9698 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9704 for ac_func
in times clock kill getrlimit setrlimit atoq \
9705 popen sysconf strsignal getrusage nl_langinfo \
9706 gettimeofday mbstowcs wcswidth mmap setlocale \
9707 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
9709 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9710 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9711 eval as_val
=\$
$as_ac_var
9712 if test "x$as_val" = x
""yes; then :
9713 cat >>confdefs.h
<<_ACEOF
9714 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9721 if test x
$ac_cv_func_mbstowcs = xyes
; then
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9723 $as_echo_n "checking whether mbstowcs works... " >&6; }
9724 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9725 $as_echo_n "(cached) " >&6
9727 if test "$cross_compiling" = yes; then :
9728 gcc_cv_func_mbstowcs_works
=yes
9730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h. */
9739 if ac_fn_cxx_try_run
"$LINENO"; then :
9740 gcc_cv_func_mbstowcs_works
=yes
9742 gcc_cv_func_mbstowcs_works
=no
9744 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9745 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9750 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9751 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9753 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9758 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9759 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9763 cat >>confdefs.h
<<_ACEOF
9769 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9770 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9774 cat >>confdefs.h
<<_ACEOF
9775 #define caddr_t char *
9782 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9783 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9784 gcc_header_sys_mman_h
=yes
9786 gcc_header_sys_mman_h
=no
9789 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9790 if test "x$ac_cv_func_mmap" = x
""yes; then :
9796 if test "$gcc_header_sys_mman_h" != yes \
9797 ||
test "$gcc_func_mmap" != yes; then
9798 gcc_cv_func_mmap_file
=no
9799 gcc_cv_func_mmap_dev_zero
=no
9800 gcc_cv_func_mmap_anon
=no
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9803 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9804 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9805 $as_echo_n "(cached) " >&6
9807 # Add a system to this blacklist if
9808 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9809 # memory area containing the same data that you'd get if you applied
9810 # read() to the same fd. The only system known to have a problem here
9811 # is VMS, where text files have record structure.
9814 gcc_cv_func_mmap_file
=no
;;
9816 gcc_cv_func_mmap_file
=yes;;
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9820 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9822 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9823 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9824 $as_echo_n "(cached) " >&6
9826 # Add a system to this blacklist if it has mmap() but /dev/zero
9827 # does not exist, or if mmapping /dev/zero does not give anonymous
9828 # zeroed pages with both the following properties:
9829 # 1. If you map N consecutive pages in with one call, and then
9830 # unmap any subset of those pages, the pages that were not
9831 # explicitly unmapped remain accessible.
9832 # 2. If you map two adjacent blocks of memory and then unmap them
9833 # both at once, they must both go away.
9834 # Systems known to be in this category are Windows (all variants),
9837 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9838 gcc_cv_func_mmap_dev_zero
=no
;;
9840 gcc_cv_func_mmap_dev_zero
=yes;;
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9844 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9846 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9848 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9849 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9850 $as_echo_n "(cached) " >&6
9852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h. */
9854 #include <sys/types.h>
9855 #include <sys/mman.h>
9858 #ifndef MAP_ANONYMOUS
9859 #define MAP_ANONYMOUS MAP_ANON
9865 int n = MAP_ANONYMOUS;
9870 if ac_fn_cxx_try_compile
"$LINENO"; then :
9871 gcc_cv_decl_map_anon
=yes
9873 gcc_cv_decl_map_anon
=no
9875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9878 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9880 if test $gcc_cv_decl_map_anon = no
; then
9881 gcc_cv_func_mmap_anon
=no
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9884 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9885 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9886 $as_echo_n "(cached) " >&6
9888 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9889 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9890 # doesn't give anonymous zeroed pages with the same properties listed
9891 # above for use of /dev/zero.
9892 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9894 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9895 gcc_cv_func_mmap_anon
=no
;;
9897 gcc_cv_func_mmap_anon
=yes;;
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9901 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9905 if test $gcc_cv_func_mmap_file = yes; then
9907 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9910 if test $gcc_cv_func_mmap_dev_zero = yes; then
9912 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9915 if test $gcc_cv_func_mmap_anon = yes; then
9917 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9924 # Under VMS, vfork works very differently than on Unix. The standard test
9925 # won't work, and it isn't easily adaptable. It makes more sense to
9927 ac_cv_func_vfork_works
=yes
9930 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9931 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9935 cat >>confdefs.h
<<_ACEOF
9941 for ac_header
in vfork.h
9943 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9944 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9945 cat >>confdefs.h
<<_ACEOF
9946 #define HAVE_VFORK_H 1
9952 for ac_func
in fork vfork
9954 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9955 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9956 eval as_val
=\$
$as_ac_var
9957 if test "x$as_val" = x
""yes; then :
9958 cat >>confdefs.h
<<_ACEOF
9959 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9965 if test "x$ac_cv_func_fork" = xyes
; then
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9967 $as_echo_n "checking for working fork... " >&6; }
9968 if test "${ac_cv_func_fork_works+set}" = set; then :
9969 $as_echo_n "(cached) " >&6
9971 if test "$cross_compiling" = yes; then :
9972 ac_cv_func_fork_works
=cross
9974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9976 $ac_includes_default
9981 /* By Ruediger Kuhlmann. */
9988 if ac_fn_cxx_try_run
"$LINENO"; then :
9989 ac_cv_func_fork_works
=yes
9991 ac_cv_func_fork_works
=no
9993 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9994 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9999 $as_echo "$ac_cv_func_fork_works" >&6; }
10002 ac_cv_func_fork_works
=$ac_cv_func_fork
10004 if test "x$ac_cv_func_fork_works" = xcross
; then
10006 *-*-amigaos* |
*-*-msdosdjgpp*)
10007 # Override, as these systems have only a dummy fork() stub
10008 ac_cv_func_fork_works
=no
10011 ac_cv_func_fork_works
=yes
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10015 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10017 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10018 if test "x$ac_cv_func_vfork" = xyes
; then
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10020 $as_echo_n "checking for working vfork... " >&6; }
10021 if test "${ac_cv_func_vfork_works+set}" = set; then :
10022 $as_echo_n "(cached) " >&6
10024 if test "$cross_compiling" = yes; then :
10025 ac_cv_func_vfork_works
=cross
10027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h. */
10029 /* Thanks to Paul Eggert for this test. */
10030 $ac_includes_default
10031 #include <sys/wait.h>
10032 #ifdef HAVE_VFORK_H
10033 # include <vfork.h>
10035 /* On some sparc systems, changes by the child to local and incoming
10036 argument registers are propagated back to the parent. The compiler
10037 is told about this with #include <vfork.h>, but some compilers
10038 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10039 static variable whose address is put into a register that is
10040 clobbered by the vfork. */
10043 sparc_address_test (int arg)
10045 sparc_address_test (arg) int arg;
10048 static pid_t child;
10066 pid_t parent = getpid ();
10069 sparc_address_test (0);
10074 /* Here is another test for sparc vfork register problems. This
10075 test uses lots of local variables, at least as many local
10076 variables as main has allocated so far including compiler
10077 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10078 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10079 reuse the register of parent for one of the local variables,
10080 since it will think that parent can't possibly be used any more
10081 in this routine. Assigning to the local variable will thus
10082 munge parent in the parent process. */
10084 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10085 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10086 /* Convince the compiler that p..p7 are live; otherwise, it might
10087 use the same hardware register for all 8 local variables. */
10088 if (p != p1 || p != p2 || p != p3 || p != p4
10089 || p != p5 || p != p6 || p != p7)
10092 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10093 from child file descriptors. If the child closes a descriptor
10094 before it execs or exits, this munges the parent's descriptor
10095 as well. Test for this by closing stdout in the child. */
10096 _exit(close(fileno(stdout)) != 0);
10101 while (wait(&status) != child)
10104 /* Was there some problem with vforking? */
10107 /* Did the child fail? (This shouldn't happen.) */
10110 /* Did the vfork/compiler bug occur? */
10111 || parent != getpid()
10113 /* Did the file descriptor bug occur? */
10114 || fstat(fileno(stdout), &st) != 0
10119 if ac_fn_cxx_try_run
"$LINENO"; then :
10120 ac_cv_func_vfork_works
=yes
10122 ac_cv_func_vfork_works
=no
10124 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10125 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10130 $as_echo "$ac_cv_func_vfork_works" >&6; }
10133 if test "x$ac_cv_func_fork_works" = xcross
; then
10134 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10136 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10139 if test "x$ac_cv_func_vfork_works" = xyes
; then
10141 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10145 $as_echo "#define vfork fork" >>confdefs.h
10148 if test "x$ac_cv_func_fork_works" = xyes
; then
10150 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10156 if test "X$prefix" = "XNONE"; then
10157 acl_final_prefix
="$ac_default_prefix"
10159 acl_final_prefix
="$prefix"
10161 if test "X$exec_prefix" = "XNONE"; then
10162 acl_final_exec_prefix
='${prefix}'
10164 acl_final_exec_prefix
="$exec_prefix"
10166 acl_save_prefix
="$prefix"
10167 prefix
="$acl_final_prefix"
10168 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10169 prefix
="$acl_save_prefix"
10172 # Check whether --with-gnu-ld was given.
10173 if test "${with_gnu_ld+set}" = set; then :
10174 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10179 # Prepare PATH_SEPARATOR.
10180 # The user is always right.
10181 if test "${PATH_SEPARATOR+set}" != set; then
10182 echo "#! /bin/sh" >conf$$.sh
10183 echo "exit 0" >>conf$$.sh
10185 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10193 if test "$GCC" = yes; then
10194 # Check if gcc -print-prog-name=ld gives a path.
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10196 $as_echo_n "checking for ld used by GCC... " >&6; }
10199 # gcc leaves a trailing carriage return which upsets mingw
10200 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10202 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10205 # Accept absolute paths.
10206 [\\/]* |
[A-Za-z
]:[\\/]*)
10207 re_direlt
='/[^/][^/]*/\.\./'
10208 # Canonicalize the path of ld
10209 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10210 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10211 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10213 test -z "$LD" && LD
="$ac_prog"
10216 # If it fails, then pretend we aren't using GCC.
10220 # If it is relative, then search for the first ld in PATH.
10221 with_gnu_ld
=unknown
10224 elif test "$with_gnu_ld" = yes; then
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10226 $as_echo_n "checking for GNU ld... " >&6; }
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10229 $as_echo_n "checking for non-GNU ld... " >&6; }
10231 if test "${acl_cv_path_LD+set}" = set; then :
10232 $as_echo_n "(cached) " >&6
10234 if test -z "$LD"; then
10235 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10236 for ac_dir
in $PATH; do
10237 test -z "$ac_dir" && ac_dir
=.
10238 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10239 acl_cv_path_LD
="$ac_dir/$ac_prog"
10240 # Check to see if the program is GNU ld. I'd rather use --version,
10241 # but apparently some GNU ld's only accept -v.
10242 # Break only if it was the GNU/non-GNU ld that we prefer.
10243 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10244 test "$with_gnu_ld" != no
&& break
10246 test "$with_gnu_ld" != yes && break
10252 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10256 LD
="$acl_cv_path_LD"
10257 if test -n "$LD"; then
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10259 $as_echo "$LD" >&6; }
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10262 $as_echo "no" >&6; }
10264 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10266 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10267 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10268 $as_echo_n "(cached) " >&6
10270 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10271 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10272 acl_cv_prog_gnu_ld
=yes
10274 acl_cv_prog_gnu_ld
=no
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10278 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10279 with_gnu_ld
=$acl_cv_prog_gnu_ld
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10284 $as_echo_n "checking for shared library run path origin... " >&6; }
10285 if test "${acl_cv_rpath+set}" = set; then :
10286 $as_echo_n "(cached) " >&6
10289 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10290 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10292 rm -f .
/conftest.sh
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10297 $as_echo "$acl_cv_rpath" >&6; }
10299 libext
="$acl_cv_libext"
10300 shlibext
="$acl_cv_shlibext"
10301 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10302 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10303 hardcode_direct
="$acl_cv_hardcode_direct"
10304 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10305 # Check whether --enable-rpath was given.
10306 if test "${enable_rpath+set}" = set; then :
10307 enableval
=$enable_rpath; :
10321 acl_save_prefix
="$prefix"
10322 prefix
="$acl_final_prefix"
10323 acl_save_exec_prefix
="$exec_prefix"
10324 exec_prefix
="$acl_final_exec_prefix"
10326 eval additional_includedir
=\"$includedir\"
10327 eval additional_libdir
=\"$libdir\"
10329 exec_prefix
="$acl_save_exec_prefix"
10330 prefix
="$acl_save_prefix"
10333 # Check whether --with-libiconv-prefix was given.
10334 if test "${with_libiconv_prefix+set}" = set; then :
10335 withval
=$with_libiconv_prefix;
10336 if test "X$withval" = "Xno"; then
10339 if test "X$withval" = "X"; then
10341 acl_save_prefix
="$prefix"
10342 prefix
="$acl_final_prefix"
10343 acl_save_exec_prefix
="$exec_prefix"
10344 exec_prefix
="$acl_final_exec_prefix"
10346 eval additional_includedir
=\"$includedir\"
10347 eval additional_libdir
=\"$libdir\"
10349 exec_prefix
="$acl_save_exec_prefix"
10350 prefix
="$acl_save_prefix"
10353 additional_includedir
="$withval/include"
10354 additional_libdir
="$withval/lib"
10365 names_already_handled
=
10366 names_next_round
='iconv '
10367 while test -n "$names_next_round"; do
10368 names_this_round
="$names_next_round"
10370 for name
in $names_this_round; do
10372 for n
in $names_already_handled; do
10373 if test "$n" = "$name"; then
10374 already_handled
=yes
10378 if test -z "$already_handled"; then
10379 names_already_handled
="$names_already_handled $name"
10380 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10381 eval value
=\"\
$HAVE_LIB$uppername\"
10382 if test -n "$value"; then
10383 if test "$value" = yes; then
10384 eval value
=\"\
$LIB$uppername\"
10385 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10386 eval value
=\"\
$LTLIB$uppername\"
10387 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10396 if test $use_additional = yes; then
10397 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10398 found_dir
="$additional_libdir"
10399 found_so
="$additional_libdir/lib$name.$shlibext"
10400 if test -f "$additional_libdir/lib$name.la"; then
10401 found_la
="$additional_libdir/lib$name.la"
10404 if test -f "$additional_libdir/lib$name.$libext"; then
10405 found_dir
="$additional_libdir"
10406 found_a
="$additional_libdir/lib$name.$libext"
10407 if test -f "$additional_libdir/lib$name.la"; then
10408 found_la
="$additional_libdir/lib$name.la"
10413 if test "X$found_dir" = "X"; then
10414 for x
in $LDFLAGS $LTLIBICONV; do
10416 acl_save_prefix
="$prefix"
10417 prefix
="$acl_final_prefix"
10418 acl_save_exec_prefix
="$exec_prefix"
10419 exec_prefix
="$acl_final_exec_prefix"
10421 exec_prefix
="$acl_save_exec_prefix"
10422 prefix
="$acl_save_prefix"
10426 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10427 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10429 found_so
="$dir/lib$name.$shlibext"
10430 if test -f "$dir/lib$name.la"; then
10431 found_la
="$dir/lib$name.la"
10434 if test -f "$dir/lib$name.$libext"; then
10436 found_a
="$dir/lib$name.$libext"
10437 if test -f "$dir/lib$name.la"; then
10438 found_la
="$dir/lib$name.la"
10444 if test "X$found_dir" != "X"; then
10449 if test "X$found_dir" != "X"; then
10450 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10451 if test "X$found_so" != "X"; then
10452 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10453 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10456 for x
in $ltrpathdirs; do
10457 if test "X$x" = "X$found_dir"; then
10462 if test -z "$haveit"; then
10463 ltrpathdirs
="$ltrpathdirs $found_dir"
10465 if test "$hardcode_direct" = yes; then
10466 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10468 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10469 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10471 for x
in $rpathdirs; do
10472 if test "X$x" = "X$found_dir"; then
10477 if test -z "$haveit"; then
10478 rpathdirs
="$rpathdirs $found_dir"
10482 for x
in $LDFLAGS $LIBICONV; do
10484 acl_save_prefix
="$prefix"
10485 prefix
="$acl_final_prefix"
10486 acl_save_exec_prefix
="$exec_prefix"
10487 exec_prefix
="$acl_final_exec_prefix"
10489 exec_prefix
="$acl_save_exec_prefix"
10490 prefix
="$acl_save_prefix"
10492 if test "X$x" = "X-L$found_dir"; then
10497 if test -z "$haveit"; then
10498 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10500 if test "$hardcode_minus_L" != no
; then
10501 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10503 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10509 if test "X$found_a" != "X"; then
10510 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10512 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10515 additional_includedir
=
10516 case "$found_dir" in
10518 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10519 additional_includedir
="$basedir/include"
10522 if test "X$additional_includedir" != "X"; then
10523 if test "X$additional_includedir" != "X/usr/include"; then
10525 if test "X$additional_includedir" = "X/usr/local/include"; then
10526 if test -n "$GCC"; then
10528 linux
*) haveit
=yes;;
10532 if test -z "$haveit"; then
10533 for x
in $CPPFLAGS $INCICONV; do
10535 acl_save_prefix
="$prefix"
10536 prefix
="$acl_final_prefix"
10537 acl_save_exec_prefix
="$exec_prefix"
10538 exec_prefix
="$acl_final_exec_prefix"
10540 exec_prefix
="$acl_save_exec_prefix"
10541 prefix
="$acl_save_prefix"
10543 if test "X$x" = "X-I$additional_includedir"; then
10548 if test -z "$haveit"; then
10549 if test -d "$additional_includedir"; then
10550 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10556 if test -n "$found_la"; then
10557 save_libdir
="$libdir"
10558 case "$found_la" in
10559 */* |
*\\*) .
"$found_la" ;;
10560 *) .
"./$found_la" ;;
10562 libdir
="$save_libdir"
10563 for dep
in $dependency_libs; do
10566 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10567 if test "X$additional_libdir" != "X/usr/lib"; then
10569 if test "X$additional_libdir" = "X/usr/local/lib"; then
10570 if test -n "$GCC"; then
10572 linux
*) haveit
=yes;;
10576 if test -z "$haveit"; then
10578 for x
in $LDFLAGS $LIBICONV; do
10580 acl_save_prefix
="$prefix"
10581 prefix
="$acl_final_prefix"
10582 acl_save_exec_prefix
="$exec_prefix"
10583 exec_prefix
="$acl_final_exec_prefix"
10585 exec_prefix
="$acl_save_exec_prefix"
10586 prefix
="$acl_save_prefix"
10588 if test "X$x" = "X-L$additional_libdir"; then
10593 if test -z "$haveit"; then
10594 if test -d "$additional_libdir"; then
10595 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10599 for x
in $LDFLAGS $LTLIBICONV; do
10601 acl_save_prefix
="$prefix"
10602 prefix
="$acl_final_prefix"
10603 acl_save_exec_prefix
="$exec_prefix"
10604 exec_prefix
="$acl_final_exec_prefix"
10606 exec_prefix
="$acl_save_exec_prefix"
10607 prefix
="$acl_save_prefix"
10609 if test "X$x" = "X-L$additional_libdir"; then
10614 if test -z "$haveit"; then
10615 if test -d "$additional_libdir"; then
10616 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10623 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10624 if test "$enable_rpath" != no
; then
10626 for x
in $rpathdirs; do
10627 if test "X$x" = "X$dir"; then
10632 if test -z "$haveit"; then
10633 rpathdirs
="$rpathdirs $dir"
10636 for x
in $ltrpathdirs; do
10637 if test "X$x" = "X$dir"; then
10642 if test -z "$haveit"; then
10643 ltrpathdirs
="$ltrpathdirs $dir"
10648 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10651 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10654 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10655 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10661 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10662 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10668 if test "X$rpathdirs" != "X"; then
10669 if test -n "$hardcode_libdir_separator"; then
10671 for found_dir
in $rpathdirs; do
10672 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10674 acl_save_libdir
="$libdir"
10676 eval flag
=\"$hardcode_libdir_flag_spec\"
10677 libdir
="$acl_save_libdir"
10678 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10680 for found_dir
in $rpathdirs; do
10681 acl_save_libdir
="$libdir"
10682 libdir
="$found_dir"
10683 eval flag
=\"$hardcode_libdir_flag_spec\"
10684 libdir
="$acl_save_libdir"
10685 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10689 if test "X$ltrpathdirs" != "X"; then
10690 for found_dir
in $ltrpathdirs; do
10691 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10702 $as_echo_n "checking for iconv... " >&6; }
10703 if test "${am_cv_func_iconv+set}" = set; then :
10704 $as_echo_n "(cached) " >&6
10707 am_cv_func_iconv
="no, consider installing GNU libiconv"
10709 am_save_CPPFLAGS
="$CPPFLAGS"
10710 CPPFLAGS
="$CPPFLAGS $INCICONV"
10711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h. */
10713 #include <stdlib.h>
10718 iconv_t cd = iconv_open("","");
10719 iconv(cd,NULL,NULL,NULL,NULL);
10725 if ac_fn_cxx_try_link
"$LINENO"; then :
10726 am_cv_func_iconv
=yes
10728 rm -f core conftest.err conftest.
$ac_objext \
10729 conftest
$ac_exeext conftest.
$ac_ext
10730 CPPFLAGS
="$am_save_CPPFLAGS"
10732 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
10733 for _libs
in .libs _libs
; do
10734 am_save_CPPFLAGS
="$CPPFLAGS"
10735 am_save_LIBS
="$LIBS"
10736 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
10737 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10740 #include <stdlib.h>
10745 iconv_t cd = iconv_open("","");
10746 iconv(cd,NULL,NULL,NULL,NULL);
10752 if ac_fn_cxx_try_link
"$LINENO"; then :
10753 INCICONV
="-I../libiconv/include"
10754 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
10755 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
10756 am_cv_lib_iconv
=yes
10757 am_cv_func_iconv
=yes
10759 rm -f core conftest.err conftest.
$ac_objext \
10760 conftest
$ac_exeext conftest.
$ac_ext
10761 CPPFLAGS
="$am_save_CPPFLAGS"
10762 LIBS
="$am_save_LIBS"
10763 if test "$am_cv_func_iconv" = "yes"; then
10769 if test "$am_cv_func_iconv" != yes; then
10770 am_save_CPPFLAGS
="$CPPFLAGS"
10771 am_save_LIBS
="$LIBS"
10772 CPPFLAGS
="$LIBS $INCICONV"
10773 LIBS
="$LIBS $LIBICONV"
10774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h. */
10776 #include <stdlib.h>
10781 iconv_t cd = iconv_open("","");
10782 iconv(cd,NULL,NULL,NULL,NULL);
10788 if ac_fn_cxx_try_link
"$LINENO"; then :
10789 am_cv_lib_iconv
=yes
10790 am_cv_func_iconv
=yes
10792 rm -f core conftest.err conftest.
$ac_objext \
10793 conftest
$ac_exeext conftest.
$ac_ext
10794 CPPFLAGS
="$am_save_CPPFLAGS"
10795 LIBS
="$am_save_LIBS"
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10800 $as_echo "$am_cv_func_iconv" >&6; }
10801 if test "$am_cv_func_iconv" = yes; then
10803 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10806 if test "$am_cv_lib_iconv" = yes; then
10808 for element
in $INCICONV; do
10810 for x
in $CPPFLAGS; do
10812 acl_save_prefix
="$prefix"
10813 prefix
="$acl_final_prefix"
10814 acl_save_exec_prefix
="$exec_prefix"
10815 exec_prefix
="$acl_final_exec_prefix"
10817 exec_prefix
="$acl_save_exec_prefix"
10818 prefix
="$acl_save_prefix"
10820 if test "X$x" = "X$element"; then
10825 if test -z "$haveit"; then
10826 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10831 $as_echo_n "checking how to link with libiconv... " >&6; }
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10833 $as_echo "$LIBICONV" >&6; }
10841 if test "$am_cv_func_iconv" = yes; then
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10843 $as_echo_n "checking for iconv declaration... " >&6; }
10844 if test "${am_cv_proto_iconv+set}" = set; then :
10845 $as_echo_n "(cached) " >&6
10848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h. */
10851 #include <stdlib.h>
10857 #if defined(__STDC__) || defined(__cplusplus)
10858 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10871 if ac_fn_cxx_try_compile
"$LINENO"; then :
10872 am_cv_proto_iconv_arg1
=""
10874 am_cv_proto_iconv_arg1
="const"
10876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10877 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);"
10880 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10882 }$am_cv_proto_iconv" >&5
10884 }$am_cv_proto_iconv" >&6; }
10886 cat >>confdefs.h
<<_ACEOF
10887 #define ICONV_CONST $am_cv_proto_iconv_arg1
10893 # Until we have in-tree GNU iconv:
10895 if test -f "$LTLIBICONV"; then
10896 LIBICONV_DEP
=$LTLIBICONV
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10902 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10903 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10904 $as_echo_n "(cached) " >&6
10906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10907 /* end confdefs.h. */
10908 #include <locale.h>
10917 if ac_fn_cxx_try_link
"$LINENO"; then :
10918 am_cv_val_LC_MESSAGES
=yes
10920 am_cv_val_LC_MESSAGES
=no
10922 rm -f core conftest.err conftest.
$ac_objext \
10923 conftest
$ac_exeext conftest.
$ac_ext
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10926 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10927 if test $am_cv_val_LC_MESSAGES = yes; then
10929 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10936 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10937 if test "${am_cv_langinfo_codeset+set}" = set; then :
10938 $as_echo_n "(cached) " >&6
10940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10941 /* end confdefs.h. */
10942 #include <langinfo.h>
10946 char* cs = nl_langinfo(CODESET);
10951 if ac_fn_cxx_try_link
"$LINENO"; then :
10952 am_cv_langinfo_codeset
=yes
10954 am_cv_langinfo_codeset
=no
10956 rm -f core conftest.err conftest.
$ac_objext \
10957 conftest
$ac_exeext conftest.
$ac_ext
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10961 $as_echo "$am_cv_langinfo_codeset" >&6; }
10962 if test $am_cv_langinfo_codeset = yes; then
10964 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10969 # We will need to find libiberty.h and ansidecl.h
10970 saved_CFLAGS
="$CFLAGS"
10971 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10972 saved_CXXFLAGS
="$CXXFLAGS"
10973 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10975 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10976 # normal autoconf function for these. But force definition of
10977 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10978 # basename handling in libiberty.h.
10979 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10980 #undef HAVE_DECL_BASENAME
10981 #define HAVE_DECL_BASENAME 1
10982 #include \"ansidecl.h\"
10983 #include \"system.h\"
10985 if test "x$ac_cv_have_decl_basename_const_charp_" = x
""yes; then :
10991 cat >>confdefs.h
<<_ACEOF
10992 #define HAVE_DECL_BASENAME $ac_have_decl
10994 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10995 #undef HAVE_DECL_BASENAME
10996 #define HAVE_DECL_BASENAME 1
10997 #include \"ansidecl.h\"
10998 #include \"system.h\"
11000 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x
""yes; then :
11006 cat >>confdefs.h
<<_ACEOF
11007 #define HAVE_DECL_STRSTR $ac_have_decl
11011 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11012 madvise stpcpy strnlen strsignal strverscmp \
11013 strtol strtoul strtoll strtoull setenv unsetenv \
11014 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11015 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
11017 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11019 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11020 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11021 $as_echo_n "(cached) " >&6
11023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11024 /* end confdefs.h. */
11026 #define $ac_tr_decl 1
11028 #include "ansidecl.h"
11029 #include "system.h"
11035 char *(*pfn) = (char *(*)) $ac_func ;
11041 if ac_fn_cxx_try_compile
"$LINENO"; then :
11042 eval "gcc_cv_have_decl_$ac_func=yes"
11044 eval "gcc_cv_have_decl_$ac_func=no"
11046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11049 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11051 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11052 #define $ac_tr_decl 1
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11057 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11058 #define $ac_tr_decl 0
11066 for ac_func
in getrlimit setrlimit getrusage
11068 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11070 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11071 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11072 $as_echo_n "(cached) " >&6
11074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11075 /* end confdefs.h. */
11077 #define $ac_tr_decl 1
11079 #include "ansidecl.h"
11080 #include "system.h"
11081 #ifdef HAVE_SYS_RESOURCE_H
11082 #include <sys/resource.h>
11090 char *(*pfn) = (char *(*)) $ac_func ;
11096 if ac_fn_cxx_try_compile
"$LINENO"; then :
11097 eval "gcc_cv_have_decl_$ac_func=yes"
11099 eval "gcc_cv_have_decl_$ac_func=no"
11101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11104 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11106 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11107 #define $ac_tr_decl 1
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11112 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11113 #define $ac_tr_decl 0
11121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11122 /* end confdefs.h. */
11124 #include "ansidecl.h"
11125 #include "system.h"
11126 #ifdef HAVE_SYS_RESOURCE_H
11127 #include <sys/resource.h>
11138 if ac_fn_cxx_try_compile
"$LINENO"; then :
11142 $as_echo "#define rlim_t long" >>confdefs.h
11145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11147 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11148 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11149 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11150 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11151 for ac_func
in ldgetname
11153 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11155 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11156 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11157 $as_echo_n "(cached) " >&6
11159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11160 /* end confdefs.h. */
11162 #define $ac_tr_decl 1
11164 #include "ansidecl.h"
11165 #include "system.h"
11166 #ifdef HAVE_LDFCN_H
11177 char *(*pfn) = (char *(*)) $ac_func ;
11183 if ac_fn_cxx_try_compile
"$LINENO"; then :
11184 eval "gcc_cv_have_decl_$ac_func=yes"
11186 eval "gcc_cv_have_decl_$ac_func=no"
11188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11191 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11193 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11194 #define $ac_tr_decl 1
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11199 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11200 #define $ac_tr_decl 0
11208 for ac_func
in times
11210 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11212 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11213 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11214 $as_echo_n "(cached) " >&6
11216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11217 /* end confdefs.h. */
11219 #define $ac_tr_decl 1
11221 #include "ansidecl.h"
11222 #include "system.h"
11223 #ifdef HAVE_SYS_TIMES_H
11224 #include <sys/times.h>
11232 char *(*pfn) = (char *(*)) $ac_func ;
11238 if ac_fn_cxx_try_compile
"$LINENO"; then :
11239 eval "gcc_cv_have_decl_$ac_func=yes"
11241 eval "gcc_cv_have_decl_$ac_func=no"
11243 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11246 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11248 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11249 #define $ac_tr_decl 1
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11255 #define $ac_tr_decl 0
11263 for ac_func
in sigaltstack
11265 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11267 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11268 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11269 $as_echo_n "(cached) " >&6
11271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h. */
11274 #define $ac_tr_decl 1
11276 #include "ansidecl.h"
11277 #include "system.h"
11278 #include <signal.h>
11285 char *(*pfn) = (char *(*)) $ac_func ;
11291 if ac_fn_cxx_try_compile
"$LINENO"; then :
11292 eval "gcc_cv_have_decl_$ac_func=yes"
11294 eval "gcc_cv_have_decl_$ac_func=no"
11296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11299 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11301 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11302 #define $ac_tr_decl 1
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11308 #define $ac_tr_decl 0
11316 # More time-related stuff.
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11318 $as_echo_n "checking for struct tms... " >&6; }
11319 if test "${ac_cv_struct_tms+set}" = set; then :
11320 $as_echo_n "(cached) " >&6
11323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11324 /* end confdefs.h. */
11326 #include "ansidecl.h"
11327 #include "system.h"
11328 #ifdef HAVE_SYS_TIMES_H
11329 #include <sys/times.h>
11340 if ac_fn_cxx_try_compile
"$LINENO"; then :
11341 ac_cv_struct_tms
=yes
11343 ac_cv_struct_tms
=no
11345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11348 $as_echo "$ac_cv_struct_tms" >&6; }
11349 if test $ac_cv_struct_tms = yes; then
11351 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11355 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11356 # revisit after autoconf 2.50.
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11358 $as_echo_n "checking for clock_t... " >&6; }
11359 if test "${gcc_cv_type_clock_t+set}" = set; then :
11360 $as_echo_n "(cached) " >&6
11363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h. */
11366 #include "ansidecl.h"
11367 #include "system.h"
11377 if ac_fn_cxx_try_compile
"$LINENO"; then :
11378 gcc_cv_type_clock_t
=yes
11380 gcc_cv_type_clock_t
=no
11382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11385 $as_echo "$gcc_cv_type_clock_t" >&6; }
11386 if test $gcc_cv_type_clock_t = yes; then
11388 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11392 # Check if F_SETLKW is supported by fcntl.
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11394 $as_echo_n "checking for F_SETLKW... " >&6; }
11395 if test "${ac_cv_f_setlkw+set}" = set; then :
11396 $as_echo_n "(cached) " >&6
11399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11400 /* end confdefs.h. */
11412 return fcntl (1, F_SETLKW, &fl);
11417 if ac_fn_cxx_try_compile
"$LINENO"; then :
11422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11425 $as_echo "$ac_cv_f_setlkw" >&6; }
11426 if test $ac_cv_f_setlkw = yes; then
11428 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11432 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11433 CFLAGS
="$saved_CFLAGS"
11434 CXXFLAGS
="$saved_CXXFLAGS"
11436 # mkdir takes a single argument on some systems.
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11438 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11439 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11440 $as_echo_n "(cached) " >&6
11442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11445 #include <sys/types.h>
11446 #ifdef HAVE_SYS_STAT_H
11447 # include <sys/stat.h>
11449 #ifdef HAVE_UNISTD_H
11450 # include <unistd.h>
11452 #ifdef HAVE_DIRECT_H
11453 # include <direct.h>
11463 if ac_fn_cxx_try_compile
"$LINENO"; then :
11464 gcc_cv_mkdir_takes_one_arg
=no
11466 gcc_cv_mkdir_takes_one_arg
=yes
11468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11471 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11472 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11474 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11485 # With Setjmp/Longjmp based exception handling.
11486 # Check whether --enable-sjlj-exceptions was given.
11487 if test "${enable_sjlj_exceptions+set}" = set; then :
11488 enableval
=$enable_sjlj_exceptions; case $target in
11490 if test $enableval != yes; then
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11492 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11497 force_sjlj_exceptions
=yes
11501 force_sjlj_exceptions
=yes
11505 force_sjlj_exceptions
=yes
11509 force_sjlj_exceptions
=no
11514 if test $force_sjlj_exceptions = yes; then
11515 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11517 cat >>confdefs.h
<<_ACEOF
11518 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11523 # --------------------------------------------------------
11524 # Build, host, and target specific configuration fragments
11525 # --------------------------------------------------------
11527 # Collect build-machine-specific information.
11528 .
${srcdir}/config.build
11530 # Collect host-machine-specific information.
11531 .
${srcdir}/config.
host
11535 # Collect target-machine-specific information.
11536 .
${srcdir}/config.gcc
11538 extra_objs
="${host_extra_objs} ${extra_objs}"
11539 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11541 # Default the target-machine variables that were not explicitly set.
11542 if test x
"$tm_file" = x
11543 then tm_file
=$cpu_type/$cpu_type.h
; fi
11545 if test x
"$extra_headers" = x
11546 then extra_headers
=; fi
11548 if test x
$md_file = x
11549 then md_file
=$cpu_type/$cpu_type.md
; fi
11551 if test x
$out_file = x
11552 then out_file
=$cpu_type/$cpu_type.c
; fi
11554 if test x
"$tmake_file" = x
11555 then tmake_file
=$cpu_type/t-
$cpu_type
11558 # Support --enable-initfini-array.
11559 if test x
$enable_initfini_array != xno
; then
11560 tm_file
="${tm_file} initfini-array.h"
11563 if test x
"$dwarf2" = xyes
11564 then tm_file
="$tm_file tm-dwarf2.h"
11567 # Say what files are being used for the output code and MD file.
11568 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11569 echo "Using \`$srcdir/config/$md_file' as machine description file."
11571 # If any of the xm_file variables contain nonexistent files, warn
11572 # about them and drop them.
11575 for x
in $build_xm_file; do
11576 if test -f $srcdir/config
/$x
11578 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11579 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11582 build_xm_file
="$bx"
11585 for x
in $host_xm_file; do
11586 if test -f $srcdir/config
/$x
11588 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11589 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11595 for x
in $xm_file; do
11596 if test -f $srcdir/config
/$x
11598 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11599 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11605 for f
in $tm_file; do
11608 if test $count = ax
; then
11609 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11611 echo "Using the following target machine macro files:"
11612 for f
in $tm_file; do
11613 echo " $srcdir/config/$f"
11617 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11619 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11623 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11625 cat >>confdefs.h
<<_ACEOF
11626 #define HAVE_GNU_LD $gnu_ld_bool
11630 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11632 cat >>confdefs.h
<<_ACEOF
11633 #define HAVE_GNU_AS $gnu_as_bool
11638 for f
in $host_xm_file; do
11641 if test $count = a
; then
11643 elif test $count = ax
; then
11644 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11646 echo "Using the following host machine macro files:"
11647 for f
in $host_xm_file; do
11648 echo " $srcdir/config/$f"
11651 echo "Using ${out_host_hook_obj} for host machine hooks."
11653 if test "$host_xm_file" != "$build_xm_file"; then
11655 for f
in $build_xm_file; do
11658 if test $count = a
; then
11660 elif test $count = ax
; then
11661 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11663 echo "Using the following build machine macro files:"
11664 for f
in $build_xm_file; do
11665 echo " $srcdir/config/$f"
11670 if test -n "$configured_native_system_header_dir"; then
11671 native_system_header_dir
=$configured_native_system_header_dir
11673 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11677 powerpc
*-*-darwin*)
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11679 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11680 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11681 $as_echo_n "(cached) " >&6
11683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11684 /* end confdefs.h. */
11686 #include <sys/cdefs.h>
11687 #include <sys/signal.h>
11688 #include <ucontext.h>
11689 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11692 if ac_fn_cxx_try_compile
"$LINENO"; then :
11693 gcc_cv_mcontext_underscores
=no
11695 gcc_cv_mcontext_underscores
=yes
11697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11700 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11701 if test $gcc_cv_mcontext_underscores = yes; then
11703 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11713 # Check if a valid thread package
11714 case ${enable_threads} in
11717 target_thread_file
='single'
11721 target_thread_file
='single'
11723 aix | dce | lynx | mipssde | posix | rtems | \
11724 single | tpf | vxworks | win32
)
11725 target_thread_file
=${enable_threads}
11728 echo "${enable_threads} is an unknown thread package" 1>&2
11733 if test x
${thread_file} = x
; then
11734 # No thread file set by target-specific clauses in config.gcc,
11735 # so use file chosen by default logic above
11736 thread_file
=${target_thread_file}
11744 if test x
$enable___cxa_atexit = xyes || \
11745 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11746 if test x
$host = x
$target; then
11748 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11749 # keyed to flag_use_cxa_atexit
11757 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11758 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11761 echo "__cxa_atexit can't be enabled on this target"
11767 # We can't check for __cxa_atexit when building a cross, so assume
11771 if test x
$use_cxa_atexit = xyes
; then
11773 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11778 # Look for a file containing extra machine modes.
11779 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11780 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11783 cat >>confdefs.h
<<_ACEOF
11784 #define EXTRA_MODES_FILE "config/$extra_modes"
11789 # Convert extra_options into a form suitable for Makefile use.
11792 for f
in $extra_options; do
11793 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11794 all_opt_files
="$all_opt_files $srcdir/config/$f"
11798 # auto-host.h is the file containing items generated by autoconf and is
11799 # the first file included by config.h.
11800 # If host=build, it is correct to have bconfig include auto-host.h
11801 # as well. If host!=build, we are in error and need to do more
11802 # work to find out the build config parameters.
11803 if test x
$host = x
$build
11805 build_auto
=auto-host.h
11807 # We create a subdir, then run autoconf in the subdir.
11808 # To prevent recursion we set host and build for the new
11809 # invocation of configure to the build for this invocation
11816 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11817 *) realsrcdir
=..
/${srcdir};;
11819 # Clearing GMPINC is necessary to prevent host headers being
11820 # used by the build compiler. Defining GENERATOR_FILE stops
11821 # system.h from including gmp.h.
11822 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11823 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11824 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11825 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11826 ${realsrcdir}/configure \
11827 --enable-languages=${enable_languages-all} \
11828 --target=$target_alias --host=$build_alias --build=$build_alias
11830 # We just finished tests for the build machine, so rename
11831 # the file auto-build.h in the gcc directory.
11832 mv auto-host.h ..
/auto-build.h
11835 build_auto
=auto-build.h
11839 tm_file
="${tm_file} defaults.h"
11840 tm_p_file
="${tm_p_file} tm-preds.h"
11841 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11842 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11843 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11844 # put this back in temporarily.
11845 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11851 # Compile in configure arguments.
11852 if test -f configargs.h
; then
11853 # Being re-configured.
11854 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11855 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11857 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11860 # Double all backslashes and backslash all quotes to turn
11861 # gcc_config_arguments into a C string.
11862 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11863 $gcc_config_arguments
11865 gcc_config_arguments_str
=`cat conftest.out`
11868 cat > configargs.h
<<EOF
11869 /* Generated automatically. */
11870 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11871 static const char thread_model[] = "$thread_file";
11873 static const struct {
11874 const char *name, *value;
11875 } configure_default_options[] = $configure_default_options;
11878 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11879 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11880 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11881 if test -f $srcdir/REVISION
; then
11882 gcc_REVISION
=`cat $srcdir/REVISION`
11886 cat > plugin-version.h
<<EOF
11887 #include "configargs.h"
11889 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11890 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11891 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11892 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11894 static char basever[] = "$gcc_BASEVER";
11895 static char datestamp[] = "$gcc_DATESTAMP";
11896 static char devphase[] = "$gcc_DEVPHASE";
11897 static char revision[] = "$gcc_REVISION";
11899 /* FIXME plugins: We should make the version information more precise.
11900 One way to do is to add a checksum. */
11902 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11903 devphase, revision,
11904 configuration_arguments};
11907 # Internationalization
11908 # If we haven't got the data from the intl directory,
11909 # assume NLS is disabled.
11918 if test -f ..
/intl
/config.intl
; then
11919 . ..
/intl
/config.intl
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11922 $as_echo_n "checking whether NLS is requested... " >&6; }
11923 if test x
"$USE_NLS" != xyes
; then
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 $as_echo "no" >&6; }
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11928 $as_echo "yes" >&6; }
11930 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11934 $as_echo_n "checking for catalogs to be installed... " >&6; }
11935 # Look for .po and .gmo files in the source directory.
11938 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11939 # If there aren't any .gmo files the shell will give us the
11940 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11942 case "$cat" in *\
**)
11945 # The quadruple backslash is collapsed to a double backslash
11946 # by the backticks, then collapsed again by the double quotes,
11947 # leaving us with one backslash in the sed expression (right
11948 # before the dot that mustn't act as a wildcard).
11949 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11950 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11951 # The user is allowed to set LINGUAS to a list of languages to
11952 # install catalogs for. If it's empty that means "all of them."
11953 if test "x$LINGUAS" = x
; then
11954 CATALOGS
="$CATALOGS $cat"
11955 XLINGUAS
="$XLINGUAS $lang"
11957 case "$LINGUAS" in *$lang*)
11958 CATALOGS
="$CATALOGS $cat"
11959 XLINGUAS
="$XLINGUAS $lang"
11964 LINGUAS
="$XLINGUAS"
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11966 $as_echo "$LINGUAS" >&6; }
11979 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11980 # -liconv on the link line twice.
11981 case "$LIBINTL" in *$LIBICONV*)
11985 # Check whether --enable-secureplt was given.
11986 if test "${enable_secureplt+set}" = set; then :
11987 enableval
=$enable_secureplt;
11991 # Check whether --enable-leading-mingw64-underscores was given.
11992 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11993 enableval
=$enable_leading_mingw64_underscores;
11996 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11998 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12002 # Check whether --enable-cld was given.
12003 if test "${enable_cld+set}" = set; then :
12004 enableval
=$enable_cld;
12010 # Check whether --enable-frame-pointer was given.
12011 if test "${enable_frame_pointer+set}" = set; then :
12012 enableval
=$enable_frame_pointer;
12016 linux
* | darwin
[8912]*)
12017 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12019 enable_frame_pointer
=no
12022 enable_frame_pointer
=yes
12029 # Windows32 Registry support for specifying GCC installation paths.
12030 # Check whether --enable-win32-registry was given.
12031 if test "${enable_win32_registry+set}" = set; then :
12032 enableval
=$enable_win32_registry;
12037 win32 | pe | cygwin
* | mingw32
*)
12038 if test "x$enable_win32_registry" != xno
; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12040 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12041 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12042 $as_echo_n "(cached) " >&6
12044 ac_func_search_save_LIBS
=$LIBS
12045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h. */
12048 /* Override any GCC internal prototype to avoid an error.
12049 Use char because int might match the return type of a GCC
12050 builtin and then its argument prototype would still apply. */
12054 char RegOpenKeyExA ();
12058 return RegOpenKeyExA ();
12063 for ac_lib
in '' advapi32
; do
12064 if test -z "$ac_lib"; then
12065 ac_res
="none required"
12068 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12070 if ac_fn_cxx_try_link
"$LINENO"; then :
12071 ac_cv_search_RegOpenKeyExA
=$ac_res
12073 rm -f core conftest.err conftest.
$ac_objext \
12075 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12079 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12082 ac_cv_search_RegOpenKeyExA
=no
12084 rm conftest.
$ac_ext
12085 LIBS
=$ac_func_search_save_LIBS
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12088 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12089 ac_res
=$ac_cv_search_RegOpenKeyExA
12090 if test "$ac_res" != no
; then :
12091 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12094 enable_win32_registry
=no
12099 if test "x$enable_win32_registry" != xno
; then
12101 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12104 if test "x$enable_win32_registry" != xyes \
12105 && test "x$enable_win32_registry" != x
; then
12107 cat >>confdefs.h
<<_ACEOF
12108 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12116 # Get an absolute path to the GCC top-level source directory
12117 holddir
=`${PWDCMD-pwd}`
12119 topdir
=`${PWDCMD-pwd}`
12122 # Conditionalize the makefile for this host machine.
12124 for f
in ${host_xmake_file}
12126 if test -f ${srcdir}/config
/$f
12128 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12132 # Conditionalize the makefile for this target machine.
12134 for f
in ${tmake_file}
12136 if test -f ${srcdir}/config
/$f
12138 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12141 tmake_file
="${tmake_file_}"
12143 out_object_file
=`basename $out_file .c`.o
12144 common_out_object_file
=`basename $common_out_file .c`.o
12146 tm_file_list
="options.h"
12147 tm_include_list
="options.h insn-constants.h"
12148 for f
in $tm_file; do
12151 f
=`echo $f | sed 's/^..//'`
12152 tm_file_list
="${tm_file_list} $f"
12153 tm_include_list
="${tm_include_list} $f"
12156 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12157 tm_include_list
="${tm_include_list} $f"
12160 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12161 tm_include_list
="${tm_include_list} config/$f"
12168 for f
in $tm_p_file; do
12171 tm_p_file_list
="${tm_p_file_list} $f"
12172 tm_p_include_list
="${tm_p_include_list} $f"
12175 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12176 tm_p_include_list
="${tm_p_include_list} config/$f"
12182 for f
in $xm_file; do
12185 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12186 xm_include_list
="${xm_include_list} $f"
12189 xm_file_list
="${xm_file_list} $f"
12190 xm_include_list
="${xm_include_list} $f"
12193 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12194 xm_include_list
="${xm_include_list} config/$f"
12200 host_xm_include_list
=
12201 for f
in $host_xm_file; do
12204 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12205 host_xm_include_list
="${host_xm_include_list} $f"
12208 host_xm_file_list
="${host_xm_file_list} $f"
12209 host_xm_include_list
="${host_xm_include_list} $f"
12212 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12213 host_xm_include_list
="${host_xm_include_list} config/$f"
12218 build_xm_file_list
=
12219 for f
in $build_xm_file; do
12222 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12223 build_xm_include_list
="${build_xm_include_list} $f"
12225 auto-build.h | auto-host.h
)
12226 build_xm_file_list
="${build_xm_file_list} $f"
12227 build_xm_include_list
="${build_xm_include_list} $f"
12230 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12231 build_xm_include_list
="${build_xm_include_list} config/$f"
12236 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12237 # cross-compiler which does not use the native headers and libraries.
12238 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12241 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12243 if test "x$with_build_sysroot" != x
; then
12244 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12246 # This value is used, even on a native system, because
12247 # CROSS_SYSTEM_HEADER_DIR is just
12248 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12249 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
12252 if test x
$host != x
$target
12254 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12256 SYSTEM_HEADER_DIR
=$build_system_header_dir
12257 case "$host","$target" in
12258 # Darwin crosses can use the host system's libraries and headers,
12259 # because of the fat library support. Of course, it must be the
12260 # same version of Darwin on both sides. Allow the user to
12261 # just say --target=foo-darwin without a version number to mean
12262 # "the version on this system".
12263 *-*-darwin*,*-*-darwin*)
12264 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12265 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12266 if test $hostos = $targetos -o $targetos = darwin
; then
12268 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12273 i?
86-*-*,x86_64-
*-* \
12274 | powerpc
*-*-*,powerpc64
*-*-*)
12275 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12280 if test "x$with_headers" = x
; then
12287 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12288 SYSTEM_HEADER_DIR
=$build_system_header_dir
12291 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
12292 if test "x$with_headers" != x
&& test "x$with_headers" != xyes
; then
12293 target_header_dir
=$with_headers
12294 elif test "x$with_sysroot" = x
; then
12295 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12296 elif test "x$with_build_sysroot" != "x"; then
12297 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12298 elif test "x$with_sysroot" = xyes
; then
12299 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12301 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12304 target_header_dir
=${native_system_header_dir}
12307 # If this is a cross-compiler that does not
12308 # have its own set of headers then define
12311 # If this is using newlib, without having the headers available now,
12312 # then define inhibit_libc in LIBGCC2_CFLAGS.
12313 # This prevents libgcc2 from containing any code which requires libc
12315 : ${inhibit_libc=false}
12316 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12317 test x
$with_newlib = xyes
; } &&
12318 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12323 # When building gcc with a cross-compiler, we need to adjust things so
12324 # that the generator programs are still built with the native compiler.
12325 # Also, we cannot run fixincludes.
12327 # These are the normal (build=host) settings:
12328 CC_FOR_BUILD
='$(CC)'
12329 CXX_FOR_BUILD
='$(CXX)'
12330 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12331 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12332 BUILD_LDFLAGS
='$(LDFLAGS)'
12333 STMP_FIXINC
=stmp-fixinc
12335 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
12336 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
12338 # And these apply if build != host, or we are generating coverage data
12339 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12341 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12342 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12343 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12345 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12346 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12347 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
12348 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
12353 # Expand extra_headers to include complete path.
12354 # This substitutes for lots of t-* files.
12355 extra_headers_list
=
12356 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12357 for file in ${extra_headers} ; do
12358 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12361 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12362 if test x
"$use_gcc_tgmath" = xyes
12363 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12366 # Define collect2 in Makefile.
12367 case $host_can_use_collect2 in
12369 *) collect2
='collect2$(exeext)' ;;
12373 # Add a definition of USE_COLLECT2 if system wants one.
12374 case $use_collect2 in
12375 no
) use_collect2
= ;;
12378 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12379 xm_defines
="${xm_defines} USE_COLLECT2"
12380 case $host_can_use_collect2 in
12382 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12389 cat >>confdefs.h
<<_ACEOF
12390 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12394 # ---------------------------
12395 # Assembler & linker features
12396 # ---------------------------
12398 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12399 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12400 # However when ld-new is first executed from the build tree, libtool will
12401 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12402 # to the build tree. While doing this we need to use the previous-stage
12403 # linker, or we have an infinite loop. The presence of a shell script as
12404 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12405 # the gcc/collect-ld script. So we need to know how libtool works, or
12406 # exec-tool will fail.
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12412 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12417 macro_version
='2.2.7a'
12418 macro_revision
='1.3134'
12432 ltmain
="$ac_aux_dir/ltmain.sh"
12434 # Backslashify metacharacters that are still active within
12435 # double-quoted strings.
12436 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12438 # Same as above, but do not quote variable references.
12439 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12441 # Sed substitution to delay expansion of an escaped shell variable in a
12442 # double_quote_subst'ed string.
12443 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12445 # Sed substitution to delay expansion of an escaped single quote.
12446 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12448 # Sed substitution to avoid accidental globbing in evaled expressions
12449 no_glob_subst
='s/\*/\\\*/g'
12451 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12452 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12453 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12456 $as_echo_n "checking how to print strings... " >&6; }
12457 # Test print first, because it will be a builtin if present.
12458 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12459 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12461 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12464 # Use this function as a fallback that always works.
12465 func_fallback_echo ()
12467 eval 'cat <<_LTECHO_EOF
12471 ECHO='func_fallback_echo
'
12474 # func_echo_all arg...
12475 # Invoke $ECHO with all args, space-separated.
12482 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12483 $as_echo "printf" >&6; } ;;
12484 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12485 $as_echo "print -r" >&6; } ;;
12486 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12487 $as_echo "cat" >&6; } ;;
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12504 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12505 if test "${ac_cv_path_SED+set}" = set; then :
12506 $as_echo_n "(cached) " >&6
12508 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12509 for ac_i in 1 2 3 4 5 6 7; do
12510 ac_script="$ac_script$as_nl$ac_script"
12512 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12513 { ac_script=; unset ac_script;}
12514 if test -z "$SED"; then
12515 ac_path_SED_found=false
12516 # Loop through the user's path and
test for each of PROGNAME-LIST
12517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12518 for as_dir
in $PATH
12521 test -z "$as_dir" && as_dir
=.
12522 for ac_prog
in sed gsed
; do
12523 for ac_exec_ext
in '' $ac_executable_extensions; do
12524 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12525 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12526 # Check for GNU ac_path_SED and select it if it is found.
12527 # Check for GNU $ac_path_SED
12528 case `"$ac_path_SED" --version 2>&1` in
12530 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12533 $as_echo_n 0123456789 >"conftest.in"
12536 cat "conftest.in" "conftest.in" >"conftest.tmp"
12537 mv "conftest.tmp" "conftest.in"
12538 cp "conftest.in" "conftest.nl"
12539 $as_echo '' >> "conftest.nl"
12540 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12541 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12542 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12543 if test $ac_count -gt ${ac_path_SED_max-0}; then
12544 # Best one so far, save it but keep looking for a better one
12545 ac_cv_path_SED
="$ac_path_SED"
12546 ac_path_SED_max
=$ac_count
12548 # 10*(2^10) chars as input seems more than enough
12549 test $ac_count -gt 10 && break
12551 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12554 $ac_path_SED_found && break 3
12559 if test -z "$ac_cv_path_SED"; then
12560 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12563 ac_cv_path_SED
=$SED
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12568 $as_echo "$ac_cv_path_SED" >&6; }
12569 SED
="$ac_cv_path_SED"
12572 test -z "$SED" && SED
=sed
12573 Xsed
="$SED -e 1s/^X//"
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12586 $as_echo_n "checking for fgrep... " >&6; }
12587 if test "${ac_cv_path_FGREP+set}" = set; then :
12588 $as_echo_n "(cached) " >&6
12590 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12591 then ac_cv_path_FGREP
="$GREP -F"
12593 if test -z "$FGREP"; then
12594 ac_path_FGREP_found
=false
12595 # Loop through the user's path and test for each of PROGNAME-LIST
12596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12597 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12600 test -z "$as_dir" && as_dir
=.
12601 for ac_prog
in fgrep
; do
12602 for ac_exec_ext
in '' $ac_executable_extensions; do
12603 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12604 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12605 # Check for GNU ac_path_FGREP and select it if it is found.
12606 # Check for GNU $ac_path_FGREP
12607 case `"$ac_path_FGREP" --version 2>&1` in
12609 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12612 $as_echo_n 0123456789 >"conftest.in"
12615 cat "conftest.in" "conftest.in" >"conftest.tmp"
12616 mv "conftest.tmp" "conftest.in"
12617 cp "conftest.in" "conftest.nl"
12618 $as_echo 'FGREP' >> "conftest.nl"
12619 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12620 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12621 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12622 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12623 # Best one so far, save it but keep looking for a better one
12624 ac_cv_path_FGREP
="$ac_path_FGREP"
12625 ac_path_FGREP_max
=$ac_count
12627 # 10*(2^10) chars as input seems more than enough
12628 test $ac_count -gt 10 && break
12630 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12633 $ac_path_FGREP_found && break 3
12638 if test -z "$ac_cv_path_FGREP"; then
12639 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12642 ac_cv_path_FGREP
=$FGREP
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12648 $as_echo "$ac_cv_path_FGREP" >&6; }
12649 FGREP
="$ac_cv_path_FGREP"
12652 test -z "$GREP" && GREP
=grep
12672 # Check whether --with-gnu-ld was given.
12673 if test "${with_gnu_ld+set}" = set; then :
12674 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12680 if test "$GCC" = yes; then
12681 # Check if gcc -print-prog-name=ld gives a path.
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12683 $as_echo_n "checking for ld used by $CC... " >&6; }
12686 # gcc leaves a trailing carriage return which upsets mingw
12687 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12689 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12692 # Accept absolute paths.
12694 re_direlt
='/[^/][^/]*/\.\./'
12695 # Canonicalize the pathname of ld
12696 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12697 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12698 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12700 test -z "$LD" && LD
="$ac_prog"
12703 # If it fails, then pretend we aren't using GCC.
12707 # If it is relative, then search for the first ld in PATH.
12708 with_gnu_ld
=unknown
12711 elif test "$with_gnu_ld" = yes; then
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12713 $as_echo_n "checking for GNU ld... " >&6; }
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12716 $as_echo_n "checking for non-GNU ld... " >&6; }
12718 if test "${lt_cv_path_LD+set}" = set; then :
12719 $as_echo_n "(cached) " >&6
12721 if test -z "$LD"; then
12722 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12723 for ac_dir
in $PATH; do
12725 test -z "$ac_dir" && ac_dir
=.
12726 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12727 lt_cv_path_LD
="$ac_dir/$ac_prog"
12728 # Check to see if the program is GNU ld. I'd rather use --version,
12729 # but apparently some variants of GNU ld only accept -v.
12730 # Break only if it was the GNU/non-GNU ld that we prefer.
12731 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12732 *GNU
* |
*'with BFD'*)
12733 test "$with_gnu_ld" != no
&& break
12736 test "$with_gnu_ld" != yes && break
12743 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12747 LD
="$lt_cv_path_LD"
12748 if test -n "$LD"; then
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12750 $as_echo "$LD" >&6; }
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753 $as_echo "no" >&6; }
12755 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12757 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12758 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12759 $as_echo_n "(cached) " >&6
12761 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12762 case `$LD -v 2>&1 </dev/null` in
12763 *GNU
* |
*'with BFD'*)
12764 lt_cv_prog_gnu_ld
=yes
12767 lt_cv_prog_gnu_ld
=no
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12772 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12773 with_gnu_ld
=$lt_cv_prog_gnu_ld
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12784 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12785 if test "${lt_cv_path_NM+set}" = set; then :
12786 $as_echo_n "(cached) " >&6
12788 if test -n "$NM"; then
12789 # Let the user override the test.
12790 lt_cv_path_NM
="$NM"
12792 lt_nm_to_check
="${ac_tool_prefix}nm"
12793 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12794 lt_nm_to_check
="$lt_nm_to_check nm"
12796 for lt_tmp_nm
in $lt_nm_to_check; do
12797 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12798 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12800 test -z "$ac_dir" && ac_dir
=.
12801 tmp_nm
="$ac_dir/$lt_tmp_nm"
12802 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12803 # Check to see if the nm accepts a BSD-compat flag.
12804 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12805 # nm: unknown option "B" ignored
12806 # Tru64's nm complains that /dev/null is an invalid object file
12807 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12808 */dev
/null
* |
*'Invalid file or object type'*)
12809 lt_cv_path_NM
="$tmp_nm -B"
12813 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12815 lt_cv_path_NM
="$tmp_nm -p"
12819 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12820 continue # so that we can try to find one that supports BSD flags
12829 : ${lt_cv_path_NM=no}
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12833 $as_echo "$lt_cv_path_NM" >&6; }
12834 if test "$lt_cv_path_NM" != "no"; then
12835 NM
="$lt_cv_path_NM"
12837 # Didn't find any BSD compatible name lister, look for dumpbin.
12838 if test -n "$DUMPBIN"; then :
12839 # Let the user override the test.
12841 if test -n "$ac_tool_prefix"; then
12842 for ac_prog
in dumpbin
"link -dump"
12844 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12845 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12847 $as_echo_n "checking for $ac_word... " >&6; }
12848 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12849 $as_echo_n "(cached) " >&6
12851 if test -n "$DUMPBIN"; then
12852 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12854 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12855 for as_dir
in $PATH
12858 test -z "$as_dir" && as_dir
=.
12859 for ac_exec_ext
in '' $ac_executable_extensions; do
12860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12861 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12871 DUMPBIN
=$ac_cv_prog_DUMPBIN
12872 if test -n "$DUMPBIN"; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12874 $as_echo "$DUMPBIN" >&6; }
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12877 $as_echo "no" >&6; }
12881 test -n "$DUMPBIN" && break
12884 if test -z "$DUMPBIN"; then
12885 ac_ct_DUMPBIN
=$DUMPBIN
12886 for ac_prog
in dumpbin
"link -dump"
12888 # Extract the first word of "$ac_prog", so it can be a program name with args.
12889 set dummy
$ac_prog; ac_word
=$2
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12891 $as_echo_n "checking for $ac_word... " >&6; }
12892 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12893 $as_echo_n "(cached) " >&6
12895 if test -n "$ac_ct_DUMPBIN"; then
12896 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12899 for as_dir
in $PATH
12902 test -z "$as_dir" && as_dir
=.
12903 for ac_exec_ext
in '' $ac_executable_extensions; do
12904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12905 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12915 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12916 if test -n "$ac_ct_DUMPBIN"; then
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12918 $as_echo "$ac_ct_DUMPBIN" >&6; }
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921 $as_echo "no" >&6; }
12925 test -n "$ac_ct_DUMPBIN" && break
12928 if test "x$ac_ct_DUMPBIN" = x
; then
12931 case $cross_compiling:$ac_tool_warned in
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12935 ac_tool_warned
=yes ;;
12937 DUMPBIN
=$ac_ct_DUMPBIN
12941 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12943 DUMPBIN
="$DUMPBIN -symbols"
12951 if test "$DUMPBIN" != ":"; then
12955 test -z "$NM" && NM
=nm
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12963 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12964 if test "${lt_cv_nm_interface+set}" = set; then :
12965 $as_echo_n "(cached) " >&6
12967 lt_cv_nm_interface
="BSD nm"
12968 echo "int some_variable = 0;" > conftest.
$ac_ext
12969 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12970 (eval "$ac_compile" 2>conftest.err
)
12971 cat conftest.err
>&5
12972 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12973 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12974 cat conftest.err
>&5
12975 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12976 cat conftest.out
>&5
12977 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12978 lt_cv_nm_interface
="MS dumpbin"
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12983 $as_echo "$lt_cv_nm_interface" >&6; }
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12986 $as_echo_n "checking whether ln -s works... " >&6; }
12988 if test "$LN_S" = "ln -s"; then
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12990 $as_echo "yes" >&6; }
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12993 $as_echo "no, using $LN_S" >&6; }
12996 # find the maximum length of command line arguments
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12998 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12999 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
13000 $as_echo_n "(cached) " >&6
13007 # On DJGPP, this test can blow up pretty badly due to problems in libc
13008 # (any single argument exceeding 2000 bytes causes a buffer overrun
13009 # during glob expansion). Even if it were fixed, the result of this
13010 # check would be larger than it should be.
13011 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
13015 # Under GNU Hurd, this test is not required because there is
13016 # no limit to the length of command line arguments.
13017 # Libtool will interpret -1 as no limit whatsoever
13018 lt_cv_sys_max_cmd_len
=-1;
13021 cygwin
* | mingw
* | cegcc
*)
13022 # On Win9x/ME, this test blows up -- it succeeds, but takes
13023 # about 5 minutes as the teststring grows exponentially.
13024 # Worse, since 9x/ME are not pre-emptively multitasking,
13025 # you end up with a "frozen" computer, even though with patience
13026 # the test eventually succeeds (with a max line length of 256k).
13027 # Instead, let's just punt: use the minimum linelength reported by
13028 # all of the supported platforms: 8192 (on NT/2K/XP).
13029 lt_cv_sys_max_cmd_len
=8192;
13033 # On MiNT this can take a long time and run out of memory.
13034 lt_cv_sys_max_cmd_len
=8192;
13038 # On AmigaOS with pdksh, this test takes hours, literally.
13039 # So we just punt and use a minimum line length of 8192.
13040 lt_cv_sys_max_cmd_len
=8192;
13043 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
13044 # This has been around since 386BSD, at least. Likely further.
13045 if test -x /sbin
/sysctl
; then
13046 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
13047 elif test -x /usr
/sbin
/sysctl
; then
13048 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
13050 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
13052 # And add a safety zone
13053 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13054 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13058 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13059 lt_cv_sys_max_cmd_len
=196608
13063 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13064 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13065 # nice to cause kernel panics so lets avoid the loop below.
13066 # First set a reasonable default.
13067 lt_cv_sys_max_cmd_len
=16384
13069 if test -x /sbin
/sysconfig
; then
13070 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13071 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13076 lt_cv_sys_max_cmd_len
=102400
13078 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13079 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13080 if test -n "$kargmax"; then
13081 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13083 lt_cv_sys_max_cmd_len
=32768
13087 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13088 if test -n "$lt_cv_sys_max_cmd_len"; then
13089 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13090 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13092 # Make teststring a little bigger before we do anything with it.
13093 # a 1K string should be a reasonable start.
13094 for i
in 1 2 3 4 5 6 7 8 ; do
13095 teststring
=$teststring$teststring
13097 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13098 # If test is not a shell built-in, we'll probably end up computing a
13099 # maximum length that is only half of the actual maximum length, but
13101 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13102 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13103 test $i != 17 # 1/2 MB should be enough
13106 teststring
=$teststring$teststring
13108 # Only check the string length outside the loop.
13109 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13111 # Add a significant safety factor because C++ compilers can tack on
13112 # massive amounts of additional arguments before passing them to the
13113 # linker. It appears as though 1/2 is a usable value.
13114 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13121 if test -n $lt_cv_sys_max_cmd_len ; then
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13123 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13126 $as_echo "none" >&6; }
13128 max_cmd_len
=$lt_cv_sys_max_cmd_len
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13140 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13141 # Try some XSI features
13143 ( _lt_dummy
="a/b/c"
13144 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13146 && eval 'test $(( 1 + 1 )) -eq 2 \
13147 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13150 $as_echo "$xsi_shell" >&6; }
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13154 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13156 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13158 && lt_shell_append=yes
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13160 $as_echo "$lt_shell_append" >&6; }
13163 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13173 # test EBCDIC or ASCII
13174 case `echo X|tr X '\101'` in
13175 A) # ASCII based system
13176 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13177 lt_SP2NL='tr \040 \012'
13178 lt_NL2SP='tr \015\012 \040\040'
13180 *) # EBCDIC based system
13181 lt_SP2NL='tr \100 \n'
13182 lt_NL2SP='tr \r\n \100\100'
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13195 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13196 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13197 $as_echo_n "(cached
) " >&6
13199 lt_cv_ld_reload_flag='-r'
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13202 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13203 reload_flag=$lt_cv_ld_reload_flag
13204 case $reload_flag in
13206 *) reload_flag=" $reload_flag" ;;
13208 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13211 if test "$GCC" = yes; then
13212 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13214 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13227 if test -n "$ac_tool_prefix"; then
13228 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13229 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13231 $as_echo_n "checking
for $ac_word...
" >&6; }
13232 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13233 $as_echo_n "(cached
) " >&6
13235 if test -n "$OBJDUMP"; then
13236 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13239 for as_dir in $PATH
13242 test -z "$as_dir" && as_dir=.
13243 for ac_exec_ext in '' $ac_executable_extensions; do
13244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13245 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13246 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13255 OBJDUMP=$ac_cv_prog_OBJDUMP
13256 if test -n "$OBJDUMP"; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13258 $as_echo "$OBJDUMP" >&6; }
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13261 $as_echo "no
" >&6; }
13266 if test -z "$ac_cv_prog_OBJDUMP"; then
13267 ac_ct_OBJDUMP=$OBJDUMP
13268 # Extract the first word of "objdump
", so it can be a program name with args.
13269 set dummy objdump; ac_word=$2
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13271 $as_echo_n "checking
for $ac_word...
" >&6; }
13272 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13273 $as_echo_n "(cached
) " >&6
13275 if test -n "$ac_ct_OBJDUMP"; then
13276 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13279 for as_dir in $PATH
13282 test -z "$as_dir" && as_dir=.
13283 for ac_exec_ext in '' $ac_executable_extensions; do
13284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13285 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13286 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13295 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13296 if test -n "$ac_ct_OBJDUMP"; then
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13298 $as_echo "$ac_ct_OBJDUMP" >&6; }
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13301 $as_echo "no
" >&6; }
13304 if test "x
$ac_ct_OBJDUMP" = x; then
13307 case $cross_compiling:$ac_tool_warned in
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13310 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13311 ac_tool_warned=yes ;;
13313 OBJDUMP=$ac_ct_OBJDUMP
13316 OBJDUMP="$ac_cv_prog_OBJDUMP"
13319 test -z "$OBJDUMP" && OBJDUMP=objdump
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13330 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13331 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13332 $as_echo_n "(cached
) " >&6
13334 lt_cv_file_magic_cmd='$MAGIC_CMD'
13335 lt_cv_file_magic_test_file=
13336 lt_cv_deplibs_check_method='unknown'
13337 # Need to set the preceding variable on all platforms that support
13338 # interlibrary dependencies.
13339 # 'none' -- dependencies not supported.
13340 # `unknown' -- same as none, but documents that we really don't know.
13341 # 'pass_all' -- all dependencies passed with no checks.
13342 # 'test_compile' -- check by making test program.
13343 # 'file_magic [[regex]]' -- check by looking for files in library path
13344 # which responds to the $file_magic_cmd with a given extended regex.
13345 # If you have `file' or equivalent on your system and you're not sure
13346 # whether `pass_all' will *always* work, you probably want this one.
13350 lt_cv_deplibs_check_method=pass_all
13354 lt_cv_deplibs_check_method=pass_all
13358 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13359 lt_cv_file_magic_cmd='/usr/bin/file -L'
13360 lt_cv_file_magic_test_file=/shlib/libc.so
13364 # func_win32_libid is a shell function defined in ltmain.sh
13365 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13366 lt_cv_file_magic_cmd='func_win32_libid'
13370 # Base MSYS/MinGW do not provide the 'file' command needed by
13371 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13372 # unless we find 'file', for example because we are cross-compiling.
13373 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13374 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13375 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13376 lt_cv_file_magic_cmd='func_win32_libid'
13378 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13379 lt_cv_file_magic_cmd='$OBJDUMP -f'
13384 # use the weaker test based on 'objdump'. See mingw*.
13385 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13386 lt_cv_file_magic_cmd='$OBJDUMP -f'
13389 darwin* | rhapsody*)
13390 lt_cv_deplibs_check_method=pass_all
13393 freebsd* | dragonfly*)
13394 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13397 # Not sure whether the presence of OpenBSD here was a mistake.
13398 # Let's accept both of them until this is cleared up.
13399 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13400 lt_cv_file_magic_cmd=/usr/bin/file
13401 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13405 lt_cv_deplibs_check_method=pass_all
13410 lt_cv_deplibs_check_method=pass_all
13414 lt_cv_deplibs_check_method=pass_all
13417 hpux10.20* | hpux11*)
13418 lt_cv_file_magic_cmd=/usr/bin/file
13421 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13422 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13425 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]'
13426 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13429 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13430 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13436 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13440 irix5* | irix6* | nonstopux*)
13442 *-32|*"-32 ") libmagic=32-bit;;
13443 *-n32|*"-n32 ") libmagic=N32;;
13444 *-64|*"-64 ") libmagic=64-bit;;
13445 *) libmagic=never-match;;
13447 lt_cv_deplibs_check_method=pass_all
13450 # This must be Linux ELF.
13451 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13452 lt_cv_deplibs_check_method=pass_all
13456 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13465 lt_cv_file_magic_cmd=/usr/bin/file
13466 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13470 lt_cv_deplibs_check_method=pass_all
13474 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13481 osf3* | osf4* | osf5*)
13482 lt_cv_deplibs_check_method=pass_all
13486 lt_cv_deplibs_check_method=pass_all
13490 lt_cv_deplibs_check_method=pass_all
13493 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13494 lt_cv_deplibs_check_method=pass_all
13498 case $host_vendor in
13500 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]'
13501 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13504 lt_cv_deplibs_check_method=pass_all
13507 lt_cv_file_magic_cmd='/bin/file'
13508 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13511 lt_cv_file_magic_cmd='/bin/file'
13512 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13513 lt_cv_file_magic_test_file=/lib/libc.so
13516 lt_cv_deplibs_check_method=pass_all
13519 lt_cv_deplibs_check_method=pass_all
13525 lt_cv_deplibs_check_method=pass_all
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13531 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13532 file_magic_cmd=$lt_cv_file_magic_cmd
13533 deplibs_check_method=$lt_cv_deplibs_check_method
13534 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13547 if test -n "$ac_tool_prefix"; then
13548 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13549 set dummy ${ac_tool_prefix}ar; ac_word=$2
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13551 $as_echo_n "checking
for $ac_word...
" >&6; }
13552 if test "${ac_cv_prog_AR+set}" = set; then :
13553 $as_echo_n "(cached
) " >&6
13555 if test -n "$AR"; then
13556 ac_cv_prog_AR="$AR" # Let the user override the test.
13558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13559 for as_dir in $PATH
13562 test -z "$as_dir" && as_dir=.
13563 for ac_exec_ext in '' $ac_executable_extensions; do
13564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13565 ac_cv_prog_AR="${ac_tool_prefix}ar"
13566 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13576 if test -n "$AR"; then
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13578 $as_echo "$AR" >&6; }
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13581 $as_echo "no
" >&6; }
13586 if test -z "$ac_cv_prog_AR"; then
13588 # Extract the first word of "ar", so it can be a program name with args.
13589 set dummy ar; ac_word=$2
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13591 $as_echo_n "checking
for $ac_word...
" >&6; }
13592 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13593 $as_echo_n "(cached
) " >&6
13595 if test -n "$ac_ct_AR"; then
13596 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13599 for as_dir in $PATH
13602 test -z "$as_dir" && as_dir=.
13603 for ac_exec_ext in '' $ac_executable_extensions; do
13604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13605 ac_cv_prog_ac_ct_AR="ar"
13606 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13615 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13616 if test -n "$ac_ct_AR"; then
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13618 $as_echo "$ac_ct_AR" >&6; }
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13621 $as_echo "no
" >&6; }
13624 if test "x
$ac_ct_AR" = x; then
13627 case $cross_compiling:$ac_tool_warned in
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13630 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13631 ac_tool_warned=yes ;;
13636 AR="$ac_cv_prog_AR"
13639 test -z "$AR" && AR=ar
13640 test -z "$AR_FLAGS" && AR_FLAGS=cru
13652 if test -n "$ac_tool_prefix"; then
13653 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13654 set dummy ${ac_tool_prefix}strip; ac_word=$2
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13656 $as_echo_n "checking
for $ac_word...
" >&6; }
13657 if test "${ac_cv_prog_STRIP+set}" = set; then :
13658 $as_echo_n "(cached
) " >&6
13660 if test -n "$STRIP"; then
13661 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13664 for as_dir in $PATH
13667 test -z "$as_dir" && as_dir=.
13668 for ac_exec_ext in '' $ac_executable_extensions; do
13669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13670 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13671 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13680 STRIP=$ac_cv_prog_STRIP
13681 if test -n "$STRIP"; then
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13683 $as_echo "$STRIP" >&6; }
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13686 $as_echo "no
" >&6; }
13691 if test -z "$ac_cv_prog_STRIP"; then
13693 # Extract the first word of "strip
", so it can be a program name with args.
13694 set dummy strip; ac_word=$2
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13696 $as_echo_n "checking
for $ac_word...
" >&6; }
13697 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13698 $as_echo_n "(cached
) " >&6
13700 if test -n "$ac_ct_STRIP"; then
13701 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13704 for as_dir in $PATH
13707 test -z "$as_dir" && as_dir=.
13708 for ac_exec_ext in '' $ac_executable_extensions; do
13709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13710 ac_cv_prog_ac_ct_STRIP="strip
"
13711 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13720 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13721 if test -n "$ac_ct_STRIP"; then
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13723 $as_echo "$ac_ct_STRIP" >&6; }
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13726 $as_echo "no
" >&6; }
13729 if test "x
$ac_ct_STRIP" = x; then
13732 case $cross_compiling:$ac_tool_warned in
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13735 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13736 ac_tool_warned=yes ;;
13741 STRIP="$ac_cv_prog_STRIP"
13744 test -z "$STRIP" && STRIP=:
13751 if test -n "$ac_tool_prefix"; then
13752 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13753 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13755 $as_echo_n "checking
for $ac_word...
" >&6; }
13756 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13757 $as_echo_n "(cached
) " >&6
13759 if test -n "$RANLIB"; then
13760 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13763 for as_dir in $PATH
13766 test -z "$as_dir" && as_dir=.
13767 for ac_exec_ext in '' $ac_executable_extensions; do
13768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13769 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13770 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13779 RANLIB=$ac_cv_prog_RANLIB
13780 if test -n "$RANLIB"; then
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13782 $as_echo "$RANLIB" >&6; }
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13785 $as_echo "no
" >&6; }
13790 if test -z "$ac_cv_prog_RANLIB"; then
13791 ac_ct_RANLIB=$RANLIB
13792 # Extract the first word of "ranlib
", so it can be a program name with args.
13793 set dummy ranlib; ac_word=$2
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13795 $as_echo_n "checking
for $ac_word...
" >&6; }
13796 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13797 $as_echo_n "(cached
) " >&6
13799 if test -n "$ac_ct_RANLIB"; then
13800 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13803 for as_dir in $PATH
13806 test -z "$as_dir" && as_dir=.
13807 for ac_exec_ext in '' $ac_executable_extensions; do
13808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13809 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13810 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13819 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13820 if test -n "$ac_ct_RANLIB"; then
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13822 $as_echo "$ac_ct_RANLIB" >&6; }
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13825 $as_echo "no
" >&6; }
13828 if test "x
$ac_ct_RANLIB" = x; then
13831 case $cross_compiling:$ac_tool_warned in
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13834 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13835 ac_tool_warned=yes ;;
13837 RANLIB=$ac_ct_RANLIB
13840 RANLIB="$ac_cv_prog_RANLIB"
13843 test -z "$RANLIB" && RANLIB=:
13850 # Determine commands to create old-style static archives.
13851 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13852 old_postinstall_cmds='chmod 644 $oldlib'
13853 old_postuninstall_cmds=
13855 if test -n "$RANLIB"; then
13858 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13861 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13864 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13869 lock_old_archive_extraction=yes ;;
13871 lock_old_archive_extraction=no ;;
13912 # If no C compiler was specified, use CC.
13915 # If no C compiler flags were specified, use CFLAGS.
13916 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13918 # Allow CC to be a program name with arguments.
13922 # Check for command to grab the raw symbol name followed by C symbol from nm.
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13924 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13925 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13926 $as_echo_n "(cached
) " >&6
13929 # These are sane defaults that work on at least a few old systems.
13930 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13932 # Character class describing NM global symbol codes.
13933 symcode='[BCDEGRST]'
13935 # Regexp to match symbols that can be accessed directly from C.
13936 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13938 # Define system-specific variables.
13943 cygwin* | mingw* | pw32* | cegcc*)
13944 symcode='[ABCDGISTW]'
13947 if test "$host_cpu" = ia64; then
13948 symcode='[ABCDEGRST]'
13951 irix* | nonstopux*)
13952 symcode='[BCDEGRST]'
13955 symcode='[BCDEGQRST]'
13966 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13974 # If we're using GNU nm, then use its standard symbol codes.
13975 case `$NM -V 2>&1` in
13976 *GNU* | *'with BFD'*)
13977 symcode='[ABCDGIRSTW]' ;;
13980 # Transform an extracted symbol line into a proper C declaration.
13981 # Some systems (esp. on ia64) link data and code symbols differently,
13982 # so use this general approach.
13983 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13985 # Transform an extracted symbol line into symbol name and symbol address
13986 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13987 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'"
13989 # Handle CRLF in mingw tool chain
13993 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13997 # Try without a prefix underscore, then with it.
13998 for ac_symprfx in "" "_
"; do
14000 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14001 symxfrm="\\1 $ac_symprfx\\2 \\2"
14003 # Write the raw and C identifiers.
14004 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
14005 # Fake it for dumpbin and say T for any non-static function
14006 # and D for any global variable.
14007 # Also find C++ and __fastcall symbols from MSVC++,
14008 # which start with @ or ?.
14009 lt_cv_sys_global_symbol_pipe="$AWK '"\
14010 " {last_section=section; section=\$ 3};"\
14011 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14012 " \$ 0!~/External *\|/{next};"\
14013 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14014 " {if(hide[section]) next};"\
14015 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14016 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14017 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14018 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14019 " ' prfx
=^
$ac_symprfx"
14021 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14024 # Check to see that the pipe works correctly.
14028 cat > conftest.$ac_ext <<_LT_EOF
14033 void nm_test_func(void);
14034 void nm_test_func(void){}
14038 int main(){nm_test_var='a';nm_test_func();return(0);}
14041 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14042 (eval $ac_compile) 2>&5
14044 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14045 test $ac_status = 0; }; then
14046 # Now try to grab the symbols.
14048 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
14049 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14051 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14052 test $ac_status = 0; } && test -s "$nlist"; then
14053 # Try sorting and uniquifying the output.
14054 if sort "$nlist" | uniq > "$nlist"T; then
14055 mv -f "$nlist"T "$nlist"
14060 # Make sure that we snagged all the symbols we need.
14061 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14062 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14063 cat <<_LT_EOF > conftest.$ac_ext
14069 # Now generate the symbol file.
14070 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14072 cat <<_LT_EOF >> conftest.$ac_ext
14074 /* The mapping between symbol names and symbols. */
14079 lt__PROGRAM__LTX_preloaded_symbols[] =
14081 { "@PROGRAM@
", (void *) 0 },
14083 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14084 cat <<\_LT_EOF >> conftest.$ac_ext
14088 /* This works around a problem in FreeBSD linker */
14089 #ifdef FREEBSD_WORKAROUND
14090 static const void *lt_preloaded_setup() {
14091 return lt__PROGRAM__LTX_preloaded_symbols;
14099 # Now try linking the two files.
14100 mv conftest.$ac_objext conftstm.$ac_objext
14101 lt_save_LIBS="$LIBS"
14102 lt_save_CFLAGS="$CFLAGS"
14103 LIBS="conftstm.
$ac_objext"
14104 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14105 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14106 (eval $ac_link) 2>&5
14108 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14109 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14112 LIBS="$lt_save_LIBS"
14113 CFLAGS="$lt_save_CFLAGS"
14115 echo "cannot
find nm_test_func
in $nlist" >&5
14118 echo "cannot
find nm_test_var
in $nlist" >&5
14121 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14124 echo "$progname: failed program was
:" >&5
14125 cat conftest.$ac_ext >&5
14127 rm -rf conftest* conftst*
14129 # Do not use the global_symbol_pipe unless it works.
14130 if test "$pipe_works" = yes; then
14133 lt_cv_sys_global_symbol_pipe=
14139 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14140 lt_cv_sys_global_symbol_to_cdecl=
14142 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14144 $as_echo "failed
" >&6; }
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14147 $as_echo "ok
" >&6; }
14171 # Check whether --enable-libtool-lock was given.
14172 if test "${enable_libtool_lock+set}" = set; then :
14173 enableval=$enable_libtool_lock;
14176 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14178 # Some flags need to be propagated to the compiler or linker for good
14182 # Find out which ABI we are using.
14183 echo 'int i;' > 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 case `/usr/bin/file conftest.$ac_objext` in
14191 HPUX_IA64_MODE="32"
14194 HPUX_IA64_MODE="64"
14201 # Find out which ABI we are using.
14202 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14203 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14204 (eval $ac_compile) 2>&5
14206 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14207 test $ac_status = 0; }; then
14208 if test "$lt_cv_prog_gnu_ld" = yes; then
14209 case `/usr/bin/file conftest.$ac_objext` in
14211 LD="${LD-ld} -melf32bsmip"
14214 LD="${LD-ld} -melf32bmipn32"
14217 LD="${LD-ld} -melf64bmip"
14221 case `/usr/bin/file conftest.$ac_objext` in
14237 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14238 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14239 # Find out which ABI we are using.
14240 echo 'int i;' > conftest.$ac_ext
14241 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14242 (eval $ac_compile) 2>&5
14244 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14245 test $ac_status = 0; }; then
14246 case `/usr/bin/file conftest.o` in
14249 x86_64-*kfreebsd*-gnu)
14250 LD="${LD-ld} -m elf_i386_fbsd
"
14253 case `/usr/bin/file conftest.o` in
14255 LD="${LD-ld} -m elf32_x86_64
"
14258 LD="${LD-ld} -m elf_i386
"
14262 powerpc64le-*linux*)
14263 LD="${LD-ld} -m elf32lppclinux
"
14266 LD="${LD-ld} -m elf32ppclinux
"
14269 LD="${LD-ld} -m elf_s390
"
14272 LD="${LD-ld} -m elf32_sparc
"
14278 x86_64-*kfreebsd*-gnu)
14279 LD="${LD-ld} -m elf_x86_64_fbsd
"
14282 LD="${LD-ld} -m elf_x86_64
"
14285 LD="${LD-ld} -m elf64lppc
"
14288 LD="${LD-ld} -m elf64ppc
"
14290 s390*-*linux*|s390*-*tpf*)
14291 LD="${LD-ld} -m elf64_s390
"
14294 LD="${LD-ld} -m elf64_sparc
"
14304 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14305 SAVE_CFLAGS="$CFLAGS"
14306 CFLAGS="$CFLAGS -belf"
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14308 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14309 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14310 $as_echo_n "(cached
) " >&6
14313 ac_cpp='$CPP $CPPFLAGS'
14314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14319 /* end confdefs.h. */
14329 if ac_fn_c_try_link "$LINENO"; then :
14330 lt_cv_cc_needs_belf=yes
14332 lt_cv_cc_needs_belf=no
14334 rm -f core conftest.err conftest.$ac_objext \
14335 conftest$ac_exeext conftest.$ac_ext
14337 ac_cpp='$CPP $CPPFLAGS'
14338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14344 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14345 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14346 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14347 CFLAGS="$SAVE_CFLAGS"
14351 # Find out which ABI we are using.
14352 echo 'int i;' > conftest.$ac_ext
14353 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14354 (eval $ac_compile) 2>&5
14356 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14357 test $ac_status = 0; }; then
14358 case `/usr/bin/file conftest.o` in
14360 case $lt_cv_prog_gnu_ld in
14361 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14363 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14375 need_locks="$enable_libtool_lock"
14379 rhapsody* | darwin*)
14380 if test -n "$ac_tool_prefix"; then
14381 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14382 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14384 $as_echo_n "checking
for $ac_word...
" >&6; }
14385 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14386 $as_echo_n "(cached
) " >&6
14388 if test -n "$DSYMUTIL"; then
14389 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14392 for as_dir in $PATH
14395 test -z "$as_dir" && as_dir=.
14396 for ac_exec_ext in '' $ac_executable_extensions; do
14397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14398 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14399 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14408 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14409 if test -n "$DSYMUTIL"; then
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14411 $as_echo "$DSYMUTIL" >&6; }
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14414 $as_echo "no
" >&6; }
14419 if test -z "$ac_cv_prog_DSYMUTIL"; then
14420 ac_ct_DSYMUTIL=$DSYMUTIL
14421 # Extract the first word of "dsymutil
", so it can be a program name with args.
14422 set dummy dsymutil; ac_word=$2
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14424 $as_echo_n "checking
for $ac_word...
" >&6; }
14425 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14426 $as_echo_n "(cached
) " >&6
14428 if test -n "$ac_ct_DSYMUTIL"; then
14429 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14432 for as_dir in $PATH
14435 test -z "$as_dir" && as_dir=.
14436 for ac_exec_ext in '' $ac_executable_extensions; do
14437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14438 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14439 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14448 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14449 if test -n "$ac_ct_DSYMUTIL"; then
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14451 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14454 $as_echo "no
" >&6; }
14457 if test "x
$ac_ct_DSYMUTIL" = x; then
14460 case $cross_compiling:$ac_tool_warned in
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14463 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14464 ac_tool_warned=yes ;;
14466 DSYMUTIL=$ac_ct_DSYMUTIL
14469 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14472 if test -n "$ac_tool_prefix"; then
14473 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14474 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14476 $as_echo_n "checking
for $ac_word...
" >&6; }
14477 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14478 $as_echo_n "(cached
) " >&6
14480 if test -n "$NMEDIT"; then
14481 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14484 for as_dir in $PATH
14487 test -z "$as_dir" && as_dir=.
14488 for ac_exec_ext in '' $ac_executable_extensions; do
14489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14490 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14491 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14500 NMEDIT=$ac_cv_prog_NMEDIT
14501 if test -n "$NMEDIT"; then
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14503 $as_echo "$NMEDIT" >&6; }
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14506 $as_echo "no
" >&6; }
14511 if test -z "$ac_cv_prog_NMEDIT"; then
14512 ac_ct_NMEDIT=$NMEDIT
14513 # Extract the first word of "nmedit
", so it can be a program name with args.
14514 set dummy nmedit; ac_word=$2
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14516 $as_echo_n "checking
for $ac_word...
" >&6; }
14517 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14518 $as_echo_n "(cached
) " >&6
14520 if test -n "$ac_ct_NMEDIT"; then
14521 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14524 for as_dir in $PATH
14527 test -z "$as_dir" && as_dir=.
14528 for ac_exec_ext in '' $ac_executable_extensions; do
14529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14530 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14531 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14540 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14541 if test -n "$ac_ct_NMEDIT"; then
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14543 $as_echo "$ac_ct_NMEDIT" >&6; }
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14546 $as_echo "no
" >&6; }
14549 if test "x
$ac_ct_NMEDIT" = x; then
14552 case $cross_compiling:$ac_tool_warned in
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14555 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14556 ac_tool_warned=yes ;;
14558 NMEDIT=$ac_ct_NMEDIT
14561 NMEDIT="$ac_cv_prog_NMEDIT"
14564 if test -n "$ac_tool_prefix"; then
14565 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14566 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14568 $as_echo_n "checking
for $ac_word...
" >&6; }
14569 if test "${ac_cv_prog_LIPO+set}" = set; then :
14570 $as_echo_n "(cached
) " >&6
14572 if test -n "$LIPO"; then
14573 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14576 for as_dir in $PATH
14579 test -z "$as_dir" && as_dir=.
14580 for ac_exec_ext in '' $ac_executable_extensions; do
14581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14582 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14583 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14592 LIPO=$ac_cv_prog_LIPO
14593 if test -n "$LIPO"; then
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14595 $as_echo "$LIPO" >&6; }
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14598 $as_echo "no
" >&6; }
14603 if test -z "$ac_cv_prog_LIPO"; then
14605 # Extract the first word of "lipo
", so it can be a program name with args.
14606 set dummy lipo; ac_word=$2
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14608 $as_echo_n "checking
for $ac_word...
" >&6; }
14609 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14610 $as_echo_n "(cached
) " >&6
14612 if test -n "$ac_ct_LIPO"; then
14613 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14616 for as_dir in $PATH
14619 test -z "$as_dir" && as_dir=.
14620 for ac_exec_ext in '' $ac_executable_extensions; do
14621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14622 ac_cv_prog_ac_ct_LIPO="lipo
"
14623 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14632 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14633 if test -n "$ac_ct_LIPO"; then
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14635 $as_echo "$ac_ct_LIPO" >&6; }
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14638 $as_echo "no
" >&6; }
14641 if test "x
$ac_ct_LIPO" = x; then
14644 case $cross_compiling:$ac_tool_warned in
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14647 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14648 ac_tool_warned=yes ;;
14653 LIPO="$ac_cv_prog_LIPO"
14656 if test -n "$ac_tool_prefix"; then
14657 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14658 set dummy ${ac_tool_prefix}otool; ac_word=$2
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14660 $as_echo_n "checking
for $ac_word...
" >&6; }
14661 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14662 $as_echo_n "(cached
) " >&6
14664 if test -n "$OTOOL"; then
14665 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14668 for as_dir in $PATH
14671 test -z "$as_dir" && as_dir=.
14672 for ac_exec_ext in '' $ac_executable_extensions; do
14673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14674 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14675 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14684 OTOOL=$ac_cv_prog_OTOOL
14685 if test -n "$OTOOL"; then
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14687 $as_echo "$OTOOL" >&6; }
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14690 $as_echo "no
" >&6; }
14695 if test -z "$ac_cv_prog_OTOOL"; then
14697 # Extract the first word of "otool
", so it can be a program name with args.
14698 set dummy otool; ac_word=$2
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14700 $as_echo_n "checking
for $ac_word...
" >&6; }
14701 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14702 $as_echo_n "(cached
) " >&6
14704 if test -n "$ac_ct_OTOOL"; then
14705 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14708 for as_dir in $PATH
14711 test -z "$as_dir" && as_dir=.
14712 for ac_exec_ext in '' $ac_executable_extensions; do
14713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14714 ac_cv_prog_ac_ct_OTOOL="otool
"
14715 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14724 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14725 if test -n "$ac_ct_OTOOL"; then
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14727 $as_echo "$ac_ct_OTOOL" >&6; }
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14730 $as_echo "no
" >&6; }
14733 if test "x
$ac_ct_OTOOL" = x; then
14736 case $cross_compiling:$ac_tool_warned in
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14739 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14740 ac_tool_warned=yes ;;
14745 OTOOL="$ac_cv_prog_OTOOL"
14748 if test -n "$ac_tool_prefix"; then
14749 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14750 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14752 $as_echo_n "checking
for $ac_word...
" >&6; }
14753 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14754 $as_echo_n "(cached
) " >&6
14756 if test -n "$OTOOL64"; then
14757 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14760 for as_dir in $PATH
14763 test -z "$as_dir" && as_dir=.
14764 for ac_exec_ext in '' $ac_executable_extensions; do
14765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14766 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14767 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14776 OTOOL64=$ac_cv_prog_OTOOL64
14777 if test -n "$OTOOL64"; then
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14779 $as_echo "$OTOOL64" >&6; }
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14782 $as_echo "no
" >&6; }
14787 if test -z "$ac_cv_prog_OTOOL64"; then
14788 ac_ct_OTOOL64=$OTOOL64
14789 # Extract the first word of "otool64
", so it can be a program name with args.
14790 set dummy otool64; ac_word=$2
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14792 $as_echo_n "checking
for $ac_word...
" >&6; }
14793 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14794 $as_echo_n "(cached
) " >&6
14796 if test -n "$ac_ct_OTOOL64"; then
14797 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14800 for as_dir in $PATH
14803 test -z "$as_dir" && as_dir=.
14804 for ac_exec_ext in '' $ac_executable_extensions; do
14805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14806 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14807 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14816 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14817 if test -n "$ac_ct_OTOOL64"; then
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14819 $as_echo "$ac_ct_OTOOL64" >&6; }
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14822 $as_echo "no
" >&6; }
14825 if test "x
$ac_ct_OTOOL64" = x; then
14828 case $cross_compiling:$ac_tool_warned in
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14831 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14832 ac_tool_warned=yes ;;
14834 OTOOL64=$ac_ct_OTOOL64
14837 OTOOL64="$ac_cv_prog_OTOOL64"
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14867 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14868 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14869 $as_echo_n "(cached
) " >&6
14871 lt_cv_apple_cc_single_mod=no
14872 if test -z "${LT_MULTI_MODULE}"; then
14873 # By default we will add the -single_module flag. You can override
14874 # by either setting the environment variable LT_MULTI_MODULE
14875 # non-empty at configure time, or by adding -multi_module to the
14877 rm -rf libconftest.dylib*
14878 echo "int foo
(void
){return 1;}" > conftest.c
14879 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14880 -dynamiclib -Wl,-single_module conftest.c
" >&5
14881 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14882 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14884 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14885 lt_cv_apple_cc_single_mod=yes
14887 cat conftest.err >&5
14889 rm -rf libconftest.dylib*
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14894 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14896 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14897 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14898 $as_echo_n "(cached
) " >&6
14900 lt_cv_ld_exported_symbols_list=no
14901 save_LDFLAGS=$LDFLAGS
14902 echo "_main
" > conftest.sym
14903 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905 /* end confdefs.h. */
14915 if ac_fn_c_try_link "$LINENO"; then :
14916 lt_cv_ld_exported_symbols_list=yes
14918 lt_cv_ld_exported_symbols_list=no
14920 rm -f core conftest.err conftest.$ac_objext \
14921 conftest$ac_exeext conftest.$ac_ext
14922 LDFLAGS="$save_LDFLAGS"
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14926 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14928 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14929 if test "${lt_cv_ld_force_load+set}" = set; then :
14930 $as_echo_n "(cached
) " >&6
14932 lt_cv_ld_force_load=no
14933 cat > conftest.c << _LT_EOF
14934 int forced_loaded() { return 2;}
14936 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14937 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14938 echo "$AR cru libconftest.a conftest.o
" >&5
14939 $AR cru libconftest.a conftest.o 2>&5
14940 cat > conftest.c << _LT_EOF
14941 int main() { return 0;}
14943 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14944 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14946 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14947 lt_cv_ld_force_load=yes
14949 cat conftest.err >&5
14951 rm -f conftest.err libconftest.a conftest conftest.c
14952 rm -rf conftest.dSYM
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14956 $as_echo "$lt_cv_ld_force_load" >&6; }
14958 rhapsody* | darwin1.[012])
14959 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14961 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14962 darwin*) # darwin 5.x on
14963 # if running on 10.5 or later, the deployment target defaults
14964 # to the OS version, if on x86, and 10.4, the deployment
14965 # target defaults to 10.4. Don't you love it?
14966 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14967 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14968 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14970 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14972 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14976 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14977 _lt_dar_single_mod='$single_module'
14979 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14980 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14982 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14984 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14985 _lt_dsymutil='~$DSYMUTIL $lib || :'
14993 for ac_header in dlfcn.h
14995 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14996 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14997 cat >>confdefs.h <<_ACEOF
14998 #define HAVE_DLFCN_H 1
15015 enable_win32_dll=no
15018 # Check whether --enable-shared was given.
15019 if test "${enable_shared+set}" = set; then :
15020 enableval=$enable_shared; p=${PACKAGE-default}
15022 yes) enable_shared=yes ;;
15023 no) enable_shared=no ;;
15026 # Look at the argument we got. We use all the common list separators.
15027 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15028 for pkg in $enableval; do
15030 if test "X
$pkg" = "X
$p"; then
15049 # Check whether --enable-static was given.
15050 if test "${enable_static+set}" = set; then :
15051 enableval=$enable_static; p=${PACKAGE-default}
15053 yes) enable_static=yes ;;
15054 no) enable_static=no ;;
15057 # Look at the argument we got. We use all the common list separators.
15058 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15059 for pkg in $enableval; do
15061 if test "X
$pkg" = "X
$p"; then
15081 # Check whether --with-pic was given.
15082 if test "${with_pic+set}" = set; then :
15083 withval=$with_pic; pic_mode="$withval"
15089 test -z "$pic_mode" && pic_mode=default
15097 # Check whether --enable-fast-install was given.
15098 if test "${enable_fast_install+set}" = set; then :
15099 enableval=$enable_fast_install; p=${PACKAGE-default}
15101 yes) enable_fast_install=yes ;;
15102 no) enable_fast_install=no ;;
15104 enable_fast_install=no
15105 # Look at the argument we got. We use all the common list separators.
15106 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15107 for pkg in $enableval; do
15109 if test "X
$pkg" = "X
$p"; then
15110 enable_fast_install=yes
15117 enable_fast_install=yes
15130 # This can be used to rebuild libtool when needed
15131 LIBTOOL_DEPS="$ltmain"
15133 # Always use our own libtool.
15134 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15161 test -z "$LN_S" && LN_S="ln -s"
15176 if test -n "${ZSH_VERSION+set}" ; then
15177 setopt NO_GLOB_SUBST
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15181 $as_echo_n "checking
for objdir...
" >&6; }
15182 if test "${lt_cv_objdir+set}" = set; then :
15183 $as_echo_n "(cached
) " >&6
15185 rm -f .libs 2>/dev/null
15186 mkdir .libs 2>/dev/null
15187 if test -d .libs; then
15190 # MS-DOS does not allow filenames that begin with a dot.
15193 rmdir .libs 2>/dev/null
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15196 $as_echo "$lt_cv_objdir" >&6; }
15197 objdir=$lt_cv_objdir
15203 cat >>confdefs.h <<_ACEOF
15204 #define LT_OBJDIR "$lt_cv_objdir/"
15212 # AIX sometimes has problems with the GCC collect2 program. For some
15213 # reason, if we set the COLLECT_NAMES environment variable, the problems
15214 # vanish in a puff of smoke.
15215 if test "X
${COLLECT_NAMES+set}" != Xset; then
15217 export COLLECT_NAMES
15222 # Global variables:
15224 can_build_shared=yes
15226 # All known linkers require a `.a' archive for static linking (except MSVC,
15227 # which needs '.lib').
15230 with_gnu_ld="$lt_cv_prog_gnu_ld"
15233 old_CFLAGS="$CFLAGS"
15235 # Set sane defaults for various variables
15236 test -z "$CC" && CC=cc
15237 test -z "$LTCC" && LTCC=$CC
15238 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15239 test -z "$LD" && LD=ld
15240 test -z "$ac_objext" && ac_objext=o
15242 for cc_temp in $compiler""; do
15244 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15245 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15250 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15253 # Only perform the check for file, if the check method requires it
15254 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15255 case $deplibs_check_method in
15257 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15259 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15260 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15261 $as_echo_n "(cached
) " >&6
15265 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15268 lt_save_MAGIC_CMD="$MAGIC_CMD"
15269 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15270 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15271 for ac_dir in $ac_dummy; do
15273 test -z "$ac_dir" && ac_dir=.
15274 if test -f $ac_dir/${ac_tool_prefix}file; then
15275 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15276 if test -n "$file_magic_test_file"; then
15277 case $deplibs_check_method in
15279 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15280 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15281 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15282 $EGREP "$file_magic_regex" > /dev/null; then
15287 *** Warning: the command libtool uses to detect shared libraries,
15288 *** $file_magic_cmd, produces output that libtool cannot recognize.
15289 *** The result is that libtool may fail to recognize shared libraries
15290 *** as such. This will affect the creation of libtool libraries that
15291 *** depend on shared libraries, but programs linked with such libtool
15292 *** libraries will work regardless of this problem. Nevertheless, you
15293 *** may want to report the problem to your system manager and/or to
15294 *** bug-libtool@gnu.org
15304 MAGIC_CMD="$lt_save_MAGIC_CMD"
15309 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15310 if test -n "$MAGIC_CMD"; then
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15312 $as_echo "$MAGIC_CMD" >&6; }
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15315 $as_echo "no
" >&6; }
15322 if test -z "$lt_cv_path_MAGIC_CMD"; then
15323 if test -n "$ac_tool_prefix"; then
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15325 $as_echo_n "checking
for file...
" >&6; }
15326 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15327 $as_echo_n "(cached
) " >&6
15331 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15334 lt_save_MAGIC_CMD="$MAGIC_CMD"
15335 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15336 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15337 for ac_dir in $ac_dummy; do
15339 test -z "$ac_dir" && ac_dir=.
15340 if test -f $ac_dir/file; then
15341 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15342 if test -n "$file_magic_test_file"; then
15343 case $deplibs_check_method in
15345 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15346 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15347 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15348 $EGREP "$file_magic_regex" > /dev/null; then
15353 *** Warning: the command libtool uses to detect shared libraries,
15354 *** $file_magic_cmd, produces output that libtool cannot recognize.
15355 *** The result is that libtool may fail to recognize shared libraries
15356 *** as such. This will affect the creation of libtool libraries that
15357 *** depend on shared libraries, but programs linked with such libtool
15358 *** libraries will work regardless of this problem. Nevertheless, you
15359 *** may want to report the problem to your system manager and/or to
15360 *** bug-libtool@gnu.org
15370 MAGIC_CMD="$lt_save_MAGIC_CMD"
15375 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15376 if test -n "$MAGIC_CMD"; then
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15378 $as_echo "$MAGIC_CMD" >&6; }
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15381 $as_echo "no
" >&6; }
15394 # Use C for the default configuration in the libtool script
15398 ac_cpp='$CPP $CPPFLAGS'
15399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15404 # Source file extension for C test sources.
15407 # Object file extension for compiled C test sources.
15411 # Code to be used in simple compile tests
15412 lt_simple_compile_test_code="int some_variable
= 0;"
15414 # Code to be used in simple link tests
15415 lt_simple_link_test_code='int main(){return(0);}'
15423 # If no C compiler was specified, use CC.
15426 # If no C compiler flags were specified, use CFLAGS.
15427 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15429 # Allow CC to be a program name with arguments.
15432 # Save the default compiler, since it gets overwritten when the other
15433 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15434 compiler_DEFAULT=$CC
15436 # save warnings/boilerplate of simple test code
15437 ac_outfile=conftest.$ac_objext
15438 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15439 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15440 _lt_compiler_boilerplate=`cat conftest.err`
15443 ac_outfile=conftest.$ac_objext
15444 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15445 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15446 _lt_linker_boilerplate=`cat conftest.err`
15451 ## There is no encapsulation within the following macros, do not change
15452 ## the running order or otherwise move them around unless you know exactly
15453 ## what you are doing...
15454 if test -n "$compiler"; then
15456 lt_prog_compiler_no_builtin_flag=
15458 if test "$GCC" = yes; then
15459 case $cc_basename in
15461 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15463 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15467 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15468 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15469 $as_echo_n "(cached
) " >&6
15471 lt_cv_prog_compiler_rtti_exceptions=no
15472 ac_outfile=conftest.$ac_objext
15473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15474 lt_compiler_flag="-fno-rtti -fno-exceptions"
15475 # Insert the option either (1) after the last *FLAGS variable, or
15476 # (2) before a word containing "conftest.
", or (3) at the end.
15477 # Note that $ac_compile itself does not contain backslashes and begins
15478 # with a dollar sign (not a hyphen), so the echo should work correctly.
15479 # The option is referenced via a variable to avoid confusing sed.
15480 lt_compile=`echo "$ac_compile" | $SED \
15481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15483 -e 's:$: $lt_compiler_flag:'`
15484 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15485 (eval "$lt_compile" 2>conftest.err)
15487 cat conftest.err >&5
15488 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15489 if (exit $ac_status) && test -s "$ac_outfile"; then
15490 # The compiler can only warn and ignore the option if not recognized
15491 # So say no if there are warnings other than the usual output.
15492 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15494 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15495 lt_cv_prog_compiler_rtti_exceptions=yes
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15502 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15504 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15505 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15517 lt_prog_compiler_wl=
15518 lt_prog_compiler_pic=
15519 lt_prog_compiler_static=
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15522 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15524 if test "$GCC" = yes; then
15525 lt_prog_compiler_wl='-Wl,'
15526 lt_prog_compiler_static='-static'
15530 # All AIX code is PIC.
15531 if test "$host_cpu" = ia64; then
15532 # AIX 5 now supports IA64 processor
15533 lt_prog_compiler_static='-Bstatic'
15535 lt_prog_compiler_pic='-fPIC'
15541 # see comment about AmigaOS4 .so support
15542 lt_prog_compiler_pic='-fPIC'
15545 # FIXME: we need at least 68020 code to build shared libraries, but
15546 # adding the `-m68020' flag to GCC prevents building anything better,
15548 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15553 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15554 # PIC is the default for these OSes.
15557 mingw* | cygwin* | pw32* | os2* | cegcc*)
15558 # This hack is so that the source file can tell whether it is being
15559 # built for inclusion in a dll (and should export symbols for example).
15560 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15561 # (--disable-auto-import) libraries
15562 lt_prog_compiler_pic='-DDLL_EXPORT'
15565 darwin* | rhapsody*)
15566 # PIC is the default on this platform
15567 # Common symbols not allowed in MH_DYLIB files
15568 lt_prog_compiler_pic='-fno-common'
15572 # PIC is the default for Haiku.
15573 # The "-static" flag exists, but is broken.
15574 lt_prog_compiler_static=
15578 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15579 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15580 # sets the default TLS model and affects inlining.
15586 lt_prog_compiler_pic='-fPIC'
15592 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15593 # Instead, we relocate shared libraries at runtime.
15597 # Just because we use GCC doesn't mean we suddenly get shared libraries
15598 # on systems that don't support them.
15599 lt_prog_compiler_can_build_shared=no
15604 # QNX uses GNU C++, but need to define -shared option too, otherwise
15605 # it will coredump.
15606 lt_prog_compiler_pic='-fPIC -shared'
15610 if test -d /usr/nec; then
15611 lt_prog_compiler_pic=-Kconform_pic
15616 lt_prog_compiler_pic='-fPIC'
15620 case $cc_basename in
15621 nvcc*) # Cuda Compiler Driver 2.2
15622 lt_prog_compiler_wl='-Xlinker '
15623 lt_prog_compiler_pic='-Xcompiler -fPIC'
15627 # PORTME Check for flag to pass linker flags through the system compiler.
15630 lt_prog_compiler_wl='-Wl,'
15631 if test "$host_cpu" = ia64; then
15632 # AIX 5 now supports IA64 processor
15633 lt_prog_compiler_static='-Bstatic'
15635 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15639 mingw* | cygwin* | pw32* | os2* | cegcc*)
15640 # This hack is so that the source file can tell whether it is being
15641 # built for inclusion in a dll (and should export symbols for example).
15642 lt_prog_compiler_pic='-DDLL_EXPORT'
15645 hpux9* | hpux10* | hpux11*)
15646 lt_prog_compiler_wl='-Wl,'
15647 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15648 # not for PA HP-UX.
15654 lt_prog_compiler_pic='+Z'
15657 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15658 lt_prog_compiler_static='${wl}-a ${wl}archive'
15661 irix5* | irix6* | nonstopux*)
15662 lt_prog_compiler_wl='-Wl,'
15663 # PIC (with -KPIC) is the default.
15664 lt_prog_compiler_static='-non_shared'
15667 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15668 case $cc_basename in
15669 # old Intel for x86_64 which still supported -KPIC.
15671 lt_prog_compiler_wl='-Wl,'
15672 lt_prog_compiler_pic='-KPIC'
15673 lt_prog_compiler_static='-static'
15675 # icc used to be incompatible with GCC.
15676 # ICC 10 doesn't accept -KPIC any more.
15678 lt_prog_compiler_wl='-Wl,'
15679 lt_prog_compiler_pic='-fPIC'
15680 lt_prog_compiler_static='-static'
15682 # Lahey Fortran 8.1.
15684 lt_prog_compiler_wl='-Wl,'
15685 lt_prog_compiler_pic='--shared'
15686 lt_prog_compiler_static='--static'
15688 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15689 # Portland Group compilers (*not* the Pentium gcc compiler,
15690 # which looks to be a dead project)
15691 lt_prog_compiler_wl='-Wl,'
15692 lt_prog_compiler_pic='-fpic'
15693 lt_prog_compiler_static='-Bstatic'
15696 lt_prog_compiler_wl='-Wl,'
15697 # All Alpha code is PIC.
15698 lt_prog_compiler_static='-non_shared'
15700 xl* | bgxl* | bgf* | mpixl*)
15701 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15702 lt_prog_compiler_wl='-Wl,'
15703 lt_prog_compiler_pic='-qpic'
15704 lt_prog_compiler_static='-qstaticlink'
15707 case `$CC -V 2>&1 | sed 5q` in
15708 *Sun\ F* | *Sun*Fortran*)
15709 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15710 lt_prog_compiler_pic='-KPIC'
15711 lt_prog_compiler_static='-Bstatic'
15712 lt_prog_compiler_wl=''
15716 lt_prog_compiler_pic='-KPIC'
15717 lt_prog_compiler_static='-Bstatic'
15718 lt_prog_compiler_wl='-Wl,'
15726 lt_prog_compiler_pic='-KPIC'
15727 lt_prog_compiler_static='-Bstatic'
15731 # QNX uses GNU C++, but need to define -shared option too, otherwise
15732 # it will coredump.
15733 lt_prog_compiler_pic='-fPIC -shared'
15736 osf3* | osf4* | osf5*)
15737 lt_prog_compiler_wl='-Wl,'
15738 # All OSF/1 code is PIC.
15739 lt_prog_compiler_static='-non_shared'
15743 lt_prog_compiler_static='-non_shared'
15747 lt_prog_compiler_pic='-KPIC'
15748 lt_prog_compiler_static='-Bstatic'
15749 case $cc_basename in
15750 f77* | f90* | f95*)
15751 lt_prog_compiler_wl='-Qoption ld ';;
15753 lt_prog_compiler_wl='-Wl,';;
15758 lt_prog_compiler_wl='-Qoption ld '
15759 lt_prog_compiler_pic='-PIC'
15760 lt_prog_compiler_static='-Bstatic'
15763 sysv4 | sysv4.2uw2* | sysv4.3*)
15764 lt_prog_compiler_wl='-Wl,'
15765 lt_prog_compiler_pic='-KPIC'
15766 lt_prog_compiler_static='-Bstatic'
15770 if test -d /usr/nec ;then
15771 lt_prog_compiler_pic='-Kconform_pic'
15772 lt_prog_compiler_static='-Bstatic'
15776 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15777 lt_prog_compiler_wl='-Wl,'
15778 lt_prog_compiler_pic='-KPIC'
15779 lt_prog_compiler_static='-Bstatic'
15783 lt_prog_compiler_wl='-Wl,'
15784 lt_prog_compiler_can_build_shared=no
15788 lt_prog_compiler_pic='-pic'
15789 lt_prog_compiler_static='-Bstatic'
15793 lt_prog_compiler_can_build_shared=no
15799 # For platforms which do not support PIC, -DPIC is meaningless:
15801 lt_prog_compiler_pic=
15804 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15808 $as_echo "$lt_prog_compiler_pic" >&6; }
15816 # Check to make sure the PIC flag actually works.
15818 if test -n "$lt_prog_compiler_pic"; then
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15820 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15821 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15822 $as_echo_n "(cached
) " >&6
15824 lt_cv_prog_compiler_pic_works=no
15825 ac_outfile=conftest.$ac_objext
15826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15827 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15828 # Insert the option either (1) after the last *FLAGS variable, or
15829 # (2) before a word containing "conftest.
", or (3) at the end.
15830 # Note that $ac_compile itself does not contain backslashes and begins
15831 # with a dollar sign (not a hyphen), so the echo should work correctly.
15832 # The option is referenced via a variable to avoid confusing sed.
15833 lt_compile=`echo "$ac_compile" | $SED \
15834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15836 -e 's:$: $lt_compiler_flag:'`
15837 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15838 (eval "$lt_compile" 2>conftest.err)
15840 cat conftest.err >&5
15841 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15842 if (exit $ac_status) && test -s "$ac_outfile"; then
15843 # The compiler can only warn and ignore the option if not recognized
15844 # So say no if there are warnings other than the usual output.
15845 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15847 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15848 lt_cv_prog_compiler_pic_works=yes
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15855 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15857 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15858 case $lt_prog_compiler_pic in
15860 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15863 lt_prog_compiler_pic=
15864 lt_prog_compiler_can_build_shared=no
15875 # Check to make sure the static flag actually works.
15877 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15879 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15880 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15881 $as_echo_n "(cached
) " >&6
15883 lt_cv_prog_compiler_static_works=no
15884 save_LDFLAGS="$LDFLAGS"
15885 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15886 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15887 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15888 # The linker can only warn and ignore the option if not recognized
15889 # So say no if there are warnings
15890 if test -s conftest.err; then
15891 # Append any errors to the config.log.
15892 cat conftest.err 1>&5
15893 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15894 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15895 if diff conftest.exp conftest.er2 >/dev/null; then
15896 lt_cv_prog_compiler_static_works=yes
15899 lt_cv_prog_compiler_static_works=yes
15903 LDFLAGS="$save_LDFLAGS"
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15907 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15909 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15912 lt_prog_compiler_static=
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15922 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15923 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15924 $as_echo_n "(cached
) " >&6
15926 lt_cv_prog_compiler_c_o=no
15927 $RM -r conftest 2>/dev/null
15931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15933 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15934 # Insert the option either (1) after the last *FLAGS variable, or
15935 # (2) before a word containing "conftest.
", or (3) at the end.
15936 # Note that $ac_compile itself does not contain backslashes and begins
15937 # with a dollar sign (not a hyphen), so the echo should work correctly.
15938 lt_compile=`echo "$ac_compile" | $SED \
15939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15941 -e 's:$: $lt_compiler_flag:'`
15942 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15943 (eval "$lt_compile" 2>out/conftest.err)
15945 cat out/conftest.err >&5
15946 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15947 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15949 # The compiler can only warn and ignore the option if not recognized
15950 # So say no if there are warnings
15951 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15952 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15953 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15954 lt_cv_prog_compiler_c_o=yes
15959 # SGI C++ compiler will create directory out/ii_files/ for
15960 # template instantiation
15961 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15962 $RM out/* && rmdir out
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15969 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15977 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15978 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15979 $as_echo_n "(cached
) " >&6
15981 lt_cv_prog_compiler_c_o=no
15982 $RM -r conftest 2>/dev/null
15986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15988 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15989 # Insert the option either (1) after the last *FLAGS variable, or
15990 # (2) before a word containing "conftest.
", or (3) at the end.
15991 # Note that $ac_compile itself does not contain backslashes and begins
15992 # with a dollar sign (not a hyphen), so the echo should work correctly.
15993 lt_compile=`echo "$ac_compile" | $SED \
15994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15996 -e 's:$: $lt_compiler_flag:'`
15997 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15998 (eval "$lt_compile" 2>out/conftest.err)
16000 cat out/conftest.err >&5
16001 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16002 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16004 # The compiler can only warn and ignore the option if not recognized
16005 # So say no if there are warnings
16006 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16007 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16008 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16009 lt_cv_prog_compiler_c_o=yes
16014 # SGI C++ compiler will create directory out/ii_files/ for
16015 # template instantiation
16016 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16017 $RM out/* && rmdir out
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16024 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16029 hard_links="nottested
"
16030 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16031 # do not overwrite the value of need_locks provided by the user
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
16033 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
16036 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16038 ln conftest.a conftest.b 2>&5 || hard_links=no
16039 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
16041 $as_echo "$hard_links" >&6; }
16042 if test "$hard_links" = no; then
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
16044 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16057 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16060 allow_undefined_flag=
16061 always_export_symbols=no
16063 archive_expsym_cmds=
16064 compiler_needs_object=no
16065 enable_shared_with_static_runtimes=no
16066 export_dynamic_flag_spec=
16067 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16068 hardcode_automatic=no
16070 hardcode_direct_absolute=no
16071 hardcode_libdir_flag_spec=
16072 hardcode_libdir_flag_spec_ld=
16073 hardcode_libdir_separator=
16074 hardcode_minus_L=no
16075 hardcode_shlibpath_var=unsupported
16077 link_all_deplibs=unknown
16079 module_expsym_cmds=
16080 old_archive_from_new_cmds=
16081 old_archive_from_expsyms_cmds=
16082 thread_safe_flag_spec=
16083 whole_archive_flag_spec=
16084 # include_expsyms should be a list of space-separated symbols to be *always*
16085 # included in the symbol list
16087 # exclude_expsyms can be an extended regexp of symbols to exclude
16088 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16089 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16090 # as well as any symbol that contains `d'.
16091 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16092 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16093 # platforms (ab)use it in PIC code, but their linkers get confused if
16094 # the symbol is explicitly referenced. Since portable code cannot
16095 # rely on this symbol name, it's probably fine to never include it in
16096 # preloaded symbol tables.
16097 # Exclude shared library initialization/finalization symbols.
16098 extract_expsyms_cmds=
16101 cygwin* | mingw* | pw32* | cegcc*)
16102 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16103 # When not using gcc, we currently assume that we are using
16104 # Microsoft Visual C++.
16105 if test "$GCC" != yes; then
16110 # we just hope/assume this is gcc and not c89 (= MSVC++)
16120 # On some targets, GNU ld is compatible enough with the native linker
16121 # that we're better off using the native interface for both.
16122 lt_use_gnu_ld_interface=no
16123 if test "$with_gnu_ld" = yes; then
16126 # The AIX port of GNU ld has always aspired to compatibility
16127 # with the native linker. However, as the warning in the GNU ld
16128 # block says, versions before 2.19.5* couldn't really create working
16129 # shared libraries, regardless of the interface used.
16130 case `$LD -v 2>&1` in
16131 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16132 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16133 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16135 lt_use_gnu_ld_interface=yes
16140 lt_use_gnu_ld_interface=yes
16145 if test "$lt_use_gnu_ld_interface" = yes; then
16146 # If archive_cmds runs LD, not CC, wlarc should be empty
16149 # Set some defaults for GNU ld with shared library support. These
16150 # are reset later if shared libraries are not supported. Putting them
16151 # here allows them to be overridden if necessary.
16152 runpath_var=LD_RUN_PATH
16153 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16154 export_dynamic_flag_spec='${wl}--export-dynamic'
16155 # ancient GNU ld didn't support --whole-archive et. al.
16156 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16157 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16159 whole_archive_flag_spec=
16161 supports_anon_versioning=no
16162 case `$LD -v 2>&1` in
16163 *GNU\ gold*) supports_anon_versioning=yes ;;
16164 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16165 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16166 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16167 *\ 2.11.*) ;; # other 2.11 versions
16168 *) supports_anon_versioning=yes ;;
16171 # See if GNU ld supports shared libraries.
16174 # On AIX/PPC, the GNU linker is very broken
16175 if test "$host_cpu" != ia64; then
16179 *** Warning: the GNU linker, at least up to release 2.19, is reported
16180 *** to be unable to reliably create shared libraries on AIX.
16181 *** Therefore, libtool is disabling shared libraries support. If you
16182 *** really care for shared libraries, you may want to install binutils
16183 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16184 *** You will then need to restart the configuration process.
16193 # see comment about AmigaOS4 .so support
16194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16195 archive_expsym_cmds=''
16198 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)'
16199 hardcode_libdir_flag_spec
='-L$libdir'
16200 hardcode_minus_L
=yes
16206 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16207 allow_undefined_flag
=unsupported
16208 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16209 # support --undefined. This deserves some investigation. FIXME
16210 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16216 cygwin
* | mingw
* | pw32
* | cegcc
*)
16217 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16218 # as there is no search path for DLLs.
16219 hardcode_libdir_flag_spec
='-L$libdir'
16220 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16221 allow_undefined_flag
=unsupported
16222 always_export_symbols
=no
16223 enable_shared_with_static_runtimes
=yes
16224 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16226 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16227 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16228 # If the export-symbols file already is a .def file (1st line
16229 # is EXPORTS), use it as is; otherwise, prepend...
16230 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16231 cp $export_symbols $output_objdir/$soname.def;
16233 echo EXPORTS > $output_objdir/$soname.def;
16234 cat $export_symbols >> $output_objdir/$soname.def;
16236 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16243 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16244 link_all_deplibs
=yes
16249 hardcode_shlibpath_var
=no
16250 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16251 export_dynamic_flag_spec
='${wl}-E'
16252 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16253 # Instead, shared libraries are loaded at an image base (0x10000000 by
16254 # default) and relocated if they conflict, which is a slow very memory
16255 # consuming and fragmenting process. To avoid this, we pick a random,
16256 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16257 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16258 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16259 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'
16262 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16264 if test "$host_os" = linux-dietlibc
; then
16265 case $cc_basename in
16266 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16269 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16270 && test "$tmp_diet" = no
16272 tmp_addflag
=' $pic_flag'
16273 tmp_sharedflag
='-shared'
16274 case $cc_basename,$host_cpu in
16275 pgcc
*) # Portland Group C compiler
16276 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'
16277 tmp_addflag
=' $pic_flag'
16279 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16280 # Portland Group f77 and f90 compilers
16281 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'
16282 tmp_addflag
=' $pic_flag -Mnomain' ;;
16283 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16284 tmp_addflag
=' -i_dynamic' ;;
16285 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16286 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16287 ifc
* | ifort
*) # Intel Fortran compiler
16288 tmp_addflag
=' -nofor_main' ;;
16289 lf95
*) # Lahey Fortran 8.1
16290 whole_archive_flag_spec
=
16291 tmp_sharedflag
='--shared' ;;
16292 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16293 tmp_sharedflag
='-qmkshrobj'
16295 nvcc
*) # Cuda Compiler Driver 2.2
16296 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'
16297 compiler_needs_object
=yes
16300 case `$CC -V 2>&1 | sed 5q` in
16301 *Sun\ C
*) # Sun C 5.9
16302 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'
16303 compiler_needs_object
=yes
16304 tmp_sharedflag
='-G' ;;
16305 *Sun\ F
*) # Sun Fortran 8.3
16306 tmp_sharedflag
='-G' ;;
16308 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16310 if test "x$supports_anon_versioning" = xyes
; then
16311 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16312 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16313 echo "local: *; };" >> $output_objdir/$libname.ver~
16314 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16317 case $cc_basename in
16318 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16319 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16320 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16321 hardcode_libdir_flag_spec
=
16322 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16323 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16324 if test "x$supports_anon_versioning" = xyes
; then
16325 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16326 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16327 echo "local: *; };" >> $output_objdir/$libname.ver~
16328 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16338 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16339 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
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'
16348 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16352 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16353 *** create shared libraries on Solaris systems. Therefore, libtool
16354 *** is disabling shared libraries support. We urge you to upgrade GNU
16355 *** binutils to release 2.9.1 or newer. Another option is to modify
16356 *** your PATH or compiler configuration so that the native linker is
16357 *** used, and then restart.
16360 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16361 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16362 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16368 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16369 case `$LD -v 2>&1` in
16370 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16374 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16375 *** reliably create shared libraries on SCO systems. Therefore, libtool
16376 *** is disabling shared libraries support. We urge you to upgrade GNU
16377 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16378 *** your PATH or compiler configuration so that the native linker is
16379 *** used, and then restart.
16384 # For security reasons, it is highly recommended that you always
16385 # use absolute paths for naming shared libraries, and exclude the
16386 # DT_RUNPATH tag from executables and libraries. But doing so
16387 # requires that you compile everything twice, which is a pain.
16388 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16389 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16390 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16391 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16400 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16402 hardcode_direct
=yes
16403 hardcode_shlibpath_var
=no
16407 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16408 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16409 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16416 if test "$ld_shlibs" = no
; then
16418 hardcode_libdir_flag_spec
=
16419 export_dynamic_flag_spec
=
16420 whole_archive_flag_spec
=
16423 # PORTME fill in a description of your system's linker (not GNU ld)
16426 allow_undefined_flag
=unsupported
16427 always_export_symbols
=yes
16428 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'
16429 # Note: this linker hardcodes the directories in LIBPATH if there
16430 # are no directories specified by -L.
16431 hardcode_minus_L
=yes
16432 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16433 # Neither direct hardcoding nor static linking is supported with a
16435 hardcode_direct
=unsupported
16440 if test "$host_cpu" = ia64
; then
16441 # On IA64, the linker does run time linking by default, so we don't
16442 # have to do anything special.
16443 aix_use_runtimelinking
=no
16444 exp_sym_flag
='-Bexport'
16447 # If we're using GNU nm, then we don't want the "-C" option.
16448 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16449 # Also, AIX nm treats weak defined symbols like other global
16450 # defined symbols, whereas GNU nm marks them as "W".
16451 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16452 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'
16454 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'
16456 aix_use_runtimelinking
=no
16458 # Test if we are trying to use run time linking or normal
16459 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16460 # need to do runtime linking.
16461 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16462 for ld_flag
in $LDFLAGS; do
16463 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16464 aix_use_runtimelinking
=yes
16471 exp_sym_flag
='-bexport'
16472 no_entry_flag
='-bnoentry'
16475 # When large executables or shared objects are built, AIX ld can
16476 # have problems creating the table of contents. If linking a library
16477 # or program results in "error TOC overflow" add -mminimal-toc to
16478 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16479 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16482 hardcode_direct
=yes
16483 hardcode_direct_absolute
=yes
16484 hardcode_libdir_separator
=':'
16485 link_all_deplibs
=yes
16486 file_list_spec
='${wl}-f,'
16488 if test "$GCC" = yes; then
16489 case $host_os in aix4.
[012]|aix4.
[012].
*)
16490 # We only want to do this on AIX 4.2 and lower, the check
16491 # below for broken collect2 doesn't work under 4.3+
16492 collect2name
=`${CC} -print-prog-name=collect2`
16493 if test -f "$collect2name" &&
16494 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16496 # We have reworked collect2
16499 # We have old collect2
16500 hardcode_direct
=unsupported
16501 # It fails to find uninstalled libraries when the uninstalled
16502 # path is not listed in the libpath. Setting hardcode_minus_L
16503 # to unsupported forces relinking
16504 hardcode_minus_L
=yes
16505 hardcode_libdir_flag_spec
='-L$libdir'
16506 hardcode_libdir_separator
=
16510 shared_flag
='-shared'
16511 if test "$aix_use_runtimelinking" = yes; then
16512 shared_flag
="$shared_flag "'${wl}-G'
16516 if test "$host_cpu" = ia64
; then
16517 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16518 # chokes on -Wl,-G. The following line is correct:
16521 if test "$aix_use_runtimelinking" = yes; then
16522 shared_flag
='${wl}-G'
16524 shared_flag
='${wl}-bM:SRE'
16529 export_dynamic_flag_spec
='${wl}-bexpall'
16530 # It seems that -bexpall does not export symbols beginning with
16531 # underscore (_), so it is better to generate a list of symbols to export.
16532 always_export_symbols
=yes
16533 if test "$aix_use_runtimelinking" = yes; then
16534 # Warning - without using the other runtime loading flags (-brtl),
16535 # -berok will link without error, but may produce a broken library.
16536 allow_undefined_flag
='-berok'
16537 # Determine the default libpath from the value encoded in an
16538 # empty executable.
16539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16540 /* end confdefs.h. */
16550 if ac_fn_c_try_link
"$LINENO"; then :
16552 lt_aix_libpath_sed
='
16553 /Import File Strings/,/^$/ {
16559 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16560 # Check for a 64-bit object if we didn't find anything.
16561 if test -z "$aix_libpath"; then
16562 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16565 rm -f core conftest.err conftest.
$ac_objext \
16566 conftest
$ac_exeext conftest.
$ac_ext
16567 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16569 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16570 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"
16572 if test "$host_cpu" = ia64
; then
16573 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16574 allow_undefined_flag
="-z nodefs"
16575 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"
16577 # Determine the default libpath from the value encoded in an
16578 # empty executable.
16579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16580 /* end confdefs.h. */
16590 if ac_fn_c_try_link
"$LINENO"; then :
16592 lt_aix_libpath_sed
='
16593 /Import File Strings/,/^$/ {
16599 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16600 # Check for a 64-bit object if we didn't find anything.
16601 if test -z "$aix_libpath"; then
16602 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16605 rm -f core conftest.err conftest.
$ac_objext \
16606 conftest
$ac_exeext conftest.
$ac_ext
16607 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16609 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16610 # Warning - without using the other run time loading flags,
16611 # -berok will link without error, but may produce a broken library.
16612 no_undefined_flag
=' ${wl}-bernotok'
16613 allow_undefined_flag
=' ${wl}-berok'
16614 if test "$with_gnu_ld" = yes; then
16615 # We only use this code for GNU lds that support --whole-archive.
16616 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16618 # Exported symbols can be pulled into shared objects from archives
16619 whole_archive_flag_spec
='$convenience'
16621 archive_cmds_need_lc
=yes
16622 # This is similar to how AIX traditionally builds its shared libraries.
16623 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'
16631 # see comment about AmigaOS4 .so support
16632 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16633 archive_expsym_cmds
=''
16636 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)'
16637 hardcode_libdir_flag_spec
='-L$libdir'
16638 hardcode_minus_L
=yes
16644 export_dynamic_flag_spec
=-rdynamic
16647 cygwin
* | mingw
* | pw32
* | cegcc
*)
16648 # When not using gcc, we currently assume that we are using
16649 # Microsoft Visual C++.
16650 # hardcode_libdir_flag_spec is actually meaningless, as there is
16651 # no search path for DLLs.
16652 hardcode_libdir_flag_spec
=' '
16653 allow_undefined_flag
=unsupported
16654 # Tell ltmain to make .lib files, not .a files.
16656 # Tell ltmain to make .dll files, not .so files.
16658 # FIXME: Setting linknames here is a bad hack.
16659 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16660 # The linker will automatically build a .lib file if we build a DLL.
16661 old_archive_from_new_cmds
='true'
16662 # FIXME: Should let the user specify the lib program.
16663 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16664 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16665 enable_shared_with_static_runtimes
=yes
16668 darwin
* | rhapsody
*)
16671 archive_cmds_need_lc
=no
16673 hardcode_automatic
=yes
16674 hardcode_shlibpath_var
=unsupported
16675 if test "$lt_cv_ld_force_load" = "yes"; then
16676 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\"`'
16678 whole_archive_flag_spec
=''
16680 link_all_deplibs
=yes
16681 allow_undefined_flag
="$_lt_dar_allow_undefined"
16682 case $cc_basename in
16683 ifort
*) _lt_dar_can_shared
=yes ;;
16684 *) _lt_dar_can_shared
=$GCC ;;
16686 if test "$_lt_dar_can_shared" = "yes"; then
16687 output_verbose_link_cmd
=func_echo_all
16688 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16689 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16690 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}"
16691 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}"
16700 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16701 hardcode_libdir_flag_spec
='-L$libdir'
16702 hardcode_shlibpath_var
=no
16705 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16706 # support. Future versions do this automatically, but an explicit c++rt0.o
16707 # does not break anything, and helps significantly (at the cost of a little
16710 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16711 hardcode_libdir_flag_spec
='-R$libdir'
16712 hardcode_direct
=yes
16713 hardcode_shlibpath_var
=no
16716 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16718 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16719 hardcode_direct
=yes
16720 hardcode_minus_L
=yes
16721 hardcode_shlibpath_var
=no
16724 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16725 freebsd
* | dragonfly
*)
16726 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16727 hardcode_libdir_flag_spec
='-R$libdir'
16728 hardcode_direct
=yes
16729 hardcode_shlibpath_var
=no
16733 if test "$GCC" = yes; then
16734 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'
16736 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'
16738 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16739 hardcode_libdir_separator
=:
16740 hardcode_direct
=yes
16742 # hardcode_minus_L: Not really in the search PATH,
16743 # but as the default location of the library.
16744 hardcode_minus_L
=yes
16745 export_dynamic_flag_spec
='${wl}-E'
16749 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16750 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16752 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16754 if test "$with_gnu_ld" = no
; then
16755 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16756 hardcode_libdir_flag_spec_ld
='+b $libdir'
16757 hardcode_libdir_separator
=:
16758 hardcode_direct
=yes
16759 hardcode_direct_absolute
=yes
16760 export_dynamic_flag_spec
='${wl}-E'
16761 # hardcode_minus_L: Not really in the search PATH,
16762 # but as the default location of the library.
16763 hardcode_minus_L
=yes
16768 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16771 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16774 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16777 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16783 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16786 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16790 # Older versions of the 11.00 compiler do not understand -b yet
16791 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16793 $as_echo_n "checking if $CC understands -b... " >&6; }
16794 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16795 $as_echo_n "(cached) " >&6
16797 lt_cv_prog_compiler__b
=no
16798 save_LDFLAGS
="$LDFLAGS"
16799 LDFLAGS
="$LDFLAGS -b"
16800 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16801 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16802 # The linker can only warn and ignore the option if not recognized
16803 # So say no if there are warnings
16804 if test -s conftest.err
; then
16805 # Append any errors to the config.log.
16806 cat conftest.err
1>&5
16807 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16808 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16809 if diff conftest.exp conftest.er2
>/dev
/null
; then
16810 lt_cv_prog_compiler__b
=yes
16813 lt_cv_prog_compiler__b
=yes
16817 LDFLAGS
="$save_LDFLAGS"
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16821 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16823 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16824 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16826 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16832 if test "$with_gnu_ld" = no
; then
16833 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16834 hardcode_libdir_separator
=:
16839 hardcode_shlibpath_var
=no
16842 hardcode_direct
=yes
16843 hardcode_direct_absolute
=yes
16844 export_dynamic_flag_spec
='${wl}-E'
16846 # hardcode_minus_L: Not really in the search PATH,
16847 # but as the default location of the library.
16848 hardcode_minus_L
=yes
16854 irix5
* | irix6
* | nonstopux
*)
16855 if test "$GCC" = yes; then
16856 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'
16857 # Try to use the -exported_symbol ld option, if it does not
16858 # work, assume that -exports_file does not work either and
16859 # implicitly export all symbols.
16860 save_LDFLAGS
="$LDFLAGS"
16861 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16863 /* end confdefs.h. */
16866 if ac_fn_c_try_link
"$LINENO"; then :
16867 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'
16870 rm -f core conftest.err conftest.
$ac_objext \
16871 conftest
$ac_exeext conftest.
$ac_ext
16872 LDFLAGS
="$save_LDFLAGS"
16874 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'
16875 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'
16877 archive_cmds_need_lc
='no'
16878 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16879 hardcode_libdir_separator
=:
16881 link_all_deplibs
=yes
16885 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16886 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16888 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16890 hardcode_libdir_flag_spec
='-R$libdir'
16891 hardcode_direct
=yes
16892 hardcode_shlibpath_var
=no
16896 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16897 hardcode_direct
=yes
16898 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16899 hardcode_libdir_separator
=:
16900 hardcode_shlibpath_var
=no
16907 if test -f /usr
/libexec
/ld.so
; then
16908 hardcode_direct
=yes
16909 hardcode_shlibpath_var
=no
16910 hardcode_direct_absolute
=yes
16911 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16912 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16913 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16914 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16915 export_dynamic_flag_spec
='${wl}-E'
16918 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16919 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16920 hardcode_libdir_flag_spec
='-R$libdir'
16923 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16924 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16934 hardcode_libdir_flag_spec
='-L$libdir'
16935 hardcode_minus_L
=yes
16936 allow_undefined_flag
=unsupported
16937 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'
16938 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16942 if test "$GCC" = yes; then
16943 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16944 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'
16946 allow_undefined_flag
=' -expect_unresolved \*'
16947 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'
16949 archive_cmds_need_lc
='no'
16950 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16951 hardcode_libdir_separator
=:
16954 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16955 if test "$GCC" = yes; then
16956 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16957 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'
16958 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16960 allow_undefined_flag
=' -expect_unresolved \*'
16961 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'
16962 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~
16963 $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'
16965 # Both c and cxx compiler support -rpath directly
16966 hardcode_libdir_flag_spec
='-rpath $libdir'
16968 archive_cmds_need_lc
='no'
16969 hardcode_libdir_separator
=:
16973 no_undefined_flag
=' -z defs'
16974 if test "$GCC" = yes; then
16976 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16977 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16978 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16980 case `$CC -V 2>&1` in
16983 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16984 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16985 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16989 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16990 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16991 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16995 hardcode_libdir_flag_spec
='-R$libdir'
16996 hardcode_shlibpath_var
=no
16998 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17000 # The compiler driver will combine and reorder linker options,
17001 # but understands `-z linker_flag'. GCC discards it without `$wl',
17002 # but is careful enough not to reorder.
17003 # Supported since Solaris 2.6 (maybe 2.5.1?)
17004 if test "$GCC" = yes; then
17005 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17007 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
17011 link_all_deplibs
=yes
17015 if test "x$host_vendor" = xsequent
; then
17016 # Use $CC to link under sequent, because it throws in some extra .o
17017 # files that make .init and .fini sections work.
17018 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17020 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17022 hardcode_libdir_flag_spec
='-L$libdir'
17023 hardcode_direct
=yes
17024 hardcode_minus_L
=yes
17025 hardcode_shlibpath_var
=no
17029 case $host_vendor in
17031 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17032 hardcode_direct
=yes # is this really true???
17035 ## LD is ld it makes a PLAMLIB
17036 ## CC just makes a GrossModule.
17037 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17038 reload_cmds
='$CC -r -o $output$reload_objs'
17042 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17043 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17046 runpath_var
='LD_RUN_PATH'
17047 hardcode_shlibpath_var
=no
17051 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17052 hardcode_shlibpath_var
=no
17053 export_dynamic_flag_spec
='-Bexport'
17057 if test -d /usr
/nec
; then
17058 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17059 hardcode_shlibpath_var
=no
17060 runpath_var
=LD_RUN_PATH
17061 hardcode_runpath_var
=yes
17066 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17067 no_undefined_flag
='${wl}-z,text'
17068 archive_cmds_need_lc
=no
17069 hardcode_shlibpath_var
=no
17070 runpath_var
='LD_RUN_PATH'
17072 if test "$GCC" = yes; then
17073 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17074 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17076 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17077 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17081 sysv5
* | sco3.2v5
* | sco5v6
*)
17082 # Note: We can NOT use -z defs as we might desire, because we do not
17083 # link with -lc, and that would cause any symbols used from libc to
17084 # always be unresolved, which means just about no library would
17085 # ever link correctly. If we're not using GNU ld we use -z text
17086 # though, which does catch some bad symbols but isn't as heavy-handed
17088 no_undefined_flag
='${wl}-z,text'
17089 allow_undefined_flag
='${wl}-z,nodefs'
17090 archive_cmds_need_lc
=no
17091 hardcode_shlibpath_var
=no
17092 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17093 hardcode_libdir_separator
=':'
17094 link_all_deplibs
=yes
17095 export_dynamic_flag_spec
='${wl}-Bexport'
17096 runpath_var
='LD_RUN_PATH'
17098 if test "$GCC" = yes; then
17099 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17100 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17102 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17103 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17108 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17109 hardcode_libdir_flag_spec
='-L$libdir'
17110 hardcode_shlibpath_var
=no
17118 if test x
$host_vendor = xsni
; then
17120 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17121 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17128 $as_echo "$ld_shlibs" >&6; }
17129 test "$ld_shlibs" = no
&& can_build_shared
=no
17131 with_gnu_ld
=$with_gnu_ld
17148 # Do we need to explicitly link libc?
17150 case "x$archive_cmds_need_lc" in
17152 # Assume -lc should be added
17153 archive_cmds_need_lc
=yes
17155 if test "$enable_shared" = yes && test "$GCC" = yes; then
17156 case $archive_cmds in
17158 # FIXME: we may have to deal with multi-command sequences.
17161 # Test whether the compiler implicitly links with -lc since on some
17162 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17163 # to ld, don't add -lc before -lgcc.
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17165 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17166 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17167 $as_echo_n "(cached) " >&6
17170 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17173 (eval $ac_compile) 2>&5
17175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17176 test $ac_status = 0; } 2>conftest.err
; then
17179 libobjs
=conftest.
$ac_objext
17181 wl
=$lt_prog_compiler_wl
17182 pic_flag
=$lt_prog_compiler_pic
17188 lt_save_allow_undefined_flag
=$allow_undefined_flag
17189 allow_undefined_flag
=
17190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17191 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17194 test $ac_status = 0; }
17196 lt_cv_archive_cmds_need_lc
=no
17198 lt_cv_archive_cmds_need_lc
=yes
17200 allow_undefined_flag
=$lt_save_allow_undefined_flag
17202 cat conftest.err
1>&5
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17208 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17209 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17373 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17375 if test "$GCC" = yes; then
17377 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17378 *) lt_awk_arg
="/^libraries:/" ;;
17381 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17382 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17384 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17385 case $lt_search_path_spec in
17387 # if the path contains ";" then we assume it to be the separator
17388 # otherwise default to the standard path separator (i.e. ":") - it is
17389 # assumed that no part of a normal pathname contains ";" but that should
17390 # okay in the real world where ";" in dirpaths is itself problematic.
17391 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17394 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17397 # Ok, now we have the path, separated by spaces, we can step through it
17398 # and add multilib dir if necessary.
17399 lt_tmp_lt_search_path_spec
=
17400 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17401 for lt_sys_path
in $lt_search_path_spec; do
17402 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17403 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17405 test -d "$lt_sys_path" && \
17406 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17409 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17410 BEGIN {RS=" "; FS="/|\n";} {
17413 for (lt_i = NF; lt_i > 0; lt_i--) {
17414 if ($lt_i != "" && $lt_i != ".") {
17415 if ($lt_i == "..") {
17418 if (lt_count == 0) {
17419 lt_foo="/" $lt_i lt_foo;
17426 if (lt_foo != "") { lt_freq[lt_foo]++; }
17427 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17429 # AWK program above erroneously prepends '/' to C:/dos/paths
17432 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17433 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17435 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17437 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17439 library_names_spec
=
17440 libname_spec
='lib$name'
17444 postuninstall_cmds
=
17448 shlibpath_overrides_runpath
=unknown
17450 dynamic_linker
="$host_os ld.so"
17451 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17452 need_lib_prefix
=unknown
17453 hardcode_into_libs
=no
17455 # when you set need_version to no, make sure it does not cause -set_version
17456 # flags to be left without arguments
17457 need_version
=unknown
17462 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17463 shlibpath_var
=LIBPATH
17465 # AIX 3 has no versioning support, so we append a major version to the name.
17466 soname_spec
='${libname}${release}${shared_ext}$major'
17473 hardcode_into_libs
=yes
17474 if test "$host_cpu" = ia64
; then
17475 # AIX 5 supports IA64
17476 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17477 shlibpath_var
=LD_LIBRARY_PATH
17479 # With GCC up to 2.95.x, collect2 would create an import file
17480 # for dependence libraries. The import file would start with
17481 # the line `#! .'. This would cause the generated library to
17482 # depend on `.', always an invalid library. This was fixed in
17483 # development snapshots of GCC prior to 3.0.
17485 aix4 | aix4.
[01] | aix4.
[01].
*)
17486 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17488 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17491 can_build_shared
=no
17495 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17496 # soname into executable. Probably we can add versioning support to
17497 # collect2, so additional links can be useful in future.
17498 if test "$aix_use_runtimelinking" = yes; then
17499 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17500 # instead of lib<name>.a to let people know that these are not
17501 # typical AIX shared libraries.
17502 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17504 # We preserve .a as extension for shared libraries through AIX4.2
17505 # and later when we are not doing run time linking.
17506 library_names_spec
='${libname}${release}.a $libname.a'
17507 soname_spec
='${libname}${release}${shared_ext}$major'
17509 shlibpath_var
=LIBPATH
17516 # Since July 2007 AmigaOS4 officially supports .so libraries.
17517 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17518 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17521 library_names_spec
='$libname.ixlibrary $libname.a'
17522 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17523 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'
17529 library_names_spec
='${libname}${shared_ext}'
17530 dynamic_linker
="$host_os ld.so"
17531 shlibpath_var
=LIBRARY_PATH
17537 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17538 soname_spec
='${libname}${release}${shared_ext}$major'
17539 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17540 shlibpath_var
=LD_LIBRARY_PATH
17541 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17542 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17543 # the default ld.so.conf also contains /usr/contrib/lib and
17544 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17545 # libtool to hard-code these into programs
17548 cygwin
* | mingw
* | pw32
* | cegcc
*)
17549 version_type
=windows
17554 case $GCC,$host_os in
17555 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17556 library_names_spec
='$libname.dll.a'
17557 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17558 postinstall_cmds
='base_file=`basename \${file}`~
17559 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17560 dldir=$destdir/`dirname \$dlpath`~
17561 test -d \$dldir || mkdir -p \$dldir~
17562 $install_prog $dir/$dlname \$dldir/$dlname~
17563 chmod a+x \$dldir/$dlname~
17564 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17565 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17567 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17568 dlpath=$dir/\$dldll~
17570 shlibpath_overrides_runpath
=yes
17574 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17575 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17577 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17580 # MinGW DLLs use traditional 'lib' prefix
17581 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17584 # pw32 DLLs use 'pw' prefix rather than 'lib'
17585 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17591 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17594 dynamic_linker
='Win32 ld.exe'
17595 # FIXME: first we should search . and the directory the executable is in
17599 darwin
* | rhapsody
*)
17600 dynamic_linker
="$host_os dyld"
17601 version_type
=darwin
17604 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17605 soname_spec
='${libname}${release}${major}$shared_ext'
17606 shlibpath_overrides_runpath
=yes
17607 shlibpath_var
=DYLD_LIBRARY_PATH
17608 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17610 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17611 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17618 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17619 soname_spec
='${libname}${release}${shared_ext}$major'
17620 shlibpath_var
=LD_LIBRARY_PATH
17623 freebsd
* | dragonfly
*)
17624 # DragonFly does not have aout. When/if they implement a new
17625 # versioning mechanism, adjust this.
17626 if test -x /usr
/bin
/objformat
; then
17627 objformat
=`/usr/bin/objformat`
17630 freebsd
[23].
*) objformat
=aout
;;
17631 *) objformat
=elf
;;
17634 version_type
=freebsd-
$objformat
17635 case $version_type in
17637 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17642 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17646 shlibpath_var
=LD_LIBRARY_PATH
17649 shlibpath_overrides_runpath
=yes
17651 freebsd3.
[01]* | freebsdelf3.
[01]*)
17652 shlibpath_overrides_runpath
=yes
17653 hardcode_into_libs
=yes
17655 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17656 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17657 shlibpath_overrides_runpath
=no
17658 hardcode_into_libs
=yes
17660 *) # from 4.6 on, and DragonFly
17661 shlibpath_overrides_runpath
=yes
17662 hardcode_into_libs
=yes
17671 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17672 soname_spec
='${libname}${release}${shared_ext}$major'
17673 shlibpath_var
=LD_LIBRARY_PATH
17674 hardcode_into_libs
=yes
17681 dynamic_linker
="$host_os runtime_loader"
17682 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17683 soname_spec
='${libname}${release}${shared_ext}$major'
17684 shlibpath_var
=LIBRARY_PATH
17685 shlibpath_overrides_runpath
=yes
17686 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17687 hardcode_into_libs
=yes
17690 hpux9
* | hpux10
* | hpux11
*)
17691 # Give a soname corresponding to the major version so that dld.sl refuses to
17692 # link against other versions.
17699 hardcode_into_libs
=yes
17700 dynamic_linker
="$host_os dld.so"
17701 shlibpath_var
=LD_LIBRARY_PATH
17702 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17703 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17704 soname_spec
='${libname}${release}${shared_ext}$major'
17705 if test "X$HPUX_IA64_MODE" = X32
; then
17706 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17708 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17710 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17714 hardcode_into_libs
=yes
17715 dynamic_linker
="$host_os dld.sl"
17716 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17717 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17718 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17719 soname_spec
='${libname}${release}${shared_ext}$major'
17720 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17721 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17725 dynamic_linker
="$host_os dld.sl"
17726 shlibpath_var
=SHLIB_PATH
17727 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17728 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17729 soname_spec
='${libname}${release}${shared_ext}$major'
17732 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17733 postinstall_cmds
='chmod 555 $lib'
17734 # or fails outright, so override atomically:
17735 install_override_mode
=555
17742 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17743 soname_spec
='${libname}${release}${shared_ext}$major'
17744 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17745 shlibpath_var
=LD_LIBRARY_PATH
17746 shlibpath_overrides_runpath
=no
17747 hardcode_into_libs
=yes
17750 irix5
* | irix6
* | nonstopux
*)
17752 nonstopux
*) version_type
=nonstopux
;;
17754 if test "$lt_cv_prog_gnu_ld" = yes; then
17762 soname_spec
='${libname}${release}${shared_ext}$major'
17763 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17765 irix5
* | nonstopux
*)
17766 libsuff
= shlibsuff
=
17769 case $LD in # libtool.m4 will add one of these switches to LD
17770 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17771 libsuff
= shlibsuff
= libmagic
=32-bit;;
17772 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17773 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17774 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17775 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17776 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17780 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17781 shlibpath_overrides_runpath
=no
17782 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17783 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17784 hardcode_into_libs
=yes
17787 # No shared lib support for Linux oldld, aout, or coff.
17788 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17792 # This must be Linux ELF.
17793 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17797 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17798 soname_spec
='${libname}${release}${shared_ext}$major'
17799 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17800 shlibpath_var
=LD_LIBRARY_PATH
17801 shlibpath_overrides_runpath
=no
17803 # Some binutils ld are patched to set DT_RUNPATH
17804 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17805 $as_echo_n "(cached) " >&6
17807 lt_cv_shlibpath_overrides_runpath
=no
17808 save_LDFLAGS
=$LDFLAGS
17809 save_libdir
=$libdir
17810 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17811 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17813 /* end confdefs.h. */
17823 if ac_fn_c_try_link
"$LINENO"; then :
17824 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17825 lt_cv_shlibpath_overrides_runpath
=yes
17828 rm -f core conftest.err conftest.
$ac_objext \
17829 conftest
$ac_exeext conftest.
$ac_ext
17830 LDFLAGS
=$save_LDFLAGS
17831 libdir
=$save_libdir
17835 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17837 # This implies no fast_install, which is unacceptable.
17838 # Some rework will be needed to allow for fast_install
17839 # before this can be enabled.
17840 hardcode_into_libs
=yes
17842 # Append ld.so.conf contents to the search path
17843 if test -f /etc
/ld.so.conf
; then
17844 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' ' '`
17845 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17848 # We used to test for /lib/ld.so.1 and disable shared libraries on
17849 # powerpc, because MkLinux only supported shared libraries with the
17850 # GNU dynamic linker. Since this was broken with cross compilers,
17851 # most powerpc-linux boxes support dynamic linking these days and
17852 # people can always --disable-shared, the test was removed, and we
17853 # assume the GNU/Linux dynamic linker is in use.
17854 dynamic_linker
='GNU/Linux ld.so'
17861 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17862 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17863 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17864 dynamic_linker
='NetBSD (a.out) ld.so'
17866 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17867 soname_spec
='${libname}${release}${shared_ext}$major'
17868 dynamic_linker
='NetBSD ld.elf_so'
17870 shlibpath_var
=LD_LIBRARY_PATH
17871 shlibpath_overrides_runpath
=yes
17872 hardcode_into_libs
=yes
17877 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17878 shlibpath_var
=LD_LIBRARY_PATH
17879 shlibpath_overrides_runpath
=yes
17886 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17887 soname_spec
='${libname}${release}${shared_ext}$major'
17888 shlibpath_var
=LD_LIBRARY_PATH
17889 shlibpath_overrides_runpath
=no
17890 hardcode_into_libs
=yes
17891 dynamic_linker
='ldqnx.so'
17896 sys_lib_dlsearch_path_spec
="/usr/lib"
17898 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17900 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17901 *) need_version
=no
;;
17903 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17904 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17905 shlibpath_var
=LD_LIBRARY_PATH
17906 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17908 openbsd2.
[89] | openbsd2.
[89].
*)
17909 shlibpath_overrides_runpath
=no
17912 shlibpath_overrides_runpath
=yes
17916 shlibpath_overrides_runpath
=yes
17921 libname_spec
='$name'
17924 library_names_spec
='$libname${shared_ext} $libname.a'
17925 dynamic_linker
='OS/2 ld.exe'
17926 shlibpath_var
=LIBPATH
17929 osf3
* | osf4
* | osf5
*)
17933 soname_spec
='${libname}${release}${shared_ext}$major'
17934 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17935 shlibpath_var
=LD_LIBRARY_PATH
17936 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17937 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17948 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17949 soname_spec
='${libname}${release}${shared_ext}$major'
17950 shlibpath_var
=LD_LIBRARY_PATH
17951 shlibpath_overrides_runpath
=yes
17952 hardcode_into_libs
=yes
17953 # ldd complains unless libraries are executable
17954 postinstall_cmds
='chmod +x $lib'
17959 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17960 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17961 shlibpath_var
=LD_LIBRARY_PATH
17962 shlibpath_overrides_runpath
=yes
17963 if test "$with_gnu_ld" = yes; then
17971 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17972 soname_spec
='${libname}${release}${shared_ext}$major'
17973 shlibpath_var
=LD_LIBRARY_PATH
17974 case $host_vendor in
17976 shlibpath_overrides_runpath
=no
17978 runpath_var
=LD_RUN_PATH
17986 shlibpath_overrides_runpath
=no
17987 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17993 if test -d /usr
/nec
;then
17995 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17996 soname_spec
='$libname${shared_ext}.$major'
17997 shlibpath_var
=LD_LIBRARY_PATH
18001 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18002 version_type
=freebsd-elf
18005 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18006 soname_spec
='${libname}${release}${shared_ext}$major'
18007 shlibpath_var
=LD_LIBRARY_PATH
18008 shlibpath_overrides_runpath
=yes
18009 hardcode_into_libs
=yes
18010 if test "$with_gnu_ld" = yes; then
18011 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18013 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18016 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18020 sys_lib_dlsearch_path_spec
='/usr/lib'
18024 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18028 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18029 shlibpath_var
=LD_LIBRARY_PATH
18030 shlibpath_overrides_runpath
=no
18031 hardcode_into_libs
=yes
18036 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18037 soname_spec
='${libname}${release}${shared_ext}$major'
18038 shlibpath_var
=LD_LIBRARY_PATH
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18046 $as_echo "$dynamic_linker" >&6; }
18047 test "$dynamic_linker" = no
&& can_build_shared
=no
18049 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18050 if test "$GCC" = yes; then
18051 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18054 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18055 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18057 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18058 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18153 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18155 if test -n "$hardcode_libdir_flag_spec" ||
18156 test -n "$runpath_var" ||
18157 test "X$hardcode_automatic" = "Xyes" ; then
18159 # We can hardcode non-existent directories.
18160 if test "$hardcode_direct" != no
&&
18161 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18162 # have to relink, otherwise we might link with an installed library
18163 # when we should be linking with a yet-to-be-installed one
18164 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18165 test "$hardcode_minus_L" != no
; then
18166 # Linking always hardcodes the temporary library directory.
18167 hardcode_action
=relink
18169 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18170 hardcode_action
=immediate
18173 # We cannot hardcode anything, or else we can only hardcode existing
18175 hardcode_action
=unsupported
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18178 $as_echo "$hardcode_action" >&6; }
18180 if test "$hardcode_action" = relink ||
18181 test "$inherit_rpath" = yes; then
18182 # Fast installation is not supported
18183 enable_fast_install
=no
18184 elif test "$shlibpath_overrides_runpath" = yes ||
18185 test "$enable_shared" = no
; then
18186 # Fast installation is not necessary
18187 enable_fast_install
=needless
18195 if test "x$enable_dlopen" != xyes
; then
18196 enable_dlopen
=unknown
18197 enable_dlopen_self
=unknown
18198 enable_dlopen_self_static
=unknown
18205 lt_cv_dlopen
="load_add_on"
18207 lt_cv_dlopen_self
=yes
18210 mingw
* | pw32
* | cegcc
*)
18211 lt_cv_dlopen
="LoadLibrary"
18216 lt_cv_dlopen
="dlopen"
18221 # if libdl is installed we need to link against it
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18223 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18224 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18225 $as_echo_n "(cached) " >&6
18227 ac_check_lib_save_LIBS
=$LIBS
18229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18230 /* end confdefs.h. */
18232 /* Override any GCC internal prototype to avoid an error.
18233 Use char because int might match the return type of a GCC
18234 builtin and then its argument prototype would still apply. */
18247 if ac_fn_c_try_link
"$LINENO"; then :
18248 ac_cv_lib_dl_dlopen
=yes
18250 ac_cv_lib_dl_dlopen
=no
18252 rm -f core conftest.err conftest.
$ac_objext \
18253 conftest
$ac_exeext conftest.
$ac_ext
18254 LIBS
=$ac_check_lib_save_LIBS
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18257 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18258 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18259 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18262 lt_cv_dlopen
="dyld"
18264 lt_cv_dlopen_self
=yes
18271 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18272 if test "x$ac_cv_func_shl_load" = x
""yes; then :
18273 lt_cv_dlopen
="shl_load"
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18276 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18277 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18278 $as_echo_n "(cached) " >&6
18280 ac_check_lib_save_LIBS
=$LIBS
18282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18283 /* end confdefs.h. */
18285 /* Override any GCC internal prototype to avoid an error.
18286 Use char because int might match the return type of a GCC
18287 builtin and then its argument prototype would still apply. */
18295 return shl_load ();
18300 if ac_fn_c_try_link
"$LINENO"; then :
18301 ac_cv_lib_dld_shl_load
=yes
18303 ac_cv_lib_dld_shl_load
=no
18305 rm -f core conftest.err conftest.
$ac_objext \
18306 conftest
$ac_exeext conftest.
$ac_ext
18307 LIBS
=$ac_check_lib_save_LIBS
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18310 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18311 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
18312 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18314 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18315 if test "x$ac_cv_func_dlopen" = x
""yes; then :
18316 lt_cv_dlopen
="dlopen"
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18319 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18320 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18321 $as_echo_n "(cached) " >&6
18323 ac_check_lib_save_LIBS
=$LIBS
18325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18326 /* end confdefs.h. */
18328 /* Override any GCC internal prototype to avoid an error.
18329 Use char because int might match the return type of a GCC
18330 builtin and then its argument prototype would still apply. */
18343 if ac_fn_c_try_link
"$LINENO"; then :
18344 ac_cv_lib_dl_dlopen
=yes
18346 ac_cv_lib_dl_dlopen
=no
18348 rm -f core conftest.err conftest.
$ac_objext \
18349 conftest
$ac_exeext conftest.
$ac_ext
18350 LIBS
=$ac_check_lib_save_LIBS
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18353 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18354 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18355 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18358 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18359 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18360 $as_echo_n "(cached) " >&6
18362 ac_check_lib_save_LIBS
=$LIBS
18363 LIBS
="-lsvld $LIBS"
18364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18365 /* end confdefs.h. */
18367 /* Override any GCC internal prototype to avoid an error.
18368 Use char because int might match the return type of a GCC
18369 builtin and then its argument prototype would still apply. */
18382 if ac_fn_c_try_link
"$LINENO"; then :
18383 ac_cv_lib_svld_dlopen
=yes
18385 ac_cv_lib_svld_dlopen
=no
18387 rm -f core conftest.err conftest.
$ac_objext \
18388 conftest
$ac_exeext conftest.
$ac_ext
18389 LIBS
=$ac_check_lib_save_LIBS
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18392 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18393 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18394 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18397 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18398 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18399 $as_echo_n "(cached) " >&6
18401 ac_check_lib_save_LIBS
=$LIBS
18403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18404 /* end confdefs.h. */
18406 /* Override any GCC internal prototype to avoid an error.
18407 Use char because int might match the return type of a GCC
18408 builtin and then its argument prototype would still apply. */
18416 return dld_link ();
18421 if ac_fn_c_try_link
"$LINENO"; then :
18422 ac_cv_lib_dld_dld_link
=yes
18424 ac_cv_lib_dld_dld_link
=no
18426 rm -f core conftest.err conftest.
$ac_objext \
18427 conftest
$ac_exeext conftest.
$ac_ext
18428 LIBS
=$ac_check_lib_save_LIBS
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18431 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18432 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18433 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18454 if test "x$lt_cv_dlopen" != xno
; then
18460 case $lt_cv_dlopen in
18462 save_CPPFLAGS
="$CPPFLAGS"
18463 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18465 save_LDFLAGS
="$LDFLAGS"
18466 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18469 LIBS
="$lt_cv_dlopen_libs $LIBS"
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18472 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18473 if test "${lt_cv_dlopen_self+set}" = set; then :
18474 $as_echo_n "(cached) " >&6
18476 if test "$cross_compiling" = yes; then :
18477 lt_cv_dlopen_self
=cross
18479 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18480 lt_status
=$lt_dlunknown
18481 cat > conftest.
$ac_ext <<_LT_EOF
18482 #line 18482 "configure"
18483 #include "confdefs.h"
18492 # define LT_DLGLOBAL RTLD_GLOBAL
18495 # define LT_DLGLOBAL DL_GLOBAL
18497 # define LT_DLGLOBAL 0
18501 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18502 find out it does not work in some platform. */
18503 #ifndef LT_DLLAZY_OR_NOW
18505 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18508 # define LT_DLLAZY_OR_NOW DL_LAZY
18511 # define LT_DLLAZY_OR_NOW RTLD_NOW
18514 # define LT_DLLAZY_OR_NOW DL_NOW
18516 # define LT_DLLAZY_OR_NOW 0
18523 /* When -fvisbility=hidden is used, assume the code has been annotated
18524 correspondingly for the symbols needed. */
18525 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18526 void fnord () __attribute__((visibility("default")));
18529 void fnord () { int i=42; }
18532 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18533 int status = $lt_dlunknown;
18537 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18540 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18541 else puts (dlerror ());
18543 /* dlclose (self); */
18551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18552 (eval $ac_link) 2>&5
18554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18555 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18556 (.
/conftest
; exit; ) >&5 2>/dev
/null
18558 case x
$lt_status in
18559 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18560 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18561 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18564 # compilation failed
18565 lt_cv_dlopen_self
=no
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18573 $as_echo "$lt_cv_dlopen_self" >&6; }
18575 if test "x$lt_cv_dlopen_self" = xyes
; then
18576 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18578 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18579 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18580 $as_echo_n "(cached) " >&6
18582 if test "$cross_compiling" = yes; then :
18583 lt_cv_dlopen_self_static
=cross
18585 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18586 lt_status
=$lt_dlunknown
18587 cat > conftest.
$ac_ext <<_LT_EOF
18588 #line 18588 "configure"
18589 #include "confdefs.h"
18598 # define LT_DLGLOBAL RTLD_GLOBAL
18601 # define LT_DLGLOBAL DL_GLOBAL
18603 # define LT_DLGLOBAL 0
18607 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18608 find out it does not work in some platform. */
18609 #ifndef LT_DLLAZY_OR_NOW
18611 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18614 # define LT_DLLAZY_OR_NOW DL_LAZY
18617 # define LT_DLLAZY_OR_NOW RTLD_NOW
18620 # define LT_DLLAZY_OR_NOW DL_NOW
18622 # define LT_DLLAZY_OR_NOW 0
18629 /* When -fvisbility=hidden is used, assume the code has been annotated
18630 correspondingly for the symbols needed. */
18631 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18632 void fnord () __attribute__((visibility("default")));
18635 void fnord () { int i=42; }
18638 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18639 int status = $lt_dlunknown;
18643 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18646 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18647 else puts (dlerror ());
18649 /* dlclose (self); */
18657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18658 (eval $ac_link) 2>&5
18660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18661 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18662 (.
/conftest
; exit; ) >&5 2>/dev
/null
18664 case x
$lt_status in
18665 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18666 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18667 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18670 # compilation failed
18671 lt_cv_dlopen_self_static
=no
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18679 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18682 CPPFLAGS
="$save_CPPFLAGS"
18683 LDFLAGS
="$save_LDFLAGS"
18688 case $lt_cv_dlopen_self in
18689 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18690 *) enable_dlopen_self
=unknown
;;
18693 case $lt_cv_dlopen_self_static in
18694 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18695 *) enable_dlopen_self_static
=unknown
;;
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18718 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18719 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18720 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18721 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18723 $as_echo "yes" >&6; }
18725 # FIXME - insert some real tests, host_os isn't really good enough
18728 if test -n "$STRIP" ; then
18729 striplib
="$STRIP -x"
18730 old_striplib
="$STRIP -S"
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18732 $as_echo "yes" >&6; }
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18735 $as_echo "no" >&6; }
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18740 $as_echo "no" >&6; }
18756 # Report which library types will actually be built
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18758 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18760 $as_echo "$can_build_shared" >&6; }
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18763 $as_echo_n "checking whether to build shared libraries... " >&6; }
18764 test "$can_build_shared" = "no" && enable_shared
=no
18766 # On AIX, shared libraries and static libraries use the same namespace, and
18767 # are all built from PIC.
18770 test "$enable_shared" = yes && enable_static
=no
18771 if test -n "$RANLIB"; then
18772 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18773 postinstall_cmds
='$RANLIB $lib'
18778 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18779 test "$enable_shared" = yes && enable_static
=no
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18784 $as_echo "$enable_shared" >&6; }
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18787 $as_echo_n "checking whether to build static libraries... " >&6; }
18788 # Make sure either enable_shared or enable_static is yes.
18789 test "$enable_shared" = yes || enable_static
=yes
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18791 $as_echo "$enable_static" >&6; }
18798 ac_cpp
='$CXXCPP $CPPFLAGS'
18799 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18800 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18801 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18805 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18806 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18807 (test "X$CXX" != "Xg++"))) ; then
18809 ac_cpp
='$CXXCPP $CPPFLAGS'
18810 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18811 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18812 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18814 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18815 if test -z "$CXXCPP"; then
18816 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18817 $as_echo_n "(cached) " >&6
18819 # Double quotes because CXXCPP needs to be expanded
18820 for CXXCPP
in "$CXX -E" "/lib/cpp"
18822 ac_preproc_ok
=false
18823 for ac_cxx_preproc_warn_flag
in '' yes
18825 # Use a header file that comes with gcc, so configuring glibc
18826 # with a fresh cross-compiler works.
18827 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18828 # <limits.h> exists even on freestanding compilers.
18829 # On the NeXT, cc -E runs the code through the compiler's parser,
18830 # not just through cpp. "Syntax error" is here to catch this case.
18831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18832 /* end confdefs.h. */
18834 # include <limits.h>
18836 # include <assert.h>
18840 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18843 # Broken: fails on valid input.
18846 rm -f conftest.err conftest.
$ac_ext
18848 # OK, works on sane cases. Now check whether nonexistent headers
18849 # can be detected and how.
18850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18851 /* end confdefs.h. */
18852 #include <ac_nonexistent.h>
18854 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18855 # Broken: success on invalid input.
18858 # Passes both tests.
18862 rm -f conftest.err conftest.
$ac_ext
18865 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18866 rm -f conftest.err conftest.
$ac_ext
18867 if $ac_preproc_ok; then :
18872 ac_cv_prog_CXXCPP
=$CXXCPP
18875 CXXCPP
=$ac_cv_prog_CXXCPP
18877 ac_cv_prog_CXXCPP
=$CXXCPP
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18880 $as_echo "$CXXCPP" >&6; }
18881 ac_preproc_ok
=false
18882 for ac_cxx_preproc_warn_flag
in '' yes
18884 # Use a header file that comes with gcc, so configuring glibc
18885 # with a fresh cross-compiler works.
18886 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18887 # <limits.h> exists even on freestanding compilers.
18888 # On the NeXT, cc -E runs the code through the compiler's parser,
18889 # not just through cpp. "Syntax error" is here to catch this case.
18890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18891 /* end confdefs.h. */
18893 # include <limits.h>
18895 # include <assert.h>
18899 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18902 # Broken: fails on valid input.
18905 rm -f conftest.err conftest.
$ac_ext
18907 # OK, works on sane cases. Now check whether nonexistent headers
18908 # can be detected and how.
18909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18910 /* end confdefs.h. */
18911 #include <ac_nonexistent.h>
18913 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18914 # Broken: success on invalid input.
18917 # Passes both tests.
18921 rm -f conftest.err conftest.
$ac_ext
18924 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18925 rm -f conftest.err conftest.
$ac_ext
18926 if $ac_preproc_ok; then :
18929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18931 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18932 See \`config.log' for more details." "$LINENO" 5; }
18936 ac_cpp
='$CXXCPP $CPPFLAGS'
18937 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18938 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18939 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18942 _lt_caught_CXX_error
=yes
18946 ac_cpp
='$CXXCPP $CPPFLAGS'
18947 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18948 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18949 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18951 archive_cmds_need_lc_CXX
=no
18952 allow_undefined_flag_CXX
=
18953 always_export_symbols_CXX
=no
18954 archive_expsym_cmds_CXX
=
18955 compiler_needs_object_CXX
=no
18956 export_dynamic_flag_spec_CXX
=
18957 hardcode_direct_CXX
=no
18958 hardcode_direct_absolute_CXX
=no
18959 hardcode_libdir_flag_spec_CXX
=
18960 hardcode_libdir_flag_spec_ld_CXX
=
18961 hardcode_libdir_separator_CXX
=
18962 hardcode_minus_L_CXX
=no
18963 hardcode_shlibpath_var_CXX
=unsupported
18964 hardcode_automatic_CXX
=no
18965 inherit_rpath_CXX
=no
18967 module_expsym_cmds_CXX
=
18968 link_all_deplibs_CXX
=unknown
18969 old_archive_cmds_CXX
=$old_archive_cmds
18970 reload_flag_CXX
=$reload_flag
18971 reload_cmds_CXX
=$reload_cmds
18972 no_undefined_flag_CXX
=
18973 whole_archive_flag_spec_CXX
=
18974 enable_shared_with_static_runtimes_CXX
=no
18976 # Source file extension for C++ test sources.
18979 # Object file extension for compiled C++ test sources.
18983 # No sense in running all these tests if we already determined that
18984 # the CXX compiler isn't working. Some variables (like enable_shared)
18985 # are currently assumed to apply to all compilers on this platform,
18986 # and will be corrupted by setting them based on a non-working compiler.
18987 if test "$_lt_caught_CXX_error" != yes; then
18988 # Code to be used in simple compile tests
18989 lt_simple_compile_test_code
="int some_variable = 0;"
18991 # Code to be used in simple link tests
18992 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18994 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19001 # If no C compiler was specified, use CC.
19004 # If no C compiler flags were specified, use CFLAGS.
19005 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19007 # Allow CC to be a program name with arguments.
19011 # save warnings/boilerplate of simple test code
19012 ac_outfile
=conftest.
$ac_objext
19013 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19014 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19015 _lt_compiler_boilerplate
=`cat conftest.err`
19018 ac_outfile
=conftest.
$ac_objext
19019 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19020 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19021 _lt_linker_boilerplate
=`cat conftest.err`
19025 # Allow CC to be a program name with arguments.
19030 lt_save_with_gnu_ld
=$with_gnu_ld
19031 lt_save_path_LD
=$lt_cv_path_LD
19032 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19033 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
19035 $as_unset lt_cv_prog_gnu_ld
19037 if test -n "${lt_cv_path_LDCXX+set}"; then
19038 lt_cv_path_LD
=$lt_cv_path_LDCXX
19040 $as_unset lt_cv_path_LD
19042 test -z "${LDCXX+set}" || LD
=$LDCXX
19046 for cc_temp
in $compiler""; do
19048 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19049 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19054 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19057 if test -n "$compiler"; then
19058 # We don't want -fno-exception when compiling C++ code, so set the
19059 # no_builtin_flag separately
19060 if test "$GXX" = yes; then
19061 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19063 lt_prog_compiler_no_builtin_flag_CXX
=
19066 if test "$GXX" = yes; then
19067 # Set up default GNU C++ configuration
19071 # Check whether --with-gnu-ld was given.
19072 if test "${with_gnu_ld+set}" = set; then :
19073 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19079 if test "$GCC" = yes; then
19080 # Check if gcc -print-prog-name=ld gives a path.
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19082 $as_echo_n "checking for ld used by $CC... " >&6; }
19085 # gcc leaves a trailing carriage return which upsets mingw
19086 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19088 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19091 # Accept absolute paths.
19093 re_direlt
='/[^/][^/]*/\.\./'
19094 # Canonicalize the pathname of ld
19095 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19096 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19097 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19099 test -z "$LD" && LD
="$ac_prog"
19102 # If it fails, then pretend we aren't using GCC.
19106 # If it is relative, then search for the first ld in PATH.
19107 with_gnu_ld
=unknown
19110 elif test "$with_gnu_ld" = yes; then
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19112 $as_echo_n "checking for GNU ld... " >&6; }
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19115 $as_echo_n "checking for non-GNU ld... " >&6; }
19117 if test "${lt_cv_path_LD+set}" = set; then :
19118 $as_echo_n "(cached) " >&6
19120 if test -z "$LD"; then
19121 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19122 for ac_dir
in $PATH; do
19124 test -z "$ac_dir" && ac_dir
=.
19125 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19126 lt_cv_path_LD
="$ac_dir/$ac_prog"
19127 # Check to see if the program is GNU ld. I'd rather use --version,
19128 # but apparently some variants of GNU ld only accept -v.
19129 # Break only if it was the GNU/non-GNU ld that we prefer.
19130 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19131 *GNU
* |
*'with BFD'*)
19132 test "$with_gnu_ld" != no
&& break
19135 test "$with_gnu_ld" != yes && break
19142 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19146 LD
="$lt_cv_path_LD"
19147 if test -n "$LD"; then
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19149 $as_echo "$LD" >&6; }
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19152 $as_echo "no" >&6; }
19154 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
19155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19156 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19157 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19158 $as_echo_n "(cached) " >&6
19160 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19161 case `$LD -v 2>&1 </dev/null` in
19162 *GNU
* |
*'with BFD'*)
19163 lt_cv_prog_gnu_ld
=yes
19166 lt_cv_prog_gnu_ld
=no
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19171 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19172 with_gnu_ld
=$lt_cv_prog_gnu_ld
19180 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19181 # archiving commands below assume that GNU ld is being used.
19182 if test "$with_gnu_ld" = yes; then
19183 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19184 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'
19186 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19187 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19189 # If archive_cmds runs LD, not CC, wlarc should be empty
19190 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19191 # investigate it a little bit more. (MM)
19194 # ancient GNU ld didn't support --whole-archive et. al.
19195 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19196 $GREP 'no-whole-archive' > /dev
/null
; then
19197 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19199 whole_archive_flag_spec_CXX
=
19205 # A generic and very simple default shared library creation
19206 # command for GNU C++ for the case where it uses the native
19207 # linker, instead of GNU ld. If possible, this setting should
19208 # overridden to take advantage of the native linker features on
19209 # the platform it is being used on.
19210 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19213 # Commands to make compiler produce verbose output that lists
19214 # what "hidden" libraries, object files and flags are used when
19215 # linking a shared library.
19216 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19224 # PORTME: fill in a description of your system's C++ link characteristics
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19226 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19230 # FIXME: insert proper C++ library support
19234 if test "$host_cpu" = ia64
; then
19235 # On IA64, the linker does run time linking by default, so we don't
19236 # have to do anything special.
19237 aix_use_runtimelinking
=no
19238 exp_sym_flag
='-Bexport'
19241 aix_use_runtimelinking
=no
19243 # Test if we are trying to use run time linking or normal
19244 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19245 # need to do runtime linking.
19246 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19247 for ld_flag
in $LDFLAGS; do
19250 aix_use_runtimelinking
=yes
19258 exp_sym_flag
='-bexport'
19259 no_entry_flag
='-bnoentry'
19262 # When large executables or shared objects are built, AIX ld can
19263 # have problems creating the table of contents. If linking a library
19264 # or program results in "error TOC overflow" add -mminimal-toc to
19265 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19266 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19268 archive_cmds_CXX
=''
19269 hardcode_direct_CXX
=yes
19270 hardcode_direct_absolute_CXX
=yes
19271 hardcode_libdir_separator_CXX
=':'
19272 link_all_deplibs_CXX
=yes
19273 file_list_spec_CXX
='${wl}-f,'
19275 if test "$GXX" = yes; then
19276 case $host_os in aix4.
[012]|aix4.
[012].
*)
19277 # We only want to do this on AIX 4.2 and lower, the check
19278 # below for broken collect2 doesn't work under 4.3+
19279 collect2name
=`${CC} -print-prog-name=collect2`
19280 if test -f "$collect2name" &&
19281 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19283 # We have reworked collect2
19286 # We have old collect2
19287 hardcode_direct_CXX
=unsupported
19288 # It fails to find uninstalled libraries when the uninstalled
19289 # path is not listed in the libpath. Setting hardcode_minus_L
19290 # to unsupported forces relinking
19291 hardcode_minus_L_CXX
=yes
19292 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19293 hardcode_libdir_separator_CXX
=
19296 shared_flag
='-shared'
19297 if test "$aix_use_runtimelinking" = yes; then
19298 shared_flag
="$shared_flag "'${wl}-G'
19302 if test "$host_cpu" = ia64
; then
19303 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19304 # chokes on -Wl,-G. The following line is correct:
19307 if test "$aix_use_runtimelinking" = yes; then
19308 shared_flag
='${wl}-G'
19310 shared_flag
='${wl}-bM:SRE'
19315 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19316 # It seems that -bexpall does not export symbols beginning with
19317 # underscore (_), so it is better to generate a list of symbols to
19319 always_export_symbols_CXX
=yes
19320 if test "$aix_use_runtimelinking" = yes; then
19321 # Warning - without using the other runtime loading flags (-brtl),
19322 # -berok will link without error, but may produce a broken library.
19323 allow_undefined_flag_CXX
='-berok'
19324 # Determine the default libpath from the value encoded in an empty
19326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19327 /* end confdefs.h. */
19337 if ac_fn_cxx_try_link
"$LINENO"; then :
19339 lt_aix_libpath_sed
='
19340 /Import File Strings/,/^$/ {
19346 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19347 # Check for a 64-bit object if we didn't find anything.
19348 if test -z "$aix_libpath"; then
19349 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19352 rm -f core conftest.err conftest.
$ac_objext \
19353 conftest
$ac_exeext conftest.
$ac_ext
19354 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19356 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19358 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"
19360 if test "$host_cpu" = ia64
; then
19361 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19362 allow_undefined_flag_CXX
="-z nodefs"
19363 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"
19365 # Determine the default libpath from the value encoded in an
19366 # empty executable.
19367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19368 /* end confdefs.h. */
19378 if ac_fn_cxx_try_link
"$LINENO"; then :
19380 lt_aix_libpath_sed
='
19381 /Import File Strings/,/^$/ {
19387 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19388 # Check for a 64-bit object if we didn't find anything.
19389 if test -z "$aix_libpath"; then
19390 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19393 rm -f core conftest.err conftest.
$ac_objext \
19394 conftest
$ac_exeext conftest.
$ac_ext
19395 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19397 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19398 # Warning - without using the other run time loading flags,
19399 # -berok will link without error, but may produce a broken library.
19400 no_undefined_flag_CXX
=' ${wl}-bernotok'
19401 allow_undefined_flag_CXX
=' ${wl}-berok'
19402 if test "$with_gnu_ld" = yes; then
19403 # We only use this code for GNU lds that support --whole-archive.
19404 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19406 # Exported symbols can be pulled into shared objects from archives
19407 whole_archive_flag_spec_CXX
='$convenience'
19409 archive_cmds_need_lc_CXX
=yes
19410 # This is similar to how AIX traditionally builds its shared
19412 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'
19418 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19419 allow_undefined_flag_CXX
=unsupported
19420 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19421 # support --undefined. This deserves some investigation. FIXME
19422 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19429 case $cc_basename in
19431 # FIXME: insert proper C++ library support
19437 cygwin
* | mingw
* | pw32
* | cegcc
*)
19438 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19439 # as there is no search path for DLLs.
19440 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19441 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19442 allow_undefined_flag_CXX
=unsupported
19443 always_export_symbols_CXX
=no
19444 enable_shared_with_static_runtimes_CXX
=yes
19446 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19447 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'
19448 # If the export-symbols file already is a .def file (1st line
19449 # is EXPORTS), use it as is; otherwise, prepend...
19450 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19451 cp $export_symbols $output_objdir/$soname.def;
19453 echo EXPORTS > $output_objdir/$soname.def;
19454 cat $export_symbols >> $output_objdir/$soname.def;
19456 $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'
19461 darwin
* | rhapsody
*)
19464 archive_cmds_need_lc_CXX
=no
19465 hardcode_direct_CXX
=no
19466 hardcode_automatic_CXX
=yes
19467 hardcode_shlibpath_var_CXX
=unsupported
19468 if test "$lt_cv_ld_force_load" = "yes"; then
19469 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\"`'
19471 whole_archive_flag_spec_CXX
=''
19473 link_all_deplibs_CXX
=yes
19474 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19475 case $cc_basename in
19476 ifort
*) _lt_dar_can_shared
=yes ;;
19477 *) _lt_dar_can_shared
=$GCC ;;
19479 if test "$_lt_dar_can_shared" = "yes"; then
19480 output_verbose_link_cmd
=func_echo_all
19481 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}"
19482 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19483 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}"
19484 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}"
19485 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19486 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}"
19487 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}"
19497 case $cc_basename in
19499 # FIXME: insert proper C++ library support
19503 # Green Hills C++ Compiler
19504 # FIXME: insert proper C++ library support
19508 # FIXME: insert proper C++ library support
19515 # C++ shared libraries reported to be fairly broken before
19521 archive_cmds_need_lc_CXX
=no
19524 freebsd
* | dragonfly
*)
19525 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19534 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19535 link_all_deplibs_CXX
=yes
19539 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19540 hardcode_libdir_separator_CXX
=:
19541 export_dynamic_flag_spec_CXX
='${wl}-E'
19542 hardcode_direct_CXX
=yes
19543 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19544 # but as the default
19545 # location of the library.
19547 case $cc_basename in
19549 # FIXME: insert proper C++ library support
19553 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'
19554 # Commands to make compiler produce verbose output that lists
19555 # what "hidden" libraries, object files and flags are used when
19556 # linking a shared library.
19558 # There doesn't appear to be a way to prevent this compiler from
19559 # explicitly linking system object files so we need to strip them
19560 # from the output so that they don't get included in the library
19562 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"'
19565 if test "$GXX" = yes; then
19566 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'
19568 # FIXME: insert proper C++ library support
19576 if test $with_gnu_ld = no
; then
19577 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19578 hardcode_libdir_separator_CXX
=:
19584 export_dynamic_flag_spec_CXX
='${wl}-E'
19590 hardcode_direct_CXX
=no
19591 hardcode_shlibpath_var_CXX
=no
19594 hardcode_direct_CXX
=yes
19595 hardcode_direct_absolute_CXX
=yes
19596 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19597 # but as the default
19598 # location of the library.
19602 case $cc_basename in
19604 # FIXME: insert proper C++ library support
19610 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19613 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19616 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19619 # Commands to make compiler produce verbose output that lists
19620 # what "hidden" libraries, object files and flags are used when
19621 # linking a shared library.
19623 # There doesn't appear to be a way to prevent this compiler from
19624 # explicitly linking system object files so we need to strip them
19625 # from the output so that they don't get included in the library
19627 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"'
19630 if test "$GXX" = yes; then
19631 if test $with_gnu_ld = no
; then
19634 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19637 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19640 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'
19645 # FIXME: insert proper C++ library support
19653 hardcode_direct_CXX
=no
19654 hardcode_shlibpath_var_CXX
=no
19655 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19656 export_dynamic_flag_spec_CXX
='${wl}-E'
19657 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19658 # Instead, shared libraries are loaded at an image base (0x10000000 by
19659 # default) and relocated if they conflict, which is a slow very memory
19660 # consuming and fragmenting process. To avoid this, we pick a random,
19661 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19662 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19663 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'
19664 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'
19667 case $cc_basename in
19670 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'
19672 # Archives containing C++ object files must be created using
19673 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19674 # necessary to make sure instantiated templates are included
19676 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19679 if test "$GXX" = yes; then
19680 if test "$with_gnu_ld" = no
; then
19681 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'
19683 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'
19686 link_all_deplibs_CXX
=yes
19689 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19690 hardcode_libdir_separator_CXX
=:
19691 inherit_rpath_CXX
=yes
19694 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19695 case $cc_basename in
19697 # Kuck and Associates, Inc. (KAI) C++ Compiler
19699 # KCC will only create a shared library if the output file
19700 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19701 # to its proper name (with version) after linking.
19702 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'
19703 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'
19704 # Commands to make compiler produce verbose output that lists
19705 # what "hidden" libraries, object files and flags are used when
19706 # linking a shared library.
19708 # There doesn't appear to be a way to prevent this compiler from
19709 # explicitly linking system object files so we need to strip them
19710 # from the output so that they don't get included in the library
19712 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"'
19714 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19715 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19717 # Archives containing C++ object files must be created using
19718 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19719 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19724 # version 8.0 and above of icpc choke on multiply defined symbols
19725 # if we add $predep_objects and $postdep_objects, however 7.1 and
19726 # earlier do not add the objects themselves.
19727 case `$CC -V 2>&1` in
19729 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19730 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'
19732 *) # Version 8.0 or newer
19735 ia64
*) tmp_idyn
=' -i_dynamic';;
19737 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19738 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'
19741 archive_cmds_need_lc_CXX
=no
19742 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19743 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19744 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19747 # Portland Group C++ compiler
19749 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19750 prelink_cmds_CXX
='tpldir=Template.dir~
19752 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19753 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19754 old_archive_cmds_CXX
='tpldir=Template.dir~
19756 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19757 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19759 archive_cmds_CXX
='tpldir=Template.dir~
19761 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19762 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19763 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19765 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19766 $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'
19768 *) # Version 6 and above use weak symbols
19769 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19770 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'
19774 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19775 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19776 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'
19780 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19781 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'
19783 runpath_var
=LD_RUN_PATH
19784 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19785 hardcode_libdir_separator_CXX
=:
19787 # Commands to make compiler produce verbose output that lists
19788 # what "hidden" libraries, object files and flags are used when
19789 # linking a shared library.
19791 # There doesn't appear to be a way to prevent this compiler from
19792 # explicitly linking system object files so we need to strip them
19793 # from the output so that they don't get included in the library
19795 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'
19797 xl
* | mpixl
* | bgxl
*)
19798 # IBM XL 8.0 on PPC, with GNU ld
19799 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19800 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19801 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19802 if test "x$supports_anon_versioning" = xyes
; then
19803 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19804 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19805 echo "local: *; };" >> $output_objdir/$libname.ver~
19806 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19810 case `$CC -V 2>&1 | sed 5q` in
19813 no_undefined_flag_CXX
=' -zdefs'
19814 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19815 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'
19816 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19817 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'
19818 compiler_needs_object_CXX
=yes
19820 # Not sure whether something based on
19821 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19823 output_verbose_link_cmd
='func_echo_all'
19825 # Archives containing C++ object files must be created using
19826 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19827 # necessary to make sure instantiated templates are included
19829 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19837 # FIXME: insert proper C++ library support
19842 # FIXME: insert proper C++ library support
19847 case $cc_basename in
19849 # FIXME: insert proper C++ library support
19853 # FIXME: insert proper C++ library support
19860 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19861 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19863 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19864 hardcode_direct_CXX
=yes
19865 hardcode_shlibpath_var_CXX
=no
19867 # Workaround some broken pre-1.5 toolchains
19868 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19876 # C++ shared libraries are fairly broken
19881 if test -f /usr
/libexec
/ld.so
; then
19882 hardcode_direct_CXX
=yes
19883 hardcode_shlibpath_var_CXX
=no
19884 hardcode_direct_absolute_CXX
=yes
19885 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19886 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19887 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19888 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19889 export_dynamic_flag_spec_CXX
='${wl}-E'
19890 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19892 output_verbose_link_cmd
=func_echo_all
19898 osf3
* | osf4
* | osf5
*)
19899 case $cc_basename in
19901 # Kuck and Associates, Inc. (KAI) C++ Compiler
19903 # KCC will only create a shared library if the output file
19904 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19905 # to its proper name (with version) after linking.
19906 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'
19908 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19909 hardcode_libdir_separator_CXX
=:
19911 # Archives containing C++ object files must be created using
19912 # the KAI C++ compiler.
19914 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19915 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19919 # Rational C++ 2.4.1
19920 # FIXME: insert proper C++ library support
19926 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19927 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'
19928 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19931 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19932 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'
19933 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19934 echo "-hidden">> $lib.exp~
19935 $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~
19937 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19941 hardcode_libdir_separator_CXX
=:
19943 # Commands to make compiler produce verbose output that lists
19944 # what "hidden" libraries, object files and flags are used when
19945 # linking a shared library.
19947 # There doesn't appear to be a way to prevent this compiler from
19948 # explicitly linking system object files so we need to strip them
19949 # from the output so that they don't get included in the library
19951 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"'
19954 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19955 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19958 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'
19961 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'
19965 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19966 hardcode_libdir_separator_CXX
=:
19968 # Commands to make compiler produce verbose output that lists
19969 # what "hidden" libraries, object files and flags are used when
19970 # linking a shared library.
19971 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19974 # FIXME: insert proper C++ library support
19982 # FIXME: insert proper C++ library support
19987 case $cc_basename in
19990 # FIXME: insert proper C++ library support
19995 # FIXME: insert proper C++ library support
19999 # FIXME: insert proper C++ library support
20006 case $cc_basename in
20008 # Sun C++ 4.2, 5.x and Centerline C++
20009 archive_cmds_need_lc_CXX
=yes
20010 no_undefined_flag_CXX
=' -zdefs'
20011 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20012 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20013 $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'
20015 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20016 hardcode_shlibpath_var_CXX
=no
20018 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20020 # The compiler driver will combine and reorder linker options,
20021 # but understands `-z linker_flag'.
20022 # Supported since Solaris 2.6 (maybe 2.5.1?)
20023 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
20026 link_all_deplibs_CXX
=yes
20028 output_verbose_link_cmd
='func_echo_all'
20030 # Archives containing C++ object files must be created using
20031 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20032 # necessary to make sure instantiated templates are included
20034 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20037 # Green Hills C++ Compiler
20038 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20040 # The C++ compiler must be used to create the archive.
20041 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20044 # GNU C++ compiler with Solaris linker
20045 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20046 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
20047 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
20048 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20049 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20050 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20052 # Commands to make compiler produce verbose output that lists
20053 # what "hidden" libraries, object files and flags are used when
20054 # linking a shared library.
20055 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20057 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20059 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20060 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20061 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20063 # Commands to make compiler produce verbose output that lists
20064 # what "hidden" libraries, object files and flags are used when
20065 # linking a shared library.
20066 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20069 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20071 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20073 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20081 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20082 no_undefined_flag_CXX
='${wl}-z,text'
20083 archive_cmds_need_lc_CXX
=no
20084 hardcode_shlibpath_var_CXX
=no
20085 runpath_var
='LD_RUN_PATH'
20087 case $cc_basename in
20089 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20090 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20093 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20094 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20099 sysv5
* | sco3.2v5
* | sco5v6
*)
20100 # Note: We can NOT use -z defs as we might desire, because we do not
20101 # link with -lc, and that would cause any symbols used from libc to
20102 # always be unresolved, which means just about no library would
20103 # ever link correctly. If we're not using GNU ld we use -z text
20104 # though, which does catch some bad symbols but isn't as heavy-handed
20106 no_undefined_flag_CXX
='${wl}-z,text'
20107 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20108 archive_cmds_need_lc_CXX
=no
20109 hardcode_shlibpath_var_CXX
=no
20110 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20111 hardcode_libdir_separator_CXX
=':'
20112 link_all_deplibs_CXX
=yes
20113 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20114 runpath_var
='LD_RUN_PATH'
20116 case $cc_basename in
20118 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20119 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20120 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20121 '"$old_archive_cmds_CXX"
20122 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20123 '"$reload_cmds_CXX"
20126 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20127 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20133 case $cc_basename in
20135 # NonStop-UX NCC 3.20
20136 # FIXME: insert proper C++ library support
20140 # FIXME: insert proper C++ library support
20147 # FIXME: insert proper C++ library support
20152 # FIXME: insert proper C++ library support
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20158 $as_echo "$ld_shlibs_CXX" >&6; }
20159 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20165 ## There is no encapsulation within the following macros, do not change
20166 ## the running order or otherwise move them around unless you know exactly
20167 ## what you are doing...
20168 # Dependencies to place before and after the object being linked:
20169 predep_objects_CXX
=
20170 postdep_objects_CXX
=
20173 compiler_lib_search_path_CXX
=
20175 cat > conftest.
$ac_ext <<_LT_EOF
20179 Foo (void) { a = 0; }
20185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20186 (eval $ac_compile) 2>&5
20188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20189 test $ac_status = 0; }; then
20190 # Parse the compiler output and extract the necessary
20191 # objects, libraries and library flags.
20193 # Sentinel used to keep track of whether or not we are before
20194 # the conftest object file.
20195 pre_test_object_deps_done
=no
20197 for p
in `eval "$output_verbose_link_cmd"`; do
20201 # Some compilers place space between "-{L,R}" and the path.
20202 # Remove the space.
20203 if test $p = "-L" ||
20204 test $p = "-R"; then
20211 if test "$pre_test_object_deps_done" = no
; then
20214 # Internal compiler library paths should come after those
20215 # provided the user. The postdeps already come after the
20216 # user supplied libs so there is no need to process them.
20217 if test -z "$compiler_lib_search_path_CXX"; then
20218 compiler_lib_search_path_CXX
="${prev}${p}"
20220 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20223 # The "-l" case would never come before the object being
20224 # linked, so don't bother handling this case.
20227 if test -z "$postdeps_CXX"; then
20228 postdeps_CXX
="${prev}${p}"
20230 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20236 # This assumes that the test object file only shows up
20237 # once in the compiler output.
20238 if test "$p" = "conftest.$objext"; then
20239 pre_test_object_deps_done
=yes
20243 if test "$pre_test_object_deps_done" = no
; then
20244 if test -z "$predep_objects_CXX"; then
20245 predep_objects_CXX
="$p"
20247 predep_objects_CXX
="$predep_objects_CXX $p"
20250 if test -z "$postdep_objects_CXX"; then
20251 postdep_objects_CXX
="$p"
20253 postdep_objects_CXX
="$postdep_objects_CXX $p"
20258 *) ;; # Ignore the rest.
20266 echo "libtool.m4: error: problem compiling CXX test program"
20269 $RM -f confest.
$objext
20271 # PORTME: override above test on systems where it is broken
20274 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20275 # hack all around it, let's just trust "g++" to DTRT.
20276 predep_objects_CXX
=
20277 postdep_objects_CXX
=
20282 case `$CC -V 2>&1 | sed 5q` in
20286 # The more standards-conforming stlport4 library is
20287 # incompatible with the Cstd library. Avoid specifying
20288 # it if it's in CXXFLAGS. Ignore libCrun as
20289 # -library=stlport4 depends on it.
20290 case " $CXX $CXXFLAGS " in
20291 *" -library=stlport4 "*)
20292 solaris_use_stlport4
=yes
20296 if test "$solaris_use_stlport4" != yes; then
20297 postdeps_CXX
='-library=Cstd -library=Crun'
20304 case $cc_basename in
20306 # The more standards-conforming stlport4 library is
20307 # incompatible with the Cstd library. Avoid specifying
20308 # it if it's in CXXFLAGS. Ignore libCrun as
20309 # -library=stlport4 depends on it.
20310 case " $CXX $CXXFLAGS " in
20311 *" -library=stlport4 "*)
20312 solaris_use_stlport4
=yes
20316 # Adding this requires a known-good setup of shared libraries for
20317 # Sun compiler versions before 5.6, else PIC objects from an old
20318 # archive will be linked into the output, leading to subtle bugs.
20319 if test "$solaris_use_stlport4" != yes; then
20320 postdeps_CXX
='-library=Cstd -library=Crun'
20328 case " $postdeps_CXX " in
20329 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20331 compiler_lib_search_dirs_CXX
=
20332 if test -n "${compiler_lib_search_path_CXX}"; then
20333 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20366 lt_prog_compiler_wl_CXX
=
20367 lt_prog_compiler_pic_CXX
=
20368 lt_prog_compiler_static_CXX
=
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20371 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20373 # C++ specific cases for pic, static, wl, etc.
20374 if test "$GXX" = yes; then
20375 lt_prog_compiler_wl_CXX
='-Wl,'
20376 lt_prog_compiler_static_CXX
='-static'
20380 # All AIX code is PIC.
20381 if test "$host_cpu" = ia64
; then
20382 # AIX 5 now supports IA64 processor
20383 lt_prog_compiler_static_CXX
='-Bstatic'
20385 lt_prog_compiler_pic_CXX
='-fPIC'
20391 # see comment about AmigaOS4 .so support
20392 lt_prog_compiler_pic_CXX
='-fPIC'
20395 # FIXME: we need at least 68020 code to build shared libraries, but
20396 # adding the `-m68020' flag to GCC prevents building anything better,
20398 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20403 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20404 # PIC is the default for these OSes.
20406 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20407 # This hack is so that the source file can tell whether it is being
20408 # built for inclusion in a dll (and should export symbols for example).
20409 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20410 # (--disable-auto-import) libraries
20411 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20413 darwin
* | rhapsody
*)
20414 # PIC is the default on this platform
20415 # Common symbols not allowed in MH_DYLIB files
20416 lt_prog_compiler_pic_CXX
='-fno-common'
20419 # DJGPP does not support shared libraries at all
20420 lt_prog_compiler_pic_CXX
=
20423 # PIC is the default for Haiku.
20424 # The "-static" flag exists, but is broken.
20425 lt_prog_compiler_static_CXX
=
20428 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20429 # Instead, we relocate shared libraries at runtime.
20432 if test -d /usr
/nec
; then
20433 lt_prog_compiler_pic_CXX
=-Kconform_pic
20437 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20438 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20439 # sets the default TLS model and affects inlining.
20444 lt_prog_compiler_pic_CXX
='-fPIC'
20449 # QNX uses GNU C++, but need to define -shared option too, otherwise
20450 # it will coredump.
20451 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20454 lt_prog_compiler_pic_CXX
='-fPIC'
20460 # All AIX code is PIC.
20461 if test "$host_cpu" = ia64
; then
20462 # AIX 5 now supports IA64 processor
20463 lt_prog_compiler_static_CXX
='-Bstatic'
20465 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20469 case $cc_basename in
20471 # Green Hills C++ Compiler
20472 # _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"
20477 case $cc_basename in
20479 lt_prog_compiler_pic_CXX
='-KPIC'
20482 # Green Hills C++ Compiler
20483 lt_prog_compiler_pic_CXX
='-pic'
20489 freebsd
* | dragonfly
*)
20490 # FreeBSD uses GNU C++
20492 hpux9
* | hpux10
* | hpux11
*)
20493 case $cc_basename in
20495 lt_prog_compiler_wl_CXX
='-Wl,'
20496 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20497 if test "$host_cpu" != ia64
; then
20498 lt_prog_compiler_pic_CXX
='+Z'
20502 lt_prog_compiler_wl_CXX
='-Wl,'
20503 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20509 lt_prog_compiler_pic_CXX
='+Z'
20518 # This is c89, which is MS Visual C++ (no shared libs)
20519 # Anyone wants to do a port?
20521 irix5
* | irix6
* | nonstopux
*)
20522 case $cc_basename in
20524 lt_prog_compiler_wl_CXX
='-Wl,'
20525 lt_prog_compiler_static_CXX
='-non_shared'
20526 # CC pic flag -KPIC is the default.
20532 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20533 case $cc_basename in
20536 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20537 lt_prog_compiler_pic_CXX
='-fPIC'
20540 # old Intel C++ for x86_64 which still supported -KPIC.
20541 lt_prog_compiler_wl_CXX
='-Wl,'
20542 lt_prog_compiler_pic_CXX
='-KPIC'
20543 lt_prog_compiler_static_CXX
='-static'
20546 # Intel C++, used to be incompatible with GCC.
20547 # ICC 10 doesn't accept -KPIC any more.
20548 lt_prog_compiler_wl_CXX
='-Wl,'
20549 lt_prog_compiler_pic_CXX
='-fPIC'
20550 lt_prog_compiler_static_CXX
='-static'
20553 # Portland Group C++ compiler
20554 lt_prog_compiler_wl_CXX
='-Wl,'
20555 lt_prog_compiler_pic_CXX
='-fpic'
20556 lt_prog_compiler_static_CXX
='-Bstatic'
20560 # Make sure the PIC flag is empty. It appears that all Alpha
20561 # Linux and Compaq Tru64 Unix objects are PIC.
20562 lt_prog_compiler_pic_CXX
=
20563 lt_prog_compiler_static_CXX
='-non_shared'
20565 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20566 # IBM XL 8.0, 9.0 on PPC and BlueGene
20567 lt_prog_compiler_wl_CXX
='-Wl,'
20568 lt_prog_compiler_pic_CXX
='-qpic'
20569 lt_prog_compiler_static_CXX
='-qstaticlink'
20572 case `$CC -V 2>&1 | sed 5q` in
20575 lt_prog_compiler_pic_CXX
='-KPIC'
20576 lt_prog_compiler_static_CXX
='-Bstatic'
20577 lt_prog_compiler_wl_CXX
='-Qoption ld '
20588 case $cc_basename in
20590 lt_prog_compiler_pic_CXX
='-W c,exportall'
20599 # QNX uses GNU C++, but need to define -shared option too, otherwise
20600 # it will coredump.
20601 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20603 osf3
* | osf4
* | osf5
*)
20604 case $cc_basename in
20606 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20609 # Rational C++ 2.4.1
20610 lt_prog_compiler_pic_CXX
='-pic'
20613 # Digital/Compaq C++
20614 lt_prog_compiler_wl_CXX
='-Wl,'
20615 # Make sure the PIC flag is empty. It appears that all Alpha
20616 # Linux and Compaq Tru64 Unix objects are PIC.
20617 lt_prog_compiler_pic_CXX
=
20618 lt_prog_compiler_static_CXX
='-non_shared'
20627 case $cc_basename in
20629 # Sun C++ 4.2, 5.x and Centerline C++
20630 lt_prog_compiler_pic_CXX
='-KPIC'
20631 lt_prog_compiler_static_CXX
='-Bstatic'
20632 lt_prog_compiler_wl_CXX
='-Qoption ld '
20635 # Green Hills C++ Compiler
20636 lt_prog_compiler_pic_CXX
='-PIC'
20643 case $cc_basename in
20646 lt_prog_compiler_pic_CXX
='-pic'
20647 lt_prog_compiler_static_CXX
='-Bstatic'
20651 lt_prog_compiler_pic_CXX
='-pic'
20657 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20658 case $cc_basename in
20660 lt_prog_compiler_wl_CXX
='-Wl,'
20661 lt_prog_compiler_pic_CXX
='-KPIC'
20662 lt_prog_compiler_static_CXX
='-Bstatic'
20667 case $cc_basename in
20669 # NonStop-UX NCC 3.20
20670 lt_prog_compiler_pic_CXX
='-KPIC'
20679 lt_prog_compiler_can_build_shared_CXX
=no
20685 # For platforms which do not support PIC, -DPIC is meaningless:
20687 lt_prog_compiler_pic_CXX
=
20690 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20694 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20699 # Check to make sure the PIC flag actually works.
20701 if test -n "$lt_prog_compiler_pic_CXX"; then
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20703 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20704 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20705 $as_echo_n "(cached) " >&6
20707 lt_cv_prog_compiler_pic_works_CXX
=no
20708 ac_outfile
=conftest.
$ac_objext
20709 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20710 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20711 # Insert the option either (1) after the last *FLAGS variable, or
20712 # (2) before a word containing "conftest.", or (3) at the end.
20713 # Note that $ac_compile itself does not contain backslashes and begins
20714 # with a dollar sign (not a hyphen), so the echo should work correctly.
20715 # The option is referenced via a variable to avoid confusing sed.
20716 lt_compile
=`echo "$ac_compile" | $SED \
20717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20719 -e 's:$: $lt_compiler_flag:'`
20720 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20721 (eval "$lt_compile" 2>conftest.err
)
20723 cat conftest.err
>&5
20724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725 if (exit $ac_status) && test -s "$ac_outfile"; then
20726 # The compiler can only warn and ignore the option if not recognized
20727 # So say no if there are warnings other than the usual output.
20728 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20729 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20730 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20731 lt_cv_prog_compiler_pic_works_CXX
=yes
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20738 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20740 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20741 case $lt_prog_compiler_pic_CXX in
20743 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20746 lt_prog_compiler_pic_CXX
=
20747 lt_prog_compiler_can_build_shared_CXX
=no
20755 # Check to make sure the static flag actually works.
20757 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20759 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20760 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20761 $as_echo_n "(cached) " >&6
20763 lt_cv_prog_compiler_static_works_CXX
=no
20764 save_LDFLAGS
="$LDFLAGS"
20765 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20766 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20767 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20768 # The linker can only warn and ignore the option if not recognized
20769 # So say no if there are warnings
20770 if test -s conftest.err
; then
20771 # Append any errors to the config.log.
20772 cat conftest.err
1>&5
20773 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20774 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20775 if diff conftest.exp conftest.er2
>/dev
/null
; then
20776 lt_cv_prog_compiler_static_works_CXX
=yes
20779 lt_cv_prog_compiler_static_works_CXX
=yes
20783 LDFLAGS
="$save_LDFLAGS"
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20787 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20789 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20792 lt_prog_compiler_static_CXX
=
20798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20799 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20800 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20801 $as_echo_n "(cached) " >&6
20803 lt_cv_prog_compiler_c_o_CXX
=no
20804 $RM -r conftest
2>/dev
/null
20808 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20810 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20811 # Insert the option either (1) after the last *FLAGS variable, or
20812 # (2) before a word containing "conftest.", or (3) at the end.
20813 # Note that $ac_compile itself does not contain backslashes and begins
20814 # with a dollar sign (not a hyphen), so the echo should work correctly.
20815 lt_compile
=`echo "$ac_compile" | $SED \
20816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20818 -e 's:$: $lt_compiler_flag:'`
20819 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20820 (eval "$lt_compile" 2>out
/conftest.err
)
20822 cat out
/conftest.err
>&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20826 # The compiler can only warn and ignore the option if not recognized
20827 # So say no if there are warnings
20828 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20829 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20830 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20831 lt_cv_prog_compiler_c_o_CXX
=yes
20836 # SGI C++ compiler will create directory out/ii_files/ for
20837 # template instantiation
20838 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20839 $RM out
/* && rmdir out
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20846 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20851 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20852 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20853 $as_echo_n "(cached) " >&6
20855 lt_cv_prog_compiler_c_o_CXX
=no
20856 $RM -r conftest
2>/dev
/null
20860 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20862 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20863 # Insert the option either (1) after the last *FLAGS variable, or
20864 # (2) before a word containing "conftest.", or (3) at the end.
20865 # Note that $ac_compile itself does not contain backslashes and begins
20866 # with a dollar sign (not a hyphen), so the echo should work correctly.
20867 lt_compile
=`echo "$ac_compile" | $SED \
20868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20870 -e 's:$: $lt_compiler_flag:'`
20871 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20872 (eval "$lt_compile" 2>out
/conftest.err
)
20874 cat out
/conftest.err
>&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20878 # The compiler can only warn and ignore the option if not recognized
20879 # So say no if there are warnings
20880 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20881 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20882 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20883 lt_cv_prog_compiler_c_o_CXX
=yes
20888 # SGI C++ compiler will create directory out/ii_files/ for
20889 # template instantiation
20890 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20891 $RM out
/* && rmdir out
20897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20898 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20903 hard_links
="nottested"
20904 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20905 # do not overwrite the value of need_locks provided by the user
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20907 $as_echo_n "checking if we can lock with hard links... " >&6; }
20910 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20912 ln conftest.a conftest.b
2>&5 || hard_links
=no
20913 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20915 $as_echo "$hard_links" >&6; }
20916 if test "$hard_links" = no
; then
20917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20918 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20928 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20930 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20933 # If we're using GNU nm, then we don't want the "-C" option.
20934 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20935 # Also, AIX nm treats weak defined symbols like other global defined
20936 # symbols, whereas GNU nm marks them as "W".
20937 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20938 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'
20940 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'
20944 export_symbols_cmds_CXX
="$ltdll_cmds"
20946 cygwin
* | mingw
* | cegcc
*)
20947 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'
20950 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20953 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20956 $as_echo "$ld_shlibs_CXX" >&6; }
20957 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20959 with_gnu_ld_CXX
=$with_gnu_ld
20967 # Do we need to explicitly link libc?
20969 case "x$archive_cmds_need_lc_CXX" in
20971 # Assume -lc should be added
20972 archive_cmds_need_lc_CXX
=yes
20974 if test "$enable_shared" = yes && test "$GCC" = yes; then
20975 case $archive_cmds_CXX in
20977 # FIXME: we may have to deal with multi-command sequences.
20980 # Test whether the compiler implicitly links with -lc since on some
20981 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20982 # to ld, don't add -lc before -lgcc.
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20984 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20985 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20986 $as_echo_n "(cached) " >&6
20989 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20992 (eval $ac_compile) 2>&5
20994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20995 test $ac_status = 0; } 2>conftest.err
; then
20998 libobjs
=conftest.
$ac_objext
21000 wl
=$lt_prog_compiler_wl_CXX
21001 pic_flag
=$lt_prog_compiler_pic_CXX
21007 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
21008 allow_undefined_flag_CXX
=
21009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21010 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
21012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21013 test $ac_status = 0; }
21015 lt_cv_archive_cmds_need_lc_CXX
=no
21017 lt_cv_archive_cmds_need_lc_CXX
=yes
21019 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
21021 cat conftest.err
1>&5
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21027 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21028 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21099 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21101 library_names_spec
=
21102 libname_spec
='lib$name'
21106 postuninstall_cmds
=
21110 shlibpath_overrides_runpath
=unknown
21112 dynamic_linker
="$host_os ld.so"
21113 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21114 need_lib_prefix
=unknown
21115 hardcode_into_libs
=no
21117 # when you set need_version to no, make sure it does not cause -set_version
21118 # flags to be left without arguments
21119 need_version
=unknown
21124 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21125 shlibpath_var
=LIBPATH
21127 # AIX 3 has no versioning support, so we append a major version to the name.
21128 soname_spec
='${libname}${release}${shared_ext}$major'
21135 hardcode_into_libs
=yes
21136 if test "$host_cpu" = ia64
; then
21137 # AIX 5 supports IA64
21138 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21139 shlibpath_var
=LD_LIBRARY_PATH
21141 # With GCC up to 2.95.x, collect2 would create an import file
21142 # for dependence libraries. The import file would start with
21143 # the line `#! .'. This would cause the generated library to
21144 # depend on `.', always an invalid library. This was fixed in
21145 # development snapshots of GCC prior to 3.0.
21147 aix4 | aix4.
[01] | aix4.
[01].
*)
21148 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21150 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21153 can_build_shared
=no
21157 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21158 # soname into executable. Probably we can add versioning support to
21159 # collect2, so additional links can be useful in future.
21160 if test "$aix_use_runtimelinking" = yes; then
21161 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21162 # instead of lib<name>.a to let people know that these are not
21163 # typical AIX shared libraries.
21164 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21166 # We preserve .a as extension for shared libraries through AIX4.2
21167 # and later when we are not doing run time linking.
21168 library_names_spec
='${libname}${release}.a $libname.a'
21169 soname_spec
='${libname}${release}${shared_ext}$major'
21171 shlibpath_var
=LIBPATH
21178 # Since July 2007 AmigaOS4 officially supports .so libraries.
21179 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21180 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21183 library_names_spec
='$libname.ixlibrary $libname.a'
21184 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21185 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'
21191 library_names_spec
='${libname}${shared_ext}'
21192 dynamic_linker
="$host_os ld.so"
21193 shlibpath_var
=LIBRARY_PATH
21199 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21200 soname_spec
='${libname}${release}${shared_ext}$major'
21201 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21202 shlibpath_var
=LD_LIBRARY_PATH
21203 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21204 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21205 # the default ld.so.conf also contains /usr/contrib/lib and
21206 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21207 # libtool to hard-code these into programs
21210 cygwin
* | mingw
* | pw32
* | cegcc
*)
21211 version_type
=windows
21216 case $GCC,$host_os in
21217 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21218 library_names_spec
='$libname.dll.a'
21219 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21220 postinstall_cmds
='base_file=`basename \${file}`~
21221 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21222 dldir=$destdir/`dirname \$dlpath`~
21223 test -d \$dldir || mkdir -p \$dldir~
21224 $install_prog $dir/$dlname \$dldir/$dlname~
21225 chmod a+x \$dldir/$dlname~
21226 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21227 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21229 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21230 dlpath=$dir/\$dldll~
21232 shlibpath_overrides_runpath
=yes
21236 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21237 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21241 # MinGW DLLs use traditional 'lib' prefix
21242 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21245 # pw32 DLLs use 'pw' prefix rather than 'lib'
21246 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21252 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21255 dynamic_linker
='Win32 ld.exe'
21256 # FIXME: first we should search . and the directory the executable is in
21260 darwin
* | rhapsody
*)
21261 dynamic_linker
="$host_os dyld"
21262 version_type
=darwin
21265 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21266 soname_spec
='${libname}${release}${major}$shared_ext'
21267 shlibpath_overrides_runpath
=yes
21268 shlibpath_var
=DYLD_LIBRARY_PATH
21269 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21271 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21278 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21279 soname_spec
='${libname}${release}${shared_ext}$major'
21280 shlibpath_var
=LD_LIBRARY_PATH
21283 freebsd
* | dragonfly
*)
21284 # DragonFly does not have aout. When/if they implement a new
21285 # versioning mechanism, adjust this.
21286 if test -x /usr
/bin
/objformat
; then
21287 objformat
=`/usr/bin/objformat`
21290 freebsd
[23].
*) objformat
=aout
;;
21291 *) objformat
=elf
;;
21294 version_type
=freebsd-
$objformat
21295 case $version_type in
21297 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21302 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21306 shlibpath_var
=LD_LIBRARY_PATH
21309 shlibpath_overrides_runpath
=yes
21311 freebsd3.
[01]* | freebsdelf3.
[01]*)
21312 shlibpath_overrides_runpath
=yes
21313 hardcode_into_libs
=yes
21315 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21316 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21317 shlibpath_overrides_runpath
=no
21318 hardcode_into_libs
=yes
21320 *) # from 4.6 on, and DragonFly
21321 shlibpath_overrides_runpath
=yes
21322 hardcode_into_libs
=yes
21331 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21332 soname_spec
='${libname}${release}${shared_ext}$major'
21333 shlibpath_var
=LD_LIBRARY_PATH
21334 hardcode_into_libs
=yes
21341 dynamic_linker
="$host_os runtime_loader"
21342 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21343 soname_spec
='${libname}${release}${shared_ext}$major'
21344 shlibpath_var
=LIBRARY_PATH
21345 shlibpath_overrides_runpath
=yes
21346 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21347 hardcode_into_libs
=yes
21350 hpux9
* | hpux10
* | hpux11
*)
21351 # Give a soname corresponding to the major version so that dld.sl refuses to
21352 # link against other versions.
21359 hardcode_into_libs
=yes
21360 dynamic_linker
="$host_os dld.so"
21361 shlibpath_var
=LD_LIBRARY_PATH
21362 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21363 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21364 soname_spec
='${libname}${release}${shared_ext}$major'
21365 if test "X$HPUX_IA64_MODE" = X32
; then
21366 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21368 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21370 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21374 hardcode_into_libs
=yes
21375 dynamic_linker
="$host_os dld.sl"
21376 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21377 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21378 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21379 soname_spec
='${libname}${release}${shared_ext}$major'
21380 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21381 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21385 dynamic_linker
="$host_os dld.sl"
21386 shlibpath_var
=SHLIB_PATH
21387 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21388 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21389 soname_spec
='${libname}${release}${shared_ext}$major'
21392 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21393 postinstall_cmds
='chmod 555 $lib'
21394 # or fails outright, so override atomically:
21395 install_override_mode
=555
21402 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21403 soname_spec
='${libname}${release}${shared_ext}$major'
21404 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21405 shlibpath_var
=LD_LIBRARY_PATH
21406 shlibpath_overrides_runpath
=no
21407 hardcode_into_libs
=yes
21410 irix5
* | irix6
* | nonstopux
*)
21412 nonstopux
*) version_type
=nonstopux
;;
21414 if test "$lt_cv_prog_gnu_ld" = yes; then
21422 soname_spec
='${libname}${release}${shared_ext}$major'
21423 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21425 irix5
* | nonstopux
*)
21426 libsuff
= shlibsuff
=
21429 case $LD in # libtool.m4 will add one of these switches to LD
21430 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21431 libsuff
= shlibsuff
= libmagic
=32-bit;;
21432 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21433 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21434 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21435 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21436 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21440 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21441 shlibpath_overrides_runpath
=no
21442 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21443 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21444 hardcode_into_libs
=yes
21447 # No shared lib support for Linux oldld, aout, or coff.
21448 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21452 # This must be Linux ELF.
21453 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21457 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21458 soname_spec
='${libname}${release}${shared_ext}$major'
21459 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21460 shlibpath_var
=LD_LIBRARY_PATH
21461 shlibpath_overrides_runpath
=no
21463 # Some binutils ld are patched to set DT_RUNPATH
21464 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21465 $as_echo_n "(cached) " >&6
21467 lt_cv_shlibpath_overrides_runpath
=no
21468 save_LDFLAGS
=$LDFLAGS
21469 save_libdir
=$libdir
21470 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21471 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21473 /* end confdefs.h. */
21483 if ac_fn_cxx_try_link
"$LINENO"; then :
21484 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21485 lt_cv_shlibpath_overrides_runpath
=yes
21488 rm -f core conftest.err conftest.
$ac_objext \
21489 conftest
$ac_exeext conftest.
$ac_ext
21490 LDFLAGS
=$save_LDFLAGS
21491 libdir
=$save_libdir
21495 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21497 # This implies no fast_install, which is unacceptable.
21498 # Some rework will be needed to allow for fast_install
21499 # before this can be enabled.
21500 hardcode_into_libs
=yes
21502 # Append ld.so.conf contents to the search path
21503 if test -f /etc
/ld.so.conf
; then
21504 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' ' '`
21505 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21508 # We used to test for /lib/ld.so.1 and disable shared libraries on
21509 # powerpc, because MkLinux only supported shared libraries with the
21510 # GNU dynamic linker. Since this was broken with cross compilers,
21511 # most powerpc-linux boxes support dynamic linking these days and
21512 # people can always --disable-shared, the test was removed, and we
21513 # assume the GNU/Linux dynamic linker is in use.
21514 dynamic_linker
='GNU/Linux ld.so'
21521 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21522 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21523 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21524 dynamic_linker
='NetBSD (a.out) ld.so'
21526 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21527 soname_spec
='${libname}${release}${shared_ext}$major'
21528 dynamic_linker
='NetBSD ld.elf_so'
21530 shlibpath_var
=LD_LIBRARY_PATH
21531 shlibpath_overrides_runpath
=yes
21532 hardcode_into_libs
=yes
21537 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21538 shlibpath_var
=LD_LIBRARY_PATH
21539 shlibpath_overrides_runpath
=yes
21546 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21547 soname_spec
='${libname}${release}${shared_ext}$major'
21548 shlibpath_var
=LD_LIBRARY_PATH
21549 shlibpath_overrides_runpath
=no
21550 hardcode_into_libs
=yes
21551 dynamic_linker
='ldqnx.so'
21556 sys_lib_dlsearch_path_spec
="/usr/lib"
21558 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21560 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21561 *) need_version
=no
;;
21563 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21564 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21565 shlibpath_var
=LD_LIBRARY_PATH
21566 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21568 openbsd2.
[89] | openbsd2.
[89].
*)
21569 shlibpath_overrides_runpath
=no
21572 shlibpath_overrides_runpath
=yes
21576 shlibpath_overrides_runpath
=yes
21581 libname_spec
='$name'
21584 library_names_spec
='$libname${shared_ext} $libname.a'
21585 dynamic_linker
='OS/2 ld.exe'
21586 shlibpath_var
=LIBPATH
21589 osf3
* | osf4
* | osf5
*)
21593 soname_spec
='${libname}${release}${shared_ext}$major'
21594 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21595 shlibpath_var
=LD_LIBRARY_PATH
21596 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21597 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21608 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21609 soname_spec
='${libname}${release}${shared_ext}$major'
21610 shlibpath_var
=LD_LIBRARY_PATH
21611 shlibpath_overrides_runpath
=yes
21612 hardcode_into_libs
=yes
21613 # ldd complains unless libraries are executable
21614 postinstall_cmds
='chmod +x $lib'
21619 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21620 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21621 shlibpath_var
=LD_LIBRARY_PATH
21622 shlibpath_overrides_runpath
=yes
21623 if test "$with_gnu_ld" = yes; then
21631 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21632 soname_spec
='${libname}${release}${shared_ext}$major'
21633 shlibpath_var
=LD_LIBRARY_PATH
21634 case $host_vendor in
21636 shlibpath_overrides_runpath
=no
21638 runpath_var
=LD_RUN_PATH
21646 shlibpath_overrides_runpath
=no
21647 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21653 if test -d /usr
/nec
;then
21655 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21656 soname_spec
='$libname${shared_ext}.$major'
21657 shlibpath_var
=LD_LIBRARY_PATH
21661 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21662 version_type
=freebsd-elf
21665 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21666 soname_spec
='${libname}${release}${shared_ext}$major'
21667 shlibpath_var
=LD_LIBRARY_PATH
21668 shlibpath_overrides_runpath
=yes
21669 hardcode_into_libs
=yes
21670 if test "$with_gnu_ld" = yes; then
21671 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21673 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21676 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21680 sys_lib_dlsearch_path_spec
='/usr/lib'
21684 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21688 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21689 shlibpath_var
=LD_LIBRARY_PATH
21690 shlibpath_overrides_runpath
=no
21691 hardcode_into_libs
=yes
21696 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21697 soname_spec
='${libname}${release}${shared_ext}$major'
21698 shlibpath_var
=LD_LIBRARY_PATH
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21706 $as_echo "$dynamic_linker" >&6; }
21707 test "$dynamic_linker" = no
&& can_build_shared
=no
21709 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21710 if test "$GCC" = yes; then
21711 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21714 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21715 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21717 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21718 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21759 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21760 hardcode_action_CXX
=
21761 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21762 test -n "$runpath_var_CXX" ||
21763 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21765 # We can hardcode non-existent directories.
21766 if test "$hardcode_direct_CXX" != no
&&
21767 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21768 # have to relink, otherwise we might link with an installed library
21769 # when we should be linking with a yet-to-be-installed one
21770 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21771 test "$hardcode_minus_L_CXX" != no
; then
21772 # Linking always hardcodes the temporary library directory.
21773 hardcode_action_CXX
=relink
21775 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21776 hardcode_action_CXX
=immediate
21779 # We cannot hardcode anything, or else we can only hardcode existing
21781 hardcode_action_CXX
=unsupported
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21784 $as_echo "$hardcode_action_CXX" >&6; }
21786 if test "$hardcode_action_CXX" = relink ||
21787 test "$inherit_rpath_CXX" = yes; then
21788 # Fast installation is not supported
21789 enable_fast_install
=no
21790 elif test "$shlibpath_overrides_runpath" = yes ||
21791 test "$enable_shared" = no
; then
21792 # Fast installation is not necessary
21793 enable_fast_install
=needless
21802 fi # test -n "$compiler"
21808 with_gnu_ld
=$lt_save_with_gnu_ld
21809 lt_cv_path_LDCXX
=$lt_cv_path_LD
21810 lt_cv_path_LD
=$lt_save_path_LD
21811 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21812 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21813 fi # test "$_lt_caught_CXX_error" != yes
21816 ac_cpp
='$CXXCPP $CPPFLAGS'
21817 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21818 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21819 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21836 # Only expand once:
21842 # Identify the assembler which will work hand-in-glove with the newly
21843 # built GCC, so that we can examine its features. This is the assembler
21844 # which will be driven by the driver program.
21846 # If build != host, and we aren't building gas in-tree, we identify a
21847 # build->target assembler and hope that it will have the same features
21848 # as the host->target assembler we'll be using.
21849 gcc_cv_gas_major_version
=
21850 gcc_cv_gas_minor_version
=
21851 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21853 if test "${gcc_cv_as+set}" = set; then :
21857 if test -x "$DEFAULT_ASSEMBLER"; then
21858 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21859 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21860 && test -f ..
/gas
/Makefile \
21861 && test x
$build = x
$host; then
21862 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21863 elif test -x as
$build_exeext; then
21864 # Build using assembler in the current directory.
21865 gcc_cv_as
=.
/as
$build_exeext
21866 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21867 gcc_cv_as
="$AS_FOR_TARGET"
21869 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21870 set dummy
$AS_FOR_TARGET; ac_word
=$2
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21872 $as_echo_n "checking for $ac_word... " >&6; }
21873 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21874 $as_echo_n "(cached) " >&6
21878 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21881 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21882 for as_dir
in $PATH
21885 test -z "$as_dir" && as_dir
=.
21886 for ac_exec_ext
in '' $ac_executable_extensions; do
21887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21888 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21899 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21900 if test -n "$gcc_cv_as"; then
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21902 $as_echo "$gcc_cv_as" >&6; }
21904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21905 $as_echo "no" >&6; }
21912 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21914 case "$ORIGINAL_AS_FOR_TARGET" in
21915 .
/as | .
/as
$build_exeext) ;;
21916 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21921 $as_echo_n "checking what assembler to use... " >&6; }
21922 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21923 # Single tree build which includes gas. We want to prefer it
21924 # over whatever linker top-level may have detected, since
21925 # we'll use what we're building after installation anyway.
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21927 $as_echo "newly built gas" >&6; }
21929 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21930 for f
in $gcc_cv_as_bfd_srcdir/configure \
21931 $gcc_cv_as_gas_srcdir/configure \
21932 $gcc_cv_as_gas_srcdir/configure.ac \
21933 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21934 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21935 if test x
$gcc_cv_gas_version != x
; then
21939 case $gcc_cv_gas_version in
21941 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21943 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21944 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21945 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21946 case $gcc_cv_gas_patch_version in
21947 "") gcc_cv_gas_patch_version
="0" ;;
21949 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21950 + $gcc_cv_gas_minor_version \) \* 1000 \
21951 + $gcc_cv_gas_patch_version`
21953 in_tree_gas_is_elf
=no
21954 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21955 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21956 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21958 in_tree_gas_is_elf
=yes
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21962 $as_echo "$gcc_cv_as" >&6; }
21967 # Check whether --enable-ld was given.
21968 if test "${enable_ld+set}" = set; then :
21969 enableval
=$enable_ld; case "${enableval}" in
21977 install_gold_as_default
=no
21978 # Check whether --enable-gold was given.
21979 if test "${enable_gold+set}" = set; then :
21980 enableval
=$enable_gold; case "${enableval}" in
21982 install_gold_as_default
=yes
21985 if test x
${default_ld} != x
; then
21986 install_gold_as_default
=yes
21992 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21998 # Identify the linker which will work hand-in-glove with the newly
21999 # built GCC, so that we can examine its features. This is the linker
22000 # which will be driven by the driver program.
22002 # If build != host, and we aren't building gas in-tree, we identify a
22003 # build->target linker and hope that it will have the same features
22004 # as the host->target linker we'll be using.
22005 gcc_cv_gld_major_version
=
22006 gcc_cv_gld_minor_version
=
22007 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22008 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22009 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22011 if test "${gcc_cv_ld+set}" = set; then :
22015 if test -x "$DEFAULT_LINKER"; then
22016 gcc_cv_ld
="$DEFAULT_LINKER"
22017 elif test $install_gold_as_default = yes \
22018 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22019 && test -f ..
/gold
/Makefile \
22020 && test x
$build = x
$host; then
22021 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
22022 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22023 && test -f ..
/ld
/Makefile \
22024 && test x
$build = x
$host; then
22025 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
22026 elif test -x collect-ld
$build_exeext; then
22027 # Build using linker in the current directory.
22028 gcc_cv_ld
=.
/collect-ld
$build_exeext
22029 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
22030 gcc_cv_ld
="$LD_FOR_TARGET"
22032 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22033 set dummy
$LD_FOR_TARGET; ac_word
=$2
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22035 $as_echo_n "checking for $ac_word... " >&6; }
22036 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22037 $as_echo_n "(cached) " >&6
22041 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
22044 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22045 for as_dir
in $PATH
22048 test -z "$as_dir" && as_dir
=.
22049 for ac_exec_ext
in '' $ac_executable_extensions; do
22050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22051 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
22052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22062 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22063 if test -n "$gcc_cv_ld"; then
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22065 $as_echo "$gcc_cv_ld" >&6; }
22067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22068 $as_echo "no" >&6; }
22075 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22076 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22077 # if the PLUGIN_LD is set ld-new, just have it as ld
22078 # as that is the installed named.
22079 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22080 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22081 PLUGIN_LD_SUFFIX
=ld
22084 # Check whether --with-plugin-ld was given.
22085 if test "${with_plugin_ld+set}" = set; then :
22086 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22087 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22088 PLUGIN_LD_SUFFIX
="$withval"
22094 cat >>confdefs.h
<<_ACEOF
22095 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22099 # Check to see if we are using gold instead of ld
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22101 $as_echo_n "checking whether we are using gold... " >&6; }
22103 if test x
$gcc_cv_ld != x
; then
22104 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22105 |
grep "GNU gold" > /dev
/null
; then
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22110 $as_echo "$ld_is_gold" >&6; }
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22113 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22114 # Check to see if default ld is not gold, but gold is
22115 # available and has support for split stack. If gcc was configured
22116 # with gold then no checking is done.
22118 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22120 # For platforms other than powerpc64*, enable as appropriate.
22122 gold_non_default
=no
22123 ld_gold
=`which ${gcc_cv_ld}.gold`
22124 # Make sure this gold has minimal split stack support
22125 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22126 ld_vers
=`$ld_gold --version | sed 1q`
22127 gold_vers
=`echo $ld_vers | sed -n \
22128 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22130 # check that the gold version contains the complete split stack support
22131 # on powerpc64 big and little endian
22133 case "$gold_vers" in
22134 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22136 *) gold_non_default
=no
22142 if test $gold_non_default = yes; then
22144 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22149 $as_echo "$gold_non_default" >&6; }
22151 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22153 case "$ORIGINAL_LD_FOR_TARGET" in
22154 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22155 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22160 $as_echo_n "checking what linker to use... " >&6; }
22161 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22162 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22163 # Single tree build which includes ld. We want to prefer it
22164 # over whatever linker top-level may have detected, since
22165 # we'll use what we're building after installation anyway.
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22167 $as_echo "newly built ld" >&6; }
22169 in_tree_ld_is_elf
=no
22170 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22171 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22172 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22173 in_tree_ld_is_elf
=yes
22174 elif test "$ld_is_gold" = yes; then
22175 in_tree_ld_is_elf
=yes
22177 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
22179 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22180 if test x
$gcc_cv_gld_version != x
; then
22184 case $gcc_cv_gld_version in
22186 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22188 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22189 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22190 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22191 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22194 $as_echo "$gcc_cv_ld" >&6; }
22196 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22197 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22198 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22204 # Figure out what nm we will be using.
22205 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22206 if test "${gcc_cv_nm+set}" = set; then :
22210 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22211 && test -f ..
/binutils
/Makefile \
22212 && test x
$build = x
$host; then
22213 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22214 elif test -x nm
$build_exeext; then
22215 gcc_cv_nm
=.
/nm
$build_exeext
22216 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22217 gcc_cv_nm
="$NM_FOR_TARGET"
22219 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22220 set dummy
$NM_FOR_TARGET; ac_word
=$2
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22222 $as_echo_n "checking for $ac_word... " >&6; }
22223 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22224 $as_echo_n "(cached) " >&6
22228 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22231 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22232 for as_dir
in $PATH
22235 test -z "$as_dir" && as_dir
=.
22236 for ac_exec_ext
in '' $ac_executable_extensions; do
22237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22238 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22249 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22250 if test -n "$gcc_cv_nm"; then
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22252 $as_echo "$gcc_cv_nm" >&6; }
22254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22255 $as_echo "no" >&6; }
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22263 $as_echo_n "checking what nm to use... " >&6; }
22264 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22265 # Single tree build which includes binutils.
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22267 $as_echo "newly built nm" >&6; }
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22271 $as_echo "$gcc_cv_nm" >&6; }
22275 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22277 case "$ORIGINAL_NM_FOR_TARGET" in
22278 .
/nm | .
/nm
$build_exeext) ;;
22279 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22284 # Figure out what objdump we will be using.
22285 if test "${gcc_cv_objdump+set}" = set; then :
22289 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22290 && test -f ..
/binutils
/Makefile \
22291 && test x
$build = x
$host; then
22292 # Single tree build which includes binutils.
22293 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22294 elif test -x objdump
$build_exeext; then
22295 gcc_cv_objdump
=.
/objdump
$build_exeext
22296 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22297 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22299 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22300 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22302 $as_echo_n "checking for $ac_word... " >&6; }
22303 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22304 $as_echo_n "(cached) " >&6
22306 case $gcc_cv_objdump in
22308 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22312 for as_dir
in $PATH
22315 test -z "$as_dir" && as_dir
=.
22316 for ac_exec_ext
in '' $ac_executable_extensions; do
22317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22318 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22329 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22330 if test -n "$gcc_cv_objdump"; then
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22332 $as_echo "$gcc_cv_objdump" >&6; }
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22335 $as_echo "no" >&6; }
22342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22343 $as_echo_n "checking what objdump to use... " >&6; }
22344 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22345 # Single tree build which includes binutils.
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22347 $as_echo "newly built objdump" >&6; }
22348 elif test x
$gcc_cv_objdump = x
; then
22349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22350 $as_echo "not found" >&6; }
22352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22353 $as_echo "$gcc_cv_objdump" >&6; }
22356 # Figure out what readelf we will be using.
22357 if test "${gcc_cv_readelf+set}" = set; then :
22361 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22362 && test -f ..
/binutils
/Makefile \
22363 && test x
$build = x
$host; then
22364 # Single tree build which includes binutils.
22365 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22366 elif test -x readelf
$build_exeext; then
22367 gcc_cv_readelf
=.
/readelf
$build_exeext
22368 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22369 gcc_cv_readelf
="$READELF_FOR_TARGET"
22371 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22372 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22374 $as_echo_n "checking for $ac_word... " >&6; }
22375 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22376 $as_echo_n "(cached) " >&6
22378 case $gcc_cv_readelf in
22380 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22383 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22384 for as_dir
in $PATH
22387 test -z "$as_dir" && as_dir
=.
22388 for ac_exec_ext
in '' $ac_executable_extensions; do
22389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22390 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22401 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22402 if test -n "$gcc_cv_readelf"; then
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22404 $as_echo "$gcc_cv_readelf" >&6; }
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22407 $as_echo "no" >&6; }
22414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22415 $as_echo_n "checking what readelf to use... " >&6; }
22416 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22417 # Single tree build which includes binutils.
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22419 $as_echo "newly built readelf" >&6; }
22420 elif test x
$gcc_cv_readelf = x
; then
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22422 $as_echo "not found" >&6; }
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22425 $as_echo "$gcc_cv_readelf" >&6; }
22428 # Figure out what assembler alignment features are present.
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22430 $as_echo_n "checking assembler flags... " >&6; }
22431 if test "${gcc_cv_as_flags+set}" = set; then :
22432 $as_echo_n "(cached) " >&6
22435 i
[34567]86-*-linux*)
22436 gcc_cv_as_flags
=--32
22438 x86_64-
*-linux-gnux32)
22439 gcc_cv_as_flags
=--x32
22442 gcc_cv_as_flags
=--64
22444 powerpc
*-*-darwin*)
22445 gcc_cv_as_flags
="-arch ppc"
22448 gcc_cv_as_flags
=" "
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22453 $as_echo "$gcc_cv_as_flags" >&6; }
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22456 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22457 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22458 $as_echo_n "(cached) " >&6
22460 gcc_cv_as_balign_and_p2align
=no
22461 if test $in_tree_gas = yes; then
22462 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22463 then gcc_cv_as_balign_and_p2align
=yes
22465 elif test x
$gcc_cv_as != x
; then
22466 $as_echo '.balign 4
22467 .p2align 2' > conftest.s
22468 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22470 (eval $ac_try) 2>&5
22472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22473 test $ac_status = 0; }; }
22475 gcc_cv_as_balign_and_p2align
=yes
22477 echo "configure: failed program was" >&5
22480 rm -f conftest.o conftest.s
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22484 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22485 if test $gcc_cv_as_balign_and_p2align = yes; then
22487 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22492 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22493 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22494 $as_echo_n "(cached) " >&6
22496 gcc_cv_as_max_skip_p2align
=no
22497 if test $in_tree_gas = yes; then
22498 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22499 then gcc_cv_as_max_skip_p2align
=yes
22501 elif test x
$gcc_cv_as != x
; then
22502 $as_echo '.p2align 4,,7' > conftest.s
22503 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22505 (eval $ac_try) 2>&5
22507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22508 test $ac_status = 0; }; }
22510 gcc_cv_as_max_skip_p2align
=yes
22512 echo "configure: failed program was" >&5
22515 rm -f conftest.o conftest.s
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22519 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22520 if test $gcc_cv_as_max_skip_p2align = yes; then
22522 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22527 $as_echo_n "checking assembler for .literal16... " >&6; }
22528 if test "${gcc_cv_as_literal16+set}" = set; then :
22529 $as_echo_n "(cached) " >&6
22531 gcc_cv_as_literal16
=no
22532 if test $in_tree_gas = yes; then
22533 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22534 then gcc_cv_as_literal16
=yes
22536 elif test x
$gcc_cv_as != x
; then
22537 $as_echo '.literal16' > conftest.s
22538 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22540 (eval $ac_try) 2>&5
22542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22543 test $ac_status = 0; }; }
22545 gcc_cv_as_literal16
=yes
22547 echo "configure: failed program was" >&5
22550 rm -f conftest.o conftest.s
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22554 $as_echo "$gcc_cv_as_literal16" >&6; }
22555 if test $gcc_cv_as_literal16 = yes; then
22557 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22562 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22563 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22564 $as_echo_n "(cached) " >&6
22566 gcc_cv_as_subsection_m1
=no
22567 if test $in_tree_gas = yes; then
22568 if test $in_tree_gas_is_elf = yes \
22569 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22570 then gcc_cv_as_subsection_m1
=yes
22572 elif test x
$gcc_cv_as != x
; then
22573 $as_echo 'conftest_label1: .word 0
22575 conftest_label2: .word 0
22576 .previous' > conftest.s
22577 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22579 (eval $ac_try) 2>&5
22581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22582 test $ac_status = 0; }; }
22584 if test x
$gcc_cv_nm != x
; then
22585 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22586 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22587 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22589 else gcc_cv_as_subsection_m1
=yes
22591 rm -f conftest.nm1 conftest.nm2
22594 echo "configure: failed program was" >&5
22597 rm -f conftest.o conftest.s
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22601 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22602 if test $gcc_cv_as_subsection_m1 = yes; then
22604 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22609 $as_echo_n "checking assembler for .weak... " >&6; }
22610 if test "${gcc_cv_as_weak+set}" = set; then :
22611 $as_echo_n "(cached) " >&6
22614 if test $in_tree_gas = yes; then
22615 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22616 then gcc_cv_as_weak
=yes
22618 elif test x
$gcc_cv_as != x
; then
22619 $as_echo ' .weak foobar' > conftest.s
22620 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22622 (eval $ac_try) 2>&5
22624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22625 test $ac_status = 0; }; }
22629 echo "configure: failed program was" >&5
22632 rm -f conftest.o conftest.s
22635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22636 $as_echo "$gcc_cv_as_weak" >&6; }
22637 if test $gcc_cv_as_weak = yes; then
22639 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22644 $as_echo_n "checking assembler for .weakref... " >&6; }
22645 if test "${gcc_cv_as_weakref+set}" = set; then :
22646 $as_echo_n "(cached) " >&6
22648 gcc_cv_as_weakref
=no
22649 if test $in_tree_gas = yes; then
22650 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22651 then gcc_cv_as_weakref
=yes
22653 elif test x
$gcc_cv_as != x
; then
22654 $as_echo ' .weakref foobar, barfnot' > conftest.s
22655 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22657 (eval $ac_try) 2>&5
22659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22660 test $ac_status = 0; }; }
22662 gcc_cv_as_weakref
=yes
22664 echo "configure: failed program was" >&5
22667 rm -f conftest.o conftest.s
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22671 $as_echo "$gcc_cv_as_weakref" >&6; }
22672 if test $gcc_cv_as_weakref = yes; then
22674 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22679 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22680 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22681 $as_echo_n "(cached) " >&6
22683 gcc_cv_as_nsubspa_comdat
=no
22684 if test $in_tree_gas = yes; then
22685 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22686 then gcc_cv_as_nsubspa_comdat
=yes
22688 elif test x
$gcc_cv_as != x
; then
22689 $as_echo ' .SPACE $TEXT$
22690 .NSUBSPA $CODE$,COMDAT' > conftest.s
22691 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22693 (eval $ac_try) 2>&5
22695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22696 test $ac_status = 0; }; }
22698 gcc_cv_as_nsubspa_comdat
=yes
22700 echo "configure: failed program was" >&5
22703 rm -f conftest.o conftest.s
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22707 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22708 if test $gcc_cv_as_nsubspa_comdat = yes; then
22710 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22714 # .hidden needs to be supported in both the assembler and the linker,
22715 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22716 # This is irritatingly difficult to feature test for; we have to check the
22717 # date string after the version number. If we've got an in-tree
22718 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22720 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22722 $as_echo_n "checking assembler for .hidden... " >&6; }
22723 if test "${gcc_cv_as_hidden+set}" = set; then :
22724 $as_echo_n "(cached) " >&6
22726 gcc_cv_as_hidden
=no
22727 if test $in_tree_gas = yes; then
22728 if test $in_tree_gas_is_elf = yes \
22729 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22730 then gcc_cv_as_hidden
=yes
22732 elif test x
$gcc_cv_as != x
; then
22733 $as_echo ' .hidden foobar
22734 foobar:' > conftest.s
22735 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22737 (eval $ac_try) 2>&5
22739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22740 test $ac_status = 0; }; }
22742 gcc_cv_as_hidden
=yes
22744 echo "configure: failed program was" >&5
22747 rm -f conftest.o conftest.s
22750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22751 $as_echo "$gcc_cv_as_hidden" >&6; }
22753 case "${target}" in
22755 # Darwin as has some visibility support, though with a different syntax.
22756 gcc_cv_as_hidden
=yes
22760 # gnu_indirect_function type is an extension proposed at
22761 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22762 # selection of function implementation
22763 # Check whether --enable-gnu-indirect-function was given.
22764 if test "${enable_gnu_indirect_function+set}" = set; then :
22765 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22767 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22768 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22771 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22775 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22777 cat >>confdefs.h
<<_ACEOF
22778 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22783 if test $in_tree_ld != yes ; then
22784 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22785 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22786 if test x
"$ld_is_gold" = xyes
; then
22787 # GNU gold --version looks like this:
22789 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22791 # We extract the binutils version which is more familiar and specific
22792 # than the gold version.
22793 ld_vers
=`echo $ld_ver | sed -n \
22794 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22796 # GNU ld --version looks like this:
22798 # GNU ld (GNU Binutils) 2.21.51.20110225
22799 ld_vers
=`echo $ld_ver | sed -n \
22800 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22802 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'`
22803 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22804 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22805 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22807 case "${target}" in
22809 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22812 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22813 # /usr/ccs/bin/ld has been configured.
22814 ld_ver
=`$gcc_cv_ld -V 2>&1`
22815 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22816 ld_vers
=`echo $ld_ver | sed -n \
22817 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22818 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22819 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22827 $as_echo_n "checking linker for .hidden support... " >&6; }
22828 if test "${gcc_cv_ld_hidden+set}" = set; then :
22829 $as_echo_n "(cached) " >&6
22831 if test $in_tree_ld = yes ; then
22832 gcc_cv_ld_hidden
=no
22833 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 \
22834 && test $in_tree_ld_is_elf = yes; then
22835 gcc_cv_ld_hidden
=yes
22838 gcc_cv_ld_hidden
=yes
22839 if test x
"$ld_is_gold" = xyes
; then
22841 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22842 case "${target}" in
22843 mmix-knuth-mmixware
)
22844 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22845 gcc_cv_ld_hidden
=no
22848 if test 0"$ld_date" -lt 20020404; then
22849 if test -n "$ld_date"; then
22850 # If there was date string, but was earlier than 2002-04-04, fail
22851 gcc_cv_ld_hidden
=no
22852 elif test -z "$ld_vers"; then
22853 # If there was no date string nor ld version number, something is wrong
22854 gcc_cv_ld_hidden
=no
22856 test -z "$ld_vers_patch" && ld_vers_patch
=0
22857 if test "$ld_vers_major" -lt 2; then
22858 gcc_cv_ld_hidden
=no
22859 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22860 gcc_cv_ld_hidden
="no"
22861 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22862 gcc_cv_ld_hidden
=no
22867 case "${target}" in
22869 # Darwin ld has some visibility support.
22870 gcc_cv_ld_hidden
=yes
22872 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22873 gcc_cv_ld_hidden
=yes
22875 *-*-solaris2.1
[0-9]*)
22876 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22877 # .symbolic was only added in Solaris 9 12/02.
22878 gcc_cv_ld_hidden
=yes
22881 gcc_cv_ld_hidden
=no
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22888 $as_echo "$gcc_cv_ld_hidden" >&6; }
22889 libgcc_visibility
=no
22892 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22893 libgcc_visibility
=yes
22895 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22900 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22901 gcc_cv_ld_ro_rw_mix
=unknown
22902 if test $in_tree_ld = yes ; then
22903 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 \
22904 && test $in_tree_ld_is_elf = yes; then
22905 gcc_cv_ld_ro_rw_mix
=read-write
22907 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22908 echo '.section myfoosect, "a"' > conftest1.s
22909 echo '.section myfoosect, "aw"' > conftest2.s
22910 echo '.byte 1' >> conftest2.s
22911 echo '.section myfoosect, "a"' > conftest3.s
22912 echo '.byte 0' >> conftest3.s
22913 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22914 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22915 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22916 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22917 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22918 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22919 | sed -e '/myfoosect/!d' -e N`
22920 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22921 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22922 gcc_cv_ld_ro_rw_mix
=read-only
22924 gcc_cv_ld_ro_rw_mix
=read-write
22928 rm -f conftest.
* conftest
[123].
*
22930 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22932 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22936 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22938 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22939 case "${target}" in
22942 # Solaris 2 ld -V output looks like this for a regular version:
22944 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22946 # but test versions add stuff at the end:
22948 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22950 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22951 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22952 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22953 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22954 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22955 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22961 # Check whether --enable-initfini-array was given.
22962 if test "${enable_initfini_array+set}" = set; then :
22963 enableval
=$enable_initfini_array;
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22967 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22968 if test "${gcc_cv_initfini_array+set}" = set; then :
22969 $as_echo_n "(cached) " >&6
22971 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22972 case "${target}" in
22974 if test "$cross_compiling" = yes; then :
22975 gcc_cv_initfini_array
=no
22977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22978 /* end confdefs.h. */
22981 #error Not an ELF OS
22983 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22984 if it can be used. */
22986 int main (void) { return x; }
22987 int foo (void) { x = 0; }
22988 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22991 if ac_fn_cxx_try_run
"$LINENO"; then :
22992 gcc_cv_initfini_array
=yes
22994 gcc_cv_initfini_array
=no
22996 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22997 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23001 gcc_cv_initfini_array
=no
23002 if test $in_tree_ld = yes ; then
23003 if test "$gcc_cv_gld_major_version" -eq 2 \
23004 -a "$gcc_cv_gld_minor_version" -ge 22 \
23005 -o "$gcc_cv_gld_major_version" -gt 2 \
23006 && test $in_tree_ld_is_elf = yes; then
23007 gcc_cv_initfini_array
=yes
23009 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23010 case $target:$gas in
23013 sh_type
='%progbits'
23015 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
23017 sh_type
='@progbits'
23019 sparc
*-*-solaris2*:no
)
23021 sh_type
='#progbits'
23025 case "$target:$gnu_ld" in
23027 cat > conftest.s
<<EOF
23028 .section .dtors,$sh_flags,$sh_type
23030 .byte 'A', 'A', 'A', 'A'
23031 .section .ctors,$sh_flags,$sh_type
23033 .byte 'B', 'B', 'B', 'B'
23034 .section .fini_array.65530,$sh_flags,$sh_type
23036 .byte 'C', 'C', 'C', 'C'
23037 .section .init_array.65530,$sh_flags,$sh_type
23039 .byte 'D', 'D', 'D', 'D'
23040 .section .dtors.64528,$sh_flags,$sh_type
23042 .byte 'E', 'E', 'E', 'E'
23043 .section .ctors.64528,$sh_flags,$sh_type
23045 .byte 'F', 'F', 'F', 'F'
23046 .section .fini_array.01005,$sh_flags,$sh_type
23048 .byte 'G', 'G', 'G', 'G'
23049 .section .init_array.01005,$sh_flags,$sh_type
23051 .byte 'H', 'H', 'H', 'H'
23056 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23057 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23058 && $gcc_cv_objdump -s -j .init_array conftest \
23059 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23060 && $gcc_cv_objdump -s -j .fini_array conftest \
23061 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23062 gcc_cv_initfini_array
=yes
23066 # When Solaris ld added constructor priority support, it was
23067 # decided to only handle .init_array.N/.fini_array.N since
23068 # there was no need for backwards compatibility with
23069 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23070 # sections with correct execution order resp. to
23071 # .init_array/.fini_array, while gld merges them into
23072 # .init_array/.fini_array.
23073 cat > conftest.s
<<EOF
23074 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23076 .byte 'C', 'C', 'C', 'C'
23077 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23079 .byte 'D', 'D', 'D', 'D'
23080 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23082 .byte 'G', 'G', 'G', 'G'
23083 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23085 .byte 'H', 'H', 'H', 'H'
23090 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23091 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23092 && $gcc_cv_objdump -s -j .init_array conftest \
23093 |
grep HHHHDDDD
> /dev
/null
2>&1 \
23094 && $gcc_cv_objdump -s -j .fini_array conftest \
23095 |
grep GGGGCCCC
> /dev
/null
2>&1; then
23096 gcc_cv_initfini_array
=yes
23100 rm -f conftest conftest.
*
23102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23103 /* end confdefs.h. */
23106 # error Not an ELF OS
23108 #include <stdlib.h>
23109 #if defined __GLIBC_PREREQ
23110 # if __GLIBC_PREREQ (2, 4)
23112 # error GLIBC 2.4 required
23115 # if defined __sun__ && defined __svr4__
23116 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23118 # error The C library not known to support .init_array/.fini_array
23123 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23126 gcc_cv_initfini_array
=no
23128 rm -f conftest.err conftest.
$ac_ext;;
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23132 $as_echo_n "checking cross compile... guessing... " >&6; }
23133 gcc_cv_initfini_array
=no
23136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23137 $as_echo "$gcc_cv_initfini_array" >&6; }
23138 enable_initfini_array
=$gcc_cv_initfini_array
23143 cat >>confdefs.h
<<_ACEOF
23144 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23149 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23151 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23152 if test "${gcc_cv_as_leb128+set}" = set; then :
23153 $as_echo_n "(cached) " >&6
23155 gcc_cv_as_leb128
=no
23156 if test $in_tree_gas = yes; then
23157 if test $in_tree_gas_is_elf = yes \
23158 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23159 then gcc_cv_as_leb128
=yes
23161 elif test x
$gcc_cv_as != x
; then
23168 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23170 (eval $ac_try) 2>&5
23172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23173 test $ac_status = 0; }; }
23175 # GAS versions before 2.11 do not support uleb128,
23176 # despite appearing to.
23177 # ??? There exists an elf-specific test that will crash
23178 # the assembler. Perhaps it's better to figure out whether
23179 # arbitrary sections are supported and try the test.
23180 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23181 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23182 as_vers
=`echo $as_ver | sed -n \
23183 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23184 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23185 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23186 if test $as_major -eq 2 && test $as_minor -lt 11
23188 else gcc_cv_as_leb128
=yes
23192 echo "configure: failed program was" >&5
23195 rm -f conftest.o conftest.s
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23199 $as_echo "$gcc_cv_as_leb128" >&6; }
23200 if test $gcc_cv_as_leb128 = yes; then
23202 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23206 # Check if we have assembler support for unwind directives.
23207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23208 $as_echo_n "checking assembler for cfi directives... " >&6; }
23209 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23210 $as_echo_n "(cached) " >&6
23212 gcc_cv_as_cfi_directive
=no
23213 if test x
$gcc_cv_as != x
; then
23219 .cfi_escape 1, 2, 3, 4, 5
23220 .cfi_endproc' > conftest.s
23221 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23223 (eval $ac_try) 2>&5
23225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23226 test $ac_status = 0; }; }
23230 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23231 # read-only and read-write sections, we need to make sure that the
23232 # assembler used emits read-write .eh_frame sections.
23233 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
23234 if test "x$gcc_cv_objdump" != x
; then
23235 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23236 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
23237 gcc_cv_as_cfi_directive
=no
23240 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
23241 # On Solaris/x86, make sure that GCC and assembler agree on using
23242 # read-only .eh_frame sections for 64-bit.
23243 if test x
$gas = xyes
; then
23244 as_ix86_64_opt
="--64"
23246 as_ix86_64_opt
="-xarch=amd64"
23248 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23249 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23250 sed -e /.eh_frame
/!d
-e N | \
23251 grep READONLY
> /dev
/null
; then
23252 gcc_cv_as_cfi_directive
=yes
23254 gcc_cv_as_cfi_directive
=no
23258 gcc_cv_as_cfi_directive
=yes
23263 # no objdump, err on the side of caution
23264 gcc_cv_as_cfi_directive
=no
23267 gcc_cv_as_cfi_directive
=yes
23271 gcc_cv_as_cfi_directive
=yes
23275 echo "configure: failed program was" >&5
23278 rm -f conftest.o conftest.s
23281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23282 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23284 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23286 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23287 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23288 $as_echo_n "(cached) " >&6
23290 gcc_cv_as_cfi_advance_working
=no
23291 if test x
$gcc_cv_as != x
; then
23294 .cfi_adjust_cfa_offset 64
23296 .cfi_adjust_cfa_offset 128
23297 .cfi_endproc' > conftest.s
23298 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23300 (eval $ac_try) 2>&5
23302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23303 test $ac_status = 0; }; }
23306 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23307 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23308 gcc_cv_as_cfi_advance_working
=yes
23312 echo "configure: failed program was" >&5
23315 rm -f conftest.o conftest.s
23318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23319 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23322 # no objdump, err on the side of caution
23323 gcc_cv_as_cfi_advance_working
=no
23327 cat >>confdefs.h
<<_ACEOF
23328 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23329 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23335 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23336 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23337 $as_echo_n "(cached) " >&6
23339 gcc_cv_as_cfi_personality_directive
=no
23340 if test x
$gcc_cv_as != x
; then
23343 .cfi_personality 0, symbol
23344 .cfi_endproc' > conftest.s
23345 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23347 (eval $ac_try) 2>&5
23349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23350 test $ac_status = 0; }; }
23352 gcc_cv_as_cfi_personality_directive
=yes
23354 echo "configure: failed program was" >&5
23357 rm -f conftest.o conftest.s
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23361 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23364 cat >>confdefs.h
<<_ACEOF
23365 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23366 then echo 1; else echo 0; fi`
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23371 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23372 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23373 $as_echo_n "(cached) " >&6
23375 gcc_cv_as_cfi_sections_directive
=no
23376 if test x
$gcc_cv_as != x
; then
23378 .cfi_sections .debug_frame, .eh_frame
23380 .cfi_endproc' > conftest.s
23381 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23383 (eval $ac_try) 2>&5
23385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23386 test $ac_status = 0; }; }
23389 win32 | pe | cygwin
* | mingw32
*)
23390 # Need to check that we generated the correct relocation for the
23391 # .debug_frame section. This was fixed for binutils 2.21.
23392 gcc_cv_as_cfi_sections_directive
=no
23393 if test "x$gcc_cv_objdump" != x
; then
23394 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23395 grep secrel
> /dev
/null
; then
23396 gcc_cv_as_cfi_sections_directive
=yes
23401 gcc_cv_as_cfi_sections_directive
=yes
23405 echo "configure: failed program was" >&5
23408 rm -f conftest.o conftest.s
23411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23412 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23416 cat >>confdefs.h
<<_ACEOF
23417 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23418 then echo 1; else echo 0; fi`
23422 # GAS versions up to and including 2.11.0 may mis-optimize
23424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23425 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23426 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23427 $as_echo_n "(cached) " >&6
23429 gcc_cv_as_eh_frame
=no
23430 if test $in_tree_gas = yes; then
23431 if test $in_tree_gas_is_elf = yes \
23432 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23433 then gcc_cv_as_eh_frame
=yes
23435 elif test x
$gcc_cv_as != x
; then
23442 .section .eh_frame,"aw",@progbits
23444 .4byte .LECIE1-.LSCIE1
23458 .4byte .LEFDE1-.LASFDE1
23460 .4byte .LASFDE1-__FRAME_BEGIN__
23467 .LEFDE1:' > conftest.s
23468 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23470 (eval $ac_try) 2>&5
23472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23473 test $ac_status = 0; }; }
23475 cat > conftest.lit
<<EOF
23476 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23477 0010 01000000 12000000 18000000 00000000 ................
23478 0020 08000000 04080000 0044 .........D
23480 cat > conftest.big
<<EOF
23481 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23482 0010 00000001 00000012 00000018 00000000 ................
23483 0020 00000008 04000000 0844 .........D
23485 # If the assembler didn't choke, and we can objdump,
23486 # and we got the correct data, then succeed.
23487 # The text in the here-document typically retains its unix-style line
23488 # endings, while the output of objdump will use host line endings.
23489 # Therefore, use diff -b for the comparisons.
23490 if test x
$gcc_cv_objdump != x \
23491 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23492 |
tail -3 > conftest.got \
23493 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23494 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23496 gcc_cv_as_eh_frame
=yes
23497 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23499 (eval $ac_try) 2>&5
23501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23502 test $ac_status = 0; }; }; then
23503 gcc_cv_as_eh_frame
=buggy
23505 # Uh oh, what do we do now?
23506 gcc_cv_as_eh_frame
=no
23509 echo "configure: failed program was" >&5
23512 rm -f conftest.o conftest.s
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23516 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23519 if test $gcc_cv_as_eh_frame = buggy
; then
23521 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23526 $as_echo_n "checking assembler for section merging support... " >&6; }
23527 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23528 $as_echo_n "(cached) " >&6
23530 gcc_cv_as_shf_merge
=no
23531 if test $in_tree_gas = yes; then
23532 if test $in_tree_gas_is_elf = yes \
23533 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23534 then gcc_cv_as_shf_merge
=yes
23536 elif test x
$gcc_cv_as != x
; then
23537 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23538 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23540 (eval $ac_try) 2>&5
23542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23543 test $ac_status = 0; }; }
23545 gcc_cv_as_shf_merge
=yes
23547 echo "configure: failed program was" >&5
23550 rm -f conftest.o conftest.s
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23554 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23556 if test $gcc_cv_as_shf_merge = no
; then
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23558 $as_echo_n "checking assembler for section merging support... " >&6; }
23559 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23560 $as_echo_n "(cached) " >&6
23562 gcc_cv_as_shf_merge
=no
23563 if test $in_tree_gas = yes; then
23564 if test $in_tree_gas_is_elf = yes \
23565 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23566 then gcc_cv_as_shf_merge
=yes
23568 elif test x
$gcc_cv_as != x
; then
23569 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23570 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23572 (eval $ac_try) 2>&5
23574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23575 test $ac_status = 0; }; }
23577 gcc_cv_as_shf_merge
=yes
23579 echo "configure: failed program was" >&5
23582 rm -f conftest.o conftest.s
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23586 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23590 cat >>confdefs.h
<<_ACEOF
23591 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23596 $as_echo_n "checking assembler for stabs directive... " >&6; }
23597 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23598 $as_echo_n "(cached) " >&6
23600 gcc_cv_as_stabs_directive
=no
23601 if test x
$gcc_cv_as != x
; then
23602 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23603 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23605 (eval $ac_try) 2>&5
23607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23608 test $ac_status = 0; }; }
23610 gcc_cv_as_stabs_directive
=yes
23612 echo "configure: failed program was" >&5
23615 rm -f conftest.o conftest.s
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23619 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23620 if test $gcc_cv_as_stabs_directive = yes; then
23622 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23627 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23628 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23629 $as_echo_n "(cached) " >&6
23631 gcc_cv_as_comdat_group
=no
23632 if test $in_tree_gas = yes; then
23633 if test $in_tree_gas_is_elf = yes \
23634 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23635 then gcc_cv_as_comdat_group
=yes
23637 elif test x
$gcc_cv_as != x
; then
23638 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23639 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23641 (eval $ac_try) 2>&5
23643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23644 test $ac_status = 0; }; }
23646 gcc_cv_as_comdat_group
=yes
23648 echo "configure: failed program was" >&5
23651 rm -f conftest.o conftest.s
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23655 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23657 if test $gcc_cv_as_comdat_group = yes; then
23658 gcc_cv_as_comdat_group_percent
=no
23659 gcc_cv_as_comdat_group_group
=no
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23662 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23663 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23664 $as_echo_n "(cached) " >&6
23666 gcc_cv_as_comdat_group_percent
=no
23667 if test $in_tree_gas = yes; then
23668 if test $in_tree_gas_is_elf = yes \
23669 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23670 then gcc_cv_as_comdat_group_percent
=yes
23672 elif test x
$gcc_cv_as != x
; then
23673 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23674 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23676 (eval $ac_try) 2>&5
23678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23679 test $ac_status = 0; }; }
23681 gcc_cv_as_comdat_group_percent
=yes
23683 echo "configure: failed program was" >&5
23686 rm -f conftest.o conftest.s
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23690 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23692 if test $gcc_cv_as_comdat_group_percent = yes; then
23693 gcc_cv_as_comdat_group_group
=no
23695 case "${target}" in
23696 # Sun as uses a completely different syntax.
23698 case "${target}" in
23699 sparc
*-*-solaris2*)
23701 .group foo,".text%foo",#comdat
23702 .section ".text%foo", #alloc,#execinstr,#progbits
23707 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23709 .group foo,.text%foo,#comdat
23710 .section .text%foo, "ax", @progbits
23716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23717 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23718 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23719 $as_echo_n "(cached) " >&6
23721 gcc_cv_as_comdat_group_group
=no
23722 if test x
$gcc_cv_as != x
; then
23723 $as_echo "$conftest_s" > conftest.s
23724 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23726 (eval $ac_try) 2>&5
23728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23729 test $ac_status = 0; }; }
23731 gcc_cv_as_comdat_group_group
=yes
23733 echo "configure: failed program was" >&5
23736 rm -f conftest.o conftest.s
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23740 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23744 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23745 gcc_cv_as_comdat_group_group
=no
23749 if test x
"$ld_is_gold" = xyes
; then
23751 elif test $in_tree_ld = yes ; then
23753 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 \
23754 && test $in_tree_ld_is_elf = yes; then
23757 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23759 if test 0"$ld_date" -lt 20050308; then
23760 if test -n "$ld_date"; then
23761 # If there was date string, but was earlier than 2005-03-08, fail
23763 elif test "$ld_vers_major" -lt 2; then
23765 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23770 case "${target}" in
23771 *-*-solaris2.1
[1-9]*)
23773 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23774 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23777 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23778 # least ld version 1.2267.
23779 if test "$ld_vers_major" -gt 1; then
23781 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23783 elif test "$ld_vers_minor" -ge 2267; then
23788 # Assume linkers other than GNU ld don't support COMDAT group.
23793 # Allow overriding the automatic COMDAT group tests above.
23794 # Check whether --enable-comdat was given.
23795 if test "${enable_comdat+set}" = set; then :
23796 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23799 if test $comdat_group = no
; then
23800 gcc_cv_as_comdat_group
=no
23801 gcc_cv_as_comdat_group_percent
=no
23802 gcc_cv_as_comdat_group_group
=no
23805 cat >>confdefs.h
<<_ACEOF
23806 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23807 || test $gcc_cv_as_comdat_group_percent = yes \
23808 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23813 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23814 if test "${gcc_cv_as_discriminator+set}" = set; then :
23815 $as_echo_n "(cached) " >&6
23817 gcc_cv_as_discriminator
=no
23818 if test $in_tree_gas = yes; then
23819 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23820 then gcc_cv_as_discriminator
=yes
23822 elif test x
$gcc_cv_as != x
; then
23825 .loc 1 1 0 discriminator 1' > conftest.s
23826 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23828 (eval $ac_try) 2>&5
23830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23831 test $ac_status = 0; }; }
23833 gcc_cv_as_discriminator
=yes
23835 echo "configure: failed program was" >&5
23838 rm -f conftest.o conftest.s
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23842 $as_echo "$gcc_cv_as_discriminator" >&6; }
23843 if test $gcc_cv_as_discriminator = yes; then
23845 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23849 # Thread-local storage - the check is heavily parameterized.
23857 .section ".tdata","awT",@progbits
23860 ldq $27,__tls_get_addr($29) !literal!1
23861 lda $16,foo($29) !tlsgd!1
23862 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23863 ldq $27,__tls_get_addr($29) !literal!2
23864 lda $16,foo($29) !tlsldm!2
23865 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23866 ldq $1,foo($29) !gotdtprel
23867 ldah $2,foo($29) !dtprelhi
23868 lda $3,foo($2) !dtprello
23869 lda $4,foo($29) !dtprel
23870 ldq $1,foo($29) !gottprel
23871 ldah $2,foo($29) !tprelhi
23872 lda $3,foo($2) !tprello
23873 lda $4,foo($29) !tprel'
23876 tls_as_opt
=--fatal-warnings
23880 add_s r0,r0, @foo@tpoff'
23884 cris-
*-*|crisv32-
*-*)
23886 .section ".tdata","awT",@progbits
23893 tls_as_opt
=--fatal-warnings
23897 .section ".tdata","awT",@progbits
23900 call #gettlsoff(x)'
23909 .section ".tdata","awT",@progbits
23913 addil LT%foo-$tls_gdidx$,gp
23914 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23917 addil LT%foo-$tls_ldidx$,gp
23919 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23920 addil LR%foo-$tls_dtpoff$,%ret0
23921 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23923 addil LT%foo-$tls_ieoff$,gp
23924 ldw RT%foo-$tls_ieoff$(%r1),%t2
23927 addil LR%foo-$tls_leoff$,%t1
23928 ldo RR%foo-$tls_leoff$(%r1),%t2'
23931 tls_as_opt
=--fatal-warnings
23935 .section ".tdata","awT",%progbits
23938 .word foo(gottpoff)
23946 i
[34567]86-*-* | x86_64-
*-*)
23948 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
23955 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23957 .section .tdata,"awt",@progbits'
23962 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23966 .section ".tdata","awT",@progbits'
23970 tls_as_opt
="--fatal-warnings"
23974 conftest_s
="$conftest_s
23978 leal foo@tlsgd(,%ebx,1), %eax
23979 leal foo@tlsldm(%ebx), %eax
23980 leal foo@dtpoff(%eax), %edx
23981 movl foo@gottpoff(%ebx), %eax
23982 subl foo@gottpoff(%ebx), %eax
23983 addl foo@gotntpoff(%ebx), %eax
23984 movl foo@indntpoff, %eax
23985 movl \$foo@tpoff, %eax
23986 subl \$foo@tpoff, %eax
23987 leal foo@ntpoff(%ecx), %eax"
23990 if test x
$on_solaris = xyes
; then
23992 yes) tls_as_opt
="$tls_as_opt --64" ;;
23993 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
23996 conftest_s
="$conftest_s
24000 leaq foo@tlsgd(%rip), %rdi
24001 leaq foo@tlsld(%rip), %rdi
24002 leaq foo@dtpoff(%rax), %rdx
24003 movq foo@gottpoff(%rip), %rax
24004 movq \$foo@tpoff, %rax"
24010 .section ".tdata","awT",@progbits
24013 addl r16 = @ltoff(@dtpmod(foo#)), gp
24014 addl r17 = @ltoff(@dtprel(foo#)), gp
24015 addl r18 = @ltoff(@tprel(foo#)), gp
24016 addl r19 = @dtprel(foo#), gp
24017 adds r21 = @dtprel(foo#), r13
24018 movl r23 = @dtprel(foo#)
24019 addl r20 = @tprel(foo#), gp
24020 adds r22 = @tprel(foo#), r13
24021 movl r24 = @tprel(foo#)'
24024 tls_as_opt
=--fatal-warnings
24028 .section .tdata,"awT",@progbits
24032 addik r5,r20,x@TLSGD
24033 addik r5,r20,x@TLSLDM'
24036 tls_as_opt
='--fatal-warnings'
24040 .section .tdata,"awT",@progbits
24044 addiu $4, $28, %tlsgd(x)
24045 addiu $4, $28, %tlsldm(x)
24046 lui $4, %dtprel_hi(x)
24047 addiu $4, $4, %dtprel_lo(x)
24048 lw $4, %gottprel(x)($28)
24049 lui $4, %tprel_hi(x)
24050 addiu $4, $4, %tprel_lo(x)'
24053 tls_as_opt
='-32 --fatal-warnings'
24057 .section .tdata,"awT",@progbits
24062 move.l x@TLSGD(%a5),%a0
24063 move.l x@TLSLDM(%a5),%a0
24064 move.l x@TLSLDO(%a5),%a0
24065 move.l x@TLSIE(%a5),%a0
24066 move.l x@TLSLE(%a5),%a0'
24069 tls_as_opt
='--fatal-warnings'
24073 .section ".tdata","awT",@progbits'
24076 tls_as_opt
="--fatal-warnings"
24080 .section ".tdata","awT",%progbits
24084 add x0, x0, #:tlsgd_lo12:x
24089 tls_as_opt
='--fatal-warnings'
24093 .extern __get_tpointer
24111 .section ".tdata","awT",@progbits
24119 addi 3,2,ld0@got@tlsgd
24125 addi 3,2,x1@got@tlsld
24131 addis 9,3,x2@dtprel@ha
24132 addi 9,9,x2@dtprel@l
24135 ld 9,x3@got@dtprel(2)
24141 tls_as_opt
="-a64 --fatal-warnings"
24145 .section ".tdata","awT",@progbits
24153 addi 3,31,ld0@got@tlsgd
24155 addi 3,31,x1@got@tlsld
24158 addis 9,3,x2@dtprel@ha
24159 addi 9,9,x2@dtprel@l
24160 lwz 9,x3@got@tprel(31)
24163 addis 9,2,x2@tprel@ha
24164 addi 9,9,x2@tprel@l'
24167 tls_as_opt
="-a32 --fatal-warnings"
24171 .section ".tdata","awT",@progbits
24178 .long foo@GOTNTPOFF
24179 .long foo@INDNTPOFF
24180 l %r1,foo@GOTNTPOFF(%r12)
24181 l %r1,0(%r1):tls_load:foo
24182 bas %r14,0(%r1,%r13):tls_gdcall:foo
24183 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24186 tls_as_opt
="-m31 --fatal-warnings"
24190 .section ".tdata","awT",@progbits
24197 .quad foo@GOTNTPOFF
24198 lg %r1,foo@GOTNTPOFF(%r12)
24199 larl %r1,foo@INDNTPOFF
24200 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24201 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24204 tls_as_opt
="-m64 -Aesame --fatal-warnings"
24206 sh-
*-* | sh
[123456789lbe
]*-*-*)
24208 .section ".tdata","awT",@progbits
24218 tls_as_opt
=--fatal-warnings
24222 sparc
*-sun-solaris2.
*)
24229 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24231 .section ".tdata",#alloc,#write,#tls'
24236 .section ".tdata","awT",@progbits'
24239 tls_as_opt
="-32 --fatal-warnings"
24241 conftest_s
="$conftest_s
24244 sethi %tgd_hi22(foo), %o0
24245 add %o0, %tgd_lo10(foo), %o1
24246 add %l7, %o1, %o0, %tgd_add(foo)
24247 call __tls_get_addr, %tgd_call(foo)
24248 sethi %tldm_hi22(foo), %l1
24249 add %l1, %tldm_lo10(foo), %l2
24250 add %l7, %l2, %o0, %tldm_add(foo)
24251 call __tls_get_addr, %tldm_call(foo)
24252 sethi %tldo_hix22(foo), %l3
24253 xor %l3, %tldo_lox10(foo), %l4
24254 add %o0, %l4, %l5, %tldo_add(foo)
24255 sethi %tie_hi22(foo), %o3
24256 add %o3, %tie_lo10(foo), %o3
24257 ld [%l7 + %o3], %o2, %tie_ld(foo)
24258 add %g7, %o2, %o4, %tie_add(foo)
24259 sethi %tle_hix22(foo), %l1
24260 xor %l1, %tle_lox10(foo), %o5
24261 ld [%g7 + %o5], %o1"
24265 .section ".tdata","awT",@progbits
24268 addli r0, zero, tls_gd(foo)
24269 auli r0, zero, tls_gd_ha16(foo)
24270 addli r0, r0, tls_gd_lo16(foo)
24272 addli r0, zero, tls_ie(foo)
24273 auli r0, r0, tls_ie_ha16(foo)
24274 addli r0, r0, tls_ie_lo16(foo)'
24277 tls_as_opt
="--fatal-warnings"
24281 .section ".tdata","awT",@progbits
24284 shl16insli r0, zero, hw0_last_tls_gd(foo)
24285 shl16insli r0, zero, hw1_last_tls_gd(foo)
24286 shl16insli r0, r0, hw0_tls_gd(foo)
24288 shl16insli r0, zero, hw1_last_tls_ie(foo)
24289 shl16insli r0, r0, hw0_tls_ie(foo)'
24292 tls_as_opt
="--fatal-warnings"
24296 .section ".tdata","awT",@progbits
24299 movi a8, foo@TLSFUNC
24300 movi a10, foo@TLSARG
24301 callx8.tls a8, foo@TLSCALL'
24307 if test "x$enable_tls" = xno
; then
24308 : # TLS explicitly disabled.
24309 elif test "x$enable_tls" = xyes
; then
24310 set_have_as_tls
=yes # TLS explicitly enabled.
24311 elif test -z "$tls_first_major"; then
24312 : # If we don't have a check, assume no support.
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24315 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24316 if test "${gcc_cv_as_tls+set}" = set; then :
24317 $as_echo_n "(cached) " >&6
24320 if test $in_tree_gas = yes; then
24321 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24322 then gcc_cv_as_tls
=yes
24324 elif test x
$gcc_cv_as != x
; then
24325 $as_echo "$conftest_s" > conftest.s
24326 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24328 (eval $ac_try) 2>&5
24330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24331 test $ac_status = 0; }; }
24335 echo "configure: failed program was" >&5
24338 rm -f conftest.o conftest.s
24341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24342 $as_echo "$gcc_cv_as_tls" >&6; }
24343 if test $gcc_cv_as_tls = yes; then
24344 set_have_as_tls
=yes
24347 if test $set_have_as_tls = yes ; then
24349 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24353 # Target-specific assembler checks.
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24356 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24357 gcc_cv_ld_static_dynamic
=no
24358 gcc_cv_ld_static_option
='-Bstatic'
24359 gcc_cv_ld_dynamic_option
='-Bdynamic'
24360 if test $in_tree_ld = yes ; then
24361 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
24362 gcc_cv_ld_static_dynamic
=yes
24364 elif test x
$gcc_cv_ld != x
; then
24365 # Check if linker supports -Bstatic/-Bdynamic option
24366 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
24367 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
24368 gcc_cv_ld_static_dynamic
=yes
24371 # AIX ld uses -b flags
24372 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24373 gcc_cv_ld_static_dynamic
=yes
24374 gcc_cv_ld_static_option
="-bstatic"
24375 gcc_cv_ld_dynamic_option
="-bdynamic"
24377 # HP-UX ld uses -a flags to select between shared and archive.
24379 if test x
"$gnu_ld" = xno
; then
24380 gcc_cv_ld_static_dynamic
=yes
24381 gcc_cv_ld_static_option
="-aarchive_shared"
24382 gcc_cv_ld_dynamic_option
="-adefault"
24385 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24387 gcc_cv_ld_static_dynamic
=yes
24392 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24394 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24397 cat >>confdefs.h
<<_ACEOF
24398 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24402 cat >>confdefs.h
<<_ACEOF
24403 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24408 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24410 if test x
"$demangler_in_ld" = xyes
; then
24411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24412 $as_echo_n "checking linker --demangle support... " >&6; }
24413 gcc_cv_ld_demangle
=no
24414 if test $in_tree_ld = yes; then
24415 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 \
24416 gcc_cv_ld_demangle
=yes
24418 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24419 # Check if the GNU linker supports --demangle option
24420 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
24421 gcc_cv_ld_demangle
=yes
24424 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24426 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24430 $as_echo "$gcc_cv_ld_demangle" >&6; }
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24434 $as_echo_n "checking linker plugin support... " >&6; }
24435 gcc_cv_lto_plugin
=0
24436 if test -f liblto_plugin.la
; then
24437 save_ld_ver
="$ld_ver"
24438 save_ld_vers_major
="$ld_vers_major"
24439 save_ld_vers_minor
="$ld_vers_minor"
24440 save_ld_is_gold
="$ld_is_gold"
24444 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24446 # FIXME: ld_is_gold?
24447 ld_vers_major
="$gcc_cv_gld_major_version"
24448 ld_vers_minor
="$gcc_cv_gld_minor_version"
24450 # Determine plugin linker version.
24451 # FIXME: Partial duplicate from above, generalize.
24452 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24453 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24454 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24456 ld_vers
=`echo $ld_ver | sed -n \
24457 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24459 ld_vers
=`echo $ld_ver | sed -n \
24460 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24462 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24463 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24467 # Determine plugin support.
24468 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24469 # Require GNU ld or gold 2.21+ for plugin support by default.
24470 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24471 gcc_cv_lto_plugin
=2
24472 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24473 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24474 gcc_cv_lto_plugin
=1
24478 ld_ver
="$save_ld_ver"
24479 ld_vers_major
="$save_ld_vers_major"
24480 ld_vers_minor
="$save_ld_vers_minor"
24481 ld_is_gold
="$save_ld_is_gold"
24484 cat >>confdefs.h
<<_ACEOF
24485 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24489 $as_echo "$gcc_cv_lto_plugin" >&6; }
24493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24494 $as_echo_n "checking assembler for -mabi option... " >&6; }
24495 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24496 $as_echo_n "(cached) " >&6
24498 gcc_cv_as_aarch64_mabi
=no
24499 if test x
$gcc_cv_as != x
; then
24500 $as_echo '.text' > conftest.s
24501 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24503 (eval $ac_try) 2>&5
24505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24506 test $ac_status = 0; }; }
24508 gcc_cv_as_aarch64_mabi
=yes
24510 echo "configure: failed program was" >&5
24513 rm -f conftest.o conftest.s
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24517 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24519 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24521 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24524 if test x
$with_abi = xilp32
; then
24525 as_fn_error
"Assembler does not support -mabi=ilp32.\
24526 Upgrade the Assembler." "$LINENO" 5
24528 if test x
"$with_multilib_list" = xdefault
; then
24529 TM_MULTILIB_CONFIG
=lp64
24531 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24532 for aarch64_multilib
in ${aarch64_multilibs}; do
24533 case ${aarch64_multilib} in
24535 as_fn_error
"Assembler does not support -mabi=ilp32.\
24536 Upgrade the Assembler." "$LINENO" 5
24544 # Check if we have binutils support for relocations types needed by -fpic
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24546 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24547 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24548 $as_echo_n "(cached) " >&6
24550 gcc_cv_as_aarch64_picreloc
=no
24551 if test x
$gcc_cv_as != x
; then
24554 ldr x0, [x2, #:gotpage_lo15:globalsym]
24556 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24558 (eval $ac_try) 2>&5
24560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24561 test $ac_status = 0; }; }
24563 gcc_cv_as_aarch64_picreloc
=yes
24565 echo "configure: failed program was" >&5
24568 rm -f conftest.o conftest.s
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24572 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24573 if test $gcc_cv_as_aarch64_picreloc = yes; then
24575 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24578 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24579 # Check whether --enable-fix-cortex-a53-835769 was given.
24580 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24581 enableval
=$enable_fix_cortex_a53_835769;
24584 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24589 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24590 Valid choices are 'yes' and 'no'." "$LINENO" 5
24597 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24598 # Check whether --enable-fix-cortex-a53-843419 was given.
24599 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24600 enableval
=$enable_fix_cortex_a53_843419;
24603 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24608 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24609 Valid choices are 'yes' and 'no'." "$LINENO" 5
24618 # All TARGET_ABI_OSF targets.
24619 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24621 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24622 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24623 $as_echo_n "(cached) " >&6
24625 gcc_cv_as_alpha_explicit_relocs
=no
24626 if test $in_tree_gas = yes; then
24627 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24628 then gcc_cv_as_alpha_explicit_relocs
=yes
24630 elif test x
$gcc_cv_as != x
; then
24631 $as_echo ' .set nomacro
24633 extbl $3, $2, $3 !lituse_bytoff!1
24634 ldq $2, a($29) !literal!1
24635 ldq $4, b($29) !literal!2
24636 ldq_u $3, 0($2) !lituse_base!1
24637 ldq $27, f($29) !literal!5
24638 jsr $26, ($27), f !lituse_jsr!5
24639 ldah $29, 0($26) !gpdisp!3
24640 lda $0, c($29) !gprel
24641 ldah $1, d($29) !gprelhigh
24642 lda $1, d($1) !gprellow
24643 lda $29, 0($29) !gpdisp!3' > conftest.s
24644 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24646 (eval $ac_try) 2>&5
24648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24649 test $ac_status = 0; }; }
24651 gcc_cv_as_alpha_explicit_relocs
=yes
24653 echo "configure: failed program was" >&5
24656 rm -f conftest.o conftest.s
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24660 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24661 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24663 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24667 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24668 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24669 $as_echo_n "(cached) " >&6
24671 gcc_cv_as_alpha_jsrdirect_relocs
=no
24672 if test $in_tree_gas = yes; then
24673 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24674 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24676 elif test x
$gcc_cv_as != x
; then
24677 $as_echo ' .set nomacro
24679 ldq $27, a($29) !literal!1
24680 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24681 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24683 (eval $ac_try) 2>&5
24685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24686 test $ac_status = 0; }; }
24688 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24690 echo "configure: failed program was" >&5
24693 rm -f conftest.o conftest.s
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24697 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24698 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24700 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24707 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24708 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24709 $as_echo_n "(cached) " >&6
24711 gcc_cv_as_avr_mlink_relax
=no
24712 if test x
$gcc_cv_as != x
; then
24713 $as_echo '.text' > conftest.s
24714 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24716 (eval $ac_try) 2>&5
24718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24719 test $ac_status = 0; }; }
24721 gcc_cv_as_avr_mlink_relax
=yes
24723 echo "configure: failed program was" >&5
24726 rm -f conftest.o conftest.s
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24730 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24731 if test $gcc_cv_as_avr_mlink_relax = yes; then
24733 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24738 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24739 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24740 $as_echo_n "(cached) " >&6
24742 gcc_cv_as_avr_mrmw
=no
24743 if test x
$gcc_cv_as != x
; then
24744 $as_echo '.text' > conftest.s
24745 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24747 (eval $ac_try) 2>&5
24749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24750 test $ac_status = 0; }; }
24752 gcc_cv_as_avr_mrmw
=yes
24754 echo "configure: failed program was" >&5
24757 rm -f conftest.o conftest.s
24760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24761 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24762 if test $gcc_cv_as_avr_mrmw = yes; then
24764 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24771 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24772 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24773 $as_echo_n "(cached) " >&6
24775 gcc_cv_as_cris_no_mul_bug
=no
24776 if test $in_tree_gas = yes; then
24777 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24778 then gcc_cv_as_cris_no_mul_bug
=yes
24780 elif test x
$gcc_cv_as != x
; then
24781 $as_echo '.text' > conftest.s
24782 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24784 (eval $ac_try) 2>&5
24786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24787 test $ac_status = 0; }; }
24789 gcc_cv_as_cris_no_mul_bug
=yes
24791 echo "configure: failed program was" >&5
24794 rm -f conftest.o conftest.s
24797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24798 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24799 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24801 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24808 $as_echo_n "checking assembler for .register... " >&6; }
24809 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24810 $as_echo_n "(cached) " >&6
24812 gcc_cv_as_sparc_register_op
=no
24813 if test x
$gcc_cv_as != x
; then
24814 $as_echo '.register %g2, #scratch' > conftest.s
24815 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24817 (eval $ac_try) 2>&5
24819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24820 test $ac_status = 0; }; }
24822 gcc_cv_as_sparc_register_op
=yes
24824 echo "configure: failed program was" >&5
24827 rm -f conftest.o conftest.s
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24831 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24832 if test $gcc_cv_as_sparc_register_op = yes; then
24834 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24839 $as_echo_n "checking assembler for -relax option... " >&6; }
24840 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24841 $as_echo_n "(cached) " >&6
24843 gcc_cv_as_sparc_relax
=no
24844 if test x
$gcc_cv_as != x
; then
24845 $as_echo '.text' > conftest.s
24846 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24848 (eval $ac_try) 2>&5
24850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24851 test $ac_status = 0; }; }
24853 gcc_cv_as_sparc_relax
=yes
24855 echo "configure: failed program was" >&5
24858 rm -f conftest.o conftest.s
24861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24862 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24863 if test $gcc_cv_as_sparc_relax = yes; then
24865 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24870 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24871 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24872 $as_echo_n "(cached) " >&6
24874 gcc_cv_as_sparc_gotdata_op
=no
24875 if test x
$gcc_cv_as != x
; then
24881 sethi %gdop_hix22(foo), %g1
24882 xor %g1, %gdop_lox10(foo), %g1
24883 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24884 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24886 (eval $ac_try) 2>&5
24888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24889 test $ac_status = 0; }; }
24891 if test x
$gcc_cv_ld != x \
24892 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24893 if test x
$gcc_cv_objdump != x
; then
24894 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24895 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24896 gcc_cv_as_sparc_gotdata_op
=no
24898 gcc_cv_as_sparc_gotdata_op
=yes
24904 echo "configure: failed program was" >&5
24907 rm -f conftest.o conftest.s
24910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24911 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24912 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24914 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24919 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24920 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24921 $as_echo_n "(cached) " >&6
24923 gcc_cv_as_sparc_ua_pcrel
=no
24924 if test x
$gcc_cv_as != x
; then
24931 .uaword %r_disp32(foo)' > conftest.s
24932 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24934 (eval $ac_try) 2>&5
24936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24937 test $ac_status = 0; }; }
24939 if test x
$gcc_cv_ld != x \
24940 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24941 gcc_cv_as_sparc_ua_pcrel
=yes
24945 echo "configure: failed program was" >&5
24948 rm -f conftest.o conftest.s
24951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24952 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24953 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24955 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24959 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24960 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24961 $as_echo_n "(cached) " >&6
24963 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24964 if test x
$gcc_cv_as != x
; then
24968 .uaword %r_disp32(foo)
24969 .byte 0x32, 0x33, 0x34
24973 .skip 4' > conftest.s
24974 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24976 (eval $ac_try) 2>&5
24978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24979 test $ac_status = 0; }; }
24981 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24982 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24983 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24984 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24985 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24986 |
grep 'DISP32' > /dev
/null
2>&1; then
24989 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24994 echo "configure: failed program was" >&5
24997 rm -f conftest.o conftest.s
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25001 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25002 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25004 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25008 fi # unaligned pcrel relocs
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25011 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25012 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25013 $as_echo_n "(cached) " >&6
25015 gcc_cv_as_sparc_offsetable_lo10
=no
25016 if test x
$gcc_cv_as != x
; then
25018 or %g1, %lo(ab) + 12, %g1
25019 or %g1, %lo(ab + 12), %g1' > conftest.s
25020 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25022 (eval $ac_try) 2>&5
25024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25025 test $ac_status = 0; }; }
25027 if test x
$gcc_cv_objdump != x \
25028 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
25029 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
25030 gcc_cv_as_sparc_offsetable_lo10
=yes
25033 echo "configure: failed program was" >&5
25036 rm -f conftest.o conftest.s
25039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25040 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25041 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25043 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25048 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25049 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25050 $as_echo_n "(cached) " >&6
25052 gcc_cv_as_sparc_fmaf
=no
25053 if test x
$gcc_cv_as != x
; then
25055 .register %g2, #scratch
25056 .register %g3, #scratch
25058 fmaddd %f0, %f2, %f4, %f6
25059 addxccc %g1, %g2, %g3
25060 fsrl32 %f2, %f4, %f8
25061 fnaddd %f10, %f12, %f14' > conftest.s
25062 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25064 (eval $ac_try) 2>&5
25066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25067 test $ac_status = 0; }; }
25069 gcc_cv_as_sparc_fmaf
=yes
25071 echo "configure: failed program was" >&5
25074 rm -f conftest.o conftest.s
25077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25078 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25079 if test $gcc_cv_as_sparc_fmaf = yes; then
25081 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25086 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25087 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25088 $as_echo_n "(cached) " >&6
25090 gcc_cv_as_sparc_sparc4
=no
25091 if test x
$gcc_cv_as != x
; then
25093 .register %g2, #scratch
25094 .register %g3, #scratch
25097 1: cwbneg %g2, %g3, 1f
25100 aes_kexpand0 %f4, %f6, %f8
25101 des_round %f38, %f40, %f42, %f44
25102 camellia_f %f54, %f56, %f58, %f60
25103 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25104 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25106 (eval $ac_try) 2>&5
25108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25109 test $ac_status = 0; }; }
25111 gcc_cv_as_sparc_sparc4
=yes
25113 echo "configure: failed program was" >&5
25116 rm -f conftest.o conftest.s
25119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25120 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25121 if test $gcc_cv_as_sparc_sparc4 = yes; then
25123 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25128 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25129 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25130 $as_echo_n "(cached) " >&6
25132 gcc_cv_as_sparc_sparc5
=no
25133 if test x
$gcc_cv_as != x
; then
25135 .register %g2, #scratch
25136 .register %g3, #scratch
25138 subxc %g1, %g2, %g3
25139 fpadd8 %f0, %f2, %f4' > conftest.s
25140 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25142 (eval $ac_try) 2>&5
25144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25145 test $ac_status = 0; }; }
25147 gcc_cv_as_sparc_sparc5
=yes
25149 echo "configure: failed program was" >&5
25152 rm -f conftest.o conftest.s
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25156 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25157 if test $gcc_cv_as_sparc_sparc5 = yes; then
25159 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25164 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25165 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25166 $as_echo_n "(cached) " >&6
25168 gcc_cv_as_sparc_leon
=no
25169 if test x
$gcc_cv_as != x
; then
25171 .register %g2, #scratch
25172 .register %g3, #scratch
25176 casa [%g2] 0xb, %g3, %g1' > conftest.s
25177 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25179 (eval $ac_try) 2>&5
25181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25182 test $ac_status = 0; }; }
25184 gcc_cv_as_sparc_leon
=yes
25186 echo "configure: failed program was" >&5
25189 rm -f conftest.o conftest.s
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25193 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25194 if test $gcc_cv_as_sparc_leon = yes; then
25196 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25201 i
[34567]86-*-* | x86_64-
*-*)
25204 # Full C++ conformance when using a shared libstdc++-v3 requires some
25205 # support from the Cygwin DLL, which in more recent versions exports
25206 # wrappers to aid in interposing and redirecting operators new, delete,
25207 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25208 # are configuring for a version of Cygwin that exports the wrappers.
25209 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
25210 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25211 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
25212 gcc_ac_cygwin_dll_wrappers
=yes
25214 gcc_ac_cygwin_dll_wrappers
=no
25218 # Can't check presence of libc functions during cross-compile, so
25219 # we just have to assume we're building for an up-to-date target.
25220 gcc_ac_cygwin_dll_wrappers
=yes
25223 cat >>confdefs.h
<<_ACEOF
25224 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25229 cygwin
* | pe | mingw32
* | interix
*)
25230 # Recent binutils allows the three-operand form of ".comm" on PE. This
25231 # definition is used unconditionally to initialise the default state of
25232 # the target option variable that governs usage of the feature.
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25234 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25235 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25236 $as_echo_n "(cached) " >&6
25238 gcc_cv_as_comm_has_align
=no
25239 if test $in_tree_gas = yes; then
25240 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25241 then gcc_cv_as_comm_has_align
=yes
25243 elif test x
$gcc_cv_as != x
; then
25244 $as_echo '.comm foo,1,32' > conftest.s
25245 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25247 (eval $ac_try) 2>&5
25249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25250 test $ac_status = 0; }; }
25252 gcc_cv_as_comm_has_align
=yes
25254 echo "configure: failed program was" >&5
25257 rm -f conftest.o conftest.s
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25261 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25264 cat >>confdefs.h
<<_ACEOF
25265 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25268 # Used for DWARF 2 in PE
25269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25270 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25271 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25272 $as_echo_n "(cached) " >&6
25274 gcc_cv_as_ix86_pe_secrel32
=no
25275 if test $in_tree_gas = yes; then
25276 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25277 then gcc_cv_as_ix86_pe_secrel32
=yes
25279 elif test x
$gcc_cv_as != x
; then
25283 .secrel32 foo' > conftest.s
25284 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25286 (eval $ac_try) 2>&5
25288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25289 test $ac_status = 0; }; }
25291 if test x
$gcc_cv_ld != x \
25292 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
25293 gcc_cv_as_ix86_pe_secrel32
=yes
25297 echo "configure: failed program was" >&5
25300 rm -f conftest.o conftest.s
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25304 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25305 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25307 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25310 # Test if the assembler supports the extended form of the .section
25311 # directive that specifies section alignment. LTO support uses this,
25312 # but normally only after installation, so we warn but don't fail the
25313 # configure if LTO is enabled but the assembler does not support it.
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25315 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25316 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25317 $as_echo_n "(cached) " >&6
25319 gcc_cv_as_section_has_align
=no
25320 if test $in_tree_gas = yes; then
25321 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25322 then gcc_cv_as_section_has_align
=yes
25324 elif test x
$gcc_cv_as != x
; then
25325 $as_echo '.section lto_test,"dr0"' > conftest.s
25326 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25328 (eval $ac_try) 2>&5
25330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25331 test $ac_status = 0; }; }
25333 gcc_cv_as_section_has_align
=yes
25335 echo "configure: failed program was" >&5
25338 rm -f conftest.o conftest.s
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25342 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25344 if test x
$gcc_cv_as_section_has_align != xyes
; then
25345 case ",$enable_languages," in
25347 { $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
25348 $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;}
25355 # Test if the assembler supports the section flag 'e' for specifying
25356 # an excluded section.
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25358 $as_echo_n "checking assembler for .section with e... " >&6; }
25359 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25360 $as_echo_n "(cached) " >&6
25362 gcc_cv_as_section_has_e
=no
25363 if test $in_tree_gas = yes; then
25364 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25365 then gcc_cv_as_section_has_e
=yes
25367 elif test x
$gcc_cv_as != x
; then
25368 $as_echo '.section foo1,"e"
25369 .byte 0,0,0,0' > conftest.s
25370 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25372 (eval $ac_try) 2>&5
25374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25375 test $ac_status = 0; }; }
25377 gcc_cv_as_section_has_e
=yes
25379 echo "configure: failed program was" >&5
25382 rm -f conftest.o conftest.s
25385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25386 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25389 cat >>confdefs.h
<<_ACEOF
25390 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25395 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25396 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25397 $as_echo_n "(cached) " >&6
25399 gcc_cv_as_ix86_filds
=no
25400 if test x
$gcc_cv_as != x
; then
25401 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25402 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25404 (eval $ac_try) 2>&5
25406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25407 test $ac_status = 0; }; }
25409 gcc_cv_as_ix86_filds
=yes
25411 echo "configure: failed program was" >&5
25414 rm -f conftest.o conftest.s
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25418 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25419 if test $gcc_cv_as_ix86_filds = yes; then
25421 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25426 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25427 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25428 $as_echo_n "(cached) " >&6
25430 gcc_cv_as_ix86_fildq
=no
25431 if test x
$gcc_cv_as != x
; then
25432 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25433 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25435 (eval $ac_try) 2>&5
25437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25438 test $ac_status = 0; }; }
25440 gcc_cv_as_ix86_fildq
=yes
25442 echo "configure: failed program was" >&5
25445 rm -f conftest.o conftest.s
25448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25449 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25450 if test $gcc_cv_as_ix86_fildq = yes; then
25452 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25457 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25458 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25459 $as_echo_n "(cached) " >&6
25461 gcc_cv_as_ix86_cmov_sun_syntax
=no
25462 if test x
$gcc_cv_as != x
; then
25463 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25464 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25466 (eval $ac_try) 2>&5
25468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25469 test $ac_status = 0; }; }
25471 gcc_cv_as_ix86_cmov_sun_syntax
=yes
25473 echo "configure: failed program was" >&5
25476 rm -f conftest.o conftest.s
25479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25480 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25481 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25483 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25488 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25489 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25490 $as_echo_n "(cached) " >&6
25492 gcc_cv_as_ix86_ffreep
=no
25493 if test x
$gcc_cv_as != x
; then
25494 $as_echo 'ffreep %st(1)' > conftest.s
25495 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25497 (eval $ac_try) 2>&5
25499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25500 test $ac_status = 0; }; }
25502 gcc_cv_as_ix86_ffreep
=yes
25504 echo "configure: failed program was" >&5
25507 rm -f conftest.o conftest.s
25510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25511 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25512 if test $gcc_cv_as_ix86_ffreep = yes; then
25514 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25519 $as_echo_n "checking assembler for .quad directive... " >&6; }
25520 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25521 $as_echo_n "(cached) " >&6
25523 gcc_cv_as_ix86_quad
=no
25524 if test x
$gcc_cv_as != x
; then
25525 $as_echo '.quad 0' > conftest.s
25526 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25528 (eval $ac_try) 2>&5
25530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25531 test $ac_status = 0; }; }
25533 gcc_cv_as_ix86_quad
=yes
25535 echo "configure: failed program was" >&5
25538 rm -f conftest.o conftest.s
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25542 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25543 if test $gcc_cv_as_ix86_quad = yes; then
25545 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25550 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25551 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25552 $as_echo_n "(cached) " >&6
25554 gcc_cv_as_ix86_sahf
=no
25555 if test x
$gcc_cv_as != x
; then
25558 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25560 (eval $ac_try) 2>&5
25562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25563 test $ac_status = 0; }; }
25565 gcc_cv_as_ix86_sahf
=yes
25567 echo "configure: failed program was" >&5
25570 rm -f conftest.o conftest.s
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25574 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25575 if test $gcc_cv_as_ix86_sahf = yes; then
25577 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25582 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25583 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25584 $as_echo_n "(cached) " >&6
25586 gcc_cv_as_ix86_interunit_movq
=no
25587 if test x
$gcc_cv_as != x
; then
25590 movq %rax, %xmm0' > conftest.s
25591 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25593 (eval $ac_try) 2>&5
25595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25596 test $ac_status = 0; }; }
25598 gcc_cv_as_ix86_interunit_movq
=yes
25600 echo "configure: failed program was" >&5
25603 rm -f conftest.o conftest.s
25606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25607 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25610 cat >>confdefs.h
<<_ACEOF
25611 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25616 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25617 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25618 $as_echo_n "(cached) " >&6
25620 gcc_cv_as_ix86_hle
=no
25621 if test x
$gcc_cv_as != x
; then
25622 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25623 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25625 (eval $ac_try) 2>&5
25627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25628 test $ac_status = 0; }; }
25630 gcc_cv_as_ix86_hle
=yes
25632 echo "configure: failed program was" >&5
25635 rm -f conftest.o conftest.s
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25639 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25640 if test $gcc_cv_as_ix86_hle = yes; then
25642 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25647 $as_echo_n "checking assembler for swap suffix... " >&6; }
25648 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25649 $as_echo_n "(cached) " >&6
25651 gcc_cv_as_ix86_swap
=no
25652 if test x
$gcc_cv_as != x
; then
25653 $as_echo 'movl.s %esp, %ebp' > conftest.s
25654 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25656 (eval $ac_try) 2>&5
25658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25659 test $ac_status = 0; }; }
25661 gcc_cv_as_ix86_swap
=yes
25663 echo "configure: failed program was" >&5
25666 rm -f conftest.o conftest.s
25669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25670 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25671 if test $gcc_cv_as_ix86_swap = yes; then
25673 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25678 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25679 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25680 $as_echo_n "(cached) " >&6
25682 gcc_cv_as_ix86_diff_sect_delta
=no
25683 if test x
$gcc_cv_as != x
; then
25684 $as_echo '.section .rodata
25690 .L2: nop' > conftest.s
25691 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25693 (eval $ac_try) 2>&5
25695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25696 test $ac_status = 0; }; }
25698 gcc_cv_as_ix86_diff_sect_delta
=yes
25700 echo "configure: failed program was" >&5
25703 rm -f conftest.o conftest.s
25706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25707 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25708 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25710 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25714 # These two are used unconditionally by i386.[ch]; it is to be defined
25715 # to 1 if the feature is present, 0 otherwise.
25716 as_ix86_gotoff_in_data_opt
=
25717 if test x
$gas = xyes
; then
25718 as_ix86_gotoff_in_data_opt
="--32"
25720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25721 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25722 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25723 $as_echo_n "(cached) " >&6
25725 gcc_cv_as_ix86_gotoff_in_data
=no
25726 if test $in_tree_gas = yes; then
25727 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25728 then gcc_cv_as_ix86_gotoff_in_data
=yes
25730 elif test x
$gcc_cv_as != x
; then
25735 .long .L0@GOTOFF' > conftest.s
25736 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25738 (eval $ac_try) 2>&5
25740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25741 test $ac_status = 0; }; }
25743 gcc_cv_as_ix86_gotoff_in_data
=yes
25745 echo "configure: failed program was" >&5
25748 rm -f conftest.o conftest.s
25751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25752 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25755 cat >>confdefs.h
<<_ACEOF
25756 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25761 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25762 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25763 $as_echo_n "(cached) " >&6
25765 gcc_cv_as_ix86_rep_lock_prefix
=no
25766 if test x
$gcc_cv_as != x
; then
25767 $as_echo 'rep movsl
25772 lock addl %edi, (%eax,%esi)
25773 lock orl $0, (%esp)' > conftest.s
25774 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25776 (eval $ac_try) 2>&5
25778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25779 test $ac_status = 0; }; }
25781 gcc_cv_as_ix86_rep_lock_prefix
=yes
25783 echo "configure: failed program was" >&5
25786 rm -f conftest.o conftest.s
25789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25790 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25791 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25793 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25798 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25799 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25800 $as_echo_n "(cached) " >&6
25802 gcc_cv_as_ix86_ud2
=no
25803 if test x
$gcc_cv_as != x
; then
25804 $as_echo 'ud2' > conftest.s
25805 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25807 (eval $ac_try) 2>&5
25809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25810 test $ac_status = 0; }; }
25812 gcc_cv_as_ix86_ud2
=yes
25814 echo "configure: failed program was" >&5
25817 rm -f conftest.o conftest.s
25820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25821 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25822 if test $gcc_cv_as_ix86_ud2 = yes; then
25824 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25829 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25830 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25831 $as_echo_n "(cached) " >&6
25833 gcc_cv_as_ix86_tlsgdplt
=no
25834 if test x
$gcc_cv_as != x
; then
25835 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25836 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25838 (eval $ac_try) 2>&5
25840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25841 test $ac_status = 0; }; }
25843 if test x
$gcc_cv_ld != x \
25844 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25845 gcc_cv_as_ix86_tlsgdplt
=yes
25849 echo "configure: failed program was" >&5
25852 rm -f conftest.o conftest.s
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25856 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25857 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25859 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25864 .section .tdata,"aw'$tls_section_flag'",@progbits
25866 .section .text,"ax",@progbits
25867 call tls_ld@tlsldmplt'
25868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25869 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25870 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25871 $as_echo_n "(cached) " >&6
25873 gcc_cv_as_ix86_tlsldmplt
=no
25874 if test x
$gcc_cv_as != x
; then
25875 $as_echo "$conftest_s" > conftest.s
25876 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25878 (eval $ac_try) 2>&5
25880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25881 test $ac_status = 0; }; }
25883 if test x
$gcc_cv_ld != x \
25884 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25885 gcc_cv_as_ix86_tlsldmplt
=yes
25889 echo "configure: failed program was" >&5
25892 rm -f conftest.o conftest.s
25895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25896 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25899 cat >>confdefs.h
<<_ACEOF
25900 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25904 # Enforce 32-bit output with gas and gld.
25905 if test x
$gas = xyes
; then
25906 as_ix86_tls_ldm_opt
="--32"
25908 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25909 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
25910 ld_ix86_tls_ldm_opt
="-melf_i386_sol2"
25912 ld_ix86_tls_ldm_opt
="-melf_i386"
25916 .section .text,"ax",@progbits
25918 .type _start, @function
25920 leal value@tlsldm(%ebx), %eax
25921 call ___tls_get_addr@plt
25923 .section .tdata,"aw'$tls_section_flag'",@progbits
25924 .type value, @object
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25927 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25928 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25929 $as_echo_n "(cached) " >&6
25931 gcc_cv_as_ix86_tlsldm
=no
25932 if test x
$gcc_cv_as != x
; then
25933 $as_echo "$conftest_s" > conftest.s
25934 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25936 (eval $ac_try) 2>&5
25938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25939 test $ac_status = 0; }; }
25941 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25942 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
25943 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
25944 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
25945 gcc_cv_as_ix86_tlsldm
=yes
25950 echo "configure: failed program was" >&5
25953 rm -f conftest.o conftest.s
25956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25957 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25960 cat >>confdefs.h
<<_ACEOF
25961 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25969 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25970 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25971 $as_echo_n "(cached) " >&6
25973 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25974 if test $in_tree_gas = yes; then
25975 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25976 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25978 elif test x
$gcc_cv_as != x
; then
25980 addl r15 = @ltoffx(x#), gp
25982 ld8.mov r16 = [r15], x#' > conftest.s
25983 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25985 (eval $ac_try) 2>&5
25987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25988 test $ac_status = 0; }; }
25990 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25992 echo "configure: failed program was" >&5
25995 rm -f conftest.o conftest.s
25998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25999 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26000 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26002 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26013 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26014 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26015 $as_echo_n "(cached) " >&6
26017 gcc_cv_as_machine_directive
=no
26018 if test x
$gcc_cv_as != x
; then
26019 $as_echo ' .machine ppc7400' > conftest.s
26020 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26022 (eval $ac_try) 2>&5
26024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26025 test $ac_status = 0; }; }
26027 gcc_cv_as_machine_directive
=yes
26029 echo "configure: failed program was" >&5
26032 rm -f conftest.o conftest.s
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26036 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26038 if test x
$gcc_cv_as_machine_directive != xyes
; then
26039 echo "*** This target requires an assembler supporting \".machine\"" >&2
26040 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
26041 test x
$build = x
$target && exit 1
26047 *-*-aix*) conftest_s
=' .machine "pwr5"
26050 *-*-darwin*) conftest_s
=' .text
26052 *) conftest_s
=' .machine power4
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26058 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26059 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26060 $as_echo_n "(cached) " >&6
26062 gcc_cv_as_powerpc_mfcrf
=no
26063 if test $in_tree_gas = yes; then
26064 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26065 then gcc_cv_as_powerpc_mfcrf
=yes
26067 elif test x
$gcc_cv_as != x
; then
26068 $as_echo "$conftest_s" > conftest.s
26069 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26071 (eval $ac_try) 2>&5
26073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26074 test $ac_status = 0; }; }
26076 gcc_cv_as_powerpc_mfcrf
=yes
26078 echo "configure: failed program was" >&5
26081 rm -f conftest.o conftest.s
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26085 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26086 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26088 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26093 *-*-aix*) conftest_s
=' .machine "pwr5"
26096 *) conftest_s
=' .machine power5
26101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26102 $as_echo_n "checking assembler for popcntb support... " >&6; }
26103 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26104 $as_echo_n "(cached) " >&6
26106 gcc_cv_as_powerpc_popcntb
=no
26107 if test $in_tree_gas = yes; then
26108 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26109 then gcc_cv_as_powerpc_popcntb
=yes
26111 elif test x
$gcc_cv_as != x
; then
26112 $as_echo "$conftest_s" > conftest.s
26113 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26115 (eval $ac_try) 2>&5
26117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26118 test $ac_status = 0; }; }
26120 gcc_cv_as_powerpc_popcntb
=yes
26122 echo "configure: failed program was" >&5
26125 rm -f conftest.o conftest.s
26128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26129 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26130 if test $gcc_cv_as_powerpc_popcntb = yes; then
26132 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26137 *-*-aix*) conftest_s
=' .machine "pwr5x"
26140 *) conftest_s
=' .machine power5
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26146 $as_echo_n "checking assembler for fp round support... " >&6; }
26147 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26148 $as_echo_n "(cached) " >&6
26150 gcc_cv_as_powerpc_fprnd
=no
26151 if test $in_tree_gas = yes; then
26152 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26153 then gcc_cv_as_powerpc_fprnd
=yes
26155 elif test x
$gcc_cv_as != x
; then
26156 $as_echo "$conftest_s" > conftest.s
26157 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26159 (eval $ac_try) 2>&5
26161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26162 test $ac_status = 0; }; }
26164 gcc_cv_as_powerpc_fprnd
=yes
26166 echo "configure: failed program was" >&5
26169 rm -f conftest.o conftest.s
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26173 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26174 if test $gcc_cv_as_powerpc_fprnd = yes; then
26176 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26181 *-*-aix*) conftest_s
=' .machine "pwr6"
26184 *) conftest_s
=' .machine power6
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26190 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26191 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26192 $as_echo_n "(cached) " >&6
26194 gcc_cv_as_powerpc_mfpgpr
=no
26195 if test $in_tree_gas = yes; then
26196 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26197 then gcc_cv_as_powerpc_mfpgpr
=yes
26199 elif test x
$gcc_cv_as != x
; then
26200 $as_echo "$conftest_s" > conftest.s
26201 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26203 (eval $ac_try) 2>&5
26205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26206 test $ac_status = 0; }; }
26208 gcc_cv_as_powerpc_mfpgpr
=yes
26210 echo "configure: failed program was" >&5
26213 rm -f conftest.o conftest.s
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26217 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26218 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26220 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26225 *-*-aix*) conftest_s
=' .csect .text[PR]
26227 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26231 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26232 *) conftest_s
=' .text
26234 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26238 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26239 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26240 $as_echo_n "(cached) " >&6
26242 gcc_cv_as_powerpc_rel16
=no
26243 if test $in_tree_gas = yes; then
26244 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26245 then gcc_cv_as_powerpc_rel16
=yes
26247 elif test x
$gcc_cv_as != x
; then
26248 $as_echo "$conftest_s" > conftest.s
26249 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26251 (eval $ac_try) 2>&5
26253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26254 test $ac_status = 0; }; }
26256 gcc_cv_as_powerpc_rel16
=yes
26258 echo "configure: failed program was" >&5
26261 rm -f conftest.o conftest.s
26264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26265 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26266 if test $gcc_cv_as_powerpc_rel16 = yes; then
26268 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26273 *-*-aix*) conftest_s
=' .machine "pwr6"
26276 *) conftest_s
=' .machine power6
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26282 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26283 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26284 $as_echo_n "(cached) " >&6
26286 gcc_cv_as_powerpc_cmpb
=no
26287 if test $in_tree_gas = yes; then
26288 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26289 then gcc_cv_as_powerpc_cmpb
=yes
26291 elif test x
$gcc_cv_as != x
; then
26292 $as_echo "$conftest_s" > conftest.s
26293 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26295 (eval $ac_try) 2>&5
26297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26298 test $ac_status = 0; }; }
26300 gcc_cv_as_powerpc_cmpb
=yes
26302 echo "configure: failed program was" >&5
26305 rm -f conftest.o conftest.s
26308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26309 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26310 if test $gcc_cv_as_powerpc_cmpb = yes; then
26312 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26317 *-*-aix*) conftest_s
=' .machine "pwr6"
26320 *) conftest_s
=' .machine power6
26325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26326 $as_echo_n "checking assembler for decimal float support... " >&6; }
26327 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26328 $as_echo_n "(cached) " >&6
26330 gcc_cv_as_powerpc_dfp
=no
26331 if test $in_tree_gas = yes; then
26332 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26333 then gcc_cv_as_powerpc_dfp
=yes
26335 elif test x
$gcc_cv_as != x
; then
26336 $as_echo "$conftest_s" > conftest.s
26337 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26339 (eval $ac_try) 2>&5
26341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26342 test $ac_status = 0; }; }
26344 gcc_cv_as_powerpc_dfp
=yes
26346 echo "configure: failed program was" >&5
26349 rm -f conftest.o conftest.s
26352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26353 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26354 if test $gcc_cv_as_powerpc_dfp = yes; then
26356 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26361 *-*-aix*) conftest_s
=' .machine "pwr7"
26364 *) conftest_s
=' .machine power7
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26370 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26371 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26372 $as_echo_n "(cached) " >&6
26374 gcc_cv_as_powerpc_vsx
=no
26375 if test $in_tree_gas = yes; then
26376 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26377 then gcc_cv_as_powerpc_vsx
=yes
26379 elif test x
$gcc_cv_as != x
; then
26380 $as_echo "$conftest_s" > conftest.s
26381 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26383 (eval $ac_try) 2>&5
26385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26386 test $ac_status = 0; }; }
26388 gcc_cv_as_powerpc_vsx
=yes
26390 echo "configure: failed program was" >&5
26393 rm -f conftest.o conftest.s
26396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26397 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26398 if test $gcc_cv_as_powerpc_vsx = yes; then
26400 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26405 *-*-aix*) conftest_s
=' .machine "pwr7"
26408 *) conftest_s
=' .machine power7
26413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26414 $as_echo_n "checking assembler for popcntd support... " >&6; }
26415 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26416 $as_echo_n "(cached) " >&6
26418 gcc_cv_as_powerpc_popcntd
=no
26419 if test $in_tree_gas = yes; then
26420 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26421 then gcc_cv_as_powerpc_popcntd
=yes
26423 elif test x
$gcc_cv_as != x
; then
26424 $as_echo "$conftest_s" > conftest.s
26425 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26427 (eval $ac_try) 2>&5
26429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26430 test $ac_status = 0; }; }
26432 gcc_cv_as_powerpc_popcntd
=yes
26434 echo "configure: failed program was" >&5
26437 rm -f conftest.o conftest.s
26440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26441 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26442 if test $gcc_cv_as_powerpc_popcntd = yes; then
26444 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26449 *-*-aix*) conftest_s
=' .machine "pwr8"
26450 .csect .text[PR]';;
26451 *) conftest_s
=' .machine power8
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26456 $as_echo_n "checking assembler for power8 support... " >&6; }
26457 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26458 $as_echo_n "(cached) " >&6
26460 gcc_cv_as_powerpc_power8
=no
26461 if test $in_tree_gas = yes; then
26462 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26463 then gcc_cv_as_powerpc_power8
=yes
26465 elif test x
$gcc_cv_as != x
; then
26466 $as_echo "$conftest_s" > conftest.s
26467 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26469 (eval $ac_try) 2>&5
26471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26472 test $ac_status = 0; }; }
26474 gcc_cv_as_powerpc_power8
=yes
26476 echo "configure: failed program was" >&5
26479 rm -f conftest.o conftest.s
26482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26483 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26484 if test $gcc_cv_as_powerpc_power8 = yes; then
26486 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26491 *-*-aix*) conftest_s
=' .machine "pwr9"
26492 .csect .text[PR]';;
26493 *) conftest_s
=' .machine power9
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26498 $as_echo_n "checking assembler for power9 support... " >&6; }
26499 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26500 $as_echo_n "(cached) " >&6
26502 gcc_cv_as_powerpc_power9
=no
26503 if test $in_tree_gas = yes; then
26504 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26505 then gcc_cv_as_powerpc_power9
=yes
26507 elif test x
$gcc_cv_as != x
; then
26508 $as_echo "$conftest_s" > conftest.s
26509 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26511 (eval $ac_try) 2>&5
26513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26514 test $ac_status = 0; }; }
26516 gcc_cv_as_powerpc_power9
=yes
26518 echo "configure: failed program was" >&5
26521 rm -f conftest.o conftest.s
26524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26525 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26526 if test $gcc_cv_as_powerpc_power9 = yes; then
26528 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26533 *-*-aix*) conftest_s
=' .csect .text[PR]
26535 *) conftest_s
=' .text
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26540 $as_echo_n "checking assembler for lwsync support... " >&6; }
26541 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26542 $as_echo_n "(cached) " >&6
26544 gcc_cv_as_powerpc_lwsync
=no
26545 if test $in_tree_gas = yes; then
26546 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26547 then gcc_cv_as_powerpc_lwsync
=yes
26549 elif test x
$gcc_cv_as != x
; then
26550 $as_echo "$conftest_s" > conftest.s
26551 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26553 (eval $ac_try) 2>&5
26555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26556 test $ac_status = 0; }; }
26558 gcc_cv_as_powerpc_lwsync
=yes
26560 echo "configure: failed program was" >&5
26563 rm -f conftest.o conftest.s
26566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26567 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26568 if test $gcc_cv_as_powerpc_lwsync = yes; then
26570 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26575 *-*-aix*) conftest_s
=' .machine "476"
26578 *) conftest_s
=' .machine "476"
26583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26584 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26585 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26586 $as_echo_n "(cached) " >&6
26588 gcc_cv_as_powerpc_dci
=no
26589 if test $in_tree_gas = yes; then
26590 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26591 then gcc_cv_as_powerpc_dci
=yes
26593 elif test x
$gcc_cv_as != x
; then
26594 $as_echo "$conftest_s" > conftest.s
26595 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26597 (eval $ac_try) 2>&5
26599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26600 test $ac_status = 0; }; }
26602 gcc_cv_as_powerpc_dci
=yes
26604 echo "configure: failed program was" >&5
26607 rm -f conftest.o conftest.s
26610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26611 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26612 if test $gcc_cv_as_powerpc_dci = yes; then
26614 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26619 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26620 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26621 $as_echo_n "(cached) " >&6
26623 gcc_cv_as_powerpc_gnu_attribute
=no
26624 if test $in_tree_gas = yes; then
26625 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26626 then gcc_cv_as_powerpc_gnu_attribute
=yes
26628 elif test x
$gcc_cv_as != x
; then
26629 $as_echo '.gnu_attribute 4,1' > conftest.s
26630 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26632 (eval $ac_try) 2>&5
26634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26635 test $ac_status = 0; }; }
26637 gcc_cv_as_powerpc_gnu_attribute
=yes
26639 echo "configure: failed program was" >&5
26642 rm -f conftest.o conftest.s
26645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26646 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26647 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26649 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26654 $as_echo_n "checking assembler for tls marker support... " >&6; }
26655 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26656 $as_echo_n "(cached) " >&6
26658 gcc_cv_as_powerpc_tls_markers
=no
26659 if test $in_tree_gas = yes; then
26660 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26661 then gcc_cv_as_powerpc_tls_markers
=yes
26663 elif test x
$gcc_cv_as != x
; then
26664 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26665 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26667 (eval $ac_try) 2>&5
26669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26670 test $ac_status = 0; }; }
26672 gcc_cv_as_powerpc_tls_markers
=yes
26674 echo "configure: failed program was" >&5
26677 rm -f conftest.o conftest.s
26680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26681 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26682 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26684 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26689 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26690 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26691 $as_echo_n "(cached) " >&6
26693 gcc_cv_as_powerpc_entry_markers
=no
26694 if test $in_tree_gas = yes; then
26695 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26696 then gcc_cv_as_powerpc_entry_markers
=yes
26698 elif test x
$gcc_cv_as != x
; then
26699 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26700 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26702 (eval $ac_try) 2>&5
26704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26705 test $ac_status = 0; }; }
26707 gcc_cv_as_powerpc_entry_markers
=yes
26709 echo "configure: failed program was" >&5
26712 rm -f conftest.o conftest.s
26715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26716 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26717 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26719 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26726 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26727 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26728 $as_echo_n "(cached) " >&6
26730 gcc_cv_as_aix_ref
=no
26731 if test $in_tree_gas = yes; then
26732 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26733 then gcc_cv_as_aix_ref
=yes
26735 elif test x
$gcc_cv_as != x
; then
26736 $as_echo ' .csect stuff[rw]
26742 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26744 (eval $ac_try) 2>&5
26746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26747 test $ac_status = 0; }; }
26749 gcc_cv_as_aix_ref
=yes
26751 echo "configure: failed program was" >&5
26754 rm -f conftest.o conftest.s
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26758 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26759 if test $gcc_cv_as_aix_ref = yes; then
26761 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26766 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26767 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26768 $as_echo_n "(cached) " >&6
26770 gcc_cv_as_aix_dwloc
=no
26771 if test $in_tree_gas = yes; then
26772 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26773 then gcc_cv_as_aix_dwloc
=yes
26775 elif test x
$gcc_cv_as != x
; then
26776 $as_echo ' .dwsect 0xA0000
26778 .vbyte 4,Lframe..0:
26780 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26782 (eval $ac_try) 2>&5
26784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26785 test $ac_status = 0; }; }
26787 gcc_cv_as_aix_dwloc
=yes
26789 echo "configure: failed program was" >&5
26792 rm -f conftest.o conftest.s
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26796 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26797 if test $gcc_cv_as_aix_dwloc = yes; then
26799 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26808 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26809 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26810 $as_echo_n "(cached) " >&6
26812 gcc_cv_as_mips_explicit_relocs
=no
26813 if test $in_tree_gas = yes; then
26814 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26815 then gcc_cv_as_mips_explicit_relocs
=yes
26817 elif test x
$gcc_cv_as != x
; then
26818 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26819 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26821 (eval $ac_try) 2>&5
26823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26824 test $ac_status = 0; }; }
26826 gcc_cv_as_mips_explicit_relocs
=yes
26828 echo "configure: failed program was" >&5
26831 rm -f conftest.o conftest.s
26834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26835 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26836 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26837 if test x
$target_cpu_default = x
26838 then target_cpu_default
=MASK_EXPLICIT_RELOCS
26839 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26844 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26845 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26846 $as_echo_n "(cached) " >&6
26848 gcc_cv_as_mips_no_shared
=no
26849 if test $in_tree_gas = yes; then
26850 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26851 then gcc_cv_as_mips_no_shared
=yes
26853 elif test x
$gcc_cv_as != x
; then
26854 $as_echo 'nop' > conftest.s
26855 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26857 (eval $ac_try) 2>&5
26859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26860 test $ac_status = 0; }; }
26862 gcc_cv_as_mips_no_shared
=yes
26864 echo "configure: failed program was" >&5
26867 rm -f conftest.o conftest.s
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26871 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26872 if test $gcc_cv_as_mips_no_shared = yes; then
26874 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26879 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26880 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26881 $as_echo_n "(cached) " >&6
26883 gcc_cv_as_mips_gnu_attribute
=no
26884 if test $in_tree_gas = yes; then
26885 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26886 then gcc_cv_as_mips_gnu_attribute
=yes
26888 elif test x
$gcc_cv_as != x
; then
26889 $as_echo '.gnu_attribute 4,1' > conftest.s
26890 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26892 (eval $ac_try) 2>&5
26894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26895 test $ac_status = 0; }; }
26897 gcc_cv_as_mips_gnu_attribute
=yes
26899 echo "configure: failed program was" >&5
26902 rm -f conftest.o conftest.s
26905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26906 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26907 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26909 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26914 $as_echo_n "checking assembler for .module support... " >&6; }
26915 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26916 $as_echo_n "(cached) " >&6
26918 gcc_cv_as_mips_dot_module
=no
26919 if test x
$gcc_cv_as != x
; then
26920 $as_echo '.module mips2
26921 .module fp=xx' > conftest.s
26922 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26924 (eval $ac_try) 2>&5
26926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26927 test $ac_status = 0; }; }
26929 gcc_cv_as_mips_dot_module
=yes
26931 echo "configure: failed program was" >&5
26934 rm -f conftest.o conftest.s
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26938 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26939 if test $gcc_cv_as_mips_dot_module = yes; then
26941 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26944 if test x
$gcc_cv_as_mips_dot_module = xno \
26945 && test x
$with_fp_32 != x
; then
26946 as_fn_error
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26950 $as_echo_n "checking assembler for .micromips support... " >&6; }
26951 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26952 $as_echo_n "(cached) " >&6
26954 gcc_cv_as_micromips_support
=no
26955 if test x
$gcc_cv_as != x
; then
26956 $as_echo '.set micromips' > conftest.s
26957 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26959 (eval $ac_try) 2>&5
26961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26962 test $ac_status = 0; }; }
26964 gcc_cv_as_micromips_support
=yes
26966 echo "configure: failed program was" >&5
26969 rm -f conftest.o conftest.s
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26973 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26974 if test $gcc_cv_as_micromips_support = yes; then
26976 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26981 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26982 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26983 $as_echo_n "(cached) " >&6
26985 gcc_cv_as_mips_dtprelword
=no
26986 if test $in_tree_gas = yes; then
26987 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26988 then gcc_cv_as_mips_dtprelword
=yes
26990 elif test x
$gcc_cv_as != x
; then
26991 $as_echo '.section .tdata,"awT",@progbits
26995 .dtprelword x+0x8000' > conftest.s
26996 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26998 (eval $ac_try) 2>&5
27000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27001 test $ac_status = 0; }; }
27003 gcc_cv_as_mips_dtprelword
=yes
27005 echo "configure: failed program was" >&5
27008 rm -f conftest.o conftest.s
27011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27012 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27013 if test $gcc_cv_as_mips_dtprelword = yes; then
27015 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27020 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27021 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27022 $as_echo_n "(cached) " >&6
27024 gcc_cv_as_mips_dspr1_mult
=no
27025 if test x
$gcc_cv_as != x
; then
27026 $as_echo ' .set mips32r2
27034 multu $ac3,$4,$5' > conftest.s
27035 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27037 (eval $ac_try) 2>&5
27039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27040 test $ac_status = 0; }; }
27042 gcc_cv_as_mips_dspr1_mult
=yes
27044 echo "configure: failed program was" >&5
27047 rm -f conftest.o conftest.s
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27051 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27052 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27054 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27059 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27060 gcc_cv_as_ld_jalr_reloc
=no
27061 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27062 if test $in_tree_ld = yes ; then
27063 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 \
27064 && test $in_tree_ld_is_elf = yes; then
27065 gcc_cv_as_ld_jalr_reloc
=yes
27067 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27068 echo ' .ent x' > conftest.s
27069 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27070 echo ' lw $25,%call16(y)($28)' >> conftest.s
27071 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27072 echo '1: jalr $25' >> conftest.s
27073 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27074 echo '1: jalr $25' >> conftest.s
27075 echo ' .end x' >> conftest.s
27076 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
27077 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
27078 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
27079 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
27080 gcc_cv_as_ld_jalr_reloc
=yes
27086 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27087 if test x
$target_cpu_default = x
; then
27088 target_cpu_default
=MASK_RELAX_PIC_CALLS
27090 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27094 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27097 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27098 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27099 $as_echo_n "(cached) " >&6
27101 gcc_cv_ld_mips_personality_relaxation
=no
27102 if test $in_tree_ld = yes ; then
27103 if test "$gcc_cv_gld_major_version" -eq 2 \
27104 -a "$gcc_cv_gld_minor_version" -ge 21 \
27105 -o "$gcc_cv_gld_major_version" -gt 2; then
27106 gcc_cv_ld_mips_personality_relaxation
=yes
27108 elif test x
$gcc_cv_as != x \
27109 -a x
$gcc_cv_ld != x \
27110 -a x
$gcc_cv_readelf != x
; then
27111 cat > conftest.s
<<EOF
27113 .cfi_personality 0x80,indirect_ptr
27120 .section .data,"aw",@progbits
27124 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
27125 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
27126 if $gcc_cv_readelf -d conftest
2>&1 \
27127 |
grep TEXTREL
> /dev
/null
2>&1; then
27129 elif $gcc_cv_readelf --relocs conftest
2>&1 \
27130 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
27133 gcc_cv_ld_mips_personality_relaxation
=yes
27137 rm -f conftest.s conftest.o conftest
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27140 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27141 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
27143 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27148 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27149 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27150 $as_echo_n "(cached) " >&6
27152 gcc_cv_as_mips_nan
=no
27153 if test x
$gcc_cv_as != x
; then
27154 $as_echo '' > conftest.s
27155 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27157 (eval $ac_try) 2>&5
27159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27160 test $ac_status = 0; }; }
27162 gcc_cv_as_mips_nan
=yes
27164 echo "configure: failed program was" >&5
27167 rm -f conftest.o conftest.s
27170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27171 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27172 if test $gcc_cv_as_mips_nan = yes; then
27174 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27177 if test x
$gcc_cv_as_mips_nan = xno \
27178 && test x
$with_nan != x
; then
27179 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27184 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27185 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27186 $as_echo_n "(cached) " >&6
27188 gcc_cv_as_s390_gnu_attribute
=no
27189 if test $in_tree_gas = yes; then
27190 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27191 then gcc_cv_as_s390_gnu_attribute
=yes
27193 elif test x
$gcc_cv_as != x
; then
27194 $as_echo '.gnu_attribute 8,1' > conftest.s
27195 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27197 (eval $ac_try) 2>&5
27199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27200 test $ac_status = 0; }; }
27202 gcc_cv_as_s390_gnu_attribute
=yes
27204 echo "configure: failed program was" >&5
27207 rm -f conftest.o conftest.s
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27211 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27212 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27214 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27218 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27219 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27220 $as_echo_n "(cached) " >&6
27222 gcc_cv_as_s390_machine_machinemode
=no
27223 if test $in_tree_gas = yes; then
27224 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27225 then gcc_cv_as_s390_machine_machinemode
=yes
27227 elif test x
$gcc_cv_as != x
; then
27228 $as_echo ' .machinemode push
27231 .machine pop' > conftest.s
27232 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27234 (eval $ac_try) 2>&5
27236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27237 test $ac_status = 0; }; }
27239 gcc_cv_as_s390_machine_machinemode
=yes
27241 echo "configure: failed program was" >&5
27244 rm -f conftest.o conftest.s
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27248 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27249 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27251 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27255 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27256 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27257 $as_echo_n "(cached) " >&6
27259 gcc_cv_as_s390_architecture_modifiers
=no
27260 if test $in_tree_gas = yes; then
27261 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27262 then gcc_cv_as_s390_architecture_modifiers
=yes
27264 elif test x
$gcc_cv_as != x
; then
27265 $as_echo ' .machine z13+vx ' > conftest.s
27266 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27268 (eval $ac_try) 2>&5
27270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27271 test $ac_status = 0; }; }
27273 gcc_cv_as_s390_architecture_modifiers
=yes
27275 echo "configure: failed program was" >&5
27278 rm -f conftest.o conftest.s
27281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27282 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27283 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27285 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27291 # Mips and HP-UX need the GNU assembler.
27292 # Linux on IA64 might be able to use the Intel assembler.
27295 mips
*-*-* |
*-*-hpux* )
27296 if test x
$gas_flag = xyes \
27297 ||
test x
"$host" != x
"$build" \
27298 ||
test ! -x "$gcc_cv_as" \
27299 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
27302 echo "*** This configuration requires the GNU assembler" >&2
27308 # ??? Not all targets support dwarf2 debug_line, even within a version
27309 # of gas. Moreover, we need to emit a valid instruction to trigger any
27310 # info to the output file. So, as supported targets are added to gas 2.11,
27311 # add some instruction here to (also) show we expect this might work.
27312 # ??? Once 2.11 is released, probably need to add first known working
27313 # version to the per-target configury.
27314 case "$cpu_type" in
27315 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27316 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
27317 | visium | xstormy16 | xtensa
)
27327 if test x
"$insn" != x
; then
27329 .file 1 \"conftest.s\"
27332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27333 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27334 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27335 $as_echo_n "(cached) " >&6
27337 gcc_cv_as_dwarf2_debug_line
=no
27338 if test $in_tree_gas = yes; then
27339 if test $in_tree_gas_is_elf = yes \
27340 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27341 then gcc_cv_as_dwarf2_debug_line
=yes
27343 elif test x
$gcc_cv_as != x
; then
27344 $as_echo "$conftest_s" > conftest.s
27345 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27347 (eval $ac_try) 2>&5
27349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27350 test $ac_status = 0; }; }
27352 if test x
$gcc_cv_objdump != x \
27353 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
27354 |
grep debug_line
> /dev
/null
2>&1; then
27355 gcc_cv_as_dwarf2_debug_line
=yes
27358 echo "configure: failed program was" >&5
27361 rm -f conftest.o conftest.s
27364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27365 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27368 # The .debug_line file table must be in the exact order that
27369 # we specified the files, since these indices are also used
27370 # by DW_AT_decl_file. Approximate this test by testing if
27371 # the assembler bitches if the same index is assigned twice.
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27373 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27374 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27375 $as_echo_n "(cached) " >&6
27377 gcc_cv_as_dwarf2_file_buggy
=no
27378 if test x
$gcc_cv_as != x
; then
27379 $as_echo ' .file 1 "foo.s"
27380 .file 1 "bar.s"' > conftest.s
27381 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27383 (eval $ac_try) 2>&5
27385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27386 test $ac_status = 0; }; }
27388 gcc_cv_as_dwarf2_file_buggy
=yes
27390 echo "configure: failed program was" >&5
27393 rm -f conftest.o conftest.s
27396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27397 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27400 if test $gcc_cv_as_dwarf2_debug_line = yes \
27401 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
27403 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27408 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27409 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27410 $as_echo_n "(cached) " >&6
27412 gcc_cv_as_gdwarf2_flag
=no
27413 if test $in_tree_gas = yes; then
27414 if test $in_tree_gas_is_elf = yes \
27415 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27416 then gcc_cv_as_gdwarf2_flag
=yes
27418 elif test x
$gcc_cv_as != x
; then
27419 $as_echo "$insn" > conftest.s
27420 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27422 (eval $ac_try) 2>&5
27424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27425 test $ac_status = 0; }; }
27427 gcc_cv_as_gdwarf2_flag
=yes
27429 echo "configure: failed program was" >&5
27432 rm -f conftest.o conftest.s
27435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27436 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27437 if test $gcc_cv_as_gdwarf2_flag = yes; then
27439 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27444 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27445 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27446 $as_echo_n "(cached) " >&6
27448 gcc_cv_as_gstabs_flag
=no
27449 if test $in_tree_gas = yes; then
27450 if test $in_tree_gas_is_elf = yes \
27451 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27452 then gcc_cv_as_gstabs_flag
=yes
27454 elif test x
$gcc_cv_as != x
; then
27455 $as_echo "$insn" > conftest.s
27456 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27458 (eval $ac_try) 2>&5
27460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27461 test $ac_status = 0; }; }
27463 gcc_cv_as_gstabs_flag
=yes
27465 echo "configure: failed program was" >&5
27468 rm -f conftest.o conftest.s
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27472 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27473 if test $gcc_cv_as_gstabs_flag = yes; then
27475 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27480 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27481 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27482 $as_echo_n "(cached) " >&6
27484 gcc_cv_as_debug_prefix_map_flag
=no
27485 if test $in_tree_gas = yes; then
27486 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27487 then gcc_cv_as_debug_prefix_map_flag
=yes
27489 elif test x
$gcc_cv_as != x
; then
27490 $as_echo "$insn" > conftest.s
27491 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27493 (eval $ac_try) 2>&5
27495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27496 test $ac_status = 0; }; }
27498 gcc_cv_as_debug_prefix_map_flag
=yes
27500 echo "configure: failed program was" >&5
27503 rm -f conftest.o conftest.s
27506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27507 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27508 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27510 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27516 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27517 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27518 $as_echo_n "(cached) " >&6
27520 gcc_cv_as_compress_debug
=no
27521 if test x
$gcc_cv_as != x
; then
27522 $as_echo '' > conftest.s
27523 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27525 (eval $ac_try) 2>&5
27527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27528 test $ac_status = 0; }; }
27530 # gas compiled without zlib cannot compress debug sections and warns
27531 # about it, but still exits successfully. So check for this, too.
27532 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
27534 gcc_cv_as_compress_debug
=0
27535 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
27537 gcc_cv_as_compress_debug
=1
27538 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27539 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27541 gcc_cv_as_compress_debug
=0
27542 # FIXME: Future gas versions will support ELF gABI style via
27543 # --compress-debug-sections[=type].
27546 echo "configure: failed program was" >&5
27549 rm -f conftest.o conftest.s
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27553 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27556 cat >>confdefs.h
<<_ACEOF
27557 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27561 cat >>confdefs.h
<<_ACEOF
27562 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27566 cat >>confdefs.h
<<_ACEOF
27567 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27572 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27573 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27574 $as_echo_n "(cached) " >&6
27576 gcc_cv_as_lcomm_with_alignment
=no
27577 if test x
$gcc_cv_as != x
; then
27578 $as_echo '.lcomm bar,4,16' > conftest.s
27579 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27581 (eval $ac_try) 2>&5
27583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27584 test $ac_status = 0; }; }
27586 gcc_cv_as_lcomm_with_alignment
=yes
27588 echo "configure: failed program was" >&5
27591 rm -f conftest.o conftest.s
27594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27595 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27596 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27598 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27602 if test x
$with_sysroot = x
&& test x
$host = x
$target \
27603 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27604 && test "$prefix" != "NONE"; then
27606 cat >>confdefs.h
<<_ACEOF
27607 #define PREFIX_INCLUDE_DIR "$prefix/include"
27612 # Determine the version of glibc, if any, used on the target.
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27614 $as_echo_n "checking for target glibc version... " >&6; }
27616 # Check whether --with-glibc-version was given.
27617 if test "${with_glibc_version+set}" = set; then :
27618 withval
=$with_glibc_version;
27619 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27620 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27621 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27623 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
27627 glibc_version_major
=0
27628 glibc_version_minor
=0
27629 if test -f $target_header_dir/features.h \
27630 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27631 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27632 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27633 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27638 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27640 cat >>confdefs.h
<<_ACEOF
27641 #define TARGET_GLIBC_MAJOR $glibc_version_major
27645 cat >>confdefs.h
<<_ACEOF
27646 #define TARGET_GLIBC_MINOR $glibc_version_minor
27650 # Check whether --enable-gnu-unique-object was given.
27651 if test "${enable_gnu_unique_object+set}" = set; then :
27652 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27654 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27655 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27659 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27660 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27661 $as_echo_n "(cached) " >&6
27663 gcc_cv_as_gnu_unique_object
=no
27664 if test $in_tree_gas = yes; then
27665 if test $in_tree_gas_is_elf = yes \
27666 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27667 then gcc_cv_as_gnu_unique_object
=yes
27669 elif test x
$gcc_cv_as != x
; then
27670 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27671 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27673 (eval $ac_try) 2>&5
27675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27676 test $ac_status = 0; }; }
27678 gcc_cv_as_gnu_unique_object
=yes
27680 echo "configure: failed program was" >&5
27683 rm -f conftest.o conftest.s
27686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27687 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27688 if test $gcc_cv_as_gnu_unique_object = yes; then
27689 # We need to unquote above to to use the definition from config.gcc.
27690 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27692 if test $glibc_version_major -gt 2 \
27693 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27694 enable_gnu_unique_object
=yes
27700 if test x
$enable_gnu_unique_object = xyes
; then
27702 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27707 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27708 if test "${gcc_cv_as_line_zero+set}" = set; then :
27709 $as_echo_n "(cached) " >&6
27711 gcc_cv_as_line_zero
=no
27712 if test $in_tree_gas = yes; then
27713 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27714 then gcc_cv_as_line_zero
=yes
27716 elif test "x$gcc_cv_as" != x
; then
27717 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27718 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27720 (eval $ac_try) 2>&5
27722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27723 test $ac_status = 0; }; } &&
27724 test "x`cat conftest.out`" = x
27726 gcc_cv_as_line_zero
=yes
27728 echo "configure: failed program was" >&5
27730 echo "configure: error output was" >&5
27731 cat conftest.out
>&5
27733 rm -f conftest.o conftest.s conftest.out
27736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27737 $as_echo "$gcc_cv_as_line_zero" >&6; }
27738 if test "x$gcc_cv_as_line_zero" = xyes
; then
27740 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27745 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27746 gcc_cv_ld_eh_frame_hdr
=no
27747 if test $in_tree_ld = yes ; then
27748 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 \
27749 && test $in_tree_ld_is_elf = yes; then
27750 gcc_cv_ld_eh_frame_hdr
=yes
27752 elif test x
$gcc_cv_ld != x
; then
27753 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27754 # Check if linker supports --eh-frame-hdr option
27755 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
27756 gcc_cv_ld_eh_frame_hdr
=yes
27761 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27762 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
27763 gcc_cv_ld_eh_frame_hdr
=yes
27770 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
27772 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27776 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27779 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27780 gcc_cv_ld_eh_frame_ciev3
=no
27781 if test $in_tree_ld = yes ; then
27782 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 \
27783 && test $in_tree_ld_is_elf = yes; then
27784 gcc_cv_ld_eh_frame_ciev3
=yes
27786 elif test x
$gcc_cv_ld != x
; then
27787 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27788 gcc_cv_ld_eh_frame_ciev3
=yes
27789 if test 0"$ld_date" -lt 20040513; then
27790 if test -n "$ld_date"; then
27791 # If there was date string, but was earlier than 2004-05-13, fail
27792 gcc_cv_ld_eh_frame_ciev3
=no
27793 elif test "$ld_vers_major" -lt 2; then
27794 gcc_cv_ld_eh_frame_ciev3
=no
27795 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27796 gcc_cv_ld_eh_frame_ciev3
=no
27802 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27803 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
27804 gcc_cv_ld_eh_frame_ciev3
=yes
27811 cat >>confdefs.h
<<_ACEOF
27812 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27816 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27819 $as_echo_n "checking linker position independent executable support... " >&6; }
27821 if test $in_tree_ld = yes ; then
27823 # Full PIE support on Solaris was only introduced in gld 2.26.
27824 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
27825 *) gcc_gld_pie_min_version
=15 ;;
27827 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 \
27828 && test $in_tree_ld_is_elf = yes; then
27831 elif test x
$gcc_cv_ld != x
; then
27832 # Check if linker supports -pie option
27833 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
27837 if echo "$ld_ver" |
grep GNU
> /dev
/null \
27838 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27845 *-*-solaris2.1
[1-9]*)
27846 # Solaris 11.x and Solaris 12 added PIE support.
27847 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
27854 if test x
"$gcc_cv_ld_pie" = xyes
; then
27856 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27860 $as_echo "$gcc_cv_ld_pie" >&6; }
27862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27863 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27864 gcc_cv_ld_pie_copyreloc
=no
27865 if test $gcc_cv_ld_pie = yes ; then
27866 if test $in_tree_ld = yes ; then
27867 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
27868 gcc_cv_ld_pie_copyreloc
=yes
27870 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27871 # Check if linker supports -pie option with copy reloc
27873 i?
86-*-linux* | x86_64-
*-linux*)
27874 cat > conftest1.s
<<EOF
27877 .type a_glob, @object
27882 cat > conftest2.s
<<EOF
27885 .type main, @function
27887 movl %eax, a_glob(%rip)
27890 .section .data.rel,"aw",@progbits
27895 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27896 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
27897 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27898 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
27899 gcc_cv_ld_pie_copyreloc
=yes
27901 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27907 cat >>confdefs.h
<<_ACEOF
27908 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27912 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27915 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27916 gcc_cv_ld_eh_gc_sections
=no
27917 if test $in_tree_ld = yes ; then
27918 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 \
27919 && test $in_tree_ld_is_elf = yes; then
27920 gcc_cv_ld_eh_gc_sections
=yes
27922 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27923 cat > conftest.s
<<EOF
27926 .type _start, @function
27929 .size _start, .-_start
27930 .section .text.foo,"ax",@progbits
27931 .type foo, @function
27935 .section .gcc_except_table.foo,"a",@progbits
27938 .section .eh_frame,"a",@progbits
27941 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27942 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27943 |
grep "gc-sections option ignored" > /dev
/null
; then
27944 gcc_cv_ld_eh_gc_sections
=no
27945 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27946 |
grep gcc_except_table
> /dev
/null
; then
27947 gcc_cv_ld_eh_gc_sections
=yes
27948 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27949 if test x
$gcc_cv_as_comdat_group != xyes
; then
27950 gcc_cv_ld_eh_gc_sections
=no
27951 cat > conftest.s
<<EOF
27954 .type _start, @function
27957 .size _start, .-_start
27958 .section .gnu.linkonce.t.foo,"ax",@progbits
27959 .type foo, @function
27963 .section .gcc_except_table.foo,"a",@progbits
27966 .section .eh_frame,"a",@progbits
27969 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27970 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27971 |
grep "gc-sections option ignored" > /dev
/null
; then
27972 gcc_cv_ld_eh_gc_sections
=no
27973 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27974 |
grep gcc_except_table
> /dev
/null
; then
27975 gcc_cv_ld_eh_gc_sections
=yes
27981 rm -f conftest.s conftest.o conftest
27985 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27986 gcc_cv_ld_eh_gc_sections
=no
27989 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
27991 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27995 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27998 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27999 gcc_cv_ld_eh_gc_sections_bug
=no
28000 if test $in_tree_ld = yes ; then
28001 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 \
28002 && test $in_tree_ld_is_elf = yes; then
28003 gcc_cv_ld_eh_gc_sections_bug
=yes
28005 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
28006 gcc_cv_ld_eh_gc_sections_bug
=yes
28007 cat > conftest.s
<<EOF
28010 .type _start, @function
28013 .size _start, .-_start
28014 .section .text.startup.foo,"ax",@progbits
28015 .type foo, @function
28019 .section .gcc_except_table.foo,"a",@progbits
28022 .section .eh_frame,"a",@progbits
28025 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28026 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28027 |
grep "gc-sections option ignored" > /dev
/null
; then
28029 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28030 |
grep gcc_except_table
> /dev
/null
; then
28031 gcc_cv_ld_eh_gc_sections_bug
=no
28034 rm -f conftest.s conftest.o conftest
28036 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
28038 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28042 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28045 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28046 # gold/gld support compressed debug sections since binutils 2.19/2.21
28047 if test $in_tree_ld = yes ; then
28048 gcc_cv_ld_compress_debug
=0
28049 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 \
28050 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28051 gcc_cv_ld_compress_debug
=2
28052 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28053 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 \
28054 && test $in_tree_ld_is_elf = yes; then
28055 gcc_cv_ld_compress_debug
=1
28057 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28058 gcc_cv_ld_compress_debug
=1
28059 if test 0"$ld_date" -lt 20050308; then
28060 if test -n "$ld_date"; then
28061 # If there was date string, but was earlier than 2005-03-08, fail
28062 gcc_cv_ld_compress_debug
=0
28063 elif test "$ld_vers_major" -lt 2; then
28064 gcc_cv_ld_compress_debug
=0
28065 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28066 gcc_cv_ld_compress_debug
=0
28069 if test $ld_is_gold = yes; then
28070 gcc_cv_ld_compress_debug
=2
28071 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28074 case "${target}" in
28076 # Introduced in Solaris 11.2.
28077 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
28078 gcc_cv_ld_compress_debug
=3
28079 gcc_cv_ld_compress_debug_option
="-z compress-sections"
28081 gcc_cv_ld_compress_debug
=0
28085 # Assume linkers other than GNU ld don't support compessed debug
28087 gcc_cv_ld_compress_debug
=0
28092 cat >>confdefs.h
<<_ACEOF
28093 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28097 cat >>confdefs.h
<<_ACEOF
28098 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28102 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28109 $as_echo_n "checking linker --as-needed support... " >&6; }
28110 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28111 $as_echo_n "(cached) " >&6
28113 gcc_cv_ld_as_needed
=no
28114 gcc_cv_ld_as_needed_option
='--as-needed'
28115 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
28116 if test $in_tree_ld = yes ; then
28117 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 \
28118 && test $in_tree_ld_is_elf = yes; then
28119 gcc_cv_ld_as_needed
=yes
28121 elif test x
$gcc_cv_ld != x
; then
28122 # Check if linker supports --as-needed and --no-as-needed options
28123 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
28124 gcc_cv_ld_as_needed
=yes
28127 # Solaris 2 ld always supports -z ignore/-z record.
28129 gcc_cv_ld_as_needed
=yes
28130 gcc_cv_ld_as_needed_option
="-z ignore"
28131 gcc_cv_ld_no_as_needed_option
="-z record"
28136 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28137 # dl_iterate_phdr, i.e. since Solaris 11.
28139 *-*-solaris2.1
[1-9]*)
28141 i?
86-*-* | x86_64-
*-*)
28142 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28143 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28144 gcc_cv_ld_as_needed
=no
28150 gcc_cv_ld_as_needed
=no
28155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28156 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28157 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
28159 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28162 cat >>confdefs.h
<<_ACEOF
28163 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28167 cat >>confdefs.h
<<_ACEOF
28168 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28174 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28175 saved_LDFLAGS
="$LDFLAGS"
28176 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
28177 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28179 /* end confdefs.h. */
28180 int main(void) {return 0;}
28182 if ac_fn_cxx_try_link
"$LINENO"; then :
28183 gcc_cv_ld_clearcap
=yes; break
28185 gcc_cv_ld_clearcap
=no
28187 rm -f core conftest.err conftest.
$ac_objext \
28188 conftest
$ac_exeext conftest.
$ac_ext
28190 LDFLAGS
="$saved_LDFLAGS"
28191 if test "x$gcc_cv_ld_clearcap" = xyes
; then
28193 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28195 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28199 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28201 case "$target:$tm_file" in
28202 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
28205 emul_name
="-melf64lppc"
28208 emul_name
="-melf64ppc"
28211 emul_name
="-melf64ppc_fbsd"
28214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28215 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28216 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28217 $as_echo_n "(cached) " >&6
28219 gcc_cv_ld_no_dot_syms
=no
28220 if test x
"$ld_is_gold" = xyes
; then
28221 gcc_cv_ld_no_dot_syms
=yes
28222 elif test $in_tree_ld = yes ; then
28223 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
28224 gcc_cv_ld_no_dot_syms
=yes
28226 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28227 cat > conftest1.s
<<EOF
28231 cat > conftest2.s
<<EOF
28232 .section ".opd","aw"
28235 .type foo,@function
28237 .quad .LEfoo,.TOC.@tocbase,0
28243 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28244 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28245 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
28246 gcc_cv_ld_no_dot_syms
=yes
28248 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28253 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28254 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
28256 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28261 $as_echo_n "checking linker large toc support... " >&6; }
28262 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28263 $as_echo_n "(cached) " >&6
28265 gcc_cv_ld_large_toc
=no
28266 if test x
"$ld_is_gold" = xyes
; then
28267 gcc_cv_ld_large_toc
=yes
28268 elif test $in_tree_ld = yes ; then
28269 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
28270 gcc_cv_ld_large_toc
=yes
28272 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28273 cat > conftest.s
<<EOF
28274 .section ".tbss","awT",@nobits
28280 addis 9,13,ie0@got@tprel@ha
28281 ld 9,ie0@got@tprel@l(9)
28283 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28284 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
28285 gcc_cv_ld_large_toc
=yes
28287 rm -f conftest conftest.o conftest.s
28291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28292 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28293 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28295 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28300 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28301 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28302 $as_echo_n "(cached) " >&6
28304 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
28305 cat > conftest.s
<<EOF
28310 .section .data.rel.ro,"aw",@progbits
28315 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28316 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
28317 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)) }'`
28319 rm -f conftest conftest.o conftest.s
28323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28324 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28325 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28327 cat >>confdefs.h
<<_ACEOF
28328 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28338 $as_echo_n "checking linker large toc support... " >&6; }
28339 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28340 $as_echo_n "(cached) " >&6
28342 gcc_cv_ld_large_toc
=no
28343 if test x
$gcc_cv_as != x
; then
28344 cat > conftest.s
<<EOF
28354 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
28355 gcc_cv_ld_large_toc
=yes
28357 rm -f conftest conftest.o conftest.s
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28362 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28363 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28365 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28372 $as_echo_n "checking linker --build-id support... " >&6; }
28373 if test "${gcc_cv_ld_buildid+set}" = set; then :
28374 $as_echo_n "(cached) " >&6
28376 gcc_cv_ld_buildid
=no
28377 if test $in_tree_ld = yes ; then
28378 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28379 "$gcc_cv_gld_minor_version" -ge 18 -o \
28380 "$gcc_cv_gld_major_version" -gt 2 \
28381 && test $in_tree_ld_is_elf = yes; then
28382 gcc_cv_ld_buildid
=yes
28384 elif test x
$gcc_cv_ld != x
; then
28385 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
28386 gcc_cv_ld_buildid
=yes
28390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28391 $as_echo "$gcc_cv_ld_buildid" >&6; }
28392 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28394 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28398 # Check whether --enable-linker-build-id was given.
28399 if test "${enable_linker_build_id+set}" = set; then :
28400 enableval
=$enable_linker_build_id;
28402 enable_linker_build_id
=no
28406 if test x
"$enable_linker_build_id" = xyes
; then
28407 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28409 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28413 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28417 # In binutils 2.21, GNU ld gained support for new emulations fully
28418 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28420 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28421 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28422 $as_echo_n "(cached) " >&6
28424 gcc_cv_ld_sol2_emulation
=no
28425 if test $in_tree_ld = yes ; then
28426 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28427 "$gcc_cv_gld_minor_version" -ge 21 -o \
28428 "$gcc_cv_gld_major_version" -gt 2 \
28429 && test $in_tree_ld_is_elf = yes; then
28430 gcc_cv_ld_sol2_emulation
=yes
28432 elif test x
$gcc_cv_ld != x
; then
28433 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
28434 grep _sol2
> /dev
/null
; then
28435 gcc_cv_ld_sol2_emulation
=yes
28439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28440 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28441 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
28443 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28448 $as_echo_n "checking linker --sysroot support... " >&6; }
28449 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28450 $as_echo_n "(cached) " >&6
28452 gcc_cv_ld_sysroot
=no
28453 if test $in_tree_ld = yes ; then
28454 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
28455 gcc_cv_ld_sysroot
=yes
28457 elif test x
$gcc_cv_ld != x
; then
28458 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
28459 gcc_cv_ld_sysroot
=yes
28463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28464 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28465 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
28467 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28473 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28475 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28476 if test "${gcc_cv_solaris_crts+set}" = set; then :
28477 $as_echo_n "(cached) " >&6
28479 gcc_cv_solaris_crts
=no
28480 if test x
$host != x
$target; then
28481 if test "x$with_sysroot" = xyes
; then
28482 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
28484 target_sysroot
="${with_sysroot}"
28487 target_libdir
="$target_sysroot/usr/lib"
28488 # At the time they were added, gcrt1.o became a symlink for backwards
28489 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28491 i?
86-*-solaris2* | x86_64-
*-solaris2*)
28492 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
28494 sparc
*-*-solaris2*)
28495 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
28499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28500 $as_echo "$gcc_cv_solaris_crts" >&6; }
28503 if test x
$gcc_cv_solaris_crts = xyes
; then
28505 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28509 # Test for stack protector support in target C library.
28510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28511 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28512 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28513 $as_echo_n "(cached) " >&6
28515 gcc_cv_libc_provides_ssp
=no
28518 # All versions of musl provide stack protector
28519 gcc_cv_libc_provides_ssp
=yes;;
28520 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
28521 # glibc 2.4 and later provides __stack_chk_fail and
28522 # either __stack_chk_guard, or TLS access to stack guard canary.
28524 if test $glibc_version_major -gt 2 \
28525 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28526 gcc_cv_libc_provides_ssp
=yes
28529 if test -f $target_header_dir/features.h \
28530 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28531 $target_header_dir/features.h
> /dev
/null
; then
28532 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28533 $target_header_dir/features.h
> /dev
/null
&& \
28534 test -f $target_header_dir/bits
/uClibc_config.h
&& \
28535 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28536 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
28537 gcc_cv_libc_provides_ssp
=yes
28539 # all versions of Bionic support stack protector
28540 elif test -f $target_header_dir/sys
/cdefs.h \
28541 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28542 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
28543 gcc_cv_libc_provides_ssp
=yes
28548 # Avoid complicated tests (see
28549 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28550 # simply assert that glibc does provide this, which is true for all
28551 # realistically usable GNU/Hurd configurations.
28552 # All supported versions of musl provide it as well
28553 gcc_cv_libc_provides_ssp
=yes;;
28554 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
28555 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28556 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
28557 gcc_cv_libc_provides_ssp
=yes
28559 echo "no __stack_chk_fail on this target"
28563 *) gcc_cv_libc_provides_ssp
=no
;;
28566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28567 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28569 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28571 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28575 # Check whether --enable-default-ssp was given.
28576 # Check whether --enable-default-ssp was given.
28577 if test "${enable_default_ssp+set}" = set; then :
28578 enableval
=$enable_default_ssp;
28579 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28581 ia64
*-*-*) enable_default_ssp
=no
;;
28582 *) enable_default_ssp
=$enableval ;;
28585 enable_default_ssp
=no
28588 enable_default_ssp
=no
28591 if test x
$enable_default_ssp = xyes
; then
28593 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28598 # Test for <sys/sdt.h> on the target.
28600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28601 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28603 if test -f $target_header_dir/sys
/sdt.h
; then
28606 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28610 $as_echo "$have_sys_sdt_h" >&6; }
28612 # Check if TFmode long double should be used by default or not.
28613 # Some glibc targets used DFmode long double, but with glibc 2.4
28614 # and later they can use TFmode.
28616 powerpc
*-*-linux* | \
28617 sparc
*-*-linux* | \
28621 # Check whether --with-long-double-128 was given.
28622 if test "${with_long_double_128+set}" = set; then :
28623 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
28626 if test $glibc_version_major -gt 2 \
28627 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28628 gcc_cv_target_ldbl128
=yes
28631 gcc_cv_target_ldbl128
=no
28632 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28633 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
28634 && gcc_cv_target_ldbl128
=yes
28641 if test x
$gcc_cv_target_ldbl128 = xyes
; then
28643 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28647 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
28648 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
28649 gcc_cv_libc_provides_hwcap_in_tcb
=no
28653 if test $glibc_version_major -gt 2 \
28654 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
28655 gcc_cv_libc_provides_hwcap_in_tcb
=yes
28659 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
28661 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28666 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28667 gcc_cv_target_dl_iterate_phdr
=unknown
28669 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28670 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28671 # libdl there, both complicating its use and breaking compatibility
28672 # between Solaris 10 updates.
28673 *-*-solaris2.1
[1-9]*)
28674 # <link.h> needs both a dl_iterate_phdr declaration and support for
28675 # compilation with largefile support.
28676 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
28677 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
28678 gcc_cv_target_dl_iterate_phdr
=yes
28680 gcc_cv_target_dl_iterate_phdr
=no
28683 *-*-dragonfly* |
*-*-freebsd*)
28684 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
28685 gcc_cv_target_dl_iterate_phdr
=yes
28687 gcc_cv_target_dl_iterate_phdr
=no
28691 gcc_cv_target_dl_iterate_phdr
=yes
28695 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
28697 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28701 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28703 # We no longer support different GC mechanisms. Emit an error if
28704 # the user configures with --with-gc.
28706 # Check whether --with-gc was given.
28707 if test "${with_gc+set}" = set; then :
28708 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28712 # Libraries to use on the host. This will normally be set by the top
28713 # level Makefile. Here we simply capture the value for our Makefile.
28714 if test -z "${HOST_LIBS+set}"; then
28719 # Use the system's zlib library.
28721 # Use the system's zlib library.
28722 zlibdir
="-L\$(top_builddir)/../zlib"
28723 zlibinc
="-I\$(top_srcdir)/../zlib"
28725 # Check whether --with-system-zlib was given.
28726 if test "${with_system_zlib+set}" = set; then :
28727 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
28739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28740 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28741 # Check whether --enable-maintainer-mode was given.
28742 if test "${enable_maintainer_mode+set}" = set; then :
28743 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
28749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28750 $as_echo "$maintainer_mode" >&6; }
28752 if test "$maintainer_mode" = "yes"; then
28759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28760 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28761 # Check whether --enable-link-mutex was given.
28762 if test "${enable_link_mutex+set}" = set; then :
28763 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
28768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28769 $as_echo "$do_link_mutex" >&6; }
28771 if test "$do_link_mutex" = "yes"; then
28774 DO_LINK_MUTEX
=false
28782 # Make empty files to contain the specs and options for each language.
28783 # Then add #include lines to for a compiler that has specs and/or options.
28789 # These (without "all_") are set in each config-lang.in.
28790 # `language' must be a single word so is spelled singularly.
28793 all_outputs
='Makefile'
28794 # List of language makefile fragments.
28795 all_lang_makefrags
=
28796 # Additional files for gengtype
28797 all_gtfiles
="$target_gtfiles"
28799 # These are the languages that are set in --enable-languages,
28800 # and are available in the GCC tree.
28801 all_selected_languages
=
28803 # Add the language fragments.
28804 # Languages are added via two mechanisms. Some information must be
28805 # recorded in makefile variables, these are defined in config-lang.in.
28806 # We accumulate them and plug them into the main Makefile.
28807 # The other mechanism is a set of hooks for each of the main targets
28808 # like `clean', `install', etc.
28810 language_hooks
="Make-hooks"
28812 for lang
in ${srcdir}/*/config-lang.
in
28814 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28816 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28817 if test "x$lang_alias" = x
28819 echo "$lang doesn't set \$language." 1>&2
28822 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28823 subdirs
="$subdirs $subdir"
28825 # $gcc_subdir is where the gcc integration files are to be found
28826 # for a language, both for internal compiler purposes (compiler
28827 # sources implementing front-end to GCC tree converters), and for
28828 # build infrastructure purposes (Make-lang.in, etc.)
28830 # This will be <subdir> (relative to $srcdir) if a line like
28831 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28832 # is found in <langdir>/config-lang.in, and will remain <langdir>
28835 # Except for the language alias (fetched above), the regular
28836 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28837 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28838 # only this and the language alias.
28840 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28841 if [ "$gcc_subdir" = "" ]; then
28842 gcc_subdir
="$subdir"
28845 case ",$enable_languages," in
28847 all_selected_languages
="$all_selected_languages $lang_alias"
28848 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
28849 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28860 .
${srcdir}/$gcc_subdir/config-lang.
in
28861 if test "x$language" = x
28863 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28868 case ",$enable_languages," in
28869 *,$lang_alias,*) ;;
28871 for i
in $subdir_requires; do
28872 test -f "${srcdir}/$i/config-lang.in" && continue
28880 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28881 if test -f $srcdir/$gcc_subdir/lang.opt
; then
28882 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28883 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28885 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
28886 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28888 all_languages
="$all_languages $language"
28889 all_compilers
="$all_compilers $compilers"
28890 all_outputs
="$all_outputs $outputs"
28891 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
28892 case ",$enable_languages," in
28895 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28905 for language
in $all_selected_languages
28907 check_languages
="$check_languages check-$language"
28910 # We link each language in with a set of hooks, reached indirectly via
28911 # lang.${target}. Only do so for selected languages.
28915 target_list
="all.cross start.encap rest.encap tags \
28916 install-common install-man install-info install-pdf install-html dvi \
28917 pdf html uninstall info man srcextra srcman srcinfo \
28918 mostlyclean clean distclean maintainer-clean install-plugin"
28920 for t
in $target_list
28923 for lang
in $all_selected_languages
28927 echo "lang.$t: $x" >> Make-hooks
28931 # Option include files
28934 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
28935 option_includes
="option-includes.mk"
28944 echo "dir ." > .gdbinit
28945 echo "dir ${srcdir}" >> .gdbinit
28946 if test x
$gdb_needs_out_file_path = xyes
28948 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28950 if test "x$subdirs" != x
; then
28953 echo "dir ${srcdir}/$s" >> .gdbinit
28956 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28957 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28959 # Put a breakpoint on __asan_report_error to help with debugging buffer
28962 *-fsanitize=address
*)
28963 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28967 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28971 # Find a directory in which to install a shared libgcc.
28973 # Check whether --enable-version-specific-runtime-libs was given.
28974 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28975 enableval
=$enable_version_specific_runtime_libs;
28979 # Substitute configuration variables
29043 if test x
${build} = x
${host} ; then
29044 if test x
${host} = x
${target} ; then
29045 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29047 echo "Links are now set up to build a cross-compiler" 1>&2
29048 echo " from ${host} to ${target}." 1>&2
29051 if test x
${host} = x
${target} ; then
29052 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29053 echo " for ${target}." 1>&2
29055 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29056 echo " from ${host} to ${target}." 1>&2
29065 if test "x${ISLLIBS}" != "x" ; then
29067 $as_echo "#define HAVE_isl 1" >>confdefs.h
29071 # Check whether isl_options_set_schedule_serialize_sccs is available;
29072 # it's new in isl 0.15.
29073 if test "x${ISLLIBS}" != "x" ; then
29074 saved_CXXFLAGS
="$CXXFLAGS"
29075 CXXFLAGS
="$CXXFLAGS $ISLINC $GMPINC"
29077 LIBS
="$LIBS $ISLLIBS $GMPLIBS"
29079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
29080 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
29081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29082 /* end confdefs.h. */
29083 #include <isl/schedule.h>
29087 isl_options_set_schedule_serialize_sccs (NULL, 0);
29092 if ac_fn_cxx_try_link
"$LINENO"; then :
29093 ac_has_isl_options_set_schedule_serialize_sccs
=yes
29095 ac_has_isl_options_set_schedule_serialize_sccs
=no
29097 rm -f core conftest.err conftest.
$ac_objext \
29098 conftest
$ac_exeext conftest.
$ac_ext
29099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
29100 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
29103 CXXFLAGS
="$saved_CXXFLAGS"
29105 if test x
"$ac_has_isl_options_set_schedule_serialize_sccs" = x
"yes"; then
29107 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
29112 # Check for plugin support
29113 # Check whether --enable-plugin was given.
29114 if test "${enable_plugin+set}" = set; then :
29115 enableval
=$enable_plugin; enable_plugin
=$enableval
29117 enable_plugin
=yes; default_plugin
=yes
29125 if test x
$build = x
$host; then
29126 export_sym_check
="nm${exeext} -g"
29127 elif test x
$host = x
$target; then
29128 export_sym_check
="$gcc_cv_nm -g"
29134 if test x
$build = x
$host; then
29135 export_sym_check
="objdump${exeext} -T"
29136 elif test x
$host = x
$target; then
29137 export_sym_check
="$gcc_cv_objdump -T"
29144 if test x
"$enable_plugin" = x
"yes"; then
29146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29147 $as_echo_n "checking for exported symbols... " >&6; }
29148 if test "x$export_sym_check" != x
; then
29149 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29150 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29151 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
29152 : # No need to use a flag
29153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29154 $as_echo "yes" >&6; }
29156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29157 $as_echo "yes" >&6; }
29158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29159 $as_echo_n "checking for -rdynamic... " >&6; }
29160 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29161 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
29162 plugin_rdynamic
=yes
29163 pluginlibs
="-rdynamic"
29168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29169 $as_echo "$plugin_rdynamic" >&6; }
29172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29173 $as_echo "unable to check" >&6; }
29178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29179 $as_echo_n "checking for library containing dlopen... " >&6; }
29180 if test "${ac_cv_search_dlopen+set}" = set; then :
29181 $as_echo_n "(cached) " >&6
29183 ac_func_search_save_LIBS
=$LIBS
29184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29185 /* end confdefs.h. */
29187 /* Override any GCC internal prototype to avoid an error.
29188 Use char because int might match the return type of a GCC
29189 builtin and then its argument prototype would still apply. */
29202 for ac_lib
in '' dl
; do
29203 if test -z "$ac_lib"; then
29204 ac_res
="none required"
29207 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29209 if ac_fn_cxx_try_link
"$LINENO"; then :
29210 ac_cv_search_dlopen
=$ac_res
29212 rm -f core conftest.err conftest.
$ac_objext \
29214 if test "${ac_cv_search_dlopen+set}" = set; then :
29218 if test "${ac_cv_search_dlopen+set}" = set; then :
29221 ac_cv_search_dlopen
=no
29223 rm conftest.
$ac_ext
29224 LIBS
=$ac_func_search_save_LIBS
29226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29227 $as_echo "$ac_cv_search_dlopen" >&6; }
29228 ac_res
=$ac_cv_search_dlopen
29229 if test "$ac_res" != no
; then :
29230 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
29234 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
29235 pluginlibs
="$pluginlibs -ldl"
29239 # Check that we can build shared objects with -fPIC -shared
29240 saved_LDFLAGS
="$LDFLAGS"
29241 saved_CFLAGS
="$CFLAGS"
29244 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29245 CFLAGS
="$CFLAGS -fPIC"
29246 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
29249 CFLAGS
="$CFLAGS -fPIC"
29250 LDFLAGS
="$LDFLAGS -fPIC -shared"
29253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29254 $as_echo_n "checking for -fPIC -shared... " >&6; }
29255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29256 /* end confdefs.h. */
29266 if ac_fn_cxx_try_link
"$LINENO"; then :
29267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29268 $as_echo "yes" >&6; }; have_pic_shared
=yes
29270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29271 $as_echo "no" >&6; }; have_pic_shared
=no
29273 rm -f core conftest.err conftest.
$ac_objext \
29274 conftest
$ac_exeext conftest.
$ac_ext
29275 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
29279 LDFLAGS
="$saved_LDFLAGS"
29280 CFLAGS
="$saved_CFLAGS"
29282 # If plugin support had been requested but not available, fail.
29283 if test x
"$enable_plugin" = x
"no" ; then
29284 if test x
"$default_plugin" != x
"yes"; then
29286 Building GCC with plugin support requires a host that supports
29287 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29294 if test x
"$enable_plugin" = x
"yes"; then
29296 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29301 # Enable --enable-host-shared
29302 # Check whether --enable-host-shared was given.
29303 if test "${enable_host_shared+set}" = set; then :
29304 enableval
=$enable_host_shared; PICFLAG
=-fPIC
29313 # Check whether --enable-libquadmath-support was given.
29314 if test "${enable_libquadmath_support+set}" = set; then :
29315 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
29317 ENABLE_LIBQUADMATH_SUPPORT
=yes
29320 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29322 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29327 # Specify what hash style to use by default.
29329 # Check whether --with-linker-hash-style was given.
29330 if test "${with_linker_hash_style+set}" = set; then :
29331 withval
=$with_linker_hash_style; case x
"$withval" in
29333 LINKER_HASH_STYLE
=sysv
29336 LINKER_HASH_STYLE
=gnu
29339 LINKER_HASH_STYLE
=both
29342 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29346 LINKER_HASH_STYLE
=''
29349 if test x
"${LINKER_HASH_STYLE}" != x
; then
29351 cat >>confdefs.h
<<_ACEOF
29352 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29357 # Specify what should be the default of -fdiagnostics-color option.
29359 # Check whether --with-diagnostics-color was given.
29360 if test "${with_diagnostics_color+set}" = set; then :
29361 withval
=$with_diagnostics_color; case x
"$withval" in
29363 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
29366 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29369 DIAGNOSTICS_COLOR_DEFAULT
=-1
29372 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
29375 as_fn_error
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29379 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29383 cat >>confdefs.h
<<_ACEOF
29384 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29388 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29389 # of jit/jit-playback.c.
29390 cat > gcc-driver-name.h
<<EOF
29391 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29394 # Check whether --enable-default-pie was given.
29395 # Check whether --enable-default-pie was given.
29396 if test "${enable_default_pie+set}" = set; then :
29397 enableval
=$enable_default_pie; enable_default_pie
=$enableval
29399 enable_default_pie
=no
29402 if test x
$enable_default_pie = xyes
; then
29404 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29409 # Check if -fno-PIE works.
29410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29411 $as_echo_n "checking for -fno-PIE option... " >&6; }
29412 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29413 $as_echo_n "(cached) " >&6
29415 saved_CXXFLAGS
="$CXXFLAGS"
29416 CXXFLAGS
="$CXXFLAGS -fno-PIE"
29417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29418 /* end confdefs.h. */
29419 int main(void) {return 0;}
29421 if ac_fn_cxx_try_compile
"$LINENO"; then :
29422 gcc_cv_c_no_fpie
=yes
29424 gcc_cv_c_no_fpie
=no
29426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29427 CXXFLAGS
="$saved_CXXFLAGS"
29429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29430 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29431 if test "$gcc_cv_c_no_fpie" = "yes"; then
29432 NO_PIE_CFLAGS
="-fno-PIE"
29436 # Check if -no-pie works.
29437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29438 $as_echo_n "checking for -no-pie option... " >&6; }
29439 if test "${gcc_cv_no_pie+set}" = set; then :
29440 $as_echo_n "(cached) " >&6
29442 saved_LDFLAGS
="$LDFLAGS"
29443 LDFLAGS
="$LDFLAGS -no-pie"
29444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29445 /* end confdefs.h. */
29446 int main(void) {return 0;}
29448 if ac_fn_cxx_try_link
"$LINENO"; then :
29453 rm -f core conftest.err conftest.
$ac_objext \
29454 conftest
$ac_exeext conftest.
$ac_ext
29455 LDFLAGS
="$saved_LDFLAGS"
29457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29458 $as_echo "$gcc_cv_no_pie" >&6; }
29459 if test "$gcc_cv_no_pie" = "yes"; then
29460 NO_PIE_FLAG
="-no-pie"
29464 # Check linker supports '-z bndplt'
29465 ld_bndplt_support
=no
29466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29467 $as_echo_n "checking linker -z bndplt option... " >&6; }
29468 if test x
"$ld_is_gold" = xno
; then
29469 if test $in_tree_ld = yes ; then
29470 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
29471 ld_bndplt_support
=yes
29473 elif test x
$gcc_cv_ld != x
; then
29474 # Check if linker supports -a bndplt option
29475 if $gcc_cv_ld --help 2>/dev
/null |
grep -- '-z bndplt' > /dev
/null
; then
29476 ld_bndplt_support
=yes
29480 if test x
"$ld_bndplt_support" = xyes
; then
29482 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29486 $as_echo "$ld_bndplt_support" >&6; }
29488 # Configure the subdirectories
29489 # AC_CONFIG_SUBDIRS($subdirs)
29491 # Create the Makefile
29492 # and configure language subdirectories
29493 ac_config_files
="$ac_config_files $all_outputs"
29496 ac_config_commands
="$ac_config_commands default"
29498 cat >confcache
<<\_ACEOF
29499 # This file is a shell script that caches the results of configure
29500 # tests run on this system so they can be shared between configure
29501 # scripts and configure runs, see configure's option --config-cache.
29502 # It is not useful on other systems. If it contains results you don't
29503 # want to keep, you may remove or edit it.
29505 # config.status only pays attention to the cache file if you give it
29506 # the --recheck option to rerun configure.
29508 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29509 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29510 # following values.
29514 # The following way of writing the cache mishandles newlines in values,
29515 # but we know of no workaround that is simple, portable, and efficient.
29516 # So, we kill variables containing newlines.
29517 # Ultrix sh set writes to stderr and can't be redirected directly,
29518 # and sets the high bit in the cache file unless we assign to the vars.
29520 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29521 eval ac_val
=\$
$ac_var
29525 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29526 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29529 _ | IFS | as_nl
) ;; #(
29530 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
29531 *) { eval $ac_var=; unset $ac_var;} ;;
29537 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29538 *${as_nl}ac_space
=\
*)
29539 # `set' does not quote correctly, so add quotes: double-quote
29540 # substitution turns \\\\ into \\, and sed turns \\ into \.
29543 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29546 # `set' quotes correctly as required by POSIX, so do not add quotes.
29547 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29556 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29558 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29560 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29561 if test -w "$cache_file"; then
29562 test "x$cache_file" != "x/dev/null" &&
29563 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29564 $as_echo "$as_me: updating cache $cache_file" >&6;}
29565 cat confcache
>$cache_file
29567 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29568 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29573 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29574 # Let make expand exec_prefix.
29575 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29577 DEFS
=-DHAVE_CONFIG_H
29581 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29582 # 1. Remove the extension, and $U if already installed.
29583 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29584 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
29585 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29586 # will be set to the directory where LIBOBJS objects are built.
29587 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29588 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
29590 LIBOBJS
=$ac_libobjs
29592 LTLIBOBJS
=$ac_ltlibobjs
29597 : ${CONFIG_STATUS=./config.status}
29599 ac_clean_files_save
=$ac_clean_files
29600 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29601 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29602 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29604 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29606 # Generated by $as_me.
29607 # Run this file to recreate the current configuration.
29608 # Compiler output produced by configure, useful for debugging
29609 # configure, is in config.log if it exists.
29612 ac_cs_recheck=false
29615 SHELL=\${CONFIG_SHELL-$SHELL}
29618 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
29619 ## -------------------- ##
29620 ## M4sh Initialization. ##
29621 ## -------------------- ##
29623 # Be more Bourne compatible
29624 DUALCASE
=1; export DUALCASE
# for MKS sh
29625 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
29628 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29629 # is contrary to our usage. Disable this feature.
29630 alias -g '${1+"$@"}'='"$@"'
29631 setopt NO_GLOB_SUBST
29633 case `(set -o) 2>/dev/null` in #(
29645 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29646 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29647 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29648 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29649 # Prefer a ksh shell builtin over an external printf program on Solaris,
29650 # but without wasting forks for bash or zsh.
29651 if test -z "$BASH_VERSION$ZSH_VERSION" \
29652 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29653 as_echo='print
-r --'
29654 as_echo_n='print
-rn --'
29655 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29656 as_echo='printf %s
\n'
29657 as_echo_n='printf %s
'
29659 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29660 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
29661 as_echo_n='/usr
/ucb
/echo -n'
29663 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29664 as_echo_n_body='eval
29668 expr "X$arg" : "X\\(.*\\)$as_nl";
29669 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29671 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
29673 export as_echo_n_body
29674 as_echo_n='sh
-c $as_echo_n_body as_echo
'
29676 export as_echo_body
29677 as_echo='sh
-c $as_echo_body as_echo
'
29680 # The user is always right.
29681 if test "${PATH_SEPARATOR+set}" != set; then
29683 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29684 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29691 # We need space, tab and new line, in precisely that order. Quoting is
29692 # there to prevent editors from complaining about space-tab.
29693 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29694 # splitting by setting IFS to empty value.)
29697 # Find who we are. Look in the path if we contain no directory separator.
29699 *[\\/]* ) as_myself=$0 ;;
29700 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29701 for as_dir in $PATH
29704 test -z "$as_dir" && as_dir=.
29705 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29711 # We did not find ourselves, most probably we were run as `sh COMMAND'
29712 # in which case we are not to be found in the path.
29713 if test "x$as_myself" = x
; then
29716 if test ! -f "$as_myself"; then
29717 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29721 # Unset variables that we do not need and which cause bugs (e.g. in
29722 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29723 # suppresses any "Segmentation fault" message there. '((' could
29724 # trigger a bug in pdksh 5.2.14.
29725 for as_var
in BASH_ENV ENV MAIL MAILPATH
29726 do eval test x\
${$as_var+set} = xset \
29727 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
29740 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
29743 # as_fn_error ERROR [LINENO LOG_FD]
29744 # ---------------------------------
29745 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29746 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29747 # script with status $?, using 1 if that was 0.
29750 as_status
=$?
; test $as_status -eq 0 && as_status
=1
29752 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
29753 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29755 $as_echo "$as_me: error: $1" >&2
29756 as_fn_exit
$as_status
29760 # as_fn_set_status STATUS
29761 # -----------------------
29762 # Set $? to STATUS, without forking.
29763 as_fn_set_status
()
29766 } # as_fn_set_status
29768 # as_fn_exit STATUS
29769 # -----------------
29770 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29774 as_fn_set_status
$1
29780 # Portably unset VAR.
29783 { eval $1=; unset $1;}
29785 as_unset
=as_fn_unset
29786 # as_fn_append VAR VALUE
29787 # ----------------------
29788 # Append the text in VALUE to the end of the definition contained in VAR. Take
29789 # advantage of any shell optimizations that allow amortized linear growth over
29790 # repeated appends, instead of the typical quadratic growth present in naive
29792 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
29793 eval 'as_fn_append ()
29804 # as_fn_arith ARG...
29805 # ------------------
29806 # Perform arithmetic evaluation on the ARGs, and store the result in the
29807 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29808 # must be portable across $(()) and expr.
29809 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
29810 eval 'as_fn_arith ()
29817 as_val
=`expr "$@" || test $? -eq 1`
29822 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29823 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29829 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29830 as_basename
=basename
29835 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29841 as_me
=`$as_basename -- "$0" ||
29842 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29843 X"$0" : 'X\(//\)$' \| \
29844 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29846 sed '/^.*\/\([^/][^/]*\)\/*$/{
29860 # Avoid depending upon Character Ranges.
29861 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29862 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29863 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29864 as_cr_digits
='0123456789'
29865 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29867 ECHO_C
= ECHO_N
= ECHO_T
=
29868 case `echo -n x` in #(((((
29870 case `echo 'xy\c'` in
29871 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29873 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
29880 rm -f conf$$ conf$$.exe conf$$.
file
29881 if test -d conf$$.dir
; then
29882 rm -f conf$$.dir
/conf$$.
file
29885 mkdir conf$$.dir
2>/dev
/null
29887 if (echo >conf$$.
file) 2>/dev
/null
; then
29888 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29890 # ... but there are two gotchas:
29891 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29892 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29893 # In both cases, we have to default to `cp -p'.
29894 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29896 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29904 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29905 rmdir conf$$.dir
2>/dev
/null
29910 # Create "$as_dir" as a directory, including parents if necessary.
29915 -*) as_dir
=.
/$as_dir;;
29917 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
29921 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29922 *) as_qdir
=$as_dir;;
29924 as_dirs
="'$as_qdir' $as_dirs"
29925 as_dir
=`$as_dirname -- "$as_dir" ||
29926 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29927 X"$as_dir" : 'X\(//\)[^/]' \| \
29928 X"$as_dir" : 'X\(//\)$' \| \
29929 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29930 $as_echo X"$as_dir" |
29931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29935 /^X\(\/\/\)[^/].*/{
29948 test -d "$as_dir" && break
29950 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29951 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
29955 if mkdir
-p .
2>/dev
/null
; then
29956 as_mkdir_p
='mkdir -p "$as_dir"'
29958 test -d .
/-p && rmdir .
/-p
29962 if test -x / >/dev
/null
2>&1; then
29963 as_test_x
='test -x'
29965 if ls -dL / >/dev
/null
2>&1; then
29972 if test -d "$1"; then
29978 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29979 ???[sx]*):;;*)false;;esac;fi
29983 as_executable_p
=$as_test_x
29985 # Sed expression to map a string onto a valid CPP name.
29986 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29988 # Sed expression to map a string onto a valid variable name.
29989 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29993 ## ----------------------------------- ##
29994 ## Main body of $CONFIG_STATUS script. ##
29995 ## ----------------------------------- ##
29997 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
29999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30000 # Save the log message, to keep $0 and so on meaningful, and to
30001 # report actual input values of CONFIG_FILES etc. instead of their
30002 # values after options handling.
30004 This file was extended by $as_me, which was
30005 generated by GNU Autoconf 2.64. Invocation command line was
30007 CONFIG_FILES = $CONFIG_FILES
30008 CONFIG_HEADERS = $CONFIG_HEADERS
30009 CONFIG_LINKS = $CONFIG_LINKS
30010 CONFIG_COMMANDS = $CONFIG_COMMANDS
30013 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30018 case $ac_config_files in *"
30019 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
30022 case $ac_config_headers in *"
30023 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
30027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30028 # Files that config.status was made for.
30029 config_files="$ac_config_files"
30030 config_headers="$ac_config_headers"
30031 config_links="$ac_config_links"
30032 config_commands="$ac_config_commands"
30036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30038 \`$as_me' instantiates files and other configuration actions
30039 from templates according to the current configuration. Unless the files
30040 and actions are specified as TAGs, all are instantiated by default.
30042 Usage: $0 [OPTION]... [TAG]...
30044 -h, --help print this help, then exit
30045 -V, --version print version number and configuration settings, then exit
30046 -q, --quiet, --silent
30047 do not print progress messages
30048 -d, --debug don't remove temporary files
30049 --recheck update $as_me by reconfiguring in the same conditions
30050 --file=FILE[:TEMPLATE]
30051 instantiate the configuration file FILE
30052 --header=FILE[:TEMPLATE]
30053 instantiate the configuration header FILE
30055 Configuration files:
30058 Configuration headers:
30061 Configuration links:
30064 Configuration commands:
30067 Report bugs to the package provider."
30070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30073 configured by $0, generated by GNU Autoconf 2.64,
30074 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30076 Copyright (C) 2009 Free Software Foundation, Inc.
30077 This config.status script is free software; the Free Software Foundation
30078 gives unlimited permission to copy, distribute and modify it."
30083 test -n "\$AWK" || AWK=awk
30086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30087 # The default lists apply if the user does not specify any file.
30093 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30094 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
30105 # Handling of the options.
30106 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
30108 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
30109 $as_echo "$ac_cs_version"; exit ;;
30110 --debug |
--debu |
--deb |
--de |
--d |
-d )
30112 --file |
--fil |
--fi |
--f )
30115 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30117 as_fn_append CONFIG_FILES
" '$ac_optarg'"
30118 ac_need_defaults
=false
;;
30119 --header |
--heade |
--head |
--hea )
30122 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30124 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
30125 ac_need_defaults
=false
;;
30127 # Conflict between --help and --header
30128 as_fn_error
"ambiguous option: \`$1'
30129 Try \`$0 --help' for more information.";;
30130 --help |
--hel |
-h )
30131 $as_echo "$ac_cs_usage"; exit ;;
30132 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
30133 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
30136 # This is an error.
30137 -*) as_fn_error
"unrecognized option: \`$1'
30138 Try \`$0 --help' for more information." ;;
30140 *) as_fn_append ac_config_targets
" $1"
30141 ac_need_defaults
=false
;;
30147 ac_configure_extra_args
=
30149 if $ac_cs_silent; then
30151 ac_configure_extra_args
="$ac_configure_extra_args --silent"
30155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30156 if \$ac_cs_recheck; then
30157 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30159 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30160 CONFIG_SHELL='$SHELL'
30161 export CONFIG_SHELL
30166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30170 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30171 ## Running $as_me. ##
30177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30181 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30182 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30189 # Handling of arguments.
30190 for ac_config_target
in $ac_config_targets
30192 case $ac_config_target in
30193 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
30194 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
30195 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
30196 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
30197 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30198 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
30199 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30200 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
30201 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
30203 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30208 # If the user did not use the arguments to specify the items to instantiate,
30209 # then the envvar interface is used. Set only those that are not.
30210 # We use the long form for the default assignment because of an extremely
30211 # bizarre bug on SunOS 4.1.3.
30212 if $ac_need_defaults; then
30213 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
30214 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
30215 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
30216 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
30219 # Have a temporary directory for convenience. Make it in the build tree
30220 # simply because there is no reason against having it here, and in addition,
30221 # creating and moving files from /tmp can sometimes cause problems.
30222 # Hook for its removal unless debugging.
30223 # Note that there is a small window in which the directory will not be cleaned:
30224 # after its creation but before its name has been assigned to `$tmp'.
30228 trap 'exit_status=$?
30229 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30231 trap 'as_fn_exit 1' 1 2 13 15
30233 # Create a (secure) tmp directory for tmp files.
30236 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30237 test -n "$tmp" && test -d "$tmp"
30240 tmp
=.
/conf$$
-$RANDOM
30241 (umask 077 && mkdir
"$tmp")
30242 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
30244 # Set up the scripts for CONFIG_FILES section.
30245 # No need to generate them if there are no CONFIG_FILES.
30246 # This happens for instance with `./config.status config.h'.
30247 if test -n "$CONFIG_FILES"; then
30249 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
30250 ac_cs_awk_getline
=:
30251 ac_cs_awk_pipe_init
=
30252 ac_cs_awk_read_file
='
30253 while ((getline aline < (F[key])) > 0)
30256 ac_cs_awk_pipe_fini
=
30258 ac_cs_awk_getline
=false
30259 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
30260 ac_cs_awk_read_file
='
30262 print "cat " F[key] " &&"
30263 '$ac_cs_awk_pipe_init
30264 # The final `:' finishes the AND list.
30265 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
30267 ac_cr
=`echo X | tr X '\015'`
30268 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30269 # But we know of no other shell where ac_cr would be empty at this
30270 # point, so we can use a bashism as a fallback.
30271 if test "x$ac_cr" = x
; then
30272 eval ac_cr
=\$
\'\\r
\'
30274 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30275 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30278 ac_cs_awk_cr
=$ac_cr
30281 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30284 # Create commands to substitute file output variables.
30286 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30287 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30288 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
30291 } >conf$
$files.sh
&&
30292 . .
/conf$
$files.sh ||
30293 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
30294 rm -f conf$
$files.sh
30297 echo "cat >conf$$subs.awk <<_ACEOF" &&
30298 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30300 } >conf$$subs.sh ||
30301 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30302 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30304 for ac_last_try in false false false false false :; do
30305 . ./conf$$subs.sh ||
30306 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30308 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
30309 if test $ac_delim_n = $ac_delim_num; then
30311 elif $ac_last_try; then
30312 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30314 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30317 rm -f conf$$subs.sh
30319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30320 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
30324 s/^/S["/; s
/!.
*/"]=/
30334 s/\(.\{148\}\).*/\1/
30336 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
30341 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30348 s/\(.\{148\}\).*/\1/
30350 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
30354 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30359 ' <conf$$subs.awk | sed '
30364 ' >>$CONFIG_STATUS || ac_write_fail=1
30365 rm -f conf$$subs.awk
30366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30368 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
30369 for (key in S) S_is_set[key] = 1
30371 \$ac_cs_awk_pipe_init
30375 nfields = split(line, field, "@
")
30377 len = length(field[1])
30378 for (i = 2; i < nfields; i++) {
30380 keylen = length(key)
30381 if (S_is_set[key]) {
30383 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30384 len += length(value) + length(field[++i])
30389 if (nfields == 3 && !substed) {
30391 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30392 \$ac_cs_awk_read_file
30398 \$ac_cs_awk_pipe_fini
30401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30402 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30403 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
30406 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
30407 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
30410 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30411 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
30412 # trailing colons and then remove the whole line if VPATH becomes empty
30413 # (actually we leave an empty line to preserve line numbers).
30414 if test "x
$srcdir" = x.; then
30415 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30416 s/:*\$(srcdir):*/:/
30417 s/:*\${srcdir}:*/:/
30419 s/^\([^=]*=[ ]*\):*/\1/
30425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30426 fi # test -n "$CONFIG_FILES"
30428 # Set up the scripts for CONFIG_HEADERS section.
30429 # No need to generate them if there are no CONFIG_HEADERS.
30430 # This happens for instance with `./config.status Makefile'.
30431 if test -n "$CONFIG_HEADERS"; then
30432 cat >"$tmp/defines.
awk" <<\_ACAWK ||
30436 # Transform confdefs.h into an awk script `defines.awk', embedded as
30437 # here-document in config.status, that substitutes the proper values into
30438 # config.h.in to produce config.h.
30440 # Create a delimiter string that does not exist in confdefs.h, to ease
30441 # handling of long lines.
30443 for ac_last_try in false false :; do
30444 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
30445 if test -z "$ac_t"; then
30447 elif $ac_last_try; then
30448 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
30450 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30454 # For the awk script, D is an array of macro values keyed by name,
30455 # likewise P contains macro parameters if any. Preserve backslash
30456 # newline sequences.
30458 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30460 s/.\{148\}/&'"$ac_delim"'/g
30463 s/^[ ]*#[ ]*define[ ][ ]*/ /
30470 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30472 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30476 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30477 D["\
1"]=" \
3\\\\\\n
"\\/p
30479 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30484 s/.\{148\}/&'"$ac_delim"'/g
30489 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30492 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30494 ' <confdefs.h | sed '
30495 s/'"$ac_delim"'/"\\\
30496 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30499 for (key in D) D_is_set[key] = 1
30502 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30504 split(line, arg, " ")
30505 if (arg[1] == "#") {
30509 defundef
= substr
(arg
[1], 2)
30512 split(mac1
, mac2
, "(") #)
30514 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30515 if (D_is_set
[macro
]) {
30516 # Preserve the white space surrounding the "#".
30517 print prefix
"define", macro P
[macro
] D
[macro
]
30520 # Replace #undef with comments. This is necessary, for example,
30521 # in the case of _POSIX_SOURCE, which is predefined and required
30522 # on some systems where configure will not decide to define it.
30523 if (defundef
== "undef") {
30524 print
"/*", prefix defundef
, macro
, "*/"
30532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30533 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
30534 fi # test -n "$CONFIG_HEADERS"
30537 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30542 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30544 case $ac_mode$ac_tag in
30546 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
30547 :[FH
]-) ac_tag
=-:-;;
30548 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30565 -) ac_f
="$tmp/stdin";;
30566 *) # Look for the file first in the build tree, then in the source tree
30567 # (if the path is not absolute). The absolute path cannot be DOS-style,
30568 # because $ac_f cannot contain `:'.
30572 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30574 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
30576 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30577 as_fn_append ac_file_inputs
" '$ac_f'"
30580 # Let's still pretend it is `configure' which instantiates (i.e., don't
30581 # use $as_me), people would be surprised to read:
30582 # /* config.h. Generated by config.status. */
30583 configure_input
='Generated from '`
30584 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30586 if test x
"$ac_file" != x-
; then
30587 configure_input
="$ac_file. $configure_input"
30588 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30589 $as_echo "$as_me: creating $ac_file" >&6;}
30591 # Neutralize special characters interpreted by sed in replacement strings.
30592 case $configure_input in #(
30593 *\
&* |
*\|
* |
*\\* )
30594 ac_sed_conf_input
=`$as_echo "$configure_input" |
30595 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30596 *) ac_sed_conf_input
=$configure_input;;
30600 *:-:* |
*:-) cat >"$tmp/stdin" \
30601 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
30606 ac_dir
=`$as_dirname -- "$ac_file" ||
30607 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30608 X"$ac_file" : 'X\(//\)[^/]' \| \
30609 X"$ac_file" : 'X\(//\)$' \| \
30610 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30611 $as_echo X"$ac_file" |
30612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30616 /^X\(\/\/\)[^/].*/{
30629 as_dir
="$ac_dir"; as_fn_mkdir_p
30633 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30635 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30636 # A ".." for each directory in $ac_dir_suffix.
30637 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30638 case $ac_top_builddir_sub in
30639 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30640 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30643 ac_abs_top_builddir
=$ac_pwd
30644 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30645 # for backward compatibility:
30646 ac_top_builddir
=$ac_top_build_prefix
30649 .
) # We are building in place.
30651 ac_top_srcdir
=$ac_top_builddir_sub
30652 ac_abs_top_srcdir
=$ac_pwd ;;
30653 [\\/]* | ?
:[\\/]* ) # Absolute name.
30654 ac_srcdir
=$srcdir$ac_dir_suffix;
30655 ac_top_srcdir
=$srcdir
30656 ac_abs_top_srcdir
=$srcdir ;;
30657 *) # Relative name.
30658 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30659 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30660 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30662 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30674 # If the template does not know about datarootdir, expand it.
30675 # FIXME: This hack should be removed a few years after 2.60.
30676 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30687 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30688 *datarootdir
*) ac_datarootdir_seen
=yes;;
30689 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30691 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30694 ac_datarootdir_hack='
30695 s&@datadir@&$datadir&g
30696 s&@docdir@&$docdir&g
30697 s&@infodir@&$infodir&g
30698 s&@localedir@&$localedir&g
30699 s&@mandir@&$mandir&g
30700 s&\\\${datarootdir}&$datarootdir&g' ;;
30704 # Neutralize VPATH when `$srcdir' = `.'.
30705 # Shell code in configure.ac might set extrasub.
30706 # FIXME: do we really want to maintain this feature?
30707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30708 ac_sed_extra="$ac_vpsub
30711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30713 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30714 s|@configure_input@|
$ac_sed_conf_input|
;t t
30715 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30716 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30717 s
&@srcdir@
&$ac_srcdir&;t t
30718 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30719 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30720 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30721 s
&@builddir@
&$ac_builddir&;t t
30722 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30723 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30724 $ac_datarootdir_hack
30726 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30727 if $ac_cs_awk_getline; then
30728 $AWK -f "$tmp/subs.
awk"
30730 $AWK -f "$tmp/subs.
awk" | $SHELL
30732 || as_fn_error "could not create
$ac_file" "$LINENO" 5
30734 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30735 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
30736 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
30737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30738 which seems to be undefined. Please make sure it is defined." >&5
30739 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30740 which seems to be undefined. Please make sure it is defined." >&2;}
30744 -) cat "$tmp/out" && rm -f "$tmp/out";;
30745 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30747 || as_fn_error "could not create $ac_file" "$LINENO" 5
30753 if test x"$ac_file" != x-; then
30755 $as_echo "/* $configure_input */" \
30756 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30757 } >"$tmp/config.h" \
30758 || as_fn_error "could not create $ac_file" "$LINENO" 5
30759 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30760 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30761 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30764 mv "$tmp/config.h" "$ac_file" \
30765 || as_fn_error "could not create $ac_file" "$LINENO" 5
30768 $as_echo "/* $configure_input */" \
30769 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30770 || as_fn_error "could not create -" "$LINENO" 5
30778 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
30781 # Prefer the file from the source tree if names are identical.
30782 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30783 ac_source=$srcdir/$ac_source
30786 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30787 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30789 if test ! -r "$ac_source"; then
30790 as_fn_error "$ac_source: file not found" "$LINENO" 5
30794 # Try a relative symlink, then a hard link, then a copy.
30796 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30797 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30799 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30800 ln "$ac_source" "$ac_file" 2>/dev/null ||
30801 cp -p "$ac_source" "$ac_file" ||
30802 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30805 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30806 $as_echo "$as_me: executing $ac_file commands" >&6;}
30811 case $ac_file$ac_mode in
30812 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30814 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30815 for lang in $subdirs c-family common
30817 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30819 "as":F) chmod +x as ;;
30820 "collect-ld":F) chmod +x collect-ld ;;
30821 "nm":F) chmod +x nm ;;
30823 case ${CONFIG_HEADERS} in
30824 *auto-host.h:config.in*)
30827 # Make sure all the subdirs exist.
30828 for d in $subdirs doc build common c-family
30830 test -d $d || mkdir $d
30840 ac_clean_files=$ac_clean_files_save
30842 test $ac_write_fail = 0 ||
30843 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30846 # configure is writing to config.log, and then calls config.status.
30847 # config.status does its own redirection, appending to config.log.
30848 # Unfortunately, on DOS this fails, as config.log is still kept open
30849 # by configure, so config.status won't be able to
write to it
; its
30850 # output is simply discarded. So we exec the FD to /dev/null,
30851 # effectively closing config.log, so it can be properly (re)opened and
30852 # appended to by config.status. When coming back to configure, we
30853 # need to make the FD available again.
30854 if test "$no_create" != yes; then
30856 ac_config_status_args
=
30857 test "$silent" = yes &&
30858 ac_config_status_args
="$ac_config_status_args --quiet"
30860 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30862 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30863 # would make configure fail if this is the last instruction.
30864 $ac_cs_success || as_fn_exit $?
30866 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
30867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30868 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}