2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
595 ac_unique_file
="tree.c"
596 # Factoring default headers for most tests.
597 ac_includes_default
="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars
='LTLIBOBJS
661 common_out_object_file
677 gcc_gxx_include_dir_add_sysroot
684 user_headers_inc_next_post
685 user_headers_inc_next_pre
687 TM_MULTILIB_EXCEPTIONS_CONFIG
697 build_xm_include_list
699 build_install_headers_dir
701 all_selected_languages
719 ld_version_script_option
724 ORIGINAL_NM_FOR_TARGET
726 ORIGINAL_LD_GOLD_FOR_TARGET
727 ORIGINAL_LD_BFD_FOR_TARGET
728 ORIGINAL_LD_FOR_TARGET
729 ORIGINAL_PLUGIN_LD_FOR_TARGET
731 ORIGINAL_AS_FOR_TARGET
749 NO_PIE_FLAG_FOR_BUILD
750 NO_PIE_CFLAGS_FOR_BUILD
760 BUILD_SYSTEM_HEADER_DIR
779 NATIVE_SYSTEM_HEADER_DIR
814 omp_device_property_deps
815 omp_device_properties
817 real_target_noncanonical
818 enable_as_accelerator
820 DOCUMENTATION_ROOT_URL
835 valgrind_path_defines
865 CROSS_SYSTEM_HEADER_DIR
866 TARGET_SYSTEM_ROOT_DEFINE
868 SYSROOT_CFLAGS_FOR_TARGET
914 program_transform_name
925 ac_subst_files
='option_includes
928 enable_option_checking
931 with_native_system_header_dir
936 enable_generated_files_in_srcdir
943 enable_build_format_warnings
947 enable_gather_detailed_mem_stats
948 enable_valgrind_annotations
952 with_stack_clash_protection_guard_size
966 with_documentation_root_url
974 enable_sjlj_exceptions
975 with_gcc_major_version_only
977 enable_mingw_wildcard
978 enable_large_address_aware
979 enable_leading_mingw64_underscores
982 enable_win32_registry
990 enable_gnu_indirect_function
991 enable_initfini_array
993 enable_standard_branch_protection
994 enable_fix_cortex_a53_835769
995 enable_fix_cortex_a53_843419
997 enable_gnu_unique_object
998 enable_linker_build_id
1001 with_long_double_128
1002 with_long_double_format
1005 enable_maintainer_mode
1007 enable_version_specific_runtime_libs
1010 enable_libquadmath_support
1011 with_linker_hash_style
1012 with_diagnostics_color
1015 ac_precious_vars
='build_alias
1034 # Initialize some variables set by options.
1036 ac_init_version
=false
1037 ac_unrecognized_opts
=
1038 ac_unrecognized_sep
=
1039 # The variables have the same names as the options, with
1040 # dashes changed to underlines.
1041 cache_file
=/dev
/null
1048 program_transform_name
=s
,x
,x
,
1056 # Installation directory options.
1057 # These are left unexpanded so users can "make install exec_prefix=/foo"
1058 # and all the variables that are supposed to be based on exec_prefix
1059 # by default will actually change.
1060 # Use braces instead of parens because sh, perl, etc. also accept them.
1061 # (The list follows the same order as the GNU Coding Standards.)
1062 bindir
='${exec_prefix}/bin'
1063 sbindir
='${exec_prefix}/sbin'
1064 libexecdir
='${exec_prefix}/libexec'
1065 datarootdir
='${prefix}/share'
1066 datadir
='${datarootdir}'
1067 sysconfdir
='${prefix}/etc'
1068 sharedstatedir
='${prefix}/com'
1069 localstatedir
='${prefix}/var'
1070 includedir
='${prefix}/include'
1071 oldincludedir
='/usr/include'
1072 docdir
='${datarootdir}/doc/${PACKAGE}'
1073 infodir
='${datarootdir}/info'
1078 libdir
='${exec_prefix}/lib'
1079 localedir
='${datarootdir}/locale'
1080 mandir
='${datarootdir}/man'
1086 # If the previous option needs an argument, assign it.
1087 if test -n "$ac_prev"; then
1088 eval $ac_prev=\
$ac_option
1094 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1099 # Accept the important Cygnus configure options, so we can diagnose typos.
1101 case $ac_dashdash$ac_option in
1105 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1107 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1108 bindir
=$ac_optarg ;;
1110 -build |
--build |
--buil |
--bui |
--bu)
1111 ac_prev
=build_alias
;;
1112 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1113 build_alias
=$ac_optarg ;;
1115 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1116 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1117 ac_prev
=cache_file
;;
1118 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1119 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1120 cache_file
=$ac_optarg ;;
1122 --config-cache |
-C)
1123 cache_file
=config.cache
;;
1125 -datadir |
--datadir |
--datadi |
--datad)
1127 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1128 datadir
=$ac_optarg ;;
1130 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1131 |
--dataroo |
--dataro |
--datar)
1132 ac_prev
=datarootdir
;;
1133 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1134 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1135 datarootdir
=$ac_optarg ;;
1137 -disable-* |
--disable-*)
1138 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1141 as_fn_error $?
"invalid feature name: $ac_useropt"
1142 ac_useropt_orig
=$ac_useropt
1143 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1146 "enable_
$ac_useropt"
1148 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1149 ac_unrecognized_sep
=', ';;
1151 eval enable_
$ac_useropt=no
;;
1153 -docdir |
--docdir |
--docdi |
--doc |
--do)
1155 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1156 docdir
=$ac_optarg ;;
1158 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1160 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1161 dvidir
=$ac_optarg ;;
1163 -enable-* |
--enable-*)
1164 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1167 as_fn_error $?
"invalid feature name: $ac_useropt"
1168 ac_useropt_orig
=$ac_useropt
1169 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1172 "enable_
$ac_useropt"
1174 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1175 ac_unrecognized_sep
=', ';;
1177 eval enable_
$ac_useropt=\
$ac_optarg ;;
1179 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1180 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1181 |
--exec |
--exe |
--ex)
1182 ac_prev
=exec_prefix
;;
1183 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1184 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1185 |
--exec=* |
--exe=* |
--ex=*)
1186 exec_prefix
=$ac_optarg ;;
1188 -gas |
--gas |
--ga |
--g)
1189 # Obsolete; use --with-gas.
1192 -help |
--help |
--hel |
--he |
-h)
1193 ac_init_help
=long
;;
1194 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1195 ac_init_help
=recursive
;;
1196 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1197 ac_init_help
=short
;;
1199 -host |
--host |
--hos |
--ho)
1200 ac_prev
=host_alias
;;
1201 -host=* |
--host=* |
--hos=* |
--ho=*)
1202 host_alias
=$ac_optarg ;;
1204 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1206 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1208 htmldir
=$ac_optarg ;;
1210 -includedir |
--includedir |
--includedi |
--included |
--include \
1211 |
--includ |
--inclu |
--incl |
--inc)
1212 ac_prev
=includedir
;;
1213 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1214 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1215 includedir
=$ac_optarg ;;
1217 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1219 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1220 infodir
=$ac_optarg ;;
1222 -libdir |
--libdir |
--libdi |
--libd)
1224 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1225 libdir
=$ac_optarg ;;
1227 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1228 |
--libexe |
--libex |
--libe)
1229 ac_prev
=libexecdir
;;
1230 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1231 |
--libexe=* |
--libex=* |
--libe=*)
1232 libexecdir
=$ac_optarg ;;
1234 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1235 ac_prev
=localedir
;;
1236 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1237 localedir
=$ac_optarg ;;
1239 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1240 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1241 ac_prev
=localstatedir
;;
1242 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1243 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1244 localstatedir
=$ac_optarg ;;
1246 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1248 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1249 mandir
=$ac_optarg ;;
1251 -nfp |
--nfp |
--nf)
1252 # Obsolete; use --without-fp.
1255 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1256 |
--no-cr |
--no-c |
-n)
1259 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1260 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1263 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1264 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1265 |
--oldin |
--oldi |
--old |
--ol |
--o)
1266 ac_prev
=oldincludedir
;;
1267 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1268 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1269 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1270 oldincludedir
=$ac_optarg ;;
1272 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1274 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1275 prefix
=$ac_optarg ;;
1277 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1278 |
--program-pre |
--program-pr |
--program-p)
1279 ac_prev
=program_prefix
;;
1280 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1281 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1282 program_prefix
=$ac_optarg ;;
1284 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1285 |
--program-suf |
--program-su |
--program-s)
1286 ac_prev
=program_suffix
;;
1287 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1288 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1289 program_suffix
=$ac_optarg ;;
1291 -program-transform-name |
--program-transform-name \
1292 |
--program-transform-nam |
--program-transform-na \
1293 |
--program-transform-n |
--program-transform- \
1294 |
--program-transform |
--program-transfor \
1295 |
--program-transfo |
--program-transf \
1296 |
--program-trans |
--program-tran \
1297 |
--progr-tra |
--program-tr |
--program-t)
1298 ac_prev
=program_transform_name
;;
1299 -program-transform-name=* |
--program-transform-name=* \
1300 |
--program-transform-nam=* |
--program-transform-na=* \
1301 |
--program-transform-n=* |
--program-transform-=* \
1302 |
--program-transform=* |
--program-transfor=* \
1303 |
--program-transfo=* |
--program-transf=* \
1304 |
--program-trans=* |
--program-tran=* \
1305 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1306 program_transform_name
=$ac_optarg ;;
1308 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1310 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1311 pdfdir
=$ac_optarg ;;
1313 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1315 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1318 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1319 |
-silent |
--silent |
--silen |
--sile |
--sil)
1322 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1324 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1326 sbindir
=$ac_optarg ;;
1328 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1329 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1330 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1332 ac_prev
=sharedstatedir
;;
1333 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1334 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1335 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1337 sharedstatedir
=$ac_optarg ;;
1339 -site |
--site |
--sit)
1341 -site=* |
--site=* |
--sit=*)
1344 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1346 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1347 srcdir
=$ac_optarg ;;
1349 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1350 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1351 ac_prev
=sysconfdir
;;
1352 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1353 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1354 sysconfdir
=$ac_optarg ;;
1356 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1357 ac_prev
=target_alias
;;
1358 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1359 target_alias
=$ac_optarg ;;
1361 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1364 -version |
--version |
--versio |
--versi |
--vers |
-V)
1365 ac_init_version
=: ;;
1368 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1369 # Reject names that are not valid shell variable names.
1370 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1371 as_fn_error $?
"invalid package name: $ac_useropt"
1372 ac_useropt_orig
=$ac_useropt
1373 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1374 case $ac_user_opts in
1378 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1379 ac_unrecognized_sep
=', ';;
1381 eval with_
$ac_useropt=\
$ac_optarg ;;
1383 -without-* |
--without-*)
1384 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1385 # Reject names that are not valid shell variable names.
1386 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1387 as_fn_error $?
"invalid package name: $ac_useropt"
1388 ac_useropt_orig
=$ac_useropt
1389 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1390 case $ac_user_opts in
1394 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1395 ac_unrecognized_sep
=', ';;
1397 eval with_
$ac_useropt=no
;;
1400 # Obsolete; use --with-x.
1403 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1404 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1405 ac_prev
=x_includes
;;
1406 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1407 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1408 x_includes
=$ac_optarg ;;
1410 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1411 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1412 ac_prev
=x_libraries
;;
1413 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1414 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1415 x_libraries
=$ac_optarg ;;
1417 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1418 Try \`$0 --help' for more information"
1422 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1423 # Reject names that are not valid shell variable names.
1424 case $ac_envvar in #(
1425 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1426 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1428 eval $ac_envvar=\
$ac_optarg
1429 export $ac_envvar ;;
1432 # FIXME: should be removed in autoconf 3.0.
1433 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1434 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1435 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1436 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1442 if test -n "$ac_prev"; then
1443 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1444 as_fn_error $?
"missing argument to $ac_option"
1447 if test -n "$ac_unrecognized_opts"; then
1448 case $enable_option_checking in
1450 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1451 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1455 # Check all directory arguments for consistency.
1456 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1457 datadir sysconfdir sharedstatedir localstatedir includedir \
1458 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1459 libdir localedir mandir
1461 eval ac_val
=\$
$ac_var
1462 # Remove trailing slashes.
1465 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1466 eval $ac_var=\
$ac_val;;
1468 # Be sure to have absolute directory names.
1470 [\\/$
]* | ?
:[\\/]* ) continue;;
1471 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1473 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1476 # There might be people who depend on the old broken behavior: `$host'
1477 # used to hold the argument of --host etc.
1478 # FIXME: To remove some day.
1481 target
=$target_alias
1483 # FIXME: To remove some day.
1484 if test "x$host_alias" != x
; then
1485 if test "x$build_alias" = x
; then
1486 cross_compiling
=maybe
1487 elif test "x$build_alias" != "x$host_alias"; then
1493 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1495 test "$silent" = yes && exec 6>/dev
/null
1498 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1499 ac_ls_di
=`ls -di .` &&
1500 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1501 as_fn_error $?
"working directory cannot be determined"
1502 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1503 as_fn_error $?
"pwd does not report name of working directory"
1506 # Find the source files, if location was not specified.
1507 if test -z "$srcdir"; then
1508 ac_srcdir_defaulted
=yes
1509 # Try the directory containing this script, then the parent directory.
1510 ac_confdir
=`$as_dirname -- "$as_myself" ||
1511 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1512 X"$as_myself" : 'X\(//\)[^/]' \| \
1513 X"$as_myself" : 'X\(//\)$' \| \
1514 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1515 $as_echo X"$as_myself" |
1516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1534 if test ! -r "$srcdir/$ac_unique_file"; then
1538 ac_srcdir_defaulted
=no
1540 if test ! -r "$srcdir/$ac_unique_file"; then
1541 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1542 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1544 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1546 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1548 # When building in place, set srcdir=.
1549 if test "$ac_abs_confdir" = "$ac_pwd"; then
1552 # Remove unnecessary trailing slashes from srcdir.
1553 # Double slashes in file names in object file debugging info
1554 # mess up M-x gdb in Emacs.
1556 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1558 for ac_var
in $ac_precious_vars; do
1559 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1560 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1561 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1562 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1566 # Report the --help message.
1568 if test "$ac_init_help" = "long"; then
1569 # Omit some internal or obsolete options to make the list less imposing.
1570 # This message is too long to be a string in the A/UX 3.1 sh.
1572 \`configure' configures this package to adapt to many kinds of systems.
1574 Usage: $0 [OPTION]... [VAR=VALUE]...
1576 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1577 VAR=VALUE. See below for descriptions of some of the useful variables.
1579 Defaults for the options are specified in brackets.
1582 -h, --help display this help and exit
1583 --help=short display options specific to this package
1584 --help=recursive display the short help of all the included packages
1585 -V, --version display version information and exit
1586 -q, --quiet, --silent do not print \`checking ...' messages
1587 --cache-file=FILE cache test results in FILE [disabled]
1588 -C, --config-cache alias for \`--cache-file=config.cache'
1589 -n, --no-create do not create output files
1590 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1592 Installation directories:
1593 --prefix=PREFIX install architecture-independent files in PREFIX
1594 [$ac_default_prefix]
1595 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1598 By default, \`make install' will install all the files in
1599 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1600 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1601 for instance \`--prefix=\$HOME'.
1603 For better control, use the options below.
1605 Fine tuning of the installation directories:
1606 --bindir=DIR user executables [EPREFIX/bin]
1607 --sbindir=DIR system admin executables [EPREFIX/sbin]
1608 --libexecdir=DIR program executables [EPREFIX/libexec]
1609 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1610 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1611 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1612 --libdir=DIR object code libraries [EPREFIX/lib]
1613 --includedir=DIR C header files [PREFIX/include]
1614 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1615 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1616 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1617 --infodir=DIR info documentation [DATAROOTDIR/info]
1618 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1619 --mandir=DIR man documentation [DATAROOTDIR/man]
1620 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1621 --htmldir=DIR html documentation [DOCDIR]
1622 --dvidir=DIR dvi documentation [DOCDIR]
1623 --pdfdir=DIR pdf documentation [DOCDIR]
1624 --psdir=DIR ps documentation [DOCDIR]
1630 --program-prefix=PREFIX prepend PREFIX to installed program names
1631 --program-suffix=SUFFIX append SUFFIX to installed program names
1632 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1635 --build=BUILD configure
for building on BUILD
[guessed
]
1636 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1637 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1641 if test -n "$ac_init_help"; then
1646 --disable-option-checking ignore unrecognized
--enable/--with options
1647 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1648 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1649 --enable-generated-files-in-srcdir
1650 put copies of generated files
in source dir intended
1651 for creating
source tarballs
for users without
1652 texinfo bison or flex
1653 --disable-largefile omit support
for large files
1654 --disable-build-format-warnings
1655 don
't use -Wformat while building GCC
1656 --enable-werror-always enable -Werror despite compiler version
1657 --enable-checking[=LIST]
1658 enable expensive run-time checks. With LIST, enable
1659 only specific categories of checks. Categories are:
1660 yes,no,all,none,release. Flags are:
1661 assert,df,extra,fold,gc,gcac,gimple,misc,
1662 rtlflag,rtl,runtime,tree,valgrind,types
1663 --enable-coverage[=LEVEL]
1664 enable compiler's code coverage collection. Use to
1665 measure compiler performance and
locate unused parts
1666 of the compiler. With LEVEL
, specify optimization.
1667 Values are opt
, noopt
, default is noopt
1668 --enable-gather-detailed-mem-stats
1669 enable detailed memory allocation stats gathering
1670 --enable-valgrind-annotations
1671 enable valgrind runtime interaction
1672 --enable-multilib enable library support
for multiple ABIs
1673 --enable-multiarch enable support
for multiarch paths
1674 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1675 --enable-decimal-float={no
,yes,bid
,dpd
}
1676 enable decimal float extension to C. Selecting
'bid'
1677 or
'dpd' choses
which decimal floating point format
1679 --enable-fixed-point enable fixed-point arithmetic extension to C
1680 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1682 --enable-tls enable or disable generation of tls code overriding
1683 the assembler check
for tls support
1684 --enable-vtable-verify enable vtable verification feature
1685 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1686 GNU Objective-C runtime
1687 --disable-shared don't provide a shared libgcc
1688 --disable-gcov don
't provide libgcov and related host tools
1689 --enable-languages=LIST specify which front-ends to build
1690 --disable-rpath do not hardcode runtime library paths
1691 --enable-sjlj-exceptions
1692 arrange to use setjmp/longjmp exception handling
1693 --enable-secureplt enable -msecure-plt by default for PowerPC
1694 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1695 Default to platform configuration
1696 --enable-large-address-aware
1697 Link mingw executables with --large-address-aware
1698 --enable-leading-mingw64-underscores
1699 enable leading underscores on 64 bit mingw targets
1700 --enable-cld enable -mcld by default for 32bit x86
1701 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1702 --disable-win32-registry
1703 disable lookup of installation paths in the Registry
1705 --enable-win32-registry enable registry lookup (default)
1706 --enable-win32-registry=KEY
1707 use KEY instead of GCC version as the last portion
1709 --enable-shared[=PKGS] build shared libraries [default=yes]
1710 --enable-static[=PKGS] build static libraries [default=yes]
1711 --enable-fast-install[=PKGS]
1712 optimize for fast installation [default=yes]
1713 --disable-libtool-lock avoid locking (might break parallel builds)
1714 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1715 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1716 --enable-gnu-indirect-function
1717 enable the use of the @gnu_indirect_function to
1719 --enable-initfini-array use .init_array/.fini_array sections
1720 --enable-comdat enable COMDAT group support
1722 --enable-standard-branch-protection
1723 enable Branch Target Identification Mechanism and
1724 Return Address Signing by default for AArch64
1725 --disable-standard-branch-protection
1726 disable Branch Target Identification Mechanism and
1727 Return Address Signing by default for AArch64
1730 --enable-fix-cortex-a53-835769
1731 enable workaround for AArch64 Cortex-A53 erratum
1733 --disable-fix-cortex-a53-835769
1734 disable workaround for AArch64 Cortex-A53 erratum
1738 --enable-fix-cortex-a53-843419
1739 enable workaround for AArch64 Cortex-A53 erratum
1741 --disable-fix-cortex-a53-843419
1742 disable workaround for AArch64 Cortex-A53 erratum
1745 --enable-gnu-unique-object
1746 enable the use of the @gnu_unique_object ELF
1747 extension on glibc systems
1748 --enable-linker-build-id
1749 compiler will always pass --build-id to linker
1750 --enable-libssp enable linking against libssp
1751 --enable-default-ssp enable Stack Smashing Protection as default
1752 --enable-maintainer-mode
1753 enable make rules and dependencies not useful (and
1754 sometimes confusing) to the casual installer
1755 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1756 thrashing on the build machine
1757 --enable-version-specific-runtime-libs
1758 specify that runtime libraries should be installed
1759 in a compiler-specific directory
1760 --enable-plugin enable plugin support
1761 --enable-host-shared build host code as shared libraries
1762 --disable-libquadmath-support
1763 disable libquadmath support for Fortran
1764 --enable-default-pie enable Position Independent Executable as default
1767 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1768 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1769 --with-build-libsubdir=DIR Directory where to find libraries for build system
1770 --with-local-prefix=DIR specifies directory to put local include
1771 --with-native-system-header-dir=dir
1772 use dir as the directory to look for standard
1773 system header files in. Defaults to /usr/include.
1774 --with-build-sysroot=sysroot
1775 use sysroot as the system root during the build
1776 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1777 --with-gxx-include-dir=DIR
1778 specifies directory to put g++ header files
1779 --with-cpp-install-dir=DIR
1780 install the user visible C preprocessor in DIR
1781 (relative to PREFIX) as well as PREFIX/bin
1782 --with-gnu-ld arrange to work with GNU ld
1783 --with-ld arrange to use the specified ld (full pathname)
1784 --with-demangler-in-ld try to use demangler in GNU ld
1785 --with-gnu-as arrange to work with GNU as
1786 --with-as arrange to use the specified as (full pathname)
1787 --with-stabs arrange to use stabs instead of host debug format
1788 --with-stack-clash-protection-guard-size=size
1789 Set the default stack clash protection guard size
1790 for specific targets as a power of two in bytes.
1791 --with-dwarf2 force the default debug format to be DWARF 2
1792 --with-specs=SPECS add SPECS to driver command-line processing
1793 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1794 --with-bugurl=URL Direct users to URL to report a bug
1795 --with-documentation-root-url=URL
1796 Root for documentation URLs
1797 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1798 --with-zstd=PATH specify prefix directory for installed zstd library.
1799 Equivalent to --with-zstd-include=PATH/include plus
1800 --with-zstd-lib=PATH/lib
1801 --with-zstd-include=PATH
1802 specify directory for installed zstd include files
1803 --with-zstd-lib=PATH specify directory for the installed zstd library
1804 --with-gnu-ld assume the C compiler uses GNU ld default=no
1805 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1806 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1807 --with-gcc-major-version-only
1808 use only GCC major number
in filesystem paths
1809 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1811 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1812 --with-plugin-ld=[ARG
] specify the plugin linker
1813 --with-glibc-version=M.N
1814 assume GCC used with glibc version M.N or later
1815 --with-long-double-128 use
128-bit long double by default
1816 --with-long-double-format={ieee
,ibm
}
1817 Specify whether PowerPC long double uses IEEE or IBM format
1819 --with-gc={page
,zone
} this option is not supported anymore. It used to
1820 choose the garbage collection mechanism to use with
1822 --with-system-zlib use installed libz
1823 --with-linker-hash-style={sysv
,gnu
,both
}
1824 specify the linker
hash style
1825 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1826 specify the default of
-fdiagnostics-color option
1827 auto-if-env stands
for -fdiagnostics-color=auto
if
1828 GCC_COLOR environment variable is present and
1829 -fdiagnostics-color=never otherwise
1831 Some influential environment variables
:
1832 CC C compiler
command
1833 CFLAGS C compiler flags
1834 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1835 nonstandard directory
<lib dir
>
1836 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1837 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1838 you have headers
in a nonstandard directory
<include dir
>
1839 CXX C
++ compiler
command
1840 CXXFLAGS C
++ compiler flags
1841 CXXCPP C
++ preprocessor
1843 GMPLIBS How to link GMP
1844 GMPINC How to
find GMP include files
1845 ISLLIBS How to link isl
1846 ISLINC How to
find isl include files
1848 Use these variables to override the choices made by
`configure' or to help
1849 it to find libraries and programs with nonstandard names/locations.
1851 Report bugs to the package provider.
1856 if test "$ac_init_help" = "recursive"; then
1857 # If there are subdirs, report their specific --help.
1858 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1859 test -d "$ac_dir" ||
1860 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1865 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1867 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1868 # A ".." for each directory in $ac_dir_suffix.
1869 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1870 case $ac_top_builddir_sub in
1871 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1872 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1875 ac_abs_top_builddir=$ac_pwd
1876 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1877 # for backward compatibility:
1878 ac_top_builddir=$ac_top_build_prefix
1881 .) # We are building in place.
1883 ac_top_srcdir=$ac_top_builddir_sub
1884 ac_abs_top_srcdir=$ac_pwd ;;
1885 [\\/]* | ?:[\\/]* ) # Absolute name.
1886 ac_srcdir=$srcdir$ac_dir_suffix;
1887 ac_top_srcdir=$srcdir
1888 ac_abs_top_srcdir=$srcdir ;;
1890 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1891 ac_top_srcdir=$ac_top_build_prefix$srcdir
1892 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1894 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1896 cd "$ac_dir" || { ac_status=$?; continue; }
1897 # Check for guested configure.
1898 if test -f "$ac_srcdir/configure.gnu"; then
1900 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1901 elif test -f "$ac_srcdir/configure"; then
1903 $SHELL "$ac_srcdir/configure" --help=recursive
1905 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1907 cd "$ac_pwd" || { ac_status=$?; break; }
1911 test -n "$ac_init_help" && exit $ac_status
1912 if $ac_init_version; then
1915 generated by GNU Autoconf 2.69
1917 Copyright (C) 2012 Free Software Foundation, Inc.
1918 This configure script is free software; the Free Software Foundation
1919 gives unlimited permission to copy, distribute and modify it.
1924 ## ------------------------ ##
1925 ## Autoconf initialization. ##
1926 ## ------------------------ ##
1928 # ac_fn_c_try_compile LINENO
1929 # --------------------------
1930 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1931 ac_fn_c_try_compile ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 rm -f conftest.$ac_objext
1935 if { { ac_try="$ac_compile"
1937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1938 *) ac_try_echo
=$ac_try;;
1940 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_compile") 2>conftest.err
1944 if test -s conftest.err
; then
1945 grep -v '^ *+' conftest.err
>conftest.er1
1946 cat conftest.er1
>&5
1947 mv -f conftest.er1 conftest.err
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && {
1951 test -z "$ac_c_werror_flag" ||
1952 test ! -s conftest.err
1953 } && test -s conftest.
$ac_objext; then :
1956 $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.
$ac_ext >&5
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 as_fn_set_status
$ac_retval
1964 } # ac_fn_c_try_compile
1966 # ac_fn_cxx_try_compile LINENO
1967 # ----------------------------
1968 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1969 ac_fn_cxx_try_compile
()
1971 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1972 rm -f conftest.
$ac_objext
1973 if { { ac_try
="$ac_compile"
1975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1976 *) ac_try_echo=$ac_try;;
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979 $as_echo "$ac_try_echo"; } >&5
1980 (eval "$ac_compile") 2>conftest.err
1982 if test -s conftest.err; then
1983 grep -v '^ *+' conftest.err >conftest.er1
1984 cat conftest.er1 >&5
1985 mv -f conftest.er1 conftest.err
1987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1988 test $ac_status = 0; } && {
1989 test -z "$ac_cxx_werror_flag" ||
1990 test ! -s conftest.err
1991 } && test -s conftest.$ac_objext; then :
1994 $as_echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 as_fn_set_status $ac_retval
2002 } # ac_fn_cxx_try_compile
2004 # ac_fn_cxx_try_cpp LINENO
2005 # ------------------------
2006 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2007 ac_fn_cxx_try_cpp ()
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 if { { ac_try="$ac_cpp conftest.$ac_ext"
2012 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2013 *) ac_try_echo
=$ac_try;;
2015 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2019 if test -s conftest.err
; then
2020 grep -v '^ *+' conftest.err
>conftest.er1
2021 cat conftest.er1
>&5
2022 mv -f conftest.er1 conftest.err
2024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025 test $ac_status = 0; } > conftest.i
&& {
2026 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2027 test ! -s conftest.err
2031 $as_echo "$as_me: failed program was:" >&5
2032 sed 's/^/| /' conftest.
$ac_ext >&5
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037 as_fn_set_status
$ac_retval
2039 } # ac_fn_cxx_try_cpp
2041 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2042 # ---------------------------------------------------------
2043 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2044 # the include files in INCLUDES and setting the cache variable VAR
2046 ac_fn_cxx_check_header_mongrel
()
2048 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2049 if eval \
${$3+:} false
; then :
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051 $as_echo_n "checking for $2... " >&6; }
2052 if eval \
${$3+:} false
; then :
2053 $as_echo_n "(cached) " >&6
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2059 # Is the header compilable?
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2061 $as_echo_n "checking $2 usability... " >&6; }
2062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2067 if ac_fn_cxx_try_compile
"$LINENO"; then :
2068 ac_header_compiler
=yes
2070 ac_header_compiler
=no
2072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2074 $as_echo "$ac_header_compiler" >&6; }
2076 # Is the header present?
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2078 $as_echo_n "checking $2 presence... " >&6; }
2079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2083 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2084 ac_header_preproc
=yes
2086 ac_header_preproc
=no
2088 rm -f conftest.err conftest.i conftest.
$ac_ext
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2090 $as_echo "$ac_header_preproc" >&6; }
2092 # So? What about this header?
2093 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2096 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2098 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2102 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2104 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2106 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2108 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2110 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2114 $as_echo_n "checking for $2... " >&6; }
2115 if eval \
${$3+:} false
; then :
2116 $as_echo_n "(cached) " >&6
2118 eval "$3=\$ac_header_compiler"
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122 $as_echo "$ac_res" >&6; }
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126 } # ac_fn_cxx_check_header_mongrel
2128 # ac_fn_cxx_try_run LINENO
2129 # ------------------------
2130 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2131 # that executables *can* be run.
2132 ac_fn_cxx_try_run
()
2134 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2135 if { { ac_try
="$ac_link"
2137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2138 *) ac_try_echo=$ac_try;;
2140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2141 $as_echo "$ac_try_echo"; } >&5
2142 (eval "$ac_link") 2>&5
2144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2145 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2146 { { case "(($ac_try" in
2147 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2148 *) ac_try_echo
=$ac_try;;
2150 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2151 $as_echo "$ac_try_echo"; } >&5
2152 (eval "$ac_try") 2>&5
2154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2155 test $ac_status = 0; }; }; then :
2158 $as_echo "$as_me: program exited with status $ac_status" >&5
2159 $as_echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.
$ac_ext >&5
2162 ac_retval
=$ac_status
2164 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166 as_fn_set_status
$ac_retval
2168 } # ac_fn_cxx_try_run
2170 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2171 # ---------------------------------------------------------
2172 # Tests whether HEADER exists and can be compiled using the include files in
2173 # INCLUDES, setting the cache variable VAR accordingly.
2174 ac_fn_cxx_check_header_compile
()
2176 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2178 $as_echo_n "checking for $2... " >&6; }
2179 if eval \
${$3+:} false
; then :
2180 $as_echo_n "(cached) " >&6
2182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2187 if ac_fn_cxx_try_compile
"$LINENO"; then :
2192 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196 $as_echo "$ac_res" >&6; }
2197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199 } # ac_fn_cxx_check_header_compile
2201 # ac_fn_c_try_cpp LINENO
2202 # ----------------------
2203 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2206 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2207 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2210 *) ac_try_echo=$ac_try;;
2212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2213 $as_echo "$ac_try_echo"; } >&5
2214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2216 if test -s conftest.err; then
2217 grep -v '^ *+' conftest.err >conftest.er1
2218 cat conftest.er1 >&5
2219 mv -f conftest.er1 conftest.err
2221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2222 test $ac_status = 0; } > conftest.i && {
2223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2224 test ! -s conftest.err
2228 $as_echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2233 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2234 as_fn_set_status $ac_retval
2238 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2239 # ----------------------------------------------
2240 # Tries to find the compile-time value of EXPR in a program that includes
2241 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2243 ac_fn_cxx_compute_int ()
2245 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2246 if test "$cross_compiling" = yes; then
2247 # Depending upon the size, compute the lo and hi bounds.
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2254 static int test_array [1 - 2 * !(($2) >= 0)];
2256 return test_array [0];
2262 if ac_fn_cxx_try_compile "$LINENO"; then :
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2271 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2273 return test_array [0];
2279 if ac_fn_cxx_try_compile "$LINENO"; then :
2280 ac_hi=$ac_mid; break
2282 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2283 if test $ac_lo -le $ac_mid; then
2287 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2298 static int test_array [1 - 2 * !(($2) < 0)];
2300 return test_array [0];
2306 if ac_fn_cxx_try_compile "$LINENO"; then :
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2315 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2317 return test_array [0];
2323 if ac_fn_cxx_try_compile "$LINENO"; then :
2324 ac_lo=$ac_mid; break
2326 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2327 if test $ac_mid -le $ac_hi; then
2331 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341 # Binary search between lo and hi bounds.
2342 while test "x$ac_lo" != "x$ac_hi"; do
2343 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345 /* end confdefs.h. */
2350 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2352 return test_array [0];
2358 if ac_fn_cxx_try_compile "$LINENO"; then :
2361 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2373 static long int longval () { return $2; }
2374 static unsigned long int ulongval () { return $2; }
2381 FILE *f = fopen ("conftest.val", "w");
2386 long int i = longval ();
2389 fprintf (f, "%ld", i);
2393 unsigned long int i = ulongval ();
2396 fprintf (f, "%lu", i);
2398 /* Do not output a trailing newline, as this causes \r\n confusion
2399 on some platforms. */
2400 return ferror (f) || fclose (f) != 0;
2406 if ac_fn_cxx_try_run "$LINENO"; then :
2407 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2412 conftest.$ac_objext conftest.beam conftest.$ac_ext
2416 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2417 as_fn_set_status $ac_retval
2419 } # ac_fn_cxx_compute_int
2421 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2422 # ---------------------------------------------
2423 # Tests whether TYPE exists after having included INCLUDES, setting cache
2424 # variable VAR accordingly.
2425 ac_fn_cxx_check_type ()
2427 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2429 $as_echo_n "checking for $2... " >&6; }
2430 if eval \${$3+:} false; then :
2431 $as_echo_n "(cached) " >&6
2434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2435 /* end confdefs.h. */
2446 if ac_fn_cxx_try_compile "$LINENO"; then :
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h. */
2459 if ac_fn_cxx_try_compile "$LINENO"; then :
2464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2470 $as_echo "$ac_res" >&6; }
2471 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2473 } # ac_fn_cxx_check_type
2475 # ac_fn_c_find_intX_t LINENO BITS VAR
2476 # -----------------------------------
2477 # Finds a signed integer type with width BITS, setting cache variable VAR
2479 ac_fn_c_find_intX_t ()
2481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2483 $as_echo_n "checking for int$2_t... " >&6; }
2484 if eval \${$3+:} false; then :
2485 $as_echo_n "(cached) " >&6
2488 # Order is important - never check a type that is potentially smaller
2489 # than half of the expected target width.
2490 for ac_type in int$2_t 'int' 'long int' \
2491 'long long int' 'short int' 'signed char'; do
2492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493 /* end confdefs.h. */
2494 $ac_includes_default
2495 enum { N = $2 / 2 - 1 };
2499 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2501 return test_array [0];
2507 if ac_fn_cxx_try_compile "$LINENO"; then :
2508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2509 /* end confdefs.h. */
2510 $ac_includes_default
2511 enum { N = $2 / 2 - 1 };
2515 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2516 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2518 return test_array [0];
2524 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 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2537 if eval test \"x\$"$3"\" = x"no"; then :
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2546 $as_echo "$ac_res" >&6; }
2547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2549 } # ac_fn_c_find_intX_t
2551 # ac_fn_cxx_try_link LINENO
2552 # -------------------------
2553 # Try to link conftest.$ac_ext, and return whether this succeeded.
2554 ac_fn_cxx_try_link ()
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 rm -f conftest.$ac_objext conftest$ac_exeext
2558 if { { ac_try="$ac_link"
2560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2561 *) ac_try_echo
=$ac_try;;
2563 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2564 $as_echo "$ac_try_echo"; } >&5
2565 (eval "$ac_link") 2>conftest.err
2567 if test -s conftest.err
; then
2568 grep -v '^ *+' conftest.err
>conftest.er1
2569 cat conftest.er1
>&5
2570 mv -f conftest.er1 conftest.err
2572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2573 test $ac_status = 0; } && {
2574 test -z "$ac_cxx_werror_flag" ||
2575 test ! -s conftest.err
2576 } && test -s conftest
$ac_exeext && {
2577 test "$cross_compiling" = yes ||
2578 test -x conftest
$ac_exeext
2582 $as_echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.
$ac_ext >&5
2587 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2588 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2589 # interfere with the next link command; also delete a directory that is
2590 # left behind by Apple's compiler. We do this before executing the actions.
2591 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2593 as_fn_set_status
$ac_retval
2595 } # ac_fn_cxx_try_link
2597 # ac_fn_c_find_uintX_t LINENO BITS VAR
2598 # ------------------------------------
2599 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2601 ac_fn_c_find_uintX_t
()
2603 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2605 $as_echo_n "checking for uint$2_t... " >&6; }
2606 if eval \
${$3+:} false
; then :
2607 $as_echo_n "(cached) " >&6
2610 # Order is important - never check a type that is potentially smaller
2611 # than half of the expected target width.
2612 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2613 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2615 /* end confdefs.h. */
2616 $ac_includes_default
2620 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2622 return test_array [0];
2628 if ac_fn_cxx_try_compile
"$LINENO"; then :
2633 eval "$3=\$ac_type" ;;
2636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2637 if eval test \"x\$
"$3"\" = x
"no"; then :
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2646 $as_echo "$ac_res" >&6; }
2647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2649 } # ac_fn_c_find_uintX_t
2651 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2652 # ------------------------------------------------
2653 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2654 ac_fn_cxx_check_header_preproc
()
2656 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2658 $as_echo_n "checking for $2... " >&6; }
2659 if eval \
${$3+:} false
; then :
2660 $as_echo_n "(cached) " >&6
2662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2663 /* end confdefs.h. */
2666 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2671 rm -f conftest.err conftest.i conftest.
$ac_ext
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2675 $as_echo "$ac_res" >&6; }
2676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2678 } # ac_fn_cxx_check_header_preproc
2680 # ac_fn_cxx_check_func LINENO FUNC VAR
2681 # ------------------------------------
2682 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2683 ac_fn_cxx_check_func
()
2685 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2687 $as_echo_n "checking for $2... " >&6; }
2688 if eval \
${$3+:} false
; then :
2689 $as_echo_n "(cached) " >&6
2691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2692 /* end confdefs.h. */
2693 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2695 #define $2 innocuous_$2
2697 /* System header to define __stub macros and hopefully few prototypes,
2698 which can conflict with char $2 (); below.
2699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2700 <limits.h> exists even on freestanding compilers. */
2703 # include <limits.h>
2705 # include <assert.h>
2710 /* Override any GCC internal prototype to avoid an error.
2711 Use char because int might match the return type of a GCC
2712 builtin and then its argument prototype would still apply. */
2717 /* The GNU C library defines this for functions which it implements
2718 to always fail with ENOSYS. Some functions are actually named
2719 something starting with __ and the normal name is an alias. */
2720 #if defined __stub_$2 || defined __stub___$2
2732 if ac_fn_cxx_try_link
"$LINENO"; then :
2737 rm -f core conftest.err conftest.
$ac_objext \
2738 conftest
$ac_exeext conftest.
$ac_ext
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2742 $as_echo "$ac_res" >&6; }
2743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2745 } # ac_fn_cxx_check_func
2747 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2748 # -----------------------------------------------
2749 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2751 ac_fn_cxx_check_decl
()
2753 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2754 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2755 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2757 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2758 if eval \
${$3+:} false
; then :
2759 $as_echo_n "(cached) " >&6
2761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2762 /* end confdefs.h. */
2767 #ifndef $as_decl_name
2769 (void) $as_decl_use;
2771 (void) $as_decl_name;
2779 if ac_fn_cxx_try_compile
"$LINENO"; then :
2784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2788 $as_echo "$ac_res" >&6; }
2789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2791 } # ac_fn_cxx_check_decl
2793 # ac_fn_c_try_link LINENO
2794 # -----------------------
2795 # Try to link conftest.$ac_ext, and return whether this succeeded.
2798 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2799 rm -f conftest.
$ac_objext conftest
$ac_exeext
2800 if { { ac_try
="$ac_link"
2802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2803 *) ac_try_echo=$ac_try;;
2805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2806 $as_echo "$ac_try_echo"; } >&5
2807 (eval "$ac_link") 2>conftest.err
2809 if test -s conftest.err; then
2810 grep -v '^ *+' conftest.err >conftest.er1
2811 cat conftest.er1 >&5
2812 mv -f conftest.er1 conftest.err
2814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2815 test $ac_status = 0; } && {
2816 test -z "$ac_c_werror_flag" ||
2817 test ! -s conftest.err
2818 } && test -s conftest$ac_exeext && {
2819 test "$cross_compiling" = yes ||
2820 test -x conftest$ac_exeext
2824 $as_echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2829 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2830 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2831 # interfere with the next link command; also delete a directory that is
2832 # left behind by Apple's compiler. We do this before executing the actions.
2833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2835 as_fn_set_status $ac_retval
2837 } # ac_fn_c_try_link
2839 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2840 # ----------------------------------------------
2841 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2842 ac_fn_c_check_header_preproc ()
2844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2846 $as_echo_n "checking for $2... " >&6; }
2847 if eval \${$3+:} false; then :
2848 $as_echo_n "(cached) " >&6
2850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2851 /* end confdefs.h. */
2854 if ac_fn_c_try_cpp "$LINENO"; then :
2859 rm -f conftest.err conftest.i conftest.$ac_ext
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2863 $as_echo "$ac_res" >&6; }
2864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2866 } # ac_fn_c_check_header_preproc
2868 # ac_fn_c_check_func LINENO FUNC VAR
2869 # ----------------------------------
2870 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2871 ac_fn_c_check_func ()
2873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2875 $as_echo_n "checking for $2... " >&6; }
2876 if eval \${$3+:} false; then :
2877 $as_echo_n "(cached) " >&6
2879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2880 /* end confdefs.h. */
2881 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2883 #define $2 innocuous_$2
2885 /* System header to define __stub macros and hopefully few prototypes,
2886 which can conflict with char $2 (); below.
2887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2888 <limits.h> exists even on freestanding compilers. */
2891 # include <limits.h>
2893 # include <assert.h>
2898 /* Override any GCC internal prototype to avoid an error.
2899 Use char because int might match the return type of a GCC
2900 builtin and then its argument prototype would still apply. */
2905 /* The GNU C library defines this for functions which it implements
2906 to always fail with ENOSYS. Some functions are actually named
2907 something starting with __ and the normal name is an alias. */
2908 #if defined __stub_$2 || defined __stub___$2
2920 if ac_fn_c_try_link "$LINENO"; then :
2925 rm -f core conftest.err conftest.$ac_objext \
2926 conftest$ac_exeext conftest.$ac_ext
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2930 $as_echo "$ac_res" >&6; }
2931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2933 } # ac_fn_c_check_func
2934 cat >config.log <<_ACEOF
2935 This file contains any messages produced by compilers while
2936 running configure, to aid debugging if configure makes a mistake.
2938 It was created by $as_me, which was
2939 generated by GNU Autoconf 2.69. Invocation command line was
2951 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2952 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2953 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2954 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2955 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2957 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2958 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2960 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2961 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2962 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2963 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2964 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2965 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2966 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 test -z "$as_dir" && as_dir=.
2975 $as_echo "PATH: $as_dir"
2991 # Keep a trace of the command line.
2992 # Strip out --no-create and --no-recursion so they do not pile up.
2993 # Strip out --silent because we don't want to record it for future runs.
2994 # Also quote any args containing shell meta-characters.
2995 # Make two passes to allow for proper duplicate-argument suppression.
2999 ac_must_keep_next=false
3005 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3007 | -silent | --silent | --silen | --sile | --sil)
3010 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3013 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3015 as_fn_append ac_configure_args1 " '$ac_arg'"
3016 if test $ac_must_keep_next = true; then
3017 ac_must_keep_next=false # Got value, back to normal.
3020 *=* | --config-cache | -C | -disable-* | --disable-* \
3021 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3022 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3023 | -with-* | --with-* | -without-* | --without-* | --x)
3024 case "$ac_configure_args0 " in
3025 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3028 -* ) ac_must_keep_next=true ;;
3031 as_fn_append ac_configure_args " '$ac_arg'"
3036 { ac_configure_args0=; unset ac_configure_args0;}
3037 { ac_configure_args1=; unset ac_configure_args1;}
3039 # When interrupted or exit'd, cleanup temporary files, and complete
3040 # config.log. We remove comments because anyway the quotes in there
3041 # would cause problems or look ugly.
3042 # WARNING: Use '\'' to represent an apostrophe within the trap.
3043 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3044 trap 'exit_status=$?
3045 # Save into config.log some information that might help in debugging.
3049 $as_echo "## ---------------- ##
3050 ## Cache variables. ##
3051 ## ---------------- ##"
3053 # The following way of writing the cache mishandles newlines in values,
3055 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3056 eval ac_val=\$$ac_var
3060 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3061 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3064 _ | IFS | as_nl) ;; #(
3065 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3066 *) { eval $ac_var=; unset $ac_var;} ;;
3071 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3072 *${as_nl}ac_space=\ *)
3074 "s/'\''/'\''\\\\'\'''\''/g;
3075 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3078 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3085 $as_echo "## ----------------- ##
3086 ## Output variables. ##
3087 ## ----------------- ##"
3089 for ac_var in $ac_subst_vars
3091 eval ac_val=\$$ac_var
3093 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3095 $as_echo "$ac_var='\''$ac_val'\''"
3099 if test -n "$ac_subst_files"; then
3100 $as_echo "## ------------------- ##
3101 ## File substitutions. ##
3102 ## ------------------- ##"
3104 for ac_var in $ac_subst_files
3106 eval ac_val=\$$ac_var
3108 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3110 $as_echo "$ac_var='\''$ac_val'\''"
3115 if test -s confdefs.h; then
3116 $as_echo "## ----------- ##
3123 test "$ac_signal" != 0 &&
3124 $as_echo "$as_me: caught signal $ac_signal"
3125 $as_echo "$as_me: exit $exit_status"
3127 rm -f core *.core core.conftest.* &&
3128 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3131 for ac_signal in 1 2 13 15; do
3132 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3136 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3137 rm -f -r conftest* confdefs.h
3139 $as_echo "/* confdefs.h */" > confdefs.h
3141 # Predefined preprocessor variables.
3143 cat >>confdefs.h <<_ACEOF
3144 #define PACKAGE_NAME "$PACKAGE_NAME"
3147 cat >>confdefs.h <<_ACEOF
3148 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3151 cat >>confdefs.h <<_ACEOF
3152 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3155 cat >>confdefs.h <<_ACEOF
3156 #define PACKAGE_STRING "$PACKAGE_STRING"
3159 cat >>confdefs.h <<_ACEOF
3160 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3163 cat >>confdefs.h <<_ACEOF
3164 #define PACKAGE_URL "$PACKAGE_URL"
3168 # Let the site file select an alternate cache file if it wants to.
3169 # Prefer an explicitly selected file to automatically selected ones.
3172 if test -n "$CONFIG_SITE"; then
3173 # We do not want a PATH search for config.site.
3174 case $CONFIG_SITE in #((
3175 -*) ac_site_file1=./$CONFIG_SITE;;
3176 */*) ac_site_file1=$CONFIG_SITE;;
3177 *) ac_site_file1=./$CONFIG_SITE;;
3179 elif test "x$prefix" != xNONE; then
3180 ac_site_file1=$prefix/share/config.site
3181 ac_site_file2=$prefix/etc/config.site
3183 ac_site_file1=$ac_default_prefix/share/config.site
3184 ac_site_file2=$ac_default_prefix/etc/config.site
3186 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3188 test "x$ac_site_file" = xNONE && continue
3189 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3191 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3192 sed 's/^/| /' "$ac_site_file" >&5
3194 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 as_fn_error $? "failed to load site
script $ac_site_file
3197 See \
`config.log' for more details" "$LINENO" 5; }
3201 if test -r "$cache_file"; then
3202 # Some versions of bash will fail to source /dev/null (special files
3203 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3204 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3206 $as_echo "$as_me: loading cache $cache_file" >&6;}
3208 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3209 *) . "./$cache_file";;
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3214 $as_echo "$as_me: creating cache $cache_file" >&6;}
3218 # Check that the precious variables saved in the cache have kept the same
3220 ac_cache_corrupted=false
3221 for ac_var in $ac_precious_vars; do
3222 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3223 eval ac_new_set=\$ac_env_${ac_var}_set
3224 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3225 eval ac_new_val=\$ac_env_${ac_var}_value
3226 case $ac_old_set,$ac_new_set in
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3229 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3230 ac_cache_corrupted=: ;;
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3233 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3234 ac_cache_corrupted=: ;;
3237 if test "x$ac_old_val" != "x$ac_new_val"; then
3238 # differences in whitespace do not lead to failure.
3239 ac_old_val_w=`echo x
$ac_old_val`
3240 ac_new_val_w=`echo x
$ac_new_val`
3241 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3243 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3244 ac_cache_corrupted=:
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3247 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3248 eval $ac_var=\$ac_old_val
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3251 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3253 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3256 # Pass precious variables to config.status.
3257 if test "$ac_new_set" = set; then
3259 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3260 *) ac_arg=$ac_var=$ac_new_val ;;
3262 case " $ac_configure_args " in
3263 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3264 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3268 if $ac_cache_corrupted; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3272 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3273 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3275 ## -------------------- ##
3276 ## Main body of script. ##
3277 ## -------------------- ##
3280 ac_cpp='$CPP $CPPFLAGS'
3281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3290 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3293 gcc_version=`cat $srcdir/BASE-VER
`
3295 # Determine the host, build, and target systems
3297 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3298 if test -f "$ac_dir/install-sh"; then
3300 ac_install_sh="$ac_aux_dir/install-sh -c"
3302 elif test -f "$ac_dir/install.sh"; then
3304 ac_install_sh="$ac_aux_dir/install.sh -c"
3306 elif test -f "$ac_dir/shtool"; then
3308 ac_install_sh="$ac_aux_dir/shtool install -c"
3312 if test -z "$ac_aux_dir"; then
3313 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3316 # These three variables are undocumented and unsupported,
3317 # and are intended to be withdrawn in a future Autoconf release.
3318 # They can cause serious problems if a builder's source tree is in a directory
3319 # whose full name contains unusual characters.
3320 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3321 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3322 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3325 # Make sure we can run config.sub.
3326 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3327 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3330 $as_echo_n "checking build system type... " >&6; }
3331 if ${ac_cv_build+:} false; then :
3332 $as_echo_n "(cached) " >&6
3334 ac_build_alias=$build_alias
3335 test "x$ac_build_alias" = x &&
3336 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3337 test "x$ac_build_alias" = x &&
3338 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3339 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3340 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3344 $as_echo "$ac_cv_build" >&6; }
3345 case $ac_cv_build in
3347 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3350 ac_save_IFS=$IFS; IFS='-'
3356 # Remember, the first character of IFS is used to create $*,
3357 # except with old shells:
3360 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3364 $as_echo_n "checking host system type... " >&6; }
3365 if ${ac_cv_host+:} false; then :
3366 $as_echo_n "(cached) " >&6
3368 if test "x$host_alias" = x; then
3369 ac_cv_host=$ac_cv_build
3371 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3372 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3377 $as_echo "$ac_cv_host" >&6; }
3380 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3383 ac_save_IFS=$IFS; IFS='-'
3389 # Remember, the first character of IFS is used to create $*,
3390 # except with old shells:
3393 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3397 $as_echo_n "checking target system type... " >&6; }
3398 if ${ac_cv_target+:} false; then :
3399 $as_echo_n "(cached) " >&6
3401 if test "x$target_alias" = x; then
3402 ac_cv_target=$ac_cv_host
3404 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3405 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3410 $as_echo "$ac_cv_target" >&6; }
3411 case $ac_cv_target in
3413 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3415 target=$ac_cv_target
3416 ac_save_IFS=$IFS; IFS='-'
3422 # Remember, the first character of IFS is used to create $*,
3423 # except with old shells:
3426 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3429 # The aliases save the names the user supplied, while $host etc.
3430 # will get canonicalized.
3431 test -n "$target_alias" &&
3432 test "$program_prefix$program_suffix$program_transform_name" = \
3434 program_prefix=${target_alias}-
3436 # Determine the noncanonical host name, for Ada.
3437 case ${build_alias} in
3438 "") build_noncanonical=${build} ;;
3439 *) build_noncanonical=${build_alias} ;;
3442 case ${host_alias} in
3443 "") host_noncanonical=${build_noncanonical} ;;
3444 *) host_noncanonical=${host_alias} ;;
3450 # Determine the noncanonical target name, for directory use.
3451 case ${target_alias} in
3452 "") target_noncanonical=${host_noncanonical} ;;
3453 *) target_noncanonical=${target_alias} ;;
3459 # Used for constructing correct paths for offload compilers.
3460 real_target_noncanonical=${target_noncanonical}
3463 # Determine the target- and build-specific subdirectories
3465 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3466 # have matching libraries, they should use host libraries: Makefile.tpl
3467 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3468 # However, they still use the build modules, because the corresponding
3469 # host modules (e.g. bison) are only built for the host when bootstrap
3471 # - build_subdir is where we find build modules, and never changes.
3472 # - build_libsubdir is where we find build libraries, and can be overridden.
3474 # Prefix 'build-' so this never conflicts with target_subdir.
3475 build_subdir="build-${build_noncanonical}"
3477 # Check whether --with-build-libsubdir was given.
3478 if test "${with_build_libsubdir+set}" = set; then :
3479 withval=$with_build_libsubdir; build_libsubdir="$withval"
3481 build_libsubdir="$build_subdir"
3484 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3485 if ( test $srcdir = . && test -d gcc ) \
3486 || test -d $srcdir/../host-${host_noncanonical}; then
3487 host_subdir="host-${host_noncanonical}"
3492 target_subdir=${target_noncanonical}
3495 # Set program_transform_name
3496 test "$program_prefix" != NONE &&
3497 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3498 # Use a double $ so make ignores it.
3499 test "$program_suffix" != NONE &&
3500 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3501 # Double any \ or $.
3502 # By default was `s
,x
,x
', remove it if useless.
3503 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3504 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3507 # Check for bogus environment variables.
3508 # Test if LIBRARY_PATH contains the notation for the current directory
3509 # since this would lead to problems installing/building glibc.
3510 # LIBRARY_PATH contains the current directory if one of the following
3512 # - one of the terminals (":" and ";") is the first or last sign
3513 # - two terminals occur directly after each other
3514 # - the path contains an element with a dot in it
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3516 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3517 case ${LIBRARY_PATH} in
3518 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3519 library_path_setting="contains current directory"
3522 library_path_setting="ok"
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3526 $as_echo "$library_path_setting" >&6; }
3527 if test "$library_path_setting" != "ok"; then
3529 *** LIBRARY_PATH shouldn't contain the current directory when
3530 *** building gcc. Please change the environment variable
3531 *** and run configure again.
" "$LINENO" 5
3534 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3535 # since this would lead to problems installing/building glibc.
3536 # GCC_EXEC_PREFIX contains the current directory if one of the following
3538 # - one of the terminals (":" and ";") is the first or last sign
3539 # - two terminals occur directly after each other
3540 # - the path contains an element with a dot in it
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3542 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3543 case ${GCC_EXEC_PREFIX} in
3544 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3545 gcc_exec_prefix_setting="contains current directory
"
3548 gcc_exec_prefix_setting="ok
"
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3552 $as_echo "$gcc_exec_prefix_setting" >&6; }
3553 if test "$gcc_exec_prefix_setting" != "ok
"; then
3555 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3556 *** building gcc. Please change the environment variable
3557 *** and run configure again." "$LINENO" 5
3564 # Specify the local prefix
3567 # Check whether --with-local-prefix was given.
3568 if test "${with_local_prefix+set}" = set; then :
3569 withval=$with_local_prefix; case "${withval}" in
3570 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3572 *) local_prefix=$with_local_prefix ;;
3577 # Default local prefix if it is empty
3578 if test x$local_prefix = x; then
3579 local_prefix=/usr/local
3583 # Check whether --with-native-system-header-dir was given.
3584 if test "${with_native_system_header_dir+set}" = set; then :
3585 withval=$with_native_system_header_dir;
3586 case ${with_native_system_header_dir} in
3587 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3588 /* | [A-Za-z]:[\\/]*) ;;
3589 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3591 configured_native_system_header_dir="${withval}"
3594 configured_native_system_header_dir=
3599 # Check whether --with-build-sysroot was given.
3600 if test "${with_build_sysroot+set}" = set; then :
3601 withval=$with_build_sysroot; if test x"$withval" != x ; then
3602 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3605 SYSROOT_CFLAGS_FOR_TARGET=
3610 if test "x$prefix" = xNONE; then
3611 test_prefix=/usr/local
3615 if test "x$exec_prefix" = xNONE; then
3616 test_exec_prefix=$test_prefix
3618 test_exec_prefix=$exec_prefix
3622 # Check whether --with-sysroot was given.
3623 if test "${with_sysroot+set}" = set; then :
3624 withval=$with_sysroot;
3625 case ${with_sysroot} in
3627 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3629 case ${with_sysroot} in
3630 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3631 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3634 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3635 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3637 case ${TARGET_SYSTEM_ROOT} in
3638 "${test_prefix}"|"${test_prefix}/"*|\
3639 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3640 '${prefix}'|'${prefix}/'*|\
3641 '${exec_prefix}'|'${exec_prefix}/'*)
3642 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3643 TARGET_SYSTEM_ROOT_DEFINE="$t"
3650 TARGET_SYSTEM_ROOT_DEFINE=
3651 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3659 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3660 # passed in by the toplevel make and thus we'd get different behavior
3661 # depending on where we built the sources.
3662 gcc_gxx_include_dir
=
3663 # Specify the g++ header file directory
3665 # Check whether --with-gxx-include-dir was given.
3666 if test "${with_gxx_include_dir+set}" = set; then :
3667 withval
=$with_gxx_include_dir; case "${withval}" in
3668 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3670 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3675 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3676 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3677 # relative to the sysroot.
3678 gcc_gxx_include_dir_add_sysroot
=0
3680 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3681 if test x
${gcc_gxx_include_dir} = x
; then
3682 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3683 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3685 libstdcxx_incdir
='include/c++/$(version)'
3686 if test x
$host != x
$target; then
3687 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3689 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3691 elif test "${with_sysroot+set}" = set; then
3692 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3693 if test "${gcc_gxx_without_sysroot}"; then
3694 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3695 gcc_gxx_include_dir_add_sysroot
=1
3700 # Check whether --with-cpp_install_dir was given.
3701 if test "${with_cpp_install_dir+set}" = set; then :
3702 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3703 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3704 elif test x
$withval != xno
; then
3705 cpp_install_dir
=$withval
3710 # We would like to our source tree to be readonly. However when releases or
3711 # pre-releases are generated, the flex/bison generated files as well as the
3712 # various formats of manuals need to be included along with the rest of the
3713 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3717 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3718 # Check whether --enable-generated-files-in-srcdir was given.
3719 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3720 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3722 generated_files_in_srcdir
=no
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3727 $as_echo "$generated_files_in_srcdir" >&6; }
3729 if test "$generated_files_in_srcdir" = "yes"; then
3736 # -------------------
3737 # Find default linker
3738 # -------------------
3742 # Check whether --with-gnu-ld was given.
3743 if test "${with_gnu_ld+set}" = set; then :
3744 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3751 *darwin
*) ld64_flag
=yes;; # Darwin can only use a ld64-compatible linker.
3755 # With pre-defined ld
3757 # Check whether --with-ld was given.
3758 if test "${with_ld+set}" = set; then :
3759 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3762 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3763 if test ! -x "$DEFAULT_LINKER"; then
3764 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3765 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3767 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3771 cat >>confdefs.h
<<_ACEOF
3772 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3778 $as_echo_n "checking whether a default linker was specified... " >&6; }
3779 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3780 if test x
"$gnu_ld_flag" = x
"no"; then
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3782 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3785 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 $as_echo "no" >&6; }
3792 # With demangler in GNU ld
3794 # Check whether --with-demangler-in-ld was given.
3795 if test "${with_demangler_in_ld+set}" = set; then :
3796 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3802 # ----------------------
3803 # Find default assembler
3804 # ----------------------
3808 # Check whether --with-gnu-as was given.
3809 if test "${with_gnu_as+set}" = set; then :
3810 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3817 # Check whether --with-as was given.
3818 if test "${with_as+set}" = set; then :
3819 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3822 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3823 if test ! -x "$DEFAULT_ASSEMBLER"; then
3824 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3825 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3829 cat >>confdefs.h
<<_ACEOF
3830 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3836 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3837 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3838 if test x
"$gas_flag" = x
"no"; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3840 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3843 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3847 $as_echo "no" >&6; }
3854 # If a non-executable a.out is present (e.g. created by GNU as above even if
3855 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3856 # file, even when creating an executable, so an execution test fails.
3857 # Remove possible default executable files to avoid this.
3859 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3860 # Autoconf includes it.
3861 rm -f a.out a.exe b.out
3863 # Find the native compiler
3865 ac_cpp
='$CPP $CPPFLAGS'
3866 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3869 if test -n "$ac_tool_prefix"; then
3870 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3871 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3873 $as_echo_n "checking for $ac_word... " >&6; }
3874 if ${ac_cv_prog_CC+:} false
; then :
3875 $as_echo_n "(cached) " >&6
3877 if test -n "$CC"; then
3878 ac_cv_prog_CC
="$CC" # Let the user override the test.
3880 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3884 test -z "$as_dir" && as_dir
=.
3885 for ac_exec_ext
in '' $ac_executable_extensions; do
3886 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3887 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 if test -n "$CC"; then
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3900 $as_echo "$CC" >&6; }
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3903 $as_echo "no" >&6; }
3908 if test -z "$ac_cv_prog_CC"; then
3910 # Extract the first word of "gcc", so it can be a program name with args.
3911 set dummy gcc
; ac_word
=$2
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913 $as_echo_n "checking for $ac_word... " >&6; }
3914 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3915 $as_echo_n "(cached) " >&6
3917 if test -n "$ac_ct_CC"; then
3918 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3924 test -z "$as_dir" && as_dir
=.
3925 for ac_exec_ext
in '' $ac_executable_extensions; do
3926 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3927 ac_cv_prog_ac_ct_CC
="gcc"
3928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3938 if test -n "$ac_ct_CC"; then
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3940 $as_echo "$ac_ct_CC" >&6; }
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3946 if test "x$ac_ct_CC" = x
; then
3949 case $cross_compiling:$ac_tool_warned in
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3953 ac_tool_warned
=yes ;;
3961 if test -z "$CC"; then
3962 if test -n "$ac_tool_prefix"; then
3963 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3964 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966 $as_echo_n "checking for $ac_word... " >&6; }
3967 if ${ac_cv_prog_CC+:} false
; then :
3968 $as_echo_n "(cached) " >&6
3970 if test -n "$CC"; then
3971 ac_cv_prog_CC
="$CC" # Let the user override the test.
3973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3977 test -z "$as_dir" && as_dir
=.
3978 for ac_exec_ext
in '' $ac_executable_extensions; do
3979 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 if test -n "$CC"; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3993 $as_echo "$CC" >&6; }
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
4002 if test -z "$CC"; then
4003 # Extract the first word of "cc", so it can be a program name with args.
4004 set dummy cc
; ac_word
=$2
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4006 $as_echo_n "checking for $ac_word... " >&6; }
4007 if ${ac_cv_prog_CC+:} false
; then :
4008 $as_echo_n "(cached) " >&6
4010 if test -n "$CC"; then
4011 ac_cv_prog_CC
="$CC" # Let the user override the test.
4014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4018 test -z "$as_dir" && as_dir
=.
4019 for ac_exec_ext
in '' $ac_executable_extensions; do
4020 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4021 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4022 ac_prog_rejected
=yes
4026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 if test $ac_prog_rejected = yes; then
4034 # We found a bogon in the path, so make sure we never use it.
4035 set dummy
$ac_cv_prog_CC
4037 if test $# != 0; then
4038 # We chose a different compiler from the bogus one.
4039 # However, it has the same basename, so the bogon will be chosen
4040 # first if we set CC to just the basename; use the full file name.
4042 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4048 if test -n "$CC"; then
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4050 $as_echo "$CC" >&6; }
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 $as_echo "no" >&6; }
4058 if test -z "$CC"; then
4059 if test -n "$ac_tool_prefix"; then
4060 for ac_prog
in cl.exe
4062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4063 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4065 $as_echo_n "checking for $ac_word... " >&6; }
4066 if ${ac_cv_prog_CC+:} false
; then :
4067 $as_echo_n "(cached) " >&6
4069 if test -n "$CC"; then
4070 ac_cv_prog_CC
="$CC" # Let the user override the test.
4072 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4076 test -z "$as_dir" && as_dir
=.
4077 for ac_exec_ext
in '' $ac_executable_extensions; do
4078 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4079 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4090 if test -n "$CC"; then
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4092 $as_echo "$CC" >&6; }
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4095 $as_echo "no" >&6; }
4099 test -n "$CC" && break
4102 if test -z "$CC"; then
4104 for ac_prog
in cl.exe
4106 # Extract the first word of "$ac_prog", so it can be a program name with args.
4107 set dummy
$ac_prog; ac_word
=$2
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4109 $as_echo_n "checking for $ac_word... " >&6; }
4110 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4111 $as_echo_n "(cached) " >&6
4113 if test -n "$ac_ct_CC"; then
4114 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4120 test -z "$as_dir" && as_dir
=.
4121 for ac_exec_ext
in '' $ac_executable_extensions; do
4122 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4123 ac_cv_prog_ac_ct_CC
="$ac_prog"
4124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4134 if test -n "$ac_ct_CC"; then
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4136 $as_echo "$ac_ct_CC" >&6; }
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139 $as_echo "no" >&6; }
4143 test -n "$ac_ct_CC" && break
4146 if test "x$ac_ct_CC" = x
; then
4149 case $cross_compiling:$ac_tool_warned in
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4153 ac_tool_warned
=yes ;;
4162 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4164 as_fn_error $?
"no acceptable C compiler found in \$PATH
4165 See \`config.log' for more details" "$LINENO" 5; }
4167 # Provide some information about the compiler.
4168 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4171 for ac_option
in --version -v -V -qversion; do
4172 { { ac_try
="$ac_compiler $ac_option >&5"
4174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4178 $as_echo "$ac_try_echo"; } >&5
4179 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4181 if test -s conftest.err; then
4183 ... rest of stderr output deleted ...
4184 10q' conftest.err >conftest.er1
4185 cat conftest.er1 >&5
4187 rm -f conftest.er1 conftest.err
4188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4189 test $ac_status = 0; }
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4203 ac_clean_files_save=$ac_clean_files
4204 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4205 # Try to create an executable without -o first, disregard a.out.
4206 # It will help us diagnose broken compilers, and finding out an intuition
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4209 $as_echo_n "checking whether the C compiler works... " >&6; }
4210 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4212 # The possible output files:
4213 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4216 for ac_file in $ac_files
4219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4220 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4225 if { { ac_try="$ac_link_default"
4227 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4228 *) ac_try_echo
=$ac_try;;
4230 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4231 $as_echo "$ac_try_echo"; } >&5
4232 (eval "$ac_link_default") 2>&5
4234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4235 test $ac_status = 0; }; then :
4236 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4237 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4238 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4239 # so that the user can short-circuit this test for compilers unknown to
4241 for ac_file
in $ac_files ''
4243 test -f "$ac_file" ||
continue
4245 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4248 # We found the default executable, but exeext='' is most
4252 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4254 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4256 # We set ac_cv_exeext here because the later test for it is not
4257 # safe: cross compilers may not add the suffix if given an `-o'
4258 # argument, so we may need to know it at that point already.
4259 # Even if this section looks crufty: it has the advantage of
4266 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4271 if test -z "$ac_file"; then :
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273 $as_echo "no" >&6; }
4274 $as_echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.
$ac_ext >&5
4277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4279 as_fn_error
77 "C compiler cannot create executables
4280 See \`config.log' for more details" "$LINENO" 5; }
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4283 $as_echo "yes" >&6; }
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4286 $as_echo_n "checking for C compiler default output file name... " >&6; }
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4288 $as_echo "$ac_file" >&6; }
4289 ac_exeext
=$ac_cv_exeext
4291 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4292 ac_clean_files
=$ac_clean_files_save
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4294 $as_echo_n "checking for suffix of executables... " >&6; }
4295 if { { ac_try
="$ac_link"
4297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4301 $as_echo "$ac_try_echo"; } >&5
4302 (eval "$ac_link") 2>&5
4304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4305 test $ac_status = 0; }; then :
4306 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4307 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4308 # work properly (i.e., refer to `conftest.exe'), while it won't with
4310 for ac_file
in conftest.exe conftest conftest.
*; do
4311 test -f "$ac_file" ||
continue
4313 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4314 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4322 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4323 See \`config.log' for more details" "$LINENO" 5; }
4325 rm -f conftest conftest
$ac_cv_exeext
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4327 $as_echo "$ac_cv_exeext" >&6; }
4329 rm -f conftest.
$ac_ext
4330 EXEEXT
=$ac_cv_exeext
4332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4338 FILE *f = fopen ("conftest.out", "w");
4339 return ferror (f) || fclose (f) != 0;
4345 ac_clean_files
="$ac_clean_files conftest.out"
4346 # Check that the compiler produces executables we can run. If not, either
4347 # the compiler is broken, or we cross compile.
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4349 $as_echo_n "checking whether we are cross compiling... " >&6; }
4350 if test "$cross_compiling" != yes; then
4351 { { ac_try
="$ac_link"
4353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4354 *) ac_try_echo=$ac_try;;
4356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4357 $as_echo "$ac_try_echo"; } >&5
4358 (eval "$ac_link") 2>&5
4360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4361 test $ac_status = 0; }
4362 if { ac_try='./conftest$ac_cv_exeext'
4363 { { case "(($ac_try" in
4364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4365 *) ac_try_echo
=$ac_try;;
4367 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4368 $as_echo "$ac_try_echo"; } >&5
4369 (eval "$ac_try") 2>&5
4371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372 test $ac_status = 0; }; }; then
4375 if test "$cross_compiling" = maybe
; then
4378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4380 as_fn_error $?
"cannot run C compiled programs.
4381 If you meant to cross compile, use \`--host'.
4382 See \`config.log' for more details" "$LINENO" 5; }
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4387 $as_echo "$cross_compiling" >&6; }
4389 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4390 ac_clean_files
=$ac_clean_files_save
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4392 $as_echo_n "checking for suffix of object files... " >&6; }
4393 if ${ac_cv_objext+:} false
; then :
4394 $as_echo_n "(cached) " >&6
4396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4407 rm -f conftest.o conftest.obj
4408 if { { ac_try
="$ac_compile"
4410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 $as_echo "$ac_try_echo"; } >&5
4415 (eval "$ac_compile") 2>&5
4417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418 test $ac_status = 0; }; then :
4419 for ac_file in conftest.o conftest.obj conftest.*; do
4420 test -f "$ac_file" || continue;
4422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4423 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4428 $as_echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4433 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4434 See \
`config.log' for more details" "$LINENO" 5; }
4436 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4439 $as_echo "$ac_cv_objext" >&6; }
4440 OBJEXT=$ac_cv_objext
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4443 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4444 if ${ac_cv_c_compiler_gnu+:} false; then :
4445 $as_echo_n "(cached) " >&6
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4461 if ac_fn_c_try_compile "$LINENO"; then :
4466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4471 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4472 if test $ac_compiler_gnu = yes; then
4477 ac_test_CFLAGS=${CFLAGS+set}
4478 ac_save_CFLAGS=$CFLAGS
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4480 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4481 if ${ac_cv_prog_cc_g+:} false; then :
4482 $as_echo_n "(cached) " >&6
4484 ac_save_c_werror_flag=$ac_c_werror_flag
4485 ac_c_werror_flag=yes
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4499 if ac_fn_c_try_compile "$LINENO"; then :
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4514 if ac_fn_c_try_compile "$LINENO"; then :
4517 ac_c_werror_flag=$ac_save_c_werror_flag
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4530 if ac_fn_c_try_compile "$LINENO"; then :
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 ac_c_werror_flag=$ac_save_c_werror_flag
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4541 $as_echo "$ac_cv_prog_cc_g" >&6; }
4542 if test "$ac_test_CFLAGS" = set; then
4543 CFLAGS=$ac_save_CFLAGS
4544 elif test $ac_cv_prog_cc_g = yes; then
4545 if test "$GCC" = yes; then
4551 if test "$GCC" = yes; then
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4558 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4559 if ${ac_cv_prog_cc_c89+:} false; then :
4560 $as_echo_n "(cached) " >&6
4562 ac_cv_prog_cc_c89=no
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4569 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4570 struct buf { int x; };
4571 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4572 static char *e (p, i)
4578 static char *f (char * (*g) (char **, int), char **p, ...)
4583 s = g (p, va_arg (v,int));
4588 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4589 function prototypes and stuff, but not '\xHH' hex character constants.
4590 These don't provoke an error unfortunately, instead are silently treated
4591 as 'x'. The following induces an error, until -std is added to get
4592 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4593 array size at least. It's necessary to write '\x00'==0 to get something
4594 that's true only with -std. */
4595 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4597 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4598 inside strings and character constants. */
4600 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4602 int test (int i, double x);
4603 struct s1 {int (*f) (int a);};
4604 struct s2 {int (*f) (double a);};
4605 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4611 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4616 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4617 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4619 CC="$ac_save_CC $ac_arg"
4620 if ac_fn_c_try_compile "$LINENO"; then :
4621 ac_cv_prog_cc_c89=$ac_arg
4623 rm -f core conftest.err conftest.$ac_objext
4624 test "x$ac_cv_prog_cc_c89" != "xno" && break
4626 rm -f conftest.$ac_ext
4631 case "x$ac_cv_prog_cc_c89" in
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4634 $as_echo "none needed" >&6; } ;;
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4637 $as_echo "unsupported" >&6; } ;;
4639 CC="$CC $ac_cv_prog_cc_c89"
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4641 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4643 if test "x$ac_cv_prog_cc_c89" != xno; then :
4648 ac_cpp='$CPP $CPPFLAGS'
4649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4654 ac_cpp='$CXXCPP $CPPFLAGS'
4655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4658 if test -z "$CXX"; then
4659 if test -n "$CCC"; then
4662 if test -n "$ac_tool_prefix"; then
4663 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668 $as_echo_n "checking for $ac_word... " >&6; }
4669 if ${ac_cv_prog_CXX+:} false; then :
4670 $as_echo_n "(cached) " >&6
4672 if test -n "$CXX"; then
4673 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4682 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 if test -n "$CXX"; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4695 $as_echo "$CXX" >&6; }
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4702 test -n "$CXX" && break
4705 if test -z "$CXX"; then
4707 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4709 # Extract the first word of "$ac_prog", so it can be a program name with args.
4710 set dummy $ac_prog; ac_word=$2
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4712 $as_echo_n "checking for $ac_word... " >&6; }
4713 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4714 $as_echo_n "(cached) " >&6
4716 if test -n "$ac_ct_CXX"; then
4717 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 test -z "$as_dir" && as_dir=.
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4726 ac_cv_prog_ac_ct_CXX="$ac_prog"
4727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4737 if test -n "$ac_ct_CXX"; then
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4739 $as_echo "$ac_ct_CXX" >&6; }
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4746 test -n "$ac_ct_CXX" && break
4749 if test "x$ac_ct_CXX" = x; then
4752 case $cross_compiling:$ac_tool_warned in
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4756 ac_tool_warned=yes ;;
4764 # Provide some information about the compiler.
4765 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4768 for ac_option in --version -v -V -qversion; do
4769 { { ac_try="$ac_compiler $ac_option >&5"
4771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4772 *) ac_try_echo
=$ac_try;;
4774 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4775 $as_echo "$ac_try_echo"; } >&5
4776 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4778 if test -s conftest.err
; then
4780 ... rest of stderr output deleted ...
4781 10q' conftest.err
>conftest.er1
4782 cat conftest.er1
>&5
4784 rm -f conftest.er1 conftest.err
4785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4786 test $ac_status = 0; }
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4790 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4791 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4792 $as_echo_n "(cached) " >&6
4794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4808 if ac_fn_cxx_try_compile
"$LINENO"; then :
4813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4814 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4818 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4819 if test $ac_compiler_gnu = yes; then
4824 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4825 ac_save_CXXFLAGS
=$CXXFLAGS
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4827 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4828 if ${ac_cv_prog_cxx_g+:} false
; then :
4829 $as_echo_n "(cached) " >&6
4831 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4832 ac_cxx_werror_flag
=yes
4835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h. */
4846 if ac_fn_cxx_try_compile
"$LINENO"; then :
4847 ac_cv_prog_cxx_g
=yes
4850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4861 if ac_fn_cxx_try_compile
"$LINENO"; then :
4864 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4877 if ac_fn_cxx_try_compile
"$LINENO"; then :
4878 ac_cv_prog_cxx_g
=yes
4880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4885 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4888 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4889 if test "$ac_test_CXXFLAGS" = set; then
4890 CXXFLAGS
=$ac_save_CXXFLAGS
4891 elif test $ac_cv_prog_cxx_g = yes; then
4892 if test "$GXX" = yes; then
4898 if test "$GXX" = yes; then
4905 ac_cpp
='$CPP $CPPFLAGS'
4906 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4913 if test -n "$ac_tool_prefix"; then
4914 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4915 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if ${ac_cv_prog_GNATBIND+:} false
; then :
4919 $as_echo_n "(cached) " >&6
4921 if test -n "$GNATBIND"; then
4922 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4928 test -z "$as_dir" && as_dir
=.
4929 for ac_exec_ext
in '' $ac_executable_extensions; do
4930 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4931 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 GNATBIND
=$ac_cv_prog_GNATBIND
4942 if test -n "$GNATBIND"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4944 $as_echo "$GNATBIND" >&6; }
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4952 if test -z "$ac_cv_prog_GNATBIND"; then
4953 ac_ct_GNATBIND
=$GNATBIND
4954 # Extract the first word of "gnatbind", so it can be a program name with args.
4955 set dummy gnatbind
; ac_word
=$2
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 $as_echo_n "checking for $ac_word... " >&6; }
4958 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
4959 $as_echo_n "(cached) " >&6
4961 if test -n "$ac_ct_GNATBIND"; then
4962 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4964 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4968 test -z "$as_dir" && as_dir
=.
4969 for ac_exec_ext
in '' $ac_executable_extensions; do
4970 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4971 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4982 if test -n "$ac_ct_GNATBIND"; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4984 $as_echo "$ac_ct_GNATBIND" >&6; }
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4990 if test "x$ac_ct_GNATBIND" = x
; then
4993 case $cross_compiling:$ac_tool_warned in
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4997 ac_tool_warned
=yes ;;
4999 GNATBIND
=$ac_ct_GNATBIND
5002 GNATBIND
="$ac_cv_prog_GNATBIND"
5005 if test -n "$ac_tool_prefix"; then
5006 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5007 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009 $as_echo_n "checking for $ac_word... " >&6; }
5010 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5011 $as_echo_n "(cached) " >&6
5013 if test -n "$GNATMAKE"; then
5014 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5020 test -z "$as_dir" && as_dir
=.
5021 for ac_exec_ext
in '' $ac_executable_extensions; do
5022 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5023 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 GNATMAKE
=$ac_cv_prog_GNATMAKE
5034 if test -n "$GNATMAKE"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5036 $as_echo "$GNATMAKE" >&6; }
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5044 if test -z "$ac_cv_prog_GNATMAKE"; then
5045 ac_ct_GNATMAKE
=$GNATMAKE
5046 # Extract the first word of "gnatmake", so it can be a program name with args.
5047 set dummy gnatmake
; ac_word
=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5051 $as_echo_n "(cached) " >&6
5053 if test -n "$ac_ct_GNATMAKE"; then
5054 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5060 test -z "$as_dir" && as_dir
=.
5061 for ac_exec_ext
in '' $ac_executable_extensions; do
5062 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5074 if test -n "$ac_ct_GNATMAKE"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5076 $as_echo "$ac_ct_GNATMAKE" >&6; }
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5082 if test "x$ac_ct_GNATMAKE" = x
; then
5085 case $cross_compiling:$ac_tool_warned in
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5089 ac_tool_warned
=yes ;;
5091 GNATMAKE
=$ac_ct_GNATMAKE
5094 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5098 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5099 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5100 $as_echo_n "(cached) " >&6
5102 cat >conftest.adb
<<EOF
5103 procedure conftest is begin null; end conftest;
5105 acx_cv_cc_gcc_supports_ada
=no
5106 # There is a bug in old released versions of GCC which causes the
5107 # driver to exit successfully when the appropriate language module
5108 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5109 # Therefore we must check for the error message as well as an
5110 # unsuccessful exit.
5111 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5112 # given a .adb file, but produce no object file. So we must check
5113 # if an object file was really produced to guard against this.
5114 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5115 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5116 acx_cv_cc_gcc_supports_ada
=yes
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5121 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5123 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5130 # Do configure tests with the C++ compiler, since that's what we build with.
5132 ac_cpp
='$CXXCPP $CPPFLAGS'
5133 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5138 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5139 # optimizations to be activated explicitly by the toplevel.
5141 */prev-gcc
/xgcc
*) ;;
5142 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5143 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5148 # Determine PICFLAG for target gnatlib.
5154 # PIC is the default on some targets or must not be used.
5156 # For darwin, common symbols are not allowed in MH_DYLIB files
5158 # If we are using a compiler supporting mdynamic-no-pic
5159 # and the option has been tested as safe to add, then cancel
5160 # it here, since the code generated is incompatible with shared
5162 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5163 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5167 # PIC is the default.
5170 # PIC is the default for 64-bit PA HP-UX.
5172 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5174 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5176 i
[34567]86-*-interix[3-9]*)
5177 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5178 # Instead, we relocate shared libraries at runtime.
5180 i
[34567]86-*-nto-qnx*)
5181 # QNX uses GNU C++, but need to define -shared option too, otherwise
5183 PICFLAG_FOR_TARGET
='-fPIC -shared'
5185 i
[34567]86-pc-msdosdjgpp*)
5186 # DJGPP does not support shared libraries at all.
5189 # On IA64 HP-UX, PIC is the default but the pic flag
5190 # sets the default TLS model and affects inlining.
5191 PICFLAG_FOR_TARGET
=-fPIC
5194 # PIC is the default.
5196 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5197 # All AIX code is PIC.
5200 # Some targets support both -fPIC and -fpic, but prefer the latter.
5202 i
[34567]86-*-* | x86_64-
*-*)
5203 PICFLAG_FOR_TARGET
=-fpic
5205 # FIXME: Override -fPIC default in libgcc only?
5206 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5207 PICFLAG_FOR_TARGET
=-fpic
5209 # FIXME: Simplify to sh*-*-netbsd*?
5210 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5211 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5212 PICFLAG_FOR_TARGET
=-fpic
5214 # Default to -fPIC unless specified otherwise.
5216 PICFLAG_FOR_TARGET
=-fPIC
5220 # If the user explicitly uses -fpic/-fPIC, keep that.
5221 case "${CFLAGS_FOR_TARGET}" in
5223 PICFLAG_FOR_TARGET
=-fpic
5226 PICFLAG_FOR_TARGET
=-fPIC
5232 # -------------------------
5233 # Check C compiler features
5234 # -------------------------
5238 ac_cpp
='$CXXCPP $CPPFLAGS'
5239 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5240 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5241 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5243 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5244 if test -z "$CXXCPP"; then
5245 if ${ac_cv_prog_CXXCPP+:} false
; then :
5246 $as_echo_n "(cached) " >&6
5248 # Double quotes because CXXCPP needs to be expanded
5249 for CXXCPP
in "$CXX -E" "/lib/cpp"
5252 for ac_cxx_preproc_warn_flag
in '' yes
5254 # Use a header file that comes with gcc, so configuring glibc
5255 # with a fresh cross-compiler works.
5256 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5257 # <limits.h> exists even on freestanding compilers.
5258 # On the NeXT, cc -E runs the code through the compiler's parser,
5259 # not just through cpp. "Syntax error" is here to catch this case.
5260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5263 # include <limits.h>
5265 # include <assert.h>
5269 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5272 # Broken: fails on valid input.
5275 rm -f conftest.err conftest.i conftest.
$ac_ext
5277 # OK, works on sane cases. Now check whether nonexistent headers
5278 # can be detected and how.
5279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5281 #include <ac_nonexistent.h>
5283 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5284 # Broken: success on invalid input.
5287 # Passes both tests.
5291 rm -f conftest.err conftest.i conftest.
$ac_ext
5294 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5295 rm -f conftest.i conftest.err conftest.
$ac_ext
5296 if $ac_preproc_ok; then :
5301 ac_cv_prog_CXXCPP
=$CXXCPP
5304 CXXCPP
=$ac_cv_prog_CXXCPP
5306 ac_cv_prog_CXXCPP
=$CXXCPP
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5309 $as_echo "$CXXCPP" >&6; }
5311 for ac_cxx_preproc_warn_flag
in '' yes
5313 # Use a header file that comes with gcc, so configuring glibc
5314 # with a fresh cross-compiler works.
5315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5316 # <limits.h> exists even on freestanding compilers.
5317 # On the NeXT, cc -E runs the code through the compiler's parser,
5318 # not just through cpp. "Syntax error" is here to catch this case.
5319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5322 # include <limits.h>
5324 # include <assert.h>
5328 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5331 # Broken: fails on valid input.
5334 rm -f conftest.err conftest.i conftest.
$ac_ext
5336 # OK, works on sane cases. Now check whether nonexistent headers
5337 # can be detected and how.
5338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h. */
5340 #include <ac_nonexistent.h>
5342 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5343 # Broken: success on invalid input.
5346 # Passes both tests.
5350 rm -f conftest.err conftest.i conftest.
$ac_ext
5353 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5354 rm -f conftest.i conftest.err conftest.
$ac_ext
5355 if $ac_preproc_ok; then :
5358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5360 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5361 See \`config.log' for more details" "$LINENO" 5; }
5365 ac_cpp
='$CXXCPP $CPPFLAGS'
5366 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5367 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5368 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5372 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5373 if ${ac_cv_path_GREP+:} false
; then :
5374 $as_echo_n "(cached) " >&6
5376 if test -z "$GREP"; then
5377 ac_path_GREP_found
=false
5378 # Loop through the user's path and test for each of PROGNAME-LIST
5379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5380 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5383 test -z "$as_dir" && as_dir
=.
5384 for ac_prog
in grep ggrep
; do
5385 for ac_exec_ext
in '' $ac_executable_extensions; do
5386 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5387 as_fn_executable_p
"$ac_path_GREP" ||
continue
5388 # Check for GNU ac_path_GREP and select it if it is found.
5389 # Check for GNU $ac_path_GREP
5390 case `"$ac_path_GREP" --version 2>&1` in
5392 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5395 $as_echo_n 0123456789 >"conftest.in"
5398 cat "conftest.in" "conftest.in" >"conftest.tmp"
5399 mv "conftest.tmp" "conftest.in"
5400 cp "conftest.in" "conftest.nl"
5401 $as_echo 'GREP' >> "conftest.nl"
5402 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5403 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5404 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5405 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5406 # Best one so far, save it but keep looking for a better one
5407 ac_cv_path_GREP
="$ac_path_GREP"
5408 ac_path_GREP_max
=$ac_count
5410 # 10*(2^10) chars as input seems more than enough
5411 test $ac_count -gt 10 && break
5413 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5416 $ac_path_GREP_found && break 3
5421 if test -z "$ac_cv_path_GREP"; then
5422 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5425 ac_cv_path_GREP
=$GREP
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5430 $as_echo "$ac_cv_path_GREP" >&6; }
5431 GREP
="$ac_cv_path_GREP"
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5435 $as_echo_n "checking for egrep... " >&6; }
5436 if ${ac_cv_path_EGREP+:} false
; then :
5437 $as_echo_n "(cached) " >&6
5439 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5440 then ac_cv_path_EGREP
="$GREP -E"
5442 if test -z "$EGREP"; then
5443 ac_path_EGREP_found
=false
5444 # Loop through the user's path and test for each of PROGNAME-LIST
5445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5446 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5449 test -z "$as_dir" && as_dir
=.
5450 for ac_prog
in egrep; do
5451 for ac_exec_ext
in '' $ac_executable_extensions; do
5452 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5453 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5454 # Check for GNU ac_path_EGREP and select it if it is found.
5455 # Check for GNU $ac_path_EGREP
5456 case `"$ac_path_EGREP" --version 2>&1` in
5458 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5461 $as_echo_n 0123456789 >"conftest.in"
5464 cat "conftest.in" "conftest.in" >"conftest.tmp"
5465 mv "conftest.tmp" "conftest.in"
5466 cp "conftest.in" "conftest.nl"
5467 $as_echo 'EGREP' >> "conftest.nl"
5468 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5469 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5470 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5471 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5472 # Best one so far, save it but keep looking for a better one
5473 ac_cv_path_EGREP
="$ac_path_EGREP"
5474 ac_path_EGREP_max
=$ac_count
5476 # 10*(2^10) chars as input seems more than enough
5477 test $ac_count -gt 10 && break
5479 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5482 $ac_path_EGREP_found && break 3
5487 if test -z "$ac_cv_path_EGREP"; then
5488 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5491 ac_cv_path_EGREP
=$EGREP
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5497 $as_echo "$ac_cv_path_EGREP" >&6; }
5498 EGREP
="$ac_cv_path_EGREP"
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5502 $as_echo_n "checking for ANSI C header files... " >&6; }
5503 if ${ac_cv_header_stdc+:} false
; then :
5504 $as_echo_n "(cached) " >&6
5506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5521 if ac_fn_cxx_try_compile
"$LINENO"; then :
5522 ac_cv_header_stdc
=yes
5524 ac_cv_header_stdc
=no
5526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5528 if test $ac_cv_header_stdc = yes; then
5529 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h. */
5535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5536 $EGREP "memchr" >/dev
/null
2>&1; then :
5539 ac_cv_header_stdc
=no
5545 if test $ac_cv_header_stdc = yes; then
5546 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5553 $EGREP "free" >/dev
/null
2>&1; then :
5556 ac_cv_header_stdc
=no
5562 if test $ac_cv_header_stdc = yes; then
5563 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5564 if test "$cross_compiling" = yes; then :
5567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5571 #if ((' ' & 0x0FF) == 0x020)
5572 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5573 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5575 # define ISLOWER(c) \
5576 (('a' <= (c) && (c) <= 'i') \
5577 || ('j' <= (c) && (c) <= 'r') \
5578 || ('s' <= (c) && (c) <= 'z'))
5579 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5582 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5587 for (i = 0; i < 256; i++)
5588 if (XOR (islower (i), ISLOWER (i))
5589 || toupper (i) != TOUPPER (i))
5594 if ac_fn_cxx_try_run
"$LINENO"; then :
5597 ac_cv_header_stdc
=no
5599 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5600 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5606 $as_echo "$ac_cv_header_stdc" >&6; }
5607 if test $ac_cv_header_stdc = yes; then
5609 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5613 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5614 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5615 inttypes.h stdint.h unistd.h
5617 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5618 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5620 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5621 cat >>confdefs.h
<<_ACEOF
5622 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5631 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5632 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5639 if test "$MINIX" = yes; then
5641 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5644 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5647 $as_echo "#define _MINIX 1" >>confdefs.h
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5653 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5654 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5655 $as_echo_n "(cached) " >&6
5657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5660 # define __EXTENSIONS__ 1
5661 $ac_includes_default
5670 if ac_fn_cxx_try_compile
"$LINENO"; then :
5671 ac_cv_safe_to_define___extensions__
=yes
5673 ac_cv_safe_to_define___extensions__
=no
5675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5678 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5679 test $ac_cv_safe_to_define___extensions__ = yes &&
5680 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5682 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5684 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5686 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5688 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5692 ac_cpp
='$CPP $CPPFLAGS'
5693 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5694 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5695 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5697 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5698 # On Suns, sometimes $CPP names a directory.
5699 if test -n "$CPP" && test -d "$CPP"; then
5702 if test -z "$CPP"; then
5703 if ${ac_cv_prog_CPP+:} false
; then :
5704 $as_echo_n "(cached) " >&6
5706 # Double quotes because CPP needs to be expanded
5707 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5710 for ac_c_preproc_warn_flag
in '' yes
5712 # Use a header file that comes with gcc, so configuring glibc
5713 # with a fresh cross-compiler works.
5714 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5715 # <limits.h> exists even on freestanding compilers.
5716 # On the NeXT, cc -E runs the code through the compiler's parser,
5717 # not just through cpp. "Syntax error" is here to catch this case.
5718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h. */
5721 # include <limits.h>
5723 # include <assert.h>
5727 if ac_fn_c_try_cpp
"$LINENO"; then :
5730 # Broken: fails on valid input.
5733 rm -f conftest.err conftest.i conftest.
$ac_ext
5735 # OK, works on sane cases. Now check whether nonexistent headers
5736 # can be detected and how.
5737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5738 /* end confdefs.h. */
5739 #include <ac_nonexistent.h>
5741 if ac_fn_c_try_cpp
"$LINENO"; then :
5742 # Broken: success on invalid input.
5745 # Passes both tests.
5749 rm -f conftest.err conftest.i conftest.
$ac_ext
5752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5753 rm -f conftest.i conftest.err conftest.
$ac_ext
5754 if $ac_preproc_ok; then :
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5767 $as_echo "$CPP" >&6; }
5769 for ac_c_preproc_warn_flag
in '' yes
5771 # Use a header file that comes with gcc, so configuring glibc
5772 # with a fresh cross-compiler works.
5773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5774 # <limits.h> exists even on freestanding compilers.
5775 # On the NeXT, cc -E runs the code through the compiler's parser,
5776 # not just through cpp. "Syntax error" is here to catch this case.
5777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5780 # include <limits.h>
5782 # include <assert.h>
5786 if ac_fn_c_try_cpp
"$LINENO"; then :
5789 # Broken: fails on valid input.
5792 rm -f conftest.err conftest.i conftest.
$ac_ext
5794 # OK, works on sane cases. Now check whether nonexistent headers
5795 # can be detected and how.
5796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5797 /* end confdefs.h. */
5798 #include <ac_nonexistent.h>
5800 if ac_fn_c_try_cpp
"$LINENO"; then :
5801 # Broken: success on invalid input.
5804 # Passes both tests.
5808 rm -f conftest.err conftest.i conftest.
$ac_ext
5811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5812 rm -f conftest.i conftest.err conftest.
$ac_ext
5813 if $ac_preproc_ok; then :
5816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5818 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5819 See \`config.log' for more details" "$LINENO" 5; }
5823 ac_cpp
='$CXXCPP $CPPFLAGS'
5824 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5825 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5826 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5829 $as_echo_n "checking for inline... " >&6; }
5830 if ${ac_cv_c_inline+:} false
; then :
5831 $as_echo_n "(cached) " >&6
5834 for ac_kw
in inline __inline__ __inline
; do
5835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5839 static $ac_kw foo_t static_foo () {return 0; }
5840 $ac_kw foo_t foo () {return 0; }
5844 if ac_fn_cxx_try_compile
"$LINENO"; then :
5845 ac_cv_c_inline
=$ac_kw
5847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5848 test "$ac_cv_c_inline" != no
&& break
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5853 $as_echo "$ac_cv_c_inline" >&6; }
5855 case $ac_cv_c_inline in
5858 case $ac_cv_c_inline in
5860 *) ac_val
=$ac_cv_c_inline;;
5862 cat >>confdefs.h
<<_ACEOF
5864 #define inline $ac_val
5871 # Check whether --enable-largefile was given.
5872 if test "${enable_largefile+set}" = set; then :
5873 enableval
=$enable_largefile;
5876 if test "$enable_largefile" != no
; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5879 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5880 if ${ac_cv_sys_largefile_CC+:} false
; then :
5881 $as_echo_n "(cached) " >&6
5883 ac_cv_sys_largefile_CC
=no
5884 if test "$GCC" != yes; then
5887 # IRIX 6.2 and later do not support large files by default,
5888 # so use the C compiler's -n32 option if that helps.
5889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5891 #include <sys/types.h>
5892 /* Check that off_t can represent 2**63 - 1 correctly.
5893 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5894 since some C++ compilers masquerading as C compilers
5895 incorrectly reject 9223372036854775807. */
5896 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5897 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5898 && LARGE_OFF_T % 2147483647 == 1)
5908 if ac_fn_cxx_try_compile
"$LINENO"; then :
5911 rm -f core conftest.err conftest.
$ac_objext
5913 if ac_fn_cxx_try_compile
"$LINENO"; then :
5914 ac_cv_sys_largefile_CC
=' -n32'; break
5916 rm -f core conftest.err conftest.
$ac_objext
5920 rm -f conftest.
$ac_ext
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5924 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5925 if test "$ac_cv_sys_largefile_CC" != no
; then
5926 CC
=$CC$ac_cv_sys_largefile_CC
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5930 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5931 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5932 $as_echo_n "(cached) " >&6
5935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5937 #include <sys/types.h>
5938 /* Check that off_t can represent 2**63 - 1 correctly.
5939 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5940 since some C++ compilers masquerading as C compilers
5941 incorrectly reject 9223372036854775807. */
5942 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5943 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5944 && LARGE_OFF_T % 2147483647 == 1)
5954 if ac_fn_cxx_try_compile
"$LINENO"; then :
5955 ac_cv_sys_file_offset_bits
=no
; break
5957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5960 #define _FILE_OFFSET_BITS 64
5961 #include <sys/types.h>
5962 /* Check that off_t can represent 2**63 - 1 correctly.
5963 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5964 since some C++ compilers masquerading as C compilers
5965 incorrectly reject 9223372036854775807. */
5966 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5967 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5968 && LARGE_OFF_T % 2147483647 == 1)
5978 if ac_fn_cxx_try_compile
"$LINENO"; then :
5979 ac_cv_sys_file_offset_bits
=64; break
5981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5982 ac_cv_sys_file_offset_bits
=unknown
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5987 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5988 case $ac_cv_sys_file_offset_bits in #(
5991 cat >>confdefs.h
<<_ACEOF
5992 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5997 if test $ac_cv_sys_file_offset_bits = unknown
; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5999 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6000 if ${ac_cv_sys_large_files+:} false
; then :
6001 $as_echo_n "(cached) " >&6
6004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6005 /* end confdefs.h. */
6006 #include <sys/types.h>
6007 /* Check that off_t can represent 2**63 - 1 correctly.
6008 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6009 since some C++ compilers masquerading as C compilers
6010 incorrectly reject 9223372036854775807. */
6011 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6012 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6013 && LARGE_OFF_T % 2147483647 == 1)
6023 if ac_fn_cxx_try_compile
"$LINENO"; then :
6024 ac_cv_sys_large_files
=no
; break
6026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6029 #define _LARGE_FILES 1
6030 #include <sys/types.h>
6031 /* Check that off_t can represent 2**63 - 1 correctly.
6032 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6033 since some C++ compilers masquerading as C compilers
6034 incorrectly reject 9223372036854775807. */
6035 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6036 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6037 && LARGE_OFF_T % 2147483647 == 1)
6047 if ac_fn_cxx_try_compile
"$LINENO"; then :
6048 ac_cv_sys_large_files
=1; break
6050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6051 ac_cv_sys_large_files
=unknown
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6056 $as_echo "$ac_cv_sys_large_files" >&6; }
6057 case $ac_cv_sys_large_files in #(
6060 cat >>confdefs.h
<<_ACEOF
6061 #define _LARGE_FILES $ac_cv_sys_large_files
6072 # sizeof(char) is 1 by definition.
6073 # The cast to long int works around a bug in the HP C Compiler
6074 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6075 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6076 # This bug is HP SR number 8606223364.
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6078 $as_echo_n "checking size of void *... " >&6; }
6079 if ${ac_cv_sizeof_void_p+:} false
; then :
6080 $as_echo_n "(cached) " >&6
6082 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6085 if test "$ac_cv_type_void_p" = yes; then
6086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6088 as_fn_error
77 "cannot compute sizeof (void *)
6089 See \`config.log' for more details" "$LINENO" 5; }
6091 ac_cv_sizeof_void_p
=0
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6097 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6101 cat >>confdefs.h
<<_ACEOF
6102 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6106 # The cast to long int works around a bug in the HP C Compiler
6107 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6108 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6109 # This bug is HP SR number 8606223364.
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6111 $as_echo_n "checking size of short... " >&6; }
6112 if ${ac_cv_sizeof_short+:} false
; then :
6113 $as_echo_n "(cached) " >&6
6115 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6118 if test "$ac_cv_type_short" = yes; then
6119 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6121 as_fn_error
77 "cannot compute sizeof (short)
6122 See \`config.log' for more details" "$LINENO" 5; }
6124 ac_cv_sizeof_short
=0
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6130 $as_echo "$ac_cv_sizeof_short" >&6; }
6134 cat >>confdefs.h
<<_ACEOF
6135 #define SIZEOF_SHORT $ac_cv_sizeof_short
6139 # The cast to long int works around a bug in the HP C Compiler
6140 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6141 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6142 # This bug is HP SR number 8606223364.
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6144 $as_echo_n "checking size of int... " >&6; }
6145 if ${ac_cv_sizeof_int+:} false
; then :
6146 $as_echo_n "(cached) " >&6
6148 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6151 if test "$ac_cv_type_int" = yes; then
6152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6154 as_fn_error
77 "cannot compute sizeof (int)
6155 See \`config.log' for more details" "$LINENO" 5; }
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6163 $as_echo "$ac_cv_sizeof_int" >&6; }
6167 cat >>confdefs.h
<<_ACEOF
6168 #define SIZEOF_INT $ac_cv_sizeof_int
6172 # The cast to long int works around a bug in the HP C Compiler
6173 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6174 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6175 # This bug is HP SR number 8606223364.
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6177 $as_echo_n "checking size of long... " >&6; }
6178 if ${ac_cv_sizeof_long+:} false
; then :
6179 $as_echo_n "(cached) " >&6
6181 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6184 if test "$ac_cv_type_long" = yes; then
6185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6187 as_fn_error
77 "cannot compute sizeof (long)
6188 See \`config.log' for more details" "$LINENO" 5; }
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6196 $as_echo "$ac_cv_sizeof_long" >&6; }
6200 cat >>confdefs.h
<<_ACEOF
6201 #define SIZEOF_LONG $ac_cv_sizeof_long
6205 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6206 if test "x$ac_cv_type_long_long" = xyes
; then :
6208 cat >>confdefs.h
<<_ACEOF
6209 #define HAVE_LONG_LONG 1
6212 # The cast to long int works around a bug in the HP C Compiler
6213 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6214 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6215 # This bug is HP SR number 8606223364.
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6217 $as_echo_n "checking size of long long... " >&6; }
6218 if ${ac_cv_sizeof_long_long+:} false
; then :
6219 $as_echo_n "(cached) " >&6
6221 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6224 if test "$ac_cv_type_long_long" = yes; then
6225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6227 as_fn_error
77 "cannot compute sizeof (long long)
6228 See \`config.log' for more details" "$LINENO" 5; }
6230 ac_cv_sizeof_long_long
=0
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6236 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6240 cat >>confdefs.h
<<_ACEOF
6241 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6247 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6248 case $ac_cv_c_int8_t in #(
6252 cat >>confdefs.h
<<_ACEOF
6253 #define int8_t $ac_cv_c_int8_t
6258 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6259 case $ac_cv_c_int16_t in #(
6263 cat >>confdefs.h
<<_ACEOF
6264 #define int16_t $ac_cv_c_int16_t
6269 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6270 case $ac_cv_c_int32_t in #(
6274 cat >>confdefs.h
<<_ACEOF
6275 #define int32_t $ac_cv_c_int32_t
6280 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6281 case $ac_cv_c_int64_t in #(
6285 cat >>confdefs.h
<<_ACEOF
6286 #define int64_t $ac_cv_c_int64_t
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6293 $as_echo_n "checking for unsigned long long int... " >&6; }
6294 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6295 $as_echo_n "(cached) " >&6
6297 ac_cv_type_unsigned_long_long_int
=yes
6298 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6302 /* For now, do not test the preprocessor; as of 2007 there are too many
6303 implementations with broken preprocessors. Perhaps this can
6304 be revisited in 2012. In the meantime, code should not expect
6305 #if to work with literals wider than 32 bits. */
6306 /* Test literals. */
6307 long long int ll = 9223372036854775807ll;
6308 long long int nll = -9223372036854775807LL;
6309 unsigned long long int ull = 18446744073709551615ULL;
6310 /* Test constant expressions. */
6311 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6313 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6319 /* Test availability of runtime routines for shift and division. */
6320 long long int llmax = 9223372036854775807ll;
6321 unsigned long long int ullmax = 18446744073709551615ull;
6322 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6323 | (llmax / ll) | (llmax % ll)
6324 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6325 | (ullmax / ull) | (ullmax % ull));
6331 if ac_fn_cxx_try_link
"$LINENO"; then :
6334 ac_cv_type_unsigned_long_long_int
=no
6336 rm -f core conftest.err conftest.
$ac_objext \
6337 conftest
$ac_exeext conftest.
$ac_ext
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6341 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6342 if test $ac_cv_type_unsigned_long_long_int = yes; then
6344 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6351 $as_echo_n "checking for long long int... " >&6; }
6352 if ${ac_cv_type_long_long_int+:} false
; then :
6353 $as_echo_n "(cached) " >&6
6355 ac_cv_type_long_long_int
=yes
6356 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6357 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6358 if test $ac_cv_type_long_long_int = yes; then
6359 if test "$cross_compiling" = yes; then :
6362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h. */
6367 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6368 # define LLONG_MAX (HALF - 1 + HALF)
6373 long long int n = 1;
6377 long long int m = n << i;
6380 if (LLONG_MAX / 2 < m)
6388 if ac_fn_cxx_try_run
"$LINENO"; then :
6391 ac_cv_type_long_long_int
=no
6393 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6394 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6401 $as_echo "$ac_cv_type_long_long_int" >&6; }
6402 if test $ac_cv_type_long_long_int = yes; then
6404 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6410 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6411 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6413 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6416 test $ac_cv_type_long_long_int = yes \
6417 && ac_type
='long long int' \
6418 || ac_type
='long int'
6420 cat >>confdefs.h
<<_ACEOF
6421 #define intmax_t $ac_type
6428 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6429 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6431 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6434 for ac_type
in 'int' 'long int' '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))];
6443 return test_array [0];
6449 if ac_fn_cxx_try_compile
"$LINENO"; then :
6451 cat >>confdefs.h
<<_ACEOF
6452 #define intptr_t $ac_type
6457 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6458 test -z "$ac_type" && break
6463 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6464 case $ac_cv_c_uint8_t in #(
6468 $as_echo "#define _UINT8_T 1" >>confdefs.h
6471 cat >>confdefs.h
<<_ACEOF
6472 #define uint8_t $ac_cv_c_uint8_t
6477 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6478 case $ac_cv_c_uint16_t in #(
6483 cat >>confdefs.h
<<_ACEOF
6484 #define uint16_t $ac_cv_c_uint16_t
6489 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6490 case $ac_cv_c_uint32_t in #(
6494 $as_echo "#define _UINT32_T 1" >>confdefs.h
6497 cat >>confdefs.h
<<_ACEOF
6498 #define uint32_t $ac_cv_c_uint32_t
6503 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6504 case $ac_cv_c_uint64_t in #(
6508 $as_echo "#define _UINT64_T 1" >>confdefs.h
6511 cat >>confdefs.h
<<_ACEOF
6512 #define uint64_t $ac_cv_c_uint64_t
6519 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6520 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6522 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6525 test $ac_cv_type_unsigned_long_long_int = yes \
6526 && ac_type
='unsigned long long int' \
6527 || ac_type
='unsigned long int'
6529 cat >>confdefs.h
<<_ACEOF
6530 #define uintmax_t $ac_type
6537 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6538 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6540 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6543 for ac_type
in 'unsigned int' 'unsigned long int' \
6544 'unsigned long long int'; do
6545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6547 $ac_includes_default
6551 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6553 return test_array [0];
6559 if ac_fn_cxx_try_compile
"$LINENO"; then :
6561 cat >>confdefs.h
<<_ACEOF
6562 #define uintptr_t $ac_type
6567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6568 test -z "$ac_type" && break
6585 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6586 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
6589 # check what underlying integer type int64_t uses
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6591 $as_echo_n "checking for int64_t underlying type... " >&6; }
6592 if ${ac_cv_int64_t_type+:} false
; then :
6593 $as_echo_n "(cached) " >&6
6596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6599 #ifdef HAVE_STDINT_H
6602 template <typename T> struct X { };
6604 struct X<long> { typedef long t; };
6614 if ac_fn_cxx_try_compile
"$LINENO"; then :
6615 ac_cv_int64_t_type
=long
6617 ac_cv_int64_t_type
="long long"
6619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6622 $as_echo "$ac_cv_int64_t_type" >&6; }
6623 if test "$ac_cv_int64_t_type" = "long"; then
6625 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h. */
6631 #ifdef HAVE_STDINT_H
6634 template <typename T> struct X { };
6636 struct X<long long> { typedef long long t; };
6646 if ac_fn_cxx_try_compile
"$LINENO"; then :
6649 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
6651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6655 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6656 if ${ac_cv_std_swap_in_utility+:} false
; then :
6657 $as_echo_n "(cached) " >&6
6660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6668 int a, b; std::swap(a,b);
6673 if ac_fn_cxx_try_compile
"$LINENO"; then :
6674 ac_cv_std_swap_in_utility
=yes
6676 ac_cv_std_swap_in_utility
=no
6678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6681 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6682 if test $ac_cv_std_swap_in_utility = yes; then
6684 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6688 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6689 # If the host compiler is affected by the bug, and we build with optimization
6690 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6691 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6692 # Since there is no reliable feature check for the presence of this bug,
6693 # we simply use a GCC version number check. (This should never trigger for
6694 # stages 2 or 3 of a native bootstrap.)
6696 if test "$GCC" = yes; then
6697 saved_CXXFLAGS
="$CXXFLAGS"
6699 # The following test compilation will succeed if and only if $CXX accepts
6700 # -fno-strict-aliasing *and* is older than GCC 4.3.
6701 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6703 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6707 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6708 #error compiler not affected by placement new aliasing bug
6712 if ac_fn_cxx_try_compile
"$LINENO"; then :
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6714 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717 $as_echo "no" >&6; }
6719 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6721 CXXFLAGS
="$saved_CXXFLAGS"
6727 # ---------------------
6728 # Warnings and checking
6729 # ---------------------
6731 # Check $CC warning features (if it's GCC).
6732 # We want to use -pedantic, but we don't want warnings about
6735 # * overlong strings
6736 # * C++11 narrowing conversions in { }
6737 # So, we only use -pedantic if we can disable those warnings.
6739 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6740 # Check whether --enable-build-format-warnings was given.
6741 if test "${enable_build_format_warnings+set}" = set; then :
6742 enableval
=$enable_build_format_warnings;
6744 enable_build_format_warnings
=yes
6747 if test $enable_build_format_warnings = no
; then :
6753 ac_cpp
='$CXXCPP $CPPFLAGS'
6754 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6755 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6756 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6759 save_CXXFLAGS
="$CXXFLAGS"
6760 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag
$wf_opt; do
6761 # Do the check with the no- prefix removed since gcc silently
6762 # accepts any -Wno-* option on purpose
6763 case $real_option in
6764 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6765 *) option
=$real_option ;;
6767 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6770 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6771 if eval \
${$as_acx_Woption+:} false
; then :
6772 $as_echo_n "(cached) " >&6
6775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6786 if ac_fn_cxx_try_compile
"$LINENO"; then :
6787 eval "$as_acx_Woption=yes"
6789 eval "$as_acx_Woption=no"
6791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6794 eval ac_res
=\$
$as_acx_Woption
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6796 $as_echo "$ac_res" >&6; }
6797 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6798 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6801 CXXFLAGS
="$save_CXXFLAGS"
6803 ac_cpp
='$CXXCPP $CPPFLAGS'
6804 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6805 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6806 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6811 ac_cpp
='$CPP $CPPFLAGS'
6812 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6813 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6814 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6817 save_CFLAGS
="$CFLAGS"
6818 for real_option
in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag
; do
6819 # Do the check with the no- prefix removed since gcc silently
6820 # accepts any -Wno-* option on purpose
6821 case $real_option in
6822 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6823 *) option
=$real_option ;;
6825 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6828 $as_echo_n "checking whether $CC supports $option... " >&6; }
6829 if eval \
${$as_acx_Woption+:} false
; then :
6830 $as_echo_n "(cached) " >&6
6833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6844 if ac_fn_c_try_compile
"$LINENO"; then :
6845 eval "$as_acx_Woption=yes"
6847 eval "$as_acx_Woption=no"
6849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6852 eval ac_res
=\$
$as_acx_Woption
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6854 $as_echo "$ac_res" >&6; }
6855 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6856 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6859 CFLAGS
="$save_CFLAGS"
6861 ac_cpp
='$CXXCPP $CPPFLAGS'
6862 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6863 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6864 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6868 ac_cpp
='$CXXCPP $CPPFLAGS'
6869 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6870 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6871 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6874 save_CXXFLAGS
="$CXXFLAGS"
6875 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
6876 # Do the check with the no- prefix removed since gcc silently
6877 # accepts any -Wno-* option on purpose
6878 case $real_option in
6879 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6880 *) option
=$real_option ;;
6882 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6885 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6886 if eval \
${$as_acx_Woption+:} false
; then :
6887 $as_echo_n "(cached) " >&6
6890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6901 if ac_fn_cxx_try_compile
"$LINENO"; then :
6902 eval "$as_acx_Woption=yes"
6904 eval "$as_acx_Woption=no"
6906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6909 eval ac_res
=\$
$as_acx_Woption
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6911 $as_echo "$ac_res" >&6; }
6912 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6913 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6916 CXXFLAGS
="$save_CXXFLAGS"
6918 ac_cpp
='$CXXCPP $CPPFLAGS'
6919 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6920 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6921 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6925 ac_cpp
='$CPP $CPPFLAGS'
6926 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6927 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6928 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6931 save_CFLAGS
="$CFLAGS"
6932 for real_option
in -Wold-style-definition -Wc++-compat; do
6933 # Do the check with the no- prefix removed since gcc silently
6934 # accepts any -Wno-* option on purpose
6935 case $real_option in
6936 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6937 *) option
=$real_option ;;
6939 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6942 $as_echo_n "checking whether $CC supports $option... " >&6; }
6943 if eval \
${$as_acx_Woption+:} false
; then :
6944 $as_echo_n "(cached) " >&6
6947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6958 if ac_fn_c_try_compile
"$LINENO"; then :
6959 eval "$as_acx_Woption=yes"
6961 eval "$as_acx_Woption=no"
6963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6966 eval ac_res
=\$
$as_acx_Woption
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6968 $as_echo "$ac_res" >&6; }
6969 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6970 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6973 CFLAGS
="$save_CFLAGS"
6975 ac_cpp
='$CXXCPP $CPPFLAGS'
6976 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6977 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6978 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6982 ac_cpp
='$CXXCPP $CPPFLAGS'
6983 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6984 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6985 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6987 # Do the check with the no- prefix removed from the warning options
6988 # since gcc silently accepts any -Wno-* option on purpose
6989 if test "$GXX" = yes; then :
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6991 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6992 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
6993 $as_echo_n "(cached) " >&6
6995 save_CXXFLAGS
="$CXXFLAGS"
6996 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
7008 if ac_fn_cxx_try_compile
"$LINENO"; then :
7009 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
7011 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
7013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7014 CXXFLAGS
="$save_CXXFLAGS"
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7017 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7018 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7019 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7024 ac_cpp
='$CXXCPP $CPPFLAGS'
7025 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7026 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7027 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7031 ac_cpp
='$CXXCPP $CPPFLAGS'
7032 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7033 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7034 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7036 # Check whether --enable-werror-always was given.
7037 if test "${enable_werror_always+set}" = set; then :
7038 enableval
=$enable_werror_always;
7040 enable_werror_always
=no
7043 if test $enable_werror_always = yes; then :
7044 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7048 ac_cpp
='$CXXCPP $CPPFLAGS'
7049 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7050 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7051 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7055 # The above macros do nothing if the compiler is not GCC. However, the
7056 # Makefile has more goo to add other flags, so these variables are used
7057 # to enable warnings only for GCC.
7060 if test "x$GCC" = "xyes"; then
7061 warn_cflags
='$(GCC_WARN_CFLAGS)'
7062 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7067 # Disable exceptions and RTTI if building with g++
7069 ac_cpp
='$CPP $CPPFLAGS'
7070 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7071 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7072 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7075 save_CFLAGS
="$CFLAGS"
7076 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7077 # Do the check with the no- prefix removed since gcc silently
7078 # accepts any -Wno-* option on purpose
7079 case $real_option in
7080 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7081 *) option
=$real_option ;;
7083 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7086 $as_echo_n "checking whether $CC supports $option... " >&6; }
7087 if eval \
${$as_acx_Woption+:} false
; then :
7088 $as_echo_n "(cached) " >&6
7091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7102 if ac_fn_c_try_compile
"$LINENO"; then :
7103 eval "$as_acx_Woption=yes"
7105 eval "$as_acx_Woption=no"
7107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7110 eval ac_res
=\$
$as_acx_Woption
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7112 $as_echo "$ac_res" >&6; }
7113 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7114 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7117 CFLAGS
="$save_CFLAGS"
7119 ac_cpp
='$CXXCPP $CPPFLAGS'
7120 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7121 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7122 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7126 # Enable expensive internal checks
7128 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7132 # Check whether --enable-checking was given.
7133 if test "${enable_checking+set}" = set; then :
7134 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7137 # Determine the default checks.
7138 if test x
$is_release = x
; then
7139 ac_checking_flags
=yes,extra
7141 ac_checking_flags
=release
7145 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7146 for check
in release
$ac_checking_flags
7149 # these set all the flags to specific states
7150 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7151 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7152 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7153 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7154 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7155 ac_types_checking
=1 ;;
7156 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7157 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7158 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7159 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7160 ac_tree_checking
= ; ac_valgrind_checking
= ;
7161 ac_types_checking
= ;;
7162 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7163 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7164 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7165 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7166 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7167 ac_types_checking
=1 ;;
7168 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7169 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7170 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7171 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7172 ac_tree_checking
= ; ac_valgrind_checking
= ;
7173 ac_types_checking
= ;;
7174 # these enable particular checks
7175 assert
) ac_assert_checking
=1 ;;
7176 df
) ac_df_checking
=1 ;;
7177 extra
) ac_extra_checking
=1 ;;
7178 fold) ac_fold_checking
=1 ;;
7179 gc
) ac_gc_checking
=1 ;;
7180 gcac
) ac_gc_always_collect
=1 ;;
7181 gimple
) ac_gimple_checking
=1 ;;
7182 misc
) ac_checking
=1 ;;
7183 rtl
) ac_rtl_checking
=1 ;;
7184 rtlflag
) ac_rtlflag_checking
=1 ;;
7185 runtime
) ac_runtime_checking
=1 ;;
7186 tree
) ac_tree_checking
=1 ;;
7187 types
) ac_types_checking
=1 ;;
7188 valgrind
) ac_valgrind_checking
=1 ;;
7189 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7195 if test x
$ac_checking != x
; then
7197 $as_echo "#define CHECKING_P 1" >>confdefs.h
7199 nocommon_flag
=-fno-common
7201 $as_echo "#define CHECKING_P 0" >>confdefs.h
7205 if test x
$ac_extra_checking != x
; then
7207 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7210 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7213 if test x
$ac_df_checking != x
; then
7215 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7218 if test x
$ac_assert_checking != x
; then
7220 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7223 if test x
$ac_gimple_checking != x
; then
7225 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7229 if test x
$ac_runtime_checking != x
; then
7231 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7234 if test x
$ac_tree_checking != x
; then
7236 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7240 if test x
$ac_types_checking != x
; then
7242 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7246 if test x
$ac_rtl_checking != x
; then
7248 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7251 if test x
$ac_rtlflag_checking != x
; then
7253 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7256 if test x
$ac_gc_checking != x
; then
7258 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7261 if test x
$ac_gc_always_collect != x
; then
7263 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7266 if test x
$ac_fold_checking != x
; then
7268 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7271 valgrind_path_defines
=
7274 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7275 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
7283 # It is certainly possible that there's valgrind but no valgrind.h.
7284 # GCC relies on making annotations so we must have both.
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7286 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7288 /* end confdefs.h. */
7289 #include <valgrind/memcheck.h>
7290 #ifndef VALGRIND_DISCARD
7291 #error VALGRIND_DISCARD not defined
7294 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7295 gcc_cv_header_valgrind_memcheck_h
=yes
7297 gcc_cv_header_valgrind_memcheck_h
=no
7299 rm -f conftest.err conftest.i conftest.
$ac_ext
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7301 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7303 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7306 #include <memcheck.h>
7307 #ifndef VALGRIND_DISCARD
7308 #error VALGRIND_DISCARD not defined
7311 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7312 gcc_cv_header_memcheck_h
=yes
7314 gcc_cv_header_memcheck_h
=no
7316 rm -f conftest.err conftest.i conftest.
$ac_ext
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7318 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7319 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7321 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7324 if test $gcc_cv_header_memcheck_h = yes; then
7326 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7330 if test x
$ac_valgrind_checking != x
; then
7332 # Prepare PATH_SEPARATOR.
7333 # The user is always right.
7334 if test "${PATH_SEPARATOR+set}" != set; then
7335 echo "#! /bin/sh" >conf$$.sh
7336 echo "exit 0" >>conf$$.sh
7338 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7346 # Find out how to test for executable files. Don't use a zero-byte file,
7347 # as systems may use methods other than mode bits to determine executability.
7348 cat >conf$$.
file <<_ASEOF
7352 chmod +x conf$$.
file
7353 if test -x conf$$.
file >/dev
/null
2>&1; then
7354 ac_executable_p
="test -x"
7356 ac_executable_p
="test -f"
7360 # Extract the first word of "valgrind", so it can be a program name with args.
7361 set dummy valgrind
; ac_word
=$2
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363 $as_echo_n "checking for $ac_word... " >&6; }
7364 if ${ac_cv_path_valgrind_path+:} false
; then :
7365 $as_echo_n "(cached) " >&6
7367 case "$valgrind_path" in
7369 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7372 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7373 for ac_dir
in $PATH; do
7375 test -z "$ac_dir" && ac_dir
=.
7376 for ac_exec_ext
in '' $ac_executable_extensions; do
7377 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7378 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7379 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7389 valgrind_path
="$ac_cv_path_valgrind_path"
7390 if test -n "$valgrind_path"; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7392 $as_echo "$valgrind_path" >&6; }
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395 $as_echo "no" >&6; }
7398 if test "x$valgrind_path" = "x" \
7399 ||
(test $have_valgrind_h = no \
7400 && test $gcc_cv_header_memcheck_h = no \
7401 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7402 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7404 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7405 valgrind_command
="$valgrind_path -q"
7407 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7413 # Enable code coverage collection
7414 # Check whether --enable-coverage was given.
7415 if test "${enable_coverage+set}" = set; then :
7416 enableval
=$enable_coverage; case "${enableval}" in
7418 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7421 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7424 # a.k.a. --disable-coverage
7428 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7437 # Check whether --enable-gather-detailed-mem-stats was given.
7438 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7439 enableval
=$enable_gather_detailed_mem_stats;
7441 enable_gather_detailed_mem_stats
=no
7444 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7446 cat >>confdefs.h
<<_ACEOF
7447 #define GATHER_STATISTICS $gather_stats
7451 # Check whether --enable-valgrind-annotations was given.
7452 if test "${enable_valgrind_annotations+set}" = set; then :
7453 enableval
=$enable_valgrind_annotations;
7455 enable_valgrind_annotations
=no
7458 if test x
$enable_valgrind_annotations != xno \
7459 ||
test x
$ac_valgrind_checking != x
; then
7460 if (test $have_valgrind_h = no \
7461 && test $gcc_cv_header_memcheck_h = no \
7462 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7463 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7466 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7470 # -------------------------------
7471 # Miscenalleous configure options
7472 # -------------------------------
7476 # Check whether --with-stabs was given.
7477 if test "${with_stabs+set}" = set; then :
7478 withval
=$with_stabs; stabs
="$with_stabs"
7484 # Determine whether or not multilibs are enabled.
7485 # Check whether --enable-multilib was given.
7486 if test "${enable_multilib+set}" = set; then :
7487 enableval
=$enable_multilib;
7494 # Determine whether or not multiarch is enabled.
7495 # Check whether --enable-multiarch was given.
7496 if test "${enable_multiarch+set}" = set; then :
7497 enableval
=$enable_multiarch; case "${enableval}" in
7498 yes|no|auto
) enable_multiarch
=$enableval;;
7499 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7502 enable_multiarch
=auto
7505 if test x
${enable_multiarch} = xauto
; then
7506 if test x
${with_native_system_header_dir} != x
; then
7507 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7510 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7511 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7516 $as_echo_n "checking for multiarch configuration... " >&6; }
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7519 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7521 # needed for setting the multiarch name for soft-float/hard-float ABIs
7525 # default stack clash protection guard size as power of twos in bytes.
7526 # Please keep these in sync with params.def.
7530 # Keep the default value when the option is not used to 0, this allows us to
7531 # distinguish between the cases where the user specifially set a value via
7532 # configure and when the normal default value is used.
7534 # Check whether --with-stack-clash-protection-guard-size was given.
7535 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7536 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7538 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7541 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7542 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7543 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7544 as_fn_error $?
"Invalid value $DEFAULT_STK_CLASH_GUARD_SIZE for --with-stack-clash-protection-guard-size. Must be between $stk_clash_min and $stk_clash_max." "$LINENO" 5
7548 cat >>confdefs.h
<<_ACEOF
7549 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7553 # Enable __cxa_atexit for C++.
7554 # Check whether --enable-__cxa_atexit was given.
7555 if test "${enable___cxa_atexit+set}" = set; then :
7556 enableval
=$enable___cxa_atexit;
7560 # Enable C extension for decimal float if target supports it.
7562 # Check whether --enable-decimal-float was given.
7563 if test "${enable_decimal_float+set}" = set; then :
7564 enableval
=$enable_decimal_float;
7565 case $enable_decimal_float in
7566 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7567 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7568 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7574 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7575 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7576 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7577 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7578 enable_decimal_float
=yes
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7582 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7583 enable_decimal_float
=no
7590 # x86's use BID format instead of DPD
7591 case x
$enable_decimal_float in
7594 i?
86*-*-* | x86_64
*-*-*)
7595 enable_decimal_float
=bid
7598 enable_decimal_float
=dpd
7601 default_decimal_float
=$enable_decimal_float
7604 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7605 # dependency on libdecnumber.
7606 default_decimal_float
=dpd
7613 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7615 cat >>confdefs.h
<<_ACEOF
7616 #define ENABLE_DECIMAL_FLOAT $dfp
7620 # Use default_decimal_float for dependency.
7621 enable_decimal_float
=$default_decimal_float
7623 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7625 cat >>confdefs.h
<<_ACEOF
7626 #define ENABLE_DECIMAL_BID_FORMAT $bid
7630 # Enable C extension for fixed-point arithmetic.
7631 # Check whether --enable-fixed-point was given.
7632 if test "${enable_fixed_point+set}" = set; then :
7633 enableval
=$enable_fixed_point;
7638 enable_fixed_point
=yes
7642 enable_fixed_point
=yes
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7646 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7647 enable_fixed_point
=no
7655 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7657 cat >>confdefs.h
<<_ACEOF
7658 #define ENABLE_FIXED_POINT $fixedpoint
7663 # Pass with no value to take the default
7664 # Pass with a value to specify a thread package
7665 # Check whether --enable-threads was given.
7666 if test "${enable_threads+set}" = set; then :
7667 enableval
=$enable_threads;
7673 # Check whether --enable-tls was given.
7674 if test "${enable_tls+set}" = set; then :
7675 enableval
=$enable_tls;
7678 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
7679 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7687 # Check whether --enable-vtable-verify was given.
7688 if test "${enable_vtable_verify+set}" = set; then :
7689 enableval
=$enable_vtable_verify;
7691 enable_vtable_verify
=no
7694 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7696 cat >>confdefs.h
<<_ACEOF
7697 #define ENABLE_VTABLE_VERIFY $vtable_verify
7701 # Check whether --enable-objc-gc was given.
7702 if test "${enable_objc_gc+set}" = set; then :
7703 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7714 # Check whether --with-dwarf2 was given.
7715 if test "${with_dwarf2+set}" = set; then :
7716 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7722 # Check whether --enable-shared was given.
7723 if test "${enable_shared+set}" = set; then :
7724 enableval
=$enable_shared;
7725 case $enable_shared in
7729 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7730 for pkg
in $enableval; do
7731 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7745 # Check whether --enable-gcov was given.
7746 if test "${enable_gcov+set}" = set; then :
7747 enableval
=$enable_gcov;
7755 # Check whether --with-specs was given.
7756 if test "${with_specs+set}" = set; then :
7757 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7767 # Check whether --with-pkgversion was given.
7768 if test "${with_pkgversion+set}" = set; then :
7769 withval
=$with_pkgversion; case "$withval" in
7770 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7772 *) PKGVERSION
="($withval) " ;;
7783 # Check whether --with-bugurl was given.
7784 if test "${with_bugurl+set}" = set; then :
7785 withval
=$with_bugurl; case "$withval" in
7786 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7789 *) BUGURL
="$withval"
7793 BUGURL
="https://gcc.gnu.org/bugs/"
7803 REPORT_BUGS_TO
="<$BUGURL>"
7804 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7811 # Allow overriding the default URL for documentation
7813 # Check whether --with-documentation-root-url was given.
7814 if test "${with_documentation_root_url+set}" = set; then :
7815 withval
=$with_documentation_root_url; case "$withval" in
7816 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
7817 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
7818 *) DOCUMENTATION_ROOT_URL
="$withval"
7822 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/gcc/"
7828 # Sanity check enable_languages in case someone does not run the toplevel
7829 # configure # script.
7830 # Check whether --enable-languages was given.
7831 if test "${enable_languages+set}" = set; then :
7832 enableval
=$enable_languages; case ,${enable_languages}, in
7834 # go safe -- we cannot be much sure without the toplevel
7836 # analysis of which target libs are present and usable
7840 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7845 enable_languages
=c
,${enable_languages}
7853 # If top-level libada has been disabled, then wire in install-gnatlib
7854 # invocation with `make install', so that one can build and install
7855 # the library manually with `make -C gcc all gnatlib gnattools install'.
7856 if test x
"$enable_libada" = xno
; then
7857 gnat_install_lib
=gnat-install-lib
7863 if test x
"$enable_as_accelerator_for" != x
; then
7865 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7867 enable_as_accelerator
=yes
7870 # In this case we expect offload compiler to be built as native, so we
7871 # need to rename the driver to avoid clashes with host's drivers.
7872 program_transform_name
="s&^&${target}-&" ;;
7874 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7875 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7876 accel_dir_suffix
=/accel
/${target_noncanonical}
7877 real_target_noncanonical
=${enable_as_accelerator_for}
7883 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7884 tgt_dir
=`echo $tgt | sed -n 's/.*=//p'`
7885 tgt
=`echo $tgt | sed 's/=.*//'`
7887 if echo "$tgt" |
grep "^hsa" > /dev
/null
; then
7891 if test -n "$tgt_dir"; then
7892 omp_device_property
="${tgt_dir}/lib/gcc/\$(real_target_noncanonical)/\$(version)/accel/${tgt}/omp-device-properties"
7894 omp_device_property
="\$(libsubdir)/accel/${tgt}/omp-device-properties"
7896 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
7897 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
7900 if test x
"$offload_targets" = x
; then
7901 offload_targets
=$tgt
7903 offload_targets
="$offload_targets,$tgt"
7910 cat >>confdefs.h
<<_ACEOF
7911 #define OFFLOAD_TARGETS "$offload_targets"
7914 if test x
"$enable_offloading" != x
; then
7916 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7920 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7924 if test x
"$enable_hsa" = x1
; then
7926 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7931 # Check whether --with-multilib-list was given.
7932 if test "${with_multilib_list+set}" = set; then :
7933 withval
=$with_multilib_list; :
7935 with_multilib_list
=default
7939 # -------------------------
7940 # Checks for other programs
7941 # -------------------------
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7944 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7946 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7947 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
7948 $as_echo_n "(cached) " >&6
7950 cat >conftest.
make <<\_ACEOF
7953 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7955 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7956 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7958 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7960 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7964 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7966 $as_echo "yes" >&6; }
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7971 SET_MAKE
="MAKE=${MAKE-make}"
7975 # Find some useful tools
7976 for ac_prog
in gawk mawk nawk
awk
7978 # Extract the first word of "$ac_prog", so it can be a program name with args.
7979 set dummy
$ac_prog; ac_word
=$2
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if ${ac_cv_prog_AWK+:} false
; then :
7983 $as_echo_n "(cached) " >&6
7985 if test -n "$AWK"; then
7986 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7992 test -z "$as_dir" && as_dir
=.
7993 for ac_exec_ext
in '' $ac_executable_extensions; do
7994 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7995 ac_cv_prog_AWK
="$ac_prog"
7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8006 if test -n "$AWK"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8008 $as_echo "$AWK" >&6; }
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8015 test -n "$AWK" && break
8018 # We need awk to create options.c and options.h.
8019 # Bail out if it's missing.
8021 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8025 $as_echo_n "checking whether ln -s works... " >&6; }
8026 if ${gcc_cv_prog_LN_S+:} false
; then :
8027 $as_echo_n "(cached) " >&6
8029 rm -f conftestdata_t
8030 echo >conftestdata_f
8031 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8033 gcc_cv_prog_LN_S
="ln -s"
8035 if ln conftestdata_f conftestdata_t
2>/dev
/null
8039 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8041 gcc_cv_prog_LN_S
="cp -p"
8047 rm -f conftestdata_f conftestdata_t
8050 LN_S
="$gcc_cv_prog_LN_S"
8051 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8053 $as_echo "yes" >&6; }
8055 if test "$gcc_cv_prog_LN_S" = "ln"; then
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8057 $as_echo "no, using ln" >&6; }
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8060 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8065 $as_echo_n "checking whether ln works... " >&6; }
8066 if ${acx_cv_prog_LN+:} false
; then :
8067 $as_echo_n "(cached) " >&6
8069 rm -f conftestdata_t
8070 echo >conftestdata_f
8071 if ln conftestdata_f conftestdata_t
2>/dev
/null
8077 rm -f conftestdata_f conftestdata_t
8080 if test $acx_cv_prog_LN = no
; then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8083 $as_echo "no, using $LN" >&6; }
8085 LN
="$acx_cv_prog_LN"
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8087 $as_echo "yes" >&6; }
8090 if test -n "$ac_tool_prefix"; then
8091 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8092 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8094 $as_echo_n "checking for $ac_word... " >&6; }
8095 if ${ac_cv_prog_RANLIB+:} false
; then :
8096 $as_echo_n "(cached) " >&6
8098 if test -n "$RANLIB"; then
8099 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8105 test -z "$as_dir" && as_dir
=.
8106 for ac_exec_ext
in '' $ac_executable_extensions; do
8107 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8108 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8118 RANLIB
=$ac_cv_prog_RANLIB
8119 if test -n "$RANLIB"; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8121 $as_echo "$RANLIB" >&6; }
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124 $as_echo "no" >&6; }
8129 if test -z "$ac_cv_prog_RANLIB"; then
8130 ac_ct_RANLIB
=$RANLIB
8131 # Extract the first word of "ranlib", so it can be a program name with args.
8132 set dummy ranlib
; ac_word
=$2
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134 $as_echo_n "checking for $ac_word... " >&6; }
8135 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8136 $as_echo_n "(cached) " >&6
8138 if test -n "$ac_ct_RANLIB"; then
8139 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8145 test -z "$as_dir" && as_dir
=.
8146 for ac_exec_ext
in '' $ac_executable_extensions; do
8147 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8148 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8159 if test -n "$ac_ct_RANLIB"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8161 $as_echo "$ac_ct_RANLIB" >&6; }
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8167 if test "x$ac_ct_RANLIB" = x
; then
8170 case $cross_compiling:$ac_tool_warned in
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8174 ac_tool_warned
=yes ;;
8176 RANLIB
=$ac_ct_RANLIB
8179 RANLIB
="$ac_cv_prog_RANLIB"
8185 # Find a good install program. We prefer a C program (faster),
8186 # so one script is as good as another. But avoid the broken or
8187 # incompatible versions:
8188 # SysV /etc/install, /usr/sbin/install
8189 # SunOS /usr/etc/install
8190 # IRIX /sbin/install
8192 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8193 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8194 # ./install, which can be erroneously created by make from ./install.sh.
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8196 $as_echo_n "checking for a BSD compatible install... " >&6; }
8197 if test -z "$INSTALL"; then
8198 if ${ac_cv_path_install+:} false
; then :
8199 $as_echo_n "(cached) " >&6
8201 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8202 for ac_dir
in $PATH; do
8203 # Account for people who put trailing slashes in PATH elements.
8205 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8207 # OSF1 and SCO ODT 3.0 have their own names for install.
8208 for ac_prog
in ginstall scoinst
install; do
8209 if test -f $ac_dir/$ac_prog; then
8210 if test $ac_prog = install &&
8211 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8212 # AIX install. It has an incompatible calling convention.
8213 # OSF/1 installbsd also uses dspmsg, but is usable.
8216 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8227 if test "${ac_cv_path_install+set}" = set; then
8228 INSTALL
="$ac_cv_path_install"
8230 # As a last resort, use the slow shell script. We don't cache a
8231 # path for INSTALL within a source directory, because that will
8232 # break other packages using the cache if that directory is
8233 # removed, or if the path is relative.
8234 INSTALL
="$ac_install_sh"
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8238 $as_echo "$INSTALL" >&6; }
8240 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8241 # It thinks the first close brace ends the variable substitution.
8242 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8244 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8247 # See if cmp has --ignore-initial.
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8249 $as_echo_n "checking for cmp's capabilities... " >&6; }
8250 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8251 $as_echo_n "(cached) " >&6
8255 gcc_cv_prog_cmp_skip
=slowcompare
8256 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8257 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8260 gcc_cv_prog_cmp_skip
=gnucompare
8263 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8264 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8265 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8268 gcc_cv_prog_cmp_skip
=fastcompare
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8276 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8277 make_compare_target
=$gcc_cv_prog_cmp_skip
8281 # See if we have the mktemp command.
8282 # Extract the first word of "mktemp", so it can be a program name with args.
8283 set dummy mktemp
; ac_word
=$2
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285 $as_echo_n "checking for $ac_word... " >&6; }
8286 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8287 $as_echo_n "(cached) " >&6
8289 if test -n "$have_mktemp_command"; then
8290 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8296 test -z "$as_dir" && as_dir
=.
8297 for ac_exec_ext
in '' $ac_executable_extensions; do
8298 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8299 ac_cv_prog_have_mktemp_command
="yes"
8300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8307 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8310 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8311 if test -n "$have_mktemp_command"; then
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8313 $as_echo "$have_mktemp_command" >&6; }
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8316 $as_echo "no" >&6; }
8321 # See if makeinfo has been installed and is modern enough
8322 # that we can use it.
8324 # Extract the first word of "makeinfo", so it can be a program name with args.
8325 set dummy makeinfo
; ac_word
=$2
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8327 $as_echo_n "checking for $ac_word... " >&6; }
8328 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8329 $as_echo_n "(cached) " >&6
8331 if test -n "$MAKEINFO"; then
8332 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8338 test -z "$as_dir" && as_dir
=.
8339 for ac_exec_ext
in '' $ac_executable_extensions; do
8340 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8341 ac_cv_prog_MAKEINFO
="makeinfo"
8342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8351 MAKEINFO
=$ac_cv_prog_MAKEINFO
8352 if test -n "$MAKEINFO"; then
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8354 $as_echo "$MAKEINFO" >&6; }
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357 $as_echo "no" >&6; }
8361 if test -n "$MAKEINFO"; then
8362 # Found it, now check the version.
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8364 $as_echo_n "checking for modern makeinfo... " >&6; }
8365 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8366 $as_echo_n "(cached) " >&6
8368 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8369 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8371 case $ac_prog_version in
8372 '') gcc_cv_prog_makeinfo_modern
=no
;;
8373 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8374 *) gcc_cv_prog_makeinfo_modern
=no
;;
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8379 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8381 gcc_cv_prog_makeinfo_modern
=no
8383 if test $gcc_cv_prog_makeinfo_modern = no
; then
8384 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8387 if test $gcc_cv_prog_makeinfo_modern = no
; then
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8389 *** Makeinfo is missing or too old.
8390 *** Info documentation will not be built." >&5
8391 $as_echo "$as_me: WARNING:
8392 *** Makeinfo is missing or too old.
8393 *** Info documentation will not be built." >&2;}
8400 # Is pod2man recent enough to regenerate manpages?
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8402 $as_echo_n "checking for recent Pod::Man... " >&6; }
8403 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8405 $as_echo "yes" >&6; }
8406 GENERATED_MANPAGES
=generated-manpages
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409 $as_echo "no" >&6; }
8414 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8419 # Extract the first word of "$ac_prog", so it can be a program name with args.
8420 set dummy
$ac_prog; ac_word
=$2
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8422 $as_echo_n "checking for $ac_word... " >&6; }
8423 if ${ac_cv_prog_FLEX+:} false
; then :
8424 $as_echo_n "(cached) " >&6
8426 if test -n "$FLEX"; then
8427 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8433 test -z "$as_dir" && as_dir
=.
8434 for ac_exec_ext
in '' $ac_executable_extensions; do
8435 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8436 ac_cv_prog_FLEX
="$ac_prog"
8437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8446 FLEX
=$ac_cv_prog_FLEX
8447 if test -n "$FLEX"; then
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8449 $as_echo "$FLEX" >&6; }
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452 $as_echo "no" >&6; }
8456 test -n "$FLEX" && break
8458 test -n "$FLEX" || FLEX
="$MISSING flex"
8462 for ac_prog
in bison
8464 # Extract the first word of "$ac_prog", so it can be a program name with args.
8465 set dummy
$ac_prog; ac_word
=$2
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467 $as_echo_n "checking for $ac_word... " >&6; }
8468 if ${ac_cv_prog_BISON+:} false
; then :
8469 $as_echo_n "(cached) " >&6
8471 if test -n "$BISON"; then
8472 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8478 test -z "$as_dir" && as_dir
=.
8479 for ac_exec_ext
in '' $ac_executable_extensions; do
8480 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8481 ac_cv_prog_BISON
="$ac_prog"
8482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8491 BISON
=$ac_cv_prog_BISON
8492 if test -n "$BISON"; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8494 $as_echo "$BISON" >&6; }
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497 $as_echo "no" >&6; }
8501 test -n "$BISON" && break
8503 test -n "$BISON" || BISON
="$MISSING bison"
8506 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8507 # check for build == host before using them.
8510 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8511 && test -d ..
/binutils
; then
8512 NM
='${objdir}/../binutils/nm-new'
8514 # Extract the first word of "nm", so it can be a program name with args.
8515 set dummy nm
; ac_word
=$2
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517 $as_echo_n "checking for $ac_word... " >&6; }
8518 if ${ac_cv_prog_NM+:} false
; then :
8519 $as_echo_n "(cached) " >&6
8521 if test -n "$NM"; then
8522 ac_cv_prog_NM
="$NM" # Let the user override the test.
8524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8528 test -z "$as_dir" && as_dir
=.
8529 for ac_exec_ext
in '' $ac_executable_extensions; do
8530 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8539 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8543 if test -n "$NM"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8545 $as_echo "$NM" >&6; }
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8555 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8556 && test -d ..
/binutils
; then
8557 AR
='${objdir}/../binutils/ar'
8559 # Extract the first word of "ar", so it can be a program name with args.
8560 set dummy
ar; ac_word
=$2
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8562 $as_echo_n "checking for $ac_word... " >&6; }
8563 if ${ac_cv_prog_AR+:} false
; then :
8564 $as_echo_n "(cached) " >&6
8566 if test -n "$AR"; then
8567 ac_cv_prog_AR
="$AR" # Let the user override the test.
8569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8573 test -z "$as_dir" && as_dir
=.
8574 for ac_exec_ext
in '' $ac_executable_extensions; do
8575 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8584 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8588 if test -n "$AR"; then
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8590 $as_echo "$AR" >&6; }
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593 $as_echo "no" >&6; }
8599 # The jit documentation looks better if built with sphinx, but can be
8600 # built with texinfo if sphinx is not available.
8601 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8602 # Extract the first word of "sphinx-build", so it can be a program name with args.
8603 set dummy sphinx-build
; ac_word
=$2
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8605 $as_echo_n "checking for $ac_word... " >&6; }
8606 if ${ac_cv_prog_doc_build_sys+:} false
; then :
8607 $as_echo_n "(cached) " >&6
8609 if test -n "$doc_build_sys"; then
8610 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8616 test -z "$as_dir" && as_dir
=.
8617 for ac_exec_ext
in '' $ac_executable_extensions; do
8618 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8619 ac_cv_prog_doc_build_sys
="sphinx"
8620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8627 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8630 doc_build_sys
=$ac_cv_prog_doc_build_sys
8631 if test -n "$doc_build_sys"; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8633 $as_echo "$doc_build_sys" >&6; }
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636 $as_echo "no" >&6; }
8641 # --------------------
8642 # Checks for C headers
8643 # --------------------
8645 # Need to reject headers which give warnings, so that the -Werror bootstrap
8646 # works later. *sigh* This needs to come before all header checks.
8648 ac_c_preproc_warn_flag
=yes
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8651 $as_echo_n "checking for ANSI C header files... " >&6; }
8652 if ${ac_cv_header_stdc+:} false
; then :
8653 $as_echo_n "(cached) " >&6
8655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8670 if ac_fn_cxx_try_compile
"$LINENO"; then :
8671 ac_cv_header_stdc
=yes
8673 ac_cv_header_stdc
=no
8675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8677 if test $ac_cv_header_stdc = yes; then
8678 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8685 $EGREP "memchr" >/dev
/null
2>&1; then :
8688 ac_cv_header_stdc
=no
8694 if test $ac_cv_header_stdc = yes; then
8695 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8697 /* end confdefs.h. */
8701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8702 $EGREP "free" >/dev
/null
2>&1; then :
8705 ac_cv_header_stdc
=no
8711 if test $ac_cv_header_stdc = yes; then
8712 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8713 if test "$cross_compiling" = yes; then :
8716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8717 /* end confdefs.h. */
8720 #if ((' ' & 0x0FF) == 0x020)
8721 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8722 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8724 # define ISLOWER(c) \
8725 (('a' <= (c) && (c) <= 'i') \
8726 || ('j' <= (c) && (c) <= 'r') \
8727 || ('s' <= (c) && (c) <= 'z'))
8728 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8731 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8736 for (i = 0; i < 256; i++)
8737 if (XOR (islower (i), ISLOWER (i))
8738 || toupper (i) != TOUPPER (i))
8743 if ac_fn_cxx_try_run
"$LINENO"; then :
8746 ac_cv_header_stdc
=no
8748 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8749 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8755 $as_echo "$ac_cv_header_stdc" >&6; }
8756 if test $ac_cv_header_stdc = yes; then
8758 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8763 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8764 if ${ac_cv_header_time+:} false
; then :
8765 $as_echo_n "(cached) " >&6
8767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8768 /* end confdefs.h. */
8769 #include <sys/types.h>
8770 #include <sys/time.h>
8776 if ((struct tm *) 0)
8782 if ac_fn_cxx_try_compile
"$LINENO"; then :
8783 ac_cv_header_time
=yes
8785 ac_cv_header_time
=no
8787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8790 $as_echo "$ac_cv_header_time" >&6; }
8791 if test $ac_cv_header_time = yes; then
8793 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8798 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8799 if ${gcc_cv_header_string+:} false
; then :
8800 $as_echo_n "(cached) " >&6
8802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8803 /* end confdefs.h. */
8805 #include <strings.h>
8814 if ac_fn_cxx_try_compile
"$LINENO"; then :
8815 gcc_cv_header_string
=yes
8817 gcc_cv_header_string
=no
8819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8822 $as_echo "$gcc_cv_header_string" >&6; }
8823 if test $gcc_cv_header_string = yes; then
8825 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8830 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8831 if ${ac_cv_header_sys_wait_h+:} false
; then :
8832 $as_echo_n "(cached) " >&6
8834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8835 /* end confdefs.h. */
8836 #include <sys/types.h>
8837 #include <sys/wait.h>
8839 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8842 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8850 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8855 if ac_fn_cxx_try_compile
"$LINENO"; then :
8856 ac_cv_header_sys_wait_h
=yes
8858 ac_cv_header_sys_wait_h
=no
8860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8863 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8864 if test $ac_cv_header_sys_wait_h = yes; then
8866 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8871 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8872 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
8873 $as_echo_n "(cached) " >&6
8875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8876 /* end confdefs.h. */
8877 #include <sys/types.h>
8878 #include <termios.h>
8884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8885 $EGREP "yes" >/dev
/null
2>&1; then :
8886 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8888 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8894 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8896 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8898 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8899 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
8900 $as_echo_n "(cached) " >&6
8902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8903 /* end confdefs.h. */
8904 #include <sys/types.h>
8905 #include <sys/ioctl.h>
8911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8912 $EGREP "yes" >/dev
/null
2>&1; then :
8913 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8915 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8921 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8923 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8925 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8930 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8931 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8932 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8933 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8935 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8936 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8937 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8938 cat >>confdefs.h
<<_ACEOF
8939 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8946 # Check for thread headers.
8947 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8948 if test "x$ac_cv_header_thread_h" = xyes
; then :
8954 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8955 if test "x$ac_cv_header_pthread_h" = xyes
; then :
8962 # These tests can't be done till we know if we have limits.h.
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8964 $as_echo_n "checking for CHAR_BIT... " >&6; }
8965 if ${gcc_cv_decl_char_bit+:} false
; then :
8966 $as_echo_n "(cached) " >&6
8968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h. */
8970 #ifdef HAVE_LIMITS_H
8977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8978 $EGREP "found" >/dev
/null
2>&1; then :
8979 gcc_cv_decl_char_bit
=yes
8981 gcc_cv_decl_char_bit
=no
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8988 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8989 if test $gcc_cv_decl_char_bit = no
; then
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8991 $as_echo_n "checking number of bits in a byte... " >&6; }
8992 if ${gcc_cv_c_nbby+:} false
; then :
8993 $as_echo_n "(cached) " >&6
8997 while test $i -lt 65; do
8998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9005 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9006 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9012 if ac_fn_cxx_try_compile
"$LINENO"; then :
9013 gcc_cv_c_nbby
=$i; break
9015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9018 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9022 $as_echo "$gcc_cv_c_nbby" >&6; }
9023 if test $gcc_cv_c_nbby = failed
; then
9024 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9027 cat >>confdefs.h
<<_ACEOF
9028 #define CHAR_BIT $gcc_cv_c_nbby
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9034 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9035 if ${ac_cv_c_bigendian+:} false
; then :
9036 $as_echo_n "(cached) " >&6
9038 ac_cv_c_bigendian
=unknown
9039 # See if we're dealing with a universal compiler.
9040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9042 #ifndef __APPLE_CC__
9043 not a universal capable compiler
9048 if ac_fn_cxx_try_compile
"$LINENO"; then :
9050 # Check for potential -arch flags. It is not universal unless
9051 # there are at least two -arch flags with different values.
9054 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9055 if test -n "$ac_prev"; then
9057 i?
86 | x86_64 | ppc | ppc64
)
9058 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9061 ac_cv_c_bigendian
=universal
9067 elif test "x$ac_word" = "x-arch"; then
9072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9073 if test $ac_cv_c_bigendian = unknown
; then
9074 # See if sys/param.h defines the BYTE_ORDER macro.
9075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9076 /* end confdefs.h. */
9077 #include <sys/types.h>
9078 #include <sys/param.h>
9083 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9084 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9093 if ac_fn_cxx_try_compile
"$LINENO"; then :
9094 # It does; now see whether it defined to BIG_ENDIAN or not.
9095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9097 #include <sys/types.h>
9098 #include <sys/param.h>
9103 #if BYTE_ORDER != BIG_ENDIAN
9111 if ac_fn_cxx_try_compile
"$LINENO"; then :
9112 ac_cv_c_bigendian
=yes
9114 ac_cv_c_bigendian
=no
9116 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9120 if test $ac_cv_c_bigendian = unknown
; then
9121 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9123 /* end confdefs.h. */
9129 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9137 if ac_fn_cxx_try_compile
"$LINENO"; then :
9138 # It does; now see whether it defined to _BIG_ENDIAN or not.
9139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9140 /* end confdefs.h. */
9154 if ac_fn_cxx_try_compile
"$LINENO"; then :
9155 ac_cv_c_bigendian
=yes
9157 ac_cv_c_bigendian
=no
9159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9163 if test $ac_cv_c_bigendian = unknown
; then
9164 # Compile a test program.
9165 if test "$cross_compiling" = yes; then :
9166 # Try to guess by grepping values from an object file.
9167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9169 short int ascii_mm[] =
9170 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9171 short int ascii_ii[] =
9172 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9173 int use_ascii (int i) {
9174 return ascii_mm[i] + ascii_ii[i];
9176 short int ebcdic_ii[] =
9177 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9178 short int ebcdic_mm[] =
9179 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9180 int use_ebcdic (int i) {
9181 return ebcdic_mm[i] + ebcdic_ii[i];
9188 return use_ascii (foo) == use_ebcdic (foo);
9193 if ac_fn_cxx_try_compile
"$LINENO"; then :
9194 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9195 ac_cv_c_bigendian
=yes
9197 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9198 if test "$ac_cv_c_bigendian" = unknown
; then
9199 ac_cv_c_bigendian
=no
9201 # finding both strings is unlikely to happen, but who knows?
9202 ac_cv_c_bigendian
=unknown
9206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9209 /* end confdefs.h. */
9210 $ac_includes_default
9215 /* Are we little or big endian? From Harbison&Steele. */
9219 char c[sizeof (long int)];
9222 return u.c[sizeof (long int) - 1] == 1;
9228 if ac_fn_cxx_try_run
"$LINENO"; then :
9229 ac_cv_c_bigendian
=no
9231 ac_cv_c_bigendian
=yes
9233 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9234 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9240 $as_echo "$ac_cv_c_bigendian" >&6; }
9241 case $ac_cv_c_bigendian in #(
9243 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9249 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9253 as_fn_error $?
"unknown endianness
9254 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9258 # ----------------------
9259 # Checks for C++ headers
9260 # ----------------------
9263 ac_cpp
='$CXXCPP $CPPFLAGS'
9264 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9265 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9266 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9268 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9269 if test -z "$CXXCPP"; then
9270 if ${ac_cv_prog_CXXCPP+:} false
; then :
9271 $as_echo_n "(cached) " >&6
9273 # Double quotes because CXXCPP needs to be expanded
9274 for CXXCPP
in "$CXX -E" "/lib/cpp"
9277 for ac_cxx_preproc_warn_flag
in '' yes
9279 # Use a header file that comes with gcc, so configuring glibc
9280 # with a fresh cross-compiler works.
9281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9282 # <limits.h> exists even on freestanding compilers.
9283 # On the NeXT, cc -E runs the code through the compiler's parser,
9284 # not just through cpp. "Syntax error" is here to catch this case.
9285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9286 /* end confdefs.h. */
9288 # include <limits.h>
9290 # include <assert.h>
9294 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9297 # Broken: fails on valid input.
9300 rm -f conftest.err conftest.i conftest.
$ac_ext
9302 # OK, works on sane cases. Now check whether nonexistent headers
9303 # can be detected and how.
9304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9305 /* end confdefs.h. */
9306 #include <ac_nonexistent.h>
9308 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9309 # Broken: success on invalid input.
9312 # Passes both tests.
9316 rm -f conftest.err conftest.i conftest.
$ac_ext
9319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9320 rm -f conftest.i conftest.err conftest.
$ac_ext
9321 if $ac_preproc_ok; then :
9326 ac_cv_prog_CXXCPP
=$CXXCPP
9329 CXXCPP
=$ac_cv_prog_CXXCPP
9331 ac_cv_prog_CXXCPP
=$CXXCPP
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9334 $as_echo "$CXXCPP" >&6; }
9336 for ac_cxx_preproc_warn_flag
in '' yes
9338 # Use a header file that comes with gcc, so configuring glibc
9339 # with a fresh cross-compiler works.
9340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9341 # <limits.h> exists even on freestanding compilers.
9342 # On the NeXT, cc -E runs the code through the compiler's parser,
9343 # not just through cpp. "Syntax error" is here to catch this case.
9344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h. */
9347 # include <limits.h>
9349 # include <assert.h>
9353 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9356 # Broken: fails on valid input.
9359 rm -f conftest.err conftest.i conftest.
$ac_ext
9361 # OK, works on sane cases. Now check whether nonexistent headers
9362 # can be detected and how.
9363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9365 #include <ac_nonexistent.h>
9367 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9368 # Broken: success on invalid input.
9371 # Passes both tests.
9375 rm -f conftest.err conftest.i conftest.
$ac_ext
9378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9379 rm -f conftest.i conftest.err conftest.
$ac_ext
9380 if $ac_preproc_ok; then :
9383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9386 See \`config.log' for more details" >&5
9387 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9388 See \`config.log' for more details" >&2;}; }
9392 ac_cpp
='$CXXCPP $CPPFLAGS'
9393 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9394 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9395 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9398 for ac_header
in unordered_map
9400 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9401 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9402 cat >>confdefs.h
<<_ACEOF
9403 #define HAVE_UNORDERED_MAP 1
9409 for ac_header
in tr1/unordered_map
9411 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9412 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9413 cat >>confdefs.h
<<_ACEOF
9414 #define HAVE_TR1_UNORDERED_MAP 1
9420 for ac_header
in ext
/hash_map
9422 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9423 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9424 cat >>confdefs.h
<<_ACEOF
9425 #define HAVE_EXT_HASH_MAP 1
9433 # Dependency checking.
9436 rm -rf .tst
2>/dev
/null
9437 mkdir .tst
2>/dev
/null
9438 if test -d .tst
; then
9443 rmdir .tst
2>/dev
/null
9445 DEPDIR
="${am__leading_dot}deps"
9447 ac_config_commands
="$ac_config_commands depdir"
9450 ac_config_commands
="$ac_config_commands gccdepdir"
9453 depcc
="$CXX" am_compiler_list
=
9455 am_depcomp
=$ac_aux_dir/depcomp
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9457 $as_echo_n "checking dependency style of $depcc... " >&6; }
9458 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
9459 $as_echo_n "(cached) " >&6
9461 if test -f "$am_depcomp"; then
9462 # We make a subdir and do the tests there. Otherwise we can end up
9463 # making bogus files that we don't know about and never remove. For
9464 # instance it was reported that on HP-UX the gcc test will end up
9465 # making a dummy file named `D' -- because `-MD' means `put the output
9468 # Copy depcomp to subdir because otherwise we won't find it if we're
9469 # using a relative directory.
9470 cp "$am_depcomp" conftest.dir
9472 # We will build objects and dependencies in a subdirectory because
9473 # it helps to detect inapplicable dependency modes. For instance
9474 # both Tru64's cc and ICC support -MD to output dependencies as a
9475 # side effect of compilation, but ICC will put the dependencies in
9476 # the current directory while Tru64 will put them in the object
9480 am_cv_CXX_dependencies_compiler_type
=none
9481 if test "$am_compiler_list" = ""; then
9482 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9484 for depmode
in $am_compiler_list; do
9485 if test $depmode = none
; then break; fi
9487 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9488 # Setup a source with many dependencies, because some compilers
9489 # like to wrap large dependency lists on column 80 (with \), and
9490 # we should not choose a depcomp mode which is confused by this.
9492 # We need to recreate these files for each test, as the compiler may
9493 # overwrite some of them when testing with obscure command lines.
9494 # This happens at least with the AIX C compiler.
9496 for i
in 1 2 3 4 5 6; do
9497 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9498 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9499 # Solaris 8's {/usr,}/bin/sh.
9500 touch sub
/conftst
$i.h
9502 echo "include sub/conftest.Po" > confmf
9504 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9505 # mode. It turns out that the SunPro C++ compiler does not properly
9506 # handle `-M -o', and we need to detect this.
9507 depcmd
="depmode=$depmode \
9508 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9509 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9510 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9511 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9512 if env
$depcmd > conftest.err
2>&1 &&
9513 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9514 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9515 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9516 # icc doesn't choke on unknown options, it will just issue warnings
9517 # or remarks (even with -Werror). So we grep stderr for any message
9518 # that says an option was ignored or not supported.
9519 # When given -MP, icc 7.0 and 7.1 complain thusly:
9520 # icc: Command line warning: ignoring option '-M'; no argument required
9521 # The diagnosis changed in icc 8.0:
9522 # icc: Command line remark: option '-MP' not supported
9523 if (grep 'ignoring option' conftest.err ||
9524 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9525 am_cv_CXX_dependencies_compiler_type
=$depmode
9526 $as_echo "$as_me:$LINENO: success" >&5
9530 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9531 sed -e 's/^/| /' < conftest.err
>&5
9537 am_cv_CXX_dependencies_compiler_type
=none
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9542 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9543 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9544 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
9545 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9555 # These libraries may be used by collect2.
9556 # We may need a special search path to get them linked.
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9558 $as_echo_n "checking for collect2 libraries... " >&6; }
9559 if ${gcc_cv_collect2_libs+:} false
; then :
9560 $as_echo_n "(cached) " >&6
9563 for libs
in '' -lld -lmld \
9564 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9565 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9571 /* Override any GCC internal prototype to avoid an error.
9572 Use char because int might match the return type of a GCC
9573 builtin and then its argument prototype would still apply. */
9586 if ac_fn_cxx_try_link
"$LINENO"; then :
9587 gcc_cv_collect2_libs
="$libs"; break
9589 rm -f core conftest.err conftest.
$ac_objext \
9590 conftest
$ac_exeext conftest.
$ac_ext
9593 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9596 $as_echo "$gcc_cv_collect2_libs" >&6; }
9597 case $gcc_cv_collect2_libs in
9599 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9603 # When building Ada code on Alpha, we need exc_resume which is usually in
9604 # -lexc. So test for it.
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9608 $as_echo_n "checking for library containing exc_resume... " >&6; }
9609 if ${ac_cv_search_exc_resume+:} false
; then :
9610 $as_echo_n "(cached) " >&6
9612 ac_func_search_save_LIBS
=$LIBS
9613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9614 /* end confdefs.h. */
9616 /* Override any GCC internal prototype to avoid an error.
9617 Use char because int might match the return type of a GCC
9618 builtin and then its argument prototype would still apply. */
9626 return exc_resume ();
9631 for ac_lib
in '' exc
; do
9632 if test -z "$ac_lib"; then
9633 ac_res
="none required"
9636 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9638 if ac_fn_cxx_try_link
"$LINENO"; then :
9639 ac_cv_search_exc_resume
=$ac_res
9641 rm -f core conftest.err conftest.
$ac_objext \
9643 if ${ac_cv_search_exc_resume+:} false
; then :
9647 if ${ac_cv_search_exc_resume+:} false
; then :
9650 ac_cv_search_exc_resume
=no
9653 LIBS
=$ac_func_search_save_LIBS
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9656 $as_echo "$ac_cv_search_exc_resume" >&6; }
9657 ac_res
=$ac_cv_search_exc_resume
9658 if test "$ac_res" != no
; then :
9659 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9667 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9671 $as_echo_n "checking for library containing kstat_open... " >&6; }
9672 if ${ac_cv_search_kstat_open+:} false
; then :
9673 $as_echo_n "(cached) " >&6
9675 ac_func_search_save_LIBS
=$LIBS
9676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9679 /* Override any GCC internal prototype to avoid an error.
9680 Use char because int might match the return type of a GCC
9681 builtin and then its argument prototype would still apply. */
9689 return kstat_open ();
9694 for ac_lib
in '' kstat
; do
9695 if test -z "$ac_lib"; then
9696 ac_res
="none required"
9699 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9701 if ac_fn_cxx_try_link
"$LINENO"; then :
9702 ac_cv_search_kstat_open
=$ac_res
9704 rm -f core conftest.err conftest.
$ac_objext \
9706 if ${ac_cv_search_kstat_open+:} false
; then :
9710 if ${ac_cv_search_kstat_open+:} false
; then :
9713 ac_cv_search_kstat_open
=no
9716 LIBS
=$ac_func_search_save_LIBS
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9719 $as_echo "$ac_cv_search_kstat_open" >&6; }
9720 ac_res
=$ac_cv_search_kstat_open
9721 if test "$ac_res" != no
; then :
9722 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9726 EXTRA_GCC_LIBS
="$LIBS"
9730 # Some systems put ldexp and frexp in libm instead of libc; assume
9731 # they're both in the same place. jcf-dump needs them.
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9735 $as_echo_n "checking for library containing ldexp... " >&6; }
9736 if ${ac_cv_search_ldexp+:} false
; then :
9737 $as_echo_n "(cached) " >&6
9739 ac_func_search_save_LIBS
=$LIBS
9740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9741 /* end confdefs.h. */
9743 /* Override any GCC internal prototype to avoid an error.
9744 Use char because int might match the return type of a GCC
9745 builtin and then its argument prototype would still apply. */
9758 for ac_lib
in '' m
; do
9759 if test -z "$ac_lib"; then
9760 ac_res
="none required"
9763 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9765 if ac_fn_cxx_try_link
"$LINENO"; then :
9766 ac_cv_search_ldexp
=$ac_res
9768 rm -f core conftest.err conftest.
$ac_objext \
9770 if ${ac_cv_search_ldexp+:} false
; then :
9774 if ${ac_cv_search_ldexp+:} false
; then :
9777 ac_cv_search_ldexp
=no
9780 LIBS
=$ac_func_search_save_LIBS
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9783 $as_echo "$ac_cv_search_ldexp" >&6; }
9784 ac_res
=$ac_cv_search_ldexp
9785 if test "$ac_res" != no
; then :
9786 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9794 # Some systems need dlopen
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9798 $as_echo_n "checking for library containing dlopen... " >&6; }
9799 if ${ac_cv_search_dlopen+:} false
; then :
9800 $as_echo_n "(cached) " >&6
9802 ac_func_search_save_LIBS
=$LIBS
9803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9804 /* end confdefs.h. */
9806 /* Override any GCC internal prototype to avoid an error.
9807 Use char because int might match the return type of a GCC
9808 builtin and then its argument prototype would still apply. */
9821 for ac_lib
in '' dl
; do
9822 if test -z "$ac_lib"; then
9823 ac_res
="none required"
9826 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9828 if ac_fn_cxx_try_link
"$LINENO"; then :
9829 ac_cv_search_dlopen
=$ac_res
9831 rm -f core conftest.err conftest.
$ac_objext \
9833 if ${ac_cv_search_dlopen+:} false
; then :
9837 if ${ac_cv_search_dlopen+:} false
; then :
9840 ac_cv_search_dlopen
=no
9843 LIBS
=$ac_func_search_save_LIBS
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9846 $as_echo "$ac_cv_search_dlopen" >&6; }
9847 ac_res
=$ac_cv_search_dlopen
9848 if test "$ac_res" != no
; then :
9849 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9857 # Use <inttypes.h> only if it exists,
9858 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9861 $as_echo_n "checking for inttypes.h... " >&6; }
9862 if ${gcc_cv_header_inttypes_h+:} false
; then :
9863 $as_echo_n "(cached) " >&6
9865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9866 /* end confdefs.h. */
9867 #define __STDC_FORMAT_MACROS
9868 #include <sys/types.h>
9869 #include <inttypes.h>
9881 if ac_fn_cxx_try_compile
"$LINENO"; then :
9882 gcc_cv_header_inttypes_h
=yes
9884 gcc_cv_header_inttypes_h
=no
9886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9890 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9891 if test $gcc_cv_header_inttypes_h = yes; then
9893 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9897 # Look for the ZSTD package.
9905 # Check whether --with-zstd was given.
9906 if test "${with_zstd+set}" = set; then :
9911 # Check whether --with-zstd-include was given.
9912 if test "${with_zstd_include+set}" = set; then :
9913 withval
=$with_zstd_include;
9917 # Check whether --with-zstd-lib was given.
9918 if test "${with_zstd_lib+set}" = set; then :
9919 withval
=$with_zstd_lib;
9922 case "x$with_zstd" in
9928 *) ZSTD_INCLUDE
=$with_zstd/include
9929 ZSTD_LIB
=$with_zstd/lib
9932 if test "x$with_zstd_include" != x
; then
9933 ZSTD_INCLUDE
=$with_zstd_include
9935 if test "x$with_zstd_lib" != x
; then
9936 ZSTD_LIB
=$with_zstd_lib
9938 if test "x$ZSTD_INCLUDE" != x \
9939 && test "x$ZSTD_INCLUDE" != xno
; then
9940 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
9942 if test "x$ZSTD_LIB" != x \
9943 && test "x$ZSTD_LIB" != xno
; then
9944 ZSTD_LDFLAGS
=-L$ZSTD_LIB
9947 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
9948 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
9951 $as_echo_n "checking for zstd.h... " >&6; }
9952 if ${gcc_cv_header_zstd_h+:} false
; then :
9953 $as_echo_n "(cached) " >&6
9955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9956 /* end confdefs.h. */
9966 if ac_fn_cxx_try_compile
"$LINENO"; then :
9967 gcc_cv_header_zstd_h
=yes
9969 gcc_cv_header_zstd_h
=no
9971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
9975 $as_echo "$gcc_cv_header_zstd_h" >&6; }
9976 if test $gcc_cv_header_zstd_h = yes; then
9978 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
9982 # LTO can use zstd compression algorithm
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
9986 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
9987 if ${ac_cv_search_ZSTD_compress+:} false
; then :
9988 $as_echo_n "(cached) " >&6
9990 ac_func_search_save_LIBS
=$LIBS
9991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9992 /* end confdefs.h. */
9994 /* Override any GCC internal prototype to avoid an error.
9995 Use char because int might match the return type of a GCC
9996 builtin and then its argument prototype would still apply. */
10000 char ZSTD_compress ();
10004 return ZSTD_compress ();
10009 for ac_lib
in '' zstd
; do
10010 if test -z "$ac_lib"; then
10011 ac_res
="none required"
10014 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10016 if ac_fn_cxx_try_link
"$LINENO"; then :
10017 ac_cv_search_ZSTD_compress
=$ac_res
10019 rm -f core conftest.err conftest.
$ac_objext \
10021 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10025 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10028 ac_cv_search_ZSTD_compress
=no
10030 rm conftest.
$ac_ext
10031 LIBS
=$ac_func_search_save_LIBS
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10034 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10035 ac_res
=$ac_cv_search_ZSTD_compress
10036 if test "$ac_res" != no
; then :
10037 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10047 for ac_func
in times clock kill getrlimit setrlimit atoq \
10048 popen sysconf strsignal getrusage nl_langinfo \
10049 gettimeofday mbstowcs wcswidth mmap setlocale \
10050 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
10052 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10053 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10054 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10055 cat >>confdefs.h
<<_ACEOF
10056 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10063 if test x
$ac_cv_func_mbstowcs = xyes
; then
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10065 $as_echo_n "checking whether mbstowcs works... " >&6; }
10066 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10067 $as_echo_n "(cached) " >&6
10069 if test "$cross_compiling" = yes; then :
10070 gcc_cv_func_mbstowcs_works
=yes
10072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10073 /* end confdefs.h. */
10074 #include <stdlib.h>
10077 mbstowcs(0, "", 0);
10081 if ac_fn_cxx_try_run
"$LINENO"; then :
10082 gcc_cv_func_mbstowcs_works
=yes
10084 gcc_cv_func_mbstowcs_works
=no
10086 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10087 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10092 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10093 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10095 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10100 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10101 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10105 cat >>confdefs.h
<<_ACEOF
10106 #define ssize_t int
10111 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10112 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10116 cat >>confdefs.h
<<_ACEOF
10117 #define caddr_t char *
10124 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10125 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10126 gcc_header_sys_mman_h
=yes
10128 gcc_header_sys_mman_h
=no
10131 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10132 if test "x$ac_cv_func_mmap" = xyes
; then :
10138 if test "$gcc_header_sys_mman_h" != yes \
10139 ||
test "$gcc_func_mmap" != yes; then
10140 gcc_cv_func_mmap_file
=no
10141 gcc_cv_func_mmap_dev_zero
=no
10142 gcc_cv_func_mmap_anon
=no
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10145 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10146 if ${gcc_cv_func_mmap_file+:} false
; then :
10147 $as_echo_n "(cached) " >&6
10149 # Add a system to this blacklist if
10150 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10151 # memory area containing the same data that you'd get if you applied
10152 # read() to the same fd. The only system known to have a problem here
10153 # is VMS, where text files have record structure.
10156 gcc_cv_func_mmap_file
=no
;;
10158 gcc_cv_func_mmap_file
=yes;;
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10162 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10164 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10165 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10166 $as_echo_n "(cached) " >&6
10168 # Add a system to this blacklist if it has mmap() but /dev/zero
10169 # does not exist, or if mmapping /dev/zero does not give anonymous
10170 # zeroed pages with both the following properties:
10171 # 1. If you map N consecutive pages in with one call, and then
10172 # unmap any subset of those pages, the pages that were not
10173 # explicitly unmapped remain accessible.
10174 # 2. If you map two adjacent blocks of memory and then unmap them
10175 # both at once, they must both go away.
10176 # Systems known to be in this category are Windows (all variants),
10179 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10180 gcc_cv_func_mmap_dev_zero
=no
;;
10182 gcc_cv_func_mmap_dev_zero
=yes;;
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10186 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10188 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10190 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10191 if ${gcc_cv_decl_map_anon+:} false
; then :
10192 $as_echo_n "(cached) " >&6
10194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10195 /* end confdefs.h. */
10196 #include <sys/types.h>
10197 #include <sys/mman.h>
10198 #include <unistd.h>
10200 #ifndef MAP_ANONYMOUS
10201 #define MAP_ANONYMOUS MAP_ANON
10207 int n = MAP_ANONYMOUS;
10212 if ac_fn_cxx_try_compile
"$LINENO"; then :
10213 gcc_cv_decl_map_anon
=yes
10215 gcc_cv_decl_map_anon
=no
10217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10220 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10222 if test $gcc_cv_decl_map_anon = no
; then
10223 gcc_cv_func_mmap_anon
=no
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10226 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10227 if ${gcc_cv_func_mmap_anon+:} false
; then :
10228 $as_echo_n "(cached) " >&6
10230 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10231 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10232 # doesn't give anonymous zeroed pages with the same properties listed
10233 # above for use of /dev/zero.
10234 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10236 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10237 gcc_cv_func_mmap_anon
=no
;;
10239 gcc_cv_func_mmap_anon
=yes;;
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10243 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10247 if test $gcc_cv_func_mmap_file = yes; then
10249 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10252 if test $gcc_cv_func_mmap_dev_zero = yes; then
10254 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10257 if test $gcc_cv_func_mmap_anon = yes; then
10259 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10266 # Under VMS, vfork works very differently than on Unix. The standard test
10267 # won't work, and it isn't easily adaptable. It makes more sense to
10269 ac_cv_func_vfork_works
=yes
10272 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10273 if test "x$ac_cv_type_pid_t" = xyes
; then :
10277 cat >>confdefs.h
<<_ACEOF
10283 for ac_header
in vfork.h
10285 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10286 if test "x$ac_cv_header_vfork_h" = xyes
; then :
10287 cat >>confdefs.h
<<_ACEOF
10288 #define HAVE_VFORK_H 1
10294 for ac_func
in fork vfork
10296 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10297 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10298 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10299 cat >>confdefs.h
<<_ACEOF
10300 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10306 if test "x$ac_cv_func_fork" = xyes
; then
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10308 $as_echo_n "checking for working fork... " >&6; }
10309 if ${ac_cv_func_fork_works+:} false
; then :
10310 $as_echo_n "(cached) " >&6
10312 if test "$cross_compiling" = yes; then :
10313 ac_cv_func_fork_works
=cross
10315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10316 /* end confdefs.h. */
10317 $ac_includes_default
10322 /* By Ruediger Kuhlmann. */
10323 return fork () < 0;
10329 if ac_fn_cxx_try_run
"$LINENO"; then :
10330 ac_cv_func_fork_works
=yes
10332 ac_cv_func_fork_works
=no
10334 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10335 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10340 $as_echo "$ac_cv_func_fork_works" >&6; }
10343 ac_cv_func_fork_works
=$ac_cv_func_fork
10345 if test "x$ac_cv_func_fork_works" = xcross
; then
10347 *-*-amigaos* |
*-*-msdosdjgpp*)
10348 # Override, as these systems have only a dummy fork() stub
10349 ac_cv_func_fork_works
=no
10352 ac_cv_func_fork_works
=yes
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10356 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10358 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10359 if test "x$ac_cv_func_vfork" = xyes
; then
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10361 $as_echo_n "checking for working vfork... " >&6; }
10362 if ${ac_cv_func_vfork_works+:} false
; then :
10363 $as_echo_n "(cached) " >&6
10365 if test "$cross_compiling" = yes; then :
10366 ac_cv_func_vfork_works
=cross
10368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10369 /* end confdefs.h. */
10370 /* Thanks to Paul Eggert for this test. */
10371 $ac_includes_default
10372 #include <sys/wait.h>
10373 #ifdef HAVE_VFORK_H
10374 # include <vfork.h>
10376 /* On some sparc systems, changes by the child to local and incoming
10377 argument registers are propagated back to the parent. The compiler
10378 is told about this with #include <vfork.h>, but some compilers
10379 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10380 static variable whose address is put into a register that is
10381 clobbered by the vfork. */
10384 sparc_address_test (int arg)
10386 sparc_address_test (arg) int arg;
10389 static pid_t child;
10407 pid_t parent = getpid ();
10410 sparc_address_test (0);
10415 /* Here is another test for sparc vfork register problems. This
10416 test uses lots of local variables, at least as many local
10417 variables as main has allocated so far including compiler
10418 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10419 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10420 reuse the register of parent for one of the local variables,
10421 since it will think that parent can't possibly be used any more
10422 in this routine. Assigning to the local variable will thus
10423 munge parent in the parent process. */
10425 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10426 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10427 /* Convince the compiler that p..p7 are live; otherwise, it might
10428 use the same hardware register for all 8 local variables. */
10429 if (p != p1 || p != p2 || p != p3 || p != p4
10430 || p != p5 || p != p6 || p != p7)
10433 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10434 from child file descriptors. If the child closes a descriptor
10435 before it execs or exits, this munges the parent's descriptor
10436 as well. Test for this by closing stdout in the child. */
10437 _exit(close(fileno(stdout)) != 0);
10442 while (wait(&status) != child)
10445 /* Was there some problem with vforking? */
10448 /* Did the child fail? (This shouldn't happen.) */
10451 /* Did the vfork/compiler bug occur? */
10452 || parent != getpid()
10454 /* Did the file descriptor bug occur? */
10455 || fstat(fileno(stdout), &st) != 0
10460 if ac_fn_cxx_try_run
"$LINENO"; then :
10461 ac_cv_func_vfork_works
=yes
10463 ac_cv_func_vfork_works
=no
10465 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10466 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10471 $as_echo "$ac_cv_func_vfork_works" >&6; }
10474 if test "x$ac_cv_func_fork_works" = xcross
; then
10475 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10477 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10480 if test "x$ac_cv_func_vfork_works" = xyes
; then
10482 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10486 $as_echo "#define vfork fork" >>confdefs.h
10489 if test "x$ac_cv_func_fork_works" = xyes
; then
10491 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10497 if test "X$prefix" = "XNONE"; then
10498 acl_final_prefix
="$ac_default_prefix"
10500 acl_final_prefix
="$prefix"
10502 if test "X$exec_prefix" = "XNONE"; then
10503 acl_final_exec_prefix
='${prefix}'
10505 acl_final_exec_prefix
="$exec_prefix"
10507 acl_save_prefix
="$prefix"
10508 prefix
="$acl_final_prefix"
10509 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10510 prefix
="$acl_save_prefix"
10513 # Check whether --with-gnu-ld was given.
10514 if test "${with_gnu_ld+set}" = set; then :
10515 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10520 # Prepare PATH_SEPARATOR.
10521 # The user is always right.
10522 if test "${PATH_SEPARATOR+set}" != set; then
10523 echo "#! /bin/sh" >conf$$.sh
10524 echo "exit 0" >>conf$$.sh
10526 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10534 if test "$GCC" = yes; then
10535 # Check if gcc -print-prog-name=ld gives a path.
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10537 $as_echo_n "checking for ld used by GCC... " >&6; }
10540 # gcc leaves a trailing carriage return which upsets mingw
10541 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10543 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10546 # Accept absolute paths.
10547 [\\/]* |
[A-Za-z
]:[\\/]*)
10548 re_direlt
='/[^/][^/]*/\.\./'
10549 # Canonicalize the path of ld
10550 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10551 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10552 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10554 test -z "$LD" && LD
="$ac_prog"
10557 # If it fails, then pretend we aren't using GCC.
10561 # If it is relative, then search for the first ld in PATH.
10562 with_gnu_ld
=unknown
10565 elif test "$with_gnu_ld" = yes; then
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10567 $as_echo_n "checking for GNU ld... " >&6; }
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10570 $as_echo_n "checking for non-GNU ld... " >&6; }
10572 if ${acl_cv_path_LD+:} false
; then :
10573 $as_echo_n "(cached) " >&6
10575 if test -z "$LD"; then
10576 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10577 for ac_dir
in $PATH; do
10578 test -z "$ac_dir" && ac_dir
=.
10579 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10580 acl_cv_path_LD
="$ac_dir/$ac_prog"
10581 # Check to see if the program is GNU ld. I'd rather use --version,
10582 # but apparently some GNU ld's only accept -v.
10583 # Break only if it was the GNU/non-GNU ld that we prefer.
10584 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10585 test "$with_gnu_ld" != no
&& break
10587 test "$with_gnu_ld" != yes && break
10593 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10597 LD
="$acl_cv_path_LD"
10598 if test -n "$LD"; then
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10600 $as_echo "$LD" >&6; }
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603 $as_echo "no" >&6; }
10605 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10607 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10608 if ${acl_cv_prog_gnu_ld+:} false
; then :
10609 $as_echo_n "(cached) " >&6
10611 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10612 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10613 acl_cv_prog_gnu_ld
=yes
10615 acl_cv_prog_gnu_ld
=no
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10619 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10620 with_gnu_ld
=$acl_cv_prog_gnu_ld
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10625 $as_echo_n "checking for shared library run path origin... " >&6; }
10626 if ${acl_cv_rpath+:} false
; then :
10627 $as_echo_n "(cached) " >&6
10630 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10631 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10633 rm -f .
/conftest.sh
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10638 $as_echo "$acl_cv_rpath" >&6; }
10640 libext
="$acl_cv_libext"
10641 shlibext
="$acl_cv_shlibext"
10642 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10643 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10644 hardcode_direct
="$acl_cv_hardcode_direct"
10645 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10646 # Check whether --enable-rpath was given.
10647 if test "${enable_rpath+set}" = set; then :
10648 enableval
=$enable_rpath; :
10662 acl_save_prefix
="$prefix"
10663 prefix
="$acl_final_prefix"
10664 acl_save_exec_prefix
="$exec_prefix"
10665 exec_prefix
="$acl_final_exec_prefix"
10667 eval additional_includedir
=\"$includedir\"
10668 eval additional_libdir
=\"$libdir\"
10670 exec_prefix
="$acl_save_exec_prefix"
10671 prefix
="$acl_save_prefix"
10674 # Check whether --with-libiconv-prefix was given.
10675 if test "${with_libiconv_prefix+set}" = set; then :
10676 withval
=$with_libiconv_prefix;
10677 if test "X$withval" = "Xno"; then
10680 if test "X$withval" = "X"; then
10682 acl_save_prefix
="$prefix"
10683 prefix
="$acl_final_prefix"
10684 acl_save_exec_prefix
="$exec_prefix"
10685 exec_prefix
="$acl_final_exec_prefix"
10687 eval additional_includedir
=\"$includedir\"
10688 eval additional_libdir
=\"$libdir\"
10690 exec_prefix
="$acl_save_exec_prefix"
10691 prefix
="$acl_save_prefix"
10694 additional_includedir
="$withval/include"
10695 additional_libdir
="$withval/lib"
10706 names_already_handled
=
10707 names_next_round
='iconv '
10708 while test -n "$names_next_round"; do
10709 names_this_round
="$names_next_round"
10711 for name
in $names_this_round; do
10713 for n
in $names_already_handled; do
10714 if test "$n" = "$name"; then
10715 already_handled
=yes
10719 if test -z "$already_handled"; then
10720 names_already_handled
="$names_already_handled $name"
10721 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10722 eval value
=\"\
$HAVE_LIB$uppername\"
10723 if test -n "$value"; then
10724 if test "$value" = yes; then
10725 eval value
=\"\
$LIB$uppername\"
10726 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10727 eval value
=\"\
$LTLIB$uppername\"
10728 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10737 if test $use_additional = yes; then
10738 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10739 found_dir
="$additional_libdir"
10740 found_so
="$additional_libdir/lib$name.$shlibext"
10741 if test -f "$additional_libdir/lib$name.la"; then
10742 found_la
="$additional_libdir/lib$name.la"
10745 if test -f "$additional_libdir/lib$name.$libext"; then
10746 found_dir
="$additional_libdir"
10747 found_a
="$additional_libdir/lib$name.$libext"
10748 if test -f "$additional_libdir/lib$name.la"; then
10749 found_la
="$additional_libdir/lib$name.la"
10754 if test "X$found_dir" = "X"; then
10755 for x
in $LDFLAGS $LTLIBICONV; do
10757 acl_save_prefix
="$prefix"
10758 prefix
="$acl_final_prefix"
10759 acl_save_exec_prefix
="$exec_prefix"
10760 exec_prefix
="$acl_final_exec_prefix"
10762 exec_prefix
="$acl_save_exec_prefix"
10763 prefix
="$acl_save_prefix"
10767 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10768 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10770 found_so
="$dir/lib$name.$shlibext"
10771 if test -f "$dir/lib$name.la"; then
10772 found_la
="$dir/lib$name.la"
10775 if test -f "$dir/lib$name.$libext"; then
10777 found_a
="$dir/lib$name.$libext"
10778 if test -f "$dir/lib$name.la"; then
10779 found_la
="$dir/lib$name.la"
10785 if test "X$found_dir" != "X"; then
10790 if test "X$found_dir" != "X"; then
10791 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10792 if test "X$found_so" != "X"; then
10793 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10794 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10797 for x
in $ltrpathdirs; do
10798 if test "X$x" = "X$found_dir"; then
10803 if test -z "$haveit"; then
10804 ltrpathdirs
="$ltrpathdirs $found_dir"
10806 if test "$hardcode_direct" = yes; then
10807 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10809 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10810 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10812 for x
in $rpathdirs; do
10813 if test "X$x" = "X$found_dir"; then
10818 if test -z "$haveit"; then
10819 rpathdirs
="$rpathdirs $found_dir"
10823 for x
in $LDFLAGS $LIBICONV; do
10825 acl_save_prefix
="$prefix"
10826 prefix
="$acl_final_prefix"
10827 acl_save_exec_prefix
="$exec_prefix"
10828 exec_prefix
="$acl_final_exec_prefix"
10830 exec_prefix
="$acl_save_exec_prefix"
10831 prefix
="$acl_save_prefix"
10833 if test "X$x" = "X-L$found_dir"; then
10838 if test -z "$haveit"; then
10839 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10841 if test "$hardcode_minus_L" != no
; then
10842 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10844 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10850 if test "X$found_a" != "X"; then
10851 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10853 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10856 additional_includedir
=
10857 case "$found_dir" in
10859 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10860 additional_includedir
="$basedir/include"
10863 if test "X$additional_includedir" != "X"; then
10864 if test "X$additional_includedir" != "X/usr/include"; then
10866 if test "X$additional_includedir" = "X/usr/local/include"; then
10867 if test -n "$GCC"; then
10869 linux
*) haveit
=yes;;
10873 if test -z "$haveit"; then
10874 for x
in $CPPFLAGS $INCICONV; do
10876 acl_save_prefix
="$prefix"
10877 prefix
="$acl_final_prefix"
10878 acl_save_exec_prefix
="$exec_prefix"
10879 exec_prefix
="$acl_final_exec_prefix"
10881 exec_prefix
="$acl_save_exec_prefix"
10882 prefix
="$acl_save_prefix"
10884 if test "X$x" = "X-I$additional_includedir"; then
10889 if test -z "$haveit"; then
10890 if test -d "$additional_includedir"; then
10891 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10897 if test -n "$found_la"; then
10898 save_libdir
="$libdir"
10899 case "$found_la" in
10900 */* |
*\\*) .
"$found_la" ;;
10901 *) .
"./$found_la" ;;
10903 libdir
="$save_libdir"
10904 for dep
in $dependency_libs; do
10907 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10908 if test "X$additional_libdir" != "X/usr/lib"; then
10910 if test "X$additional_libdir" = "X/usr/local/lib"; then
10911 if test -n "$GCC"; then
10913 linux
*) haveit
=yes;;
10917 if test -z "$haveit"; then
10919 for x
in $LDFLAGS $LIBICONV; do
10921 acl_save_prefix
="$prefix"
10922 prefix
="$acl_final_prefix"
10923 acl_save_exec_prefix
="$exec_prefix"
10924 exec_prefix
="$acl_final_exec_prefix"
10926 exec_prefix
="$acl_save_exec_prefix"
10927 prefix
="$acl_save_prefix"
10929 if test "X$x" = "X-L$additional_libdir"; then
10934 if test -z "$haveit"; then
10935 if test -d "$additional_libdir"; then
10936 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10940 for x
in $LDFLAGS $LTLIBICONV; do
10942 acl_save_prefix
="$prefix"
10943 prefix
="$acl_final_prefix"
10944 acl_save_exec_prefix
="$exec_prefix"
10945 exec_prefix
="$acl_final_exec_prefix"
10947 exec_prefix
="$acl_save_exec_prefix"
10948 prefix
="$acl_save_prefix"
10950 if test "X$x" = "X-L$additional_libdir"; then
10955 if test -z "$haveit"; then
10956 if test -d "$additional_libdir"; then
10957 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10964 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10965 if test "$enable_rpath" != no
; then
10967 for x
in $rpathdirs; do
10968 if test "X$x" = "X$dir"; then
10973 if test -z "$haveit"; then
10974 rpathdirs
="$rpathdirs $dir"
10977 for x
in $ltrpathdirs; do
10978 if test "X$x" = "X$dir"; then
10983 if test -z "$haveit"; then
10984 ltrpathdirs
="$ltrpathdirs $dir"
10989 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10992 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10995 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10996 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11002 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11003 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11009 if test "X$rpathdirs" != "X"; then
11010 if test -n "$hardcode_libdir_separator"; then
11012 for found_dir
in $rpathdirs; do
11013 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11015 acl_save_libdir
="$libdir"
11017 eval flag
=\"$hardcode_libdir_flag_spec\"
11018 libdir
="$acl_save_libdir"
11019 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11021 for found_dir
in $rpathdirs; do
11022 acl_save_libdir
="$libdir"
11023 libdir
="$found_dir"
11024 eval flag
=\"$hardcode_libdir_flag_spec\"
11025 libdir
="$acl_save_libdir"
11026 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11030 if test "X$ltrpathdirs" != "X"; then
11031 for found_dir
in $ltrpathdirs; do
11032 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11043 $as_echo_n "checking for iconv... " >&6; }
11044 if ${am_cv_func_iconv+:} false
; then :
11045 $as_echo_n "(cached) " >&6
11048 am_cv_func_iconv
="no, consider installing GNU libiconv"
11050 am_save_CPPFLAGS
="$CPPFLAGS"
11051 CPPFLAGS
="$CPPFLAGS $INCICONV"
11052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11053 /* end confdefs.h. */
11054 #include <stdlib.h>
11059 iconv_t cd = iconv_open("","");
11060 iconv(cd,NULL,NULL,NULL,NULL);
11066 if ac_fn_cxx_try_link
"$LINENO"; then :
11067 am_cv_func_iconv
=yes
11069 rm -f core conftest.err conftest.
$ac_objext \
11070 conftest
$ac_exeext conftest.
$ac_ext
11071 CPPFLAGS
="$am_save_CPPFLAGS"
11073 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
11074 for _libs
in .libs _libs
; do
11075 am_save_CPPFLAGS
="$CPPFLAGS"
11076 am_save_LIBS
="$LIBS"
11077 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
11078 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11081 #include <stdlib.h>
11086 iconv_t cd = iconv_open("","");
11087 iconv(cd,NULL,NULL,NULL,NULL);
11093 if ac_fn_cxx_try_link
"$LINENO"; then :
11094 INCICONV
="-I../libiconv/include"
11095 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
11096 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
11097 am_cv_lib_iconv
=yes
11098 am_cv_func_iconv
=yes
11100 rm -f core conftest.err conftest.
$ac_objext \
11101 conftest
$ac_exeext conftest.
$ac_ext
11102 CPPFLAGS
="$am_save_CPPFLAGS"
11103 LIBS
="$am_save_LIBS"
11104 if test "$am_cv_func_iconv" = "yes"; then
11110 if test "$am_cv_func_iconv" != yes; then
11111 am_save_CPPFLAGS
="$CPPFLAGS"
11112 am_save_LIBS
="$LIBS"
11113 CPPFLAGS
="$CPPFLAGS $INCICONV"
11114 LIBS
="$LIBS $LIBICONV"
11115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h. */
11117 #include <stdlib.h>
11122 iconv_t cd = iconv_open("","");
11123 iconv(cd,NULL,NULL,NULL,NULL);
11129 if ac_fn_cxx_try_link
"$LINENO"; then :
11130 am_cv_lib_iconv
=yes
11131 am_cv_func_iconv
=yes
11133 rm -f core conftest.err conftest.
$ac_objext \
11134 conftest
$ac_exeext conftest.
$ac_ext
11135 CPPFLAGS
="$am_save_CPPFLAGS"
11136 LIBS
="$am_save_LIBS"
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11141 $as_echo "$am_cv_func_iconv" >&6; }
11142 if test "$am_cv_func_iconv" = yes; then
11144 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11147 if test "$am_cv_lib_iconv" = yes; then
11149 for element
in $INCICONV; do
11151 for x
in $CPPFLAGS; do
11153 acl_save_prefix
="$prefix"
11154 prefix
="$acl_final_prefix"
11155 acl_save_exec_prefix
="$exec_prefix"
11156 exec_prefix
="$acl_final_exec_prefix"
11158 exec_prefix
="$acl_save_exec_prefix"
11159 prefix
="$acl_save_prefix"
11161 if test "X$x" = "X$element"; then
11166 if test -z "$haveit"; then
11167 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11172 $as_echo_n "checking how to link with libiconv... " >&6; }
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11174 $as_echo "$LIBICONV" >&6; }
11182 if test "$am_cv_func_iconv" = yes; then
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11184 $as_echo_n "checking for iconv declaration... " >&6; }
11185 if ${am_cv_proto_iconv+:} false
; then :
11186 $as_echo_n "(cached) " >&6
11189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11190 /* end confdefs.h. */
11192 #include <stdlib.h>
11198 #if defined(__STDC__) || defined(__cplusplus)
11199 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11212 if ac_fn_cxx_try_compile
"$LINENO"; then :
11213 am_cv_proto_iconv_arg1
=""
11215 am_cv_proto_iconv_arg1
="const"
11217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11218 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);"
11221 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11223 }$am_cv_proto_iconv" >&5
11225 }$am_cv_proto_iconv" >&6; }
11227 cat >>confdefs.h
<<_ACEOF
11228 #define ICONV_CONST $am_cv_proto_iconv_arg1
11234 # Until we have in-tree GNU iconv:
11236 if test -f "$LTLIBICONV"; then
11237 LIBICONV_DEP
=$LTLIBICONV
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11243 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11244 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11245 $as_echo_n "(cached) " >&6
11247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11249 #include <locale.h>
11258 if ac_fn_cxx_try_link
"$LINENO"; then :
11259 am_cv_val_LC_MESSAGES
=yes
11261 am_cv_val_LC_MESSAGES
=no
11263 rm -f core conftest.err conftest.
$ac_objext \
11264 conftest
$ac_exeext conftest.
$ac_ext
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11267 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11268 if test $am_cv_val_LC_MESSAGES = yes; then
11270 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11277 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11278 if ${am_cv_langinfo_codeset+:} false
; then :
11279 $as_echo_n "(cached) " >&6
11281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11282 /* end confdefs.h. */
11283 #include <langinfo.h>
11287 char* cs = nl_langinfo(CODESET);
11292 if ac_fn_cxx_try_link
"$LINENO"; then :
11293 am_cv_langinfo_codeset
=yes
11295 am_cv_langinfo_codeset
=no
11297 rm -f core conftest.err conftest.
$ac_objext \
11298 conftest
$ac_exeext conftest.
$ac_ext
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11302 $as_echo "$am_cv_langinfo_codeset" >&6; }
11303 if test $am_cv_langinfo_codeset = yes; then
11305 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11310 # We will need to find libiberty.h and ansidecl.h
11311 saved_CFLAGS
="$CFLAGS"
11312 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11313 saved_CXXFLAGS
="$CXXFLAGS"
11314 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11316 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11317 # normal autoconf function for these. But force definition of
11318 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11319 # basename handling in libiberty.h.
11320 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11321 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11322 #undef HAVE_DECL_BASENAME
11323 #define HAVE_DECL_BASENAME 1
11324 #include \"ansidecl.h\"
11325 #include \"system.h\"
11327 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11333 cat >>confdefs.h
<<_ACEOF
11334 #define HAVE_DECL_BASENAME $ac_have_decl
11336 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11337 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11338 #undef HAVE_DECL_BASENAME
11339 #define HAVE_DECL_BASENAME 1
11340 #include \"ansidecl.h\"
11341 #include \"system.h\"
11343 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11349 cat >>confdefs.h
<<_ACEOF
11350 #define HAVE_DECL_STRSTR $ac_have_decl
11354 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11355 madvise stpcpy strnlen strsignal strverscmp \
11356 strtol strtoul strtoll strtoull setenv unsetenv \
11357 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11358 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
11360 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11362 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11363 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11364 $as_echo_n "(cached) " >&6
11366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11369 #define $ac_tr_decl 1
11371 #include "ansidecl.h"
11372 #include "system.h"
11378 char *(*pfn) = (char *(*)) $ac_func ;
11384 if ac_fn_cxx_try_compile
"$LINENO"; then :
11385 eval "gcc_cv_have_decl_$ac_func=yes"
11387 eval "gcc_cv_have_decl_$ac_func=no"
11389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11392 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11394 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11395 #define $ac_tr_decl 1
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11400 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11401 #define $ac_tr_decl 0
11409 for ac_func
in getrlimit setrlimit getrusage
11411 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11413 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11414 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11415 $as_echo_n "(cached) " >&6
11417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11418 /* end confdefs.h. */
11420 #define $ac_tr_decl 1
11422 #include "ansidecl.h"
11423 #include "system.h"
11424 #ifdef HAVE_SYS_RESOURCE_H
11425 #include <sys/resource.h>
11433 char *(*pfn) = (char *(*)) $ac_func ;
11439 if ac_fn_cxx_try_compile
"$LINENO"; then :
11440 eval "gcc_cv_have_decl_$ac_func=yes"
11442 eval "gcc_cv_have_decl_$ac_func=no"
11444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11447 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11449 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11450 #define $ac_tr_decl 1
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11456 #define $ac_tr_decl 0
11464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h. */
11467 #include "ansidecl.h"
11468 #include "system.h"
11469 #ifdef HAVE_SYS_RESOURCE_H
11470 #include <sys/resource.h>
11481 if ac_fn_cxx_try_compile
"$LINENO"; then :
11485 $as_echo "#define rlim_t long" >>confdefs.h
11488 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11490 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11491 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11492 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11493 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11494 for ac_func
in ldgetname
11496 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11498 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11499 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11500 $as_echo_n "(cached) " >&6
11502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11505 #define $ac_tr_decl 1
11507 #include "ansidecl.h"
11508 #include "system.h"
11509 #ifdef HAVE_LDFCN_H
11520 char *(*pfn) = (char *(*)) $ac_func ;
11526 if ac_fn_cxx_try_compile
"$LINENO"; then :
11527 eval "gcc_cv_have_decl_$ac_func=yes"
11529 eval "gcc_cv_have_decl_$ac_func=no"
11531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11534 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11536 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11537 #define $ac_tr_decl 1
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11543 #define $ac_tr_decl 0
11551 for ac_func
in times
11553 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11555 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11556 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11557 $as_echo_n "(cached) " >&6
11559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11562 #define $ac_tr_decl 1
11564 #include "ansidecl.h"
11565 #include "system.h"
11566 #ifdef HAVE_SYS_TIMES_H
11567 #include <sys/times.h>
11575 char *(*pfn) = (char *(*)) $ac_func ;
11581 if ac_fn_cxx_try_compile
"$LINENO"; then :
11582 eval "gcc_cv_have_decl_$ac_func=yes"
11584 eval "gcc_cv_have_decl_$ac_func=no"
11586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11589 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11591 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11592 #define $ac_tr_decl 1
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11597 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11598 #define $ac_tr_decl 0
11606 for ac_func
in sigaltstack
11608 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11610 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11611 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11612 $as_echo_n "(cached) " >&6
11614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11615 /* end confdefs.h. */
11617 #define $ac_tr_decl 1
11619 #include "ansidecl.h"
11620 #include "system.h"
11621 #include <signal.h>
11628 char *(*pfn) = (char *(*)) $ac_func ;
11634 if ac_fn_cxx_try_compile
"$LINENO"; then :
11635 eval "gcc_cv_have_decl_$ac_func=yes"
11637 eval "gcc_cv_have_decl_$ac_func=no"
11639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11642 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11644 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11645 #define $ac_tr_decl 1
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11651 #define $ac_tr_decl 0
11659 # More time-related stuff.
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11661 $as_echo_n "checking for struct tms... " >&6; }
11662 if ${ac_cv_struct_tms+:} false
; then :
11663 $as_echo_n "(cached) " >&6
11666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11667 /* end confdefs.h. */
11669 #include "ansidecl.h"
11670 #include "system.h"
11671 #ifdef HAVE_SYS_TIMES_H
11672 #include <sys/times.h>
11683 if ac_fn_cxx_try_compile
"$LINENO"; then :
11684 ac_cv_struct_tms
=yes
11686 ac_cv_struct_tms
=no
11688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11691 $as_echo "$ac_cv_struct_tms" >&6; }
11692 if test $ac_cv_struct_tms = yes; then
11694 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11698 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11699 # revisit after autoconf 2.50.
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11701 $as_echo_n "checking for clock_t... " >&6; }
11702 if ${gcc_cv_type_clock_t+:} false
; then :
11703 $as_echo_n "(cached) " >&6
11706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11707 /* end confdefs.h. */
11709 #include "ansidecl.h"
11710 #include "system.h"
11720 if ac_fn_cxx_try_compile
"$LINENO"; then :
11721 gcc_cv_type_clock_t
=yes
11723 gcc_cv_type_clock_t
=no
11725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11728 $as_echo "$gcc_cv_type_clock_t" >&6; }
11729 if test $gcc_cv_type_clock_t = yes; then
11731 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11735 # Check if F_SETLKW is supported by fcntl.
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11737 $as_echo_n "checking for F_SETLKW... " >&6; }
11738 if ${ac_cv_f_setlkw+:} false
; then :
11739 $as_echo_n "(cached) " >&6
11742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11743 /* end confdefs.h. */
11755 return fcntl (1, F_SETLKW, &fl);
11760 if ac_fn_cxx_try_compile
"$LINENO"; then :
11765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11768 $as_echo "$ac_cv_f_setlkw" >&6; }
11769 if test $ac_cv_f_setlkw = yes; then
11771 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11775 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11776 CFLAGS
="$saved_CFLAGS"
11777 CXXFLAGS
="$saved_CXXFLAGS"
11779 # mkdir takes a single argument on some systems.
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11781 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11782 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
11783 $as_echo_n "(cached) " >&6
11785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11786 /* end confdefs.h. */
11788 #include <sys/types.h>
11789 #ifdef HAVE_SYS_STAT_H
11790 # include <sys/stat.h>
11792 #ifdef HAVE_UNISTD_H
11793 # include <unistd.h>
11795 #ifdef HAVE_DIRECT_H
11796 # include <direct.h>
11806 if ac_fn_cxx_try_compile
"$LINENO"; then :
11807 gcc_cv_mkdir_takes_one_arg
=no
11809 gcc_cv_mkdir_takes_one_arg
=yes
11811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11814 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11815 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11817 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11828 # With Setjmp/Longjmp based exception handling.
11829 # Check whether --enable-sjlj-exceptions was given.
11830 if test "${enable_sjlj_exceptions+set}" = set; then :
11831 enableval
=$enable_sjlj_exceptions; case $target in
11833 if test $enableval != yes; then
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11835 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11840 force_sjlj_exceptions
=yes
11844 force_sjlj_exceptions
=yes
11848 force_sjlj_exceptions
=yes
11852 force_sjlj_exceptions
=no
11857 if test $force_sjlj_exceptions = yes; then
11858 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11860 cat >>confdefs.h
<<_ACEOF
11861 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11866 # --------------------------------------------------------
11867 # Build, host, and target specific configuration fragments
11868 # --------------------------------------------------------
11870 # Collect build-machine-specific information.
11871 .
${srcdir}/config.build ||
exit 1
11873 # Collect host-machine-specific information.
11874 .
${srcdir}/config.
host ||
exit 1
11878 # Collect target-machine-specific information.
11879 .
${srcdir}/config.gcc ||
exit 1
11881 extra_objs
="${host_extra_objs} ${extra_objs}"
11882 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11884 # Default the target-machine variables that were not explicitly set.
11885 if test x
"$tm_file" = x
11886 then tm_file
=$cpu_type/$cpu_type.h
; fi
11888 if test x
"$extra_headers" = x
11889 then extra_headers
=; fi
11891 if test x
$md_file = x
11892 then md_file
=$cpu_type/$cpu_type.md
; fi
11894 if test x
$out_file = x
11895 then out_file
=$cpu_type/$cpu_type.c
; fi
11897 if test x
"$tmake_file" = x
11898 then tmake_file
=$cpu_type/t-
$cpu_type
11901 # Support --enable-initfini-array.
11902 if test x
$enable_initfini_array != xno
; then
11903 tm_file
="${tm_file} initfini-array.h"
11906 if test x
"$dwarf2" = xyes
11907 then tm_file
="$tm_file tm-dwarf2.h"
11910 # Say what files are being used for the output code and MD file.
11911 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11912 echo "Using \`$srcdir/config/$md_file' as machine description file."
11914 # If any of the xm_file variables contain nonexistent files, warn
11915 # about them and drop them.
11918 for x
in $build_xm_file; do
11919 if test -f $srcdir/config
/$x
11921 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11922 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11925 build_xm_file
="$bx"
11928 for x
in $host_xm_file; do
11929 if test -f $srcdir/config
/$x
11931 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11932 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11938 for x
in $xm_file; do
11939 if test -f $srcdir/config
/$x
11941 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11942 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11948 for f
in $tm_file; do
11951 if test $count = ax
; then
11952 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11954 echo "Using the following target machine macro files:"
11955 for f
in $tm_file; do
11956 echo " $srcdir/config/$f"
11960 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11962 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11966 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11968 cat >>confdefs.h
<<_ACEOF
11969 #define HAVE_GNU_LD $gnu_ld_bool
11973 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11975 cat >>confdefs.h
<<_ACEOF
11976 #define HAVE_GNU_AS $gnu_as_bool
11981 for f
in $host_xm_file; do
11984 if test $count = a
; then
11986 elif test $count = ax
; then
11987 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11989 echo "Using the following host machine macro files:"
11990 for f
in $host_xm_file; do
11991 echo " $srcdir/config/$f"
11994 echo "Using ${out_host_hook_obj} for host machine hooks."
11996 if test "$host_xm_file" != "$build_xm_file"; then
11998 for f
in $build_xm_file; do
12001 if test $count = a
; then
12003 elif test $count = ax
; then
12004 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12006 echo "Using the following build machine macro files:"
12007 for f
in $build_xm_file; do
12008 echo " $srcdir/config/$f"
12013 if test -n "$configured_native_system_header_dir"; then
12014 native_system_header_dir
=$configured_native_system_header_dir
12016 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
12020 powerpc
*-*-darwin*)
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12022 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12023 if ${gcc_cv_mcontext_underscores+:} false
; then :
12024 $as_echo_n "(cached) " >&6
12026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12027 /* end confdefs.h. */
12029 #include <sys/cdefs.h>
12030 #include <sys/signal.h>
12031 #include <ucontext.h>
12032 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12035 if ac_fn_cxx_try_compile
"$LINENO"; then :
12036 gcc_cv_mcontext_underscores
=no
12038 gcc_cv_mcontext_underscores
=yes
12040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12043 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12044 if test $gcc_cv_mcontext_underscores = yes; then
12046 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12056 # Check if a valid thread package
12057 case ${enable_threads} in
12060 target_thread_file
='single'
12064 target_thread_file
='single'
12066 aix | dce | lynx | mipssde | posix | rtems | \
12067 single | tpf | vxworks | win32
)
12068 target_thread_file
=${enable_threads}
12071 echo "${enable_threads} is an unknown thread package" 1>&2
12076 if test x
${thread_file} = x
; then
12077 # No thread file set by target-specific clauses in config.gcc,
12078 # so use file chosen by default logic above
12079 thread_file
=${target_thread_file}
12087 if test x
$enable___cxa_atexit = xyes || \
12088 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12089 if test x
$host = x
$target; then
12091 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12092 # keyed to flag_use_cxa_atexit
12100 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12101 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
12104 echo "__cxa_atexit can't be enabled on this target"
12110 # We can't check for __cxa_atexit when building a cross, so assume
12114 if test x
$use_cxa_atexit = xyes
; then
12116 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12121 # Look for a file containing extra machine modes.
12122 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12123 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12126 cat >>confdefs.h
<<_ACEOF
12127 #define EXTRA_MODES_FILE "config/$extra_modes"
12132 # Convert extra_options into a form suitable for Makefile use.
12135 for f
in $extra_options; do
12136 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12137 all_opt_files
="$all_opt_files $srcdir/config/$f"
12141 # auto-host.h is the file containing items generated by autoconf and is
12142 # the first file included by config.h.
12143 # If host=build, it is correct to have bconfig include auto-host.h
12144 # as well. If host!=build, we are in error and need to do more
12145 # work to find out the build config parameters.
12146 if test x
$host = x
$build
12148 build_auto
=auto-host.h
12150 # We create a subdir, then run autoconf in the subdir.
12151 # To prevent recursion we set host and build for the new
12152 # invocation of configure to the build for this invocation
12159 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12160 *) realsrcdir
=..
/${srcdir};;
12162 # Clearing GMPINC is necessary to prevent host headers being
12163 # used by the build compiler. Defining GENERATOR_FILE stops
12164 # system.h from including gmp.h.
12165 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12166 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
12167 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
12168 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
12169 ${realsrcdir}/configure \
12170 --enable-languages=${enable_languages-all} \
12171 --target=$target_alias --host=$build_alias --build=$build_alias
12173 # We just finished tests for the build machine, so rename
12174 # the file auto-build.h in the gcc directory.
12175 mv auto-host.h ..
/auto-build.h
12178 build_auto
=auto-build.h
12182 tm_file
="${tm_file} defaults.h"
12183 tm_p_file
="${tm_p_file} tm-preds.h"
12184 tm_d_file
="${tm_d_file} defaults.h"
12185 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12186 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12187 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12188 # put this back in temporarily.
12189 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12195 # Compile in configure arguments.
12196 if test -f configargs.h
; then
12197 # Being re-configured.
12198 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12199 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12200 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12201 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12204 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12207 # Double all backslashes and backslash all quotes to turn
12208 # gcc_config_arguments into a C string.
12209 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12210 $gcc_config_arguments
12212 gcc_config_arguments_str
=`cat conftest.out`
12215 cat > configargs.h
<<EOF
12216 /* Generated automatically. */
12217 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12218 static const char thread_model[] = "$thread_file";
12220 static const struct {
12221 const char *name, *value;
12222 } configure_default_options[] = $configure_default_options;
12225 gcc_BASEVER
=`cat $srcdir/BASE-VER`
12226 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
12227 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
12228 if test -f $srcdir/REVISION
; then
12229 gcc_REVISION
=`cat $srcdir/REVISION`
12233 cat > plugin-version.h
<<EOF
12234 #include "configargs.h"
12236 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12237 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12238 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12239 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12241 static char basever[] = "$gcc_BASEVER";
12242 static char datestamp[] = "$gcc_DATESTAMP";
12243 static char devphase[] = "$gcc_DEVPHASE";
12244 static char revision[] = "$gcc_REVISION";
12246 /* FIXME plugins: We should make the version information more precise.
12247 One way to do is to add a checksum. */
12249 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12250 devphase, revision,
12251 configuration_arguments};
12254 # Determine what GCC version number to use in filesystem paths.
12256 get_gcc_base_ver
="cat"
12258 # Check whether --with-gcc-major-version-only was given.
12259 if test "${with_gcc_major_version_only+set}" = set; then :
12260 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
12261 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
12269 # Internationalization
12270 # If we haven't got the data from the intl directory,
12271 # assume NLS is disabled.
12280 if test -f ..
/intl
/config.intl
; then
12281 . ..
/intl
/config.intl
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12284 $as_echo_n "checking whether NLS is requested... " >&6; }
12285 if test x
"$USE_NLS" != xyes
; then
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287 $as_echo "no" >&6; }
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12290 $as_echo "yes" >&6; }
12292 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12296 $as_echo_n "checking for catalogs to be installed... " >&6; }
12297 # Look for .po and .gmo files in the source directory.
12300 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12301 # If there aren't any .gmo files the shell will give us the
12302 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12304 case "$cat" in *\
**)
12307 # The quadruple backslash is collapsed to a double backslash
12308 # by the backticks, then collapsed again by the double quotes,
12309 # leaving us with one backslash in the sed expression (right
12310 # before the dot that mustn't act as a wildcard).
12311 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12312 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
12313 # The user is allowed to set LINGUAS to a list of languages to
12314 # install catalogs for. If it's empty that means "all of them."
12315 if test "x$LINGUAS" = x
; then
12316 CATALOGS
="$CATALOGS $cat"
12317 XLINGUAS
="$XLINGUAS $lang"
12319 case "$LINGUAS" in *$lang*)
12320 CATALOGS
="$CATALOGS $cat"
12321 XLINGUAS
="$XLINGUAS $lang"
12326 LINGUAS
="$XLINGUAS"
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12328 $as_echo "$LINGUAS" >&6; }
12341 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12342 # -liconv on the link line twice.
12343 case "$LIBINTL" in *$LIBICONV*)
12347 # Check whether --enable-secureplt was given.
12348 if test "${enable_secureplt+set}" = set; then :
12349 enableval
=$enable_secureplt;
12353 # Check whether --enable-mingw-wildcard was given.
12354 if test "${enable_mingw_wildcard+set}" = set; then :
12355 enableval
=$enable_mingw_wildcard;
12357 enable_mingw_wildcard
=platform
12360 if test x
"$enable_mingw_wildcard" != xplatform
; then :
12362 cat >>confdefs.h
<<_ACEOF
12363 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12368 # Check whether --enable-large-address-aware was given.
12369 if test "${enable_large_address_aware+set}" = set; then :
12370 enableval
=$enable_large_address_aware;
12373 if test x
"$enable_large_address_aware" = xyes
; then :
12375 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12379 # Check whether --enable-leading-mingw64-underscores was given.
12380 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12381 enableval
=$enable_leading_mingw64_underscores;
12384 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
12386 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12390 # Check whether --enable-cld was given.
12391 if test "${enable_cld+set}" = set; then :
12392 enableval
=$enable_cld;
12398 # Check whether --enable-frame-pointer was given.
12399 if test "${enable_frame_pointer+set}" = set; then :
12400 enableval
=$enable_frame_pointer;
12404 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
12405 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12406 enable_frame_pointer
=no
12409 enable_frame_pointer
=yes
12417 i
[34567]86-*-* | x86_64-
*-*)
12418 if test "x$enable_cld" = xyes
; then
12419 tm_defines
="${tm_defines} USE_IX86_CLD=1"
12421 if test "x$enable_frame_pointer" = xyes
; then
12422 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
12427 # Windows32 Registry support for specifying GCC installation paths.
12428 # Check whether --enable-win32-registry was given.
12429 if test "${enable_win32_registry+set}" = set; then :
12430 enableval
=$enable_win32_registry;
12435 win32 | pe | cygwin
* | mingw32
*)
12436 if test "x$enable_win32_registry" != xno
; then
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12438 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12439 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12440 $as_echo_n "(cached) " >&6
12442 ac_func_search_save_LIBS
=$LIBS
12443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h. */
12446 /* Override any GCC internal prototype to avoid an error.
12447 Use char because int might match the return type of a GCC
12448 builtin and then its argument prototype would still apply. */
12452 char RegOpenKeyExA ();
12456 return RegOpenKeyExA ();
12461 for ac_lib
in '' advapi32
; do
12462 if test -z "$ac_lib"; then
12463 ac_res
="none required"
12466 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12468 if ac_fn_cxx_try_link
"$LINENO"; then :
12469 ac_cv_search_RegOpenKeyExA
=$ac_res
12471 rm -f core conftest.err conftest.
$ac_objext \
12473 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12477 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12480 ac_cv_search_RegOpenKeyExA
=no
12482 rm conftest.
$ac_ext
12483 LIBS
=$ac_func_search_save_LIBS
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12486 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12487 ac_res
=$ac_cv_search_RegOpenKeyExA
12488 if test "$ac_res" != no
; then :
12489 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12492 enable_win32_registry
=no
12497 if test "x$enable_win32_registry" != xno
; then
12499 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12502 if test "x$enable_win32_registry" != xyes \
12503 && test "x$enable_win32_registry" != x
; then
12505 cat >>confdefs.h
<<_ACEOF
12506 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12514 # Get an absolute path to the GCC top-level source directory
12515 holddir
=`${PWDCMD-pwd}`
12517 topdir
=`${PWDCMD-pwd}`
12520 # Conditionalize the makefile for this host machine.
12522 for f
in ${host_xmake_file}
12524 if test -f ${srcdir}/config
/$f
12526 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12530 # Conditionalize the makefile for this target machine.
12532 for f
in ${tmake_file}
12534 if test -f ${srcdir}/config
/$f
12536 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12539 tmake_file
="${tmake_file_}"
12541 out_object_file
=`basename $out_file .c`.o
12542 common_out_object_file
=`basename $common_out_file .c`.o
12544 tm_file_list
="options.h"
12545 tm_include_list
="options.h insn-constants.h"
12546 for f
in $tm_file; do
12549 f
=`echo $f | sed 's/^..//'`
12550 tm_file_list
="${tm_file_list} $f"
12551 tm_include_list
="${tm_include_list} $f"
12554 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12555 tm_include_list
="${tm_include_list} $f"
12558 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12559 tm_include_list
="${tm_include_list} config/$f"
12566 for f
in $tm_p_file; do
12569 tm_p_file_list
="${tm_p_file_list} $f"
12570 tm_p_include_list
="${tm_p_include_list} $f"
12573 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12574 tm_p_include_list
="${tm_p_include_list} config/$f"
12579 tm_d_include_list
="options.h insn-constants.h"
12580 for f
in $tm_d_file; do
12583 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/$f"
12584 tm_d_include_list
="${tm_d_include_list} $f"
12587 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
12588 tm_d_include_list
="${tm_d_include_list} config/$f"
12595 for f
in $xm_file; do
12598 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12599 xm_include_list
="${xm_include_list} $f"
12602 xm_file_list
="${xm_file_list} $f"
12603 xm_include_list
="${xm_include_list} $f"
12606 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12607 xm_include_list
="${xm_include_list} config/$f"
12613 host_xm_include_list
=
12614 for f
in $host_xm_file; do
12617 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12618 host_xm_include_list
="${host_xm_include_list} $f"
12621 host_xm_file_list
="${host_xm_file_list} $f"
12622 host_xm_include_list
="${host_xm_include_list} $f"
12625 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12626 host_xm_include_list
="${host_xm_include_list} config/$f"
12631 build_xm_file_list
=
12632 for f
in $build_xm_file; do
12635 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12636 build_xm_include_list
="${build_xm_include_list} $f"
12638 auto-build.h | auto-host.h
)
12639 build_xm_file_list
="${build_xm_file_list} $f"
12640 build_xm_include_list
="${build_xm_include_list} $f"
12643 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12644 build_xm_include_list
="${build_xm_include_list} config/$f"
12649 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12650 # cross-compiler which does not use the native headers and libraries.
12651 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12654 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12655 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
12657 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
12658 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
12659 if test "x$with_build_sysroot" != x
; then
12660 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12662 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12665 if test x
$host != x
$target
12667 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12669 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
12670 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12671 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12674 if test "x$with_build_sysroot" != "x"; then
12675 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12676 elif test "x$with_sysroot" = x
; then
12677 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12678 elif test "x$with_sysroot" = xyes
; then
12679 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12681 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12684 target_header_dir
=${native_system_header_dir}
12687 # If this is a cross-compiler that does not
12688 # have its own set of headers then define
12691 # If this is using newlib, without having the headers available now,
12692 # then define inhibit_libc in LIBGCC2_CFLAGS.
12693 # This prevents libgcc2 from containing any code which requires libc
12695 : ${inhibit_libc=false}
12696 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12697 test x
$with_newlib = xyes
; } &&
12698 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12703 # When building gcc with a cross-compiler, we need to adjust things so
12704 # that the generator programs are still built with the native compiler.
12705 # Also, we cannot run fixincludes.
12707 # These are the normal (build=host) settings:
12708 CC_FOR_BUILD
='$(CC)'
12709 CXX_FOR_BUILD
='$(CXX)'
12710 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12711 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12712 BUILD_LDFLAGS
='$(LDFLAGS)'
12713 STMP_FIXINC
=stmp-fixinc
12715 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
12716 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
12718 # And these apply if build != host, or we are generating coverage data
12719 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12721 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12722 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12723 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12725 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12726 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12727 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
12728 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
12733 # Expand extra_headers to include complete path.
12734 # This substitutes for lots of t-* files.
12735 extra_headers_list
=
12736 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12737 for file in ${extra_headers} ; do
12738 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12741 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12742 if test x
"$use_gcc_tgmath" = xyes
12743 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12746 # Define collect2 in Makefile.
12747 case $host_can_use_collect2 in
12749 *) collect2
='collect2$(exeext)' ;;
12753 # Add a definition of USE_COLLECT2 if system wants one.
12754 case $use_collect2 in
12755 no
) use_collect2
= ;;
12758 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12759 xm_defines
="${xm_defines} USE_COLLECT2"
12760 case $host_can_use_collect2 in
12762 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
12769 cat >>confdefs.h
<<_ACEOF
12770 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12774 # ---------------------------
12775 # Assembler & linker features
12776 # ---------------------------
12778 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12779 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12780 # However when ld-new is first executed from the build tree, libtool will
12781 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12782 # to the build tree. While doing this we need to use the previous-stage
12783 # linker, or we have an infinite loop. The presence of a shell script as
12784 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12785 # the gcc/collect-ld script. So we need to know how libtool works, or
12786 # exec-tool will fail.
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12792 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12797 macro_version
='2.2.7a'
12798 macro_revision
='1.3134'
12812 ltmain
="$ac_aux_dir/ltmain.sh"
12814 # Backslashify metacharacters that are still active within
12815 # double-quoted strings.
12816 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12818 # Same as above, but do not quote variable references.
12819 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12821 # Sed substitution to delay expansion of an escaped shell variable in a
12822 # double_quote_subst'ed string.
12823 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12825 # Sed substitution to delay expansion of an escaped single quote.
12826 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12828 # Sed substitution to avoid accidental globbing in evaled expressions
12829 no_glob_subst
='s/\*/\\\*/g'
12831 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12832 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12833 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12836 $as_echo_n "checking how to print strings... " >&6; }
12837 # Test print first, because it will be a builtin if present.
12838 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12839 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12841 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12844 # Use this function as a fallback that always works.
12845 func_fallback_echo ()
12847 eval 'cat <<_LTECHO_EOF
12851 ECHO='func_fallback_echo
'
12854 # func_echo_all arg...
12855 # Invoke $ECHO with all args, space-separated.
12862 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12863 $as_echo "printf" >&6; } ;;
12864 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12865 $as_echo "print -r" >&6; } ;;
12866 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12867 $as_echo "cat" >&6; } ;;
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12884 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12885 if ${ac_cv_path_SED+:} false; then :
12886 $as_echo_n "(cached) " >&6
12888 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12889 for ac_i in 1 2 3 4 5 6 7; do
12890 ac_script="$ac_script$as_nl$ac_script"
12892 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12893 { ac_script=; unset ac_script;}
12894 if test -z "$SED"; then
12895 ac_path_SED_found=false
12896 # Loop through the user's path and
test for each of PROGNAME-LIST
12897 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12898 for as_dir
in $PATH
12901 test -z "$as_dir" && as_dir
=.
12902 for ac_prog
in sed gsed
; do
12903 for ac_exec_ext
in '' $ac_executable_extensions; do
12904 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12905 as_fn_executable_p
"$ac_path_SED" ||
continue
12906 # Check for GNU ac_path_SED and select it if it is found.
12907 # Check for GNU $ac_path_SED
12908 case `"$ac_path_SED" --version 2>&1` in
12910 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12913 $as_echo_n 0123456789 >"conftest.in"
12916 cat "conftest.in" "conftest.in" >"conftest.tmp"
12917 mv "conftest.tmp" "conftest.in"
12918 cp "conftest.in" "conftest.nl"
12919 $as_echo '' >> "conftest.nl"
12920 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12921 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12922 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12923 if test $ac_count -gt ${ac_path_SED_max-0}; then
12924 # Best one so far, save it but keep looking for a better one
12925 ac_cv_path_SED
="$ac_path_SED"
12926 ac_path_SED_max
=$ac_count
12928 # 10*(2^10) chars as input seems more than enough
12929 test $ac_count -gt 10 && break
12931 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12934 $ac_path_SED_found && break 3
12939 if test -z "$ac_cv_path_SED"; then
12940 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12943 ac_cv_path_SED
=$SED
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12948 $as_echo "$ac_cv_path_SED" >&6; }
12949 SED
="$ac_cv_path_SED"
12952 test -z "$SED" && SED
=sed
12953 Xsed
="$SED -e 1s/^X//"
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12966 $as_echo_n "checking for fgrep... " >&6; }
12967 if ${ac_cv_path_FGREP+:} false
; then :
12968 $as_echo_n "(cached) " >&6
12970 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12971 then ac_cv_path_FGREP
="$GREP -F"
12973 if test -z "$FGREP"; then
12974 ac_path_FGREP_found
=false
12975 # Loop through the user's path and test for each of PROGNAME-LIST
12976 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12977 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12980 test -z "$as_dir" && as_dir
=.
12981 for ac_prog
in fgrep
; do
12982 for ac_exec_ext
in '' $ac_executable_extensions; do
12983 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12984 as_fn_executable_p
"$ac_path_FGREP" ||
continue
12985 # Check for GNU ac_path_FGREP and select it if it is found.
12986 # Check for GNU $ac_path_FGREP
12987 case `"$ac_path_FGREP" --version 2>&1` in
12989 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12992 $as_echo_n 0123456789 >"conftest.in"
12995 cat "conftest.in" "conftest.in" >"conftest.tmp"
12996 mv "conftest.tmp" "conftest.in"
12997 cp "conftest.in" "conftest.nl"
12998 $as_echo 'FGREP' >> "conftest.nl"
12999 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13000 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13001 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13002 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13003 # Best one so far, save it but keep looking for a better one
13004 ac_cv_path_FGREP
="$ac_path_FGREP"
13005 ac_path_FGREP_max
=$ac_count
13007 # 10*(2^10) chars as input seems more than enough
13008 test $ac_count -gt 10 && break
13010 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13013 $ac_path_FGREP_found && break 3
13018 if test -z "$ac_cv_path_FGREP"; then
13019 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13022 ac_cv_path_FGREP
=$FGREP
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13028 $as_echo "$ac_cv_path_FGREP" >&6; }
13029 FGREP
="$ac_cv_path_FGREP"
13032 test -z "$GREP" && GREP
=grep
13052 # Check whether --with-gnu-ld was given.
13053 if test "${with_gnu_ld+set}" = set; then :
13054 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
13060 if test "$GCC" = yes; then
13061 # Check if gcc -print-prog-name=ld gives a path.
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13063 $as_echo_n "checking for ld used by $CC... " >&6; }
13066 # gcc leaves a trailing carriage return which upsets mingw
13067 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13069 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13072 # Accept absolute paths.
13074 re_direlt
='/[^/][^/]*/\.\./'
13075 # Canonicalize the pathname of ld
13076 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13077 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
13078 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13080 test -z "$LD" && LD
="$ac_prog"
13083 # If it fails, then pretend we aren't using GCC.
13087 # If it is relative, then search for the first ld in PATH.
13088 with_gnu_ld
=unknown
13091 elif test "$with_gnu_ld" = yes; then
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13093 $as_echo_n "checking for GNU ld... " >&6; }
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13096 $as_echo_n "checking for non-GNU ld... " >&6; }
13098 if ${lt_cv_path_LD+:} false
; then :
13099 $as_echo_n "(cached) " >&6
13101 if test -z "$LD"; then
13102 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13103 for ac_dir
in $PATH; do
13105 test -z "$ac_dir" && ac_dir
=.
13106 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
13107 lt_cv_path_LD
="$ac_dir/$ac_prog"
13108 # Check to see if the program is GNU ld. I'd rather use --version,
13109 # but apparently some variants of GNU ld only accept -v.
13110 # Break only if it was the GNU/non-GNU ld that we prefer.
13111 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13112 *GNU
* |
*'with BFD'*)
13113 test "$with_gnu_ld" != no
&& break
13116 test "$with_gnu_ld" != yes && break
13123 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
13127 LD
="$lt_cv_path_LD"
13128 if test -n "$LD"; then
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13130 $as_echo "$LD" >&6; }
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133 $as_echo "no" >&6; }
13135 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13137 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13138 if ${lt_cv_prog_gnu_ld+:} false
; then :
13139 $as_echo_n "(cached) " >&6
13141 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13142 case `$LD -v 2>&1 </dev/null` in
13143 *GNU
* |
*'with BFD'*)
13144 lt_cv_prog_gnu_ld
=yes
13147 lt_cv_prog_gnu_ld
=no
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13152 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13153 with_gnu_ld
=$lt_cv_prog_gnu_ld
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13164 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13165 if ${lt_cv_path_NM+:} false
; then :
13166 $as_echo_n "(cached) " >&6
13168 if test -n "$NM"; then
13169 # Let the user override the test.
13170 lt_cv_path_NM
="$NM"
13172 lt_nm_to_check
="${ac_tool_prefix}nm"
13173 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13174 lt_nm_to_check
="$lt_nm_to_check nm"
13176 for lt_tmp_nm
in $lt_nm_to_check; do
13177 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13178 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
13180 test -z "$ac_dir" && ac_dir
=.
13181 tmp_nm
="$ac_dir/$lt_tmp_nm"
13182 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
13183 # Check to see if the nm accepts a BSD-compat flag.
13184 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13185 # nm: unknown option "B" ignored
13186 # Tru64's nm complains that /dev/null is an invalid object file
13187 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13188 */dev
/null
* |
*'Invalid file or object type'*)
13189 lt_cv_path_NM
="$tmp_nm -B"
13193 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13195 lt_cv_path_NM
="$tmp_nm -p"
13199 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13200 continue # so that we can try to find one that supports BSD flags
13209 : ${lt_cv_path_NM=no}
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13213 $as_echo "$lt_cv_path_NM" >&6; }
13214 if test "$lt_cv_path_NM" != "no"; then
13215 NM
="$lt_cv_path_NM"
13217 # Didn't find any BSD compatible name lister, look for dumpbin.
13218 if test -n "$DUMPBIN"; then :
13219 # Let the user override the test.
13221 if test -n "$ac_tool_prefix"; then
13222 for ac_prog
in dumpbin
"link -dump"
13224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13225 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13227 $as_echo_n "checking for $ac_word... " >&6; }
13228 if ${ac_cv_prog_DUMPBIN+:} false
; then :
13229 $as_echo_n "(cached) " >&6
13231 if test -n "$DUMPBIN"; then
13232 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
13234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13235 for as_dir
in $PATH
13238 test -z "$as_dir" && as_dir
=.
13239 for ac_exec_ext
in '' $ac_executable_extensions; do
13240 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13241 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
13242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13251 DUMPBIN
=$ac_cv_prog_DUMPBIN
13252 if test -n "$DUMPBIN"; then
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13254 $as_echo "$DUMPBIN" >&6; }
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13257 $as_echo "no" >&6; }
13261 test -n "$DUMPBIN" && break
13264 if test -z "$DUMPBIN"; then
13265 ac_ct_DUMPBIN
=$DUMPBIN
13266 for ac_prog
in dumpbin
"link -dump"
13268 # Extract the first word of "$ac_prog", so it can be a program name with args.
13269 set dummy
$ac_prog; 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 ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
13273 $as_echo_n "(cached) " >&6
13275 if test -n "$ac_ct_DUMPBIN"; then
13276 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # 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 as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13285 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
13286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13295 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
13296 if test -n "$ac_ct_DUMPBIN"; then
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13298 $as_echo "$ac_ct_DUMPBIN" >&6; }
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13301 $as_echo "no" >&6; }
13305 test -n "$ac_ct_DUMPBIN" && break
13308 if test "x$ac_ct_DUMPBIN" = x
; then
13311 case $cross_compiling:$ac_tool_warned in
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13315 ac_tool_warned
=yes ;;
13317 DUMPBIN
=$ac_ct_DUMPBIN
13321 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13323 DUMPBIN
="$DUMPBIN -symbols"
13331 if test "$DUMPBIN" != ":"; then
13335 test -z "$NM" && NM
=nm
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13343 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13344 if ${lt_cv_nm_interface+:} false
; then :
13345 $as_echo_n "(cached) " >&6
13347 lt_cv_nm_interface
="BSD nm"
13348 echo "int some_variable = 0;" > conftest.
$ac_ext
13349 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13350 (eval "$ac_compile" 2>conftest.err
)
13351 cat conftest.err
>&5
13352 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13353 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
13354 cat conftest.err
>&5
13355 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13356 cat conftest.out
>&5
13357 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
13358 lt_cv_nm_interface
="MS dumpbin"
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13363 $as_echo "$lt_cv_nm_interface" >&6; }
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13366 $as_echo_n "checking whether ln -s works... " >&6; }
13368 if test "$LN_S" = "ln -s"; then
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13370 $as_echo "yes" >&6; }
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13373 $as_echo "no, using $LN_S" >&6; }
13376 # find the maximum length of command line arguments
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13378 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13379 if ${lt_cv_sys_max_cmd_len+:} false
; then :
13380 $as_echo_n "(cached) " >&6
13387 # On DJGPP, this test can blow up pretty badly due to problems in libc
13388 # (any single argument exceeding 2000 bytes causes a buffer overrun
13389 # during glob expansion). Even if it were fixed, the result of this
13390 # check would be larger than it should be.
13391 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
13395 # Under GNU Hurd, this test is not required because there is
13396 # no limit to the length of command line arguments.
13397 # Libtool will interpret -1 as no limit whatsoever
13398 lt_cv_sys_max_cmd_len
=-1;
13401 cygwin
* | mingw
* | cegcc
*)
13402 # On Win9x/ME, this test blows up -- it succeeds, but takes
13403 # about 5 minutes as the teststring grows exponentially.
13404 # Worse, since 9x/ME are not pre-emptively multitasking,
13405 # you end up with a "frozen" computer, even though with patience
13406 # the test eventually succeeds (with a max line length of 256k).
13407 # Instead, let's just punt: use the minimum linelength reported by
13408 # all of the supported platforms: 8192 (on NT/2K/XP).
13409 lt_cv_sys_max_cmd_len
=8192;
13413 # On MiNT this can take a long time and run out of memory.
13414 lt_cv_sys_max_cmd_len
=8192;
13418 # On AmigaOS with pdksh, this test takes hours, literally.
13419 # So we just punt and use a minimum line length of 8192.
13420 lt_cv_sys_max_cmd_len
=8192;
13423 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
13424 # This has been around since 386BSD, at least. Likely further.
13425 if test -x /sbin
/sysctl
; then
13426 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
13427 elif test -x /usr
/sbin
/sysctl
; then
13428 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
13430 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
13432 # And add a safety zone
13433 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13434 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13438 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13439 lt_cv_sys_max_cmd_len
=196608
13443 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13444 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13445 # nice to cause kernel panics so lets avoid the loop below.
13446 # First set a reasonable default.
13447 lt_cv_sys_max_cmd_len
=16384
13449 if test -x /sbin
/sysconfig
; then
13450 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13451 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13456 lt_cv_sys_max_cmd_len
=102400
13458 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13459 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13460 if test -n "$kargmax"; then
13461 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13463 lt_cv_sys_max_cmd_len
=32768
13467 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13468 if test -n "$lt_cv_sys_max_cmd_len"; then
13469 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13470 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13472 # Make teststring a little bigger before we do anything with it.
13473 # a 1K string should be a reasonable start.
13474 for i
in 1 2 3 4 5 6 7 8 ; do
13475 teststring
=$teststring$teststring
13477 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13478 # If test is not a shell built-in, we'll probably end up computing a
13479 # maximum length that is only half of the actual maximum length, but
13481 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13482 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13483 test $i != 17 # 1/2 MB should be enough
13486 teststring
=$teststring$teststring
13488 # Only check the string length outside the loop.
13489 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13491 # Add a significant safety factor because C++ compilers can tack on
13492 # massive amounts of additional arguments before passing them to the
13493 # linker. It appears as though 1/2 is a usable value.
13494 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13501 if test -n $lt_cv_sys_max_cmd_len ; then
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13503 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13506 $as_echo "none" >&6; }
13508 max_cmd_len
=$lt_cv_sys_max_cmd_len
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13520 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13521 # Try some XSI features
13523 ( _lt_dummy
="a/b/c"
13524 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13526 && eval 'test $(( 1 + 1 )) -eq 2 \
13527 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13530 $as_echo "$xsi_shell" >&6; }
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13534 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13536 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13538 && lt_shell_append=yes
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13540 $as_echo "$lt_shell_append" >&6; }
13543 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13553 # test EBCDIC or ASCII
13554 case `echo X|tr X '\101'` in
13555 A) # ASCII based system
13556 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13557 lt_SP2NL='tr \040 \012'
13558 lt_NL2SP='tr \015\012 \040\040'
13560 *) # EBCDIC based system
13561 lt_SP2NL='tr \100 \n'
13562 lt_NL2SP='tr \r\n \100\100'
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13575 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13576 if ${lt_cv_ld_reload_flag+:} false; then :
13577 $as_echo_n "(cached
) " >&6
13579 lt_cv_ld_reload_flag='-r'
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13582 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13583 reload_flag=$lt_cv_ld_reload_flag
13584 case $reload_flag in
13586 *) reload_flag=" $reload_flag" ;;
13588 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13591 if test "$GCC" = yes; then
13592 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13594 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13607 if test -n "$ac_tool_prefix"; then
13608 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13609 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13611 $as_echo_n "checking
for $ac_word...
" >&6; }
13612 if ${ac_cv_prog_OBJDUMP+:} false; then :
13613 $as_echo_n "(cached
) " >&6
13615 if test -n "$OBJDUMP"; then
13616 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13619 for as_dir in $PATH
13622 test -z "$as_dir" && as_dir=.
13623 for ac_exec_ext in '' $ac_executable_extensions; do
13624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13625 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13626 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13635 OBJDUMP=$ac_cv_prog_OBJDUMP
13636 if test -n "$OBJDUMP"; then
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13638 $as_echo "$OBJDUMP" >&6; }
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13641 $as_echo "no
" >&6; }
13646 if test -z "$ac_cv_prog_OBJDUMP"; then
13647 ac_ct_OBJDUMP=$OBJDUMP
13648 # Extract the first word of "objdump
", so it can be a program name with args.
13649 set dummy objdump; ac_word=$2
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13651 $as_echo_n "checking
for $ac_word...
" >&6; }
13652 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13653 $as_echo_n "(cached
) " >&6
13655 if test -n "$ac_ct_OBJDUMP"; then
13656 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13659 for as_dir in $PATH
13662 test -z "$as_dir" && as_dir=.
13663 for ac_exec_ext in '' $ac_executable_extensions; do
13664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13665 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13666 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13675 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13676 if test -n "$ac_ct_OBJDUMP"; then
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13678 $as_echo "$ac_ct_OBJDUMP" >&6; }
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13681 $as_echo "no
" >&6; }
13684 if test "x
$ac_ct_OBJDUMP" = x; then
13687 case $cross_compiling:$ac_tool_warned in
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13690 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13691 ac_tool_warned=yes ;;
13693 OBJDUMP=$ac_ct_OBJDUMP
13696 OBJDUMP="$ac_cv_prog_OBJDUMP"
13699 test -z "$OBJDUMP" && OBJDUMP=objdump
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13710 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13711 if ${lt_cv_deplibs_check_method+:} false; then :
13712 $as_echo_n "(cached
) " >&6
13714 lt_cv_file_magic_cmd='$MAGIC_CMD'
13715 lt_cv_file_magic_test_file=
13716 lt_cv_deplibs_check_method='unknown'
13717 # Need to set the preceding variable on all platforms that support
13718 # interlibrary dependencies.
13719 # 'none' -- dependencies not supported.
13720 # `unknown' -- same as none, but documents that we really don't know.
13721 # 'pass_all' -- all dependencies passed with no checks.
13722 # 'test_compile' -- check by making test program.
13723 # 'file_magic [[regex]]' -- check by looking for files in library path
13724 # which responds to the $file_magic_cmd with a given extended regex.
13725 # If you have `file' or equivalent on your system and you're not sure
13726 # whether `pass_all' will *always* work, you probably want this one.
13730 lt_cv_deplibs_check_method=pass_all
13734 lt_cv_deplibs_check_method=pass_all
13738 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13739 lt_cv_file_magic_cmd='/usr/bin/file -L'
13740 lt_cv_file_magic_test_file=/shlib/libc.so
13744 # func_win32_libid is a shell function defined in ltmain.sh
13745 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13746 lt_cv_file_magic_cmd='func_win32_libid'
13750 # Base MSYS/MinGW do not provide the 'file' command needed by
13751 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13752 # unless we find 'file', for example because we are cross-compiling.
13753 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13754 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13755 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13756 lt_cv_file_magic_cmd='func_win32_libid'
13758 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13759 lt_cv_file_magic_cmd='$OBJDUMP -f'
13764 # use the weaker test based on 'objdump'. See mingw*.
13765 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13766 lt_cv_file_magic_cmd='$OBJDUMP -f'
13769 darwin* | rhapsody*)
13770 lt_cv_deplibs_check_method=pass_all
13773 freebsd* | dragonfly*)
13774 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13777 # Not sure whether the presence of OpenBSD here was a mistake.
13778 # Let's accept both of them until this is cleared up.
13779 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13780 lt_cv_file_magic_cmd=/usr/bin/file
13781 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13785 lt_cv_deplibs_check_method=pass_all
13790 lt_cv_deplibs_check_method=pass_all
13794 lt_cv_deplibs_check_method=pass_all
13797 hpux10.20* | hpux11*)
13798 lt_cv_file_magic_cmd=/usr/bin/file
13801 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13802 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13805 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]'
13806 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13809 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13810 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13816 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13817 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13820 irix5* | irix6* | nonstopux*)
13822 *-32|*"-32 ") libmagic=32-bit;;
13823 *-n32|*"-n32 ") libmagic=N32;;
13824 *-64|*"-64 ") libmagic=64-bit;;
13825 *) libmagic=never-match;;
13827 lt_cv_deplibs_check_method=pass_all
13830 # This must be Linux ELF.
13831 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13832 lt_cv_deplibs_check_method=pass_all
13836 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13837 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13844 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13845 lt_cv_file_magic_cmd=/usr/bin/file
13846 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13850 lt_cv_deplibs_check_method=pass_all
13854 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13855 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13857 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13861 osf3* | osf4* | osf5*)
13862 lt_cv_deplibs_check_method=pass_all
13866 lt_cv_deplibs_check_method=pass_all
13870 lt_cv_deplibs_check_method=pass_all
13873 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13874 lt_cv_deplibs_check_method=pass_all
13878 case $host_vendor in
13880 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]'
13881 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13884 lt_cv_deplibs_check_method=pass_all
13887 lt_cv_file_magic_cmd='/bin/file'
13888 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13891 lt_cv_file_magic_cmd='/bin/file'
13892 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13893 lt_cv_file_magic_test_file=/lib/libc.so
13896 lt_cv_deplibs_check_method=pass_all
13899 lt_cv_deplibs_check_method=pass_all
13905 lt_cv_deplibs_check_method=pass_all
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13911 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13912 file_magic_cmd=$lt_cv_file_magic_cmd
13913 deplibs_check_method=$lt_cv_deplibs_check_method
13914 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13927 if test -n "$ac_tool_prefix"; then
13928 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13929 set dummy ${ac_tool_prefix}ar; ac_word=$2
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13931 $as_echo_n "checking
for $ac_word...
" >&6; }
13932 if ${ac_cv_prog_AR+:} false; then :
13933 $as_echo_n "(cached
) " >&6
13935 if test -n "$AR"; then
13936 ac_cv_prog_AR="$AR" # Let the user override the test.
13938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13939 for as_dir in $PATH
13942 test -z "$as_dir" && as_dir=.
13943 for ac_exec_ext in '' $ac_executable_extensions; do
13944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13945 ac_cv_prog_AR="${ac_tool_prefix}ar"
13946 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13956 if test -n "$AR"; then
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13958 $as_echo "$AR" >&6; }
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13961 $as_echo "no
" >&6; }
13966 if test -z "$ac_cv_prog_AR"; then
13968 # Extract the first word of "ar", so it can be a program name with args.
13969 set dummy ar; ac_word=$2
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13971 $as_echo_n "checking
for $ac_word...
" >&6; }
13972 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13973 $as_echo_n "(cached
) " >&6
13975 if test -n "$ac_ct_AR"; then
13976 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13979 for as_dir in $PATH
13982 test -z "$as_dir" && as_dir=.
13983 for ac_exec_ext in '' $ac_executable_extensions; do
13984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13985 ac_cv_prog_ac_ct_AR="ar"
13986 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13995 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13996 if test -n "$ac_ct_AR"; then
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13998 $as_echo "$ac_ct_AR" >&6; }
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14001 $as_echo "no
" >&6; }
14004 if test "x
$ac_ct_AR" = x; then
14007 case $cross_compiling:$ac_tool_warned in
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14010 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14011 ac_tool_warned=yes ;;
14016 AR="$ac_cv_prog_AR"
14019 test -z "$AR" && AR=ar
14020 test -z "$AR_FLAGS" && AR_FLAGS=cru
14032 if test -n "$ac_tool_prefix"; then
14033 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14034 set dummy ${ac_tool_prefix}strip; ac_word=$2
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14036 $as_echo_n "checking
for $ac_word...
" >&6; }
14037 if ${ac_cv_prog_STRIP+:} false; then :
14038 $as_echo_n "(cached
) " >&6
14040 if test -n "$STRIP"; then
14041 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14044 for as_dir in $PATH
14047 test -z "$as_dir" && as_dir=.
14048 for ac_exec_ext in '' $ac_executable_extensions; do
14049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14050 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14051 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14060 STRIP=$ac_cv_prog_STRIP
14061 if test -n "$STRIP"; then
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
14063 $as_echo "$STRIP" >&6; }
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14066 $as_echo "no
" >&6; }
14071 if test -z "$ac_cv_prog_STRIP"; then
14073 # Extract the first word of "strip
", so it can be a program name with args.
14074 set dummy strip; ac_word=$2
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14076 $as_echo_n "checking
for $ac_word...
" >&6; }
14077 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14078 $as_echo_n "(cached
) " >&6
14080 if test -n "$ac_ct_STRIP"; then
14081 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14084 for as_dir in $PATH
14087 test -z "$as_dir" && as_dir=.
14088 for ac_exec_ext in '' $ac_executable_extensions; do
14089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14090 ac_cv_prog_ac_ct_STRIP="strip
"
14091 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14100 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14101 if test -n "$ac_ct_STRIP"; then
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
14103 $as_echo "$ac_ct_STRIP" >&6; }
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14106 $as_echo "no
" >&6; }
14109 if test "x
$ac_ct_STRIP" = x; then
14112 case $cross_compiling:$ac_tool_warned in
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14115 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14116 ac_tool_warned=yes ;;
14121 STRIP="$ac_cv_prog_STRIP"
14124 test -z "$STRIP" && STRIP=:
14131 if test -n "$ac_tool_prefix"; then
14132 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14133 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14135 $as_echo_n "checking
for $ac_word...
" >&6; }
14136 if ${ac_cv_prog_RANLIB+:} false; then :
14137 $as_echo_n "(cached
) " >&6
14139 if test -n "$RANLIB"; then
14140 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14143 for as_dir in $PATH
14146 test -z "$as_dir" && as_dir=.
14147 for ac_exec_ext in '' $ac_executable_extensions; do
14148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14149 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
14150 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14159 RANLIB=$ac_cv_prog_RANLIB
14160 if test -n "$RANLIB"; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
14162 $as_echo "$RANLIB" >&6; }
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14165 $as_echo "no
" >&6; }
14170 if test -z "$ac_cv_prog_RANLIB"; then
14171 ac_ct_RANLIB=$RANLIB
14172 # Extract the first word of "ranlib
", so it can be a program name with args.
14173 set dummy ranlib; ac_word=$2
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14175 $as_echo_n "checking
for $ac_word...
" >&6; }
14176 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14177 $as_echo_n "(cached
) " >&6
14179 if test -n "$ac_ct_RANLIB"; then
14180 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14183 for as_dir in $PATH
14186 test -z "$as_dir" && as_dir=.
14187 for ac_exec_ext in '' $ac_executable_extensions; do
14188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14189 ac_cv_prog_ac_ct_RANLIB="ranlib
"
14190 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14199 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14200 if test -n "$ac_ct_RANLIB"; then
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
14202 $as_echo "$ac_ct_RANLIB" >&6; }
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14205 $as_echo "no
" >&6; }
14208 if test "x
$ac_ct_RANLIB" = x; then
14211 case $cross_compiling:$ac_tool_warned in
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14214 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14215 ac_tool_warned=yes ;;
14217 RANLIB=$ac_ct_RANLIB
14220 RANLIB="$ac_cv_prog_RANLIB"
14223 test -z "$RANLIB" && RANLIB=:
14230 # Determine commands to create old-style static archives.
14231 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14232 old_postinstall_cmds='chmod 644 $oldlib'
14233 old_postuninstall_cmds=
14235 if test -n "$RANLIB"; then
14238 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
14241 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
14244 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
14249 lock_old_archive_extraction=yes ;;
14251 lock_old_archive_extraction=no ;;
14292 # If no C compiler was specified, use CC.
14295 # If no C compiler flags were specified, use CFLAGS.
14296 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14298 # Allow CC to be a program name with arguments.
14302 # Check for command to grab the raw symbol name followed by C symbol from nm.
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
14304 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
14305 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14306 $as_echo_n "(cached
) " >&6
14309 # These are sane defaults that work on at least a few old systems.
14310 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14312 # Character class describing NM global symbol codes.
14313 symcode='[BCDEGRST]'
14315 # Regexp to match symbols that can be accessed directly from C.
14316 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14318 # Define system-specific variables.
14323 cygwin* | mingw* | pw32* | cegcc*)
14324 symcode='[ABCDGISTW]'
14327 if test "$host_cpu" = ia64; then
14328 symcode='[ABCDEGRST]'
14331 irix* | nonstopux*)
14332 symcode='[BCDEGRST]'
14335 symcode='[BCDEGQRST]'
14346 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14354 # If we're using GNU nm, then use its standard symbol codes.
14355 case `$NM -V 2>&1` in
14356 *GNU* | *'with BFD'*)
14357 symcode='[ABCDGIRSTW]' ;;
14360 # Transform an extracted symbol line into a proper C declaration.
14361 # Some systems (esp. on ia64) link data and code symbols differently,
14362 # so use this general approach.
14363 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14365 # Transform an extracted symbol line into symbol name and symbol address
14366 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14367 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'"
14369 # Handle CRLF in mingw tool chain
14373 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14377 # Try without a prefix underscore, then with it.
14378 for ac_symprfx in "" "_
"; do
14380 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14381 symxfrm="\\1 $ac_symprfx\\2 \\2"
14383 # Write the raw and C identifiers.
14384 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
14385 # Fake it for dumpbin and say T for any non-static function
14386 # and D for any global variable.
14387 # Also find C++ and __fastcall symbols from MSVC++,
14388 # which start with @ or ?.
14389 lt_cv_sys_global_symbol_pipe="$AWK '"\
14390 " {last_section=section; section=\$ 3};"\
14391 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14392 " \$ 0!~/External *\|/{next};"\
14393 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14394 " {if(hide[section]) next};"\
14395 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14396 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14397 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14398 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14399 " ' prfx
=^
$ac_symprfx"
14401 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14404 # Check to see that the pipe works correctly.
14408 cat > conftest.$ac_ext <<_LT_EOF
14413 void nm_test_func(void);
14414 void nm_test_func(void){}
14418 int main(){nm_test_var='a';nm_test_func();return(0);}
14421 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14422 (eval $ac_compile) 2>&5
14424 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14425 test $ac_status = 0; }; then
14426 # Now try to grab the symbols.
14428 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
14429 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14431 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14432 test $ac_status = 0; } && test -s "$nlist"; then
14433 # Try sorting and uniquifying the output.
14434 if sort "$nlist" | uniq > "$nlist"T; then
14435 mv -f "$nlist"T "$nlist"
14440 # Make sure that we snagged all the symbols we need.
14441 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14442 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14443 cat <<_LT_EOF > conftest.$ac_ext
14449 # Now generate the symbol file.
14450 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14452 cat <<_LT_EOF >> conftest.$ac_ext
14454 /* The mapping between symbol names and symbols. */
14459 lt__PROGRAM__LTX_preloaded_symbols[] =
14461 { "@PROGRAM@
", (void *) 0 },
14463 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14464 cat <<\_LT_EOF >> conftest.$ac_ext
14468 /* This works around a problem in FreeBSD linker */
14469 #ifdef FREEBSD_WORKAROUND
14470 static const void *lt_preloaded_setup() {
14471 return lt__PROGRAM__LTX_preloaded_symbols;
14479 # Now try linking the two files.
14480 mv conftest.$ac_objext conftstm.$ac_objext
14481 lt_save_LIBS="$LIBS"
14482 lt_save_CFLAGS="$CFLAGS"
14483 LIBS="conftstm.
$ac_objext"
14484 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14485 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14486 (eval $ac_link) 2>&5
14488 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14489 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14492 LIBS="$lt_save_LIBS"
14493 CFLAGS="$lt_save_CFLAGS"
14495 echo "cannot
find nm_test_func
in $nlist" >&5
14498 echo "cannot
find nm_test_var
in $nlist" >&5
14501 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14504 echo "$progname: failed program was
:" >&5
14505 cat conftest.$ac_ext >&5
14507 rm -rf conftest* conftst*
14509 # Do not use the global_symbol_pipe unless it works.
14510 if test "$pipe_works" = yes; then
14513 lt_cv_sys_global_symbol_pipe=
14519 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14520 lt_cv_sys_global_symbol_to_cdecl=
14522 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14524 $as_echo "failed
" >&6; }
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14527 $as_echo "ok
" >&6; }
14551 # Check whether --enable-libtool-lock was given.
14552 if test "${enable_libtool_lock+set}" = set; then :
14553 enableval=$enable_libtool_lock;
14556 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14558 # Some flags need to be propagated to the compiler or linker for good
14562 # Find out which ABI we are using.
14563 echo 'int i;' > conftest.$ac_ext
14564 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14565 (eval $ac_compile) 2>&5
14567 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14568 test $ac_status = 0; }; then
14569 case `/usr/bin/file conftest.$ac_objext` in
14571 HPUX_IA64_MODE="32"
14574 HPUX_IA64_MODE="64"
14581 # Find out which ABI we are using.
14582 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14583 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14584 (eval $ac_compile) 2>&5
14586 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14587 test $ac_status = 0; }; then
14588 if test "$lt_cv_prog_gnu_ld" = yes; then
14589 case `/usr/bin/file conftest.$ac_objext` in
14591 LD="${LD-ld} -melf32bsmip"
14594 LD="${LD-ld} -melf32bmipn32"
14597 LD="${LD-ld} -melf64bmip"
14601 case `/usr/bin/file conftest.$ac_objext` in
14617 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14618 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14619 # Find out which ABI we are using.
14620 echo 'int i;' > conftest.$ac_ext
14621 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14622 (eval $ac_compile) 2>&5
14624 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14625 test $ac_status = 0; }; then
14626 case `/usr/bin/file conftest.o` in
14629 x86_64-*kfreebsd*-gnu)
14630 LD="${LD-ld} -m elf_i386_fbsd
"
14633 case `/usr/bin/file conftest.o` in
14635 LD="${LD-ld} -m elf32_x86_64
"
14638 LD="${LD-ld} -m elf_i386
"
14642 powerpc64le-*linux*)
14643 LD="${LD-ld} -m elf32lppclinux
"
14646 LD="${LD-ld} -m elf32ppclinux
"
14649 LD="${LD-ld} -m elf_s390
"
14652 LD="${LD-ld} -m elf32_sparc
"
14658 x86_64-*kfreebsd*-gnu)
14659 LD="${LD-ld} -m elf_x86_64_fbsd
"
14662 LD="${LD-ld} -m elf_x86_64
"
14665 LD="${LD-ld} -m elf64lppc
"
14668 LD="${LD-ld} -m elf64ppc
"
14670 s390*-*linux*|s390*-*tpf*)
14671 LD="${LD-ld} -m elf64_s390
"
14674 LD="${LD-ld} -m elf64_sparc
"
14684 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14685 SAVE_CFLAGS="$CFLAGS"
14686 CFLAGS="$CFLAGS -belf"
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14688 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14689 if ${lt_cv_cc_needs_belf+:} false; then :
14690 $as_echo_n "(cached
) " >&6
14693 ac_cpp='$CPP $CPPFLAGS'
14694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14699 /* end confdefs.h. */
14709 if ac_fn_c_try_link "$LINENO"; then :
14710 lt_cv_cc_needs_belf=yes
14712 lt_cv_cc_needs_belf=no
14714 rm -f core conftest.err conftest.$ac_objext \
14715 conftest$ac_exeext conftest.$ac_ext
14717 ac_cpp='$CPP $CPPFLAGS'
14718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14724 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14725 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14726 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14727 CFLAGS="$SAVE_CFLAGS"
14731 # Find out which ABI we are using.
14732 echo 'int i;' > conftest.$ac_ext
14733 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14734 (eval $ac_compile) 2>&5
14736 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14737 test $ac_status = 0; }; then
14738 case `/usr/bin/file conftest.o` in
14740 case $lt_cv_prog_gnu_ld in
14741 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14743 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14755 need_locks="$enable_libtool_lock"
14759 rhapsody* | darwin*)
14760 if test -n "$ac_tool_prefix"; then
14761 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14762 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14764 $as_echo_n "checking
for $ac_word...
" >&6; }
14765 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14766 $as_echo_n "(cached
) " >&6
14768 if test -n "$DSYMUTIL"; then
14769 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14772 for as_dir in $PATH
14775 test -z "$as_dir" && as_dir=.
14776 for ac_exec_ext in '' $ac_executable_extensions; do
14777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14778 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14779 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14788 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14789 if test -n "$DSYMUTIL"; then
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14791 $as_echo "$DSYMUTIL" >&6; }
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14794 $as_echo "no
" >&6; }
14799 if test -z "$ac_cv_prog_DSYMUTIL"; then
14800 ac_ct_DSYMUTIL=$DSYMUTIL
14801 # Extract the first word of "dsymutil
", so it can be a program name with args.
14802 set dummy dsymutil; ac_word=$2
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14804 $as_echo_n "checking
for $ac_word...
" >&6; }
14805 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14806 $as_echo_n "(cached
) " >&6
14808 if test -n "$ac_ct_DSYMUTIL"; then
14809 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14812 for as_dir in $PATH
14815 test -z "$as_dir" && as_dir=.
14816 for ac_exec_ext in '' $ac_executable_extensions; do
14817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14818 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14819 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14828 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14829 if test -n "$ac_ct_DSYMUTIL"; then
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14831 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14834 $as_echo "no
" >&6; }
14837 if test "x
$ac_ct_DSYMUTIL" = x; then
14840 case $cross_compiling:$ac_tool_warned in
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14843 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14844 ac_tool_warned=yes ;;
14846 DSYMUTIL=$ac_ct_DSYMUTIL
14849 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14852 if test -n "$ac_tool_prefix"; then
14853 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14854 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14856 $as_echo_n "checking
for $ac_word...
" >&6; }
14857 if ${ac_cv_prog_NMEDIT+:} false; then :
14858 $as_echo_n "(cached
) " >&6
14860 if test -n "$NMEDIT"; then
14861 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14864 for as_dir in $PATH
14867 test -z "$as_dir" && as_dir=.
14868 for ac_exec_ext in '' $ac_executable_extensions; do
14869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14870 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14871 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14880 NMEDIT=$ac_cv_prog_NMEDIT
14881 if test -n "$NMEDIT"; then
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14883 $as_echo "$NMEDIT" >&6; }
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14886 $as_echo "no
" >&6; }
14891 if test -z "$ac_cv_prog_NMEDIT"; then
14892 ac_ct_NMEDIT=$NMEDIT
14893 # Extract the first word of "nmedit
", so it can be a program name with args.
14894 set dummy nmedit; ac_word=$2
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14896 $as_echo_n "checking
for $ac_word...
" >&6; }
14897 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14898 $as_echo_n "(cached
) " >&6
14900 if test -n "$ac_ct_NMEDIT"; then
14901 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14904 for as_dir in $PATH
14907 test -z "$as_dir" && as_dir=.
14908 for ac_exec_ext in '' $ac_executable_extensions; do
14909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14910 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14911 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14920 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14921 if test -n "$ac_ct_NMEDIT"; then
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14923 $as_echo "$ac_ct_NMEDIT" >&6; }
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14926 $as_echo "no
" >&6; }
14929 if test "x
$ac_ct_NMEDIT" = x; then
14932 case $cross_compiling:$ac_tool_warned in
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14935 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14936 ac_tool_warned=yes ;;
14938 NMEDIT=$ac_ct_NMEDIT
14941 NMEDIT="$ac_cv_prog_NMEDIT"
14944 if test -n "$ac_tool_prefix"; then
14945 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14946 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14948 $as_echo_n "checking
for $ac_word...
" >&6; }
14949 if ${ac_cv_prog_LIPO+:} false; then :
14950 $as_echo_n "(cached
) " >&6
14952 if test -n "$LIPO"; then
14953 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14956 for as_dir in $PATH
14959 test -z "$as_dir" && as_dir=.
14960 for ac_exec_ext in '' $ac_executable_extensions; do
14961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14962 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14963 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14972 LIPO=$ac_cv_prog_LIPO
14973 if test -n "$LIPO"; then
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14975 $as_echo "$LIPO" >&6; }
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14978 $as_echo "no
" >&6; }
14983 if test -z "$ac_cv_prog_LIPO"; then
14985 # Extract the first word of "lipo
", so it can be a program name with args.
14986 set dummy lipo; ac_word=$2
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14988 $as_echo_n "checking
for $ac_word...
" >&6; }
14989 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14990 $as_echo_n "(cached
) " >&6
14992 if test -n "$ac_ct_LIPO"; then
14993 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14996 for as_dir in $PATH
14999 test -z "$as_dir" && as_dir=.
15000 for ac_exec_ext in '' $ac_executable_extensions; do
15001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15002 ac_cv_prog_ac_ct_LIPO="lipo
"
15003 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15012 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15013 if test -n "$ac_ct_LIPO"; then
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
15015 $as_echo "$ac_ct_LIPO" >&6; }
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15018 $as_echo "no
" >&6; }
15021 if test "x
$ac_ct_LIPO" = x; then
15024 case $cross_compiling:$ac_tool_warned in
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15027 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15028 ac_tool_warned=yes ;;
15033 LIPO="$ac_cv_prog_LIPO"
15036 if test -n "$ac_tool_prefix"; then
15037 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
15038 set dummy ${ac_tool_prefix}otool; ac_word=$2
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15040 $as_echo_n "checking
for $ac_word...
" >&6; }
15041 if ${ac_cv_prog_OTOOL+:} false; then :
15042 $as_echo_n "(cached
) " >&6
15044 if test -n "$OTOOL"; then
15045 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15048 for as_dir in $PATH
15051 test -z "$as_dir" && as_dir=.
15052 for ac_exec_ext in '' $ac_executable_extensions; do
15053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15054 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
15055 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15064 OTOOL=$ac_cv_prog_OTOOL
15065 if test -n "$OTOOL"; then
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
15067 $as_echo "$OTOOL" >&6; }
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15070 $as_echo "no
" >&6; }
15075 if test -z "$ac_cv_prog_OTOOL"; then
15077 # Extract the first word of "otool
", so it can be a program name with args.
15078 set dummy otool; ac_word=$2
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15080 $as_echo_n "checking
for $ac_word...
" >&6; }
15081 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15082 $as_echo_n "(cached
) " >&6
15084 if test -n "$ac_ct_OTOOL"; then
15085 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15088 for as_dir in $PATH
15091 test -z "$as_dir" && as_dir=.
15092 for ac_exec_ext in '' $ac_executable_extensions; do
15093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15094 ac_cv_prog_ac_ct_OTOOL="otool
"
15095 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15104 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15105 if test -n "$ac_ct_OTOOL"; then
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
15107 $as_echo "$ac_ct_OTOOL" >&6; }
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15110 $as_echo "no
" >&6; }
15113 if test "x
$ac_ct_OTOOL" = x; then
15116 case $cross_compiling:$ac_tool_warned in
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15119 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15120 ac_tool_warned=yes ;;
15125 OTOOL="$ac_cv_prog_OTOOL"
15128 if test -n "$ac_tool_prefix"; then
15129 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
15130 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15132 $as_echo_n "checking
for $ac_word...
" >&6; }
15133 if ${ac_cv_prog_OTOOL64+:} false; then :
15134 $as_echo_n "(cached
) " >&6
15136 if test -n "$OTOOL64"; then
15137 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15140 for as_dir in $PATH
15143 test -z "$as_dir" && as_dir=.
15144 for ac_exec_ext in '' $ac_executable_extensions; do
15145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15146 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
15147 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15156 OTOOL64=$ac_cv_prog_OTOOL64
15157 if test -n "$OTOOL64"; then
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
15159 $as_echo "$OTOOL64" >&6; }
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15162 $as_echo "no
" >&6; }
15167 if test -z "$ac_cv_prog_OTOOL64"; then
15168 ac_ct_OTOOL64=$OTOOL64
15169 # Extract the first word of "otool64
", so it can be a program name with args.
15170 set dummy otool64; ac_word=$2
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15172 $as_echo_n "checking
for $ac_word...
" >&6; }
15173 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15174 $as_echo_n "(cached
) " >&6
15176 if test -n "$ac_ct_OTOOL64"; then
15177 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15180 for as_dir in $PATH
15183 test -z "$as_dir" && as_dir=.
15184 for ac_exec_ext in '' $ac_executable_extensions; do
15185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15186 ac_cv_prog_ac_ct_OTOOL64="otool64
"
15187 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15196 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15197 if test -n "$ac_ct_OTOOL64"; then
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
15199 $as_echo "$ac_ct_OTOOL64" >&6; }
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15202 $as_echo "no
" >&6; }
15205 if test "x
$ac_ct_OTOOL64" = x; then
15208 case $cross_compiling:$ac_tool_warned in
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15211 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15212 ac_tool_warned=yes ;;
15214 OTOOL64=$ac_ct_OTOOL64
15217 OTOOL64="$ac_cv_prog_OTOOL64"
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
15247 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
15248 if ${lt_cv_apple_cc_single_mod+:} false; then :
15249 $as_echo_n "(cached
) " >&6
15251 lt_cv_apple_cc_single_mod=no
15252 if test -z "${LT_MULTI_MODULE}"; then
15253 # By default we will add the -single_module flag. You can override
15254 # by either setting the environment variable LT_MULTI_MODULE
15255 # non-empty at configure time, or by adding -multi_module to the
15257 rm -rf libconftest.dylib*
15258 echo "int foo
(void
){return 1;}" > conftest.c
15259 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15260 -dynamiclib -Wl,-single_module conftest.c
" >&5
15261 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15262 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15264 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15265 lt_cv_apple_cc_single_mod=yes
15267 cat conftest.err >&5
15269 rm -rf libconftest.dylib*
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
15274 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
15276 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
15277 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15278 $as_echo_n "(cached
) " >&6
15280 lt_cv_ld_exported_symbols_list=no
15281 save_LDFLAGS=$LDFLAGS
15282 echo "_main
" > conftest.sym
15283 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
15284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285 /* end confdefs.h. */
15295 if ac_fn_c_try_link "$LINENO"; then :
15296 lt_cv_ld_exported_symbols_list=yes
15298 lt_cv_ld_exported_symbols_list=no
15300 rm -f core conftest.err conftest.$ac_objext \
15301 conftest$ac_exeext conftest.$ac_ext
15302 LDFLAGS="$save_LDFLAGS"
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
15306 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
15308 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
15309 if ${lt_cv_ld_force_load+:} false; then :
15310 $as_echo_n "(cached
) " >&6
15312 lt_cv_ld_force_load=no
15313 cat > conftest.c << _LT_EOF
15314 int forced_loaded() { return 2;}
15316 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
15317 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15318 echo "$AR cru libconftest.a conftest.o
" >&5
15319 $AR cru libconftest.a conftest.o 2>&5
15320 cat > conftest.c << _LT_EOF
15321 int main() { return 0;}
15323 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
15324 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15326 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15327 lt_cv_ld_force_load=yes
15329 cat conftest.err >&5
15331 rm -f conftest.err libconftest.a conftest conftest.c
15332 rm -rf conftest.dSYM
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
15336 $as_echo "$lt_cv_ld_force_load" >&6; }
15338 rhapsody* | darwin1.[012])
15339 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15341 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15342 darwin*) # darwin 5.x on
15343 # if running on 10.5 or later, the deployment target defaults
15344 # to the OS version, if on x86, and 10.4, the deployment
15345 # target defaults to 10.4. Don't you love it?
15346 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15347 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15348 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15350 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15352 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15356 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15357 _lt_dar_single_mod='$single_module'
15359 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15360 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15362 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15364 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
15365 _lt_dsymutil='~$DSYMUTIL $lib || :'
15373 for ac_header in dlfcn.h
15375 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
15376 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
15377 cat >>confdefs.h <<_ACEOF
15378 #define HAVE_DLFCN_H 1
15395 enable_win32_dll=no
15398 # Check whether --enable-shared was given.
15399 if test "${enable_shared+set}" = set; then :
15400 enableval=$enable_shared; p=${PACKAGE-default}
15402 yes) enable_shared=yes ;;
15403 no) enable_shared=no ;;
15406 # Look at the argument we got. We use all the common list separators.
15407 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15408 for pkg in $enableval; do
15410 if test "X
$pkg" = "X
$p"; then
15429 # Check whether --enable-static was given.
15430 if test "${enable_static+set}" = set; then :
15431 enableval=$enable_static; p=${PACKAGE-default}
15433 yes) enable_static=yes ;;
15434 no) enable_static=no ;;
15437 # Look at the argument we got. We use all the common list separators.
15438 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15439 for pkg in $enableval; do
15441 if test "X
$pkg" = "X
$p"; then
15461 # Check whether --with-pic was given.
15462 if test "${with_pic+set}" = set; then :
15463 withval=$with_pic; pic_mode="$withval"
15469 test -z "$pic_mode" && pic_mode=default
15477 # Check whether --enable-fast-install was given.
15478 if test "${enable_fast_install+set}" = set; then :
15479 enableval=$enable_fast_install; p=${PACKAGE-default}
15481 yes) enable_fast_install=yes ;;
15482 no) enable_fast_install=no ;;
15484 enable_fast_install=no
15485 # Look at the argument we got. We use all the common list separators.
15486 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15487 for pkg in $enableval; do
15489 if test "X
$pkg" = "X
$p"; then
15490 enable_fast_install=yes
15497 enable_fast_install=yes
15510 # This can be used to rebuild libtool when needed
15511 LIBTOOL_DEPS="$ltmain"
15513 # Always use our own libtool.
15514 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15541 test -z "$LN_S" && LN_S="ln -s"
15556 if test -n "${ZSH_VERSION+set}" ; then
15557 setopt NO_GLOB_SUBST
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15561 $as_echo_n "checking
for objdir...
" >&6; }
15562 if ${lt_cv_objdir+:} false; then :
15563 $as_echo_n "(cached
) " >&6
15565 rm -f .libs 2>/dev/null
15566 mkdir .libs 2>/dev/null
15567 if test -d .libs; then
15570 # MS-DOS does not allow filenames that begin with a dot.
15573 rmdir .libs 2>/dev/null
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15576 $as_echo "$lt_cv_objdir" >&6; }
15577 objdir=$lt_cv_objdir
15583 cat >>confdefs.h <<_ACEOF
15584 #define LT_OBJDIR "$lt_cv_objdir/"
15592 # AIX sometimes has problems with the GCC collect2 program. For some
15593 # reason, if we set the COLLECT_NAMES environment variable, the problems
15594 # vanish in a puff of smoke.
15595 if test "X
${COLLECT_NAMES+set}" != Xset; then
15597 export COLLECT_NAMES
15602 # Global variables:
15604 can_build_shared=yes
15606 # All known linkers require a `.a' archive for static linking (except MSVC,
15607 # which needs '.lib').
15610 with_gnu_ld="$lt_cv_prog_gnu_ld"
15613 old_CFLAGS="$CFLAGS"
15615 # Set sane defaults for various variables
15616 test -z "$CC" && CC=cc
15617 test -z "$LTCC" && LTCC=$CC
15618 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15619 test -z "$LD" && LD=ld
15620 test -z "$ac_objext" && ac_objext=o
15622 for cc_temp in $compiler""; do
15624 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15625 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15630 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15633 # Only perform the check for file, if the check method requires it
15634 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15635 case $deplibs_check_method in
15637 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15639 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15640 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15641 $as_echo_n "(cached
) " >&6
15645 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15648 lt_save_MAGIC_CMD="$MAGIC_CMD"
15649 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15650 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15651 for ac_dir in $ac_dummy; do
15653 test -z "$ac_dir" && ac_dir=.
15654 if test -f $ac_dir/${ac_tool_prefix}file; then
15655 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15656 if test -n "$file_magic_test_file"; then
15657 case $deplibs_check_method in
15659 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15660 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15661 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15662 $EGREP "$file_magic_regex" > /dev/null; then
15667 *** Warning: the command libtool uses to detect shared libraries,
15668 *** $file_magic_cmd, produces output that libtool cannot recognize.
15669 *** The result is that libtool may fail to recognize shared libraries
15670 *** as such. This will affect the creation of libtool libraries that
15671 *** depend on shared libraries, but programs linked with such libtool
15672 *** libraries will work regardless of this problem. Nevertheless, you
15673 *** may want to report the problem to your system manager and/or to
15674 *** bug-libtool@gnu.org
15684 MAGIC_CMD="$lt_save_MAGIC_CMD"
15689 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15690 if test -n "$MAGIC_CMD"; then
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15692 $as_echo "$MAGIC_CMD" >&6; }
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15695 $as_echo "no
" >&6; }
15702 if test -z "$lt_cv_path_MAGIC_CMD"; then
15703 if test -n "$ac_tool_prefix"; then
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15705 $as_echo_n "checking
for file...
" >&6; }
15706 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15707 $as_echo_n "(cached
) " >&6
15711 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15714 lt_save_MAGIC_CMD="$MAGIC_CMD"
15715 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15716 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15717 for ac_dir in $ac_dummy; do
15719 test -z "$ac_dir" && ac_dir=.
15720 if test -f $ac_dir/file; then
15721 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15722 if test -n "$file_magic_test_file"; then
15723 case $deplibs_check_method in
15725 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15727 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15728 $EGREP "$file_magic_regex" > /dev/null; then
15733 *** Warning: the command libtool uses to detect shared libraries,
15734 *** $file_magic_cmd, produces output that libtool cannot recognize.
15735 *** The result is that libtool may fail to recognize shared libraries
15736 *** as such. This will affect the creation of libtool libraries that
15737 *** depend on shared libraries, but programs linked with such libtool
15738 *** libraries will work regardless of this problem. Nevertheless, you
15739 *** may want to report the problem to your system manager and/or to
15740 *** bug-libtool@gnu.org
15750 MAGIC_CMD="$lt_save_MAGIC_CMD"
15755 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15756 if test -n "$MAGIC_CMD"; then
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15758 $as_echo "$MAGIC_CMD" >&6; }
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15761 $as_echo "no
" >&6; }
15774 # Use C for the default configuration in the libtool script
15778 ac_cpp='$CPP $CPPFLAGS'
15779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15784 # Source file extension for C test sources.
15787 # Object file extension for compiled C test sources.
15791 # Code to be used in simple compile tests
15792 lt_simple_compile_test_code="int some_variable
= 0;"
15794 # Code to be used in simple link tests
15795 lt_simple_link_test_code='int main(){return(0);}'
15803 # If no C compiler was specified, use CC.
15806 # If no C compiler flags were specified, use CFLAGS.
15807 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15809 # Allow CC to be a program name with arguments.
15812 # Save the default compiler, since it gets overwritten when the other
15813 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15814 compiler_DEFAULT=$CC
15816 # save warnings/boilerplate of simple test code
15817 ac_outfile=conftest.$ac_objext
15818 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15819 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15820 _lt_compiler_boilerplate=`cat conftest.err`
15823 ac_outfile=conftest.$ac_objext
15824 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15825 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15826 _lt_linker_boilerplate=`cat conftest.err`
15831 ## There is no encapsulation within the following macros, do not change
15832 ## the running order or otherwise move them around unless you know exactly
15833 ## what you are doing...
15834 if test -n "$compiler"; then
15836 lt_prog_compiler_no_builtin_flag=
15838 if test "$GCC" = yes; then
15839 case $cc_basename in
15841 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15843 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15847 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15848 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15849 $as_echo_n "(cached
) " >&6
15851 lt_cv_prog_compiler_rtti_exceptions=no
15852 ac_outfile=conftest.$ac_objext
15853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15854 lt_compiler_flag="-fno-rtti -fno-exceptions"
15855 # Insert the option either (1) after the last *FLAGS variable, or
15856 # (2) before a word containing "conftest.
", or (3) at the end.
15857 # Note that $ac_compile itself does not contain backslashes and begins
15858 # with a dollar sign (not a hyphen), so the echo should work correctly.
15859 # The option is referenced via a variable to avoid confusing sed.
15860 lt_compile=`echo "$ac_compile" | $SED \
15861 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15863 -e 's:$: $lt_compiler_flag:'`
15864 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15865 (eval "$lt_compile" 2>conftest.err)
15867 cat conftest.err >&5
15868 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15869 if (exit $ac_status) && test -s "$ac_outfile"; then
15870 # The compiler can only warn and ignore the option if not recognized
15871 # So say no if there are warnings other than the usual output.
15872 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15874 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15875 lt_cv_prog_compiler_rtti_exceptions=yes
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15882 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15884 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15885 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15897 lt_prog_compiler_wl=
15898 lt_prog_compiler_pic=
15899 lt_prog_compiler_static=
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15902 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15904 if test "$GCC" = yes; then
15905 lt_prog_compiler_wl='-Wl,'
15906 lt_prog_compiler_static='-static'
15910 # All AIX code is PIC.
15911 if test "$host_cpu" = ia64; then
15912 # AIX 5 now supports IA64 processor
15913 lt_prog_compiler_static='-Bstatic'
15915 lt_prog_compiler_pic='-fPIC'
15921 # see comment about AmigaOS4 .so support
15922 lt_prog_compiler_pic='-fPIC'
15925 # FIXME: we need at least 68020 code to build shared libraries, but
15926 # adding the `-m68020' flag to GCC prevents building anything better,
15928 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15933 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15934 # PIC is the default for these OSes.
15937 mingw* | cygwin* | pw32* | os2* | cegcc*)
15938 # This hack is so that the source file can tell whether it is being
15939 # built for inclusion in a dll (and should export symbols for example).
15940 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15941 # (--disable-auto-import) libraries
15942 lt_prog_compiler_pic='-DDLL_EXPORT'
15945 darwin* | rhapsody*)
15946 # PIC is the default on this platform
15947 # Common symbols not allowed in MH_DYLIB files
15948 lt_prog_compiler_pic='-fno-common'
15952 # PIC is the default for Haiku.
15953 # The "-static" flag exists, but is broken.
15954 lt_prog_compiler_static=
15958 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15959 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15960 # sets the default TLS model and affects inlining.
15966 lt_prog_compiler_pic='-fPIC'
15972 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15973 # Instead, we relocate shared libraries at runtime.
15977 # Just because we use GCC doesn't mean we suddenly get shared libraries
15978 # on systems that don't support them.
15979 lt_prog_compiler_can_build_shared=no
15984 # QNX uses GNU C++, but need to define -shared option too, otherwise
15985 # it will coredump.
15986 lt_prog_compiler_pic='-fPIC -shared'
15990 if test -d /usr/nec; then
15991 lt_prog_compiler_pic=-Kconform_pic
15996 lt_prog_compiler_pic='-fPIC'
16000 case $cc_basename in
16001 nvcc*) # Cuda Compiler Driver 2.2
16002 lt_prog_compiler_wl='-Xlinker '
16003 lt_prog_compiler_pic='-Xcompiler -fPIC'
16007 # PORTME Check for flag to pass linker flags through the system compiler.
16010 lt_prog_compiler_wl='-Wl,'
16011 if test "$host_cpu" = ia64; then
16012 # AIX 5 now supports IA64 processor
16013 lt_prog_compiler_static='-Bstatic'
16015 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16019 mingw* | cygwin* | pw32* | os2* | cegcc*)
16020 # This hack is so that the source file can tell whether it is being
16021 # built for inclusion in a dll (and should export symbols for example).
16022 lt_prog_compiler_pic='-DDLL_EXPORT'
16025 hpux9* | hpux10* | hpux11*)
16026 lt_prog_compiler_wl='-Wl,'
16027 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16028 # not for PA HP-UX.
16034 lt_prog_compiler_pic='+Z'
16037 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16038 lt_prog_compiler_static='${wl}-a ${wl}archive'
16041 irix5* | irix6* | nonstopux*)
16042 lt_prog_compiler_wl='-Wl,'
16043 # PIC (with -KPIC) is the default.
16044 lt_prog_compiler_static='-non_shared'
16047 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16048 case $cc_basename in
16049 # old Intel for x86_64 which still supported -KPIC.
16051 lt_prog_compiler_wl='-Wl,'
16052 lt_prog_compiler_pic='-KPIC'
16053 lt_prog_compiler_static='-static'
16055 # icc used to be incompatible with GCC.
16056 # ICC 10 doesn't accept -KPIC any more.
16058 lt_prog_compiler_wl='-Wl,'
16059 lt_prog_compiler_pic='-fPIC'
16060 lt_prog_compiler_static='-static'
16062 # Lahey Fortran 8.1.
16064 lt_prog_compiler_wl='-Wl,'
16065 lt_prog_compiler_pic='--shared'
16066 lt_prog_compiler_static='--static'
16068 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16069 # Portland Group compilers (*not* the Pentium gcc compiler,
16070 # which looks to be a dead project)
16071 lt_prog_compiler_wl='-Wl,'
16072 lt_prog_compiler_pic='-fpic'
16073 lt_prog_compiler_static='-Bstatic'
16076 lt_prog_compiler_wl='-Wl,'
16077 # All Alpha code is PIC.
16078 lt_prog_compiler_static='-non_shared'
16080 xl* | bgxl* | bgf* | mpixl*)
16081 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16082 lt_prog_compiler_wl='-Wl,'
16083 lt_prog_compiler_pic='-qpic'
16084 lt_prog_compiler_static='-qstaticlink'
16087 case `$CC -V 2>&1 | sed 5q` in
16088 *Sun\ F* | *Sun*Fortran*)
16089 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16090 lt_prog_compiler_pic='-KPIC'
16091 lt_prog_compiler_static='-Bstatic'
16092 lt_prog_compiler_wl=''
16096 lt_prog_compiler_pic='-KPIC'
16097 lt_prog_compiler_static='-Bstatic'
16098 lt_prog_compiler_wl='-Wl,'
16106 lt_prog_compiler_pic='-KPIC'
16107 lt_prog_compiler_static='-Bstatic'
16111 # QNX uses GNU C++, but need to define -shared option too, otherwise
16112 # it will coredump.
16113 lt_prog_compiler_pic='-fPIC -shared'
16116 osf3* | osf4* | osf5*)
16117 lt_prog_compiler_wl='-Wl,'
16118 # All OSF/1 code is PIC.
16119 lt_prog_compiler_static='-non_shared'
16123 lt_prog_compiler_static='-non_shared'
16127 lt_prog_compiler_pic='-KPIC'
16128 lt_prog_compiler_static='-Bstatic'
16129 case $cc_basename in
16130 f77* | f90* | f95*)
16131 lt_prog_compiler_wl='-Qoption ld ';;
16133 lt_prog_compiler_wl='-Wl,';;
16138 lt_prog_compiler_wl='-Qoption ld '
16139 lt_prog_compiler_pic='-PIC'
16140 lt_prog_compiler_static='-Bstatic'
16143 sysv4 | sysv4.2uw2* | sysv4.3*)
16144 lt_prog_compiler_wl='-Wl,'
16145 lt_prog_compiler_pic='-KPIC'
16146 lt_prog_compiler_static='-Bstatic'
16150 if test -d /usr/nec ;then
16151 lt_prog_compiler_pic='-Kconform_pic'
16152 lt_prog_compiler_static='-Bstatic'
16156 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16157 lt_prog_compiler_wl='-Wl,'
16158 lt_prog_compiler_pic='-KPIC'
16159 lt_prog_compiler_static='-Bstatic'
16163 lt_prog_compiler_wl='-Wl,'
16164 lt_prog_compiler_can_build_shared=no
16168 lt_prog_compiler_pic='-pic'
16169 lt_prog_compiler_static='-Bstatic'
16173 lt_prog_compiler_can_build_shared=no
16179 # For platforms which do not support PIC, -DPIC is meaningless:
16181 lt_prog_compiler_pic=
16184 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
16188 $as_echo "$lt_prog_compiler_pic" >&6; }
16196 # Check to make sure the PIC flag actually works.
16198 if test -n "$lt_prog_compiler_pic"; then
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
16200 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
16201 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16202 $as_echo_n "(cached
) " >&6
16204 lt_cv_prog_compiler_pic_works=no
16205 ac_outfile=conftest.$ac_objext
16206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16207 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16208 # Insert the option either (1) after the last *FLAGS variable, or
16209 # (2) before a word containing "conftest.
", or (3) at the end.
16210 # Note that $ac_compile itself does not contain backslashes and begins
16211 # with a dollar sign (not a hyphen), so the echo should work correctly.
16212 # The option is referenced via a variable to avoid confusing sed.
16213 lt_compile=`echo "$ac_compile" | $SED \
16214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16216 -e 's:$: $lt_compiler_flag:'`
16217 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16218 (eval "$lt_compile" 2>conftest.err)
16220 cat conftest.err >&5
16221 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16222 if (exit $ac_status) && test -s "$ac_outfile"; then
16223 # The compiler can only warn and ignore the option if not recognized
16224 # So say no if there are warnings other than the usual output.
16225 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16226 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16227 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16228 lt_cv_prog_compiler_pic_works=yes
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
16235 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16237 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16238 case $lt_prog_compiler_pic in
16240 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16243 lt_prog_compiler_pic=
16244 lt_prog_compiler_can_build_shared=no
16255 # Check to make sure the static flag actually works.
16257 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
16259 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
16260 if ${lt_cv_prog_compiler_static_works+:} false; then :
16261 $as_echo_n "(cached
) " >&6
16263 lt_cv_prog_compiler_static_works=no
16264 save_LDFLAGS="$LDFLAGS"
16265 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16266 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16267 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16268 # The linker can only warn and ignore the option if not recognized
16269 # So say no if there are warnings
16270 if test -s conftest.err; then
16271 # Append any errors to the config.log.
16272 cat conftest.err 1>&5
16273 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16275 if diff conftest.exp conftest.er2 >/dev/null; then
16276 lt_cv_prog_compiler_static_works=yes
16279 lt_cv_prog_compiler_static_works=yes
16283 LDFLAGS="$save_LDFLAGS"
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
16287 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16289 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16292 lt_prog_compiler_static=
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16302 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16303 if ${lt_cv_prog_compiler_c_o+:} false; then :
16304 $as_echo_n "(cached
) " >&6
16306 lt_cv_prog_compiler_c_o=no
16307 $RM -r conftest 2>/dev/null
16311 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16313 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16314 # Insert the option either (1) after the last *FLAGS variable, or
16315 # (2) before a word containing "conftest.
", or (3) at the end.
16316 # Note that $ac_compile itself does not contain backslashes and begins
16317 # with a dollar sign (not a hyphen), so the echo should work correctly.
16318 lt_compile=`echo "$ac_compile" | $SED \
16319 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16320 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16321 -e 's:$: $lt_compiler_flag:'`
16322 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16323 (eval "$lt_compile" 2>out/conftest.err)
16325 cat out/conftest.err >&5
16326 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16327 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16329 # The compiler can only warn and ignore the option if not recognized
16330 # So say no if there are warnings
16331 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16332 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16333 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16334 lt_cv_prog_compiler_c_o=yes
16339 # SGI C++ compiler will create directory out/ii_files/ for
16340 # template instantiation
16341 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16342 $RM out/* && rmdir out
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16349 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16357 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16358 if ${lt_cv_prog_compiler_c_o+:} false; then :
16359 $as_echo_n "(cached
) " >&6
16361 lt_cv_prog_compiler_c_o=no
16362 $RM -r conftest 2>/dev/null
16366 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16368 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16369 # Insert the option either (1) after the last *FLAGS variable, or
16370 # (2) before a word containing "conftest.
", or (3) at the end.
16371 # Note that $ac_compile itself does not contain backslashes and begins
16372 # with a dollar sign (not a hyphen), so the echo should work correctly.
16373 lt_compile=`echo "$ac_compile" | $SED \
16374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16376 -e 's:$: $lt_compiler_flag:'`
16377 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16378 (eval "$lt_compile" 2>out/conftest.err)
16380 cat out/conftest.err >&5
16381 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16382 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16384 # The compiler can only warn and ignore the option if not recognized
16385 # So say no if there are warnings
16386 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16387 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16388 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16389 lt_cv_prog_compiler_c_o=yes
16394 # SGI C++ compiler will create directory out/ii_files/ for
16395 # template instantiation
16396 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16397 $RM out/* && rmdir out
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16404 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16409 hard_links="nottested
"
16410 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16411 # do not overwrite the value of need_locks provided by the user
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
16413 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
16416 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16418 ln conftest.a conftest.b 2>&5 || hard_links=no
16419 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
16421 $as_echo "$hard_links" >&6; }
16422 if test "$hard_links" = no; then
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
16424 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16437 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16440 allow_undefined_flag=
16441 always_export_symbols=no
16443 archive_expsym_cmds=
16444 compiler_needs_object=no
16445 enable_shared_with_static_runtimes=no
16446 export_dynamic_flag_spec=
16447 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16448 hardcode_automatic=no
16450 hardcode_direct_absolute=no
16451 hardcode_libdir_flag_spec=
16452 hardcode_libdir_flag_spec_ld=
16453 hardcode_libdir_separator=
16454 hardcode_minus_L=no
16455 hardcode_shlibpath_var=unsupported
16457 link_all_deplibs=unknown
16459 module_expsym_cmds=
16460 old_archive_from_new_cmds=
16461 old_archive_from_expsyms_cmds=
16462 thread_safe_flag_spec=
16463 whole_archive_flag_spec=
16464 # include_expsyms should be a list of space-separated symbols to be *always*
16465 # included in the symbol list
16467 # exclude_expsyms can be an extended regexp of symbols to exclude
16468 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16469 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16470 # as well as any symbol that contains `d'.
16471 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16472 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16473 # platforms (ab)use it in PIC code, but their linkers get confused if
16474 # the symbol is explicitly referenced. Since portable code cannot
16475 # rely on this symbol name, it's probably fine to never include it in
16476 # preloaded symbol tables.
16477 # Exclude shared library initialization/finalization symbols.
16478 extract_expsyms_cmds=
16481 cygwin* | mingw* | pw32* | cegcc*)
16482 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16483 # When not using gcc, we currently assume that we are using
16484 # Microsoft Visual C++.
16485 if test "$GCC" != yes; then
16490 # we just hope/assume this is gcc and not c89 (= MSVC++)
16500 # On some targets, GNU ld is compatible enough with the native linker
16501 # that we're better off using the native interface for both.
16502 lt_use_gnu_ld_interface=no
16503 if test "$with_gnu_ld" = yes; then
16506 # The AIX port of GNU ld has always aspired to compatibility
16507 # with the native linker. However, as the warning in the GNU ld
16508 # block says, versions before 2.19.5* couldn't really create working
16509 # shared libraries, regardless of the interface used.
16510 case `$LD -v 2>&1` in
16511 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16512 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16513 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16515 lt_use_gnu_ld_interface=yes
16520 lt_use_gnu_ld_interface=yes
16525 if test "$lt_use_gnu_ld_interface" = yes; then
16526 # If archive_cmds runs LD, not CC, wlarc should be empty
16529 # Set some defaults for GNU ld with shared library support. These
16530 # are reset later if shared libraries are not supported. Putting them
16531 # here allows them to be overridden if necessary.
16532 runpath_var=LD_RUN_PATH
16533 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16534 export_dynamic_flag_spec='${wl}--export-dynamic'
16535 # ancient GNU ld didn't support --whole-archive et. al.
16536 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16537 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16539 whole_archive_flag_spec=
16541 supports_anon_versioning=no
16542 case `$LD -v 2>&1` in
16543 *GNU\ gold*) supports_anon_versioning=yes ;;
16544 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16545 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16546 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16547 *\ 2.11.*) ;; # other 2.11 versions
16548 *) supports_anon_versioning=yes ;;
16551 # See if GNU ld supports shared libraries.
16554 # On AIX/PPC, the GNU linker is very broken
16555 if test "$host_cpu" != ia64; then
16559 *** Warning: the GNU linker, at least up to release 2.19, is reported
16560 *** to be unable to reliably create shared libraries on AIX.
16561 *** Therefore, libtool is disabling shared libraries support. If you
16562 *** really care for shared libraries, you may want to install binutils
16563 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16564 *** You will then need to restart the configuration process.
16573 # see comment about AmigaOS4 .so support
16574 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16575 archive_expsym_cmds=''
16578 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)'
16579 hardcode_libdir_flag_spec
='-L$libdir'
16580 hardcode_minus_L
=yes
16586 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16587 allow_undefined_flag
=unsupported
16588 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16589 # support --undefined. This deserves some investigation. FIXME
16590 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16596 cygwin
* | mingw
* | pw32
* | cegcc
*)
16597 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16598 # as there is no search path for DLLs.
16599 hardcode_libdir_flag_spec
='-L$libdir'
16600 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16601 allow_undefined_flag
=unsupported
16602 always_export_symbols
=no
16603 enable_shared_with_static_runtimes
=yes
16604 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16606 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16607 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16608 # If the export-symbols file already is a .def file (1st line
16609 # is EXPORTS), use it as is; otherwise, prepend...
16610 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16611 cp $export_symbols $output_objdir/$soname.def;
16613 echo EXPORTS > $output_objdir/$soname.def;
16614 cat $export_symbols >> $output_objdir/$soname.def;
16616 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16623 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16624 link_all_deplibs
=yes
16629 hardcode_shlibpath_var
=no
16630 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16631 export_dynamic_flag_spec
='${wl}-E'
16632 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16633 # Instead, shared libraries are loaded at an image base (0x10000000 by
16634 # default) and relocated if they conflict, which is a slow very memory
16635 # consuming and fragmenting process. To avoid this, we pick a random,
16636 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16637 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16638 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16639 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'
16642 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
16644 if test "$host_os" = linux-dietlibc
; then
16645 case $cc_basename in
16646 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16649 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16650 && test "$tmp_diet" = no
16652 tmp_addflag
=' $pic_flag'
16653 tmp_sharedflag
='-shared'
16654 case $cc_basename,$host_cpu in
16655 pgcc
*) # Portland Group C compiler
16656 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'
16657 tmp_addflag
=' $pic_flag'
16659 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16660 # Portland Group f77 and f90 compilers
16661 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'
16662 tmp_addflag
=' $pic_flag -Mnomain' ;;
16663 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16664 tmp_addflag
=' -i_dynamic' ;;
16665 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16666 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16667 ifc
* | ifort
*) # Intel Fortran compiler
16668 tmp_addflag
=' -nofor_main' ;;
16669 lf95
*) # Lahey Fortran 8.1
16670 whole_archive_flag_spec
=
16671 tmp_sharedflag
='--shared' ;;
16672 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16673 tmp_sharedflag
='-qmkshrobj'
16675 nvcc
*) # Cuda Compiler Driver 2.2
16676 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'
16677 compiler_needs_object
=yes
16680 case `$CC -V 2>&1 | sed 5q` in
16681 *Sun\ C
*) # Sun C 5.9
16682 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'
16683 compiler_needs_object
=yes
16684 tmp_sharedflag
='-G' ;;
16685 *Sun\ F
*) # Sun Fortran 8.3
16686 tmp_sharedflag
='-G' ;;
16688 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16690 if test "x$supports_anon_versioning" = xyes
; then
16691 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16692 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16693 echo "local: *; };" >> $output_objdir/$libname.ver~
16694 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16697 case $cc_basename in
16698 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16699 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16700 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16701 hardcode_libdir_flag_spec
=
16702 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16703 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16704 if test "x$supports_anon_versioning" = xyes
; then
16705 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16706 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16707 echo "local: *; };" >> $output_objdir/$libname.ver~
16708 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16718 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16719 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16722 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16723 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16728 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16732 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16733 *** create shared libraries on Solaris systems. Therefore, libtool
16734 *** is disabling shared libraries support. We urge you to upgrade GNU
16735 *** binutils to release 2.9.1 or newer. Another option is to modify
16736 *** your PATH or compiler configuration so that the native linker is
16737 *** used, and then restart.
16740 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16741 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16742 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16748 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16749 case `$LD -v 2>&1` in
16750 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16754 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16755 *** reliably create shared libraries on SCO systems. Therefore, libtool
16756 *** is disabling shared libraries support. We urge you to upgrade GNU
16757 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16758 *** your PATH or compiler configuration so that the native linker is
16759 *** used, and then restart.
16764 # For security reasons, it is highly recommended that you always
16765 # use absolute paths for naming shared libraries, and exclude the
16766 # DT_RUNPATH tag from executables and libraries. But doing so
16767 # requires that you compile everything twice, which is a pain.
16768 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16769 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16770 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16771 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16780 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16782 hardcode_direct
=yes
16783 hardcode_shlibpath_var
=no
16787 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16788 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16789 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16796 if test "$ld_shlibs" = no
; then
16798 hardcode_libdir_flag_spec
=
16799 export_dynamic_flag_spec
=
16800 whole_archive_flag_spec
=
16803 # PORTME fill in a description of your system's linker (not GNU ld)
16806 allow_undefined_flag
=unsupported
16807 always_export_symbols
=yes
16808 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'
16809 # Note: this linker hardcodes the directories in LIBPATH if there
16810 # are no directories specified by -L.
16811 hardcode_minus_L
=yes
16812 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16813 # Neither direct hardcoding nor static linking is supported with a
16815 hardcode_direct
=unsupported
16820 if test "$host_cpu" = ia64
; then
16821 # On IA64, the linker does run time linking by default, so we don't
16822 # have to do anything special.
16823 aix_use_runtimelinking
=no
16824 exp_sym_flag
='-Bexport'
16827 # If we're using GNU nm, then we don't want the "-C" option.
16828 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16829 # Also, AIX nm treats weak defined symbols like other global
16830 # defined symbols, whereas GNU nm marks them as "W".
16831 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16832 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'
16834 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'
16836 aix_use_runtimelinking
=no
16838 # Test if we are trying to use run time linking or normal
16839 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16840 # need to do runtime linking.
16841 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16842 for ld_flag
in $LDFLAGS; do
16843 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16844 aix_use_runtimelinking
=yes
16851 exp_sym_flag
='-bexport'
16852 no_entry_flag
='-bnoentry'
16855 # When large executables or shared objects are built, AIX ld can
16856 # have problems creating the table of contents. If linking a library
16857 # or program results in "error TOC overflow" add -mminimal-toc to
16858 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16859 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16862 hardcode_direct
=yes
16863 hardcode_direct_absolute
=yes
16864 hardcode_libdir_separator
=':'
16865 link_all_deplibs
=yes
16866 file_list_spec
='${wl}-f,'
16868 if test "$GCC" = yes; then
16869 case $host_os in aix4.
[012]|aix4.
[012].
*)
16870 # We only want to do this on AIX 4.2 and lower, the check
16871 # below for broken collect2 doesn't work under 4.3+
16872 collect2name
=`${CC} -print-prog-name=collect2`
16873 if test -f "$collect2name" &&
16874 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16876 # We have reworked collect2
16879 # We have old collect2
16880 hardcode_direct
=unsupported
16881 # It fails to find uninstalled libraries when the uninstalled
16882 # path is not listed in the libpath. Setting hardcode_minus_L
16883 # to unsupported forces relinking
16884 hardcode_minus_L
=yes
16885 hardcode_libdir_flag_spec
='-L$libdir'
16886 hardcode_libdir_separator
=
16890 shared_flag
='-shared'
16891 if test "$aix_use_runtimelinking" = yes; then
16892 shared_flag
="$shared_flag "'${wl}-G'
16896 if test "$host_cpu" = ia64
; then
16897 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16898 # chokes on -Wl,-G. The following line is correct:
16901 if test "$aix_use_runtimelinking" = yes; then
16902 shared_flag
='${wl}-G'
16904 shared_flag
='${wl}-bM:SRE'
16909 export_dynamic_flag_spec
='${wl}-bexpall'
16910 # It seems that -bexpall does not export symbols beginning with
16911 # underscore (_), so it is better to generate a list of symbols to export.
16912 always_export_symbols
=yes
16913 if test "$aix_use_runtimelinking" = yes; then
16914 # Warning - without using the other runtime loading flags (-brtl),
16915 # -berok will link without error, but may produce a broken library.
16916 allow_undefined_flag
='-berok'
16917 # Determine the default libpath from the value encoded in an
16918 # empty executable.
16919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16920 /* end confdefs.h. */
16930 if ac_fn_c_try_link
"$LINENO"; then :
16932 lt_aix_libpath_sed
='
16933 /Import File Strings/,/^$/ {
16939 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16940 # Check for a 64-bit object if we didn't find anything.
16941 if test -z "$aix_libpath"; then
16942 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16945 rm -f core conftest.err conftest.
$ac_objext \
16946 conftest
$ac_exeext conftest.
$ac_ext
16947 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16949 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16950 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"
16952 if test "$host_cpu" = ia64
; then
16953 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16954 allow_undefined_flag
="-z nodefs"
16955 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"
16957 # Determine the default libpath from the value encoded in an
16958 # empty executable.
16959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16960 /* end confdefs.h. */
16970 if ac_fn_c_try_link
"$LINENO"; then :
16972 lt_aix_libpath_sed
='
16973 /Import File Strings/,/^$/ {
16979 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16980 # Check for a 64-bit object if we didn't find anything.
16981 if test -z "$aix_libpath"; then
16982 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16985 rm -f core conftest.err conftest.
$ac_objext \
16986 conftest
$ac_exeext conftest.
$ac_ext
16987 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16989 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16990 # Warning - without using the other run time loading flags,
16991 # -berok will link without error, but may produce a broken library.
16992 no_undefined_flag
=' ${wl}-bernotok'
16993 allow_undefined_flag
=' ${wl}-berok'
16994 if test "$with_gnu_ld" = yes; then
16995 # We only use this code for GNU lds that support --whole-archive.
16996 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16998 # Exported symbols can be pulled into shared objects from archives
16999 whole_archive_flag_spec
='$convenience'
17001 archive_cmds_need_lc
=yes
17002 # This is similar to how AIX traditionally builds its shared libraries.
17003 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'
17011 # see comment about AmigaOS4 .so support
17012 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17013 archive_expsym_cmds
=''
17016 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)'
17017 hardcode_libdir_flag_spec
='-L$libdir'
17018 hardcode_minus_L
=yes
17024 export_dynamic_flag_spec
=-rdynamic
17027 cygwin
* | mingw
* | pw32
* | cegcc
*)
17028 # When not using gcc, we currently assume that we are using
17029 # Microsoft Visual C++.
17030 # hardcode_libdir_flag_spec is actually meaningless, as there is
17031 # no search path for DLLs.
17032 hardcode_libdir_flag_spec
=' '
17033 allow_undefined_flag
=unsupported
17034 # Tell ltmain to make .lib files, not .a files.
17036 # Tell ltmain to make .dll files, not .so files.
17038 # FIXME: Setting linknames here is a bad hack.
17039 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17040 # The linker will automatically build a .lib file if we build a DLL.
17041 old_archive_from_new_cmds
='true'
17042 # FIXME: Should let the user specify the lib program.
17043 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17044 fix_srcfile_path
='`cygpath -w "$srcfile"`'
17045 enable_shared_with_static_runtimes
=yes
17048 darwin
* | rhapsody
*)
17051 archive_cmds_need_lc
=no
17053 hardcode_automatic
=yes
17054 hardcode_shlibpath_var
=unsupported
17055 if test "$lt_cv_ld_force_load" = "yes"; then
17056 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\"`'
17058 whole_archive_flag_spec
=''
17060 link_all_deplibs
=yes
17061 allow_undefined_flag
="$_lt_dar_allow_undefined"
17062 case $cc_basename in
17063 ifort
*) _lt_dar_can_shared
=yes ;;
17064 *) _lt_dar_can_shared
=$GCC ;;
17066 if test "$_lt_dar_can_shared" = "yes"; then
17067 output_verbose_link_cmd
=func_echo_all
17068 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17069 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17070 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}"
17071 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}"
17080 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17081 hardcode_libdir_flag_spec
='-L$libdir'
17082 hardcode_shlibpath_var
=no
17085 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17086 # support. Future versions do this automatically, but an explicit c++rt0.o
17087 # does not break anything, and helps significantly (at the cost of a little
17090 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17091 hardcode_libdir_flag_spec
='-R$libdir'
17092 hardcode_direct
=yes
17093 hardcode_shlibpath_var
=no
17096 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17098 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17099 hardcode_direct
=yes
17100 hardcode_minus_L
=yes
17101 hardcode_shlibpath_var
=no
17104 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17105 freebsd
* | dragonfly
*)
17106 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17107 hardcode_libdir_flag_spec
='-R$libdir'
17108 hardcode_direct
=yes
17109 hardcode_shlibpath_var
=no
17113 if test "$GCC" = yes; then
17114 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'
17116 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'
17118 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17119 hardcode_libdir_separator
=:
17120 hardcode_direct
=yes
17122 # hardcode_minus_L: Not really in the search PATH,
17123 # but as the default location of the library.
17124 hardcode_minus_L
=yes
17125 export_dynamic_flag_spec
='${wl}-E'
17129 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17130 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17132 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17134 if test "$with_gnu_ld" = no
; then
17135 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17136 hardcode_libdir_flag_spec_ld
='+b $libdir'
17137 hardcode_libdir_separator
=:
17138 hardcode_direct
=yes
17139 hardcode_direct_absolute
=yes
17140 export_dynamic_flag_spec
='${wl}-E'
17141 # hardcode_minus_L: Not really in the search PATH,
17142 # but as the default location of the library.
17143 hardcode_minus_L
=yes
17148 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17151 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17154 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17157 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17163 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17166 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17170 # Older versions of the 11.00 compiler do not understand -b yet
17171 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17173 $as_echo_n "checking if $CC understands -b... " >&6; }
17174 if ${lt_cv_prog_compiler__b+:} false
; then :
17175 $as_echo_n "(cached) " >&6
17177 lt_cv_prog_compiler__b
=no
17178 save_LDFLAGS
="$LDFLAGS"
17179 LDFLAGS
="$LDFLAGS -b"
17180 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17181 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17182 # The linker can only warn and ignore the option if not recognized
17183 # So say no if there are warnings
17184 if test -s conftest.err
; then
17185 # Append any errors to the config.log.
17186 cat conftest.err
1>&5
17187 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
17188 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17189 if diff conftest.exp conftest.er2
>/dev
/null
; then
17190 lt_cv_prog_compiler__b
=yes
17193 lt_cv_prog_compiler__b
=yes
17197 LDFLAGS
="$save_LDFLAGS"
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17201 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17203 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
17204 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17206 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17212 if test "$with_gnu_ld" = no
; then
17213 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17214 hardcode_libdir_separator
=:
17219 hardcode_shlibpath_var
=no
17222 hardcode_direct
=yes
17223 hardcode_direct_absolute
=yes
17224 export_dynamic_flag_spec
='${wl}-E'
17226 # hardcode_minus_L: Not really in the search PATH,
17227 # but as the default location of the library.
17228 hardcode_minus_L
=yes
17234 irix5
* | irix6
* | nonstopux
*)
17235 if test "$GCC" = yes; then
17236 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'
17237 # Try to use the -exported_symbol ld option, if it does not
17238 # work, assume that -exports_file does not work either and
17239 # implicitly export all symbols.
17240 save_LDFLAGS
="$LDFLAGS"
17241 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17243 /* end confdefs.h. */
17246 if ac_fn_c_try_link
"$LINENO"; then :
17247 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'
17250 rm -f core conftest.err conftest.
$ac_objext \
17251 conftest
$ac_exeext conftest.
$ac_ext
17252 LDFLAGS
="$save_LDFLAGS"
17254 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'
17255 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'
17257 archive_cmds_need_lc
='no'
17258 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17259 hardcode_libdir_separator
=:
17261 link_all_deplibs
=yes
17265 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17266 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17268 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17270 hardcode_libdir_flag_spec
='-R$libdir'
17271 hardcode_direct
=yes
17272 hardcode_shlibpath_var
=no
17276 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17277 hardcode_direct
=yes
17278 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17279 hardcode_libdir_separator
=:
17280 hardcode_shlibpath_var
=no
17287 if test -f /usr
/libexec
/ld.so
; then
17288 hardcode_direct
=yes
17289 hardcode_shlibpath_var
=no
17290 hardcode_direct_absolute
=yes
17291 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17292 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17293 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17294 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17295 export_dynamic_flag_spec
='${wl}-E'
17298 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17299 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17300 hardcode_libdir_flag_spec
='-R$libdir'
17303 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17304 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17314 hardcode_libdir_flag_spec
='-L$libdir'
17315 hardcode_minus_L
=yes
17316 allow_undefined_flag
=unsupported
17317 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'
17318 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17322 if test "$GCC" = yes; then
17323 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17324 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'
17326 allow_undefined_flag
=' -expect_unresolved \*'
17327 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'
17329 archive_cmds_need_lc
='no'
17330 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17331 hardcode_libdir_separator
=:
17334 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17335 if test "$GCC" = yes; then
17336 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17337 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'
17338 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17340 allow_undefined_flag
=' -expect_unresolved \*'
17341 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'
17342 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~
17343 $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'
17345 # Both c and cxx compiler support -rpath directly
17346 hardcode_libdir_flag_spec
='-rpath $libdir'
17348 archive_cmds_need_lc
='no'
17349 hardcode_libdir_separator
=:
17353 no_undefined_flag
=' -z defs'
17354 if test "$GCC" = yes; then
17356 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17357 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17358 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17360 case `$CC -V 2>&1` in
17363 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17364 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17365 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17369 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17370 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17371 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17375 hardcode_libdir_flag_spec
='-R$libdir'
17376 hardcode_shlibpath_var
=no
17378 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17380 # The compiler driver will combine and reorder linker options,
17381 # but understands `-z linker_flag'. GCC discards it without `$wl',
17382 # but is careful enough not to reorder.
17383 # Supported since Solaris 2.6 (maybe 2.5.1?)
17384 if test "$GCC" = yes; then
17385 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17387 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
17391 link_all_deplibs
=yes
17395 if test "x$host_vendor" = xsequent
; then
17396 # Use $CC to link under sequent, because it throws in some extra .o
17397 # files that make .init and .fini sections work.
17398 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17400 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17402 hardcode_libdir_flag_spec
='-L$libdir'
17403 hardcode_direct
=yes
17404 hardcode_minus_L
=yes
17405 hardcode_shlibpath_var
=no
17409 case $host_vendor in
17411 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17412 hardcode_direct
=yes # is this really true???
17415 ## LD is ld it makes a PLAMLIB
17416 ## CC just makes a GrossModule.
17417 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17418 reload_cmds
='$CC -r -o $output$reload_objs'
17422 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17423 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17426 runpath_var
='LD_RUN_PATH'
17427 hardcode_shlibpath_var
=no
17431 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17432 hardcode_shlibpath_var
=no
17433 export_dynamic_flag_spec
='-Bexport'
17437 if test -d /usr
/nec
; then
17438 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17439 hardcode_shlibpath_var
=no
17440 runpath_var
=LD_RUN_PATH
17441 hardcode_runpath_var
=yes
17446 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17447 no_undefined_flag
='${wl}-z,text'
17448 archive_cmds_need_lc
=no
17449 hardcode_shlibpath_var
=no
17450 runpath_var
='LD_RUN_PATH'
17452 if test "$GCC" = yes; then
17453 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17454 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17456 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17457 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17461 sysv5
* | sco3.2v5
* | sco5v6
*)
17462 # Note: We can NOT use -z defs as we might desire, because we do not
17463 # link with -lc, and that would cause any symbols used from libc to
17464 # always be unresolved, which means just about no library would
17465 # ever link correctly. If we're not using GNU ld we use -z text
17466 # though, which does catch some bad symbols but isn't as heavy-handed
17468 no_undefined_flag
='${wl}-z,text'
17469 allow_undefined_flag
='${wl}-z,nodefs'
17470 archive_cmds_need_lc
=no
17471 hardcode_shlibpath_var
=no
17472 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17473 hardcode_libdir_separator
=':'
17474 link_all_deplibs
=yes
17475 export_dynamic_flag_spec
='${wl}-Bexport'
17476 runpath_var
='LD_RUN_PATH'
17478 if test "$GCC" = yes; then
17479 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17480 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17482 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17483 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17488 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17489 hardcode_libdir_flag_spec
='-L$libdir'
17490 hardcode_shlibpath_var
=no
17498 if test x
$host_vendor = xsni
; then
17500 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17501 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17508 $as_echo "$ld_shlibs" >&6; }
17509 test "$ld_shlibs" = no
&& can_build_shared
=no
17511 with_gnu_ld
=$with_gnu_ld
17528 # Do we need to explicitly link libc?
17530 case "x$archive_cmds_need_lc" in
17532 # Assume -lc should be added
17533 archive_cmds_need_lc
=yes
17535 if test "$enable_shared" = yes && test "$GCC" = yes; then
17536 case $archive_cmds in
17538 # FIXME: we may have to deal with multi-command sequences.
17541 # Test whether the compiler implicitly links with -lc since on some
17542 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17543 # to ld, don't add -lc before -lgcc.
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17545 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17546 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
17547 $as_echo_n "(cached) " >&6
17550 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17553 (eval $ac_compile) 2>&5
17555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17556 test $ac_status = 0; } 2>conftest.err
; then
17559 libobjs
=conftest.
$ac_objext
17561 wl
=$lt_prog_compiler_wl
17562 pic_flag
=$lt_prog_compiler_pic
17568 lt_save_allow_undefined_flag
=$allow_undefined_flag
17569 allow_undefined_flag
=
17570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17571 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17574 test $ac_status = 0; }
17576 lt_cv_archive_cmds_need_lc
=no
17578 lt_cv_archive_cmds_need_lc
=yes
17580 allow_undefined_flag
=$lt_save_allow_undefined_flag
17582 cat conftest.err
1>&5
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17588 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17589 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17753 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17755 if test "$GCC" = yes; then
17757 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17758 *) lt_awk_arg
="/^libraries:/" ;;
17761 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17762 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17764 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17765 case $lt_search_path_spec in
17767 # if the path contains ";" then we assume it to be the separator
17768 # otherwise default to the standard path separator (i.e. ":") - it is
17769 # assumed that no part of a normal pathname contains ";" but that should
17770 # okay in the real world where ";" in dirpaths is itself problematic.
17771 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17774 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17777 # Ok, now we have the path, separated by spaces, we can step through it
17778 # and add multilib dir if necessary.
17779 lt_tmp_lt_search_path_spec
=
17780 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17781 for lt_sys_path
in $lt_search_path_spec; do
17782 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17783 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17785 test -d "$lt_sys_path" && \
17786 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17789 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17790 BEGIN {RS=" "; FS="/|\n";} {
17793 for (lt_i = NF; lt_i > 0; lt_i--) {
17794 if ($lt_i != "" && $lt_i != ".") {
17795 if ($lt_i == "..") {
17798 if (lt_count == 0) {
17799 lt_foo="/" $lt_i lt_foo;
17806 if (lt_foo != "") { lt_freq[lt_foo]++; }
17807 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17809 # AWK program above erroneously prepends '/' to C:/dos/paths
17812 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17813 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17815 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17817 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17819 library_names_spec
=
17820 libname_spec
='lib$name'
17824 postuninstall_cmds
=
17828 shlibpath_overrides_runpath
=unknown
17830 dynamic_linker
="$host_os ld.so"
17831 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17832 need_lib_prefix
=unknown
17833 hardcode_into_libs
=no
17835 # when you set need_version to no, make sure it does not cause -set_version
17836 # flags to be left without arguments
17837 need_version
=unknown
17842 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17843 shlibpath_var
=LIBPATH
17845 # AIX 3 has no versioning support, so we append a major version to the name.
17846 soname_spec
='${libname}${release}${shared_ext}$major'
17853 hardcode_into_libs
=yes
17854 if test "$host_cpu" = ia64
; then
17855 # AIX 5 supports IA64
17856 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17857 shlibpath_var
=LD_LIBRARY_PATH
17859 # With GCC up to 2.95.x, collect2 would create an import file
17860 # for dependence libraries. The import file would start with
17861 # the line `#! .'. This would cause the generated library to
17862 # depend on `.', always an invalid library. This was fixed in
17863 # development snapshots of GCC prior to 3.0.
17865 aix4 | aix4.
[01] | aix4.
[01].
*)
17866 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17868 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17871 can_build_shared
=no
17875 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17876 # soname into executable. Probably we can add versioning support to
17877 # collect2, so additional links can be useful in future.
17878 if test "$aix_use_runtimelinking" = yes; then
17879 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17880 # instead of lib<name>.a to let people know that these are not
17881 # typical AIX shared libraries.
17882 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17884 # We preserve .a as extension for shared libraries through AIX4.2
17885 # and later when we are not doing run time linking.
17886 library_names_spec
='${libname}${release}.a $libname.a'
17887 soname_spec
='${libname}${release}${shared_ext}$major'
17889 shlibpath_var
=LIBPATH
17896 # Since July 2007 AmigaOS4 officially supports .so libraries.
17897 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17898 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17901 library_names_spec
='$libname.ixlibrary $libname.a'
17902 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17903 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'
17909 library_names_spec
='${libname}${shared_ext}'
17910 dynamic_linker
="$host_os ld.so"
17911 shlibpath_var
=LIBRARY_PATH
17917 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17918 soname_spec
='${libname}${release}${shared_ext}$major'
17919 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17920 shlibpath_var
=LD_LIBRARY_PATH
17921 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17922 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17923 # the default ld.so.conf also contains /usr/contrib/lib and
17924 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17925 # libtool to hard-code these into programs
17928 cygwin
* | mingw
* | pw32
* | cegcc
*)
17929 version_type
=windows
17934 case $GCC,$host_os in
17935 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17936 library_names_spec
='$libname.dll.a'
17937 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17938 postinstall_cmds
='base_file=`basename \${file}`~
17939 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17940 dldir=$destdir/`dirname \$dlpath`~
17941 test -d \$dldir || mkdir -p \$dldir~
17942 $install_prog $dir/$dlname \$dldir/$dlname~
17943 chmod a+x \$dldir/$dlname~
17944 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17945 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17947 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17948 dlpath=$dir/\$dldll~
17950 shlibpath_overrides_runpath
=yes
17954 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17955 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17957 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17960 # MinGW DLLs use traditional 'lib' prefix
17961 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17964 # pw32 DLLs use 'pw' prefix rather than 'lib'
17965 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17971 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17974 dynamic_linker
='Win32 ld.exe'
17975 # FIXME: first we should search . and the directory the executable is in
17979 darwin
* | rhapsody
*)
17980 dynamic_linker
="$host_os dyld"
17981 version_type
=darwin
17984 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17985 soname_spec
='${libname}${release}${major}$shared_ext'
17986 shlibpath_overrides_runpath
=yes
17987 shlibpath_var
=DYLD_LIBRARY_PATH
17988 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17990 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17991 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17998 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17999 soname_spec
='${libname}${release}${shared_ext}$major'
18000 shlibpath_var
=LD_LIBRARY_PATH
18003 freebsd
* | dragonfly
*)
18004 # DragonFly does not have aout. When/if they implement a new
18005 # versioning mechanism, adjust this.
18006 if test -x /usr
/bin
/objformat
; then
18007 objformat
=`/usr/bin/objformat`
18010 freebsd
[23].
*) objformat
=aout
;;
18011 *) objformat
=elf
;;
18014 version_type
=freebsd-
$objformat
18015 case $version_type in
18017 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18022 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18026 shlibpath_var
=LD_LIBRARY_PATH
18029 shlibpath_overrides_runpath
=yes
18031 freebsd3.
[01]* | freebsdelf3.
[01]*)
18032 shlibpath_overrides_runpath
=yes
18033 hardcode_into_libs
=yes
18035 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18036 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18037 shlibpath_overrides_runpath
=no
18038 hardcode_into_libs
=yes
18040 *) # from 4.6 on, and DragonFly
18041 shlibpath_overrides_runpath
=yes
18042 hardcode_into_libs
=yes
18051 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18052 soname_spec
='${libname}${release}${shared_ext}$major'
18053 shlibpath_var
=LD_LIBRARY_PATH
18054 hardcode_into_libs
=yes
18061 dynamic_linker
="$host_os runtime_loader"
18062 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18063 soname_spec
='${libname}${release}${shared_ext}$major'
18064 shlibpath_var
=LIBRARY_PATH
18065 shlibpath_overrides_runpath
=yes
18066 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18067 hardcode_into_libs
=yes
18070 hpux9
* | hpux10
* | hpux11
*)
18071 # Give a soname corresponding to the major version so that dld.sl refuses to
18072 # link against other versions.
18079 hardcode_into_libs
=yes
18080 dynamic_linker
="$host_os dld.so"
18081 shlibpath_var
=LD_LIBRARY_PATH
18082 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18083 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18084 soname_spec
='${libname}${release}${shared_ext}$major'
18085 if test "X$HPUX_IA64_MODE" = X32
; then
18086 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18088 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18090 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18094 hardcode_into_libs
=yes
18095 dynamic_linker
="$host_os dld.sl"
18096 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18097 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18098 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18099 soname_spec
='${libname}${release}${shared_ext}$major'
18100 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18101 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18105 dynamic_linker
="$host_os dld.sl"
18106 shlibpath_var
=SHLIB_PATH
18107 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18108 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18109 soname_spec
='${libname}${release}${shared_ext}$major'
18112 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18113 postinstall_cmds
='chmod 555 $lib'
18114 # or fails outright, so override atomically:
18115 install_override_mode
=555
18122 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18123 soname_spec
='${libname}${release}${shared_ext}$major'
18124 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18125 shlibpath_var
=LD_LIBRARY_PATH
18126 shlibpath_overrides_runpath
=no
18127 hardcode_into_libs
=yes
18130 irix5
* | irix6
* | nonstopux
*)
18132 nonstopux
*) version_type
=nonstopux
;;
18134 if test "$lt_cv_prog_gnu_ld" = yes; then
18142 soname_spec
='${libname}${release}${shared_ext}$major'
18143 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18145 irix5
* | nonstopux
*)
18146 libsuff
= shlibsuff
=
18149 case $LD in # libtool.m4 will add one of these switches to LD
18150 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18151 libsuff
= shlibsuff
= libmagic
=32-bit;;
18152 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18153 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18154 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18155 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18156 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18160 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18161 shlibpath_overrides_runpath
=no
18162 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18163 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18164 hardcode_into_libs
=yes
18167 # No shared lib support for Linux oldld, aout, or coff.
18168 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18172 # This must be Linux ELF.
18174 # uclinux* changes (here and below) have been submitted to the libtool
18175 # project, but have not yet been accepted: they are GCC-local changes
18176 # for the time being. (See
18177 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18178 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
18182 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18183 soname_spec
='${libname}${release}${shared_ext}$major'
18184 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18185 shlibpath_var
=LD_LIBRARY_PATH
18186 shlibpath_overrides_runpath
=no
18188 # Some binutils ld are patched to set DT_RUNPATH
18189 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
18190 $as_echo_n "(cached) " >&6
18192 lt_cv_shlibpath_overrides_runpath
=no
18193 save_LDFLAGS
=$LDFLAGS
18194 save_libdir
=$libdir
18195 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18196 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18198 /* end confdefs.h. */
18208 if ac_fn_c_try_link
"$LINENO"; then :
18209 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
18210 lt_cv_shlibpath_overrides_runpath
=yes
18213 rm -f core conftest.err conftest.
$ac_objext \
18214 conftest
$ac_exeext conftest.
$ac_ext
18215 LDFLAGS
=$save_LDFLAGS
18216 libdir
=$save_libdir
18220 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
18222 # This implies no fast_install, which is unacceptable.
18223 # Some rework will be needed to allow for fast_install
18224 # before this can be enabled.
18225 hardcode_into_libs
=yes
18227 # Append ld.so.conf contents to the search path
18228 if test -f /etc
/ld.so.conf
; then
18229 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' ' '`
18230 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18233 # We used to test for /lib/ld.so.1 and disable shared libraries on
18234 # powerpc, because MkLinux only supported shared libraries with the
18235 # GNU dynamic linker. Since this was broken with cross compilers,
18236 # most powerpc-linux boxes support dynamic linking these days and
18237 # people can always --disable-shared, the test was removed, and we
18238 # assume the GNU/Linux dynamic linker is in use.
18239 dynamic_linker
='GNU/Linux ld.so'
18246 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18247 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18248 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18249 dynamic_linker
='NetBSD (a.out) ld.so'
18251 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18252 soname_spec
='${libname}${release}${shared_ext}$major'
18253 dynamic_linker
='NetBSD ld.elf_so'
18255 shlibpath_var
=LD_LIBRARY_PATH
18256 shlibpath_overrides_runpath
=yes
18257 hardcode_into_libs
=yes
18262 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18263 shlibpath_var
=LD_LIBRARY_PATH
18264 shlibpath_overrides_runpath
=yes
18271 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18272 soname_spec
='${libname}${release}${shared_ext}$major'
18273 shlibpath_var
=LD_LIBRARY_PATH
18274 shlibpath_overrides_runpath
=no
18275 hardcode_into_libs
=yes
18276 dynamic_linker
='ldqnx.so'
18281 sys_lib_dlsearch_path_spec
="/usr/lib"
18283 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18285 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18286 *) need_version
=no
;;
18288 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18289 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18290 shlibpath_var
=LD_LIBRARY_PATH
18291 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18293 openbsd2.
[89] | openbsd2.
[89].
*)
18294 shlibpath_overrides_runpath
=no
18297 shlibpath_overrides_runpath
=yes
18301 shlibpath_overrides_runpath
=yes
18306 libname_spec
='$name'
18309 library_names_spec
='$libname${shared_ext} $libname.a'
18310 dynamic_linker
='OS/2 ld.exe'
18311 shlibpath_var
=LIBPATH
18314 osf3
* | osf4
* | osf5
*)
18318 soname_spec
='${libname}${release}${shared_ext}$major'
18319 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18320 shlibpath_var
=LD_LIBRARY_PATH
18321 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18322 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18333 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18334 soname_spec
='${libname}${release}${shared_ext}$major'
18335 shlibpath_var
=LD_LIBRARY_PATH
18336 shlibpath_overrides_runpath
=yes
18337 hardcode_into_libs
=yes
18338 # ldd complains unless libraries are executable
18339 postinstall_cmds
='chmod +x $lib'
18344 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18345 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18346 shlibpath_var
=LD_LIBRARY_PATH
18347 shlibpath_overrides_runpath
=yes
18348 if test "$with_gnu_ld" = yes; then
18356 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18357 soname_spec
='${libname}${release}${shared_ext}$major'
18358 shlibpath_var
=LD_LIBRARY_PATH
18359 case $host_vendor in
18361 shlibpath_overrides_runpath
=no
18363 runpath_var
=LD_RUN_PATH
18371 shlibpath_overrides_runpath
=no
18372 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18378 if test -d /usr
/nec
;then
18380 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18381 soname_spec
='$libname${shared_ext}.$major'
18382 shlibpath_var
=LD_LIBRARY_PATH
18386 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18387 version_type
=freebsd-elf
18390 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18391 soname_spec
='${libname}${release}${shared_ext}$major'
18392 shlibpath_var
=LD_LIBRARY_PATH
18393 shlibpath_overrides_runpath
=yes
18394 hardcode_into_libs
=yes
18395 if test "$with_gnu_ld" = yes; then
18396 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18398 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18401 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18405 sys_lib_dlsearch_path_spec
='/usr/lib'
18409 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18413 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18414 shlibpath_var
=LD_LIBRARY_PATH
18415 shlibpath_overrides_runpath
=no
18416 hardcode_into_libs
=yes
18421 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18422 soname_spec
='${libname}${release}${shared_ext}$major'
18423 shlibpath_var
=LD_LIBRARY_PATH
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18431 $as_echo "$dynamic_linker" >&6; }
18432 test "$dynamic_linker" = no
&& can_build_shared
=no
18434 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18435 if test "$GCC" = yes; then
18436 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18439 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18440 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18442 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18443 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18538 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18540 if test -n "$hardcode_libdir_flag_spec" ||
18541 test -n "$runpath_var" ||
18542 test "X$hardcode_automatic" = "Xyes" ; then
18544 # We can hardcode non-existent directories.
18545 if test "$hardcode_direct" != no
&&
18546 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18547 # have to relink, otherwise we might link with an installed library
18548 # when we should be linking with a yet-to-be-installed one
18549 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18550 test "$hardcode_minus_L" != no
; then
18551 # Linking always hardcodes the temporary library directory.
18552 hardcode_action
=relink
18554 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18555 hardcode_action
=immediate
18558 # We cannot hardcode anything, or else we can only hardcode existing
18560 hardcode_action
=unsupported
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18563 $as_echo "$hardcode_action" >&6; }
18565 if test "$hardcode_action" = relink ||
18566 test "$inherit_rpath" = yes; then
18567 # Fast installation is not supported
18568 enable_fast_install
=no
18569 elif test "$shlibpath_overrides_runpath" = yes ||
18570 test "$enable_shared" = no
; then
18571 # Fast installation is not necessary
18572 enable_fast_install
=needless
18580 if test "x$enable_dlopen" != xyes
; then
18581 enable_dlopen
=unknown
18582 enable_dlopen_self
=unknown
18583 enable_dlopen_self_static
=unknown
18590 lt_cv_dlopen
="load_add_on"
18592 lt_cv_dlopen_self
=yes
18595 mingw
* | pw32
* | cegcc
*)
18596 lt_cv_dlopen
="LoadLibrary"
18601 lt_cv_dlopen
="dlopen"
18606 # if libdl is installed we need to link against it
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18608 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18609 if ${ac_cv_lib_dl_dlopen+:} false
; then :
18610 $as_echo_n "(cached) " >&6
18612 ac_check_lib_save_LIBS
=$LIBS
18614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18615 /* end confdefs.h. */
18617 /* Override any GCC internal prototype to avoid an error.
18618 Use char because int might match the return type of a GCC
18619 builtin and then its argument prototype would still apply. */
18632 if ac_fn_c_try_link
"$LINENO"; then :
18633 ac_cv_lib_dl_dlopen
=yes
18635 ac_cv_lib_dl_dlopen
=no
18637 rm -f core conftest.err conftest.
$ac_objext \
18638 conftest
$ac_exeext conftest.
$ac_ext
18639 LIBS
=$ac_check_lib_save_LIBS
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18642 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18643 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
18644 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18647 lt_cv_dlopen
="dyld"
18649 lt_cv_dlopen_self
=yes
18656 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18657 if test "x$ac_cv_func_shl_load" = xyes
; then :
18658 lt_cv_dlopen
="shl_load"
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18661 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18662 if ${ac_cv_lib_dld_shl_load+:} false
; then :
18663 $as_echo_n "(cached) " >&6
18665 ac_check_lib_save_LIBS
=$LIBS
18667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18668 /* end confdefs.h. */
18670 /* Override any GCC internal prototype to avoid an error.
18671 Use char because int might match the return type of a GCC
18672 builtin and then its argument prototype would still apply. */
18680 return shl_load ();
18685 if ac_fn_c_try_link
"$LINENO"; then :
18686 ac_cv_lib_dld_shl_load
=yes
18688 ac_cv_lib_dld_shl_load
=no
18690 rm -f core conftest.err conftest.
$ac_objext \
18691 conftest
$ac_exeext conftest.
$ac_ext
18692 LIBS
=$ac_check_lib_save_LIBS
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18695 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18696 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
18697 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18699 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18700 if test "x$ac_cv_func_dlopen" = xyes
; then :
18701 lt_cv_dlopen
="dlopen"
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18704 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18705 if ${ac_cv_lib_dl_dlopen+:} false
; then :
18706 $as_echo_n "(cached) " >&6
18708 ac_check_lib_save_LIBS
=$LIBS
18710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18711 /* end confdefs.h. */
18713 /* Override any GCC internal prototype to avoid an error.
18714 Use char because int might match the return type of a GCC
18715 builtin and then its argument prototype would still apply. */
18728 if ac_fn_c_try_link
"$LINENO"; then :
18729 ac_cv_lib_dl_dlopen
=yes
18731 ac_cv_lib_dl_dlopen
=no
18733 rm -f core conftest.err conftest.
$ac_objext \
18734 conftest
$ac_exeext conftest.
$ac_ext
18735 LIBS
=$ac_check_lib_save_LIBS
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18738 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18739 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
18740 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18743 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18744 if ${ac_cv_lib_svld_dlopen+:} false
; then :
18745 $as_echo_n "(cached) " >&6
18747 ac_check_lib_save_LIBS
=$LIBS
18748 LIBS
="-lsvld $LIBS"
18749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18750 /* end confdefs.h. */
18752 /* Override any GCC internal prototype to avoid an error.
18753 Use char because int might match the return type of a GCC
18754 builtin and then its argument prototype would still apply. */
18767 if ac_fn_c_try_link
"$LINENO"; then :
18768 ac_cv_lib_svld_dlopen
=yes
18770 ac_cv_lib_svld_dlopen
=no
18772 rm -f core conftest.err conftest.
$ac_objext \
18773 conftest
$ac_exeext conftest.
$ac_ext
18774 LIBS
=$ac_check_lib_save_LIBS
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18777 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18778 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
18779 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18782 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18783 if ${ac_cv_lib_dld_dld_link+:} false
; then :
18784 $as_echo_n "(cached) " >&6
18786 ac_check_lib_save_LIBS
=$LIBS
18788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18789 /* end confdefs.h. */
18791 /* Override any GCC internal prototype to avoid an error.
18792 Use char because int might match the return type of a GCC
18793 builtin and then its argument prototype would still apply. */
18801 return dld_link ();
18806 if ac_fn_c_try_link
"$LINENO"; then :
18807 ac_cv_lib_dld_dld_link
=yes
18809 ac_cv_lib_dld_dld_link
=no
18811 rm -f core conftest.err conftest.
$ac_objext \
18812 conftest
$ac_exeext conftest.
$ac_ext
18813 LIBS
=$ac_check_lib_save_LIBS
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18816 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18817 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
18818 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18839 if test "x$lt_cv_dlopen" != xno
; then
18845 case $lt_cv_dlopen in
18847 save_CPPFLAGS
="$CPPFLAGS"
18848 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18850 save_LDFLAGS
="$LDFLAGS"
18851 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18854 LIBS
="$lt_cv_dlopen_libs $LIBS"
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18857 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18858 if ${lt_cv_dlopen_self+:} false
; then :
18859 $as_echo_n "(cached) " >&6
18861 if test "$cross_compiling" = yes; then :
18862 lt_cv_dlopen_self
=cross
18864 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18865 lt_status
=$lt_dlunknown
18866 cat > conftest.
$ac_ext <<_LT_EOF
18867 #line 18867 "configure"
18868 #include "confdefs.h"
18877 # define LT_DLGLOBAL RTLD_GLOBAL
18880 # define LT_DLGLOBAL DL_GLOBAL
18882 # define LT_DLGLOBAL 0
18886 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18887 find out it does not work in some platform. */
18888 #ifndef LT_DLLAZY_OR_NOW
18890 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18893 # define LT_DLLAZY_OR_NOW DL_LAZY
18896 # define LT_DLLAZY_OR_NOW RTLD_NOW
18899 # define LT_DLLAZY_OR_NOW DL_NOW
18901 # define LT_DLLAZY_OR_NOW 0
18908 /* When -fvisbility=hidden is used, assume the code has been annotated
18909 correspondingly for the symbols needed. */
18910 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18911 void fnord () __attribute__((visibility("default")));
18914 void fnord () { int i=42; }
18917 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18918 int status = $lt_dlunknown;
18922 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18925 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18926 else puts (dlerror ());
18928 /* dlclose (self); */
18936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18937 (eval $ac_link) 2>&5
18939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18940 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18941 (.
/conftest
; exit; ) >&5 2>/dev
/null
18943 case x
$lt_status in
18944 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18945 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18946 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18949 # compilation failed
18950 lt_cv_dlopen_self
=no
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18958 $as_echo "$lt_cv_dlopen_self" >&6; }
18960 if test "x$lt_cv_dlopen_self" = xyes
; then
18961 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18963 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18964 if ${lt_cv_dlopen_self_static+:} false
; then :
18965 $as_echo_n "(cached) " >&6
18967 if test "$cross_compiling" = yes; then :
18968 lt_cv_dlopen_self_static
=cross
18970 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18971 lt_status
=$lt_dlunknown
18972 cat > conftest.
$ac_ext <<_LT_EOF
18973 #line 18973 "configure"
18974 #include "confdefs.h"
18983 # define LT_DLGLOBAL RTLD_GLOBAL
18986 # define LT_DLGLOBAL DL_GLOBAL
18988 # define LT_DLGLOBAL 0
18992 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18993 find out it does not work in some platform. */
18994 #ifndef LT_DLLAZY_OR_NOW
18996 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18999 # define LT_DLLAZY_OR_NOW DL_LAZY
19002 # define LT_DLLAZY_OR_NOW RTLD_NOW
19005 # define LT_DLLAZY_OR_NOW DL_NOW
19007 # define LT_DLLAZY_OR_NOW 0
19014 /* When -fvisbility=hidden is used, assume the code has been annotated
19015 correspondingly for the symbols needed. */
19016 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19017 void fnord () __attribute__((visibility("default")));
19020 void fnord () { int i=42; }
19023 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19024 int status = $lt_dlunknown;
19028 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19031 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19032 else puts (dlerror ());
19034 /* dlclose (self); */
19042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19043 (eval $ac_link) 2>&5
19045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19046 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19047 (.
/conftest
; exit; ) >&5 2>/dev
/null
19049 case x
$lt_status in
19050 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
19051 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
19052 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
19055 # compilation failed
19056 lt_cv_dlopen_self_static
=no
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19064 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19067 CPPFLAGS
="$save_CPPFLAGS"
19068 LDFLAGS
="$save_LDFLAGS"
19073 case $lt_cv_dlopen_self in
19074 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
19075 *) enable_dlopen_self
=unknown
;;
19078 case $lt_cv_dlopen_self_static in
19079 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
19080 *) enable_dlopen_self_static
=unknown
;;
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19103 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19104 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
19105 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
19106 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19108 $as_echo "yes" >&6; }
19110 # FIXME - insert some real tests, host_os isn't really good enough
19113 if test -n "$STRIP" ; then
19114 striplib
="$STRIP -x"
19115 old_striplib
="$STRIP -S"
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19117 $as_echo "yes" >&6; }
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19120 $as_echo "no" >&6; }
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19125 $as_echo "no" >&6; }
19141 # Report which library types will actually be built
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19143 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19145 $as_echo "$can_build_shared" >&6; }
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19148 $as_echo_n "checking whether to build shared libraries... " >&6; }
19149 test "$can_build_shared" = "no" && enable_shared
=no
19151 # On AIX, shared libraries and static libraries use the same namespace, and
19152 # are all built from PIC.
19155 test "$enable_shared" = yes && enable_static
=no
19156 if test -n "$RANLIB"; then
19157 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
19158 postinstall_cmds
='$RANLIB $lib'
19163 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
19164 test "$enable_shared" = yes && enable_static
=no
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19169 $as_echo "$enable_shared" >&6; }
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19172 $as_echo_n "checking whether to build static libraries... " >&6; }
19173 # Make sure either enable_shared or enable_static is yes.
19174 test "$enable_shared" = yes || enable_static
=yes
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19176 $as_echo "$enable_static" >&6; }
19183 ac_cpp
='$CXXCPP $CPPFLAGS'
19184 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19185 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19186 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19190 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19191 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19192 (test "X$CXX" != "Xg++"))) ; then
19194 ac_cpp
='$CXXCPP $CPPFLAGS'
19195 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19196 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19197 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19199 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19200 if test -z "$CXXCPP"; then
19201 if ${ac_cv_prog_CXXCPP+:} false
; then :
19202 $as_echo_n "(cached) " >&6
19204 # Double quotes because CXXCPP needs to be expanded
19205 for CXXCPP
in "$CXX -E" "/lib/cpp"
19207 ac_preproc_ok
=false
19208 for ac_cxx_preproc_warn_flag
in '' yes
19210 # Use a header file that comes with gcc, so configuring glibc
19211 # with a fresh cross-compiler works.
19212 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19213 # <limits.h> exists even on freestanding compilers.
19214 # On the NeXT, cc -E runs the code through the compiler's parser,
19215 # not just through cpp. "Syntax error" is here to catch this case.
19216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19217 /* end confdefs.h. */
19219 # include <limits.h>
19221 # include <assert.h>
19225 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19228 # Broken: fails on valid input.
19231 rm -f conftest.err conftest.i conftest.
$ac_ext
19233 # OK, works on sane cases. Now check whether nonexistent headers
19234 # can be detected and how.
19235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19236 /* end confdefs.h. */
19237 #include <ac_nonexistent.h>
19239 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19240 # Broken: success on invalid input.
19243 # Passes both tests.
19247 rm -f conftest.err conftest.i conftest.
$ac_ext
19250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19251 rm -f conftest.i conftest.err conftest.
$ac_ext
19252 if $ac_preproc_ok; then :
19257 ac_cv_prog_CXXCPP
=$CXXCPP
19260 CXXCPP
=$ac_cv_prog_CXXCPP
19262 ac_cv_prog_CXXCPP
=$CXXCPP
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19265 $as_echo "$CXXCPP" >&6; }
19266 ac_preproc_ok
=false
19267 for ac_cxx_preproc_warn_flag
in '' yes
19269 # Use a header file that comes with gcc, so configuring glibc
19270 # with a fresh cross-compiler works.
19271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19272 # <limits.h> exists even on freestanding compilers.
19273 # On the NeXT, cc -E runs the code through the compiler's parser,
19274 # not just through cpp. "Syntax error" is here to catch this case.
19275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19276 /* end confdefs.h. */
19278 # include <limits.h>
19280 # include <assert.h>
19284 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19287 # Broken: fails on valid input.
19290 rm -f conftest.err conftest.i conftest.
$ac_ext
19292 # OK, works on sane cases. Now check whether nonexistent headers
19293 # can be detected and how.
19294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19295 /* end confdefs.h. */
19296 #include <ac_nonexistent.h>
19298 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19299 # Broken: success on invalid input.
19302 # Passes both tests.
19306 rm -f conftest.err conftest.i conftest.
$ac_ext
19309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19310 rm -f conftest.i conftest.err conftest.
$ac_ext
19311 if $ac_preproc_ok; then :
19314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19316 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
19317 See \`config.log' for more details" "$LINENO" 5; }
19321 ac_cpp
='$CXXCPP $CPPFLAGS'
19322 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19323 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19324 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19327 _lt_caught_CXX_error
=yes
19331 ac_cpp
='$CXXCPP $CPPFLAGS'
19332 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19333 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19334 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19336 archive_cmds_need_lc_CXX
=no
19337 allow_undefined_flag_CXX
=
19338 always_export_symbols_CXX
=no
19339 archive_expsym_cmds_CXX
=
19340 compiler_needs_object_CXX
=no
19341 export_dynamic_flag_spec_CXX
=
19342 hardcode_direct_CXX
=no
19343 hardcode_direct_absolute_CXX
=no
19344 hardcode_libdir_flag_spec_CXX
=
19345 hardcode_libdir_flag_spec_ld_CXX
=
19346 hardcode_libdir_separator_CXX
=
19347 hardcode_minus_L_CXX
=no
19348 hardcode_shlibpath_var_CXX
=unsupported
19349 hardcode_automatic_CXX
=no
19350 inherit_rpath_CXX
=no
19352 module_expsym_cmds_CXX
=
19353 link_all_deplibs_CXX
=unknown
19354 old_archive_cmds_CXX
=$old_archive_cmds
19355 reload_flag_CXX
=$reload_flag
19356 reload_cmds_CXX
=$reload_cmds
19357 no_undefined_flag_CXX
=
19358 whole_archive_flag_spec_CXX
=
19359 enable_shared_with_static_runtimes_CXX
=no
19361 # Source file extension for C++ test sources.
19364 # Object file extension for compiled C++ test sources.
19368 # No sense in running all these tests if we already determined that
19369 # the CXX compiler isn't working. Some variables (like enable_shared)
19370 # are currently assumed to apply to all compilers on this platform,
19371 # and will be corrupted by setting them based on a non-working compiler.
19372 if test "$_lt_caught_CXX_error" != yes; then
19373 # Code to be used in simple compile tests
19374 lt_simple_compile_test_code
="int some_variable = 0;"
19376 # Code to be used in simple link tests
19377 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
19379 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19386 # If no C compiler was specified, use CC.
19389 # If no C compiler flags were specified, use CFLAGS.
19390 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19392 # Allow CC to be a program name with arguments.
19396 # save warnings/boilerplate of simple test code
19397 ac_outfile
=conftest.
$ac_objext
19398 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19399 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19400 _lt_compiler_boilerplate
=`cat conftest.err`
19403 ac_outfile
=conftest.
$ac_objext
19404 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19405 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19406 _lt_linker_boilerplate
=`cat conftest.err`
19410 # Allow CC to be a program name with arguments.
19415 lt_save_with_gnu_ld
=$with_gnu_ld
19416 lt_save_path_LD
=$lt_cv_path_LD
19417 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19418 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
19420 $as_unset lt_cv_prog_gnu_ld
19422 if test -n "${lt_cv_path_LDCXX+set}"; then
19423 lt_cv_path_LD
=$lt_cv_path_LDCXX
19425 $as_unset lt_cv_path_LD
19427 test -z "${LDCXX+set}" || LD
=$LDCXX
19431 for cc_temp
in $compiler""; do
19433 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19434 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19439 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19442 if test -n "$compiler"; then
19443 # We don't want -fno-exception when compiling C++ code, so set the
19444 # no_builtin_flag separately
19445 if test "$GXX" = yes; then
19446 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19448 lt_prog_compiler_no_builtin_flag_CXX
=
19451 if test "$GXX" = yes; then
19452 # Set up default GNU C++ configuration
19456 # Check whether --with-gnu-ld was given.
19457 if test "${with_gnu_ld+set}" = set; then :
19458 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19464 if test "$GCC" = yes; then
19465 # Check if gcc -print-prog-name=ld gives a path.
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19467 $as_echo_n "checking for ld used by $CC... " >&6; }
19470 # gcc leaves a trailing carriage return which upsets mingw
19471 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19473 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19476 # Accept absolute paths.
19478 re_direlt
='/[^/][^/]*/\.\./'
19479 # Canonicalize the pathname of ld
19480 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19481 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19482 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19484 test -z "$LD" && LD
="$ac_prog"
19487 # If it fails, then pretend we aren't using GCC.
19491 # If it is relative, then search for the first ld in PATH.
19492 with_gnu_ld
=unknown
19495 elif test "$with_gnu_ld" = yes; then
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19497 $as_echo_n "checking for GNU ld... " >&6; }
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19500 $as_echo_n "checking for non-GNU ld... " >&6; }
19502 if ${lt_cv_path_LD+:} false
; then :
19503 $as_echo_n "(cached) " >&6
19505 if test -z "$LD"; then
19506 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19507 for ac_dir
in $PATH; do
19509 test -z "$ac_dir" && ac_dir
=.
19510 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19511 lt_cv_path_LD
="$ac_dir/$ac_prog"
19512 # Check to see if the program is GNU ld. I'd rather use --version,
19513 # but apparently some variants of GNU ld only accept -v.
19514 # Break only if it was the GNU/non-GNU ld that we prefer.
19515 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19516 *GNU
* |
*'with BFD'*)
19517 test "$with_gnu_ld" != no
&& break
19520 test "$with_gnu_ld" != yes && break
19527 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19531 LD
="$lt_cv_path_LD"
19532 if test -n "$LD"; then
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19534 $as_echo "$LD" >&6; }
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19537 $as_echo "no" >&6; }
19539 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19541 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19542 if ${lt_cv_prog_gnu_ld+:} false
; then :
19543 $as_echo_n "(cached) " >&6
19545 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19546 case `$LD -v 2>&1 </dev/null` in
19547 *GNU
* |
*'with BFD'*)
19548 lt_cv_prog_gnu_ld
=yes
19551 lt_cv_prog_gnu_ld
=no
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19556 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19557 with_gnu_ld
=$lt_cv_prog_gnu_ld
19565 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19566 # archiving commands below assume that GNU ld is being used.
19567 if test "$with_gnu_ld" = yes; then
19568 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19569 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'
19571 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19572 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19574 # If archive_cmds runs LD, not CC, wlarc should be empty
19575 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19576 # investigate it a little bit more. (MM)
19579 # ancient GNU ld didn't support --whole-archive et. al.
19580 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19581 $GREP 'no-whole-archive' > /dev
/null
; then
19582 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19584 whole_archive_flag_spec_CXX
=
19590 # A generic and very simple default shared library creation
19591 # command for GNU C++ for the case where it uses the native
19592 # linker, instead of GNU ld. If possible, this setting should
19593 # overridden to take advantage of the native linker features on
19594 # the platform it is being used on.
19595 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19598 # Commands to make compiler produce verbose output that lists
19599 # what "hidden" libraries, object files and flags are used when
19600 # linking a shared library.
19601 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19609 # PORTME: fill in a description of your system's C++ link characteristics
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19611 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19615 # FIXME: insert proper C++ library support
19619 if test "$host_cpu" = ia64
; then
19620 # On IA64, the linker does run time linking by default, so we don't
19621 # have to do anything special.
19622 aix_use_runtimelinking
=no
19623 exp_sym_flag
='-Bexport'
19626 aix_use_runtimelinking
=no
19628 # Test if we are trying to use run time linking or normal
19629 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19630 # need to do runtime linking.
19631 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19632 for ld_flag
in $LDFLAGS; do
19635 aix_use_runtimelinking
=yes
19643 exp_sym_flag
='-bexport'
19644 no_entry_flag
='-bnoentry'
19647 # When large executables or shared objects are built, AIX ld can
19648 # have problems creating the table of contents. If linking a library
19649 # or program results in "error TOC overflow" add -mminimal-toc to
19650 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19651 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19653 archive_cmds_CXX
=''
19654 hardcode_direct_CXX
=yes
19655 hardcode_direct_absolute_CXX
=yes
19656 hardcode_libdir_separator_CXX
=':'
19657 link_all_deplibs_CXX
=yes
19658 file_list_spec_CXX
='${wl}-f,'
19660 if test "$GXX" = yes; then
19661 case $host_os in aix4.
[012]|aix4.
[012].
*)
19662 # We only want to do this on AIX 4.2 and lower, the check
19663 # below for broken collect2 doesn't work under 4.3+
19664 collect2name
=`${CC} -print-prog-name=collect2`
19665 if test -f "$collect2name" &&
19666 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19668 # We have reworked collect2
19671 # We have old collect2
19672 hardcode_direct_CXX
=unsupported
19673 # It fails to find uninstalled libraries when the uninstalled
19674 # path is not listed in the libpath. Setting hardcode_minus_L
19675 # to unsupported forces relinking
19676 hardcode_minus_L_CXX
=yes
19677 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19678 hardcode_libdir_separator_CXX
=
19681 shared_flag
='-shared'
19682 if test "$aix_use_runtimelinking" = yes; then
19683 shared_flag
="$shared_flag "'${wl}-G'
19687 if test "$host_cpu" = ia64
; then
19688 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19689 # chokes on -Wl,-G. The following line is correct:
19692 if test "$aix_use_runtimelinking" = yes; then
19693 shared_flag
='${wl}-G'
19695 shared_flag
='${wl}-bM:SRE'
19700 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19701 # It seems that -bexpall does not export symbols beginning with
19702 # underscore (_), so it is better to generate a list of symbols to
19704 always_export_symbols_CXX
=yes
19705 if test "$aix_use_runtimelinking" = yes; then
19706 # Warning - without using the other runtime loading flags (-brtl),
19707 # -berok will link without error, but may produce a broken library.
19708 allow_undefined_flag_CXX
='-berok'
19709 # Determine the default libpath from the value encoded in an empty
19711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19712 /* end confdefs.h. */
19722 if ac_fn_cxx_try_link
"$LINENO"; then :
19724 lt_aix_libpath_sed
='
19725 /Import File Strings/,/^$/ {
19731 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19732 # Check for a 64-bit object if we didn't find anything.
19733 if test -z "$aix_libpath"; then
19734 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19737 rm -f core conftest.err conftest.
$ac_objext \
19738 conftest
$ac_exeext conftest.
$ac_ext
19739 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19741 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19743 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"
19745 if test "$host_cpu" = ia64
; then
19746 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19747 allow_undefined_flag_CXX
="-z nodefs"
19748 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"
19750 # Determine the default libpath from the value encoded in an
19751 # empty executable.
19752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19753 /* end confdefs.h. */
19763 if ac_fn_cxx_try_link
"$LINENO"; then :
19765 lt_aix_libpath_sed
='
19766 /Import File Strings/,/^$/ {
19772 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19773 # Check for a 64-bit object if we didn't find anything.
19774 if test -z "$aix_libpath"; then
19775 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19778 rm -f core conftest.err conftest.
$ac_objext \
19779 conftest
$ac_exeext conftest.
$ac_ext
19780 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19782 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19783 # Warning - without using the other run time loading flags,
19784 # -berok will link without error, but may produce a broken library.
19785 no_undefined_flag_CXX
=' ${wl}-bernotok'
19786 allow_undefined_flag_CXX
=' ${wl}-berok'
19787 if test "$with_gnu_ld" = yes; then
19788 # We only use this code for GNU lds that support --whole-archive.
19789 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19791 # Exported symbols can be pulled into shared objects from archives
19792 whole_archive_flag_spec_CXX
='$convenience'
19794 archive_cmds_need_lc_CXX
=yes
19795 # This is similar to how AIX traditionally builds its shared
19797 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'
19803 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19804 allow_undefined_flag_CXX
=unsupported
19805 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19806 # support --undefined. This deserves some investigation. FIXME
19807 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19814 case $cc_basename in
19816 # FIXME: insert proper C++ library support
19822 cygwin
* | mingw
* | pw32
* | cegcc
*)
19823 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19824 # as there is no search path for DLLs.
19825 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19826 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19827 allow_undefined_flag_CXX
=unsupported
19828 always_export_symbols_CXX
=no
19829 enable_shared_with_static_runtimes_CXX
=yes
19831 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19832 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'
19833 # If the export-symbols file already is a .def file (1st line
19834 # is EXPORTS), use it as is; otherwise, prepend...
19835 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19836 cp $export_symbols $output_objdir/$soname.def;
19838 echo EXPORTS > $output_objdir/$soname.def;
19839 cat $export_symbols >> $output_objdir/$soname.def;
19841 $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'
19846 darwin
* | rhapsody
*)
19849 archive_cmds_need_lc_CXX
=no
19850 hardcode_direct_CXX
=no
19851 hardcode_automatic_CXX
=yes
19852 hardcode_shlibpath_var_CXX
=unsupported
19853 if test "$lt_cv_ld_force_load" = "yes"; then
19854 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\"`'
19856 whole_archive_flag_spec_CXX
=''
19858 link_all_deplibs_CXX
=yes
19859 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19860 case $cc_basename in
19861 ifort
*) _lt_dar_can_shared
=yes ;;
19862 *) _lt_dar_can_shared
=$GCC ;;
19864 if test "$_lt_dar_can_shared" = "yes"; then
19865 output_verbose_link_cmd
=func_echo_all
19866 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}"
19867 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19868 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}"
19869 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}"
19870 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19871 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}"
19872 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}"
19882 case $cc_basename in
19884 # FIXME: insert proper C++ library support
19888 # Green Hills C++ Compiler
19889 # FIXME: insert proper C++ library support
19893 # FIXME: insert proper C++ library support
19900 # C++ shared libraries reported to be fairly broken before
19906 archive_cmds_need_lc_CXX
=no
19909 freebsd
* | dragonfly
*)
19910 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19919 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19920 link_all_deplibs_CXX
=yes
19924 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19925 hardcode_libdir_separator_CXX
=:
19926 export_dynamic_flag_spec_CXX
='${wl}-E'
19927 hardcode_direct_CXX
=yes
19928 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19929 # but as the default
19930 # location of the library.
19932 case $cc_basename in
19934 # FIXME: insert proper C++ library support
19938 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'
19939 # Commands to make compiler produce verbose output that lists
19940 # what "hidden" libraries, object files and flags are used when
19941 # linking a shared library.
19943 # There doesn't appear to be a way to prevent this compiler from
19944 # explicitly linking system object files so we need to strip them
19945 # from the output so that they don't get included in the library
19947 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"'
19950 if test "$GXX" = yes; then
19951 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'
19953 # FIXME: insert proper C++ library support
19961 if test $with_gnu_ld = no
; then
19962 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19963 hardcode_libdir_separator_CXX
=:
19969 export_dynamic_flag_spec_CXX
='${wl}-E'
19975 hardcode_direct_CXX
=no
19976 hardcode_shlibpath_var_CXX
=no
19979 hardcode_direct_CXX
=yes
19980 hardcode_direct_absolute_CXX
=yes
19981 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19982 # but as the default
19983 # location of the library.
19987 case $cc_basename in
19989 # FIXME: insert proper C++ library support
19995 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19998 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20001 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20004 # Commands to make compiler produce verbose output that lists
20005 # what "hidden" libraries, object files and flags are used when
20006 # linking a shared library.
20008 # There doesn't appear to be a way to prevent this compiler from
20009 # explicitly linking system object files so we need to strip them
20010 # from the output so that they don't get included in the library
20012 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"'
20015 if test "$GXX" = yes; then
20016 if test $with_gnu_ld = no
; then
20019 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20022 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20025 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'
20030 # FIXME: insert proper C++ library support
20038 hardcode_direct_CXX
=no
20039 hardcode_shlibpath_var_CXX
=no
20040 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20041 export_dynamic_flag_spec_CXX
='${wl}-E'
20042 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20043 # Instead, shared libraries are loaded at an image base (0x10000000 by
20044 # default) and relocated if they conflict, which is a slow very memory
20045 # consuming and fragmenting process. To avoid this, we pick a random,
20046 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20047 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20048 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'
20049 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'
20052 case $cc_basename in
20055 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'
20057 # Archives containing C++ object files must be created using
20058 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20059 # necessary to make sure instantiated templates are included
20061 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
20064 if test "$GXX" = yes; then
20065 if test "$with_gnu_ld" = no
; then
20066 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'
20068 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'
20071 link_all_deplibs_CXX
=yes
20074 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20075 hardcode_libdir_separator_CXX
=:
20076 inherit_rpath_CXX
=yes
20079 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20080 case $cc_basename in
20082 # Kuck and Associates, Inc. (KAI) C++ Compiler
20084 # KCC will only create a shared library if the output file
20085 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20086 # to its proper name (with version) after linking.
20087 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'
20088 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'
20089 # Commands to make compiler produce verbose output that lists
20090 # what "hidden" libraries, object files and flags are used when
20091 # linking a shared library.
20093 # There doesn't appear to be a way to prevent this compiler from
20094 # explicitly linking system object files so we need to strip them
20095 # from the output so that they don't get included in the library
20097 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"'
20099 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20100 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20102 # Archives containing C++ object files must be created using
20103 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20104 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
20109 # version 8.0 and above of icpc choke on multiply defined symbols
20110 # if we add $predep_objects and $postdep_objects, however 7.1 and
20111 # earlier do not add the objects themselves.
20112 case `$CC -V 2>&1` in
20114 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20115 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'
20117 *) # Version 8.0 or newer
20120 ia64
*) tmp_idyn
=' -i_dynamic';;
20122 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20123 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'
20126 archive_cmds_need_lc_CXX
=no
20127 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20128 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20129 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20132 # Portland Group C++ compiler
20134 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
20135 prelink_cmds_CXX
='tpldir=Template.dir~
20137 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20138 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20139 old_archive_cmds_CXX
='tpldir=Template.dir~
20141 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20142 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20144 archive_cmds_CXX
='tpldir=Template.dir~
20146 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20147 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20148 archive_expsym_cmds_CXX
='tpldir=Template.dir~
20150 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20151 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
20153 *) # Version 6 and above use weak symbols
20154 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20155 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'
20159 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
20160 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20161 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'
20165 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20166 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'
20168 runpath_var
=LD_RUN_PATH
20169 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20170 hardcode_libdir_separator_CXX
=:
20172 # Commands to make compiler produce verbose output that lists
20173 # what "hidden" libraries, object files and flags are used when
20174 # linking a shared library.
20176 # There doesn't appear to be a way to prevent this compiler from
20177 # explicitly linking system object files so we need to strip them
20178 # from the output so that they don't get included in the library
20180 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'
20182 xl
* | mpixl
* | bgxl
*)
20183 # IBM XL 8.0 on PPC, with GNU ld
20184 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20185 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20186 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20187 if test "x$supports_anon_versioning" = xyes
; then
20188 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
20189 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20190 echo "local: *; };" >> $output_objdir/$libname.ver~
20191 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20195 case `$CC -V 2>&1 | sed 5q` in
20198 no_undefined_flag_CXX
=' -zdefs'
20199 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20200 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'
20201 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20202 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'
20203 compiler_needs_object_CXX
=yes
20205 # Not sure whether something based on
20206 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20208 output_verbose_link_cmd
='func_echo_all'
20210 # Archives containing C++ object files must be created using
20211 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20212 # necessary to make sure instantiated templates are included
20214 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20222 # FIXME: insert proper C++ library support
20227 # FIXME: insert proper C++ library support
20232 case $cc_basename in
20234 # FIXME: insert proper C++ library support
20238 # FIXME: insert proper C++ library support
20245 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20246 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20248 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20249 hardcode_direct_CXX
=yes
20250 hardcode_shlibpath_var_CXX
=no
20252 # Workaround some broken pre-1.5 toolchains
20253 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20261 # C++ shared libraries are fairly broken
20266 if test -f /usr
/libexec
/ld.so
; then
20267 hardcode_direct_CXX
=yes
20268 hardcode_shlibpath_var_CXX
=no
20269 hardcode_direct_absolute_CXX
=yes
20270 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20271 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20272 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20273 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20274 export_dynamic_flag_spec_CXX
='${wl}-E'
20275 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20277 output_verbose_link_cmd
=func_echo_all
20283 osf3
* | osf4
* | osf5
*)
20284 case $cc_basename in
20286 # Kuck and Associates, Inc. (KAI) C++ Compiler
20288 # KCC will only create a shared library if the output file
20289 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20290 # to its proper name (with version) after linking.
20291 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'
20293 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20294 hardcode_libdir_separator_CXX
=:
20296 # Archives containing C++ object files must be created using
20297 # the KAI C++ compiler.
20299 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
20300 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
20304 # Rational C++ 2.4.1
20305 # FIXME: insert proper C++ library support
20311 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20312 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'
20313 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20316 allow_undefined_flag_CXX
=' -expect_unresolved \*'
20317 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'
20318 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20319 echo "-hidden">> $lib.exp~
20320 $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~
20322 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20326 hardcode_libdir_separator_CXX
=:
20328 # Commands to make compiler produce verbose output that lists
20329 # what "hidden" libraries, object files and flags are used when
20330 # linking a shared library.
20332 # There doesn't appear to be a way to prevent this compiler from
20333 # explicitly linking system object files so we need to strip them
20334 # from the output so that they don't get included in the library
20336 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"'
20339 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20340 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20343 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'
20346 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'
20350 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20351 hardcode_libdir_separator_CXX
=:
20353 # Commands to make compiler produce verbose output that lists
20354 # what "hidden" libraries, object files and flags are used when
20355 # linking a shared library.
20356 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20359 # FIXME: insert proper C++ library support
20367 # FIXME: insert proper C++ library support
20372 case $cc_basename in
20375 # FIXME: insert proper C++ library support
20380 # FIXME: insert proper C++ library support
20384 # FIXME: insert proper C++ library support
20391 case $cc_basename in
20393 # Sun C++ 4.2, 5.x and Centerline C++
20394 archive_cmds_need_lc_CXX
=yes
20395 no_undefined_flag_CXX
=' -zdefs'
20396 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20397 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20398 $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'
20400 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20401 hardcode_shlibpath_var_CXX
=no
20403 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20405 # The compiler driver will combine and reorder linker options,
20406 # but understands `-z linker_flag'.
20407 # Supported since Solaris 2.6 (maybe 2.5.1?)
20408 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
20411 link_all_deplibs_CXX
=yes
20413 output_verbose_link_cmd
='func_echo_all'
20415 # Archives containing C++ object files must be created using
20416 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20417 # necessary to make sure instantiated templates are included
20419 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20422 # Green Hills C++ Compiler
20423 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20425 # The C++ compiler must be used to create the archive.
20426 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20429 # GNU C++ compiler with Solaris linker
20430 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20431 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
20432 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
20433 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20434 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20435 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20437 # Commands to make compiler produce verbose output that lists
20438 # what "hidden" libraries, object files and flags are used when
20439 # linking a shared library.
20440 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20442 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20444 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20445 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20446 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20448 # Commands to make compiler produce verbose output that lists
20449 # what "hidden" libraries, object files and flags are used when
20450 # linking a shared library.
20451 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20454 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20456 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20458 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20466 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20467 no_undefined_flag_CXX
='${wl}-z,text'
20468 archive_cmds_need_lc_CXX
=no
20469 hardcode_shlibpath_var_CXX
=no
20470 runpath_var
='LD_RUN_PATH'
20472 case $cc_basename in
20474 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20475 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20478 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20479 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20484 sysv5
* | sco3.2v5
* | sco5v6
*)
20485 # Note: We can NOT use -z defs as we might desire, because we do not
20486 # link with -lc, and that would cause any symbols used from libc to
20487 # always be unresolved, which means just about no library would
20488 # ever link correctly. If we're not using GNU ld we use -z text
20489 # though, which does catch some bad symbols but isn't as heavy-handed
20491 no_undefined_flag_CXX
='${wl}-z,text'
20492 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20493 archive_cmds_need_lc_CXX
=no
20494 hardcode_shlibpath_var_CXX
=no
20495 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20496 hardcode_libdir_separator_CXX
=':'
20497 link_all_deplibs_CXX
=yes
20498 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20499 runpath_var
='LD_RUN_PATH'
20501 case $cc_basename in
20503 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20504 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20505 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20506 '"$old_archive_cmds_CXX"
20507 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20508 '"$reload_cmds_CXX"
20511 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20512 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20518 case $cc_basename in
20520 # NonStop-UX NCC 3.20
20521 # FIXME: insert proper C++ library support
20525 # FIXME: insert proper C++ library support
20532 # FIXME: insert proper C++ library support
20537 # FIXME: insert proper C++ library support
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20543 $as_echo "$ld_shlibs_CXX" >&6; }
20544 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20550 ## There is no encapsulation within the following macros, do not change
20551 ## the running order or otherwise move them around unless you know exactly
20552 ## what you are doing...
20553 # Dependencies to place before and after the object being linked:
20554 predep_objects_CXX
=
20555 postdep_objects_CXX
=
20558 compiler_lib_search_path_CXX
=
20560 cat > conftest.
$ac_ext <<_LT_EOF
20564 Foo (void) { a = 0; }
20570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20571 (eval $ac_compile) 2>&5
20573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20574 test $ac_status = 0; }; then
20575 # Parse the compiler output and extract the necessary
20576 # objects, libraries and library flags.
20578 # Sentinel used to keep track of whether or not we are before
20579 # the conftest object file.
20580 pre_test_object_deps_done
=no
20582 for p
in `eval "$output_verbose_link_cmd"`; do
20586 # Some compilers place space between "-{L,R}" and the path.
20587 # Remove the space.
20588 if test $p = "-L" ||
20589 test $p = "-R"; then
20596 if test "$pre_test_object_deps_done" = no
; then
20599 # Internal compiler library paths should come after those
20600 # provided the user. The postdeps already come after the
20601 # user supplied libs so there is no need to process them.
20602 if test -z "$compiler_lib_search_path_CXX"; then
20603 compiler_lib_search_path_CXX
="${prev}${p}"
20605 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20608 # The "-l" case would never come before the object being
20609 # linked, so don't bother handling this case.
20612 if test -z "$postdeps_CXX"; then
20613 postdeps_CXX
="${prev}${p}"
20615 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20621 # This assumes that the test object file only shows up
20622 # once in the compiler output.
20623 if test "$p" = "conftest.$objext"; then
20624 pre_test_object_deps_done
=yes
20628 if test "$pre_test_object_deps_done" = no
; then
20629 if test -z "$predep_objects_CXX"; then
20630 predep_objects_CXX
="$p"
20632 predep_objects_CXX
="$predep_objects_CXX $p"
20635 if test -z "$postdep_objects_CXX"; then
20636 postdep_objects_CXX
="$p"
20638 postdep_objects_CXX
="$postdep_objects_CXX $p"
20643 *) ;; # Ignore the rest.
20651 echo "libtool.m4: error: problem compiling CXX test program"
20654 $RM -f confest.
$objext
20656 # PORTME: override above test on systems where it is broken
20659 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20660 # hack all around it, let's just trust "g++" to DTRT.
20661 predep_objects_CXX
=
20662 postdep_objects_CXX
=
20667 case `$CC -V 2>&1 | sed 5q` in
20671 # The more standards-conforming stlport4 library is
20672 # incompatible with the Cstd library. Avoid specifying
20673 # it if it's in CXXFLAGS. Ignore libCrun as
20674 # -library=stlport4 depends on it.
20675 case " $CXX $CXXFLAGS " in
20676 *" -library=stlport4 "*)
20677 solaris_use_stlport4
=yes
20681 if test "$solaris_use_stlport4" != yes; then
20682 postdeps_CXX
='-library=Cstd -library=Crun'
20689 case $cc_basename in
20691 # The more standards-conforming stlport4 library is
20692 # incompatible with the Cstd library. Avoid specifying
20693 # it if it's in CXXFLAGS. Ignore libCrun as
20694 # -library=stlport4 depends on it.
20695 case " $CXX $CXXFLAGS " in
20696 *" -library=stlport4 "*)
20697 solaris_use_stlport4
=yes
20701 # Adding this requires a known-good setup of shared libraries for
20702 # Sun compiler versions before 5.6, else PIC objects from an old
20703 # archive will be linked into the output, leading to subtle bugs.
20704 if test "$solaris_use_stlport4" != yes; then
20705 postdeps_CXX
='-library=Cstd -library=Crun'
20713 case " $postdeps_CXX " in
20714 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20716 compiler_lib_search_dirs_CXX
=
20717 if test -n "${compiler_lib_search_path_CXX}"; then
20718 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20751 lt_prog_compiler_wl_CXX
=
20752 lt_prog_compiler_pic_CXX
=
20753 lt_prog_compiler_static_CXX
=
20755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20756 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20758 # C++ specific cases for pic, static, wl, etc.
20759 if test "$GXX" = yes; then
20760 lt_prog_compiler_wl_CXX
='-Wl,'
20761 lt_prog_compiler_static_CXX
='-static'
20765 # All AIX code is PIC.
20766 if test "$host_cpu" = ia64
; then
20767 # AIX 5 now supports IA64 processor
20768 lt_prog_compiler_static_CXX
='-Bstatic'
20770 lt_prog_compiler_pic_CXX
='-fPIC'
20776 # see comment about AmigaOS4 .so support
20777 lt_prog_compiler_pic_CXX
='-fPIC'
20780 # FIXME: we need at least 68020 code to build shared libraries, but
20781 # adding the `-m68020' flag to GCC prevents building anything better,
20783 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20788 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20789 # PIC is the default for these OSes.
20791 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20792 # This hack is so that the source file can tell whether it is being
20793 # built for inclusion in a dll (and should export symbols for example).
20794 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20795 # (--disable-auto-import) libraries
20796 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20798 darwin
* | rhapsody
*)
20799 # PIC is the default on this platform
20800 # Common symbols not allowed in MH_DYLIB files
20801 lt_prog_compiler_pic_CXX
='-fno-common'
20804 # DJGPP does not support shared libraries at all
20805 lt_prog_compiler_pic_CXX
=
20808 # PIC is the default for Haiku.
20809 # The "-static" flag exists, but is broken.
20810 lt_prog_compiler_static_CXX
=
20813 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20814 # Instead, we relocate shared libraries at runtime.
20817 if test -d /usr
/nec
; then
20818 lt_prog_compiler_pic_CXX
=-Kconform_pic
20822 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20823 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20824 # sets the default TLS model and affects inlining.
20829 lt_prog_compiler_pic_CXX
='-fPIC'
20834 # QNX uses GNU C++, but need to define -shared option too, otherwise
20835 # it will coredump.
20836 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20839 lt_prog_compiler_pic_CXX
='-fPIC'
20845 # All AIX code is PIC.
20846 if test "$host_cpu" = ia64
; then
20847 # AIX 5 now supports IA64 processor
20848 lt_prog_compiler_static_CXX
='-Bstatic'
20850 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20854 case $cc_basename in
20856 # Green Hills C++ Compiler
20857 # _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"
20862 case $cc_basename in
20864 lt_prog_compiler_pic_CXX
='-KPIC'
20867 # Green Hills C++ Compiler
20868 lt_prog_compiler_pic_CXX
='-pic'
20874 freebsd
* | dragonfly
*)
20875 # FreeBSD uses GNU C++
20877 hpux9
* | hpux10
* | hpux11
*)
20878 case $cc_basename in
20880 lt_prog_compiler_wl_CXX
='-Wl,'
20881 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20882 if test "$host_cpu" != ia64
; then
20883 lt_prog_compiler_pic_CXX
='+Z'
20887 lt_prog_compiler_wl_CXX
='-Wl,'
20888 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20894 lt_prog_compiler_pic_CXX
='+Z'
20903 # This is c89, which is MS Visual C++ (no shared libs)
20904 # Anyone wants to do a port?
20906 irix5
* | irix6
* | nonstopux
*)
20907 case $cc_basename in
20909 lt_prog_compiler_wl_CXX
='-Wl,'
20910 lt_prog_compiler_static_CXX
='-non_shared'
20911 # CC pic flag -KPIC is the default.
20917 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20918 case $cc_basename in
20921 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20922 lt_prog_compiler_pic_CXX
='-fPIC'
20925 # old Intel C++ for x86_64 which still supported -KPIC.
20926 lt_prog_compiler_wl_CXX
='-Wl,'
20927 lt_prog_compiler_pic_CXX
='-KPIC'
20928 lt_prog_compiler_static_CXX
='-static'
20931 # Intel C++, used to be incompatible with GCC.
20932 # ICC 10 doesn't accept -KPIC any more.
20933 lt_prog_compiler_wl_CXX
='-Wl,'
20934 lt_prog_compiler_pic_CXX
='-fPIC'
20935 lt_prog_compiler_static_CXX
='-static'
20938 # Portland Group C++ compiler
20939 lt_prog_compiler_wl_CXX
='-Wl,'
20940 lt_prog_compiler_pic_CXX
='-fpic'
20941 lt_prog_compiler_static_CXX
='-Bstatic'
20945 # Make sure the PIC flag is empty. It appears that all Alpha
20946 # Linux and Compaq Tru64 Unix objects are PIC.
20947 lt_prog_compiler_pic_CXX
=
20948 lt_prog_compiler_static_CXX
='-non_shared'
20950 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20951 # IBM XL 8.0, 9.0 on PPC and BlueGene
20952 lt_prog_compiler_wl_CXX
='-Wl,'
20953 lt_prog_compiler_pic_CXX
='-qpic'
20954 lt_prog_compiler_static_CXX
='-qstaticlink'
20957 case `$CC -V 2>&1 | sed 5q` in
20960 lt_prog_compiler_pic_CXX
='-KPIC'
20961 lt_prog_compiler_static_CXX
='-Bstatic'
20962 lt_prog_compiler_wl_CXX
='-Qoption ld '
20973 case $cc_basename in
20975 lt_prog_compiler_pic_CXX
='-W c,exportall'
20984 # QNX uses GNU C++, but need to define -shared option too, otherwise
20985 # it will coredump.
20986 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20988 osf3
* | osf4
* | osf5
*)
20989 case $cc_basename in
20991 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20994 # Rational C++ 2.4.1
20995 lt_prog_compiler_pic_CXX
='-pic'
20998 # Digital/Compaq C++
20999 lt_prog_compiler_wl_CXX
='-Wl,'
21000 # Make sure the PIC flag is empty. It appears that all Alpha
21001 # Linux and Compaq Tru64 Unix objects are PIC.
21002 lt_prog_compiler_pic_CXX
=
21003 lt_prog_compiler_static_CXX
='-non_shared'
21012 case $cc_basename in
21014 # Sun C++ 4.2, 5.x and Centerline C++
21015 lt_prog_compiler_pic_CXX
='-KPIC'
21016 lt_prog_compiler_static_CXX
='-Bstatic'
21017 lt_prog_compiler_wl_CXX
='-Qoption ld '
21020 # Green Hills C++ Compiler
21021 lt_prog_compiler_pic_CXX
='-PIC'
21028 case $cc_basename in
21031 lt_prog_compiler_pic_CXX
='-pic'
21032 lt_prog_compiler_static_CXX
='-Bstatic'
21036 lt_prog_compiler_pic_CXX
='-pic'
21042 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21043 case $cc_basename in
21045 lt_prog_compiler_wl_CXX
='-Wl,'
21046 lt_prog_compiler_pic_CXX
='-KPIC'
21047 lt_prog_compiler_static_CXX
='-Bstatic'
21052 case $cc_basename in
21054 # NonStop-UX NCC 3.20
21055 lt_prog_compiler_pic_CXX
='-KPIC'
21064 lt_prog_compiler_can_build_shared_CXX
=no
21070 # For platforms which do not support PIC, -DPIC is meaningless:
21072 lt_prog_compiler_pic_CXX
=
21075 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21079 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21084 # Check to make sure the PIC flag actually works.
21086 if test -n "$lt_prog_compiler_pic_CXX"; then
21087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21088 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21089 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
21090 $as_echo_n "(cached) " >&6
21092 lt_cv_prog_compiler_pic_works_CXX
=no
21093 ac_outfile
=conftest.
$ac_objext
21094 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21095 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
21096 # Insert the option either (1) after the last *FLAGS variable, or
21097 # (2) before a word containing "conftest.", or (3) at the end.
21098 # Note that $ac_compile itself does not contain backslashes and begins
21099 # with a dollar sign (not a hyphen), so the echo should work correctly.
21100 # The option is referenced via a variable to avoid confusing sed.
21101 lt_compile
=`echo "$ac_compile" | $SED \
21102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21104 -e 's:$: $lt_compiler_flag:'`
21105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21106 (eval "$lt_compile" 2>conftest.err
)
21108 cat conftest.err
>&5
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 if (exit $ac_status) && test -s "$ac_outfile"; then
21111 # The compiler can only warn and ignore the option if not recognized
21112 # So say no if there are warnings other than the usual output.
21113 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
21114 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21115 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21116 lt_cv_prog_compiler_pic_works_CXX
=yes
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21123 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21125 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
21126 case $lt_prog_compiler_pic_CXX in
21128 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
21131 lt_prog_compiler_pic_CXX
=
21132 lt_prog_compiler_can_build_shared_CXX
=no
21140 # Check to make sure the static flag actually works.
21142 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21144 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21145 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
21146 $as_echo_n "(cached) " >&6
21148 lt_cv_prog_compiler_static_works_CXX
=no
21149 save_LDFLAGS
="$LDFLAGS"
21150 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21151 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
21152 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21153 # The linker can only warn and ignore the option if not recognized
21154 # So say no if there are warnings
21155 if test -s conftest.err
; then
21156 # Append any errors to the config.log.
21157 cat conftest.err
1>&5
21158 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
21159 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21160 if diff conftest.exp conftest.er2
>/dev
/null
; then
21161 lt_cv_prog_compiler_static_works_CXX
=yes
21164 lt_cv_prog_compiler_static_works_CXX
=yes
21168 LDFLAGS
="$save_LDFLAGS"
21171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21172 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21174 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
21177 lt_prog_compiler_static_CXX
=
21183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21184 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21185 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21186 $as_echo_n "(cached) " >&6
21188 lt_cv_prog_compiler_c_o_CXX
=no
21189 $RM -r conftest
2>/dev
/null
21193 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21195 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21196 # Insert the option either (1) after the last *FLAGS variable, or
21197 # (2) before a word containing "conftest.", or (3) at the end.
21198 # Note that $ac_compile itself does not contain backslashes and begins
21199 # with a dollar sign (not a hyphen), so the echo should work correctly.
21200 lt_compile
=`echo "$ac_compile" | $SED \
21201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21203 -e 's:$: $lt_compiler_flag:'`
21204 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21205 (eval "$lt_compile" 2>out
/conftest.err
)
21207 cat out
/conftest.err
>&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21211 # The compiler can only warn and ignore the option if not recognized
21212 # So say no if there are warnings
21213 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21214 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21215 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21216 lt_cv_prog_compiler_c_o_CXX
=yes
21221 # SGI C++ compiler will create directory out/ii_files/ for
21222 # template instantiation
21223 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21224 $RM out
/* && rmdir out
21230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21231 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21236 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21237 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21238 $as_echo_n "(cached) " >&6
21240 lt_cv_prog_compiler_c_o_CXX
=no
21241 $RM -r conftest
2>/dev
/null
21245 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21247 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21248 # Insert the option either (1) after the last *FLAGS variable, or
21249 # (2) before a word containing "conftest.", or (3) at the end.
21250 # Note that $ac_compile itself does not contain backslashes and begins
21251 # with a dollar sign (not a hyphen), so the echo should work correctly.
21252 lt_compile
=`echo "$ac_compile" | $SED \
21253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21255 -e 's:$: $lt_compiler_flag:'`
21256 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21257 (eval "$lt_compile" 2>out
/conftest.err
)
21259 cat out
/conftest.err
>&5
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21263 # The compiler can only warn and ignore the option if not recognized
21264 # So say no if there are warnings
21265 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21266 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21267 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21268 lt_cv_prog_compiler_c_o_CXX
=yes
21273 # SGI C++ compiler will create directory out/ii_files/ for
21274 # template instantiation
21275 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21276 $RM out
/* && rmdir out
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21283 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21288 hard_links
="nottested"
21289 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
21290 # do not overwrite the value of need_locks provided by the user
21291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21292 $as_echo_n "checking if we can lock with hard links... " >&6; }
21295 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21297 ln conftest.a conftest.b
2>&5 || hard_links
=no
21298 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21300 $as_echo "$hard_links" >&6; }
21301 if test "$hard_links" = no
; then
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21303 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21313 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21315 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21318 # If we're using GNU nm, then we don't want the "-C" option.
21319 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21320 # Also, AIX nm treats weak defined symbols like other global defined
21321 # symbols, whereas GNU nm marks them as "W".
21322 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
21323 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'
21325 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'
21329 export_symbols_cmds_CXX
="$ltdll_cmds"
21331 cygwin
* | mingw
* | cegcc
*)
21332 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'
21335 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21338 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21341 $as_echo "$ld_shlibs_CXX" >&6; }
21342 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21344 with_gnu_ld_CXX
=$with_gnu_ld
21352 # Do we need to explicitly link libc?
21354 case "x$archive_cmds_need_lc_CXX" in
21356 # Assume -lc should be added
21357 archive_cmds_need_lc_CXX
=yes
21359 if test "$enable_shared" = yes && test "$GCC" = yes; then
21360 case $archive_cmds_CXX in
21362 # FIXME: we may have to deal with multi-command sequences.
21365 # Test whether the compiler implicitly links with -lc since on some
21366 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21367 # to ld, don't add -lc before -lgcc.
21368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21369 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21370 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
21371 $as_echo_n "(cached) " >&6
21374 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21377 (eval $ac_compile) 2>&5
21379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21380 test $ac_status = 0; } 2>conftest.err
; then
21383 libobjs
=conftest.
$ac_objext
21385 wl
=$lt_prog_compiler_wl_CXX
21386 pic_flag
=$lt_prog_compiler_pic_CXX
21392 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
21393 allow_undefined_flag_CXX
=
21394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21395 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
21397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21398 test $ac_status = 0; }
21400 lt_cv_archive_cmds_need_lc_CXX
=no
21402 lt_cv_archive_cmds_need_lc_CXX
=yes
21404 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
21406 cat conftest.err
1>&5
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21412 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21413 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21484 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21486 library_names_spec
=
21487 libname_spec
='lib$name'
21491 postuninstall_cmds
=
21495 shlibpath_overrides_runpath
=unknown
21497 dynamic_linker
="$host_os ld.so"
21498 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21499 need_lib_prefix
=unknown
21500 hardcode_into_libs
=no
21502 # when you set need_version to no, make sure it does not cause -set_version
21503 # flags to be left without arguments
21504 need_version
=unknown
21509 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21510 shlibpath_var
=LIBPATH
21512 # AIX 3 has no versioning support, so we append a major version to the name.
21513 soname_spec
='${libname}${release}${shared_ext}$major'
21520 hardcode_into_libs
=yes
21521 if test "$host_cpu" = ia64
; then
21522 # AIX 5 supports IA64
21523 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21524 shlibpath_var
=LD_LIBRARY_PATH
21526 # With GCC up to 2.95.x, collect2 would create an import file
21527 # for dependence libraries. The import file would start with
21528 # the line `#! .'. This would cause the generated library to
21529 # depend on `.', always an invalid library. This was fixed in
21530 # development snapshots of GCC prior to 3.0.
21532 aix4 | aix4.
[01] | aix4.
[01].
*)
21533 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21535 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21538 can_build_shared
=no
21542 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21543 # soname into executable. Probably we can add versioning support to
21544 # collect2, so additional links can be useful in future.
21545 if test "$aix_use_runtimelinking" = yes; then
21546 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21547 # instead of lib<name>.a to let people know that these are not
21548 # typical AIX shared libraries.
21549 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21551 # We preserve .a as extension for shared libraries through AIX4.2
21552 # and later when we are not doing run time linking.
21553 library_names_spec
='${libname}${release}.a $libname.a'
21554 soname_spec
='${libname}${release}${shared_ext}$major'
21556 shlibpath_var
=LIBPATH
21563 # Since July 2007 AmigaOS4 officially supports .so libraries.
21564 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21565 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21568 library_names_spec
='$libname.ixlibrary $libname.a'
21569 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21570 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'
21576 library_names_spec
='${libname}${shared_ext}'
21577 dynamic_linker
="$host_os ld.so"
21578 shlibpath_var
=LIBRARY_PATH
21584 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21585 soname_spec
='${libname}${release}${shared_ext}$major'
21586 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21587 shlibpath_var
=LD_LIBRARY_PATH
21588 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21589 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21590 # the default ld.so.conf also contains /usr/contrib/lib and
21591 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21592 # libtool to hard-code these into programs
21595 cygwin
* | mingw
* | pw32
* | cegcc
*)
21596 version_type
=windows
21601 case $GCC,$host_os in
21602 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21603 library_names_spec
='$libname.dll.a'
21604 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21605 postinstall_cmds
='base_file=`basename \${file}`~
21606 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21607 dldir=$destdir/`dirname \$dlpath`~
21608 test -d \$dldir || mkdir -p \$dldir~
21609 $install_prog $dir/$dlname \$dldir/$dlname~
21610 chmod a+x \$dldir/$dlname~
21611 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21612 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21614 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21615 dlpath=$dir/\$dldll~
21617 shlibpath_overrides_runpath
=yes
21621 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21622 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21626 # MinGW DLLs use traditional 'lib' prefix
21627 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21630 # pw32 DLLs use 'pw' prefix rather than 'lib'
21631 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21637 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21640 dynamic_linker
='Win32 ld.exe'
21641 # FIXME: first we should search . and the directory the executable is in
21645 darwin
* | rhapsody
*)
21646 dynamic_linker
="$host_os dyld"
21647 version_type
=darwin
21650 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21651 soname_spec
='${libname}${release}${major}$shared_ext'
21652 shlibpath_overrides_runpath
=yes
21653 shlibpath_var
=DYLD_LIBRARY_PATH
21654 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21656 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21663 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21664 soname_spec
='${libname}${release}${shared_ext}$major'
21665 shlibpath_var
=LD_LIBRARY_PATH
21668 freebsd
* | dragonfly
*)
21669 # DragonFly does not have aout. When/if they implement a new
21670 # versioning mechanism, adjust this.
21671 if test -x /usr
/bin
/objformat
; then
21672 objformat
=`/usr/bin/objformat`
21675 freebsd
[23].
*) objformat
=aout
;;
21676 *) objformat
=elf
;;
21679 version_type
=freebsd-
$objformat
21680 case $version_type in
21682 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21687 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21691 shlibpath_var
=LD_LIBRARY_PATH
21694 shlibpath_overrides_runpath
=yes
21696 freebsd3.
[01]* | freebsdelf3.
[01]*)
21697 shlibpath_overrides_runpath
=yes
21698 hardcode_into_libs
=yes
21700 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21701 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21702 shlibpath_overrides_runpath
=no
21703 hardcode_into_libs
=yes
21705 *) # from 4.6 on, and DragonFly
21706 shlibpath_overrides_runpath
=yes
21707 hardcode_into_libs
=yes
21716 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21717 soname_spec
='${libname}${release}${shared_ext}$major'
21718 shlibpath_var
=LD_LIBRARY_PATH
21719 hardcode_into_libs
=yes
21726 dynamic_linker
="$host_os runtime_loader"
21727 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21728 soname_spec
='${libname}${release}${shared_ext}$major'
21729 shlibpath_var
=LIBRARY_PATH
21730 shlibpath_overrides_runpath
=yes
21731 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21732 hardcode_into_libs
=yes
21735 hpux9
* | hpux10
* | hpux11
*)
21736 # Give a soname corresponding to the major version so that dld.sl refuses to
21737 # link against other versions.
21744 hardcode_into_libs
=yes
21745 dynamic_linker
="$host_os dld.so"
21746 shlibpath_var
=LD_LIBRARY_PATH
21747 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21748 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21749 soname_spec
='${libname}${release}${shared_ext}$major'
21750 if test "X$HPUX_IA64_MODE" = X32
; then
21751 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21753 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21755 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21759 hardcode_into_libs
=yes
21760 dynamic_linker
="$host_os dld.sl"
21761 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21762 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21763 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21764 soname_spec
='${libname}${release}${shared_ext}$major'
21765 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21766 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21770 dynamic_linker
="$host_os dld.sl"
21771 shlibpath_var
=SHLIB_PATH
21772 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21773 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21774 soname_spec
='${libname}${release}${shared_ext}$major'
21777 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21778 postinstall_cmds
='chmod 555 $lib'
21779 # or fails outright, so override atomically:
21780 install_override_mode
=555
21787 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21788 soname_spec
='${libname}${release}${shared_ext}$major'
21789 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21790 shlibpath_var
=LD_LIBRARY_PATH
21791 shlibpath_overrides_runpath
=no
21792 hardcode_into_libs
=yes
21795 irix5
* | irix6
* | nonstopux
*)
21797 nonstopux
*) version_type
=nonstopux
;;
21799 if test "$lt_cv_prog_gnu_ld" = yes; then
21807 soname_spec
='${libname}${release}${shared_ext}$major'
21808 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21810 irix5
* | nonstopux
*)
21811 libsuff
= shlibsuff
=
21814 case $LD in # libtool.m4 will add one of these switches to LD
21815 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21816 libsuff
= shlibsuff
= libmagic
=32-bit;;
21817 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21818 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21819 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21820 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21821 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21825 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21826 shlibpath_overrides_runpath
=no
21827 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21828 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21829 hardcode_into_libs
=yes
21832 # No shared lib support for Linux oldld, aout, or coff.
21833 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21837 # This must be Linux ELF.
21839 # uclinux* changes (here and below) have been submitted to the libtool
21840 # project, but have not yet been accepted: they are GCC-local changes
21841 # for the time being. (See
21842 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
21843 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
21847 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21848 soname_spec
='${libname}${release}${shared_ext}$major'
21849 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21850 shlibpath_var
=LD_LIBRARY_PATH
21851 shlibpath_overrides_runpath
=no
21853 # Some binutils ld are patched to set DT_RUNPATH
21854 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
21855 $as_echo_n "(cached) " >&6
21857 lt_cv_shlibpath_overrides_runpath
=no
21858 save_LDFLAGS
=$LDFLAGS
21859 save_libdir
=$libdir
21860 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21861 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21863 /* end confdefs.h. */
21873 if ac_fn_cxx_try_link
"$LINENO"; then :
21874 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21875 lt_cv_shlibpath_overrides_runpath
=yes
21878 rm -f core conftest.err conftest.
$ac_objext \
21879 conftest
$ac_exeext conftest.
$ac_ext
21880 LDFLAGS
=$save_LDFLAGS
21881 libdir
=$save_libdir
21885 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21887 # This implies no fast_install, which is unacceptable.
21888 # Some rework will be needed to allow for fast_install
21889 # before this can be enabled.
21890 hardcode_into_libs
=yes
21892 # Append ld.so.conf contents to the search path
21893 if test -f /etc
/ld.so.conf
; then
21894 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' ' '`
21895 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21898 # We used to test for /lib/ld.so.1 and disable shared libraries on
21899 # powerpc, because MkLinux only supported shared libraries with the
21900 # GNU dynamic linker. Since this was broken with cross compilers,
21901 # most powerpc-linux boxes support dynamic linking these days and
21902 # people can always --disable-shared, the test was removed, and we
21903 # assume the GNU/Linux dynamic linker is in use.
21904 dynamic_linker
='GNU/Linux ld.so'
21911 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21912 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21913 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21914 dynamic_linker
='NetBSD (a.out) ld.so'
21916 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21917 soname_spec
='${libname}${release}${shared_ext}$major'
21918 dynamic_linker
='NetBSD ld.elf_so'
21920 shlibpath_var
=LD_LIBRARY_PATH
21921 shlibpath_overrides_runpath
=yes
21922 hardcode_into_libs
=yes
21927 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21928 shlibpath_var
=LD_LIBRARY_PATH
21929 shlibpath_overrides_runpath
=yes
21936 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21937 soname_spec
='${libname}${release}${shared_ext}$major'
21938 shlibpath_var
=LD_LIBRARY_PATH
21939 shlibpath_overrides_runpath
=no
21940 hardcode_into_libs
=yes
21941 dynamic_linker
='ldqnx.so'
21946 sys_lib_dlsearch_path_spec
="/usr/lib"
21948 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21950 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21951 *) need_version
=no
;;
21953 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21954 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21955 shlibpath_var
=LD_LIBRARY_PATH
21956 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21958 openbsd2.
[89] | openbsd2.
[89].
*)
21959 shlibpath_overrides_runpath
=no
21962 shlibpath_overrides_runpath
=yes
21966 shlibpath_overrides_runpath
=yes
21971 libname_spec
='$name'
21974 library_names_spec
='$libname${shared_ext} $libname.a'
21975 dynamic_linker
='OS/2 ld.exe'
21976 shlibpath_var
=LIBPATH
21979 osf3
* | osf4
* | osf5
*)
21983 soname_spec
='${libname}${release}${shared_ext}$major'
21984 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21985 shlibpath_var
=LD_LIBRARY_PATH
21986 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21987 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21998 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21999 soname_spec
='${libname}${release}${shared_ext}$major'
22000 shlibpath_var
=LD_LIBRARY_PATH
22001 shlibpath_overrides_runpath
=yes
22002 hardcode_into_libs
=yes
22003 # ldd complains unless libraries are executable
22004 postinstall_cmds
='chmod +x $lib'
22009 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22010 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22011 shlibpath_var
=LD_LIBRARY_PATH
22012 shlibpath_overrides_runpath
=yes
22013 if test "$with_gnu_ld" = yes; then
22021 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22022 soname_spec
='${libname}${release}${shared_ext}$major'
22023 shlibpath_var
=LD_LIBRARY_PATH
22024 case $host_vendor in
22026 shlibpath_overrides_runpath
=no
22028 runpath_var
=LD_RUN_PATH
22036 shlibpath_overrides_runpath
=no
22037 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
22043 if test -d /usr
/nec
;then
22045 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22046 soname_spec
='$libname${shared_ext}.$major'
22047 shlibpath_var
=LD_LIBRARY_PATH
22051 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
22052 version_type
=freebsd-elf
22055 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22056 soname_spec
='${libname}${release}${shared_ext}$major'
22057 shlibpath_var
=LD_LIBRARY_PATH
22058 shlibpath_overrides_runpath
=yes
22059 hardcode_into_libs
=yes
22060 if test "$with_gnu_ld" = yes; then
22061 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22063 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
22066 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
22070 sys_lib_dlsearch_path_spec
='/usr/lib'
22074 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22078 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22079 shlibpath_var
=LD_LIBRARY_PATH
22080 shlibpath_overrides_runpath
=no
22081 hardcode_into_libs
=yes
22086 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22087 soname_spec
='${libname}${release}${shared_ext}$major'
22088 shlibpath_var
=LD_LIBRARY_PATH
22095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22096 $as_echo "$dynamic_linker" >&6; }
22097 test "$dynamic_linker" = no
&& can_build_shared
=no
22099 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
22100 if test "$GCC" = yes; then
22101 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22104 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22105 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
22107 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22108 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22149 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22150 hardcode_action_CXX
=
22151 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22152 test -n "$runpath_var_CXX" ||
22153 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22155 # We can hardcode non-existent directories.
22156 if test "$hardcode_direct_CXX" != no
&&
22157 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22158 # have to relink, otherwise we might link with an installed library
22159 # when we should be linking with a yet-to-be-installed one
22160 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22161 test "$hardcode_minus_L_CXX" != no
; then
22162 # Linking always hardcodes the temporary library directory.
22163 hardcode_action_CXX
=relink
22165 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22166 hardcode_action_CXX
=immediate
22169 # We cannot hardcode anything, or else we can only hardcode existing
22171 hardcode_action_CXX
=unsupported
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22174 $as_echo "$hardcode_action_CXX" >&6; }
22176 if test "$hardcode_action_CXX" = relink ||
22177 test "$inherit_rpath_CXX" = yes; then
22178 # Fast installation is not supported
22179 enable_fast_install
=no
22180 elif test "$shlibpath_overrides_runpath" = yes ||
22181 test "$enable_shared" = no
; then
22182 # Fast installation is not necessary
22183 enable_fast_install
=needless
22192 fi # test -n "$compiler"
22198 with_gnu_ld
=$lt_save_with_gnu_ld
22199 lt_cv_path_LDCXX
=$lt_cv_path_LD
22200 lt_cv_path_LD
=$lt_save_path_LD
22201 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
22202 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
22203 fi # test "$_lt_caught_CXX_error" != yes
22206 ac_cpp
='$CXXCPP $CPPFLAGS'
22207 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22208 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22209 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
22226 # Only expand once:
22232 # Identify the assembler which will work hand-in-glove with the newly
22233 # built GCC, so that we can examine its features. This is the assembler
22234 # which will be driven by the driver program.
22236 # If build != host, and we aren't building gas in-tree, we identify a
22237 # build->target assembler and hope that it will have the same features
22238 # as the host->target assembler we'll be using.
22239 gcc_cv_gas_major_version
=
22240 gcc_cv_gas_minor_version
=
22241 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22243 if ${gcc_cv_as+:} false
; then :
22247 if test -x "$DEFAULT_ASSEMBLER"; then
22248 gcc_cv_as
="$DEFAULT_ASSEMBLER"
22249 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22250 && test -f ..
/gas
/Makefile \
22251 && test x
$build = x
$host; then
22252 gcc_cv_as
=..
/gas
/as-new
$build_exeext
22253 elif test -x as
$build_exeext; then
22254 # Build using assembler in the current directory.
22255 gcc_cv_as
=.
/as
$build_exeext
22256 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
22257 gcc_cv_as
="$AS_FOR_TARGET"
22259 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22260 set dummy
$AS_FOR_TARGET; ac_word
=$2
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22262 $as_echo_n "checking for $ac_word... " >&6; }
22263 if ${ac_cv_path_gcc_cv_as+:} false
; then :
22264 $as_echo_n "(cached) " >&6
22268 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
22271 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22272 for as_dir
in $PATH
22275 test -z "$as_dir" && as_dir
=.
22276 for ac_exec_ext
in '' $ac_executable_extensions; do
22277 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22278 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
22279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22289 gcc_cv_as
=$ac_cv_path_gcc_cv_as
22290 if test -n "$gcc_cv_as"; then
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22292 $as_echo "$gcc_cv_as" >&6; }
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22295 $as_echo "no" >&6; }
22302 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
22304 case "$ORIGINAL_AS_FOR_TARGET" in
22305 .
/as | .
/as
$build_exeext) ;;
22306 *) ac_config_files
="$ac_config_files as:exec-tool.in"
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22311 $as_echo_n "checking what assembler to use... " >&6; }
22312 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
22313 # Single tree build which includes gas. We want to prefer it
22314 # over whatever linker top-level may have detected, since
22315 # we'll use what we're building after installation anyway.
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22317 $as_echo "newly built gas" >&6; }
22319 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22320 for f
in $gcc_cv_as_bfd_srcdir/configure \
22321 $gcc_cv_as_gas_srcdir/configure \
22322 $gcc_cv_as_gas_srcdir/configure.ac \
22323 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
22324 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22325 if test x
$gcc_cv_gas_version != x
; then
22329 case $gcc_cv_gas_version in
22331 *) as_fn_error $?
"cannot find version of in-tree assembler" "$LINENO" 5;;
22333 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22334 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22335 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22336 case $gcc_cv_gas_patch_version in
22337 "") gcc_cv_gas_patch_version
="0" ;;
22339 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22340 + $gcc_cv_gas_minor_version \) \* 1000 \
22341 + $gcc_cv_gas_patch_version`
22343 in_tree_gas_is_elf
=no
22344 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
22345 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
22346 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
22348 in_tree_gas_is_elf
=yes
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22352 $as_echo "$gcc_cv_as" >&6; }
22357 # Check whether --enable-ld was given.
22358 if test "${enable_ld+set}" = set; then :
22359 enableval
=$enable_ld; case "${enableval}" in
22367 install_gold_as_default
=no
22368 # Check whether --enable-gold was given.
22369 if test "${enable_gold+set}" = set; then :
22370 enableval
=$enable_gold; case "${enableval}" in
22372 install_gold_as_default
=yes
22375 if test x
${default_ld} != x
; then
22376 install_gold_as_default
=yes
22382 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
22388 # Identify the linker which will work hand-in-glove with the newly
22389 # built GCC, so that we can examine its features. This is the linker
22390 # which will be driven by the driver program.
22392 # If build != host, and we aren't building gas in-tree, we identify a
22393 # build->target linker and hope that it will have the same features
22394 # as the host->target linker we'll be using.
22395 gcc_cv_gld_major_version
=
22396 gcc_cv_gld_minor_version
=
22397 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22398 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22399 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22401 if ${gcc_cv_ld+:} false
; then :
22405 if test -x "$DEFAULT_LINKER"; then
22406 gcc_cv_ld
="$DEFAULT_LINKER"
22407 elif test $install_gold_as_default = yes \
22408 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22409 && test -f ..
/gold
/Makefile \
22410 && test x
$build = x
$host; then
22411 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
22412 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22413 && test -f ..
/ld
/Makefile \
22414 && test x
$build = x
$host; then
22415 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
22416 elif test -x collect-ld
$build_exeext; then
22417 # Build using linker in the current directory.
22418 gcc_cv_ld
=.
/collect-ld
$build_exeext
22419 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
22420 gcc_cv_ld
="$LD_FOR_TARGET"
22422 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22423 set dummy
$LD_FOR_TARGET; ac_word
=$2
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22425 $as_echo_n "checking for $ac_word... " >&6; }
22426 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
22427 $as_echo_n "(cached) " >&6
22431 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
22434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22435 for as_dir
in $PATH
22438 test -z "$as_dir" && as_dir
=.
22439 for ac_exec_ext
in '' $ac_executable_extensions; do
22440 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22441 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
22442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22452 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22453 if test -n "$gcc_cv_ld"; then
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22455 $as_echo "$gcc_cv_ld" >&6; }
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22458 $as_echo "no" >&6; }
22465 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22466 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22467 # if the PLUGIN_LD is set ld-new, just have it as ld
22468 # as that is the installed named.
22469 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22470 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22471 PLUGIN_LD_SUFFIX
=ld
22474 # Check whether --with-plugin-ld was given.
22475 if test "${with_plugin_ld+set}" = set; then :
22476 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22477 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22478 PLUGIN_LD_SUFFIX
="$withval"
22484 cat >>confdefs.h
<<_ACEOF
22485 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22489 # Check to see if we are using gold instead of ld
22490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22491 $as_echo_n "checking whether we are using gold... " >&6; }
22493 if test x
$gcc_cv_ld != x
; then
22494 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22495 |
grep "GNU gold" > /dev
/null
; then
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22500 $as_echo "$ld_is_gold" >&6; }
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22503 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22504 # Check to see if default ld is not gold, but gold is
22505 # available and has support for split stack. If gcc was configured
22506 # with gold then no checking is done.
22508 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22510 # For platforms other than powerpc64*, enable as appropriate.
22512 gold_non_default
=no
22513 ld_gold
=`which ${gcc_cv_ld}.gold`
22514 # Make sure this gold has minimal split stack support
22515 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22516 ld_vers
=`$ld_gold --version | sed 1q`
22517 gold_vers
=`echo $ld_vers | sed -n \
22518 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22520 # check that the gold version contains the complete split stack support
22521 # on powerpc64 big and little endian
22523 case "$gold_vers" in
22524 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22526 *) gold_non_default
=no
22532 if test $gold_non_default = yes; then
22534 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22539 $as_echo "$gold_non_default" >&6; }
22541 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22543 case "$ORIGINAL_LD_FOR_TARGET" in
22544 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22545 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22550 $as_echo_n "checking what linker to use... " >&6; }
22551 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22552 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22553 # Single tree build which includes ld. We want to prefer it
22554 # over whatever linker top-level may have detected, since
22555 # we'll use what we're building after installation anyway.
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22557 $as_echo "newly built ld" >&6; }
22559 in_tree_ld_is_elf
=no
22560 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22561 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22562 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22563 in_tree_ld_is_elf
=yes
22564 elif test "$ld_is_gold" = yes; then
22565 in_tree_ld_is_elf
=yes
22567 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
22569 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22570 if test x
$gcc_cv_gld_version != x
; then
22574 case $gcc_cv_gld_version in
22576 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22578 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22579 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22580 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22581 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22584 $as_echo "$gcc_cv_ld" >&6; }
22586 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22587 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22588 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22594 # Figure out what nm we will be using.
22595 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22596 if ${gcc_cv_nm+:} false
; then :
22600 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22601 && test -f ..
/binutils
/Makefile \
22602 && test x
$build = x
$host; then
22603 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22604 elif test -x nm
$build_exeext; then
22605 gcc_cv_nm
=.
/nm
$build_exeext
22606 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22607 gcc_cv_nm
="$NM_FOR_TARGET"
22609 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22610 set dummy
$NM_FOR_TARGET; ac_word
=$2
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22612 $as_echo_n "checking for $ac_word... " >&6; }
22613 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
22614 $as_echo_n "(cached) " >&6
22618 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22622 for as_dir
in $PATH
22625 test -z "$as_dir" && as_dir
=.
22626 for ac_exec_ext
in '' $ac_executable_extensions; do
22627 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22628 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22639 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22640 if test -n "$gcc_cv_nm"; then
22641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22642 $as_echo "$gcc_cv_nm" >&6; }
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22645 $as_echo "no" >&6; }
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22653 $as_echo_n "checking what nm to use... " >&6; }
22654 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22655 # Single tree build which includes binutils.
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22657 $as_echo "newly built nm" >&6; }
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22661 $as_echo "$gcc_cv_nm" >&6; }
22665 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22667 case "$ORIGINAL_NM_FOR_TARGET" in
22668 .
/nm | .
/nm
$build_exeext) ;;
22669 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22674 # Figure out what objdump we will be using.
22675 if ${gcc_cv_objdump+:} false
; then :
22679 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22680 && test -f ..
/binutils
/Makefile \
22681 && test x
$build = x
$host; then
22682 # Single tree build which includes binutils.
22683 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22684 elif test -x objdump
$build_exeext; then
22685 gcc_cv_objdump
=.
/objdump
$build_exeext
22686 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22687 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22689 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22690 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22692 $as_echo_n "checking for $ac_word... " >&6; }
22693 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
22694 $as_echo_n "(cached) " >&6
22696 case $gcc_cv_objdump in
22698 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22702 for as_dir
in $PATH
22705 test -z "$as_dir" && as_dir
=.
22706 for ac_exec_ext
in '' $ac_executable_extensions; do
22707 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22708 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22719 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22720 if test -n "$gcc_cv_objdump"; then
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22722 $as_echo "$gcc_cv_objdump" >&6; }
22724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22725 $as_echo "no" >&6; }
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22733 $as_echo_n "checking what objdump to use... " >&6; }
22734 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22735 # Single tree build which includes binutils.
22736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22737 $as_echo "newly built objdump" >&6; }
22738 elif test x
$gcc_cv_objdump = x
; then
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22740 $as_echo "not found" >&6; }
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22743 $as_echo "$gcc_cv_objdump" >&6; }
22746 # Figure out what readelf we will be using.
22747 if ${gcc_cv_readelf+:} false
; then :
22751 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22752 && test -f ..
/binutils
/Makefile \
22753 && test x
$build = x
$host; then
22754 # Single tree build which includes binutils.
22755 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22756 elif test -x readelf
$build_exeext; then
22757 gcc_cv_readelf
=.
/readelf
$build_exeext
22758 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22759 gcc_cv_readelf
="$READELF_FOR_TARGET"
22761 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22762 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22764 $as_echo_n "checking for $ac_word... " >&6; }
22765 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
22766 $as_echo_n "(cached) " >&6
22768 case $gcc_cv_readelf in
22770 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22774 for as_dir
in $PATH
22777 test -z "$as_dir" && as_dir
=.
22778 for ac_exec_ext
in '' $ac_executable_extensions; do
22779 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22780 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22791 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22792 if test -n "$gcc_cv_readelf"; then
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22794 $as_echo "$gcc_cv_readelf" >&6; }
22796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22797 $as_echo "no" >&6; }
22804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22805 $as_echo_n "checking what readelf to use... " >&6; }
22806 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22807 # Single tree build which includes binutils.
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22809 $as_echo "newly built readelf" >&6; }
22810 elif test x
$gcc_cv_readelf = x
; then
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22812 $as_echo "not found" >&6; }
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22815 $as_echo "$gcc_cv_readelf" >&6; }
22818 # Figure out what otool we will be using.
22819 if ${gcc_cv_otool+:} false
; then :
22823 if test -x otool
$build_exeext; then
22824 gcc_cv_otool
=.
/otool
$build_exeext
22825 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
22826 gcc_cv_otool
="$OTOOL_FOR_TARGET"
22828 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22829 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
22830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22831 $as_echo_n "checking for $ac_word... " >&6; }
22832 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
22833 $as_echo_n "(cached) " >&6
22835 case $gcc_cv_otool in
22837 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
22840 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22841 for as_dir
in $PATH
22844 test -z "$as_dir" && as_dir
=.
22845 for ac_exec_ext
in '' $ac_executable_extensions; do
22846 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22847 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
22848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22858 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
22859 if test -n "$gcc_cv_otool"; then
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22861 $as_echo "$gcc_cv_otool" >&6; }
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22864 $as_echo "no" >&6; }
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
22872 $as_echo_n "checking what otool to use... " >&6; }
22873 if test x
$gcc_cv_otool = x
; then
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22875 $as_echo "not found" >&6; }
22877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22878 $as_echo "$gcc_cv_otool" >&6; }
22881 # Figure out what assembler alignment features are present.
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22883 $as_echo_n "checking assembler flags... " >&6; }
22884 if ${gcc_cv_as_flags+:} false
; then :
22885 $as_echo_n "(cached) " >&6
22888 i
[34567]86-*-linux*)
22889 gcc_cv_as_flags
=--32
22891 x86_64-
*-linux-gnux32)
22892 gcc_cv_as_flags
=--x32
22895 gcc_cv_as_flags
=--64
22897 powerpc
*-*-darwin*)
22898 gcc_cv_as_flags
="-arch ppc"
22901 gcc_cv_as_flags
=" "
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22906 $as_echo "$gcc_cv_as_flags" >&6; }
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22909 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22910 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
22911 $as_echo_n "(cached) " >&6
22913 gcc_cv_as_balign_and_p2align
=no
22914 if test $in_tree_gas = yes; then
22915 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22916 then gcc_cv_as_balign_and_p2align
=yes
22918 elif test x
$gcc_cv_as != x
; then
22919 $as_echo '.balign 4
22920 .p2align 2' > conftest.s
22921 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22923 (eval $ac_try) 2>&5
22925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22926 test $ac_status = 0; }; }
22928 gcc_cv_as_balign_and_p2align
=yes
22930 echo "configure: failed program was" >&5
22933 rm -f conftest.o conftest.s
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22937 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22938 if test $gcc_cv_as_balign_and_p2align = yes; then
22940 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22946 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22947 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
22948 $as_echo_n "(cached) " >&6
22950 gcc_cv_as_max_skip_p2align
=no
22951 if test $in_tree_gas = yes; then
22952 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22953 then gcc_cv_as_max_skip_p2align
=yes
22955 elif test x
$gcc_cv_as != x
; then
22956 $as_echo '.p2align 4,,7' > conftest.s
22957 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22959 (eval $ac_try) 2>&5
22961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22962 test $ac_status = 0; }; }
22964 gcc_cv_as_max_skip_p2align
=yes
22966 echo "configure: failed program was" >&5
22969 rm -f conftest.o conftest.s
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22973 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22974 if test $gcc_cv_as_max_skip_p2align = yes; then
22976 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22982 $as_echo_n "checking assembler for .literal16... " >&6; }
22983 if ${gcc_cv_as_literal16+:} false
; then :
22984 $as_echo_n "(cached) " >&6
22986 gcc_cv_as_literal16
=no
22987 if test $in_tree_gas = yes; then
22988 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22989 then gcc_cv_as_literal16
=yes
22991 elif test x
$gcc_cv_as != x
; then
22992 $as_echo '.literal16' > conftest.s
22993 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22995 (eval $ac_try) 2>&5
22997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22998 test $ac_status = 0; }; }
23000 gcc_cv_as_literal16
=yes
23002 echo "configure: failed program was" >&5
23005 rm -f conftest.o conftest.s
23008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23009 $as_echo "$gcc_cv_as_literal16" >&6; }
23010 if test $gcc_cv_as_literal16 = yes; then
23012 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23018 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23019 if ${gcc_cv_as_subsection_m1+:} false
; then :
23020 $as_echo_n "(cached) " >&6
23022 gcc_cv_as_subsection_m1
=no
23023 if test $in_tree_gas = yes; then
23024 if test $in_tree_gas_is_elf = yes \
23025 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
23026 then gcc_cv_as_subsection_m1
=yes
23028 elif test x
$gcc_cv_as != x
; then
23029 $as_echo 'conftest_label1: .word 0
23031 conftest_label2: .word 0
23032 .previous' > conftest.s
23033 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23035 (eval $ac_try) 2>&5
23037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23038 test $ac_status = 0; }; }
23040 if test x
$gcc_cv_nm != x
; then
23041 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
23042 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
23043 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
23045 else gcc_cv_as_subsection_m1
=yes
23047 rm -f conftest.nm1 conftest.nm2
23050 echo "configure: failed program was" >&5
23053 rm -f conftest.o conftest.s
23056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23057 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23058 if test $gcc_cv_as_subsection_m1 = yes; then
23060 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23066 $as_echo_n "checking assembler for .weak... " >&6; }
23067 if ${gcc_cv_as_weak+:} false
; then :
23068 $as_echo_n "(cached) " >&6
23071 if test $in_tree_gas = yes; then
23072 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23073 then gcc_cv_as_weak
=yes
23075 elif test x
$gcc_cv_as != x
; then
23076 $as_echo ' .weak foobar' > conftest.s
23077 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23079 (eval $ac_try) 2>&5
23081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23082 test $ac_status = 0; }; }
23086 echo "configure: failed program was" >&5
23089 rm -f conftest.o conftest.s
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23093 $as_echo "$gcc_cv_as_weak" >&6; }
23094 if test $gcc_cv_as_weak = yes; then
23096 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23102 $as_echo_n "checking assembler for .weakref... " >&6; }
23103 if ${gcc_cv_as_weakref+:} false
; then :
23104 $as_echo_n "(cached) " >&6
23106 gcc_cv_as_weakref
=no
23107 if test $in_tree_gas = yes; then
23108 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23109 then gcc_cv_as_weakref
=yes
23111 elif test x
$gcc_cv_as != x
; then
23112 $as_echo ' .weakref foobar, barfnot' > conftest.s
23113 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23115 (eval $ac_try) 2>&5
23117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23118 test $ac_status = 0; }; }
23120 gcc_cv_as_weakref
=yes
23122 echo "configure: failed program was" >&5
23125 rm -f conftest.o conftest.s
23128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23129 $as_echo "$gcc_cv_as_weakref" >&6; }
23130 if test $gcc_cv_as_weakref = yes; then
23132 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23138 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23139 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
23140 $as_echo_n "(cached) " >&6
23142 gcc_cv_as_nsubspa_comdat
=no
23143 if test $in_tree_gas = yes; then
23144 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23145 then gcc_cv_as_nsubspa_comdat
=yes
23147 elif test x
$gcc_cv_as != x
; then
23148 $as_echo ' .SPACE $TEXT$
23149 .NSUBSPA $CODE$,COMDAT' > conftest.s
23150 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23152 (eval $ac_try) 2>&5
23154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23155 test $ac_status = 0; }; }
23157 gcc_cv_as_nsubspa_comdat
=yes
23159 echo "configure: failed program was" >&5
23162 rm -f conftest.o conftest.s
23165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23166 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23167 if test $gcc_cv_as_nsubspa_comdat = yes; then
23169 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23174 # .hidden needs to be supported in both the assembler and the linker,
23175 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23176 # This is irritatingly difficult to feature test for; we have to check the
23177 # date string after the version number. If we've got an in-tree
23178 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23180 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23181 case "${target}" in
23183 conftest_s
=' .globl foobar,hidden'
23186 conftest_s
=' .hidden foobar
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23191 $as_echo_n "checking assembler for .hidden... " >&6; }
23192 if ${gcc_cv_as_hidden+:} false
; then :
23193 $as_echo_n "(cached) " >&6
23195 gcc_cv_as_hidden
=no
23196 if test $in_tree_gas = yes; then
23197 if test $in_tree_gas_is_elf = yes \
23198 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23199 then gcc_cv_as_hidden
=yes
23201 elif test x
$gcc_cv_as != x
; then
23202 $as_echo "$conftest_s" > conftest.s
23203 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23205 (eval $ac_try) 2>&5
23207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23208 test $ac_status = 0; }; }
23210 gcc_cv_as_hidden
=yes
23212 echo "configure: failed program was" >&5
23215 rm -f conftest.o conftest.s
23218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23219 $as_echo "$gcc_cv_as_hidden" >&6; }
23222 case "${target}" in
23224 # Darwin as has some visibility support, though with a different syntax.
23225 gcc_cv_as_hidden
=yes
23229 # gnu_indirect_function type is an extension proposed at
23230 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23231 # selection of function implementation
23232 # Check whether --enable-gnu-indirect-function was given.
23233 if test "${enable_gnu_indirect_function+set}" = set; then :
23234 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23236 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23237 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23240 enable_gnu_indirect_function
="$default_gnu_indirect_function"
23244 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23246 cat >>confdefs.h
<<_ACEOF
23247 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23252 if test $in_tree_ld != yes ; then
23253 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23254 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23255 if test x
"$ld_is_gold" = xyes
; then
23256 # GNU gold --version looks like this:
23258 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23260 # We extract the binutils version which is more familiar and specific
23261 # than the gold version.
23262 ld_vers
=`echo $ld_ver | sed -n \
23263 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23265 # GNU ld --version looks like this:
23267 # GNU ld (GNU Binutils) 2.21.51.20110225
23268 ld_vers
=`echo $ld_ver | sed -n \
23269 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23271 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'`
23272 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23273 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23274 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23276 case "${target}" in
23278 # Solaris 2 ld -V output looks like this for a regular version:
23280 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23282 # but test versions add stuff at the end:
23284 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23286 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23287 # numbers can be used in ld.so.1 feature checks even if a different
23288 # linker is configured.
23289 ld_ver
=`$gcc_cv_ld -V 2>&1`
23290 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
23291 ld_vers
=`echo $ld_ver | sed -n \
23292 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23293 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23294 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23302 $as_echo_n "checking linker for .hidden support... " >&6; }
23303 if ${gcc_cv_ld_hidden+:} false
; then :
23304 $as_echo_n "(cached) " >&6
23306 if test $in_tree_ld = yes ; then
23307 gcc_cv_ld_hidden
=no
23308 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 \
23309 && test $in_tree_ld_is_elf = yes; then
23310 gcc_cv_ld_hidden
=yes
23313 gcc_cv_ld_hidden
=yes
23314 if test x
"$ld_is_gold" = xyes
; then
23316 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23317 case "${target}" in
23318 mmix-knuth-mmixware
)
23319 # The linker emits by default mmo, not ELF, so "no" is appropriate.
23320 gcc_cv_ld_hidden
=no
23323 if test 0"$ld_date" -lt 20020404; then
23324 if test -n "$ld_date"; then
23325 # If there was date string, but was earlier than 2002-04-04, fail
23326 gcc_cv_ld_hidden
=no
23327 elif test -z "$ld_vers"; then
23328 # If there was no date string nor ld version number, something is wrong
23329 gcc_cv_ld_hidden
=no
23331 test -z "$ld_vers_patch" && ld_vers_patch
=0
23332 if test "$ld_vers_major" -lt 2; then
23333 gcc_cv_ld_hidden
=no
23334 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23335 gcc_cv_ld_hidden
="no"
23336 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23337 gcc_cv_ld_hidden
=no
23342 case "${target}" in
23344 gcc_cv_ld_hidden
=yes
23347 # Darwin ld has some visibility support.
23348 gcc_cv_ld_hidden
=yes
23350 hppa64
*-*-hpux* | ia64
*-*-hpux*)
23351 gcc_cv_ld_hidden
=yes
23354 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23355 # .symbolic was only added in Solaris 9 12/02.
23356 gcc_cv_ld_hidden
=yes
23359 gcc_cv_ld_hidden
=no
23365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23366 $as_echo "$gcc_cv_ld_hidden" >&6; }
23367 libgcc_visibility
=no
23370 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23371 libgcc_visibility
=yes
23373 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23378 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23379 gcc_cv_ld_ro_rw_mix
=unknown
23380 if test $in_tree_ld = yes ; then
23381 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 \
23382 && test $in_tree_ld_is_elf = yes; then
23383 gcc_cv_ld_ro_rw_mix
=read-write
23385 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23386 echo '.section myfoosect, "a"' > conftest1.s
23387 echo '.section myfoosect, "aw"' > conftest2.s
23388 echo '.byte 1' >> conftest2.s
23389 echo '.section myfoosect, "a"' > conftest3.s
23390 echo '.byte 0' >> conftest3.s
23391 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
23392 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
23393 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
23394 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23395 conftest2.o conftest3.o
> /dev
/null
2>&1; then
23396 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
23397 | sed -e '/myfoosect/!d' -e N`
23398 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
23399 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
23400 gcc_cv_ld_ro_rw_mix
=read-only
23402 gcc_cv_ld_ro_rw_mix
=read-write
23406 rm -f conftest.
* conftest
[123].
*
23408 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
23410 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23414 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23416 # Check whether --enable-initfini-array was given.
23417 if test "${enable_initfini_array+set}" = set; then :
23418 enableval
=$enable_initfini_array;
23421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23422 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23423 if ${gcc_cv_initfini_array+:} false
; then :
23424 $as_echo_n "(cached) " >&6
23426 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23427 case "${target}" in
23429 if test "$cross_compiling" = yes; then :
23430 gcc_cv_initfini_array
=no
23432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23433 /* end confdefs.h. */
23436 #error Not an ELF OS
23438 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23439 if it can be used. */
23441 int main (void) { return x; }
23442 int foo (void) { x = 0; }
23443 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23446 if ac_fn_cxx_try_run
"$LINENO"; then :
23447 gcc_cv_initfini_array
=yes
23449 gcc_cv_initfini_array
=no
23451 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23452 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23456 gcc_cv_initfini_array
=no
23457 if test $in_tree_ld = yes ; then
23458 if test "$gcc_cv_gld_major_version" -eq 2 \
23459 -a "$gcc_cv_gld_minor_version" -ge 22 \
23460 -o "$gcc_cv_gld_major_version" -gt 2 \
23461 && test $in_tree_ld_is_elf = yes; then
23462 gcc_cv_initfini_array
=yes
23464 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23465 case $target:$gas in
23468 sh_type
='%progbits'
23470 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
23472 sh_type
='@progbits'
23474 sparc
*-*-solaris2*:no
)
23476 sh_type
='#progbits'
23480 case "$target:$gnu_ld" in
23482 cat > conftest.s
<<EOF
23483 .section .dtors,$sh_flags,$sh_type
23485 .byte 'A', 'A', 'A', 'A'
23486 .section .ctors,$sh_flags,$sh_type
23488 .byte 'B', 'B', 'B', 'B'
23489 .section .fini_array.65530,$sh_flags,$sh_type
23491 .byte 'C', 'C', 'C', 'C'
23492 .section .init_array.65530,$sh_flags,$sh_type
23494 .byte 'D', 'D', 'D', 'D'
23495 .section .dtors.64528,$sh_flags,$sh_type
23497 .byte 'E', 'E', 'E', 'E'
23498 .section .ctors.64528,$sh_flags,$sh_type
23500 .byte 'F', 'F', 'F', 'F'
23501 .section .fini_array.01005,$sh_flags,$sh_type
23503 .byte 'G', 'G', 'G', 'G'
23504 .section .init_array.01005,$sh_flags,$sh_type
23506 .byte 'H', 'H', 'H', 'H'
23511 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23512 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23513 && $gcc_cv_objdump -s -j .init_array conftest \
23514 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23515 && $gcc_cv_objdump -s -j .fini_array conftest \
23516 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23517 gcc_cv_initfini_array
=yes
23521 # When Solaris ld added constructor priority support, it was
23522 # decided to only handle .init_array.N/.fini_array.N since
23523 # there was no need for backwards compatibility with
23524 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23525 # sections with correct execution order resp. to
23526 # .init_array/.fini_array, while gld merges them into
23527 # .init_array/.fini_array.
23528 cat > conftest.s
<<EOF
23529 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23531 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23532 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23534 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23535 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23537 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23538 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23540 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23545 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23546 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23547 && $gcc_cv_objdump -s -j .init_array conftest \
23548 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
23549 && $gcc_cv_objdump -s -j .fini_array conftest \
23550 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
23551 gcc_cv_initfini_array
=yes
23555 rm -f conftest conftest.
*
23557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23558 /* end confdefs.h. */
23561 # error Not an ELF OS
23563 #include <stdlib.h>
23564 #if defined __GLIBC_PREREQ
23565 # if __GLIBC_PREREQ (2, 4)
23567 # error GLIBC 2.4 required
23570 # if defined __sun__ && defined __svr4__
23571 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23573 # error The C library not known to support .init_array/.fini_array
23578 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23581 gcc_cv_initfini_array
=no
23583 rm -f conftest.err conftest.i conftest.
$ac_ext;;
23586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23587 $as_echo_n "checking cross compile... guessing... " >&6; }
23588 gcc_cv_initfini_array
=no
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23592 $as_echo "$gcc_cv_initfini_array" >&6; }
23593 enable_initfini_array
=$gcc_cv_initfini_array
23598 cat >>confdefs.h
<<_ACEOF
23599 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23604 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23606 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23607 if ${gcc_cv_as_leb128+:} false
; then :
23608 $as_echo_n "(cached) " >&6
23610 gcc_cv_as_leb128
=no
23611 if test $in_tree_gas = yes; then
23612 if test $in_tree_gas_is_elf = yes \
23613 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23614 then gcc_cv_as_leb128
=yes
23616 elif test x
$gcc_cv_as != x
; then
23623 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23625 (eval $ac_try) 2>&5
23627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23628 test $ac_status = 0; }; }
23630 # GAS versions before 2.11 do not support uleb128,
23631 # despite appearing to.
23632 # ??? There exists an elf-specific test that will crash
23633 # the assembler. Perhaps it's better to figure out whether
23634 # arbitrary sections are supported and try the test.
23635 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23636 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23637 as_vers
=`echo $as_ver | sed -n \
23638 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23639 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23640 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23641 if test $as_major -eq 2 && test $as_minor -lt 11
23643 else gcc_cv_as_leb128
=yes
23647 echo "configure: failed program was" >&5
23650 rm -f conftest.o conftest.s
23653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23654 $as_echo "$gcc_cv_as_leb128" >&6; }
23655 if test $gcc_cv_as_leb128 = yes; then
23657 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23660 if test $gcc_cv_as_leb128 != yes; then
23662 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23666 # Determine if an .eh_frame section is read-only.
23667 gcc_fn_eh_frame_ro
() {
23668 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23669 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23670 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
23673 # Check if we have assembler support for unwind directives.
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23675 $as_echo_n "checking assembler for cfi directives... " >&6; }
23676 if ${gcc_cv_as_cfi_directive+:} false
; then :
23677 $as_echo_n "(cached) " >&6
23679 gcc_cv_as_cfi_directive
=no
23680 if test x
$gcc_cv_as != x
; then
23686 .cfi_escape 1, 2, 3, 4, 5
23687 .cfi_endproc' > conftest.s
23688 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23690 (eval $ac_try) 2>&5
23692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23693 test $ac_status = 0; }; }
23697 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23698 # read-only and read-write sections, we need to make sure that the
23699 # assembler used emits read-write .eh_frame sections.
23700 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
23701 gcc_cv_as_cfi_directive
=yes
23702 elif test "x$gcc_cv_objdump" = x
; then
23703 # No objdump, err on the side of caution.
23704 gcc_cv_as_cfi_directive
=no
23706 if test x
$gas = xyes
; then
23714 sparc
*-*-solaris2.
*)
23715 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23716 if gcc_fn_eh_frame_ro
$as_32_opt \
23717 || gcc_fn_eh_frame_ro
$as_64_opt; then
23718 gcc_cv_as_cfi_directive
=no
23720 gcc_cv_as_cfi_directive
=yes
23723 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
23724 # On Solaris/x86, make sure that GCC and assembler agree on using
23725 # read-only .eh_frame sections for 64-bit.
23726 if gcc_fn_eh_frame_ro
$as_32_opt; then
23727 gcc_cv_as_cfi_directive
=no
23728 elif gcc_fn_eh_frame_ro
$as_64_opt; then
23729 gcc_cv_as_cfi_directive
=yes
23731 gcc_cv_as_cfi_directive
=no
23738 gcc_cv_as_cfi_directive
=yes
23742 echo "configure: failed program was" >&5
23745 rm -f conftest.o conftest.s
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23749 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23752 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23754 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23755 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
23756 $as_echo_n "(cached) " >&6
23758 gcc_cv_as_cfi_advance_working
=no
23759 if test x
$gcc_cv_as != x
; then
23762 .cfi_adjust_cfa_offset 64
23764 .cfi_adjust_cfa_offset 128
23765 .cfi_endproc' > conftest.s
23766 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23768 (eval $ac_try) 2>&5
23770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23771 test $ac_status = 0; }; }
23774 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23775 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23776 gcc_cv_as_cfi_advance_working
=yes
23780 echo "configure: failed program was" >&5
23783 rm -f conftest.o conftest.s
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23787 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23791 # no objdump, err on the side of caution
23792 gcc_cv_as_cfi_advance_working
=no
23796 cat >>confdefs.h
<<_ACEOF
23797 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23798 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23804 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23805 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
23806 $as_echo_n "(cached) " >&6
23808 gcc_cv_as_cfi_personality_directive
=no
23809 if test x
$gcc_cv_as != x
; then
23812 .cfi_personality 0, symbol
23813 .cfi_endproc' > conftest.s
23814 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23816 (eval $ac_try) 2>&5
23818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23819 test $ac_status = 0; }; }
23821 gcc_cv_as_cfi_personality_directive
=yes
23823 echo "configure: failed program was" >&5
23826 rm -f conftest.o conftest.s
23829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23830 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23834 cat >>confdefs.h
<<_ACEOF
23835 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23840 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23841 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
23842 $as_echo_n "(cached) " >&6
23844 gcc_cv_as_cfi_sections_directive
=no
23845 if test x
$gcc_cv_as != x
; then
23847 .cfi_sections .debug_frame, .eh_frame
23849 .cfi_endproc' > conftest.s
23850 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23852 (eval $ac_try) 2>&5
23854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23855 test $ac_status = 0; }; }
23858 win32 | pe | cygwin
* | mingw32
*)
23859 # Need to check that we generated the correct relocation for the
23860 # .debug_frame section. This was fixed for binutils 2.21.
23861 gcc_cv_as_cfi_sections_directive
=no
23862 if test "x$gcc_cv_objdump" != x
; then
23863 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23864 grep secrel
> /dev
/null
; then
23865 gcc_cv_as_cfi_sections_directive
=yes
23870 gcc_cv_as_cfi_sections_directive
=yes
23874 echo "configure: failed program was" >&5
23877 rm -f conftest.o conftest.s
23880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23881 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23886 cat >>confdefs.h
<<_ACEOF
23887 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
23891 # GAS versions up to and including 2.11.0 may mis-optimize
23893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23894 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23895 if ${gcc_cv_as_eh_frame+:} false
; then :
23896 $as_echo_n "(cached) " >&6
23898 gcc_cv_as_eh_frame
=no
23899 if test $in_tree_gas = yes; then
23900 if test $in_tree_gas_is_elf = yes \
23901 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23902 then gcc_cv_as_eh_frame
=yes
23904 elif test x
$gcc_cv_as != x
; then
23911 .section .eh_frame,"aw",@progbits
23913 .4byte .LECIE1-.LSCIE1
23927 .4byte .LEFDE1-.LASFDE1
23929 .4byte .LASFDE1-__FRAME_BEGIN__
23936 .LEFDE1:' > conftest.s
23937 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23939 (eval $ac_try) 2>&5
23941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23942 test $ac_status = 0; }; }
23944 cat > conftest.lit
<<EOF
23945 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23946 0010 01000000 12000000 18000000 00000000 ................
23947 0020 08000000 04080000 0044 .........D
23949 cat > conftest.big
<<EOF
23950 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23951 0010 00000001 00000012 00000018 00000000 ................
23952 0020 00000008 04000000 0844 .........D
23954 # If the assembler didn't choke, and we can objdump,
23955 # and we got the correct data, then succeed.
23956 # The text in the here-document typically retains its unix-style line
23957 # endings, while the output of objdump will use host line endings.
23958 # Therefore, use diff -b for the comparisons.
23959 if test x
$gcc_cv_objdump != x \
23960 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23961 |
tail -3 > conftest.got \
23962 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23963 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23965 gcc_cv_as_eh_frame
=yes
23966 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23968 (eval $ac_try) 2>&5
23970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23971 test $ac_status = 0; }; }; then
23972 gcc_cv_as_eh_frame
=buggy
23974 # Uh oh, what do we do now?
23975 gcc_cv_as_eh_frame
=no
23978 echo "configure: failed program was" >&5
23981 rm -f conftest.o conftest.s
23984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23985 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23989 if test $gcc_cv_as_eh_frame = buggy
; then
23991 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23995 # Test if the assembler supports the section flag 'e' or #exclude for
23996 # specifying an excluded section.
23997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23998 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23999 if ${gcc_cv_as_section_exclude_e+:} false
; then :
24000 $as_echo_n "(cached) " >&6
24002 gcc_cv_as_section_exclude_e
=no
24003 if test $in_tree_gas = yes; then
24004 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24005 then gcc_cv_as_section_exclude_e
=yes
24007 elif test x
$gcc_cv_as != x
; then
24008 $as_echo '.section foo1,"e"
24009 .byte 0,0,0,0' > conftest.s
24010 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24012 (eval $ac_try) 2>&5
24014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24015 test $ac_status = 0; }; }
24017 gcc_cv_as_section_exclude_e
=yes
24019 echo "configure: failed program was" >&5
24022 rm -f conftest.o conftest.s
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24026 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24029 if test $gcc_cv_as_section_exclude_e = no
; then
24030 case "${target}" in
24031 # Solaris as uses #exclude instead.
24033 case "${target}" in
24034 sparc
*-*-solaris2*)
24035 conftest_s
='.section "foo1", #exclude'
24037 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24038 conftest_s
='.section foo1, #exclude'
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24044 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24045 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
24046 $as_echo_n "(cached) " >&6
24048 gcc_cv_as_section_exclude_hash
=no
24049 if test x
$gcc_cv_as != x
; then
24050 $as_echo "$conftest_s
24051 .byte 0,0,0,0" > conftest.s
24052 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24054 (eval $ac_try) 2>&5
24056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24057 test $ac_status = 0; }; }
24059 gcc_cv_as_section_exclude_hash
=yes
24061 echo "configure: failed program was" >&5
24064 rm -f conftest.o conftest.s
24067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24068 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24073 cat >>confdefs.h
<<_ACEOF
24074 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_exclude_e = yes || test $gcc_cv_as_section_exclude_hash = yes; then echo 1; else echo 0; fi`
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24079 $as_echo_n "checking assembler for section merging support... " >&6; }
24080 if ${gcc_cv_as_shf_merge+:} false
; then :
24081 $as_echo_n "(cached) " >&6
24083 gcc_cv_as_shf_merge
=no
24084 if test $in_tree_gas = yes; then
24085 if test $in_tree_gas_is_elf = yes \
24086 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24087 then gcc_cv_as_shf_merge
=yes
24089 elif test x
$gcc_cv_as != x
; then
24090 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24091 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24093 (eval $ac_try) 2>&5
24095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24096 test $ac_status = 0; }; }
24098 gcc_cv_as_shf_merge
=yes
24100 echo "configure: failed program was" >&5
24103 rm -f conftest.o conftest.s
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24107 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24110 if test $gcc_cv_as_shf_merge = no
; then
24111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24112 $as_echo_n "checking assembler for section merging support... " >&6; }
24113 if ${gcc_cv_as_shf_merge+:} false
; then :
24114 $as_echo_n "(cached) " >&6
24116 gcc_cv_as_shf_merge
=no
24117 if test $in_tree_gas = yes; then
24118 if test $in_tree_gas_is_elf = yes \
24119 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24120 then gcc_cv_as_shf_merge
=yes
24122 elif test x
$gcc_cv_as != x
; then
24123 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24124 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24126 (eval $ac_try) 2>&5
24128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24129 test $ac_status = 0; }; }
24131 gcc_cv_as_shf_merge
=yes
24133 echo "configure: failed program was" >&5
24136 rm -f conftest.o conftest.s
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24140 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24145 cat >>confdefs.h
<<_ACEOF
24146 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24150 gcc_cv_ld_aligned_shf_merge
=yes
24152 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24154 sparc
*-*-solaris2.11
*)
24155 if test x
"$gnu_ld" = xno \
24156 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24157 gcc_cv_ld_aligned_shf_merge
=no
24162 cat >>confdefs.h
<<_ACEOF
24163 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24168 $as_echo_n "checking assembler for stabs directive... " >&6; }
24169 if ${gcc_cv_as_stabs_directive+:} false
; then :
24170 $as_echo_n "(cached) " >&6
24172 gcc_cv_as_stabs_directive
=no
24173 if test x
$gcc_cv_as != x
; then
24174 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24175 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24177 (eval $ac_try) 2>&5
24179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24180 test $ac_status = 0; }; }
24182 gcc_cv_as_stabs_directive
=yes
24184 echo "configure: failed program was" >&5
24187 rm -f conftest.o conftest.s
24190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24191 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24192 if test $gcc_cv_as_stabs_directive = yes; then
24194 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24200 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24201 if ${gcc_cv_as_comdat_group+:} false
; then :
24202 $as_echo_n "(cached) " >&6
24204 gcc_cv_as_comdat_group
=no
24205 if test $in_tree_gas = yes; then
24206 if test $in_tree_gas_is_elf = yes \
24207 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24208 then gcc_cv_as_comdat_group
=yes
24210 elif test x
$gcc_cv_as != x
; then
24211 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24212 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24214 (eval $ac_try) 2>&5
24216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24217 test $ac_status = 0; }; }
24219 gcc_cv_as_comdat_group
=yes
24221 echo "configure: failed program was" >&5
24224 rm -f conftest.o conftest.s
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24228 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24231 if test $gcc_cv_as_comdat_group = yes; then
24232 gcc_cv_as_comdat_group_percent
=no
24233 gcc_cv_as_comdat_group_group
=no
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24236 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24237 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
24238 $as_echo_n "(cached) " >&6
24240 gcc_cv_as_comdat_group_percent
=no
24241 if test $in_tree_gas = yes; then
24242 if test $in_tree_gas_is_elf = yes \
24243 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24244 then gcc_cv_as_comdat_group_percent
=yes
24246 elif test x
$gcc_cv_as != x
; then
24247 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24248 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24250 (eval $ac_try) 2>&5
24252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24253 test $ac_status = 0; }; }
24255 gcc_cv_as_comdat_group_percent
=yes
24257 echo "configure: failed program was" >&5
24260 rm -f conftest.o conftest.s
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24264 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24267 if test $gcc_cv_as_comdat_group_percent = yes; then
24268 gcc_cv_as_comdat_group_group
=no
24270 case "${target}" in
24271 # Sun as uses a completely different syntax.
24273 case "${target}" in
24274 sparc
*-*-solaris2*)
24276 .group foo,".text%foo",#comdat
24277 .section ".text%foo", #alloc,#execinstr,#progbits
24282 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24284 .group foo,.text%foo,#comdat
24285 .section .text%foo, "ax", @progbits
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24292 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24293 if ${gcc_cv_as_comdat_group_group+:} false
; then :
24294 $as_echo_n "(cached) " >&6
24296 gcc_cv_as_comdat_group_group
=no
24297 if test x
$gcc_cv_as != x
; then
24298 $as_echo "$conftest_s" > conftest.s
24299 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24301 (eval $ac_try) 2>&5
24303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24304 test $ac_status = 0; }; }
24306 gcc_cv_as_comdat_group_group
=yes
24308 echo "configure: failed program was" >&5
24311 rm -f conftest.o conftest.s
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24315 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24320 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24321 gcc_cv_as_comdat_group_group
=no
24325 if test x
"$ld_is_gold" = xyes
; then
24327 elif test $in_tree_ld = yes ; then
24329 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 \
24330 && test $in_tree_ld_is_elf = yes; then
24333 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24335 if test 0"$ld_date" -lt 20050308; then
24336 if test -n "$ld_date"; then
24337 # If there was date string, but was earlier than 2005-03-08, fail
24339 elif test "$ld_vers_major" -lt 2; then
24341 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24346 case "${target}" in
24347 *-*-solaris2.1
[1-9]*)
24349 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24350 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24353 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24354 # least ld version 1.2267.
24355 if test "$ld_vers_major" -gt 1; then
24357 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
24359 elif test "$ld_vers_minor" -ge 2267; then
24364 # Assume linkers other than GNU ld don't support COMDAT group.
24369 # Allow overriding the automatic COMDAT group tests above.
24370 # Check whether --enable-comdat was given.
24371 if test "${enable_comdat+set}" = set; then :
24372 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
24375 if test $comdat_group = no
; then
24376 gcc_cv_as_comdat_group
=no
24377 gcc_cv_as_comdat_group_percent
=no
24378 gcc_cv_as_comdat_group_group
=no
24381 cat >>confdefs.h
<<_ACEOF
24382 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24383 || test $gcc_cv_as_comdat_group_percent = yes \
24384 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24388 # Restrict this test to Solaris/x86: other targets define this statically.
24389 case "${target}" in
24390 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24392 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24393 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24394 hidden_linkonce
=yes
24396 case "${target}" in
24397 # Full support for hidden thunks in linkonce sections only appeared in
24398 # Solaris 11/OpenSolaris.
24399 *-*-solaris2.1
[1-9]*)
24400 hidden_linkonce
=yes
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24408 $as_echo "$hidden_linkonce" >&6; }
24410 cat >>confdefs.h
<<_ACEOF
24411 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24418 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24419 if ${gcc_cv_as_is_stmt+:} false
; then :
24420 $as_echo_n "(cached) " >&6
24422 gcc_cv_as_is_stmt
=no
24423 if test $in_tree_gas = yes; then
24424 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24425 then gcc_cv_as_is_stmt
=yes
24427 elif test x
$gcc_cv_as != x
; then
24430 .loc 1 1 0 is_stmt 1' > conftest.s
24431 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24433 (eval $ac_try) 2>&5
24435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24436 test $ac_status = 0; }; }
24438 gcc_cv_as_is_stmt
=yes
24440 echo "configure: failed program was" >&5
24443 rm -f conftest.o conftest.s
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24447 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24448 if test $gcc_cv_as_is_stmt = yes; then
24450 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24456 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24457 if ${gcc_cv_as_discriminator+:} false
; then :
24458 $as_echo_n "(cached) " >&6
24460 gcc_cv_as_discriminator
=no
24461 if test $in_tree_gas = yes; then
24462 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24463 then gcc_cv_as_discriminator
=yes
24465 elif test x
$gcc_cv_as != x
; then
24468 .loc 1 1 0 discriminator 1' > conftest.s
24469 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24471 (eval $ac_try) 2>&5
24473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24474 test $ac_status = 0; }; }
24476 gcc_cv_as_discriminator
=yes
24478 echo "configure: failed program was" >&5
24481 rm -f conftest.o conftest.s
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24485 $as_echo "$gcc_cv_as_discriminator" >&6; }
24486 if test $gcc_cv_as_discriminator = yes; then
24488 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24493 # Thread-local storage - the check is heavily parameterized.
24501 .section ".tdata","awT",@progbits
24504 ldq $27,__tls_get_addr($29) !literal!1
24505 lda $16,foo($29) !tlsgd!1
24506 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24507 ldq $27,__tls_get_addr($29) !literal!2
24508 lda $16,foo($29) !tlsldm!2
24509 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24510 ldq $1,foo($29) !gotdtprel
24511 ldah $2,foo($29) !dtprelhi
24512 lda $3,foo($2) !dtprello
24513 lda $4,foo($29) !dtprel
24514 ldq $1,foo($29) !gottprel
24515 ldah $2,foo($29) !tprelhi
24516 lda $3,foo($2) !tprello
24517 lda $4,foo($29) !tprel'
24520 tls_as_opt
=--fatal-warnings
24524 add_s r0,r0, @foo@tpoff'
24528 cris-
*-*|crisv32-
*-*)
24530 .section ".tdata","awT",@progbits
24537 tls_as_opt
=--fatal-warnings
24541 .section ".tdata","awT",@progbits
24544 call #gettlsoff(x)'
24553 .section ".tdata","awT",@progbits
24557 addil LT%foo-$tls_gdidx$,gp
24558 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24561 addil LT%foo-$tls_ldidx$,gp
24563 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24564 addil LR%foo-$tls_dtpoff$,%ret0
24565 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24567 addil LT%foo-$tls_ieoff$,gp
24568 ldw RT%foo-$tls_ieoff$(%r1),%t2
24571 addil LR%foo-$tls_leoff$,%t1
24572 ldo RR%foo-$tls_leoff$(%r1),%t2'
24575 tls_as_opt
=--fatal-warnings
24579 .section ".tdata","awT",%progbits
24582 .word foo(gottpoff)
24590 i
[34567]86-*-* | x86_64-
*-*)
24592 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
24599 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24601 .section .tdata,"awt",@progbits'
24606 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24610 .section ".tdata","awT",@progbits'
24614 tls_as_opt
="--fatal-warnings"
24618 conftest_s
="$conftest_s
24622 leal foo@tlsgd(,%ebx,1), %eax
24623 leal foo@tlsldm(%ebx), %eax
24624 leal foo@dtpoff(%eax), %edx
24625 movl foo@gottpoff(%ebx), %eax
24626 subl foo@gottpoff(%ebx), %eax
24627 addl foo@gotntpoff(%ebx), %eax
24628 movl foo@indntpoff, %eax
24629 movl \$foo@tpoff, %eax
24630 subl \$foo@tpoff, %eax
24631 leal foo@ntpoff(%ecx), %eax"
24634 if test x
$on_solaris = xyes
; then
24636 yes) tls_as_opt
="$tls_as_opt --64" ;;
24637 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
24640 conftest_s
="$conftest_s
24644 leaq foo@tlsgd(%rip), %rdi
24645 leaq foo@tlsld(%rip), %rdi
24646 leaq foo@dtpoff(%rax), %rdx
24647 movq foo@gottpoff(%rip), %rax
24648 movq \$foo@tpoff, %rax"
24654 .section ".tdata","awT",@progbits
24657 addl r16 = @ltoff(@dtpmod(foo#)), gp
24658 addl r17 = @ltoff(@dtprel(foo#)), gp
24659 addl r18 = @ltoff(@tprel(foo#)), gp
24660 addl r19 = @dtprel(foo#), gp
24661 adds r21 = @dtprel(foo#), r13
24662 movl r23 = @dtprel(foo#)
24663 addl r20 = @tprel(foo#), gp
24664 adds r22 = @tprel(foo#), r13
24665 movl r24 = @tprel(foo#)'
24668 tls_as_opt
=--fatal-warnings
24672 .section .tdata,"awT",@progbits
24676 addik r5,r20,x@TLSGD
24677 addik r5,r20,x@TLSLDM'
24680 tls_as_opt
='--fatal-warnings'
24684 .section .tdata,"awT",@progbits
24688 addiu $4, $28, %tlsgd(x)
24689 addiu $4, $28, %tlsldm(x)
24690 lui $4, %dtprel_hi(x)
24691 addiu $4, $4, %dtprel_lo(x)
24692 lw $4, %gottprel(x)($28)
24693 lui $4, %tprel_hi(x)
24694 addiu $4, $4, %tprel_lo(x)'
24697 tls_as_opt
='-32 --fatal-warnings'
24701 .section .tdata,"awT",@progbits
24706 move.l x@TLSGD(%a5),%a0
24707 move.l x@TLSLDM(%a5),%a0
24708 move.l x@TLSLDO(%a5),%a0
24709 move.l x@TLSIE(%a5),%a0
24710 move.l x@TLSLE(%a5),%a0'
24713 tls_as_opt
='--fatal-warnings'
24717 .section ".tdata","awT",@progbits'
24720 tls_as_opt
="--fatal-warnings"
24724 .section ".tdata","awT",%progbits
24728 add x0, x0, #:tlsgd_lo12:x
24733 tls_as_opt
='--fatal-warnings'
24737 .section ".tdata","awT",@progbits
24740 l.movhi r3, tpoffha(foo)
24742 l.lwz r4, tpofflo(foo)(r3)'
24745 tls_as_opt
=--fatal-warnings
24749 .extern __get_tpointer
24767 .section ".tdata","awT",@progbits
24775 addi 3,2,ld0@got@tlsgd
24781 addi 3,2,x1@got@tlsld
24787 addis 9,3,x2@dtprel@ha
24788 addi 9,9,x2@dtprel@l
24791 ld 9,x3@got@dtprel(2)
24797 tls_as_opt
="-a64 --fatal-warnings"
24801 .section ".tdata","awT",@progbits
24809 addi 3,31,ld0@got@tlsgd
24811 addi 3,31,x1@got@tlsld
24814 addis 9,3,x2@dtprel@ha
24815 addi 9,9,x2@dtprel@l
24816 lwz 9,x3@got@tprel(31)
24819 addis 9,2,x2@tprel@ha
24820 addi 9,9,x2@tprel@l'
24823 tls_as_opt
="-a32 --fatal-warnings"
24827 .section .tdata,"awT",@progbits
24831 call __tls_get_addr'
24834 tls_as_opt
='--fatal-warnings'
24838 .section ".tdata","awT",@progbits
24845 .long foo@GOTNTPOFF
24846 .long foo@INDNTPOFF
24847 l %r1,foo@GOTNTPOFF(%r12)
24848 l %r1,0(%r1):tls_load:foo
24849 bas %r14,0(%r1,%r13):tls_gdcall:foo
24850 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24853 tls_as_opt
="-m31 --fatal-warnings"
24857 .section ".tdata","awT",@progbits
24864 .quad foo@GOTNTPOFF
24865 lg %r1,foo@GOTNTPOFF(%r12)
24866 larl %r1,foo@INDNTPOFF
24867 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24868 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24871 tls_as_opt
="-m64 -Aesame --fatal-warnings"
24873 sh-
*-* | sh
[123456789lbe
]*-*-*)
24875 .section ".tdata","awT",@progbits
24885 tls_as_opt
=--fatal-warnings
24889 sparc
*-sun-solaris2.
*)
24896 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24898 .section ".tdata",#alloc,#write,#tls'
24903 .section ".tdata","awT",@progbits'
24906 tls_as_opt
="-32 --fatal-warnings"
24908 conftest_s
="$conftest_s
24911 sethi %tgd_hi22(foo), %o0
24912 add %o0, %tgd_lo10(foo), %o1
24913 add %l7, %o1, %o0, %tgd_add(foo)
24914 call __tls_get_addr, %tgd_call(foo)
24915 sethi %tldm_hi22(foo), %l1
24916 add %l1, %tldm_lo10(foo), %l2
24917 add %l7, %l2, %o0, %tldm_add(foo)
24918 call __tls_get_addr, %tldm_call(foo)
24919 sethi %tldo_hix22(foo), %l3
24920 xor %l3, %tldo_lox10(foo), %l4
24921 add %o0, %l4, %l5, %tldo_add(foo)
24922 sethi %tie_hi22(foo), %o3
24923 add %o3, %tie_lo10(foo), %o3
24924 ld [%l7 + %o3], %o2, %tie_ld(foo)
24925 add %g7, %o2, %o4, %tie_add(foo)
24926 sethi %tle_hix22(foo), %l1
24927 xor %l1, %tle_lox10(foo), %o5
24928 ld [%g7 + %o5], %o1"
24932 .section ".tdata","awT",@progbits
24935 addli r0, zero, tls_gd(foo)
24936 auli r0, zero, tls_gd_ha16(foo)
24937 addli r0, r0, tls_gd_lo16(foo)
24939 addli r0, zero, tls_ie(foo)
24940 auli r0, r0, tls_ie_ha16(foo)
24941 addli r0, r0, tls_ie_lo16(foo)'
24944 tls_as_opt
="--fatal-warnings"
24948 .section ".tdata","awT",@progbits
24951 shl16insli r0, zero, hw0_last_tls_gd(foo)
24952 shl16insli r0, zero, hw1_last_tls_gd(foo)
24953 shl16insli r0, r0, hw0_tls_gd(foo)
24955 shl16insli r0, zero, hw1_last_tls_ie(foo)
24956 shl16insli r0, r0, hw0_tls_ie(foo)'
24959 tls_as_opt
="--fatal-warnings"
24963 .section ".tdata","awT",@progbits
24966 movi a8, foo@TLSFUNC
24967 movi a10, foo@TLSARG
24968 callx8.tls a8, foo@TLSCALL'
24974 if test "x$enable_tls" = xno
; then
24975 : # TLS explicitly disabled.
24976 elif test "x$enable_tls" = xyes
; then
24977 set_have_as_tls
=yes # TLS explicitly enabled.
24978 elif test -z "$tls_first_major"; then
24979 : # If we don't have a check, assume no support.
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24982 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24983 if ${gcc_cv_as_tls+:} false
; then :
24984 $as_echo_n "(cached) " >&6
24987 if test $in_tree_gas = yes; then
24988 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24989 then gcc_cv_as_tls
=yes
24991 elif test x
$gcc_cv_as != x
; then
24992 $as_echo "$conftest_s" > conftest.s
24993 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24995 (eval $ac_try) 2>&5
24997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24998 test $ac_status = 0; }; }
25002 echo "configure: failed program was" >&5
25005 rm -f conftest.o conftest.s
25008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25009 $as_echo "$gcc_cv_as_tls" >&6; }
25010 if test $gcc_cv_as_tls = yes; then
25011 set_have_as_tls
=yes
25015 if test $set_have_as_tls = yes ; then
25017 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25021 # Target-specific assembler checks.
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25024 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25025 gcc_cv_ld_static_dynamic
=no
25026 gcc_cv_ld_static_option
='-Bstatic'
25027 gcc_cv_ld_dynamic_option
='-Bdynamic'
25028 if test $in_tree_ld = yes ; then
25029 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
25030 gcc_cv_ld_static_dynamic
=yes
25032 elif test x
$gcc_cv_ld != x
; then
25033 # Check if linker supports -Bstatic/-Bdynamic option
25034 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
25035 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
25036 gcc_cv_ld_static_dynamic
=yes
25039 # AIX ld uses -b flags
25040 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
25041 gcc_cv_ld_static_dynamic
=yes
25042 gcc_cv_ld_static_option
="-bstatic"
25043 gcc_cv_ld_dynamic_option
="-bdynamic"
25045 # HP-UX ld uses -a flags to select between shared and archive.
25047 if test x
"$gnu_ld" = xno
; then
25048 gcc_cv_ld_static_dynamic
=yes
25049 gcc_cv_ld_static_option
="-aarchive_shared"
25050 gcc_cv_ld_dynamic_option
="-adefault"
25053 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25055 gcc_cv_ld_static_dynamic
=yes
25060 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
25062 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25065 cat >>confdefs.h
<<_ACEOF
25066 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25070 cat >>confdefs.h
<<_ACEOF
25071 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25076 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25079 $as_echo_n "checking linker --version-script option... " >&6; }
25080 gcc_cv_ld_version_script
=no
25081 ld_version_script_option
=''
25082 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25083 gcc_cv_ld_version_script
=yes
25084 ld_version_script_option
='--version-script'
25085 elif test x
$gcc_cv_ld != x
; then
25087 # Solaris 2 ld always supports -M. It also supports a subset of
25088 # --version-script since Solaris 11.4, but requires
25089 # -z gnu-version-script-compat to activate.
25091 gcc_cv_ld_version_script
=yes
25092 ld_version_script_option
='-M'
25096 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25098 $as_echo "$gcc_cv_ld_version_script" >&6; }
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25102 $as_echo_n "checking linker soname option... " >&6; }
25103 gcc_cv_ld_soname
=no
25104 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25105 gcc_cv_ld_soname
=yes
25106 ld_soname_option
='-soname'
25107 elif test x
$gcc_cv_ld != x
; then
25110 gcc_cv_ld_soname
=yes
25111 ld_soname_option
='-install_name'
25113 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25114 # ld compatiblity since some Solaris 10 update.
25116 gcc_cv_ld_soname
=yes
25117 ld_soname_option
='-h'
25121 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25123 $as_echo "$gcc_cv_ld_soname" >&6; }
25126 if test x
"$demangler_in_ld" = xyes
; then
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25128 $as_echo_n "checking linker --demangle support... " >&6; }
25129 gcc_cv_ld_demangle
=no
25130 if test $in_tree_ld = yes; then
25131 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 \
25132 gcc_cv_ld_demangle
=yes
25134 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
25135 # Check if the GNU linker supports --demangle option
25136 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
25137 gcc_cv_ld_demangle
=yes
25140 if test x
"$gcc_cv_ld_demangle" = xyes
; then
25142 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25146 $as_echo "$gcc_cv_ld_demangle" >&6; }
25149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25150 $as_echo_n "checking linker plugin support... " >&6; }
25151 gcc_cv_lto_plugin
=0
25152 if test -f liblto_plugin.la
; then
25153 save_ld_ver
="$ld_ver"
25154 save_ld_vers_major
="$ld_vers_major"
25155 save_ld_vers_minor
="$ld_vers_minor"
25156 save_ld_is_gold
="$ld_is_gold"
25160 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
25162 # FIXME: ld_is_gold?
25163 ld_vers_major
="$gcc_cv_gld_major_version"
25164 ld_vers_minor
="$gcc_cv_gld_minor_version"
25166 # Determine plugin linker version.
25167 # FIXME: Partial duplicate from above, generalize.
25168 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25169 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25170 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
25172 ld_vers
=`echo $ld_ver | sed -n \
25173 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25175 ld_vers
=`echo $ld_ver | sed -n \
25176 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25178 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
25179 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25183 # Determine plugin support.
25184 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25185 # Require GNU ld or gold 2.21+ for plugin support by default.
25186 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25187 gcc_cv_lto_plugin
=2
25188 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25189 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25190 gcc_cv_lto_plugin
=1
25194 ld_ver
="$save_ld_ver"
25195 ld_vers_major
="$save_ld_vers_major"
25196 ld_vers_minor
="$save_ld_vers_minor"
25197 ld_is_gold
="$save_ld_is_gold"
25200 cat >>confdefs.h
<<_ACEOF
25201 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25205 $as_echo "$gcc_cv_lto_plugin" >&6; }
25207 # Target OS-specific assembler checks.
25209 case "$target_os" in
25211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25212 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25213 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
25214 $as_echo_n "(cached) " >&6
25216 gcc_cv_as_mmacosx_version_min
=no
25217 if test x
$gcc_cv_as != x
; then
25218 $as_echo '.text' > conftest.s
25219 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25221 (eval $ac_try) 2>&5
25223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25224 test $ac_status = 0; }; }
25226 gcc_cv_as_mmacosx_version_min
=yes
25228 echo "configure: failed program was" >&5
25231 rm -f conftest.o conftest.s
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25235 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25236 if test $gcc_cv_as_mmacosx_version_min = yes; then
25238 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25245 # Target CPU-specific assembler checks.
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25250 $as_echo_n "checking assembler for -mabi option... " >&6; }
25251 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
25252 $as_echo_n "(cached) " >&6
25254 gcc_cv_as_aarch64_mabi
=no
25255 if test x
$gcc_cv_as != x
; then
25256 $as_echo '.text' > conftest.s
25257 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25259 (eval $ac_try) 2>&5
25261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25262 test $ac_status = 0; }; }
25264 gcc_cv_as_aarch64_mabi
=yes
25266 echo "configure: failed program was" >&5
25269 rm -f conftest.o conftest.s
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25273 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25276 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
25278 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25281 if test x
$with_abi = xilp32
; then
25282 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
25283 Upgrade the Assembler." "$LINENO" 5
25285 if test x
"$with_multilib_list" = xdefault
; then
25286 TM_MULTILIB_CONFIG
=lp64
25288 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
25289 for aarch64_multilib
in ${aarch64_multilibs}; do
25290 case ${aarch64_multilib} in
25292 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
25293 Upgrade the Assembler." "$LINENO" 5
25301 # Check if we have binutils support for relocations types needed by -fpic
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25303 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25304 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
25305 $as_echo_n "(cached) " >&6
25307 gcc_cv_as_aarch64_picreloc
=no
25308 if test x
$gcc_cv_as != x
; then
25311 ldr x0, [x2, #:gotpage_lo15:globalsym]
25313 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25315 (eval $ac_try) 2>&5
25317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25318 test $ac_status = 0; }; }
25320 gcc_cv_as_aarch64_picreloc
=yes
25322 echo "configure: failed program was" >&5
25325 rm -f conftest.o conftest.s
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25329 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25330 if test $gcc_cv_as_aarch64_picreloc = yes; then
25332 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25336 # Enable Branch Target Identification Mechanism and Return Address
25337 # Signing by default.
25338 # Check whether --enable-standard-branch-protection was given.
25339 if test "${enable_standard_branch_protection+set}" = set; then :
25340 enableval
=$enable_standard_branch_protection;
25343 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25348 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
25349 Valid choices are 'yes' and 'no'." "$LINENO" 5
25355 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25356 # Check whether --enable-fix-cortex-a53-835769 was given.
25357 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25358 enableval
=$enable_fix_cortex_a53_835769;
25361 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25366 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25367 Valid choices are 'yes' and 'no'." "$LINENO" 5
25374 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25375 # Check whether --enable-fix-cortex-a53-843419 was given.
25376 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25377 enableval
=$enable_fix_cortex_a53_843419;
25380 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25385 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25386 Valid choices are 'yes' and 'no'." "$LINENO" 5
25395 # All TARGET_ABI_OSF targets.
25396 alpha
*-*-linux* | alpha
*-*-*bsd
*)
25397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25398 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25399 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
25400 $as_echo_n "(cached) " >&6
25402 gcc_cv_as_alpha_explicit_relocs
=no
25403 if test $in_tree_gas = yes; then
25404 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25405 then gcc_cv_as_alpha_explicit_relocs
=yes
25407 elif test x
$gcc_cv_as != x
; then
25408 $as_echo ' .set nomacro
25410 extbl $3, $2, $3 !lituse_bytoff!1
25411 ldq $2, a($29) !literal!1
25412 ldq $4, b($29) !literal!2
25413 ldq_u $3, 0($2) !lituse_base!1
25414 ldq $27, f($29) !literal!5
25415 jsr $26, ($27), f !lituse_jsr!5
25416 ldah $29, 0($26) !gpdisp!3
25417 lda $0, c($29) !gprel
25418 ldah $1, d($29) !gprelhigh
25419 lda $1, d($1) !gprellow
25420 lda $29, 0($29) !gpdisp!3' > conftest.s
25421 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25423 (eval $ac_try) 2>&5
25425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25426 test $ac_status = 0; }; }
25428 gcc_cv_as_alpha_explicit_relocs
=yes
25430 echo "configure: failed program was" >&5
25433 rm -f conftest.o conftest.s
25436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25437 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25438 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25440 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25445 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25446 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
25447 $as_echo_n "(cached) " >&6
25449 gcc_cv_as_alpha_jsrdirect_relocs
=no
25450 if test $in_tree_gas = yes; then
25451 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25452 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
25454 elif test x
$gcc_cv_as != x
; then
25455 $as_echo ' .set nomacro
25457 ldq $27, a($29) !literal!1
25458 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25459 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25461 (eval $ac_try) 2>&5
25463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25464 test $ac_status = 0; }; }
25466 gcc_cv_as_alpha_jsrdirect_relocs
=yes
25468 echo "configure: failed program was" >&5
25471 rm -f conftest.o conftest.s
25474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25475 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25476 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25478 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25486 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25487 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
25488 $as_echo_n "(cached) " >&6
25490 gcc_cv_as_avr_mlink_relax
=no
25491 if test x
$gcc_cv_as != x
; then
25492 $as_echo '.text' > conftest.s
25493 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25495 (eval $ac_try) 2>&5
25497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25498 test $ac_status = 0; }; }
25500 gcc_cv_as_avr_mlink_relax
=yes
25502 echo "configure: failed program was" >&5
25505 rm -f conftest.o conftest.s
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25509 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25510 if test $gcc_cv_as_avr_mlink_relax = yes; then
25512 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25518 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25519 if ${gcc_cv_as_avr_mrmw+:} false
; then :
25520 $as_echo_n "(cached) " >&6
25522 gcc_cv_as_avr_mrmw
=no
25523 if test x
$gcc_cv_as != x
; then
25524 $as_echo '.text' > conftest.s
25525 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25527 (eval $ac_try) 2>&5
25529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25530 test $ac_status = 0; }; }
25532 gcc_cv_as_avr_mrmw
=yes
25534 echo "configure: failed program was" >&5
25537 rm -f conftest.o conftest.s
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25541 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25542 if test $gcc_cv_as_avr_mrmw = yes; then
25544 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25550 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25551 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
25552 $as_echo_n "(cached) " >&6
25554 gcc_cv_as_avr_mgccisr
=no
25555 if test x
$gcc_cv_as != x
; then
25561 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25563 (eval $ac_try) 2>&5
25565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25566 test $ac_status = 0; }; }
25568 gcc_cv_as_avr_mgccisr
=yes
25570 echo "configure: failed program was" >&5
25573 rm -f conftest.o conftest.s
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25577 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25578 if test $gcc_cv_as_avr_mgccisr = yes; then
25580 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25585 # Check how default linker description file implements .rodata for
25586 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25587 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25589 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25590 cat > conftest.s
<<EOF
25591 .section .rodata,"a",@progbits
25593 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25598 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25600 (eval $ac_try) 2>&5
25602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25603 test $ac_status = 0; }; }
25604 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25606 (eval $ac_try) 2>&5
25608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25609 test $ac_status = 0; }; }
25610 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
25611 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25612 (eval $ac_try) 2>&5
25614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25615 test $ac_status = 0; }; }
25616 if test -s conftest.nm
25618 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25620 $as_echo "yes" >&6; }
25622 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25626 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25627 echo "$as_me: nm output was" >&5
25628 cat conftest.nm
>&5
25629 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5
25631 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25635 $as_echo "test failed" >&6; }
25636 echo "$as_me: failed program was" >&5
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25639 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25641 rm -f conftest.s conftest.o conftest.elf conftest.nm
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25646 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25647 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
25648 $as_echo_n "(cached) " >&6
25650 gcc_cv_as_cris_no_mul_bug
=no
25651 if test $in_tree_gas = yes; then
25652 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25653 then gcc_cv_as_cris_no_mul_bug
=yes
25655 elif test x
$gcc_cv_as != x
; then
25656 $as_echo '.text' > conftest.s
25657 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25659 (eval $ac_try) 2>&5
25661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25662 test $ac_status = 0; }; }
25664 gcc_cv_as_cris_no_mul_bug
=yes
25666 echo "configure: failed program was" >&5
25669 rm -f conftest.o conftest.s
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25673 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25674 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25676 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25684 $as_echo_n "checking assembler for -relax option... " >&6; }
25685 if ${gcc_cv_as_sparc_relax+:} false
; then :
25686 $as_echo_n "(cached) " >&6
25688 gcc_cv_as_sparc_relax
=no
25689 if test x
$gcc_cv_as != x
; then
25690 $as_echo '.text' > conftest.s
25691 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -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_sparc_relax
=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_sparc_relax" >&5
25707 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25708 if test $gcc_cv_as_sparc_relax = yes; then
25710 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25716 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25717 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
25718 $as_echo_n "(cached) " >&6
25720 gcc_cv_as_sparc_gotdata_op
=no
25721 if test x
$gcc_cv_as != x
; then
25727 sethi %gdop_hix22(foo), %g1
25728 xor %g1, %gdop_lox10(foo), %g1
25729 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25730 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25732 (eval $ac_try) 2>&5
25734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25735 test $ac_status = 0; }; }
25737 if test x
$gcc_cv_ld != x \
25738 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25739 if test x
$gcc_cv_objdump != x
; then
25740 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
25741 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
25742 gcc_cv_as_sparc_gotdata_op
=no
25744 gcc_cv_as_sparc_gotdata_op
=yes
25750 echo "configure: failed program was" >&5
25753 rm -f conftest.o conftest.s
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25757 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25758 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25760 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25766 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25767 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
25768 $as_echo_n "(cached) " >&6
25770 gcc_cv_as_sparc_ua_pcrel
=no
25771 if test x
$gcc_cv_as != x
; then
25778 .uaword %r_disp32(foo)' > conftest.s
25779 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25781 (eval $ac_try) 2>&5
25783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25784 test $ac_status = 0; }; }
25786 if test x
$gcc_cv_ld != x \
25787 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25788 gcc_cv_as_sparc_ua_pcrel
=yes
25792 echo "configure: failed program was" >&5
25795 rm -f conftest.o conftest.s
25798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25799 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25800 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25802 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25806 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25807 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
25808 $as_echo_n "(cached) " >&6
25810 gcc_cv_as_sparc_ua_pcrel_hidden
=no
25811 if test x
$gcc_cv_as != x
; then
25815 .uaword %r_disp32(foo)
25816 .byte 0x32, 0x33, 0x34
25820 .skip 4' > conftest.s
25821 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25823 (eval $ac_try) 2>&5
25825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25826 test $ac_status = 0; }; }
25828 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25829 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
25830 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
25831 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
25832 if $gcc_cv_objdump -R conftest
2> /dev
/null \
25833 |
grep 'DISP32' > /dev
/null
2>&1; then
25836 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
25841 echo "configure: failed program was" >&5
25844 rm -f conftest.o conftest.s
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25848 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25849 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25851 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25857 # unaligned pcrel relocs
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25860 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25861 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
25862 $as_echo_n "(cached) " >&6
25864 gcc_cv_as_sparc_offsetable_lo10
=no
25865 if test x
$gcc_cv_as != x
; then
25867 or %g1, %lo(ab) + 12, %g1
25868 or %g1, %lo(ab + 12), %g1' > conftest.s
25869 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25871 (eval $ac_try) 2>&5
25873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25874 test $ac_status = 0; }; }
25876 if test x
$gcc_cv_objdump != x \
25877 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
25878 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
25879 gcc_cv_as_sparc_offsetable_lo10
=yes
25882 echo "configure: failed program was" >&5
25885 rm -f conftest.o conftest.s
25888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25889 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25890 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25892 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25898 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25899 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
25900 $as_echo_n "(cached) " >&6
25902 gcc_cv_as_sparc_fmaf
=no
25903 if test x
$gcc_cv_as != x
; then
25905 .register %g2, #scratch
25906 .register %g3, #scratch
25908 fmaddd %f0, %f2, %f4, %f6
25909 addxccc %g1, %g2, %g3
25910 fsrl32 %f2, %f4, %f8
25911 fnaddd %f10, %f12, %f14' > conftest.s
25912 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25914 (eval $ac_try) 2>&5
25916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25917 test $ac_status = 0; }; }
25919 gcc_cv_as_sparc_fmaf
=yes
25921 echo "configure: failed program was" >&5
25924 rm -f conftest.o conftest.s
25927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25928 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25929 if test $gcc_cv_as_sparc_fmaf = yes; then
25931 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25937 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25938 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
25939 $as_echo_n "(cached) " >&6
25941 gcc_cv_as_sparc_sparc4
=no
25942 if test x
$gcc_cv_as != x
; then
25944 .register %g2, #scratch
25945 .register %g3, #scratch
25948 1: cwbneg %g2, %g3, 1f
25951 aes_kexpand0 %f4, %f6, %f8
25952 des_round %f38, %f40, %f42, %f44
25953 camellia_f %f54, %f56, %f58, %f60
25954 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25955 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25957 (eval $ac_try) 2>&5
25959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25960 test $ac_status = 0; }; }
25962 gcc_cv_as_sparc_sparc4
=yes
25964 echo "configure: failed program was" >&5
25967 rm -f conftest.o conftest.s
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25971 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25972 if test $gcc_cv_as_sparc_sparc4 = yes; then
25974 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25980 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25981 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
25982 $as_echo_n "(cached) " >&6
25984 gcc_cv_as_sparc_sparc5
=no
25985 if test x
$gcc_cv_as != x
; then
25987 .register %g2, #scratch
25988 .register %g3, #scratch
25990 subxc %g1, %g2, %g3
25991 fpadd8 %f0, %f2, %f4' > conftest.s
25992 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25994 (eval $ac_try) 2>&5
25996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25997 test $ac_status = 0; }; }
25999 gcc_cv_as_sparc_sparc5
=yes
26001 echo "configure: failed program was" >&5
26004 rm -f conftest.o conftest.s
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26008 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26009 if test $gcc_cv_as_sparc_sparc5 = yes; then
26011 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26017 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26018 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
26019 $as_echo_n "(cached) " >&6
26021 gcc_cv_as_sparc_sparc6
=no
26022 if test x
$gcc_cv_as != x
; then
26024 .register %g2, #scratch
26025 .register %g3, #scratch
26028 fpsll64x %f0, %f2, %f4' > conftest.s
26029 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26031 (eval $ac_try) 2>&5
26033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26034 test $ac_status = 0; }; }
26036 gcc_cv_as_sparc_sparc6
=yes
26038 echo "configure: failed program was" >&5
26041 rm -f conftest.o conftest.s
26044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26045 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26046 if test $gcc_cv_as_sparc_sparc6 = yes; then
26048 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26054 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26055 if ${gcc_cv_as_sparc_leon+:} false
; then :
26056 $as_echo_n "(cached) " >&6
26058 gcc_cv_as_sparc_leon
=no
26059 if test x
$gcc_cv_as != x
; then
26061 .register %g2, #scratch
26062 .register %g3, #scratch
26066 casa [%g2] 0xb, %g3, %g1' > conftest.s
26067 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26069 (eval $ac_try) 2>&5
26071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26072 test $ac_status = 0; }; }
26074 gcc_cv_as_sparc_leon
=yes
26076 echo "configure: failed program was" >&5
26079 rm -f conftest.o conftest.s
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26083 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26084 if test $gcc_cv_as_sparc_leon = yes; then
26086 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26092 i
[34567]86-*-* | x86_64-
*-*)
26095 # Full C++ conformance when using a shared libstdc++-v3 requires some
26096 # support from the Cygwin DLL, which in more recent versions exports
26097 # wrappers to aid in interposing and redirecting operators new, delete,
26098 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26099 # are configuring for a version of Cygwin that exports the wrappers.
26100 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
26101 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26102 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
26103 gcc_ac_cygwin_dll_wrappers
=yes
26105 gcc_ac_cygwin_dll_wrappers
=no
26109 # Can't check presence of libc functions during cross-compile, so
26110 # we just have to assume we're building for an up-to-date target.
26111 gcc_ac_cygwin_dll_wrappers
=yes
26114 cat >>confdefs.h
<<_ACEOF
26115 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26120 cygwin
* | pe | mingw32
*)
26121 # Recent binutils allows the three-operand form of ".comm" on PE. This
26122 # definition is used unconditionally to initialise the default state of
26123 # the target option variable that governs usage of the feature.
26124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26125 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26126 if ${gcc_cv_as_comm_has_align+:} false
; then :
26127 $as_echo_n "(cached) " >&6
26129 gcc_cv_as_comm_has_align
=no
26130 if test $in_tree_gas = yes; then
26131 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26132 then gcc_cv_as_comm_has_align
=yes
26134 elif test x
$gcc_cv_as != x
; then
26135 $as_echo '.comm foo,1,32' > conftest.s
26136 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26138 (eval $ac_try) 2>&5
26140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26141 test $ac_status = 0; }; }
26143 gcc_cv_as_comm_has_align
=yes
26145 echo "configure: failed program was" >&5
26148 rm -f conftest.o conftest.s
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26152 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26156 cat >>confdefs.h
<<_ACEOF
26157 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26160 # Used for DWARF 2 in PE
26161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26162 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26163 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
26164 $as_echo_n "(cached) " >&6
26166 gcc_cv_as_ix86_pe_secrel32
=no
26167 if test $in_tree_gas = yes; then
26168 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26169 then gcc_cv_as_ix86_pe_secrel32
=yes
26171 elif test x
$gcc_cv_as != x
; then
26175 .secrel32 foo' > conftest.s
26176 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26178 (eval $ac_try) 2>&5
26180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26181 test $ac_status = 0; }; }
26183 if test x
$gcc_cv_ld != x \
26184 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
26185 gcc_cv_as_ix86_pe_secrel32
=yes
26189 echo "configure: failed program was" >&5
26192 rm -f conftest.o conftest.s
26195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26196 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26197 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26199 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26203 # Test if the assembler supports the extended form of the .section
26204 # directive that specifies section alignment. LTO support uses this,
26205 # but normally only after installation, so we warn but don't fail the
26206 # configure if LTO is enabled but the assembler does not support it.
26207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26208 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26209 if ${gcc_cv_as_section_has_align+:} false
; then :
26210 $as_echo_n "(cached) " >&6
26212 gcc_cv_as_section_has_align
=no
26213 if test $in_tree_gas = yes; then
26214 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26215 then gcc_cv_as_section_has_align
=yes
26217 elif test x
$gcc_cv_as != x
; then
26218 $as_echo '.section lto_test,"dr0"' > conftest.s
26219 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26221 (eval $ac_try) 2>&5
26223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26224 test $ac_status = 0; }; }
26226 gcc_cv_as_section_has_align
=yes
26228 echo "configure: failed program was" >&5
26231 rm -f conftest.o conftest.s
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26235 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26238 if test x
$gcc_cv_as_section_has_align != xyes
; then
26239 case ",$enable_languages," in
26241 { $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
26242 $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;}
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26250 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26251 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
26252 $as_echo_n "(cached) " >&6
26254 gcc_cv_as_ix86_xbrace_comment
=no
26255 if test x
$gcc_cv_as != x
; then
26256 $as_echo '.text' > conftest.s
26257 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26259 (eval $ac_try) 2>&5
26261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26262 test $ac_status = 0; }; }
26264 gcc_cv_as_ix86_xbrace_comment
=yes
26266 echo "configure: failed program was" >&5
26269 rm -f conftest.o conftest.s
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26273 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26274 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26276 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26282 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26283 if ${gcc_cv_as_ix86_filds+:} false
; then :
26284 $as_echo_n "(cached) " >&6
26286 gcc_cv_as_ix86_filds
=no
26287 if test x
$gcc_cv_as != x
; then
26288 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26289 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26291 (eval $ac_try) 2>&5
26293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26294 test $ac_status = 0; }; }
26296 gcc_cv_as_ix86_filds
=yes
26298 echo "configure: failed program was" >&5
26301 rm -f conftest.o conftest.s
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26305 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26306 if test $gcc_cv_as_ix86_filds = yes; then
26308 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26314 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26315 if ${gcc_cv_as_ix86_fildq+:} false
; then :
26316 $as_echo_n "(cached) " >&6
26318 gcc_cv_as_ix86_fildq
=no
26319 if test x
$gcc_cv_as != x
; then
26320 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26321 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26323 (eval $ac_try) 2>&5
26325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26326 test $ac_status = 0; }; }
26328 gcc_cv_as_ix86_fildq
=yes
26330 echo "configure: failed program was" >&5
26333 rm -f conftest.o conftest.s
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26337 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26338 if test $gcc_cv_as_ix86_fildq = yes; then
26340 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26346 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26347 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
26348 $as_echo_n "(cached) " >&6
26350 gcc_cv_as_ix86_cmov_sun_syntax
=no
26351 if test x
$gcc_cv_as != x
; then
26352 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26353 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26355 (eval $ac_try) 2>&5
26357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26358 test $ac_status = 0; }; }
26360 gcc_cv_as_ix86_cmov_sun_syntax
=yes
26362 echo "configure: failed program was" >&5
26365 rm -f conftest.o conftest.s
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26369 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26370 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26372 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26378 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26379 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
26380 $as_echo_n "(cached) " >&6
26382 gcc_cv_as_ix86_ffreep
=no
26383 if test x
$gcc_cv_as != x
; then
26384 $as_echo 'ffreep %st(1)' > conftest.s
26385 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26387 (eval $ac_try) 2>&5
26389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26390 test $ac_status = 0; }; }
26392 gcc_cv_as_ix86_ffreep
=yes
26394 echo "configure: failed program was" >&5
26397 rm -f conftest.o conftest.s
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26401 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26402 if test $gcc_cv_as_ix86_ffreep = yes; then
26404 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26410 $as_echo_n "checking assembler for .quad directive... " >&6; }
26411 if ${gcc_cv_as_ix86_quad+:} false
; then :
26412 $as_echo_n "(cached) " >&6
26414 gcc_cv_as_ix86_quad
=no
26415 if test x
$gcc_cv_as != x
; then
26416 $as_echo '.quad 0' > conftest.s
26417 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26419 (eval $ac_try) 2>&5
26421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26422 test $ac_status = 0; }; }
26424 gcc_cv_as_ix86_quad
=yes
26426 echo "configure: failed program was" >&5
26429 rm -f conftest.o conftest.s
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26433 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26434 if test $gcc_cv_as_ix86_quad = yes; then
26436 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26442 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26443 if ${gcc_cv_as_ix86_sahf+:} false
; then :
26444 $as_echo_n "(cached) " >&6
26446 gcc_cv_as_ix86_sahf
=no
26447 if test x
$gcc_cv_as != x
; then
26450 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26452 (eval $ac_try) 2>&5
26454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26455 test $ac_status = 0; }; }
26457 gcc_cv_as_ix86_sahf
=yes
26459 echo "configure: failed program was" >&5
26462 rm -f conftest.o conftest.s
26465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26466 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26467 if test $gcc_cv_as_ix86_sahf = yes; then
26469 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26475 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26476 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
26477 $as_echo_n "(cached) " >&6
26479 gcc_cv_as_ix86_interunit_movq
=no
26480 if test x
$gcc_cv_as != x
; then
26483 movq %rax, %xmm0' > conftest.s
26484 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26486 (eval $ac_try) 2>&5
26488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26489 test $ac_status = 0; }; }
26491 gcc_cv_as_ix86_interunit_movq
=yes
26493 echo "configure: failed program was" >&5
26496 rm -f conftest.o conftest.s
26499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26500 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26504 cat >>confdefs.h
<<_ACEOF
26505 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26510 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26511 if ${gcc_cv_as_ix86_hle+:} false
; then :
26512 $as_echo_n "(cached) " >&6
26514 gcc_cv_as_ix86_hle
=no
26515 if test x
$gcc_cv_as != x
; then
26516 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26517 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26519 (eval $ac_try) 2>&5
26521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26522 test $ac_status = 0; }; }
26524 gcc_cv_as_ix86_hle
=yes
26526 echo "configure: failed program was" >&5
26529 rm -f conftest.o conftest.s
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26533 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26534 if test $gcc_cv_as_ix86_hle = yes; then
26536 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26542 $as_echo_n "checking assembler for swap suffix... " >&6; }
26543 if ${gcc_cv_as_ix86_swap+:} false
; then :
26544 $as_echo_n "(cached) " >&6
26546 gcc_cv_as_ix86_swap
=no
26547 if test x
$gcc_cv_as != x
; then
26548 $as_echo 'movl.s %esp, %ebp' > conftest.s
26549 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26551 (eval $ac_try) 2>&5
26553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26554 test $ac_status = 0; }; }
26556 gcc_cv_as_ix86_swap
=yes
26558 echo "configure: failed program was" >&5
26561 rm -f conftest.o conftest.s
26564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26565 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26566 if test $gcc_cv_as_ix86_swap = yes; then
26568 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26574 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26575 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
26576 $as_echo_n "(cached) " >&6
26578 gcc_cv_as_ix86_diff_sect_delta
=no
26579 if test x
$gcc_cv_as != x
; then
26580 $as_echo '.section .rodata
26586 .L2: nop' > conftest.s
26587 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26589 (eval $ac_try) 2>&5
26591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26592 test $ac_status = 0; }; }
26594 gcc_cv_as_ix86_diff_sect_delta
=yes
26596 echo "configure: failed program was" >&5
26599 rm -f conftest.o conftest.s
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26603 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26604 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26606 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26612 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26613 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
26614 $as_echo_n "(cached) " >&6
26616 gcc_cv_as_ix86_rep_lock_prefix
=no
26617 if test x
$gcc_cv_as != x
; then
26618 $as_echo 'rep movsl
26623 lock addl %edi, (%eax,%esi)
26624 lock orl $0, (%esp)' > conftest.s
26625 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26627 (eval $ac_try) 2>&5
26629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26630 test $ac_status = 0; }; }
26632 gcc_cv_as_ix86_rep_lock_prefix
=yes
26634 echo "configure: failed program was" >&5
26637 rm -f conftest.o conftest.s
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26641 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26642 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26644 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26650 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26651 if ${gcc_cv_as_ix86_ud2+:} false
; then :
26652 $as_echo_n "(cached) " >&6
26654 gcc_cv_as_ix86_ud2
=no
26655 if test x
$gcc_cv_as != x
; then
26656 $as_echo 'ud2' > conftest.s
26657 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26659 (eval $ac_try) 2>&5
26661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26662 test $ac_status = 0; }; }
26664 gcc_cv_as_ix86_ud2
=yes
26666 echo "configure: failed program was" >&5
26669 rm -f conftest.o conftest.s
26672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26673 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26674 if test $gcc_cv_as_ix86_ud2 = yes; then
26676 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26681 # Enforce 32-bit output with gas and gld.
26682 if test x
$gas = xyes
; then
26683 as_ix86_gas_32_opt
="--32"
26685 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26686 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
26687 ld_ix86_gld_32_opt
="-melf_i386_sol2"
26689 ld_ix86_gld_32_opt
="-melf_i386"
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26694 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26695 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
26696 $as_echo_n "(cached) " >&6
26698 gcc_cv_as_ix86_tlsgdplt
=no
26699 if test x
$gcc_cv_as != x
; then
26700 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26701 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26703 (eval $ac_try) 2>&5
26705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26706 test $ac_status = 0; }; }
26708 if test x
$gcc_cv_ld != x \
26709 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26710 gcc_cv_as_ix86_tlsgdplt
=yes
26714 echo "configure: failed program was" >&5
26717 rm -f conftest.o conftest.s
26720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26721 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26722 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26724 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26730 .section .tdata,"aw'$tls_section_flag'",@progbits
26732 .section .text,"ax",@progbits
26733 call tls_ld@tlsldmplt'
26735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26736 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26737 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
26738 $as_echo_n "(cached) " >&6
26740 gcc_cv_as_ix86_tlsldmplt
=no
26741 if test x
$gcc_cv_as != x
; then
26742 $as_echo "$conftest_s" > conftest.s
26743 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26745 (eval $ac_try) 2>&5
26747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26748 test $ac_status = 0; }; }
26750 if test x
$gcc_cv_ld != x \
26751 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26752 gcc_cv_as_ix86_tlsldmplt
=yes
26756 echo "configure: failed program was" >&5
26759 rm -f conftest.o conftest.s
26762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26763 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26767 cat >>confdefs.h
<<_ACEOF
26768 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26773 .section .text,"ax",@progbits
26775 .type _start, @function
26777 leal value@tlsldm(%ebx), %eax
26778 call ___tls_get_addr@plt
26780 .section .tdata,"aw'$tls_section_flag'",@progbits
26781 .type value, @object
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26784 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26785 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
26786 $as_echo_n "(cached) " >&6
26788 gcc_cv_as_ix86_tlsldm
=no
26789 if test x
$gcc_cv_as != x
; then
26790 $as_echo "$conftest_s" > conftest.s
26791 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26793 (eval $ac_try) 2>&5
26795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26796 test $ac_status = 0; }; }
26798 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26799 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
26800 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
26801 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
26802 gcc_cv_as_ix86_tlsldm
=yes
26807 echo "configure: failed program was" >&5
26810 rm -f conftest.o conftest.s
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26814 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26818 cat >>confdefs.h
<<_ACEOF
26819 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26833 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26834 if ${gcc_cv_as_ix86_got32x+:} false
; then :
26835 $as_echo_n "(cached) " >&6
26837 gcc_cv_as_ix86_got32x
=no
26838 if test x
$gcc_cv_as != x
; then
26839 $as_echo "$conftest_s" > conftest.s
26840 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26842 (eval $ac_try) 2>&5
26844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26845 test $ac_status = 0; }; }
26847 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26848 && test x
$gcc_cv_readelf != x \
26849 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
26850 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
26851 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26852 if $gcc_cv_objdump -dw conftest
2>&1 \
26853 |
grep 0xffffff > /dev
/null
2>&1; then
26854 gcc_cv_as_ix86_got32x
=no
26856 gcc_cv_as_ix86_got32x
=yes
26861 echo "configure: failed program was" >&5
26864 rm -f conftest.o conftest.s
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26868 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26872 cat >>confdefs.h
<<_ACEOF
26873 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26878 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26879 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
26880 $as_echo_n "(cached) " >&6
26882 gcc_cv_as_ix86_gotoff_in_data
=no
26883 if test $in_tree_gas = yes; then
26884 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26885 then gcc_cv_as_ix86_gotoff_in_data
=yes
26887 elif test x
$gcc_cv_as != x
; then
26892 .long .L0@GOTOFF' > conftest.s
26893 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26895 (eval $ac_try) 2>&5
26897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26898 test $ac_status = 0; }; }
26900 gcc_cv_as_ix86_gotoff_in_data
=yes
26902 echo "configure: failed program was" >&5
26905 rm -f conftest.o conftest.s
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26909 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26913 cat >>confdefs.h
<<_ACEOF
26914 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26919 .section .text,"ax",@progbits
26921 .type _start, @function
26923 leal ld@tlsldm(%ecx), %eax
26924 call *___tls_get_addr@GOT(%ecx)
26925 leal gd@tlsgd(%ecx), %eax
26926 call *___tls_get_addr@GOT(%ecx)
26928 .section .tdata,"aw'$tls_section_flag'",@progbits
26936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26937 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26938 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
26939 $as_echo_n "(cached) " >&6
26941 gcc_cv_as_ix86_tls_get_addr_via_got
=no
26942 if test x
$gcc_cv_as != x
; then
26943 $as_echo "$conftest_s" > conftest.s
26944 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26946 (eval $ac_try) 2>&5
26948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26949 test $ac_status = 0; }; }
26951 if test x
$gcc_cv_ld != x \
26952 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26953 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
26957 echo "configure: failed program was" >&5
26960 rm -f conftest.o conftest.s
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26964 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26968 cat >>confdefs.h
<<_ACEOF
26969 #define HAVE_AS_IX86_TLS_GET_ADDR_GOT `if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26976 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26977 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
26978 $as_echo_n "(cached) " >&6
26980 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
26981 if test $in_tree_gas = yes; then
26982 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26983 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26985 elif test x
$gcc_cv_as != x
; then
26987 addl r15 = @ltoffx(x#), gp
26989 ld8.mov r16 = [r15], x#
26991 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26993 (eval $ac_try) 2>&5
26995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26996 test $ac_status = 0; }; }
26998 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27000 echo "configure: failed program was" >&5
27003 rm -f conftest.o conftest.s
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27007 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27008 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27010 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27022 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27023 if ${gcc_cv_as_machine_directive+:} false
; then :
27024 $as_echo_n "(cached) " >&6
27026 gcc_cv_as_machine_directive
=no
27027 if test x
$gcc_cv_as != x
; then
27028 $as_echo ' .machine ppc7400' > conftest.s
27029 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27031 (eval $ac_try) 2>&5
27033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27034 test $ac_status = 0; }; }
27036 gcc_cv_as_machine_directive
=yes
27038 echo "configure: failed program was" >&5
27041 rm -f conftest.o conftest.s
27044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27045 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27048 if test x
$gcc_cv_as_machine_directive != xyes
; then
27049 echo "*** This target requires an assembler supporting \".machine\"" >&2
27050 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
27051 test x
$build = x
$target && exit 1
27057 *-*-aix*) conftest_s
=' .machine "pwr5"
27060 *-*-darwin*) conftest_s
=' .text
27062 *) conftest_s
=' .machine power4
27067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27068 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27069 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
27070 $as_echo_n "(cached) " >&6
27072 gcc_cv_as_powerpc_mfcrf
=no
27073 if test $in_tree_gas = yes; then
27074 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27075 then gcc_cv_as_powerpc_mfcrf
=yes
27077 elif test x
$gcc_cv_as != x
; then
27078 $as_echo "$conftest_s" > conftest.s
27079 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27081 (eval $ac_try) 2>&5
27083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27084 test $ac_status = 0; }; }
27086 gcc_cv_as_powerpc_mfcrf
=yes
27088 echo "configure: failed program was" >&5
27091 rm -f conftest.o conftest.s
27094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27095 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27096 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27098 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27104 *-*-aix*) conftest_s
=' .csect .text[PR]
27106 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27110 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27111 *) conftest_s
=' .text
27113 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27117 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27118 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
27119 $as_echo_n "(cached) " >&6
27121 gcc_cv_as_powerpc_rel16
=no
27122 if test $in_tree_gas = yes; then
27123 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27124 then gcc_cv_as_powerpc_rel16
=yes
27126 elif test x
$gcc_cv_as != x
; then
27127 $as_echo "$conftest_s" > conftest.s
27128 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27130 (eval $ac_try) 2>&5
27132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27133 test $ac_status = 0; }; }
27135 gcc_cv_as_powerpc_rel16
=yes
27137 echo "configure: failed program was" >&5
27140 rm -f conftest.o conftest.s
27143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27144 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27145 if test $gcc_cv_as_powerpc_rel16 = yes; then
27147 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27153 *-*-aix*) conftest_s
=' .machine "pwr7"
27156 *) conftest_s
=' .machine power7
27161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27162 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27163 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
27164 $as_echo_n "(cached) " >&6
27166 gcc_cv_as_powerpc_vsx
=no
27167 if test $in_tree_gas = yes; then
27168 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27169 then gcc_cv_as_powerpc_vsx
=yes
27171 elif test x
$gcc_cv_as != x
; then
27172 $as_echo "$conftest_s" > conftest.s
27173 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27175 (eval $ac_try) 2>&5
27177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27178 test $ac_status = 0; }; }
27180 gcc_cv_as_powerpc_vsx
=yes
27182 echo "configure: failed program was" >&5
27185 rm -f conftest.o conftest.s
27188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27189 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27190 if test $gcc_cv_as_powerpc_vsx = yes; then
27192 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27198 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27199 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
27200 $as_echo_n "(cached) " >&6
27202 gcc_cv_as_powerpc_gnu_attribute
=no
27203 if test $in_tree_gas = yes; then
27204 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27205 then gcc_cv_as_powerpc_gnu_attribute
=yes
27207 elif test x
$gcc_cv_as != x
; then
27208 $as_echo '.gnu_attribute 4,1' > conftest.s
27209 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27211 (eval $ac_try) 2>&5
27213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27214 test $ac_status = 0; }; }
27216 gcc_cv_as_powerpc_gnu_attribute
=yes
27218 echo "configure: failed program was" >&5
27221 rm -f conftest.o conftest.s
27224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27225 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27226 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27228 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
27234 $as_echo_n "checking assembler for tls marker support... " >&6; }
27235 if ${gcc_cv_as_powerpc_tls_markers+:} false
; then :
27236 $as_echo_n "(cached) " >&6
27238 gcc_cv_as_powerpc_tls_markers
=no
27239 if test $in_tree_gas = yes; then
27240 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
27241 then gcc_cv_as_powerpc_tls_markers
=yes
27243 elif test x
$gcc_cv_as != x
; then
27244 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
27245 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27247 (eval $ac_try) 2>&5
27249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27250 test $ac_status = 0; }; }
27252 gcc_cv_as_powerpc_tls_markers
=yes
27254 echo "configure: failed program was" >&5
27257 rm -f conftest.o conftest.s
27260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
27261 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
27262 if test $gcc_cv_as_powerpc_tls_markers = yes; then
27264 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27270 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27271 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
27272 $as_echo_n "(cached) " >&6
27274 gcc_cv_as_powerpc_entry_markers
=no
27275 if test $in_tree_gas = yes; then
27276 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27277 then gcc_cv_as_powerpc_entry_markers
=yes
27279 elif test x
$gcc_cv_as != x
; then
27280 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27281 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27283 (eval $ac_try) 2>&5
27285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27286 test $ac_status = 0; }; }
27288 gcc_cv_as_powerpc_entry_markers
=yes
27290 echo "configure: failed program was" >&5
27293 rm -f conftest.o conftest.s
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27297 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27298 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27300 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27306 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27307 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
27308 $as_echo_n "(cached) " >&6
27310 gcc_cv_as_powerpc_pltseq_markers
=no
27311 if test $in_tree_gas = yes; then
27312 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27313 then gcc_cv_as_powerpc_pltseq_markers
=yes
27315 elif test x
$gcc_cv_as != x
; then
27316 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27317 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27319 (eval $ac_try) 2>&5
27321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27322 test $ac_status = 0; }; }
27324 gcc_cv_as_powerpc_pltseq_markers
=yes
27326 echo "configure: failed program was" >&5
27329 rm -f conftest.o conftest.s
27332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27333 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27334 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27336 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27344 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27345 if ${gcc_cv_as_aix_ref+:} false
; then :
27346 $as_echo_n "(cached) " >&6
27348 gcc_cv_as_aix_ref
=no
27349 if test $in_tree_gas = yes; then
27350 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27351 then gcc_cv_as_aix_ref
=yes
27353 elif test x
$gcc_cv_as != x
; then
27354 $as_echo ' .csect stuff[rw]
27360 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27362 (eval $ac_try) 2>&5
27364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27365 test $ac_status = 0; }; }
27367 gcc_cv_as_aix_ref
=yes
27369 echo "configure: failed program was" >&5
27372 rm -f conftest.o conftest.s
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27376 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27377 if test $gcc_cv_as_aix_ref = yes; then
27379 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27385 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27386 if ${gcc_cv_as_aix_dwloc+:} false
; then :
27387 $as_echo_n "(cached) " >&6
27389 gcc_cv_as_aix_dwloc
=no
27390 if test $in_tree_gas = yes; then
27391 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27392 then gcc_cv_as_aix_dwloc
=yes
27394 elif test x
$gcc_cv_as != x
; then
27395 $as_echo ' .dwsect 0xA0000
27399 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27401 (eval $ac_try) 2>&5
27403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27404 test $ac_status = 0; }; }
27406 gcc_cv_as_aix_dwloc
=yes
27408 echo "configure: failed program was" >&5
27411 rm -f conftest.o conftest.s
27414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27415 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27416 if test $gcc_cv_as_aix_dwloc = yes; then
27418 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27428 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27429 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
27430 $as_echo_n "(cached) " >&6
27432 gcc_cv_as_mips_explicit_relocs
=no
27433 if test $in_tree_gas = yes; then
27434 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27435 then gcc_cv_as_mips_explicit_relocs
=yes
27437 elif test x
$gcc_cv_as != x
; then
27438 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27439 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27441 (eval $ac_try) 2>&5
27443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27444 test $ac_status = 0; }; }
27446 gcc_cv_as_mips_explicit_relocs
=yes
27448 echo "configure: failed program was" >&5
27451 rm -f conftest.o conftest.s
27454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27455 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27456 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27457 if test x
$target_cpu_default = x
27458 then target_cpu_default
=MASK_EXPLICIT_RELOCS
27459 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27465 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27466 if ${gcc_cv_as_mips_no_shared+:} false
; then :
27467 $as_echo_n "(cached) " >&6
27469 gcc_cv_as_mips_no_shared
=no
27470 if test $in_tree_gas = yes; then
27471 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27472 then gcc_cv_as_mips_no_shared
=yes
27474 elif test x
$gcc_cv_as != x
; then
27475 $as_echo 'nop' > conftest.s
27476 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27478 (eval $ac_try) 2>&5
27480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27481 test $ac_status = 0; }; }
27483 gcc_cv_as_mips_no_shared
=yes
27485 echo "configure: failed program was" >&5
27488 rm -f conftest.o conftest.s
27491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27492 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27493 if test $gcc_cv_as_mips_no_shared = yes; then
27495 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27501 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27502 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
27503 $as_echo_n "(cached) " >&6
27505 gcc_cv_as_mips_gnu_attribute
=no
27506 if test $in_tree_gas = yes; then
27507 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27508 then gcc_cv_as_mips_gnu_attribute
=yes
27510 elif test x
$gcc_cv_as != x
; then
27511 $as_echo '.gnu_attribute 4,1' > conftest.s
27512 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27514 (eval $ac_try) 2>&5
27516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27517 test $ac_status = 0; }; }
27519 gcc_cv_as_mips_gnu_attribute
=yes
27521 echo "configure: failed program was" >&5
27524 rm -f conftest.o conftest.s
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27528 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27529 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27531 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27537 $as_echo_n "checking assembler for .module support... " >&6; }
27538 if ${gcc_cv_as_mips_dot_module+:} false
; then :
27539 $as_echo_n "(cached) " >&6
27541 gcc_cv_as_mips_dot_module
=no
27542 if test x
$gcc_cv_as != x
; then
27543 $as_echo '.module mips2
27544 .module fp=xx' > conftest.s
27545 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27547 (eval $ac_try) 2>&5
27549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27550 test $ac_status = 0; }; }
27552 gcc_cv_as_mips_dot_module
=yes
27554 echo "configure: failed program was" >&5
27557 rm -f conftest.o conftest.s
27560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27561 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27562 if test $gcc_cv_as_mips_dot_module = yes; then
27564 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27568 if test x
$gcc_cv_as_mips_dot_module = xno \
27569 && test x
$with_fp_32 != x
; then
27570 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27574 $as_echo_n "checking assembler for .micromips support... " >&6; }
27575 if ${gcc_cv_as_micromips_support+:} false
; then :
27576 $as_echo_n "(cached) " >&6
27578 gcc_cv_as_micromips_support
=no
27579 if test x
$gcc_cv_as != x
; then
27580 $as_echo '.set micromips' > conftest.s
27581 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27583 (eval $ac_try) 2>&5
27585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27586 test $ac_status = 0; }; }
27588 gcc_cv_as_micromips_support
=yes
27590 echo "configure: failed program was" >&5
27593 rm -f conftest.o conftest.s
27596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27597 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27598 if test $gcc_cv_as_micromips_support = yes; then
27600 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27606 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27607 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
27608 $as_echo_n "(cached) " >&6
27610 gcc_cv_as_mips_dtprelword
=no
27611 if test $in_tree_gas = yes; then
27612 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27613 then gcc_cv_as_mips_dtprelword
=yes
27615 elif test x
$gcc_cv_as != x
; then
27616 $as_echo '.section .tdata,"awT",@progbits
27620 .dtprelword x+0x8000' > conftest.s
27621 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27623 (eval $ac_try) 2>&5
27625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27626 test $ac_status = 0; }; }
27628 gcc_cv_as_mips_dtprelword
=yes
27630 echo "configure: failed program was" >&5
27633 rm -f conftest.o conftest.s
27636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27637 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27638 if test $gcc_cv_as_mips_dtprelword = yes; then
27640 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27646 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27647 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
27648 $as_echo_n "(cached) " >&6
27650 gcc_cv_as_mips_dspr1_mult
=no
27651 if test x
$gcc_cv_as != x
; then
27652 $as_echo ' .set mips32r2
27660 multu $ac3,$4,$5' > conftest.s
27661 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27663 (eval $ac_try) 2>&5
27665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27666 test $ac_status = 0; }; }
27668 gcc_cv_as_mips_dspr1_mult
=yes
27670 echo "configure: failed program was" >&5
27673 rm -f conftest.o conftest.s
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27677 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27678 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27680 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27686 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27687 gcc_cv_as_ld_jalr_reloc
=no
27688 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27689 if test $in_tree_ld = yes ; then
27690 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 \
27691 && test $in_tree_ld_is_elf = yes; then
27692 gcc_cv_as_ld_jalr_reloc
=yes
27694 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27695 echo ' .ent x' > conftest.s
27696 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27697 echo ' lw $25,%call16(y)($28)' >> conftest.s
27698 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27699 echo '1: jalr $25' >> conftest.s
27700 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27701 echo '1: jalr $25' >> conftest.s
27702 echo ' .end x' >> conftest.s
27703 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
27704 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
27705 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
27706 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
27707 gcc_cv_as_ld_jalr_reloc
=yes
27713 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27714 if test x
$target_cpu_default = x
; then
27715 target_cpu_default
=MASK_RELAX_PIC_CALLS
27717 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27721 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27724 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27725 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
27726 $as_echo_n "(cached) " >&6
27728 gcc_cv_ld_mips_personality_relaxation
=no
27729 if test $in_tree_ld = yes ; then
27730 if test "$gcc_cv_gld_major_version" -eq 2 \
27731 -a "$gcc_cv_gld_minor_version" -ge 21 \
27732 -o "$gcc_cv_gld_major_version" -gt 2; then
27733 gcc_cv_ld_mips_personality_relaxation
=yes
27735 elif test x
$gcc_cv_as != x \
27736 -a x
$gcc_cv_ld != x \
27737 -a x
$gcc_cv_readelf != x
; then
27738 cat > conftest.s
<<EOF
27740 .cfi_personality 0x80,indirect_ptr
27747 .section .data,"aw",@progbits
27751 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
27752 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
27753 if $gcc_cv_readelf -d conftest
2>&1 \
27754 |
grep TEXTREL
> /dev
/null
2>&1; then
27756 elif $gcc_cv_readelf --relocs conftest
2>&1 \
27757 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
27760 gcc_cv_ld_mips_personality_relaxation
=yes
27764 rm -f conftest.s conftest.o conftest
27766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27767 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27768 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
27770 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27775 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27776 if ${gcc_cv_as_mips_nan+:} false
; then :
27777 $as_echo_n "(cached) " >&6
27779 gcc_cv_as_mips_nan
=no
27780 if test x
$gcc_cv_as != x
; then
27781 $as_echo '' > conftest.s
27782 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27784 (eval $ac_try) 2>&5
27786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27787 test $ac_status = 0; }; }
27789 gcc_cv_as_mips_nan
=yes
27791 echo "configure: failed program was" >&5
27794 rm -f conftest.o conftest.s
27797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27798 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27799 if test $gcc_cv_as_mips_nan = yes; then
27801 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27805 if test x
$gcc_cv_as_mips_nan = xno \
27806 && test x
$with_nan != x
; then
27807 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27811 # Earlier GAS versions generically support .gnu_attribute, but the
27812 # msp430 assembler will not do anything with it.
27813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27814 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27815 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
27816 $as_echo_n "(cached) " >&6
27818 gcc_cv_as_msp430_gnu_attribute
=no
27819 if test $in_tree_gas = yes; then
27820 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27821 then gcc_cv_as_msp430_gnu_attribute
=yes
27823 elif test x
$gcc_cv_as != x
; then
27824 $as_echo '.gnu_attribute 4,1' > conftest.s
27825 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27827 (eval $ac_try) 2>&5
27829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27830 test $ac_status = 0; }; }
27832 gcc_cv_as_msp430_gnu_attribute
=yes
27834 echo "configure: failed program was" >&5
27837 rm -f conftest.o conftest.s
27840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
27841 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
27842 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
27844 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
27849 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
27850 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
27851 $as_echo_n "(cached) " >&6
27853 gcc_cv_as_msp430_mspabi_attribute
=no
27854 if test $in_tree_gas = yes; then
27855 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27856 then gcc_cv_as_msp430_mspabi_attribute
=yes
27858 elif test x
$gcc_cv_as != x
; then
27859 $as_echo '.mspabi_attribute 4,1' > conftest.s
27860 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27862 (eval $ac_try) 2>&5
27864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27865 test $ac_status = 0; }; }
27867 gcc_cv_as_msp430_mspabi_attribute
=yes
27869 echo "configure: failed program was" >&5
27872 rm -f conftest.o conftest.s
27875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
27876 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
27877 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
27879 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
27885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
27886 $as_echo_n "checking assembler for .attribute support... " >&6; }
27887 if ${gcc_cv_as_riscv_attribute+:} false
; then :
27888 $as_echo_n "(cached) " >&6
27890 gcc_cv_as_riscv_attribute
=no
27891 if test $in_tree_gas = yes; then
27892 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
27893 then gcc_cv_as_riscv_attribute
=yes
27895 elif test x
$gcc_cv_as != x
; then
27896 $as_echo '.attribute stack_align,4' > conftest.s
27897 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27899 (eval $ac_try) 2>&5
27901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27902 test $ac_status = 0; }; }
27904 gcc_cv_as_riscv_attribute
=yes
27906 echo "configure: failed program was" >&5
27909 rm -f conftest.o conftest.s
27912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
27913 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
27914 if test $gcc_cv_as_riscv_attribute = yes; then
27916 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
27922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27923 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27924 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
27925 $as_echo_n "(cached) " >&6
27927 gcc_cv_as_s390_gnu_attribute
=no
27928 if test $in_tree_gas = yes; then
27929 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27930 then gcc_cv_as_s390_gnu_attribute
=yes
27932 elif test x
$gcc_cv_as != x
; then
27933 $as_echo '.gnu_attribute 8,1' > conftest.s
27934 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27936 (eval $ac_try) 2>&5
27938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27939 test $ac_status = 0; }; }
27941 gcc_cv_as_s390_gnu_attribute
=yes
27943 echo "configure: failed program was" >&5
27946 rm -f conftest.o conftest.s
27949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27950 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27951 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27953 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27958 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27959 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
27960 $as_echo_n "(cached) " >&6
27962 gcc_cv_as_s390_machine_machinemode
=no
27963 if test $in_tree_gas = yes; then
27964 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27965 then gcc_cv_as_s390_machine_machinemode
=yes
27967 elif test x
$gcc_cv_as != x
; then
27968 $as_echo ' .machinemode push
27971 .machine pop' > conftest.s
27972 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27974 (eval $ac_try) 2>&5
27976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27977 test $ac_status = 0; }; }
27979 gcc_cv_as_s390_machine_machinemode
=yes
27981 echo "configure: failed program was" >&5
27984 rm -f conftest.o conftest.s
27987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27988 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27989 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27991 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27996 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27997 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
27998 $as_echo_n "(cached) " >&6
28000 gcc_cv_as_s390_architecture_modifiers
=no
28001 if test $in_tree_gas = yes; then
28002 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28003 then gcc_cv_as_s390_architecture_modifiers
=yes
28005 elif test x
$gcc_cv_as != x
; then
28006 $as_echo ' .machine z13+vx ' > conftest.s
28007 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28009 (eval $ac_try) 2>&5
28011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28012 test $ac_status = 0; }; }
28014 gcc_cv_as_s390_architecture_modifiers
=yes
28016 echo "configure: failed program was" >&5
28019 rm -f conftest.o conftest.s
28022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28023 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28024 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28026 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28031 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28032 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
28033 $as_echo_n "(cached) " >&6
28035 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
28036 if test $in_tree_gas = yes; then
28037 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28038 then gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
28040 elif test x
$gcc_cv_as != x
; then
28041 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28042 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28044 (eval $ac_try) 2>&5
28046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28047 test $ac_status = 0; }; }
28049 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
28051 echo "configure: failed program was" >&5
28054 rm -f conftest.o conftest.s
28057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28058 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28059 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28061 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28069 # Mips and HP-UX need the GNU assembler.
28070 # Linux on IA64 might be able to use the Intel assembler.
28073 mips
*-*-* |
*-*-hpux* )
28074 if test x
$gas_flag = xyes \
28075 ||
test x
"$host" != x
"$build" \
28076 ||
test ! -x "$gcc_cv_as" \
28077 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
28080 echo "*** This configuration requires the GNU assembler" >&2
28086 # ??? Not all targets support dwarf2 debug_line, even within a version
28087 # of gas. Moreover, we need to emit a valid instruction to trigger any
28088 # info to the output file. So, as supported targets are added to gas 2.11,
28089 # add some instruction here to (also) show we expect this might work.
28090 # ??? Once 2.11 is released, probably need to add first known working
28091 # version to the per-target configury.
28092 case "$cpu_type" in
28093 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
28094 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
28095 | tilegx | tilepro | visium | xstormy16 | xtensa
)
28105 if test x
"$insn" != x
; then
28107 .file 1 \"conftest.s\"
28110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
28111 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
28112 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
28113 $as_echo_n "(cached) " >&6
28115 gcc_cv_as_dwarf2_debug_line
=no
28116 if test $in_tree_gas = yes; then
28117 if test $in_tree_gas_is_elf = yes \
28118 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28119 then gcc_cv_as_dwarf2_debug_line
=yes
28121 elif test x
$gcc_cv_as != x
; then
28122 $as_echo "$conftest_s" > conftest.s
28123 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28125 (eval $ac_try) 2>&5
28127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28128 test $ac_status = 0; }; }
28130 if test x
$gcc_cv_objdump != x \
28131 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
28132 |
grep debug_line
> /dev
/null
2>&1; then
28133 gcc_cv_as_dwarf2_debug_line
=yes
28134 elif test x
$gcc_cv_otool != x \
28135 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
28136 |
grep debug_line
> /dev
/null
2>&1; then
28137 gcc_cv_as_dwarf2_debug_line
=yes
28140 echo "configure: failed program was" >&5
28143 rm -f conftest.o conftest.s
28146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28147 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28151 # The .debug_line file table must be in the exact order that
28152 # we specified the files, since these indices are also used
28153 # by DW_AT_decl_file. Approximate this test by testing if
28154 # the assembler bitches if the same index is assigned twice.
28155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28156 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28157 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
28158 $as_echo_n "(cached) " >&6
28160 gcc_cv_as_dwarf2_file_buggy
=no
28161 if test x
$gcc_cv_as != x
; then
28162 $as_echo ' .file 1 "foo.s"
28163 .file 1 "bar.s"' > conftest.s
28164 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28166 (eval $ac_try) 2>&5
28168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28169 test $ac_status = 0; }; }
28171 gcc_cv_as_dwarf2_file_buggy
=yes
28173 echo "configure: failed program was" >&5
28176 rm -f conftest.o conftest.s
28179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28180 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28184 if test $gcc_cv_as_dwarf2_debug_line = yes \
28185 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
28187 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28190 if test $gcc_cv_as_leb128 = yes; then
28192 .file 1 \"conftest.s\"
28193 .loc 1 3 0 view .LVU1
28199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28200 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28201 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
28202 $as_echo_n "(cached) " >&6
28204 gcc_cv_as_dwarf2_debug_view
=no
28205 if test $in_tree_gas = yes; then
28206 if test $in_tree_gas_is_elf = yes \
28207 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28208 then gcc_cv_as_dwarf2_debug_view
=yes
28210 elif test x
$gcc_cv_as != x
; then
28211 $as_echo "$conftest_s" > conftest.s
28212 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28214 (eval $ac_try) 2>&5
28216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28217 test $ac_status = 0; }; }
28219 gcc_cv_as_dwarf2_debug_view
=yes
28221 echo "configure: failed program was" >&5
28224 rm -f conftest.o conftest.s
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
28228 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
28229 if test $gcc_cv_as_dwarf2_debug_view = yes; then
28231 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
28238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
28239 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
28240 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
28241 $as_echo_n "(cached) " >&6
28243 gcc_cv_as_gdwarf2_flag
=no
28244 if test $in_tree_gas = yes; then
28245 if test $in_tree_gas_is_elf = yes \
28246 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28247 then gcc_cv_as_gdwarf2_flag
=yes
28249 elif test x
$gcc_cv_as != x
; then
28250 $as_echo "$insn" > conftest.s
28251 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
28252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28253 (eval $ac_try) 2>&5
28255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28256 test $ac_status = 0; }; }
28258 gcc_cv_as_gdwarf2_flag
=yes
28260 echo "configure: failed program was" >&5
28263 rm -f conftest.o conftest.s
28266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28267 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28268 if test $gcc_cv_as_gdwarf2_flag = yes; then
28270 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28276 $as_echo_n "checking assembler for --gstabs option... " >&6; }
28277 if ${gcc_cv_as_gstabs_flag+:} false
; then :
28278 $as_echo_n "(cached) " >&6
28280 gcc_cv_as_gstabs_flag
=no
28281 if test $in_tree_gas = yes; then
28282 if test $in_tree_gas_is_elf = yes \
28283 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28284 then gcc_cv_as_gstabs_flag
=yes
28286 elif test x
$gcc_cv_as != x
; then
28287 $as_echo "$insn" > conftest.s
28288 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28290 (eval $ac_try) 2>&5
28292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28293 test $ac_status = 0; }; }
28295 gcc_cv_as_gstabs_flag
=yes
28297 echo "configure: failed program was" >&5
28300 rm -f conftest.o conftest.s
28303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28304 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28305 if test $gcc_cv_as_gstabs_flag = yes; then
28307 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28313 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28314 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
28315 $as_echo_n "(cached) " >&6
28317 gcc_cv_as_debug_prefix_map_flag
=no
28318 if test $in_tree_gas = yes; then
28319 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28320 then gcc_cv_as_debug_prefix_map_flag
=yes
28322 elif test x
$gcc_cv_as != x
; then
28323 $as_echo "$insn" > conftest.s
28324 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28326 (eval $ac_try) 2>&5
28328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28329 test $ac_status = 0; }; }
28331 gcc_cv_as_debug_prefix_map_flag
=yes
28333 echo "configure: failed program was" >&5
28336 rm -f conftest.o conftest.s
28339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28340 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28341 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28343 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28350 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28351 if ${gcc_cv_as_compress_debug+:} false
; then :
28352 $as_echo_n "(cached) " >&6
28354 gcc_cv_as_compress_debug
=no
28355 if test x
$gcc_cv_as != x
; then
28356 $as_echo '' > conftest.s
28357 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28359 (eval $ac_try) 2>&5
28361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28362 test $ac_status = 0; }; }
28364 # gas compiled without zlib cannot compress debug sections and warns
28365 # about it, but still exits successfully. So check for this, too.
28366 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
28368 gcc_cv_as_compress_debug
=0
28369 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28370 # defaulting to the ELF gABI format.
28371 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
28373 gcc_cv_as_compress_debug
=2
28374 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
28375 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
28376 # Before binutils 2.26, gas only supported --compress-debug-options and
28377 # emitted the traditional GNU format.
28378 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
28380 gcc_cv_as_compress_debug
=1
28381 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
28382 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
28384 gcc_cv_as_compress_debug
=0
28387 echo "configure: failed program was" >&5
28390 rm -f conftest.o conftest.s
28393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28394 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28398 cat >>confdefs.h
<<_ACEOF
28399 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28403 cat >>confdefs.h
<<_ACEOF
28404 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28408 cat >>confdefs.h
<<_ACEOF
28409 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28414 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28415 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
28416 $as_echo_n "(cached) " >&6
28418 gcc_cv_as_lcomm_with_alignment
=no
28419 if test x
$gcc_cv_as != x
; then
28420 $as_echo '.lcomm bar,4,16' > conftest.s
28421 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28423 (eval $ac_try) 2>&5
28425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28426 test $ac_status = 0; }; }
28428 gcc_cv_as_lcomm_with_alignment
=yes
28430 echo "configure: failed program was" >&5
28433 rm -f conftest.o conftest.s
28436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28437 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28438 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28440 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28445 if test x
$with_sysroot = x
&& test x
$host = x
$target \
28446 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28447 && test "$prefix" != "NONE"; then
28449 cat >>confdefs.h
<<_ACEOF
28450 #define PREFIX_INCLUDE_DIR "$prefix/include"
28455 # Determine the version of glibc, if any, used on the target.
28456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28457 $as_echo_n "checking for target glibc version... " >&6; }
28459 # Check whether --with-glibc-version was given.
28460 if test "${with_glibc_version+set}" = set; then :
28461 withval
=$with_glibc_version;
28462 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28463 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28464 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28466 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
28470 glibc_version_major
=0
28471 glibc_version_minor
=0
28472 if test -f $target_header_dir/features.h \
28473 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28474 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28475 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28476 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28481 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28483 cat >>confdefs.h
<<_ACEOF
28484 #define TARGET_GLIBC_MAJOR $glibc_version_major
28488 cat >>confdefs.h
<<_ACEOF
28489 #define TARGET_GLIBC_MINOR $glibc_version_minor
28493 # Check whether --enable-gnu-unique-object was given.
28494 if test "${enable_gnu_unique_object+set}" = set; then :
28495 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28497 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28498 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28502 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28503 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
28504 $as_echo_n "(cached) " >&6
28506 gcc_cv_as_gnu_unique_object
=no
28507 if test $in_tree_gas = yes; then
28508 if test $in_tree_gas_is_elf = yes \
28509 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28510 then gcc_cv_as_gnu_unique_object
=yes
28512 elif test x
$gcc_cv_as != x
; then
28513 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28514 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28516 (eval $ac_try) 2>&5
28518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28519 test $ac_status = 0; }; }
28521 gcc_cv_as_gnu_unique_object
=yes
28523 echo "configure: failed program was" >&5
28526 rm -f conftest.o conftest.s
28529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28530 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28531 if test $gcc_cv_as_gnu_unique_object = yes; then
28532 # We need to unquote above to to use the definition from config.gcc.
28533 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28535 if test $glibc_version_major -gt 2 \
28536 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28537 enable_gnu_unique_object
=yes
28544 if test x
$enable_gnu_unique_object = xyes
; then
28546 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28551 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28552 if ${gcc_cv_as_line_zero+:} false
; then :
28553 $as_echo_n "(cached) " >&6
28555 gcc_cv_as_line_zero
=no
28556 if test $in_tree_gas = yes; then
28557 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28558 then gcc_cv_as_line_zero
=yes
28560 elif test "x$gcc_cv_as" != x
; then
28561 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28562 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28564 (eval $ac_try) 2>&5
28566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28567 test $ac_status = 0; }; } &&
28568 test "x`cat conftest.out`" = x
28570 gcc_cv_as_line_zero
=yes
28572 echo "configure: failed program was" >&5
28574 echo "configure: error output was" >&5
28575 cat conftest.out
>&5
28577 rm -f conftest.o conftest.s conftest.out
28580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28581 $as_echo "$gcc_cv_as_line_zero" >&6; }
28582 if test "x$gcc_cv_as_line_zero" = xyes
; then
28584 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28589 $as_echo_n "checking support for thin archives... " >&6; }
28590 thin_archive_support
=no
28591 echo 'int main (void) { return 0; }' > conftest.c
28592 if ($AR --version |
sed 1q |
grep "GNU ar" \
28593 && $CC $CFLAGS -c conftest.c \
28594 && $AR rcT conftest.a conftest.o \
28595 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
28596 thin_archive_support
=yes
28598 rm -f conftest.c conftest.o conftest.a conftest
28599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28600 $as_echo "$thin_archive_support" >&6; }
28603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28604 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28605 gcc_cv_ld_eh_frame_hdr
=no
28606 if test $in_tree_ld = yes ; then
28607 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 \
28608 && test $in_tree_ld_is_elf = yes; then
28609 gcc_cv_ld_eh_frame_hdr
=yes
28611 elif test x
$gcc_cv_ld != x
; then
28612 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28613 # Check if linker supports --eh-frame-hdr option
28614 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
28615 gcc_cv_ld_eh_frame_hdr
=yes
28620 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28621 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
28622 gcc_cv_ld_eh_frame_hdr
=yes
28629 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
28631 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28635 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28638 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28639 gcc_cv_ld_eh_frame_ciev3
=no
28640 if test $in_tree_ld = yes ; then
28641 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 \
28642 && test $in_tree_ld_is_elf = yes; then
28643 gcc_cv_ld_eh_frame_ciev3
=yes
28645 elif test x
$gcc_cv_ld != x
; then
28646 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28647 gcc_cv_ld_eh_frame_ciev3
=yes
28648 if test 0"$ld_date" -lt 20040513; then
28649 if test -n "$ld_date"; then
28650 # If there was date string, but was earlier than 2004-05-13, fail
28651 gcc_cv_ld_eh_frame_ciev3
=no
28652 elif test "$ld_vers_major" -lt 2; then
28653 gcc_cv_ld_eh_frame_ciev3
=no
28654 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28655 gcc_cv_ld_eh_frame_ciev3
=no
28661 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28662 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
28663 gcc_cv_ld_eh_frame_ciev3
=yes
28670 cat >>confdefs.h
<<_ACEOF
28671 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28675 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28678 $as_echo_n "checking linker position independent executable support... " >&6; }
28680 if test $in_tree_ld = yes ; then
28682 # Full PIE support on Solaris was only introduced in gld 2.26.
28683 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
28684 *) gcc_gld_pie_min_version
=15 ;;
28686 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 \
28687 && test $in_tree_ld_is_elf = yes; then
28690 elif test x
$gcc_cv_ld != x
; then
28691 # Check if linker supports -pie option
28692 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
28696 if echo "$ld_ver" |
grep GNU
> /dev
/null \
28697 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28704 *-*-solaris2.1
[1-9]*)
28705 # Solaris 11.3 added PIE support.
28706 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
28713 if test x
"$gcc_cv_ld_pie" = xyes
; then
28715 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28719 $as_echo "$gcc_cv_ld_pie" >&6; }
28721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28722 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28723 gcc_cv_ld_pie_copyreloc
=no
28724 if test $gcc_cv_ld_pie = yes ; then
28725 if test $in_tree_ld = yes ; then
28726 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
28727 gcc_cv_ld_pie_copyreloc
=yes
28729 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28730 # Check if linker supports -pie option with copy reloc
28732 i?
86-*-linux* | x86_64-
*-linux*)
28733 cat > conftest1.s
<<EOF
28736 .type a_glob, @object
28741 cat > conftest2.s
<<EOF
28744 .type main, @function
28746 movl %eax, a_glob(%rip)
28749 .section .data.rel,"aw",@progbits
28754 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28755 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
28756 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28757 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
28758 gcc_cv_ld_pie_copyreloc
=yes
28760 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28766 cat >>confdefs.h
<<_ACEOF
28767 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28771 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28774 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28775 gcc_cv_ld_eh_gc_sections
=no
28776 if test $in_tree_ld = yes ; then
28777 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 \
28778 && test $in_tree_ld_is_elf = yes; then
28779 gcc_cv_ld_eh_gc_sections
=yes
28781 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28782 cat > conftest.s
<<EOF
28785 .type _start, @function
28788 .size _start, .-_start
28789 .section .text.foo,"ax",@progbits
28790 .type foo, @function
28794 .section .gcc_except_table.foo,"a",@progbits
28797 .section .eh_frame,"a",@progbits
28800 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28801 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28802 |
grep "gc-sections option ignored" > /dev
/null
; then
28803 gcc_cv_ld_eh_gc_sections
=no
28804 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28805 |
grep gcc_except_table
> /dev
/null
; then
28806 gcc_cv_ld_eh_gc_sections
=yes
28807 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28808 if test x
$gcc_cv_as_comdat_group != xyes
; then
28809 gcc_cv_ld_eh_gc_sections
=no
28810 cat > conftest.s
<<EOF
28813 .type _start, @function
28816 .size _start, .-_start
28817 .section .gnu.linkonce.t.foo,"ax",@progbits
28818 .type foo, @function
28822 .section .gcc_except_table.foo,"a",@progbits
28825 .section .eh_frame,"a",@progbits
28828 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28829 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28830 |
grep "gc-sections option ignored" > /dev
/null
; then
28831 gcc_cv_ld_eh_gc_sections
=no
28832 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28833 |
grep gcc_except_table
> /dev
/null
; then
28834 gcc_cv_ld_eh_gc_sections
=yes
28840 rm -f conftest.s conftest.o conftest
28844 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28845 gcc_cv_ld_eh_gc_sections
=no
28848 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
28850 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28854 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28857 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28858 gcc_cv_ld_eh_gc_sections_bug
=no
28859 if test $in_tree_ld = yes ; then
28860 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 \
28861 && test $in_tree_ld_is_elf = yes; then
28862 gcc_cv_ld_eh_gc_sections_bug
=yes
28864 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
28865 gcc_cv_ld_eh_gc_sections_bug
=yes
28866 cat > conftest.s
<<EOF
28869 .type _start, @function
28872 .size _start, .-_start
28873 .section .text.startup.foo,"ax",@progbits
28874 .type foo, @function
28878 .section .gcc_except_table.foo,"a",@progbits
28881 .section .eh_frame,"a",@progbits
28884 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28885 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28886 |
grep "gc-sections option ignored" > /dev
/null
; then
28888 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28889 |
grep gcc_except_table
> /dev
/null
; then
28890 gcc_cv_ld_eh_gc_sections_bug
=no
28893 rm -f conftest.s conftest.o conftest
28895 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
28897 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28901 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28904 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28905 # gold/gld support compressed debug sections since binutils 2.19/2.21
28906 # In binutils 2.26, gld gained support for the ELF gABI format.
28907 if test $in_tree_ld = yes ; then
28908 gcc_cv_ld_compress_debug
=0
28909 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 \
28910 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28911 gcc_cv_ld_compress_debug
=2
28912 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28913 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
28914 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
28915 gcc_cv_ld_compress_debug
=3
28916 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28917 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 \
28918 && test $in_tree_ld_is_elf = yes; then
28919 gcc_cv_ld_compress_debug
=1
28921 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28922 if test "$ld_vers_major" -lt 2 \
28923 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28924 gcc_cv_ld_compress_debug
=0
28925 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28926 gcc_cv_ld_compress_debug
=1
28928 gcc_cv_ld_compress_debug
=3
28929 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28931 if test $ld_is_gold = yes; then
28932 gcc_cv_ld_compress_debug
=2
28933 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28936 case "${target}" in
28938 # Introduced in Solaris 11.2.
28939 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
28940 gcc_cv_ld_compress_debug
=3
28941 gcc_cv_ld_compress_debug_option
="-z compress-sections"
28943 gcc_cv_ld_compress_debug
=0
28947 # Assume linkers other than GNU ld don't support compessed debug
28949 gcc_cv_ld_compress_debug
=0
28954 cat >>confdefs.h
<<_ACEOF
28955 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28959 cat >>confdefs.h
<<_ACEOF
28960 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28964 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28966 if test x
"$ld64_flag" = x
"yes"; then
28968 # Set defaults for possibly untestable items.
28969 gcc_cv_ld64_export_dynamic
=0
28971 if test "$build" = "$host"; then
28977 # On Darwin, because of FAT library support, it is often possible to execute
28978 # exes from compatible archs even when the host differs from the build system.
28979 case "$build","$host" in
28980 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
28981 darwin_try_test
=1;;
28985 # If the configurer specified a minimum ld64 version to be supported, then use
28986 # that to determine feature support.
28987 if test x
"${gcc_cv_ld64_version}" != x
; then
28988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28989 $as_echo_n "checking ld64 specified version... " >&6; }
28990 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28992 $as_echo "$gcc_cv_ld64_major" >&6; }
28993 if test "$gcc_cv_ld64_major" -ge 236; then
28994 gcc_cv_ld64_export_dynamic
=1
28996 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28997 # If the version was not specified, try to find it.
28998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28999 $as_echo_n "checking linker version... " >&6; }
29000 if test x
"${gcc_cv_ld64_version}" = x
; then
29001 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
29003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
29004 $as_echo "$gcc_cv_ld64_version" >&6; }
29006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
29007 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
29008 gcc_cv_ld64_export_dynamic
=1
29009 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
29010 gcc_cv_ld64_export_dynamic
=0
29012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
29013 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
29016 if test x
"${gcc_cv_ld64_version}" != x
; then
29018 cat >>confdefs.h
<<_ACEOF
29019 #define LD64_VERSION "${gcc_cv_ld64_version}"
29025 cat >>confdefs.h
<<_ACEOF
29026 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
29035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
29036 $as_echo_n "checking linker --as-needed support... " >&6; }
29037 if ${gcc_cv_ld_as_needed+:} false
; then :
29038 $as_echo_n "(cached) " >&6
29040 gcc_cv_ld_as_needed
=no
29041 gcc_cv_ld_as_needed_option
='--as-needed'
29042 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
29043 if test $in_tree_ld = yes ; then
29044 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 \
29045 && test $in_tree_ld_is_elf = yes; then
29046 gcc_cv_ld_as_needed
=yes
29047 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
29048 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
29049 gcc_cv_ld_no_as_needed_option
='--pop-state'
29052 elif test x
$gcc_cv_ld != x
; then
29053 # Check if linker supports --as-needed and --no-as-needed options
29054 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
29055 gcc_cv_ld_as_needed
=yes
29056 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
29057 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
29058 && echo "$ld_ver" |
grep GNU
> /dev
/null \
29059 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
29060 # Use these options only when both ld.bfd and ld.gold support
29061 # --push-state/--pop-state, which unfortunately wasn't added
29062 # at the same time.
29063 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
29064 gcc_cv_ld_no_as_needed_option
='--pop-state'
29067 case "$target:$gnu_ld" in
29069 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
29071 gcc_cv_ld_as_needed
=yes
29072 gcc_cv_ld_as_needed_option
="-z ignore"
29073 gcc_cv_ld_no_as_needed_option
="-z record"
29077 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
29078 # dl_iterate_phdr, i.e. since Solaris 11.
29080 *-*-solaris2.1
[1-9]*)
29082 i?
86-*-* | x86_64-
*-*)
29083 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29084 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
29085 gcc_cv_ld_as_needed
=no
29091 gcc_cv_ld_as_needed
=no
29096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
29097 $as_echo "$gcc_cv_ld_as_needed" >&6; }
29098 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
29100 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
29103 cat >>confdefs.h
<<_ACEOF
29104 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
29108 cat >>confdefs.h
<<_ACEOF
29109 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
29114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
29115 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
29116 saved_LDFLAGS
="$LDFLAGS"
29117 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
29118 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
29119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29120 /* end confdefs.h. */
29121 int main(void) {return 0;}
29123 if ac_fn_cxx_try_link
"$LINENO"; then :
29124 gcc_cv_ld_clearcap
=yes; break
29126 gcc_cv_ld_clearcap
=no
29128 rm -f core conftest.err conftest.
$ac_objext \
29129 conftest
$ac_exeext conftest.
$ac_ext
29131 LDFLAGS
="$saved_LDFLAGS"
29132 if test "x$gcc_cv_ld_clearcap" = xyes
; then
29134 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
29136 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
29139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
29140 $as_echo "$gcc_cv_ld_clearcap" >&6; }
29146 emul_name
="-melf32lppc"
29149 emul_name
="-melf32ppc"
29152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
29153 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
29154 if ${gcc_cv_ld_ppc_attr+:} false
; then :
29155 $as_echo_n "(cached) " >&6
29157 gcc_cv_ld_ppc_attr
=no
29158 if test x
"$ld_is_gold" = xyes
; then
29159 gcc_cv_ld_ppc_attr
=yes
29160 elif test $in_tree_ld = yes ; then
29161 if test "$gcc_cv_gld_major_version" -eq 2 \
29162 -a "$gcc_cv_gld_minor_version" -ge 28 \
29163 -o "$gcc_cv_gld_major_version" -gt 2; then
29164 gcc_cv_ld_ppc_attr
=yes
29166 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29167 # check that merging the long double .gnu_attribute doesn't warn
29168 cat > conftest1.s
<<EOF
29171 cat > conftest2.s
<<EOF
29174 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
29175 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
29176 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
29177 && test ! -s conftest.err
; then
29178 gcc_cv_ld_ppc_attr
=yes
29180 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
29184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
29185 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
29186 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
29188 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
29194 case "$target:$tm_file" in
29195 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
29198 emul_name
="-melf64lppc"
29201 emul_name
="-melf64ppc"
29204 emul_name
="-melf64ppc_fbsd"
29207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
29208 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
29209 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
29210 $as_echo_n "(cached) " >&6
29212 gcc_cv_ld_no_dot_syms
=no
29213 if test x
"$ld_is_gold" = xyes
; then
29214 gcc_cv_ld_no_dot_syms
=yes
29215 elif test $in_tree_ld = yes ; then
29216 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
29217 gcc_cv_ld_no_dot_syms
=yes
29219 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29220 cat > conftest1.s
<<EOF
29224 cat > conftest2.s
<<EOF
29225 .section ".opd","aw"
29228 .type foo,@function
29230 .quad .LEfoo,.TOC.@tocbase,0
29236 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
29237 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
29238 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
29239 gcc_cv_ld_no_dot_syms
=yes
29241 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
29245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
29246 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
29247 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
29249 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
29253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29254 $as_echo_n "checking linker large toc support... " >&6; }
29255 if ${gcc_cv_ld_large_toc+:} false
; then :
29256 $as_echo_n "(cached) " >&6
29258 gcc_cv_ld_large_toc
=no
29259 if test x
"$ld_is_gold" = xyes
; then
29260 gcc_cv_ld_large_toc
=yes
29261 elif test $in_tree_ld = yes ; then
29262 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
29263 gcc_cv_ld_large_toc
=yes
29265 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29266 cat > conftest.s
<<EOF
29267 .section ".tbss","awT",@nobits
29273 addis 9,13,ie0@got@tprel@ha
29274 ld 9,ie0@got@tprel@l(9)
29276 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
29277 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
29278 gcc_cv_ld_large_toc
=yes
29280 rm -f conftest conftest.o conftest.s
29284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29285 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29286 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
29288 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29293 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29294 if ${gcc_cv_ld_toc_align+:} false
; then :
29295 $as_echo_n "(cached) " >&6
29297 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
29298 cat > conftest.s
<<EOF
29303 .section .data.rel.ro,"aw",@progbits
29308 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
29309 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
29310 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)) }'`
29312 rm -f conftest conftest.o conftest.s
29316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29317 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29318 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29320 cat >>confdefs.h
<<_ACEOF
29321 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29331 $as_echo_n "checking linker large toc support... " >&6; }
29332 if ${gcc_cv_ld_large_toc+:} false
; then :
29333 $as_echo_n "(cached) " >&6
29335 gcc_cv_ld_large_toc
=no
29336 if test x
$gcc_cv_as != x
; then
29337 cat > conftest.s
<<EOF
29347 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
29348 gcc_cv_ld_large_toc
=yes
29350 rm -f conftest conftest.o conftest.s
29354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29355 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29356 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
29358 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29365 $as_echo_n "checking linker --build-id support... " >&6; }
29366 if ${gcc_cv_ld_buildid+:} false
; then :
29367 $as_echo_n "(cached) " >&6
29369 gcc_cv_ld_buildid
=no
29370 if test $in_tree_ld = yes ; then
29371 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29372 "$gcc_cv_gld_minor_version" -ge 18 -o \
29373 "$gcc_cv_gld_major_version" -gt 2 \
29374 && test $in_tree_ld_is_elf = yes; then
29375 gcc_cv_ld_buildid
=yes
29377 elif test x
$gcc_cv_ld != x
; then
29378 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
29379 gcc_cv_ld_buildid
=yes
29383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29384 $as_echo "$gcc_cv_ld_buildid" >&6; }
29385 if test x
"$gcc_cv_ld_buildid" = xyes
; then
29387 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29391 # Check whether --enable-linker-build-id was given.
29392 if test "${enable_linker_build_id+set}" = set; then :
29393 enableval
=$enable_linker_build_id;
29395 enable_linker_build_id
=no
29399 if test x
"$enable_linker_build_id" = xyes
; then
29400 if test x
"$gcc_cv_ld_buildid" = xyes
; then
29402 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29406 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29410 # In binutils 2.21, GNU ld gained support for new emulations fully
29411 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29413 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29414 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
29415 $as_echo_n "(cached) " >&6
29417 gcc_cv_ld_sol2_emulation
=no
29418 if test $in_tree_ld = yes ; then
29419 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29420 "$gcc_cv_gld_minor_version" -ge 21 -o \
29421 "$gcc_cv_gld_major_version" -gt 2 \
29422 && test $in_tree_ld_is_elf = yes; then
29423 gcc_cv_ld_sol2_emulation
=yes
29425 elif test x
$gcc_cv_ld != x
; then
29426 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
29427 grep _sol2
> /dev
/null
; then
29428 gcc_cv_ld_sol2_emulation
=yes
29432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29433 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29434 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
29436 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29441 $as_echo_n "checking linker --sysroot support... " >&6; }
29442 if ${gcc_cv_ld_sysroot+:} false
; then :
29443 $as_echo_n "(cached) " >&6
29445 gcc_cv_ld_sysroot
=no
29446 if test $in_tree_ld = yes ; then
29447 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
29448 gcc_cv_ld_sysroot
=yes
29450 elif test x
$gcc_cv_ld != x
; then
29451 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
29452 gcc_cv_ld_sysroot
=yes
29456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29457 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29458 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
29460 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29466 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29468 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29469 if ${gcc_cv_solaris_crts+:} false
; then :
29470 $as_echo_n "(cached) " >&6
29472 gcc_cv_solaris_crts
=no
29473 if test x
$host != x
$target; then
29474 if test "x$with_sysroot" = xyes
; then
29475 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
29477 target_sysroot
="${with_sysroot}"
29480 target_libdir
="$target_sysroot/usr/lib"
29481 # At the time they were added, gcrt1.o became a symlink for backwards
29482 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29484 i?
86-*-solaris2* | x86_64-
*-solaris2*)
29485 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
29487 sparc
*-*-solaris2*)
29488 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
29492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29493 $as_echo "$gcc_cv_solaris_crts" >&6; }
29496 if test x
$gcc_cv_solaris_crts = xyes
; then
29498 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29502 # Check whether --enable-libssp was given.
29503 if test "${enable_libssp+set}" = set; then :
29504 enableval
=$enable_libssp; case "${enableval}" in
29508 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
29514 # Test for stack protector support in target C library.
29515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29516 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29517 if ${gcc_cv_libc_provides_ssp+:} false
; then :
29518 $as_echo_n "(cached) " >&6
29520 gcc_cv_libc_provides_ssp
=no
29521 if test "x$enable_libssp" = "xno"; then
29522 gcc_cv_libc_provides_ssp
=yes
29523 elif test "x$enable_libssp" = "xyes"; then
29524 gcc_cv_libc_provides_ssp
=no
29528 # All versions of musl provide stack protector
29529 gcc_cv_libc_provides_ssp
=yes;;
29530 *-*-linux* |
*-*-kfreebsd*-gnu)
29531 # glibc 2.4 and later provides __stack_chk_fail and
29532 # either __stack_chk_guard, or TLS access to stack guard canary.
29534 if test $glibc_version_major -gt 2 \
29535 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29536 gcc_cv_libc_provides_ssp
=yes
29539 if test -f $target_header_dir/features.h \
29540 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29541 $target_header_dir/features.h
> /dev
/null
; then
29542 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29543 $target_header_dir/features.h
> /dev
/null
&& \
29544 test -f $target_header_dir/bits
/uClibc_config.h
&& \
29545 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29546 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
29547 gcc_cv_libc_provides_ssp
=yes
29549 # all versions of Bionic support stack protector
29550 elif test -f $target_header_dir/sys
/cdefs.h \
29551 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29552 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
29553 gcc_cv_libc_provides_ssp
=yes
29558 # Avoid complicated tests (see
29559 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29560 # simply assert that glibc does provide this, which is true for all
29561 # realistically usable GNU/Hurd configurations.
29562 # All supported versions of musl provide it as well
29563 gcc_cv_libc_provides_ssp
=yes;;
29564 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
29565 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29566 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
29567 gcc_cv_libc_provides_ssp
=yes
29569 echo "no __stack_chk_fail on this target"
29573 *) gcc_cv_libc_provides_ssp
=no
;;
29577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29578 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29580 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29582 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29586 # Check whether --enable-default-ssp was given.
29587 # Check whether --enable-default-ssp was given.
29588 if test "${enable_default_ssp+set}" = set; then :
29589 enableval
=$enable_default_ssp;
29590 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29592 ia64
*-*-*) enable_default_ssp
=no
;;
29593 *) enable_default_ssp
=$enableval ;;
29596 enable_default_ssp
=no
29599 enable_default_ssp
=no
29602 if test x
$enable_default_ssp = xyes
; then
29604 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29609 # Test for <sys/sdt.h> on the target.
29611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29612 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29614 if test -f $target_header_dir/sys
/sdt.h
; then
29617 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29621 $as_echo "$have_sys_sdt_h" >&6; }
29623 # Check if TFmode long double should be used by default or not.
29624 # Some glibc targets used DFmode long double, but with glibc 2.4
29625 # and later they can use TFmode.
29627 powerpc
*-*-linux* | \
29628 sparc
*-*-linux* | \
29632 # Check whether --with-long-double-128 was given.
29633 if test "${with_long_double_128+set}" = set; then :
29634 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
29637 if test $glibc_version_major -gt 2 \
29638 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29639 gcc_cv_target_ldbl128
=yes
29642 gcc_cv_target_ldbl128
=no
29643 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29644 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
29645 && gcc_cv_target_ldbl128
=yes
29652 if test x
$gcc_cv_target_ldbl128 = xyes
; then
29654 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29658 # Check if TFmode long double target should use the IBM extended double or IEEE
29659 # 128-bit floating point formats if long doubles are 128-bits long. The long
29660 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29661 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29664 # Check whether --with-long-double-format was given.
29665 if test "${with_long_double_format+set}" = set; then :
29666 withval
=$with_long_double_format;
29667 case "$target:$with_long_double_format" in
29668 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
29671 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
29672 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29673 case "$with_cpu" in
29674 power7 | power8 | power9 | power1
*)
29678 as_fn_error $?
"Configuration option --with-long-double-format is only \
29679 supported if the default cpu is power7 or newer" "$LINENO" 5
29680 with_long_double_format
=""
29684 xpowerpc64
*-*-linux*:*)
29685 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29686 with_long_double_format
=""
29689 as_fn_error $?
"Configure option --with-long-double-format is only supported \
29690 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29691 with_long_double_format
=""
29697 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29698 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29699 gcc_cv_libc_provides_hwcap_in_tcb
=no
29703 if test $glibc_version_major -gt 2 \
29704 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29705 gcc_cv_libc_provides_hwcap_in_tcb
=yes
29709 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
29711 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29716 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29717 gcc_cv_target_dl_iterate_phdr
=unknown
29720 # <link.h> needs both a dl_iterate_phdr declaration and support for
29721 # compilation with largefile support.
29722 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
29723 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
29724 gcc_cv_target_dl_iterate_phdr
=yes
29726 gcc_cv_target_dl_iterate_phdr
=no
29729 *-*-dragonfly* |
*-*-freebsd*)
29730 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
29731 gcc_cv_target_dl_iterate_phdr
=yes
29733 gcc_cv_target_dl_iterate_phdr
=no
29737 gcc_cv_target_dl_iterate_phdr
=yes
29741 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
29743 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29747 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29749 # We no longer support different GC mechanisms. Emit an error if
29750 # the user configures with --with-gc.
29752 # Check whether --with-gc was given.
29753 if test "${with_gc+set}" = set; then :
29754 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29758 # Libraries to use on the host. This will normally be set by the top
29759 # level Makefile. Here we simply capture the value for our Makefile.
29760 if test -z "${HOST_LIBS+set}"; then
29765 # Use the system's zlib library.
29767 # Use the system's zlib library.
29768 zlibdir
="-L\$(top_builddir)/../zlib"
29769 zlibinc
="-I\$(top_srcdir)/../zlib"
29771 # Check whether --with-system-zlib was given.
29772 if test "${with_system_zlib+set}" = set; then :
29773 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
29785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29786 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29787 # Check whether --enable-maintainer-mode was given.
29788 if test "${enable_maintainer_mode+set}" = set; then :
29789 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
29795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29796 $as_echo "$maintainer_mode" >&6; }
29798 if test "$maintainer_mode" = "yes"; then
29805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29806 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29807 # Check whether --enable-link-mutex was given.
29808 if test "${enable_link_mutex+set}" = set; then :
29809 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
29814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29815 $as_echo "$do_link_mutex" >&6; }
29817 if test "$do_link_mutex" = "yes"; then
29820 DO_LINK_MUTEX
=false
29828 # Make empty files to contain the specs and options for each language.
29829 # Then add #include lines to for a compiler that has specs and/or options.
29835 # These (without "all_") are set in each config-lang.in.
29836 # `language' must be a single word so is spelled singularly.
29839 all_outputs
='Makefile'
29840 # List of language makefile fragments.
29841 all_lang_makefrags
=
29842 # Additional files for gengtype
29843 all_gtfiles
="$target_gtfiles"
29845 # These are the languages that are set in --enable-languages,
29846 # and are available in the GCC tree.
29847 all_selected_languages
=
29849 # Add the language fragments.
29850 # Languages are added via two mechanisms. Some information must be
29851 # recorded in makefile variables, these are defined in config-lang.in.
29852 # We accumulate them and plug them into the main Makefile.
29853 # The other mechanism is a set of hooks for each of the main targets
29854 # like `clean', `install', etc.
29856 language_hooks
="Make-hooks"
29858 for lang
in ${srcdir}/*/config-lang.
in
29860 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29862 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29863 if test "x$lang_alias" = x
29865 echo "$lang doesn't set \$language." 1>&2
29868 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29869 subdirs
="$subdirs $subdir"
29871 # $gcc_subdir is where the gcc integration files are to be found
29872 # for a language, both for internal compiler purposes (compiler
29873 # sources implementing front-end to GCC tree converters), and for
29874 # build infrastructure purposes (Make-lang.in, etc.)
29876 # This will be <subdir> (relative to $srcdir) if a line like
29877 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29878 # is found in <langdir>/config-lang.in, and will remain <langdir>
29881 # Except for the language alias (fetched above), the regular
29882 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29883 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29884 # only this and the language alias.
29886 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29887 if [ "$gcc_subdir" = "" ]; then
29888 gcc_subdir
="$subdir"
29891 case ",$enable_languages," in
29893 all_selected_languages
="$all_selected_languages $lang_alias"
29894 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
29895 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29906 .
${srcdir}/$gcc_subdir/config-lang.
in
29907 if test "x$language" = x
29909 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29914 case ",$enable_languages," in
29915 *,$lang_alias,*) ;;
29917 for i
in $subdir_requires; do
29918 test -f "${srcdir}/$i/config-lang.in" && continue
29926 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29927 if test -f $srcdir/$gcc_subdir/lang.opt
; then
29928 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29929 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29931 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
29932 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29934 all_languages
="$all_languages $language"
29935 all_compilers
="$all_compilers $compilers"
29936 all_outputs
="$all_outputs $outputs"
29937 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
29938 case ",$enable_languages," in
29941 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29951 for language
in $all_selected_languages
29953 check_languages
="$check_languages check-$language"
29956 selftest_languages
=
29957 for language
in $all_selected_languages
29959 selftest_languages
="$selftest_languages selftest-$language"
29962 # We link each language in with a set of hooks, reached indirectly via
29963 # lang.${target}. Only do so for selected languages.
29967 target_list
="all.cross start.encap rest.encap tags \
29968 install-common install-man install-info install-pdf install-html dvi \
29969 pdf html uninstall info man srcextra srcman srcinfo \
29970 mostlyclean clean distclean maintainer-clean install-plugin"
29972 for t
in $target_list
29975 for lang
in $all_selected_languages
29979 echo "lang.$t: $x" >> Make-hooks
29983 # Option include files
29986 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
29987 option_includes
="option-includes.mk"
29996 echo "dir ." > .gdbinit
29997 echo "dir ${srcdir}" >> .gdbinit
29998 if test x
$gdb_needs_out_file_path = xyes
30000 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
30002 if test "x$subdirs" != x
; then
30005 echo "dir ${srcdir}/$s" >> .gdbinit
30008 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
30009 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
30011 # Put a breakpoint on __asan_report_error to help with debugging buffer
30014 *-fsanitize=address
*)
30015 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
30019 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
30023 # Find a directory in which to install a shared libgcc.
30025 # Check whether --enable-version-specific-runtime-libs was given.
30026 if test "${enable_version_specific_runtime_libs+set}" = set; then :
30027 enableval
=$enable_version_specific_runtime_libs;
30031 # Substitute configuration variables
30099 if test x
${build} = x
${host} ; then
30100 if test x
${host} = x
${target} ; then
30101 echo "Links are now set up to build a native compiler for ${target}." 1>&2
30103 echo "Links are now set up to build a cross-compiler" 1>&2
30104 echo " from ${host} to ${target}." 1>&2
30107 if test x
${host} = x
${target} ; then
30108 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
30109 echo " for ${target}." 1>&2
30111 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
30112 echo " from ${host} to ${target}." 1>&2
30121 if test "x${ISLLIBS}" != "x" ; then
30123 $as_echo "#define HAVE_isl 1" >>confdefs.h
30127 # Check for plugin support
30128 # Check whether --enable-plugin was given.
30129 if test "${enable_plugin+set}" = set; then :
30130 enableval
=$enable_plugin; enable_plugin
=$enableval
30132 enable_plugin
=yes; default_plugin
=yes
30141 # Since plugin support under MinGW is not as straightforward as on
30142 # other platforms (e.g., we have to link import library, etc), we
30143 # only enable it if explicitly requested.
30144 if test x
"$default_plugin" = x
"yes"; then
30146 elif test x
"$enable_plugin" = x
"yes"; then
30147 # Use make's target variable to derive import library name.
30148 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
30153 if test x
$build = x
$host; then
30154 export_sym_check
="nm${exeext} -g"
30155 elif test x
$host = x
$target; then
30156 export_sym_check
="$gcc_cv_nm -g"
30162 if test x
$build = x
$host; then
30163 export_sym_check
="objdump${exeext} -T"
30164 elif test x
$host = x
$target; then
30165 export_sym_check
="$gcc_cv_objdump -T"
30172 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
30174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
30175 $as_echo_n "checking for exported symbols... " >&6; }
30176 if test "x$export_sym_check" != x
; then
30177 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
30178 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
30179 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
30180 : # No need to use a flag
30181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30182 $as_echo "yes" >&6; }
30184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30185 $as_echo "yes" >&6; }
30186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
30187 $as_echo_n "checking for -rdynamic... " >&6; }
30188 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
30189 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
30190 plugin_rdynamic
=yes
30191 pluginlibs
="-rdynamic"
30196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
30197 $as_echo "$plugin_rdynamic" >&6; }
30200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
30201 $as_echo "unable to check" >&6; }
30206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
30207 $as_echo_n "checking for library containing dlopen... " >&6; }
30208 if ${ac_cv_search_dlopen+:} false
; then :
30209 $as_echo_n "(cached) " >&6
30211 ac_func_search_save_LIBS
=$LIBS
30212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30213 /* end confdefs.h. */
30215 /* Override any GCC internal prototype to avoid an error.
30216 Use char because int might match the return type of a GCC
30217 builtin and then its argument prototype would still apply. */
30230 for ac_lib
in '' dl
; do
30231 if test -z "$ac_lib"; then
30232 ac_res
="none required"
30235 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
30237 if ac_fn_cxx_try_link
"$LINENO"; then :
30238 ac_cv_search_dlopen
=$ac_res
30240 rm -f core conftest.err conftest.
$ac_objext \
30242 if ${ac_cv_search_dlopen+:} false
; then :
30246 if ${ac_cv_search_dlopen+:} false
; then :
30249 ac_cv_search_dlopen
=no
30251 rm conftest.
$ac_ext
30252 LIBS
=$ac_func_search_save_LIBS
30254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30255 $as_echo "$ac_cv_search_dlopen" >&6; }
30256 ac_res
=$ac_cv_search_dlopen
30257 if test "$ac_res" != no
; then :
30258 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
30262 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
30263 pluginlibs
="$pluginlibs -ldl"
30267 # Check that we can build shared objects with -fPIC -shared
30268 saved_LDFLAGS
="$LDFLAGS"
30269 saved_CFLAGS
="$CFLAGS"
30272 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30273 CFLAGS
="$CFLAGS -fPIC"
30274 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
30277 CFLAGS
="$CFLAGS -fPIC"
30278 LDFLAGS
="$LDFLAGS -fPIC -shared"
30281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30282 $as_echo_n "checking for -fPIC -shared... " >&6; }
30283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30284 /* end confdefs.h. */
30294 if ac_fn_cxx_try_link
"$LINENO"; then :
30295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30296 $as_echo "yes" >&6; }; have_pic_shared
=yes
30298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30299 $as_echo "no" >&6; }; have_pic_shared
=no
30301 rm -f core conftest.err conftest.
$ac_objext \
30302 conftest
$ac_exeext conftest.
$ac_ext
30303 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
30307 LDFLAGS
="$saved_LDFLAGS"
30308 CFLAGS
="$saved_CFLAGS"
30310 # If plugin support had been requested but not available, fail.
30311 if test x
"$enable_plugin" = x
"no" ; then
30312 if test x
"$default_plugin" != x
"yes"; then
30314 Building GCC with plugin support requires a host that supports
30315 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30322 if test x
"$enable_plugin" = x
"yes"; then
30324 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30329 # Enable --enable-host-shared
30330 # Check whether --enable-host-shared was given.
30331 if test "${enable_host_shared+set}" = set; then :
30332 enableval
=$enable_host_shared; PICFLAG
=-fPIC
30341 # Check whether --enable-libquadmath-support was given.
30342 if test "${enable_libquadmath_support+set}" = set; then :
30343 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
30345 ENABLE_LIBQUADMATH_SUPPORT
=yes
30348 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30350 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30355 # Specify what hash style to use by default.
30357 # Check whether --with-linker-hash-style was given.
30358 if test "${with_linker_hash_style+set}" = set; then :
30359 withval
=$with_linker_hash_style; case x
"$withval" in
30361 LINKER_HASH_STYLE
=sysv
30364 LINKER_HASH_STYLE
=gnu
30367 LINKER_HASH_STYLE
=both
30370 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30374 LINKER_HASH_STYLE
=''
30377 if test x
"${LINKER_HASH_STYLE}" != x
; then
30379 cat >>confdefs.h
<<_ACEOF
30380 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30385 # Specify what should be the default of -fdiagnostics-color option.
30387 # Check whether --with-diagnostics-color was given.
30388 if test "${with_diagnostics_color+set}" = set; then :
30389 withval
=$with_diagnostics_color; case x
"$withval" in
30391 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
30394 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
30397 DIAGNOSTICS_COLOR_DEFAULT
=-1
30400 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
30403 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30407 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
30411 cat >>confdefs.h
<<_ACEOF
30412 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30416 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30417 # of jit/jit-playback.c.
30418 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30419 echo "gcc_driver_version: ${gcc_driver_version}"
30420 cat > gcc-driver-name.h
<<EOF
30421 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30424 # Check whether --enable-default-pie was given.
30425 # Check whether --enable-default-pie was given.
30426 if test "${enable_default_pie+set}" = set; then :
30427 enableval
=$enable_default_pie; enable_default_pie
=$enableval
30429 enable_default_pie
=no
30432 if test x
$enable_default_pie = xyes
; then
30434 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30439 # Check if -fno-PIE works.
30440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30441 $as_echo_n "checking for -fno-PIE option... " >&6; }
30442 if ${gcc_cv_c_no_fpie+:} false
; then :
30443 $as_echo_n "(cached) " >&6
30445 saved_CXXFLAGS
="$CXXFLAGS"
30446 CXXFLAGS
="$CXXFLAGS -fno-PIE"
30447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30448 /* end confdefs.h. */
30449 int main(void) {return 0;}
30451 if ac_fn_cxx_try_compile
"$LINENO"; then :
30452 gcc_cv_c_no_fpie
=yes
30454 gcc_cv_c_no_fpie
=no
30456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30457 CXXFLAGS
="$saved_CXXFLAGS"
30459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30460 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30461 if test "$gcc_cv_c_no_fpie" = "yes"; then
30462 NO_PIE_CFLAGS
="-fno-PIE"
30466 # Check if -no-pie works.
30467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30468 $as_echo_n "checking for -no-pie option... " >&6; }
30469 if ${gcc_cv_no_pie+:} false
; then :
30470 $as_echo_n "(cached) " >&6
30472 saved_LDFLAGS
="$LDFLAGS"
30473 LDFLAGS
="$LDFLAGS -no-pie"
30474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30475 /* end confdefs.h. */
30476 int main(void) {return 0;}
30478 if ac_fn_cxx_try_link
"$LINENO"; then :
30483 rm -f core conftest.err conftest.
$ac_objext \
30484 conftest
$ac_exeext conftest.
$ac_ext
30485 LDFLAGS
="$saved_LDFLAGS"
30487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30488 $as_echo "$gcc_cv_no_pie" >&6; }
30489 if test "$gcc_cv_no_pie" = "yes"; then
30490 NO_PIE_FLAG
="-no-pie"
30494 # Check linker supports '-z bndplt'
30495 ld_bndplt_support
=no
30496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30497 $as_echo_n "checking linker -z bndplt option... " >&6; }
30498 if test x
"$ld_is_gold" = xno
; then
30499 if test $in_tree_ld = yes ; then
30500 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
30501 ld_bndplt_support
=yes
30503 elif test x
$gcc_cv_ld != x
; then
30504 # Check if linker supports -a bndplt option
30505 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
30506 ld_bndplt_support
=yes
30510 if test x
"$ld_bndplt_support" = xyes
; then
30512 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30516 $as_echo "$ld_bndplt_support" >&6; }
30518 # Check linker supports '--push-state'/'--pop-state'
30519 ld_pushpopstate_support
=no
30520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30521 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30522 if test x
"$ld_is_gold" = xno
; then
30523 if test $in_tree_ld = yes ; then
30524 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
30525 ld_pushpopstate_support
=yes
30527 elif test x
$gcc_cv_ld != x
; then
30528 # Check if linker supports --push-state/--pop-state options
30529 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
30530 ld_pushpopstate_support
=yes
30534 if test x
"$ld_pushpopstate_support" = xyes
; then
30536 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30540 $as_echo "$ld_pushpopstate_support" >&6; }
30542 # Configure the subdirectories
30543 # AC_CONFIG_SUBDIRS($subdirs)
30545 # Create the Makefile
30546 # and configure language subdirectories
30547 ac_config_files
="$ac_config_files $all_outputs"
30550 ac_config_commands
="$ac_config_commands default"
30552 cat >confcache
<<\_ACEOF
30553 # This file is a shell script that caches the results of configure
30554 # tests run on this system so they can be shared between configure
30555 # scripts and configure runs, see configure's option --config-cache.
30556 # It is not useful on other systems. If it contains results you don't
30557 # want to keep, you may remove or edit it.
30559 # config.status only pays attention to the cache file if you give it
30560 # the --recheck option to rerun configure.
30562 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30563 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30564 # following values.
30568 # The following way of writing the cache mishandles newlines in values,
30569 # but we know of no workaround that is simple, portable, and efficient.
30570 # So, we kill variables containing newlines.
30571 # Ultrix sh set writes to stderr and can't be redirected directly,
30572 # and sets the high bit in the cache file unless we assign to the vars.
30574 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30575 eval ac_val
=\$
$ac_var
30579 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30580 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30583 _ | IFS | as_nl
) ;; #(
30584 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
30585 *) { eval $ac_var=; unset $ac_var;} ;;
30591 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30592 *${as_nl}ac_space
=\
*)
30593 # `set' does not quote correctly, so add quotes: double-quote
30594 # substitution turns \\\\ into \\, and sed turns \\ into \.
30597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30600 # `set' quotes correctly as required by POSIX, so do not add quotes.
30601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30610 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30612 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30614 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
30615 if test -w "$cache_file"; then
30616 if test "x$cache_file" != "x/dev/null"; then
30617 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30618 $as_echo "$as_me: updating cache $cache_file" >&6;}
30619 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
30620 cat confcache
>"$cache_file"
30622 case $cache_file in #(
30624 mv -f confcache
"$cache_file"$$
&&
30625 mv -f "$cache_file"$$
"$cache_file" ;; #(
30627 mv -f confcache
"$cache_file" ;;
30632 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30633 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30638 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
30639 # Let make expand exec_prefix.
30640 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
30642 DEFS
=-DHAVE_CONFIG_H
30647 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
30648 # 1. Remove the extension, and $U if already installed.
30649 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
30650 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
30651 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30652 # will be set to the directory where LIBOBJS objects are built.
30653 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30654 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
30656 LIBOBJS
=$ac_libobjs
30658 LTLIBOBJS
=$ac_ltlibobjs
30663 : "${CONFIG_STATUS=./config.status}"
30665 ac_clean_files_save
=$ac_clean_files
30666 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
30667 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30668 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30670 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30672 # Generated by $as_me.
30673 # Run this file to recreate the current configuration.
30674 # Compiler output produced by configure, useful for debugging
30675 # configure, is in config.log if it exists.
30678 ac_cs_recheck=false
30681 SHELL=\${CONFIG_SHELL-$SHELL}
30684 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
30685 ## -------------------- ##
30686 ## M4sh Initialization. ##
30687 ## -------------------- ##
30689 # Be more Bourne compatible
30690 DUALCASE
=1; export DUALCASE
# for MKS sh
30691 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
30694 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30695 # is contrary to our usage. Disable this feature.
30696 alias -g '${1+"$@"}'='"$@"'
30697 setopt NO_GLOB_SUBST
30699 case `(set -o) 2>/dev/null` in #(
30711 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30712 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30713 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30714 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30715 # Prefer a ksh shell builtin over an external printf program on Solaris,
30716 # but without wasting forks for bash or zsh.
30717 if test -z "$BASH_VERSION$ZSH_VERSION" \
30718 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30719 as_echo='print
-r --'
30720 as_echo_n='print
-rn --'
30721 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30722 as_echo='printf %s
\n'
30723 as_echo_n='printf %s
'
30725 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30726 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
30727 as_echo_n='/usr
/ucb
/echo -n'
30729 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30730 as_echo_n_body='eval
30734 expr "X$arg" : "X\\(.*\\)$as_nl";
30735 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30737 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
30739 export as_echo_n_body
30740 as_echo_n='sh
-c $as_echo_n_body as_echo
'
30742 export as_echo_body
30743 as_echo='sh
-c $as_echo_body as_echo
'
30746 # The user is always right.
30747 if test "${PATH_SEPARATOR+set}" != set; then
30749 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30750 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30757 # We need space, tab and new line, in precisely that order. Quoting is
30758 # there to prevent editors from complaining about space-tab.
30759 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30760 # splitting by setting IFS to empty value.)
30763 # Find who we are. Look in the path if we contain no directory separator.
30766 *[\\/]* ) as_myself=$0 ;;
30767 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30768 for as_dir in $PATH
30771 test -z "$as_dir" && as_dir=.
30772 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30778 # We did not find ourselves, most probably we were run as `sh COMMAND'
30779 # in which case we are not to be found in the path.
30780 if test "x$as_myself" = x
; then
30783 if test ! -f "$as_myself"; then
30784 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30788 # Unset variables that we do not need and which cause bugs (e.g. in
30789 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30790 # suppresses any "Segmentation fault" message there. '((' could
30791 # trigger a bug in pdksh 5.2.14.
30792 for as_var
in BASH_ENV ENV MAIL MAILPATH
30793 do eval test x\
${$as_var+set} = xset \
30794 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
30807 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
30810 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30811 # ----------------------------------------
30812 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30813 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30814 # script with STATUS, using 1 if that was 0.
30817 as_status
=$1; test $as_status -eq 0 && as_status
=1
30819 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
30820 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30822 $as_echo "$as_me: error: $2" >&2
30823 as_fn_exit
$as_status
30827 # as_fn_set_status STATUS
30828 # -----------------------
30829 # Set $? to STATUS, without forking.
30830 as_fn_set_status
()
30833 } # as_fn_set_status
30835 # as_fn_exit STATUS
30836 # -----------------
30837 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30841 as_fn_set_status
$1
30847 # Portably unset VAR.
30850 { eval $1=; unset $1;}
30852 as_unset
=as_fn_unset
30853 # as_fn_append VAR VALUE
30854 # ----------------------
30855 # Append the text in VALUE to the end of the definition contained in VAR. Take
30856 # advantage of any shell optimizations that allow amortized linear growth over
30857 # repeated appends, instead of the typical quadratic growth present in naive
30859 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
30860 eval 'as_fn_append ()
30871 # as_fn_arith ARG...
30872 # ------------------
30873 # Perform arithmetic evaluation on the ARGs, and store the result in the
30874 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30875 # must be portable across $(()) and expr.
30876 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
30877 eval 'as_fn_arith ()
30884 as_val
=`expr "$@" || test $? -eq 1`
30889 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30890 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30896 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30897 as_basename
=basename
30902 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
30908 as_me
=`$as_basename -- "$0" ||
30909 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30910 X"$0" : 'X\(//\)$' \| \
30911 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30913 sed '/^.*\/\([^/][^/]*\)\/*$/{
30927 # Avoid depending upon Character Ranges.
30928 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
30929 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30930 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
30931 as_cr_digits
='0123456789'
30932 as_cr_alnum
=$as_cr_Letters$as_cr_digits
30934 ECHO_C
= ECHO_N
= ECHO_T
=
30935 case `echo -n x` in #(((((
30937 case `echo 'xy\c'` in
30938 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
30940 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
30947 rm -f conf$$ conf$$.exe conf$$.
file
30948 if test -d conf$$.dir
; then
30949 rm -f conf$$.dir
/conf$$.
file
30952 mkdir conf$$.dir
2>/dev
/null
30954 if (echo >conf$$.
file) 2>/dev
/null
; then
30955 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
30957 # ... but there are two gotchas:
30958 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30959 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30960 # In both cases, we have to default to `cp -pR'.
30961 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
30963 elif ln conf$$.
file conf$$
2>/dev
/null
; then
30971 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
30972 rmdir conf$$.dir
2>/dev
/null
30977 # Create "$as_dir" as a directory, including parents if necessary.
30982 -*) as_dir
=.
/$as_dir;;
30984 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
30988 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30989 *) as_qdir
=$as_dir;;
30991 as_dirs
="'$as_qdir' $as_dirs"
30992 as_dir
=`$as_dirname -- "$as_dir" ||
30993 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30994 X"$as_dir" : 'X\(//\)[^/]' \| \
30995 X"$as_dir" : 'X\(//\)$' \| \
30996 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30997 $as_echo X"$as_dir" |
30998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31002 /^X\(\/\/\)[^/].*/{
31015 test -d "$as_dir" && break
31017 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
31018 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
31022 if mkdir
-p .
2>/dev
/null
; then
31023 as_mkdir_p
='mkdir -p "$as_dir"'
31025 test -d .
/-p && rmdir .
/-p
31030 # as_fn_executable_p FILE
31031 # -----------------------
31032 # Test if FILE is an executable regular file.
31033 as_fn_executable_p
()
31035 test -f "$1" && test -x "$1"
31036 } # as_fn_executable_p
31037 as_test_x
='test -x'
31038 as_executable_p
=as_fn_executable_p
31040 # Sed expression to map a string onto a valid CPP name.
31041 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31043 # Sed expression to map a string onto a valid variable name.
31044 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31048 ## ----------------------------------- ##
31049 ## Main body of $CONFIG_STATUS script. ##
31050 ## ----------------------------------- ##
31052 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
31054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31055 # Save the log message, to keep $0 and so on meaningful, and to
31056 # report actual input values of CONFIG_FILES etc. instead of their
31057 # values after options handling.
31059 This file was extended by $as_me, which was
31060 generated by GNU Autoconf 2.69. Invocation command line was
31062 CONFIG_FILES = $CONFIG_FILES
31063 CONFIG_HEADERS = $CONFIG_HEADERS
31064 CONFIG_LINKS = $CONFIG_LINKS
31065 CONFIG_COMMANDS = $CONFIG_COMMANDS
31068 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31073 case $ac_config_files in *"
31074 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
31077 case $ac_config_headers in *"
31078 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
31082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31083 # Files that config.status was made for.
31084 config_files="$ac_config_files"
31085 config_headers="$ac_config_headers"
31086 config_links="$ac_config_links"
31087 config_commands="$ac_config_commands"
31091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31093 \`$as_me' instantiates files and other configuration actions
31094 from templates according to the current configuration. Unless the files
31095 and actions are specified as TAGs, all are instantiated by default.
31097 Usage: $0 [OPTION]... [TAG]...
31099 -h, --help print this help, then exit
31100 -V, --version print version number and configuration settings, then exit
31101 --config print configuration, then exit
31102 -q, --quiet, --silent
31103 do not print progress messages
31104 -d, --debug don't remove temporary files
31105 --recheck update $as_me by reconfiguring in the same conditions
31106 --file=FILE[:TEMPLATE]
31107 instantiate the configuration file FILE
31108 --header=FILE[:TEMPLATE]
31109 instantiate the configuration header FILE
31111 Configuration files:
31114 Configuration headers:
31117 Configuration links:
31120 Configuration commands:
31123 Report bugs to the package provider."
31126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31127 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31130 configured by $0, generated by GNU Autoconf 2.69,
31131 with options \\"\$ac_cs_config\\"
31133 Copyright (C) 2012 Free Software Foundation, Inc.
31134 This config.status script is free software; the Free Software Foundation
31135 gives unlimited permission to copy, distribute and modify it."
31140 test -n "\$AWK" || AWK=awk
31143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31144 # The default lists apply if the user does not specify any file.
31150 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31151 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
31155 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31167 # Handling of the options.
31168 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
31170 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
31171 $as_echo "$ac_cs_version"; exit ;;
31172 --config |
--confi |
--conf |
--con |
--co |
--c )
31173 $as_echo "$ac_cs_config"; exit ;;
31174 --debug |
--debu |
--deb |
--de |
--d |
-d )
31176 --file |
--fil |
--fi |
--f )
31179 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31180 '') as_fn_error $?
"missing file argument" ;;
31182 as_fn_append CONFIG_FILES
" '$ac_optarg'"
31183 ac_need_defaults
=false
;;
31184 --header |
--heade |
--head |
--hea )
31187 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31189 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
31190 ac_need_defaults
=false
;;
31192 # Conflict between --help and --header
31193 as_fn_error $?
"ambiguous option: \`$1'
31194 Try \`$0 --help' for more information.";;
31195 --help |
--hel |
-h )
31196 $as_echo "$ac_cs_usage"; exit ;;
31197 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
31198 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
31201 # This is an error.
31202 -*) as_fn_error $?
"unrecognized option: \`$1'
31203 Try \`$0 --help' for more information." ;;
31205 *) as_fn_append ac_config_targets
" $1"
31206 ac_need_defaults
=false
;;
31212 ac_configure_extra_args
=
31214 if $ac_cs_silent; then
31216 ac_configure_extra_args
="$ac_configure_extra_args --silent"
31220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31221 if \$ac_cs_recheck; then
31222 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31224 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31225 CONFIG_SHELL='$SHELL'
31226 export CONFIG_SHELL
31231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31235 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31236 ## Running $as_me. ##
31242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31246 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31247 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31254 # Handling of arguments.
31255 for ac_config_target
in $ac_config_targets
31257 case $ac_config_target in
31258 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
31259 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
31260 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
31261 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
31262 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
31263 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
31264 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
31265 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
31266 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
31268 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31273 # If the user did not use the arguments to specify the items to instantiate,
31274 # then the envvar interface is used. Set only those that are not.
31275 # We use the long form for the default assignment because of an extremely
31276 # bizarre bug on SunOS 4.1.3.
31277 if $ac_need_defaults; then
31278 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
31279 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
31280 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
31281 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
31284 # Have a temporary directory for convenience. Make it in the build tree
31285 # simply because there is no reason against having it here, and in addition,
31286 # creating and moving files from /tmp can sometimes cause problems.
31287 # Hook for its removal unless debugging.
31288 # Note that there is a small window in which the directory will not be cleaned:
31289 # after its creation but before its name has been assigned to `$tmp'.
31293 trap 'exit_status=$?
31294 : "${ac_tmp:=$tmp}"
31295 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31297 trap 'as_fn_exit 1' 1 2 13 15
31299 # Create a (secure) tmp directory for tmp files.
31302 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31306 tmp
=.
/conf$$
-$RANDOM
31307 (umask 077 && mkdir
"$tmp")
31308 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
31311 # Set up the scripts for CONFIG_FILES section.
31312 # No need to generate them if there are no CONFIG_FILES.
31313 # This happens for instance with `./config.status config.h'.
31314 if test -n "$CONFIG_FILES"; then
31316 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
31317 ac_cs_awk_getline
=:
31318 ac_cs_awk_pipe_init
=
31319 ac_cs_awk_read_file
='
31320 while ((getline aline < (F[key])) > 0)
31323 ac_cs_awk_pipe_fini
=
31325 ac_cs_awk_getline
=false
31326 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
31327 ac_cs_awk_read_file
='
31329 print "cat " F[key] " &&"
31330 '$ac_cs_awk_pipe_init
31331 # The final `:' finishes the AND list.
31332 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
31334 ac_cr
=`echo X | tr X '\015'`
31335 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31336 # But we know of no other shell where ac_cr would be empty at this
31337 # point, so we can use a bashism as a fallback.
31338 if test "x$ac_cr" = x
; then
31339 eval ac_cr
=\$
\'\\r
\'
31341 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31342 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31345 ac_cs_awk_cr
=$ac_cr
31348 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31351 # Create commands to substitute file output variables.
31353 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31354 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31355 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
31358 } >conf$
$files.sh
&&
31359 . .
/conf$
$files.sh ||
31360 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
31361 rm -f conf$
$files.sh
31364 echo "cat >conf$$subs.awk <<_ACEOF" &&
31365 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31367 } >conf$$subs.sh ||
31368 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31369 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31371 for ac_last_try in false false false false false :; do
31372 . ./conf$$subs.sh ||
31373 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31375 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
31376 if test $ac_delim_n = $ac_delim_num; then
31378 elif $ac_last_try; then
31379 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31381 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31384 rm -f conf$$subs.sh
31386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31387 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
31391 s/^/S["/; s
/!.
*/"]=/
31401 s/\(.\{148\}\)..*/\1/
31403 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
31408 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31415 s/\(.\{148\}\)..*/\1/
31417 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
31421 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31426 ' <conf$$subs.awk | sed '
31431 ' >>$CONFIG_STATUS || ac_write_fail=1
31432 rm -f conf$$subs.awk
31433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31435 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
31436 for (key in S) S_is_set[key] = 1
31438 \$ac_cs_awk_pipe_init
31442 nfields = split(line, field, "@
")
31444 len = length(field[1])
31445 for (i = 2; i < nfields; i++) {
31447 keylen = length(key)
31448 if (S_is_set[key]) {
31450 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31451 len += length(value) + length(field[++i])
31456 if (nfields == 3 && !substed) {
31458 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31459 \$ac_cs_awk_read_file
31465 \$ac_cs_awk_pipe_fini
31468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31469 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31470 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
31473 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
31474 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
31477 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31478 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
31479 # trailing colons and then remove the whole line if VPATH becomes empty
31480 # (actually we leave an empty line to preserve line numbers).
31481 if test "x
$srcdir" = x.; then
31482 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31501 fi # test -n "$CONFIG_FILES"
31503 # Set up the scripts for CONFIG_HEADERS section.
31504 # No need to generate them if there are no CONFIG_HEADERS.
31505 # This happens for instance with `./config.status Makefile'.
31506 if test -n "$CONFIG_HEADERS"; then
31507 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
31511 # Transform confdefs.h into an awk script `defines.awk', embedded as
31512 # here-document in config.status, that substitutes the proper values into
31513 # config.h.in to produce config.h.
31515 # Create a delimiter string that does not exist in confdefs.h, to ease
31516 # handling of long lines.
31518 for ac_last_try in false false :; do
31519 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
31520 if test -z "$ac_tt"; then
31522 elif $ac_last_try; then
31523 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
31525 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31529 # For the awk script, D is an array of macro values keyed by name,
31530 # likewise P contains macro parameters if any. Preserve backslash
31531 # newline sequences.
31533 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31535 s/.\{148\}/&'"$ac_delim"'/g
31538 s/^[ ]*#[ ]*define[ ][ ]*/ /
31545 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
31547 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
31551 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
31552 D["\
1"]=" \
3\\\\\\n
"\\/p
31554 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
31559 s/.\{148\}/&'"$ac_delim"'/g
31564 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
31567 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
31569 ' <confdefs.h | sed '
31570 s/'"$ac_delim"'/"\\\
31571 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31574 for (key in D) D_is_set[key] = 1
31577 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31579 split(line, arg, " ")
31580 if (arg[1] == "#") {
31584 defundef
= substr
(arg
[1], 2)
31587 split(mac1
, mac2
, "(") #)
31589 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
31590 if (D_is_set
[macro
]) {
31591 # Preserve the white space surrounding the "#".
31592 print prefix
"define", macro P
[macro
] D
[macro
]
31595 # Replace #undef with comments. This is necessary, for example,
31596 # in the case of _POSIX_SOURCE, which is predefined and required
31597 # on some systems where configure will not decide to define it.
31598 if (defundef
== "undef") {
31599 print
"/*", prefix defundef
, macro
, "*/"
31607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31608 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
31609 fi # test -n "$CONFIG_HEADERS"
31612 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31617 :[FHLC
]) ac_mode
=$ac_tag; continue;;
31619 case $ac_mode$ac_tag in
31621 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
31622 :[FH
]-) ac_tag
=-:-;;
31623 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
31640 -) ac_f
="$ac_tmp/stdin";;
31641 *) # Look for the file first in the build tree, then in the source tree
31642 # (if the path is not absolute). The absolute path cannot be DOS-style,
31643 # because $ac_f cannot contain `:'.
31647 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
31649 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31651 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31652 as_fn_append ac_file_inputs
" '$ac_f'"
31655 # Let's still pretend it is `configure' which instantiates (i.e., don't
31656 # use $as_me), people would be surprised to read:
31657 # /* config.h. Generated by config.status. */
31658 configure_input
='Generated from '`
31659 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31661 if test x
"$ac_file" != x-
; then
31662 configure_input
="$ac_file. $configure_input"
31663 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31664 $as_echo "$as_me: creating $ac_file" >&6;}
31666 # Neutralize special characters interpreted by sed in replacement strings.
31667 case $configure_input in #(
31668 *\
&* |
*\|
* |
*\\* )
31669 ac_sed_conf_input
=`$as_echo "$configure_input" |
31670 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31671 *) ac_sed_conf_input
=$configure_input;;
31675 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
31676 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
31681 ac_dir
=`$as_dirname -- "$ac_file" ||
31682 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31683 X"$ac_file" : 'X\(//\)[^/]' \| \
31684 X"$ac_file" : 'X\(//\)$' \| \
31685 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31686 $as_echo X"$ac_file" |
31687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31691 /^X\(\/\/\)[^/].*/{
31704 as_dir
="$ac_dir"; as_fn_mkdir_p
31708 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31710 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31711 # A ".." for each directory in $ac_dir_suffix.
31712 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31713 case $ac_top_builddir_sub in
31714 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31715 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
31718 ac_abs_top_builddir
=$ac_pwd
31719 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
31720 # for backward compatibility:
31721 ac_top_builddir
=$ac_top_build_prefix
31724 .
) # We are building in place.
31726 ac_top_srcdir
=$ac_top_builddir_sub
31727 ac_abs_top_srcdir
=$ac_pwd ;;
31728 [\\/]* | ?
:[\\/]* ) # Absolute name.
31729 ac_srcdir
=$srcdir$ac_dir_suffix;
31730 ac_top_srcdir
=$srcdir
31731 ac_abs_top_srcdir
=$srcdir ;;
31732 *) # Relative name.
31733 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
31734 ac_top_srcdir
=$ac_top_build_prefix$srcdir
31735 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
31737 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
31748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31749 # If the template does not know about datarootdir, expand it.
31750 # FIXME: This hack should be removed a few years after 2.60.
31751 ac_datarootdir_hack
=; ac_datarootdir_seen
=
31762 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31763 *datarootdir
*) ac_datarootdir_seen
=yes;;
31764 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
31765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31766 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31769 ac_datarootdir_hack='
31770 s&@datadir@&$datadir&g
31771 s&@docdir@&$docdir&g
31772 s&@infodir@&$infodir&g
31773 s&@localedir@&$localedir&g
31774 s&@mandir@&$mandir&g
31775 s&\\\${datarootdir}&$datarootdir&g' ;;
31779 # Neutralize VPATH when `$srcdir' = `.'.
31780 # Shell code in configure.ac might set extrasub.
31781 # FIXME: do we really want to maintain this feature?
31782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31783 ac_sed_extra="$ac_vpsub
31786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31788 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
31789 s|@configure_input@|
$ac_sed_conf_input|
;t t
31790 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
31791 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
31792 s
&@srcdir@
&$ac_srcdir&;t t
31793 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
31794 s
&@top_srcdir@
&$ac_top_srcdir&;t t
31795 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
31796 s
&@builddir@
&$ac_builddir&;t t
31797 s
&@abs_builddir@
&$ac_abs_builddir&;t t
31798 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
31799 $ac_datarootdir_hack
31801 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31802 if $ac_cs_awk_getline; then
31803 $AWK -f "$ac_tmp/subs.
awk"
31805 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
31807 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
31809 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31810 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
31811 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
31812 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
31813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
31814 which seems to be undefined. Please make sure it is defined" >&5
31815 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
31816 which seems to be undefined. Please make sure it is defined" >&2;}
31818 rm -f "$ac_tmp/stdin"
31820 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31821 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31823 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31829 if test x"$ac_file" != x-; then
31831 $as_echo "/* $configure_input */" \
31832 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31833 } >"$ac_tmp/config.h" \
31834 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31835 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31836 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31837 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31840 mv "$ac_tmp/config.h" "$ac_file" \
31841 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31844 $as_echo "/* $configure_input */" \
31845 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31846 || as_fn_error $? "could not create -" "$LINENO" 5
31854 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
31857 # Prefer the file from the source tree if names are identical.
31858 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31859 ac_source=$srcdir/$ac_source
31862 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31863 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31865 if test ! -r "$ac_source"; then
31866 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
31870 # Try a relative symlink, then a hard link, then a copy.
31872 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31873 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31875 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31876 ln "$ac_source" "$ac_file" 2>/dev/null ||
31877 cp -p "$ac_source" "$ac_file" ||
31878 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31881 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31882 $as_echo "$as_me: executing $ac_file commands" >&6;}
31887 case $ac_file$ac_mode in
31888 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31890 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31891 for lang in $subdirs c-family common
31893 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31895 "as":F) chmod +x as ;;
31896 "collect-ld":F) chmod +x collect-ld ;;
31897 "nm":F) chmod +x nm ;;
31899 case ${CONFIG_HEADERS} in
31900 *auto-host.h:config.in*)
31903 # Make sure all the subdirs exist.
31904 for d in $subdirs doc build common c-family
31906 test -d $d || mkdir $d
31916 ac_clean_files=$ac_clean_files_save
31918 test $ac_write_fail = 0 ||
31919 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
31922 # configure is writing to config.log, and then calls config.status.
31923 # config.status does its own redirection, appending to config.log.
31924 # Unfortunately, on DOS this fails, as config.log is still kept open
31925 # by configure, so config.status won't be able to
write to it
; its
31926 # output is simply discarded. So we exec the FD to /dev/null,
31927 # effectively closing config.log, so it can be properly (re)opened and
31928 # appended to by config.status. When coming back to configure, we
31929 # need to make the FD available again.
31930 if test "$no_create" != yes; then
31932 ac_config_status_args
=
31933 test "$silent" = yes &&
31934 ac_config_status_args
="$ac_config_status_args --quiet"
31936 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
31938 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31939 # would make configure fail if this is the last instruction.
31940 $ac_cs_success || as_fn_exit
1
31942 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
31943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31944 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}