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
="gcc.cc"
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
662 common_out_object_file
678 gcc_gxx_libcxx_include_dir_add_sysroot
679 gcc_gxx_libcxx_include_dir
680 gcc_gxx_include_dir_add_sysroot
687 user_headers_inc_next_post
688 user_headers_inc_next_pre
690 TM_MULTILIB_EXCEPTIONS_CONFIG
700 build_xm_include_list
702 build_install_headers_dir
704 all_selected_languages
707 all_lang_configurefrags
715 DO_LINK_SERIALIZATION
726 ld_version_script_option
728 ORIGINAL_DSYMUTIL_FOR_TARGET
733 ORIGINAL_NM_FOR_TARGET
735 ORIGINAL_LD_GOLD_FOR_TARGET
736 ORIGINAL_LD_BFD_FOR_TARGET
737 ORIGINAL_LD_FOR_TARGET
738 ORIGINAL_PLUGIN_LD_FOR_TARGET
740 ORIGINAL_AS_FOR_TARGET
765 BUILD_SYSTEM_HEADER_DIR
785 NATIVE_SYSTEM_HEADER_DIR
823 omp_device_property_deps
824 omp_device_properties
826 real_target_noncanonical
827 enable_as_accelerator
843 valgrind_path_defines
872 CROSS_SYSTEM_HEADER_DIR
873 TARGET_SYSTEM_ROOT_DEFINE
875 SYSROOT_CFLAGS_FOR_TARGET
921 program_transform_name
932 ac_subst_files
='option_includes
935 enable_option_checking
938 with_native_system_header_dir
942 with_gxx_libcxx_include_dir
944 enable_generated_files_in_srcdir
952 enable_build_format_warnings
956 enable_gather_detailed_mem_stats
957 enable_valgrind_annotations
960 with_stack_clash_protection_guard_size
975 with_documentation_root_url
976 with_changes_root_url
979 with_multilib_generator
986 enable_sjlj_exceptions
987 with_gcc_major_version_only
989 enable_mingw_wildcard
990 enable_large_address_aware
991 enable_leading_mingw64_underscores
994 enable_win32_registry
1002 enable_gnu_indirect_function
1003 enable_initfini_array
1004 enable_newlib_nano_formatted_io
1005 enable_linker_build_id
1008 with_long_double_128
1009 with_long_double_format
1012 enable_maintainer_mode
1014 enable_link_serialization
1015 enable_version_specific_runtime_libs
1017 enable_libquadmath_support
1018 with_linker_hash_style
1019 with_diagnostics_color
1020 with_diagnostics_urls
1023 enable_s390_excess_float_precision
1025 ac_precious_vars
='build_alias
1044 # Initialize some variables set by options.
1046 ac_init_version
=false
1047 ac_unrecognized_opts
=
1048 ac_unrecognized_sep
=
1049 # The variables have the same names as the options, with
1050 # dashes changed to underlines.
1051 cache_file
=/dev
/null
1058 program_transform_name
=s
,x
,x
,
1066 # Installation directory options.
1067 # These are left unexpanded so users can "make install exec_prefix=/foo"
1068 # and all the variables that are supposed to be based on exec_prefix
1069 # by default will actually change.
1070 # Use braces instead of parens because sh, perl, etc. also accept them.
1071 # (The list follows the same order as the GNU Coding Standards.)
1072 bindir
='${exec_prefix}/bin'
1073 sbindir
='${exec_prefix}/sbin'
1074 libexecdir
='${exec_prefix}/libexec'
1075 datarootdir
='${prefix}/share'
1076 datadir
='${datarootdir}'
1077 sysconfdir
='${prefix}/etc'
1078 sharedstatedir
='${prefix}/com'
1079 localstatedir
='${prefix}/var'
1080 includedir
='${prefix}/include'
1081 oldincludedir
='/usr/include'
1082 docdir
='${datarootdir}/doc/${PACKAGE}'
1083 infodir
='${datarootdir}/info'
1088 libdir
='${exec_prefix}/lib'
1089 localedir
='${datarootdir}/locale'
1090 mandir
='${datarootdir}/man'
1096 # If the previous option needs an argument, assign it.
1097 if test -n "$ac_prev"; then
1098 eval $ac_prev=\
$ac_option
1104 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1109 # Accept the important Cygnus configure options, so we can diagnose typos.
1111 case $ac_dashdash$ac_option in
1115 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1117 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1118 bindir
=$ac_optarg ;;
1120 -build |
--build |
--buil |
--bui |
--bu)
1121 ac_prev
=build_alias
;;
1122 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1123 build_alias
=$ac_optarg ;;
1125 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1126 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1127 ac_prev
=cache_file
;;
1128 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1129 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1130 cache_file
=$ac_optarg ;;
1132 --config-cache |
-C)
1133 cache_file
=config.cache
;;
1135 -datadir |
--datadir |
--datadi |
--datad)
1137 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1138 datadir
=$ac_optarg ;;
1140 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1141 |
--dataroo |
--dataro |
--datar)
1142 ac_prev
=datarootdir
;;
1143 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1144 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1145 datarootdir
=$ac_optarg ;;
1147 -disable-* |
--disable-*)
1148 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1151 as_fn_error $?
"invalid feature name: $ac_useropt"
1152 ac_useropt_orig
=$ac_useropt
1153 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1156 "enable_
$ac_useropt"
1158 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1159 ac_unrecognized_sep
=', ';;
1161 eval enable_
$ac_useropt=no
;;
1163 -docdir |
--docdir |
--docdi |
--doc |
--do)
1165 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1166 docdir
=$ac_optarg ;;
1168 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1170 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1171 dvidir
=$ac_optarg ;;
1173 -enable-* |
--enable-*)
1174 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1177 as_fn_error $?
"invalid feature name: $ac_useropt"
1178 ac_useropt_orig
=$ac_useropt
1179 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1182 "enable_
$ac_useropt"
1184 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1185 ac_unrecognized_sep
=', ';;
1187 eval enable_
$ac_useropt=\
$ac_optarg ;;
1189 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1190 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1191 |
--exec |
--exe |
--ex)
1192 ac_prev
=exec_prefix
;;
1193 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1194 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1195 |
--exec=* |
--exe=* |
--ex=*)
1196 exec_prefix
=$ac_optarg ;;
1198 -gas |
--gas |
--ga |
--g)
1199 # Obsolete; use --with-gas.
1202 -help |
--help |
--hel |
--he |
-h)
1203 ac_init_help
=long
;;
1204 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1205 ac_init_help
=recursive
;;
1206 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1207 ac_init_help
=short
;;
1209 -host |
--host |
--hos |
--ho)
1210 ac_prev
=host_alias
;;
1211 -host=* |
--host=* |
--hos=* |
--ho=*)
1212 host_alias
=$ac_optarg ;;
1214 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1216 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1218 htmldir
=$ac_optarg ;;
1220 -includedir |
--includedir |
--includedi |
--included |
--include \
1221 |
--includ |
--inclu |
--incl |
--inc)
1222 ac_prev
=includedir
;;
1223 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1224 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1225 includedir
=$ac_optarg ;;
1227 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1229 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1230 infodir
=$ac_optarg ;;
1232 -libdir |
--libdir |
--libdi |
--libd)
1234 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1235 libdir
=$ac_optarg ;;
1237 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1238 |
--libexe |
--libex |
--libe)
1239 ac_prev
=libexecdir
;;
1240 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1241 |
--libexe=* |
--libex=* |
--libe=*)
1242 libexecdir
=$ac_optarg ;;
1244 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1245 ac_prev
=localedir
;;
1246 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1247 localedir
=$ac_optarg ;;
1249 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1250 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1251 ac_prev
=localstatedir
;;
1252 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1253 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1254 localstatedir
=$ac_optarg ;;
1256 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1258 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1259 mandir
=$ac_optarg ;;
1261 -nfp |
--nfp |
--nf)
1262 # Obsolete; use --without-fp.
1265 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1266 |
--no-cr |
--no-c |
-n)
1269 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1270 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1273 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1274 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1275 |
--oldin |
--oldi |
--old |
--ol |
--o)
1276 ac_prev
=oldincludedir
;;
1277 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1278 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1279 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1280 oldincludedir
=$ac_optarg ;;
1282 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1284 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1285 prefix
=$ac_optarg ;;
1287 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1288 |
--program-pre |
--program-pr |
--program-p)
1289 ac_prev
=program_prefix
;;
1290 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1291 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1292 program_prefix
=$ac_optarg ;;
1294 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1295 |
--program-suf |
--program-su |
--program-s)
1296 ac_prev
=program_suffix
;;
1297 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1298 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1299 program_suffix
=$ac_optarg ;;
1301 -program-transform-name |
--program-transform-name \
1302 |
--program-transform-nam |
--program-transform-na \
1303 |
--program-transform-n |
--program-transform- \
1304 |
--program-transform |
--program-transfor \
1305 |
--program-transfo |
--program-transf \
1306 |
--program-trans |
--program-tran \
1307 |
--progr-tra |
--program-tr |
--program-t)
1308 ac_prev
=program_transform_name
;;
1309 -program-transform-name=* |
--program-transform-name=* \
1310 |
--program-transform-nam=* |
--program-transform-na=* \
1311 |
--program-transform-n=* |
--program-transform-=* \
1312 |
--program-transform=* |
--program-transfor=* \
1313 |
--program-transfo=* |
--program-transf=* \
1314 |
--program-trans=* |
--program-tran=* \
1315 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1316 program_transform_name
=$ac_optarg ;;
1318 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1320 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1321 pdfdir
=$ac_optarg ;;
1323 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1325 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1328 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1329 |
-silent |
--silent |
--silen |
--sile |
--sil)
1332 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1334 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1336 sbindir
=$ac_optarg ;;
1338 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1339 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1340 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1342 ac_prev
=sharedstatedir
;;
1343 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1344 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1345 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1347 sharedstatedir
=$ac_optarg ;;
1349 -site |
--site |
--sit)
1351 -site=* |
--site=* |
--sit=*)
1354 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1356 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1357 srcdir
=$ac_optarg ;;
1359 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1360 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1361 ac_prev
=sysconfdir
;;
1362 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1363 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1364 sysconfdir
=$ac_optarg ;;
1366 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1367 ac_prev
=target_alias
;;
1368 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1369 target_alias
=$ac_optarg ;;
1371 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1374 -version |
--version |
--versio |
--versi |
--vers |
-V)
1375 ac_init_version
=: ;;
1378 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1379 # Reject names that are not valid shell variable names.
1380 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1381 as_fn_error $?
"invalid package name: $ac_useropt"
1382 ac_useropt_orig
=$ac_useropt
1383 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1384 case $ac_user_opts in
1388 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1389 ac_unrecognized_sep
=', ';;
1391 eval with_
$ac_useropt=\
$ac_optarg ;;
1393 -without-* |
--without-*)
1394 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1395 # Reject names that are not valid shell variable names.
1396 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1397 as_fn_error $?
"invalid package name: $ac_useropt"
1398 ac_useropt_orig
=$ac_useropt
1399 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1400 case $ac_user_opts in
1404 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1405 ac_unrecognized_sep
=', ';;
1407 eval with_
$ac_useropt=no
;;
1410 # Obsolete; use --with-x.
1413 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1414 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1415 ac_prev
=x_includes
;;
1416 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1417 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1418 x_includes
=$ac_optarg ;;
1420 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1421 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1422 ac_prev
=x_libraries
;;
1423 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1424 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1425 x_libraries
=$ac_optarg ;;
1427 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1428 Try \`$0 --help' for more information"
1432 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1433 # Reject names that are not valid shell variable names.
1434 case $ac_envvar in #(
1435 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1436 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1438 eval $ac_envvar=\
$ac_optarg
1439 export $ac_envvar ;;
1442 # FIXME: should be removed in autoconf 3.0.
1443 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1444 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1445 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1446 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1452 if test -n "$ac_prev"; then
1453 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1454 as_fn_error $?
"missing argument to $ac_option"
1457 if test -n "$ac_unrecognized_opts"; then
1458 case $enable_option_checking in
1460 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1461 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1465 # Check all directory arguments for consistency.
1466 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1467 datadir sysconfdir sharedstatedir localstatedir includedir \
1468 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1469 libdir localedir mandir
1471 eval ac_val
=\$
$ac_var
1472 # Remove trailing slashes.
1475 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1476 eval $ac_var=\
$ac_val;;
1478 # Be sure to have absolute directory names.
1480 [\\/$
]* | ?
:[\\/]* ) continue;;
1481 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1483 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1486 # There might be people who depend on the old broken behavior: `$host'
1487 # used to hold the argument of --host etc.
1488 # FIXME: To remove some day.
1491 target
=$target_alias
1493 # FIXME: To remove some day.
1494 if test "x$host_alias" != x
; then
1495 if test "x$build_alias" = x
; then
1496 cross_compiling
=maybe
1497 elif test "x$build_alias" != "x$host_alias"; then
1503 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1505 test "$silent" = yes && exec 6>/dev
/null
1508 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1509 ac_ls_di
=`ls -di .` &&
1510 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1511 as_fn_error $?
"working directory cannot be determined"
1512 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1513 as_fn_error $?
"pwd does not report name of working directory"
1516 # Find the source files, if location was not specified.
1517 if test -z "$srcdir"; then
1518 ac_srcdir_defaulted
=yes
1519 # Try the directory containing this script, then the parent directory.
1520 ac_confdir
=`$as_dirname -- "$as_myself" ||
1521 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1522 X"$as_myself" : 'X\(//\)[^/]' \| \
1523 X"$as_myself" : 'X\(//\)$' \| \
1524 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1525 $as_echo X"$as_myself" |
1526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1544 if test ! -r "$srcdir/$ac_unique_file"; then
1548 ac_srcdir_defaulted
=no
1550 if test ! -r "$srcdir/$ac_unique_file"; then
1551 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1552 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1554 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1556 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1558 # When building in place, set srcdir=.
1559 if test "$ac_abs_confdir" = "$ac_pwd"; then
1562 # Remove unnecessary trailing slashes from srcdir.
1563 # Double slashes in file names in object file debugging info
1564 # mess up M-x gdb in Emacs.
1566 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1568 for ac_var
in $ac_precious_vars; do
1569 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1570 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1571 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1572 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1576 # Report the --help message.
1578 if test "$ac_init_help" = "long"; then
1579 # Omit some internal or obsolete options to make the list less imposing.
1580 # This message is too long to be a string in the A/UX 3.1 sh.
1582 \`configure' configures this package to adapt to many kinds of systems.
1584 Usage: $0 [OPTION]... [VAR=VALUE]...
1586 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1587 VAR=VALUE. See below for descriptions of some of the useful variables.
1589 Defaults for the options are specified in brackets.
1592 -h, --help display this help and exit
1593 --help=short display options specific to this package
1594 --help=recursive display the short help of all the included packages
1595 -V, --version display version information and exit
1596 -q, --quiet, --silent do not print \`checking ...' messages
1597 --cache-file=FILE cache test results in FILE [disabled]
1598 -C, --config-cache alias for \`--cache-file=config.cache'
1599 -n, --no-create do not create output files
1600 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1602 Installation directories:
1603 --prefix=PREFIX install architecture-independent files in PREFIX
1604 [$ac_default_prefix]
1605 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1608 By default, \`make install' will install all the files in
1609 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1610 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1611 for instance \`--prefix=\$HOME'.
1613 For better control, use the options below.
1615 Fine tuning of the installation directories:
1616 --bindir=DIR user executables [EPREFIX/bin]
1617 --sbindir=DIR system admin executables [EPREFIX/sbin]
1618 --libexecdir=DIR program executables [EPREFIX/libexec]
1619 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1620 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1621 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1622 --libdir=DIR object code libraries [EPREFIX/lib]
1623 --includedir=DIR C header files [PREFIX/include]
1624 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1625 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1626 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1627 --infodir=DIR info documentation [DATAROOTDIR/info]
1628 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1629 --mandir=DIR man documentation [DATAROOTDIR/man]
1630 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1631 --htmldir=DIR html documentation [DOCDIR]
1632 --dvidir=DIR dvi documentation [DOCDIR]
1633 --pdfdir=DIR pdf documentation [DOCDIR]
1634 --psdir=DIR ps documentation [DOCDIR]
1640 --program-prefix=PREFIX prepend PREFIX to installed program names
1641 --program-suffix=SUFFIX append SUFFIX to installed program names
1642 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1645 --build=BUILD configure
for building on BUILD
[guessed
]
1646 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1647 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1651 if test -n "$ac_init_help"; then
1656 --disable-option-checking ignore unrecognized
--enable/--with options
1657 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1658 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1659 --enable-generated-files-in-srcdir
1660 put copies of generated files
in source dir intended
1661 for creating
source tarballs
for users without
1662 texinfo bison or flex
1663 --disable-largefile omit support
for large files
1664 --disable-build-format-warnings
1665 don
't use -Wformat while building GCC
1666 --enable-werror-always enable -Werror despite compiler version
1667 --enable-checking[=LIST]
1668 enable expensive run-time checks. With LIST, enable
1669 only specific categories of checks. Categories are:
1670 yes,no,all,none,release. Flags are:
1671 assert,df,extra,fold,gc,gcac,gimple,misc,
1672 rtlflag,rtl,runtime,tree,valgrind,types
1673 --enable-coverage[=LEVEL]
1674 enable compiler's code coverage collection. Use to
1675 measure compiler performance and
locate unused parts
1676 of the compiler. With LEVEL
, specify optimization.
1677 Values are opt
, noopt
, default is noopt
1678 --enable-gather-detailed-mem-stats
1679 enable detailed memory allocation stats gathering
1680 --enable-valgrind-annotations
1681 enable valgrind runtime interaction
1682 --enable-multilib enable library support
for multiple ABIs
1683 --enable-multiarch enable support
for multiarch paths
1684 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1685 --enable-decimal-float={no
,yes,bid
,dpd
}
1686 enable decimal float extension to C. Selecting
'bid'
1687 or
'dpd' choses
which decimal floating point format
1689 --enable-fixed-point enable fixed-point arithmetic extension to C
1690 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1692 --enable-tls enable or disable generation of tls code overriding
1693 the assembler check
for tls support
1694 --enable-vtable-verify enable vtable verification feature
1695 --disable-analyzer disable
-fanalyzer static analyzer
1696 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1697 GNU Objective-C runtime
1698 --disable-shared don't provide a shared libgcc
1699 --disable-gcov don
't provide libgcov and related host tools
1700 --enable-languages=LIST specify which front-ends to build
1701 --disable-rpath do not hardcode runtime library paths
1702 --enable-sjlj-exceptions
1703 arrange to use setjmp/longjmp exception handling
1704 --enable-secureplt enable -msecure-plt by default for PowerPC
1705 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1706 Default to platform configuration
1707 --enable-large-address-aware
1708 Link mingw executables with --large-address-aware
1709 --enable-leading-mingw64-underscores
1710 enable leading underscores on 64 bit mingw targets
1711 --enable-cld enable -mcld by default for 32bit x86
1712 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1713 --disable-win32-registry
1714 disable lookup of installation paths in the Registry
1716 --enable-win32-registry enable registry lookup (default)
1717 --enable-win32-registry=KEY
1718 use KEY instead of GCC version as the last portion
1720 --enable-shared[=PKGS] build shared libraries [default=yes]
1721 --enable-static[=PKGS] build static libraries [default=yes]
1722 --enable-fast-install[=PKGS]
1723 optimize for fast installation [default=yes]
1724 --disable-libtool-lock avoid locking (might break parallel builds)
1725 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1726 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1727 --enable-gnu-indirect-function
1728 enable the use of the @gnu_indirect_function to
1730 --enable-initfini-array use .init_array/.fini_array sections
1731 --enable-newlib-nano-formatted-io
1732 Use nano version formatted IO
1733 --enable-linker-build-id
1734 compiler will always pass --build-id to linker
1735 --enable-libssp enable linking against libssp
1736 --enable-default-ssp enable Stack Smashing Protection as default
1737 --enable-maintainer-mode
1738 enable make rules and dependencies not useful (and
1739 sometimes confusing) to the casual installer
1740 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1741 thrashing on the build machine
1742 --enable-link-serialization
1743 avoid linking multiple GCC front-ends at once using
1744 make dependencies to avoid thrashing on the build
1746 --enable-version-specific-runtime-libs
1747 specify that runtime libraries should be installed
1748 in a compiler-specific directory
1749 --enable-host-shared build host code as shared libraries
1750 --disable-libquadmath-support
1751 disable libquadmath support for Fortran
1752 --enable-default-pie enable Position Independent Executable as default
1753 --enable-cet enable Intel CET in host libraries [default=auto]
1754 --enable-s390-excess-float-precision
1755 on s390 targets, evaluate float with double
1756 precision when in standards-conforming mode
1759 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1760 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1761 --with-build-libsubdir=DIR Directory where to find libraries for build system
1762 --with-local-prefix=DIR specifies directory to put local include
1763 --with-native-system-header-dir=dir
1764 use dir as the directory to look for standard
1765 system header files in. Defaults to /usr/include.
1766 --with-build-sysroot=sysroot
1767 use sysroot as the system root during the build
1768 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1769 --with-gxx-include-dir=DIR
1770 specifies directory to put g++ header files
1771 --with-gxx-libcxx-include-dir=DIR
1772 specifies directory to find libc++ header files
1773 --with-cpp-install-dir=DIR
1774 install the user visible C preprocessor in DIR
1775 (relative to PREFIX) as well as PREFIX/bin
1776 --with-gnu-ld arrange to work with GNU ld
1777 --with-ld arrange to use the specified ld (full pathname)
1778 --with-demangler-in-ld try to use demangler in GNU ld
1779 --with-dsymutil arrange to use the specified dsymutil (full
1781 --with-gnu-as arrange to work with GNU as
1782 --with-as arrange to use the specified as (full pathname)
1783 --with-stack-clash-protection-guard-size=size
1784 Set the default stack clash protection guard size
1785 for specific targets as a power of two in bytes.
1786 --with-dwarf2 force the default debug format to be DWARF 2
1787 --with-specs=SPECS add SPECS to driver command-line processing
1788 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1789 --with-bugurl=URL Direct users to URL to report a bug
1790 --with-documentation-root-url=URL
1791 Root for documentation URLs
1792 --with-changes-root-url=URL
1793 Root for GCC changes URLs
1794 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1796 --with-multilib-generator
1797 Multi-libs configuration string (RISC-V 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-libiconv-type=TYPE
type of library to search
for (auto
/static
/shared
)
1808 --with-gcc-major-version-only
1809 use only GCC major number
in filesystem paths
1810 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1812 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1813 --with-plugin-ld=[ARG
] specify the plugin linker
1814 --with-long-double-128 use
128-bit long double by default
1815 --with-long-double-format={ieee
,ibm
}
1816 Specify whether PowerPC long double uses IEEE or IBM format
1818 --with-gc={page
,zone
} this option is not supported anymore. It used to
1819 choose the garbage collection mechanism to use with
1821 --with-system-zlib use installed libz
1822 --with-linker-hash-style={sysv
,gnu
,both
}
1823 specify the linker
hash style
1824 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1825 specify the default of
-fdiagnostics-color option
1826 auto-if-env stands
for -fdiagnostics-color=auto
if
1827 GCC_COLOR environment variable is present and
1828 -fdiagnostics-color=never otherwise
1829 --with-diagnostics-urls={never
,auto
,auto-if-env
,always
}
1830 specify the default of
-fdiagnostics-urls option
1831 auto-if-env stands
for -fdiagnostics-urls=auto
if
1832 GCC_URLS or TERM_URLS environment variable is
1833 present and
-fdiagnostics-urls=never otherwise
1835 Some influential environment variables
:
1836 CC C compiler
command
1837 CFLAGS C compiler flags
1838 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1839 nonstandard directory
<lib dir
>
1840 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1841 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1842 you have headers
in a nonstandard directory
<include dir
>
1843 CXX C
++ compiler
command
1844 CXXFLAGS C
++ compiler flags
1845 CXXCPP C
++ preprocessor
1847 GMPLIBS How to link GMP
1848 GMPINC How to
find GMP include files
1849 ISLLIBS How to link isl
1850 ISLINC How to
find isl include files
1852 Use these variables to override the choices made by
`configure' or to help
1853 it to find libraries and programs with nonstandard names/locations.
1855 Report bugs to the package provider.
1860 if test "$ac_init_help" = "recursive"; then
1861 # If there are subdirs, report their specific --help.
1862 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1863 test -d "$ac_dir" ||
1864 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1869 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1871 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1872 # A ".." for each directory in $ac_dir_suffix.
1873 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1874 case $ac_top_builddir_sub in
1875 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1876 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1879 ac_abs_top_builddir=$ac_pwd
1880 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1881 # for backward compatibility:
1882 ac_top_builddir=$ac_top_build_prefix
1885 .) # We are building in place.
1887 ac_top_srcdir=$ac_top_builddir_sub
1888 ac_abs_top_srcdir=$ac_pwd ;;
1889 [\\/]* | ?:[\\/]* ) # Absolute name.
1890 ac_srcdir=$srcdir$ac_dir_suffix;
1891 ac_top_srcdir=$srcdir
1892 ac_abs_top_srcdir=$srcdir ;;
1894 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1895 ac_top_srcdir=$ac_top_build_prefix$srcdir
1896 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1898 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1900 cd "$ac_dir" || { ac_status=$?; continue; }
1901 # Check for guested configure.
1902 if test -f "$ac_srcdir/configure.gnu"; then
1904 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1905 elif test -f "$ac_srcdir/configure"; then
1907 $SHELL "$ac_srcdir/configure" --help=recursive
1909 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1911 cd "$ac_pwd" || { ac_status=$?; break; }
1915 test -n "$ac_init_help" && exit $ac_status
1916 if $ac_init_version; then
1919 generated by GNU Autoconf 2.69
1921 Copyright (C) 2012 Free Software Foundation, Inc.
1922 This configure script is free software; the Free Software Foundation
1923 gives unlimited permission to copy, distribute and modify it.
1928 ## ------------------------ ##
1929 ## Autoconf initialization. ##
1930 ## ------------------------ ##
1932 # ac_fn_c_try_compile LINENO
1933 # --------------------------
1934 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1935 ac_fn_c_try_compile ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 rm -f conftest.$ac_objext
1939 if { { ac_try="$ac_compile"
1941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1942 *) ac_try_echo
=$ac_try;;
1944 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 $as_echo "$ac_try_echo"; } >&5
1946 (eval "$ac_compile") 2>conftest.err
1948 if test -s conftest.err
; then
1949 grep -v '^ *+' conftest.err
>conftest.er1
1950 cat conftest.er1
>&5
1951 mv -f conftest.er1 conftest.err
1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954 test $ac_status = 0; } && {
1955 test -z "$ac_c_werror_flag" ||
1956 test ! -s conftest.err
1957 } && test -s conftest.
$ac_objext; then :
1960 $as_echo "$as_me: failed program was:" >&5
1961 sed 's/^/| /' conftest.
$ac_ext >&5
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966 as_fn_set_status
$ac_retval
1968 } # ac_fn_c_try_compile
1970 # ac_fn_cxx_try_compile LINENO
1971 # ----------------------------
1972 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1973 ac_fn_cxx_try_compile
()
1975 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1976 rm -f conftest.
$ac_objext
1977 if { { ac_try
="$ac_compile"
1979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1980 *) ac_try_echo=$ac_try;;
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983 $as_echo "$ac_try_echo"; } >&5
1984 (eval "$ac_compile") 2>conftest.err
1986 if test -s conftest.err; then
1987 grep -v '^ *+' conftest.err >conftest.er1
1988 cat conftest.er1 >&5
1989 mv -f conftest.er1 conftest.err
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; } && {
1993 test -z "$ac_cxx_werror_flag" ||
1994 test ! -s conftest.err
1995 } && test -s conftest.$ac_objext; then :
1998 $as_echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 as_fn_set_status $ac_retval
2006 } # ac_fn_cxx_try_compile
2008 # ac_fn_cxx_try_cpp LINENO
2009 # ------------------------
2010 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2011 ac_fn_cxx_try_cpp ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 if { { ac_try="$ac_cpp conftest.$ac_ext"
2016 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2017 *) ac_try_echo
=$ac_try;;
2019 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020 $as_echo "$ac_try_echo"; } >&5
2021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2023 if test -s conftest.err
; then
2024 grep -v '^ *+' conftest.err
>conftest.er1
2025 cat conftest.er1
>&5
2026 mv -f conftest.er1 conftest.err
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; } > conftest.i
&& {
2030 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2031 test ! -s conftest.err
2035 $as_echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.
$ac_ext >&5
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 as_fn_set_status
$ac_retval
2043 } # ac_fn_cxx_try_cpp
2045 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2046 # ---------------------------------------------------------
2047 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2048 # the include files in INCLUDES and setting the cache variable VAR
2050 ac_fn_cxx_check_header_mongrel
()
2052 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2053 if eval \
${$3+:} false
; then :
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if eval \
${$3+:} false
; then :
2057 $as_echo_n "(cached) " >&6
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2063 # Is the header compilable?
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2065 $as_echo_n "checking $2 usability... " >&6; }
2066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2071 if ac_fn_cxx_try_compile
"$LINENO"; then :
2072 ac_header_compiler
=yes
2074 ac_header_compiler
=no
2076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2078 $as_echo "$ac_header_compiler" >&6; }
2080 # Is the header present?
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2082 $as_echo_n "checking $2 presence... " >&6; }
2083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2087 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2088 ac_header_preproc
=yes
2090 ac_header_preproc
=no
2092 rm -f conftest.err conftest.i conftest.
$ac_ext
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2094 $as_echo "$ac_header_preproc" >&6; }
2096 # So? What about this header?
2097 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2100 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2102 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2106 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2108 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2110 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2112 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2114 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2118 $as_echo_n "checking for $2... " >&6; }
2119 if eval \
${$3+:} false
; then :
2120 $as_echo_n "(cached) " >&6
2122 eval "$3=\$ac_header_compiler"
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130 } # ac_fn_cxx_check_header_mongrel
2132 # ac_fn_cxx_try_run LINENO
2133 # ------------------------
2134 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2135 # that executables *can* be run.
2136 ac_fn_cxx_try_run
()
2138 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2139 if { { ac_try
="$ac_link"
2141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_link") 2>&5
2148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2150 { { case "(($ac_try" in
2151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2152 *) ac_try_echo
=$ac_try;;
2154 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2155 $as_echo "$ac_try_echo"; } >&5
2156 (eval "$ac_try") 2>&5
2158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2159 test $ac_status = 0; }; }; then :
2162 $as_echo "$as_me: program exited with status $ac_status" >&5
2163 $as_echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.
$ac_ext >&5
2166 ac_retval
=$ac_status
2168 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170 as_fn_set_status
$ac_retval
2172 } # ac_fn_cxx_try_run
2174 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2175 # ---------------------------------------------------------
2176 # Tests whether HEADER exists and can be compiled using the include files in
2177 # INCLUDES, setting the cache variable VAR accordingly.
2178 ac_fn_cxx_check_header_compile
()
2180 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2182 $as_echo_n "checking for $2... " >&6; }
2183 if eval \
${$3+:} false
; then :
2184 $as_echo_n "(cached) " >&6
2186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2191 if ac_fn_cxx_try_compile
"$LINENO"; then :
2196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200 $as_echo "$ac_res" >&6; }
2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203 } # ac_fn_cxx_check_header_compile
2205 # ac_fn_c_try_cpp LINENO
2206 # ----------------------
2207 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2210 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2211 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2214 *) ac_try_echo=$ac_try;;
2216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2217 $as_echo "$ac_try_echo"; } >&5
2218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2220 if test -s conftest.err; then
2221 grep -v '^ *+' conftest.err >conftest.er1
2222 cat conftest.er1 >&5
2223 mv -f conftest.er1 conftest.err
2225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2226 test $ac_status = 0; } > conftest.i && {
2227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2228 test ! -s conftest.err
2232 $as_echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238 as_fn_set_status $ac_retval
2242 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2243 # ----------------------------------------------
2244 # Tries to find the compile-time value of EXPR in a program that includes
2245 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2247 ac_fn_cxx_compute_int ()
2249 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250 if test "$cross_compiling" = yes; then
2251 # Depending upon the size, compute the lo and hi bounds.
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2258 static int test_array [1 - 2 * !(($2) >= 0)];
2260 return test_array [0];
2266 if ac_fn_cxx_try_compile "$LINENO"; then :
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2275 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2277 return test_array [0];
2283 if ac_fn_cxx_try_compile "$LINENO"; then :
2284 ac_hi=$ac_mid; break
2286 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2287 if test $ac_lo -le $ac_mid; then
2291 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2302 static int test_array [1 - 2 * !(($2) < 0)];
2304 return test_array [0];
2310 if ac_fn_cxx_try_compile "$LINENO"; then :
2313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2319 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2321 return test_array [0];
2327 if ac_fn_cxx_try_compile "$LINENO"; then :
2328 ac_lo=$ac_mid; break
2330 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2331 if test $ac_mid -le $ac_hi; then
2335 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345 # Binary search between lo and hi bounds.
2346 while test "x$ac_lo" != "x$ac_hi"; do
2347 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h. */
2354 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2356 return test_array [0];
2362 if ac_fn_cxx_try_compile "$LINENO"; then :
2365 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h. */
2377 static long int longval () { return $2; }
2378 static unsigned long int ulongval () { return $2; }
2385 FILE *f = fopen ("conftest.val", "w");
2390 long int i = longval ();
2393 fprintf (f, "%ld", i);
2397 unsigned long int i = ulongval ();
2400 fprintf (f, "%lu", i);
2402 /* Do not output a trailing newline, as this causes \r\n confusion
2403 on some platforms. */
2404 return ferror (f) || fclose (f) != 0;
2410 if ac_fn_cxx_try_run "$LINENO"; then :
2411 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2416 conftest.$ac_objext conftest.beam conftest.$ac_ext
2420 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2421 as_fn_set_status $ac_retval
2423 } # ac_fn_cxx_compute_int
2425 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2426 # ---------------------------------------------
2427 # Tests whether TYPE exists after having included INCLUDES, setting cache
2428 # variable VAR accordingly.
2429 ac_fn_cxx_check_type ()
2431 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2433 $as_echo_n "checking for $2... " >&6; }
2434 if eval \${$3+:} false; then :
2435 $as_echo_n "(cached) " >&6
2438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2439 /* end confdefs.h. */
2450 if ac_fn_cxx_try_compile "$LINENO"; then :
2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2463 if ac_fn_cxx_try_compile "$LINENO"; then :
2468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2474 $as_echo "$ac_res" >&6; }
2475 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2477 } # ac_fn_cxx_check_type
2479 # ac_fn_c_find_intX_t LINENO BITS VAR
2480 # -----------------------------------
2481 # Finds a signed integer type with width BITS, setting cache variable VAR
2483 ac_fn_c_find_intX_t ()
2485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2487 $as_echo_n "checking for int$2_t... " >&6; }
2488 if eval \${$3+:} false; then :
2489 $as_echo_n "(cached) " >&6
2492 # Order is important - never check a type that is potentially smaller
2493 # than half of the expected target width.
2494 for ac_type in int$2_t 'int' 'long int' \
2495 'long long int' 'short int' 'signed char'; do
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2498 $ac_includes_default
2499 enum { N = $2 / 2 - 1 };
2503 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2505 return test_array [0];
2511 if ac_fn_cxx_try_compile "$LINENO"; then :
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2514 $ac_includes_default
2515 enum { N = $2 / 2 - 1 };
2519 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2520 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2522 return test_array [0];
2528 if ac_fn_cxx_try_compile "$LINENO"; then :
2535 eval "$3=\$ac_type" ;;
2538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2541 if eval test \"x\$"$3"\" = x"no"; then :
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2550 $as_echo "$ac_res" >&6; }
2551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2553 } # ac_fn_c_find_intX_t
2555 # ac_fn_cxx_try_link LINENO
2556 # -------------------------
2557 # Try to link conftest.$ac_ext, and return whether this succeeded.
2558 ac_fn_cxx_try_link ()
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 rm -f conftest.$ac_objext conftest$ac_exeext
2562 if { { ac_try="$ac_link"
2564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2565 *) ac_try_echo
=$ac_try;;
2567 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2568 $as_echo "$ac_try_echo"; } >&5
2569 (eval "$ac_link") 2>conftest.err
2571 if test -s conftest.err
; then
2572 grep -v '^ *+' conftest.err
>conftest.er1
2573 cat conftest.er1
>&5
2574 mv -f conftest.er1 conftest.err
2576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2577 test $ac_status = 0; } && {
2578 test -z "$ac_cxx_werror_flag" ||
2579 test ! -s conftest.err
2580 } && test -s conftest
$ac_exeext && {
2581 test "$cross_compiling" = yes ||
2582 test -x conftest
$ac_exeext
2586 $as_echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.
$ac_ext >&5
2591 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2592 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2593 # interfere with the next link command; also delete a directory that is
2594 # left behind by Apple's compiler. We do this before executing the actions.
2595 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2597 as_fn_set_status
$ac_retval
2599 } # ac_fn_cxx_try_link
2601 # ac_fn_c_find_uintX_t LINENO BITS VAR
2602 # ------------------------------------
2603 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2605 ac_fn_c_find_uintX_t
()
2607 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2609 $as_echo_n "checking for uint$2_t... " >&6; }
2610 if eval \
${$3+:} false
; then :
2611 $as_echo_n "(cached) " >&6
2614 # Order is important - never check a type that is potentially smaller
2615 # than half of the expected target width.
2616 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2617 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2619 /* end confdefs.h. */
2620 $ac_includes_default
2624 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2626 return test_array [0];
2632 if ac_fn_cxx_try_compile
"$LINENO"; then :
2637 eval "$3=\$ac_type" ;;
2640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2641 if eval test \"x\$
"$3"\" = x
"no"; then :
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2650 $as_echo "$ac_res" >&6; }
2651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2653 } # ac_fn_c_find_uintX_t
2655 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2656 # ------------------------------------------------
2657 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2658 ac_fn_cxx_check_header_preproc
()
2660 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2662 $as_echo_n "checking for $2... " >&6; }
2663 if eval \
${$3+:} false
; then :
2664 $as_echo_n "(cached) " >&6
2666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2667 /* end confdefs.h. */
2670 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2675 rm -f conftest.err conftest.i conftest.
$ac_ext
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2679 $as_echo "$ac_res" >&6; }
2680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2682 } # ac_fn_cxx_check_header_preproc
2684 # ac_fn_cxx_check_func LINENO FUNC VAR
2685 # ------------------------------------
2686 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2687 ac_fn_cxx_check_func
()
2689 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2691 $as_echo_n "checking for $2... " >&6; }
2692 if eval \
${$3+:} false
; then :
2693 $as_echo_n "(cached) " >&6
2695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h. */
2697 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2699 #define $2 innocuous_$2
2701 /* System header to define __stub macros and hopefully few prototypes,
2702 which can conflict with char $2 (); below.
2703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2704 <limits.h> exists even on freestanding compilers. */
2707 # include <limits.h>
2709 # include <assert.h>
2714 /* Override any GCC internal prototype to avoid an error.
2715 Use char because int might match the return type of a GCC
2716 builtin and then its argument prototype would still apply. */
2721 /* The GNU C library defines this for functions which it implements
2722 to always fail with ENOSYS. Some functions are actually named
2723 something starting with __ and the normal name is an alias. */
2724 #if defined __stub_$2 || defined __stub___$2
2736 if ac_fn_cxx_try_link
"$LINENO"; then :
2741 rm -f core conftest.err conftest.
$ac_objext \
2742 conftest
$ac_exeext conftest.
$ac_ext
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2746 $as_echo "$ac_res" >&6; }
2747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2749 } # ac_fn_cxx_check_func
2751 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2752 # -----------------------------------------------
2753 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2755 ac_fn_cxx_check_decl
()
2757 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2758 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2759 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2761 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2762 if eval \
${$3+:} false
; then :
2763 $as_echo_n "(cached) " >&6
2765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2766 /* end confdefs.h. */
2771 #ifndef $as_decl_name
2773 (void) $as_decl_use;
2775 (void) $as_decl_name;
2783 if ac_fn_cxx_try_compile
"$LINENO"; then :
2788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2792 $as_echo "$ac_res" >&6; }
2793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2795 } # ac_fn_cxx_check_decl
2797 # ac_fn_c_try_link LINENO
2798 # -----------------------
2799 # Try to link conftest.$ac_ext, and return whether this succeeded.
2802 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2803 rm -f conftest.
$ac_objext conftest
$ac_exeext
2804 if { { ac_try
="$ac_link"
2806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2810 $as_echo "$ac_try_echo"; } >&5
2811 (eval "$ac_link") 2>conftest.err
2813 if test -s conftest.err; then
2814 grep -v '^ *+' conftest.err >conftest.er1
2815 cat conftest.er1 >&5
2816 mv -f conftest.er1 conftest.err
2818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2819 test $ac_status = 0; } && {
2820 test -z "$ac_c_werror_flag" ||
2821 test ! -s conftest.err
2822 } && test -s conftest$ac_exeext && {
2823 test "$cross_compiling" = yes ||
2824 test -x conftest$ac_exeext
2828 $as_echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2833 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2834 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2835 # interfere with the next link command; also delete a directory that is
2836 # left behind by Apple's compiler. We do this before executing the actions.
2837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2839 as_fn_set_status $ac_retval
2841 } # ac_fn_c_try_link
2843 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2844 # ----------------------------------------------
2845 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2846 ac_fn_c_check_header_preproc ()
2848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2850 $as_echo_n "checking for $2... " >&6; }
2851 if eval \${$3+:} false; then :
2852 $as_echo_n "(cached) " >&6
2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855 /* end confdefs.h. */
2858 if ac_fn_c_try_cpp "$LINENO"; then :
2863 rm -f conftest.err conftest.i conftest.$ac_ext
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2867 $as_echo "$ac_res" >&6; }
2868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2870 } # ac_fn_c_check_header_preproc
2872 # ac_fn_c_check_func LINENO FUNC VAR
2873 # ----------------------------------
2874 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2875 ac_fn_c_check_func ()
2877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2879 $as_echo_n "checking for $2... " >&6; }
2880 if eval \${$3+:} false; then :
2881 $as_echo_n "(cached) " >&6
2883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2884 /* end confdefs.h. */
2885 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2887 #define $2 innocuous_$2
2889 /* System header to define __stub macros and hopefully few prototypes,
2890 which can conflict with char $2 (); below.
2891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2892 <limits.h> exists even on freestanding compilers. */
2895 # include <limits.h>
2897 # include <assert.h>
2902 /* Override any GCC internal prototype to avoid an error.
2903 Use char because int might match the return type of a GCC
2904 builtin and then its argument prototype would still apply. */
2909 /* The GNU C library defines this for functions which it implements
2910 to always fail with ENOSYS. Some functions are actually named
2911 something starting with __ and the normal name is an alias. */
2912 #if defined __stub_$2 || defined __stub___$2
2924 if ac_fn_c_try_link "$LINENO"; then :
2929 rm -f core conftest.err conftest.$ac_objext \
2930 conftest$ac_exeext conftest.$ac_ext
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2934 $as_echo "$ac_res" >&6; }
2935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2937 } # ac_fn_c_check_func
2938 cat >config.log <<_ACEOF
2939 This file contains any messages produced by compilers while
2940 running configure, to aid debugging if configure makes a mistake.
2942 It was created by $as_me, which was
2943 generated by GNU Autoconf 2.69. Invocation command line was
2955 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2956 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2957 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2958 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2959 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2961 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2962 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2964 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2965 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2966 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2967 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2968 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2969 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2970 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 test -z "$as_dir" && as_dir=.
2979 $as_echo "PATH: $as_dir"
2995 # Keep a trace of the command line.
2996 # Strip out --no-create and --no-recursion so they do not pile up.
2997 # Strip out --silent because we don't want to record it for future runs.
2998 # Also quote any args containing shell meta-characters.
2999 # Make two passes to allow for proper duplicate-argument suppression.
3003 ac_must_keep_next=false
3009 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3011 | -silent | --silent | --silen | --sile | --sil)
3014 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3017 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3019 as_fn_append ac_configure_args1 " '$ac_arg'"
3020 if test $ac_must_keep_next = true; then
3021 ac_must_keep_next=false # Got value, back to normal.
3024 *=* | --config-cache | -C | -disable-* | --disable-* \
3025 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3026 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3027 | -with-* | --with-* | -without-* | --without-* | --x)
3028 case "$ac_configure_args0 " in
3029 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3032 -* ) ac_must_keep_next=true ;;
3035 as_fn_append ac_configure_args " '$ac_arg'"
3040 { ac_configure_args0=; unset ac_configure_args0;}
3041 { ac_configure_args1=; unset ac_configure_args1;}
3043 # When interrupted or exit'd, cleanup temporary files, and complete
3044 # config.log. We remove comments because anyway the quotes in there
3045 # would cause problems or look ugly.
3046 # WARNING: Use '\'' to represent an apostrophe within the trap.
3047 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3048 trap 'exit_status=$?
3049 # Save into config.log some information that might help in debugging.
3053 $as_echo "## ---------------- ##
3054 ## Cache variables. ##
3055 ## ---------------- ##"
3057 # The following way of writing the cache mishandles newlines in values,
3059 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3060 eval ac_val=\$$ac_var
3064 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3065 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3068 _ | IFS | as_nl) ;; #(
3069 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3070 *) { eval $ac_var=; unset $ac_var;} ;;
3075 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3076 *${as_nl}ac_space=\ *)
3078 "s/'\''/'\''\\\\'\'''\''/g;
3079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3082 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3089 $as_echo "## ----------------- ##
3090 ## Output variables. ##
3091 ## ----------------- ##"
3093 for ac_var in $ac_subst_vars
3095 eval ac_val=\$$ac_var
3097 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3099 $as_echo "$ac_var='\''$ac_val'\''"
3103 if test -n "$ac_subst_files"; then
3104 $as_echo "## ------------------- ##
3105 ## File substitutions. ##
3106 ## ------------------- ##"
3108 for ac_var in $ac_subst_files
3110 eval ac_val=\$$ac_var
3112 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3114 $as_echo "$ac_var='\''$ac_val'\''"
3119 if test -s confdefs.h; then
3120 $as_echo "## ----------- ##
3127 test "$ac_signal" != 0 &&
3128 $as_echo "$as_me: caught signal $ac_signal"
3129 $as_echo "$as_me: exit $exit_status"
3131 rm -f core *.core core.conftest.* &&
3132 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3135 for ac_signal in 1 2 13 15; do
3136 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3141 rm -f -r conftest* confdefs.h
3143 $as_echo "/* confdefs.h */" > confdefs.h
3145 # Predefined preprocessor variables.
3147 cat >>confdefs.h <<_ACEOF
3148 #define PACKAGE_NAME "$PACKAGE_NAME"
3151 cat >>confdefs.h <<_ACEOF
3152 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3155 cat >>confdefs.h <<_ACEOF
3156 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3159 cat >>confdefs.h <<_ACEOF
3160 #define PACKAGE_STRING "$PACKAGE_STRING"
3163 cat >>confdefs.h <<_ACEOF
3164 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3167 cat >>confdefs.h <<_ACEOF
3168 #define PACKAGE_URL "$PACKAGE_URL"
3172 # Let the site file select an alternate cache file if it wants to.
3173 # Prefer an explicitly selected file to automatically selected ones.
3176 if test -n "$CONFIG_SITE"; then
3177 # We do not want a PATH search for config.site.
3178 case $CONFIG_SITE in #((
3179 -*) ac_site_file1=./$CONFIG_SITE;;
3180 */*) ac_site_file1=$CONFIG_SITE;;
3181 *) ac_site_file1=./$CONFIG_SITE;;
3183 elif test "x$prefix" != xNONE; then
3184 ac_site_file1=$prefix/share/config.site
3185 ac_site_file2=$prefix/etc/config.site
3187 ac_site_file1=$ac_default_prefix/share/config.site
3188 ac_site_file2=$ac_default_prefix/etc/config.site
3190 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3192 test "x$ac_site_file" = xNONE && continue
3193 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3195 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3196 sed 's/^/| /' "$ac_site_file" >&5
3198 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200 as_fn_error $? "failed to load site
script $ac_site_file
3201 See \
`config.log' for more details" "$LINENO" 5; }
3205 if test -r "$cache_file"; then
3206 # Some versions of bash will fail to source /dev/null (special files
3207 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3208 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3210 $as_echo "$as_me: loading cache $cache_file" >&6;}
3212 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3213 *) . "./$cache_file";;
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3218 $as_echo "$as_me: creating cache $cache_file" >&6;}
3222 # Check that the precious variables saved in the cache have kept the same
3224 ac_cache_corrupted=false
3225 for ac_var in $ac_precious_vars; do
3226 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3227 eval ac_new_set=\$ac_env_${ac_var}_set
3228 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3229 eval ac_new_val=\$ac_env_${ac_var}_value
3230 case $ac_old_set,$ac_new_set in
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3233 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3234 ac_cache_corrupted=: ;;
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3237 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3238 ac_cache_corrupted=: ;;
3241 if test "x$ac_old_val" != "x$ac_new_val"; then
3242 # differences in whitespace do not lead to failure.
3243 ac_old_val_w=`echo x
$ac_old_val`
3244 ac_new_val_w=`echo x
$ac_new_val`
3245 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3247 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3248 ac_cache_corrupted=:
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3251 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3252 eval $ac_var=\$ac_old_val
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3255 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3257 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3260 # Pass precious variables to config.status.
3261 if test "$ac_new_set" = set; then
3263 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3264 *) ac_arg=$ac_var=$ac_new_val ;;
3266 case " $ac_configure_args " in
3267 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3268 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3272 if $ac_cache_corrupted; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3276 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3277 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3279 ## -------------------- ##
3280 ## Main body of script. ##
3281 ## -------------------- ##
3284 ac_cpp='$CPP $CPPFLAGS'
3285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3297 gcc_version=`cat $srcdir/BASE-VER
`
3299 # Determine the host, build, and target systems
3301 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3302 if test -f "$ac_dir/install-sh"; then
3304 ac_install_sh="$ac_aux_dir/install-sh -c"
3306 elif test -f "$ac_dir/install.sh"; then
3308 ac_install_sh="$ac_aux_dir/install.sh -c"
3310 elif test -f "$ac_dir/shtool"; then
3312 ac_install_sh="$ac_aux_dir/shtool install -c"
3316 if test -z "$ac_aux_dir"; then
3317 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3320 # These three variables are undocumented and unsupported,
3321 # and are intended to be withdrawn in a future Autoconf release.
3322 # They can cause serious problems if a builder's source tree is in a directory
3323 # whose full name contains unusual characters.
3324 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3325 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3326 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3329 # Make sure we can run config.sub.
3330 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3331 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3334 $as_echo_n "checking build system type... " >&6; }
3335 if ${ac_cv_build+:} false; then :
3336 $as_echo_n "(cached) " >&6
3338 ac_build_alias=$build_alias
3339 test "x$ac_build_alias" = x &&
3340 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3341 test "x$ac_build_alias" = x &&
3342 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3343 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3344 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3348 $as_echo "$ac_cv_build" >&6; }
3349 case $ac_cv_build in
3351 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3354 ac_save_IFS=$IFS; IFS='-'
3360 # Remember, the first character of IFS is used to create $*,
3361 # except with old shells:
3364 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3368 $as_echo_n "checking host system type... " >&6; }
3369 if ${ac_cv_host+:} false; then :
3370 $as_echo_n "(cached) " >&6
3372 if test "x$host_alias" = x; then
3373 ac_cv_host=$ac_cv_build
3375 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3376 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3381 $as_echo "$ac_cv_host" >&6; }
3384 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3387 ac_save_IFS=$IFS; IFS='-'
3393 # Remember, the first character of IFS is used to create $*,
3394 # except with old shells:
3397 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3401 $as_echo_n "checking target system type... " >&6; }
3402 if ${ac_cv_target+:} false; then :
3403 $as_echo_n "(cached) " >&6
3405 if test "x$target_alias" = x; then
3406 ac_cv_target=$ac_cv_host
3408 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3409 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3414 $as_echo "$ac_cv_target" >&6; }
3415 case $ac_cv_target in
3417 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3419 target=$ac_cv_target
3420 ac_save_IFS=$IFS; IFS='-'
3426 # Remember, the first character of IFS is used to create $*,
3427 # except with old shells:
3430 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3433 # The aliases save the names the user supplied, while $host etc.
3434 # will get canonicalized.
3435 test -n "$target_alias" &&
3436 test "$program_prefix$program_suffix$program_transform_name" = \
3438 program_prefix=${target_alias}-
3440 # Determine the noncanonical host name, for Ada.
3441 case ${build_alias} in
3442 "") build_noncanonical=${build} ;;
3443 *) build_noncanonical=${build_alias} ;;
3446 case ${host_alias} in
3447 "") host_noncanonical=${build_noncanonical} ;;
3448 *) host_noncanonical=${host_alias} ;;
3454 # Determine the noncanonical target name, for directory use.
3455 case ${target_alias} in
3456 "") target_noncanonical=${host_noncanonical} ;;
3457 *) target_noncanonical=${target_alias} ;;
3463 # Used for constructing correct paths for offload compilers.
3464 real_target_noncanonical=${target_noncanonical}
3467 # Determine the target- and build-specific subdirectories
3469 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3470 # have matching libraries, they should use host libraries: Makefile.tpl
3471 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3472 # However, they still use the build modules, because the corresponding
3473 # host modules (e.g. bison) are only built for the host when bootstrap
3475 # - build_subdir is where we find build modules, and never changes.
3476 # - build_libsubdir is where we find build libraries, and can be overridden.
3478 # Prefix 'build-' so this never conflicts with target_subdir.
3479 build_subdir="build-${build_noncanonical}"
3481 # Check whether --with-build-libsubdir was given.
3482 if test "${with_build_libsubdir+set}" = set; then :
3483 withval=$with_build_libsubdir; build_libsubdir="$withval"
3485 build_libsubdir="$build_subdir"
3488 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3489 if ( test $srcdir = . && test -d gcc ) \
3490 || test -d $srcdir/../host-${host_noncanonical}; then
3491 host_subdir="host-${host_noncanonical}"
3496 target_subdir=${target_noncanonical}
3499 # Set program_transform_name
3500 test "$program_prefix" != NONE &&
3501 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3502 # Use a double $ so make ignores it.
3503 test "$program_suffix" != NONE &&
3504 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3505 # Double any \ or $.
3506 # By default was `s
,x
,x
', remove it if useless.
3507 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3508 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3511 # Check for bogus environment variables.
3512 # Test if LIBRARY_PATH contains the notation for the current directory
3513 # since this would lead to problems installing/building glibc.
3514 # LIBRARY_PATH contains the current directory if one of the following
3516 # - one of the terminals (":" and ";") is the first or last sign
3517 # - two terminals occur directly after each other
3518 # - the path contains an element with a dot in it
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3520 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3521 case ${LIBRARY_PATH} in
3522 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3523 library_path_setting="contains current directory"
3526 library_path_setting="ok"
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3530 $as_echo "$library_path_setting" >&6; }
3531 if test "$library_path_setting" != "ok"; then
3533 *** LIBRARY_PATH shouldn't contain the current directory when
3534 *** building gcc. Please change the environment variable
3535 *** and run configure again.
" "$LINENO" 5
3538 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3539 # since this would lead to problems installing/building glibc.
3540 # GCC_EXEC_PREFIX contains the current directory if one of the following
3542 # - one of the terminals (":" and ";") is the first or last sign
3543 # - two terminals occur directly after each other
3544 # - the path contains an element with a dot in it
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3546 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3547 case ${GCC_EXEC_PREFIX} in
3548 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3549 gcc_exec_prefix_setting="contains current directory
"
3552 gcc_exec_prefix_setting="ok
"
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3556 $as_echo "$gcc_exec_prefix_setting" >&6; }
3557 if test "$gcc_exec_prefix_setting" != "ok
"; then
3559 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3560 *** building gcc. Please change the environment variable
3561 *** and run configure again." "$LINENO" 5
3568 # Specify the local prefix
3571 # Check whether --with-local-prefix was given.
3572 if test "${with_local_prefix+set}" = set; then :
3573 withval=$with_local_prefix; case "${withval}" in
3574 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3576 *) local_prefix=$with_local_prefix ;;
3581 # Default local prefix if it is empty
3582 if test x$local_prefix = x; then
3583 local_prefix=/usr/local
3587 # Check whether --with-native-system-header-dir was given.
3588 if test "${with_native_system_header_dir+set}" = set; then :
3589 withval=$with_native_system_header_dir;
3590 case ${with_native_system_header_dir} in
3591 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3592 /* | [A-Za-z]:[\\/]*) ;;
3593 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3595 configured_native_system_header_dir="${withval}"
3598 configured_native_system_header_dir=
3603 # Check whether --with-build-sysroot was given.
3604 if test "${with_build_sysroot+set}" = set; then :
3605 withval=$with_build_sysroot; if test x"$withval" != x ; then
3606 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3609 SYSROOT_CFLAGS_FOR_TARGET=
3614 if test "x$prefix" = xNONE; then
3615 test_prefix=/usr/local
3619 if test "x$exec_prefix" = xNONE; then
3620 test_exec_prefix=$test_prefix
3622 test_exec_prefix=$exec_prefix
3626 # Check whether --with-sysroot was given.
3627 if test "${with_sysroot+set}" = set; then :
3628 withval=$with_sysroot;
3629 case ${with_sysroot} in
3631 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3633 case ${with_sysroot} in
3634 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3635 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3638 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3639 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3641 case ${TARGET_SYSTEM_ROOT} in
3642 "${test_prefix}"|"${test_prefix}/"*|\
3643 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3644 '${prefix}'|'${prefix}/'*|\
3645 '${exec_prefix}'|'${exec_prefix}/'*)
3646 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3647 TARGET_SYSTEM_ROOT_DEFINE="$t"
3654 TARGET_SYSTEM_ROOT_DEFINE=
3655 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3663 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3664 # passed in by the toplevel make and thus we'd get different behavior
3665 # depending on where we built the sources.
3666 gcc_gxx_include_dir
=
3667 # Specify the g++ header file directory
3669 # Check whether --with-gxx-include-dir was given.
3670 if test "${with_gxx_include_dir+set}" = set; then :
3671 withval
=$with_gxx_include_dir; case "${withval}" in
3672 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3674 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3679 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3680 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3681 # relative to the sysroot.
3682 gcc_gxx_include_dir_add_sysroot
=0
3684 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3685 if test x
${gcc_gxx_include_dir} = x
; then
3686 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3687 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3689 libstdcxx_incdir
='include/c++/$(version)'
3690 if test x
$host != x
$target; then
3691 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3693 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3695 elif test "${with_sysroot+set}" = set; then
3696 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3697 if test "${gcc_gxx_without_sysroot}"; then
3698 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3699 gcc_gxx_include_dir_add_sysroot
=1
3703 # Configuration for an alternate set of C++ headers.
3704 gcc_gxx_libcxx_include_dir
=
3705 # Specify the alternate g++ header file directory
3707 # Check whether --with-gxx-libcxx-include-dir was given.
3708 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3709 withval
=$with_gxx_libcxx_include_dir; case "${withval}" in
3710 yes) as_fn_error $?
"bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3712 *) gcc_gxx_libcxx_include_dir
=$with_gxx_libcxx_include_dir ;;
3717 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3718 # check to see if the latter starts with the former and, upon success, compute
3719 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3720 gcc_gxx_libcxx_include_dir_add_sysroot
=0
3722 if test x
${gcc_gxx_libcxx_include_dir} != x
; then
3724 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3727 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3730 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3731 if test x
${gcc_gxx_libcxx_include_dir} = x
; then
3732 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3733 gcc_gxx_libcxx_include_dir
='${libsubdir}/libc++_include/c++/v1'
3735 libcxx_incdir
='libc++_include/c++/$(version)/v1'
3736 if test x
$host != x
$target; then
3737 libcxx_incdir
="$target_alias/$libcxx_incdir"
3739 gcc_gxx_libcxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3741 elif test "${with_sysroot+set}" = set; then
3742 gcc_gxx_libcxx_without_sysroot
=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3743 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3744 gcc_gxx_libcxx_include_dir
="${gcc_gxx_libcxx_without_sysroot}"
3745 gcc_gxx_libcxx_include_dir_add_sysroot
=1
3750 # Check whether --with-cpp_install_dir was given.
3751 if test "${with_cpp_install_dir+set}" = set; then :
3752 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3753 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3754 elif test x
$withval != xno
; then
3755 cpp_install_dir
=$withval
3760 # We would like to our source tree to be readonly. However when releases or
3761 # pre-releases are generated, the flex/bison generated files as well as the
3762 # various formats of manuals need to be included along with the rest of the
3763 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3767 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3768 # Check whether --enable-generated-files-in-srcdir was given.
3769 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3770 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3772 generated_files_in_srcdir
=no
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3777 $as_echo "$generated_files_in_srcdir" >&6; }
3779 if test "$generated_files_in_srcdir" = "yes"; then
3786 # -------------------
3787 # Find default linker
3788 # -------------------
3792 # Check whether --with-gnu-ld was given.
3793 if test "${with_gnu_ld+set}" = set; then :
3794 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3802 ld64_flag
=yes # Darwin can only use a ld64-compatible linker.
3803 dsymutil_flag
=yes # Darwin uses dsymutil to link debug.
3811 # With pre-defined ld
3813 # Check whether --with-ld was given.
3814 if test "${with_ld+set}" = set; then :
3815 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3818 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3819 if test ! -x "$DEFAULT_LINKER"; then
3820 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3821 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3823 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3827 cat >>confdefs.h
<<_ACEOF
3828 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3834 $as_echo_n "checking whether a default linker was specified... " >&6; }
3835 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3836 if test x
"$gnu_ld_flag" = x
"no"; then
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3838 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3841 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3848 # With demangler in GNU ld
3850 # Check whether --with-demangler-in-ld was given.
3851 if test "${with_demangler_in_ld+set}" = set; then :
3852 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3858 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3860 # Check whether --with-dsymutil was given.
3861 if test "${with_dsymutil+set}" = set; then :
3862 withval
=$with_dsymutil; DEFAULT_DSYMUTIL
="$with_dsymutil"
3867 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3868 if test ! -x "$DEFAULT_DSYMUTIL"; then
3869 as_fn_error $?
"cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3871 if dsymutil_vers
=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3876 cat >>confdefs.h
<<_ACEOF
3877 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3883 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3884 if test x
"${DEFAULT_DSYMUTIL+set}" = x
"set"; then
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3886 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3889 $as_echo "no" >&6; }
3892 # ----------------------
3893 # Find default assembler
3894 # ----------------------
3898 # Check whether --with-gnu-as was given.
3899 if test "${with_gnu_as+set}" = set; then :
3900 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3907 # Check whether --with-as was given.
3908 if test "${with_as+set}" = set; then :
3909 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3912 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3913 if test ! -x "$DEFAULT_ASSEMBLER"; then
3914 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3915 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3919 cat >>confdefs.h
<<_ACEOF
3920 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3926 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3927 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3928 if test x
"$gas_flag" = x
"no"; then
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3930 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3933 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3944 # If a non-executable a.out is present (e.g. created by GNU as above even if
3945 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3946 # file, even when creating an executable, so an execution test fails.
3947 # Remove possible default executable files to avoid this.
3949 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3950 # Autoconf includes it.
3951 rm -f a.out a.exe b.out
3953 # Find the native compiler
3955 ac_cpp
='$CPP $CPPFLAGS'
3956 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3959 if test -n "$ac_tool_prefix"; then
3960 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3961 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if ${ac_cv_prog_CC+:} false
; then :
3965 $as_echo_n "(cached) " >&6
3967 if test -n "$CC"; then
3968 ac_cv_prog_CC
="$CC" # Let the user override the test.
3970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3974 test -z "$as_dir" && as_dir
=.
3975 for ac_exec_ext
in '' $ac_executable_extensions; do
3976 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3988 if test -n "$CC"; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3990 $as_echo "$CC" >&6; }
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 $as_echo "no" >&6; }
3998 if test -z "$ac_cv_prog_CC"; then
4000 # Extract the first word of "gcc", so it can be a program name with args.
4001 set dummy gcc
; ac_word
=$2
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4003 $as_echo_n "checking for $ac_word... " >&6; }
4004 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4005 $as_echo_n "(cached) " >&6
4007 if test -n "$ac_ct_CC"; then
4008 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4014 test -z "$as_dir" && as_dir
=.
4015 for ac_exec_ext
in '' $ac_executable_extensions; do
4016 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4017 ac_cv_prog_ac_ct_CC
="gcc"
4018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4028 if test -n "$ac_ct_CC"; then
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4030 $as_echo "$ac_ct_CC" >&6; }
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033 $as_echo "no" >&6; }
4036 if test "x$ac_ct_CC" = x
; then
4039 case $cross_compiling:$ac_tool_warned in
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4043 ac_tool_warned
=yes ;;
4051 if test -z "$CC"; then
4052 if test -n "$ac_tool_prefix"; then
4053 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4054 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if ${ac_cv_prog_CC+:} false
; then :
4058 $as_echo_n "(cached) " >&6
4060 if test -n "$CC"; then
4061 ac_cv_prog_CC
="$CC" # Let the user override the test.
4063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4067 test -z "$as_dir" && as_dir
=.
4068 for ac_exec_ext
in '' $ac_executable_extensions; do
4069 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4070 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 if test -n "$CC"; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4083 $as_echo "$CC" >&6; }
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 $as_echo "no" >&6; }
4092 if test -z "$CC"; then
4093 # Extract the first word of "cc", so it can be a program name with args.
4094 set dummy cc
; ac_word
=$2
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 $as_echo_n "checking for $ac_word... " >&6; }
4097 if ${ac_cv_prog_CC+:} false
; then :
4098 $as_echo_n "(cached) " >&6
4100 if test -n "$CC"; then
4101 ac_cv_prog_CC
="$CC" # Let the user override the test.
4104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4108 test -z "$as_dir" && as_dir
=.
4109 for ac_exec_ext
in '' $ac_executable_extensions; do
4110 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4111 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4112 ac_prog_rejected
=yes
4116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 if test $ac_prog_rejected = yes; then
4124 # We found a bogon in the path, so make sure we never use it.
4125 set dummy
$ac_cv_prog_CC
4127 if test $# != 0; then
4128 # We chose a different compiler from the bogus one.
4129 # However, it has the same basename, so the bogon will be chosen
4130 # first if we set CC to just the basename; use the full file name.
4132 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4138 if test -n "$CC"; then
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4140 $as_echo "$CC" >&6; }
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4148 if test -z "$CC"; then
4149 if test -n "$ac_tool_prefix"; then
4150 for ac_prog
in cl.exe
4152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4153 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4155 $as_echo_n "checking for $ac_word... " >&6; }
4156 if ${ac_cv_prog_CC+:} false
; then :
4157 $as_echo_n "(cached) " >&6
4159 if test -n "$CC"; then
4160 ac_cv_prog_CC
="$CC" # Let the user override the test.
4162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4166 test -z "$as_dir" && as_dir
=.
4167 for ac_exec_ext
in '' $ac_executable_extensions; do
4168 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4169 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 if test -n "$CC"; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4182 $as_echo "$CC" >&6; }
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185 $as_echo "no" >&6; }
4189 test -n "$CC" && break
4192 if test -z "$CC"; then
4194 for ac_prog
in cl.exe
4196 # Extract the first word of "$ac_prog", so it can be a program name with args.
4197 set dummy
$ac_prog; ac_word
=$2
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4201 $as_echo_n "(cached) " >&6
4203 if test -n "$ac_ct_CC"; then
4204 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir
=.
4211 for ac_exec_ext
in '' $ac_executable_extensions; do
4212 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4213 ac_cv_prog_ac_ct_CC
="$ac_prog"
4214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4224 if test -n "$ac_ct_CC"; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4226 $as_echo "$ac_ct_CC" >&6; }
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4233 test -n "$ac_ct_CC" && break
4236 if test "x$ac_ct_CC" = x
; then
4239 case $cross_compiling:$ac_tool_warned in
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4243 ac_tool_warned
=yes ;;
4252 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4254 as_fn_error $?
"no acceptable C compiler found in \$PATH
4255 See \`config.log' for more details" "$LINENO" 5; }
4257 # Provide some information about the compiler.
4258 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4261 for ac_option
in --version -v -V -qversion; do
4262 { { ac_try
="$ac_compiler $ac_option >&5"
4264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4268 $as_echo "$ac_try_echo"; } >&5
4269 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4271 if test -s conftest.err; then
4273 ... rest of stderr output deleted ...
4274 10q' conftest.err >conftest.er1
4275 cat conftest.er1 >&5
4277 rm -f conftest.er1 conftest.err
4278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4279 test $ac_status = 0; }
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4293 ac_clean_files_save=$ac_clean_files
4294 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4295 # Try to create an executable without -o first, disregard a.out.
4296 # It will help us diagnose broken compilers, and finding out an intuition
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4299 $as_echo_n "checking whether the C compiler works... " >&6; }
4300 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4302 # The possible output files:
4303 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4306 for ac_file in $ac_files
4309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4310 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4315 if { { ac_try="$ac_link_default"
4317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4318 *) ac_try_echo
=$ac_try;;
4320 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4321 $as_echo "$ac_try_echo"; } >&5
4322 (eval "$ac_link_default") 2>&5
4324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4325 test $ac_status = 0; }; then :
4326 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4327 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4328 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4329 # so that the user can short-circuit this test for compilers unknown to
4331 for ac_file
in $ac_files ''
4333 test -f "$ac_file" ||
continue
4335 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4338 # We found the default executable, but exeext='' is most
4342 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4344 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4346 # We set ac_cv_exeext here because the later test for it is not
4347 # safe: cross compilers may not add the suffix if given an `-o'
4348 # argument, so we may need to know it at that point already.
4349 # Even if this section looks crufty: it has the advantage of
4356 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4361 if test -z "$ac_file"; then :
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4364 $as_echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.
$ac_ext >&5
4367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4369 as_fn_error
77 "C compiler cannot create executables
4370 See \`config.log' for more details" "$LINENO" 5; }
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4373 $as_echo "yes" >&6; }
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4376 $as_echo_n "checking for C compiler default output file name... " >&6; }
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4378 $as_echo "$ac_file" >&6; }
4379 ac_exeext
=$ac_cv_exeext
4381 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4382 ac_clean_files
=$ac_clean_files_save
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4384 $as_echo_n "checking for suffix of executables... " >&6; }
4385 if { { ac_try
="$ac_link"
4387 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4388 *) ac_try_echo=$ac_try;;
4390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4391 $as_echo "$ac_try_echo"; } >&5
4392 (eval "$ac_link") 2>&5
4394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4395 test $ac_status = 0; }; then :
4396 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4397 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4398 # work properly (i.e., refer to `conftest.exe'), while it won't with
4400 for ac_file
in conftest.exe conftest conftest.
*; do
4401 test -f "$ac_file" ||
continue
4403 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4404 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4412 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4413 See \`config.log' for more details" "$LINENO" 5; }
4415 rm -f conftest conftest
$ac_cv_exeext
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4417 $as_echo "$ac_cv_exeext" >&6; }
4419 rm -f conftest.
$ac_ext
4420 EXEEXT
=$ac_cv_exeext
4422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4423 /* end confdefs.h. */
4428 FILE *f = fopen ("conftest.out", "w");
4429 return ferror (f) || fclose (f) != 0;
4435 ac_clean_files
="$ac_clean_files conftest.out"
4436 # Check that the compiler produces executables we can run. If not, either
4437 # the compiler is broken, or we cross compile.
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4439 $as_echo_n "checking whether we are cross compiling... " >&6; }
4440 if test "$cross_compiling" != yes; then
4441 { { ac_try
="$ac_link"
4443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4447 $as_echo "$ac_try_echo"; } >&5
4448 (eval "$ac_link") 2>&5
4450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4451 test $ac_status = 0; }
4452 if { ac_try='./conftest$ac_cv_exeext'
4453 { { case "(($ac_try" in
4454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4455 *) ac_try_echo
=$ac_try;;
4457 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4458 $as_echo "$ac_try_echo"; } >&5
4459 (eval "$ac_try") 2>&5
4461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4462 test $ac_status = 0; }; }; then
4465 if test "$cross_compiling" = maybe
; then
4468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4470 as_fn_error $?
"cannot run C compiled programs.
4471 If you meant to cross compile, use \`--host'.
4472 See \`config.log' for more details" "$LINENO" 5; }
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4477 $as_echo "$cross_compiling" >&6; }
4479 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4480 ac_clean_files
=$ac_clean_files_save
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4482 $as_echo_n "checking for suffix of object files... " >&6; }
4483 if ${ac_cv_objext+:} false
; then :
4484 $as_echo_n "(cached) " >&6
4486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4497 rm -f conftest.o conftest.obj
4498 if { { ac_try
="$ac_compile"
4500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505 (eval "$ac_compile") 2>&5
4507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4508 test $ac_status = 0; }; then :
4509 for ac_file in conftest.o conftest.obj conftest.*; do
4510 test -f "$ac_file" || continue;
4512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4513 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4518 $as_echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4523 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4524 See \
`config.log' for more details" "$LINENO" 5; }
4526 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4529 $as_echo "$ac_cv_objext" >&6; }
4530 OBJEXT=$ac_cv_objext
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4533 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4534 if ${ac_cv_c_compiler_gnu+:} false; then :
4535 $as_echo_n "(cached) " >&6
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4551 if ac_fn_c_try_compile "$LINENO"; then :
4556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4557 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4561 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4562 if test $ac_compiler_gnu = yes; then
4567 ac_test_CFLAGS=${CFLAGS+set}
4568 ac_save_CFLAGS=$CFLAGS
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4570 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4571 if ${ac_cv_prog_cc_g+:} false; then :
4572 $as_echo_n "(cached) " >&6
4574 ac_save_c_werror_flag=$ac_c_werror_flag
4575 ac_c_werror_flag=yes
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4589 if ac_fn_c_try_compile "$LINENO"; then :
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4604 if ac_fn_c_try_compile "$LINENO"; then :
4607 ac_c_werror_flag=$ac_save_c_werror_flag
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h. */
4620 if ac_fn_c_try_compile "$LINENO"; then :
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628 ac_c_werror_flag=$ac_save_c_werror_flag
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4631 $as_echo "$ac_cv_prog_cc_g" >&6; }
4632 if test "$ac_test_CFLAGS" = set; then
4633 CFLAGS=$ac_save_CFLAGS
4634 elif test $ac_cv_prog_cc_g = yes; then
4635 if test "$GCC" = yes; then
4641 if test "$GCC" = yes; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4648 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4649 if ${ac_cv_prog_cc_c89+:} false; then :
4650 $as_echo_n "(cached) " >&6
4652 ac_cv_prog_cc_c89=no
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4659 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4660 struct buf { int x; };
4661 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4662 static char *e (p, i)
4668 static char *f (char * (*g) (char **, int), char **p, ...)
4673 s = g (p, va_arg (v,int));
4678 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4679 function prototypes and stuff, but not '\xHH' hex character constants.
4680 These don't provoke an error unfortunately, instead are silently treated
4681 as 'x'. The following induces an error, until -std is added to get
4682 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4683 array size at least. It's necessary to write '\x00'==0 to get something
4684 that's true only with -std. */
4685 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4687 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4688 inside strings and character constants. */
4690 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4692 int test (int i, double x);
4693 struct s1 {int (*f) (int a);};
4694 struct s2 {int (*f) (double a);};
4695 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4701 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4706 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4707 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4709 CC="$ac_save_CC $ac_arg"
4710 if ac_fn_c_try_compile "$LINENO"; then :
4711 ac_cv_prog_cc_c89=$ac_arg
4713 rm -f core conftest.err conftest.$ac_objext
4714 test "x$ac_cv_prog_cc_c89" != "xno" && break
4716 rm -f conftest.$ac_ext
4721 case "x$ac_cv_prog_cc_c89" in
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4724 $as_echo "none needed" >&6; } ;;
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4727 $as_echo "unsupported" >&6; } ;;
4729 CC="$CC $ac_cv_prog_cc_c89"
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4731 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4733 if test "x$ac_cv_prog_cc_c89" != xno; then :
4738 ac_cpp='$CPP $CPPFLAGS'
4739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4744 ac_cpp='$CXXCPP $CPPFLAGS'
4745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4748 if test -z "$CXX"; then
4749 if test -n "$CCC"; then
4752 if test -n "$ac_tool_prefix"; then
4753 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4758 $as_echo_n "checking for $ac_word... " >&6; }
4759 if ${ac_cv_prog_CXX+:} false; then :
4760 $as_echo_n "(cached) " >&6
4762 if test -n "$CXX"; then
4763 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 test -z "$as_dir" && as_dir=.
4770 for ac_exec_ext in '' $ac_executable_extensions; do
4771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4772 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 if test -n "$CXX"; then
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4785 $as_echo "$CXX" >&6; }
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788 $as_echo "no" >&6; }
4792 test -n "$CXX" && break
4795 if test -z "$CXX"; then
4797 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4799 # Extract the first word of "$ac_prog", so it can be a program name with args.
4800 set dummy $ac_prog; ac_word=$2
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4802 $as_echo_n "checking for $ac_word... " >&6; }
4803 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4804 $as_echo_n "(cached) " >&6
4806 if test -n "$ac_ct_CXX"; then
4807 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4816 ac_cv_prog_ac_ct_CXX="$ac_prog"
4817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4827 if test -n "$ac_ct_CXX"; then
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4829 $as_echo "$ac_ct_CXX" >&6; }
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832 $as_echo "no" >&6; }
4836 test -n "$ac_ct_CXX" && break
4839 if test "x$ac_ct_CXX" = x; then
4842 case $cross_compiling:$ac_tool_warned in
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4846 ac_tool_warned=yes ;;
4854 # Provide some information about the compiler.
4855 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4858 for ac_option in --version -v -V -qversion; do
4859 { { ac_try="$ac_compiler $ac_option >&5"
4861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4862 *) ac_try_echo
=$ac_try;;
4864 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4865 $as_echo "$ac_try_echo"; } >&5
4866 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4868 if test -s conftest.err
; then
4870 ... rest of stderr output deleted ...
4871 10q' conftest.err
>conftest.er1
4872 cat conftest.er1
>&5
4874 rm -f conftest.er1 conftest.err
4875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4876 test $ac_status = 0; }
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4880 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4881 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4882 $as_echo_n "(cached) " >&6
4884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4898 if ac_fn_cxx_try_compile
"$LINENO"; then :
4903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4904 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4908 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4909 if test $ac_compiler_gnu = yes; then
4914 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4915 ac_save_CXXFLAGS
=$CXXFLAGS
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4917 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4918 if ${ac_cv_prog_cxx_g+:} false
; then :
4919 $as_echo_n "(cached) " >&6
4921 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4922 ac_cxx_werror_flag
=yes
4925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4936 if ac_fn_cxx_try_compile
"$LINENO"; then :
4937 ac_cv_prog_cxx_g
=yes
4940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4951 if ac_fn_cxx_try_compile
"$LINENO"; then :
4954 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4967 if ac_fn_cxx_try_compile
"$LINENO"; then :
4968 ac_cv_prog_cxx_g
=yes
4970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4975 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4978 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4979 if test "$ac_test_CXXFLAGS" = set; then
4980 CXXFLAGS
=$ac_save_CXXFLAGS
4981 elif test $ac_cv_prog_cxx_g = yes; then
4982 if test "$GXX" = yes; then
4988 if test "$GXX" = yes; then
4995 ac_cpp
='$CPP $CPPFLAGS'
4996 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4997 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4998 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5000 # ACX_PROG_GNAT([-I"$srcdir"/ada/libgnat])
5001 # ACX_PROG_GDC([-I"$srcdir"/d])
5003 # Do configure tests with the C++ compiler, since that's what we build with.
5005 ac_cpp
='$CXXCPP $CPPFLAGS'
5006 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5011 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5012 # optimizations to be activated explicitly by the toplevel.
5014 */prev-gcc
/xgcc
*) ;;
5015 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5016 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5022 # Determine PICFLAG for target gnatlib.
5028 # PIC is the default on some targets or must not be used.
5030 # For darwin, common symbols are not allowed in MH_DYLIB files
5032 # If we are using a compiler supporting mdynamic-no-pic
5033 # and the option has been tested as safe to add, then cancel
5034 # it here, since the code generated is incompatible with shared
5036 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5037 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5041 # PIC is the default.
5044 # PIC is the default for 64-bit PA HP-UX.
5046 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5048 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5050 i
[34567]86-*-interix[3-9]*)
5051 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5052 # Instead, we relocate shared libraries at runtime.
5054 i
[34567]86-*-nto-qnx*)
5055 # QNX uses GNU C++, but need to define -shared option too, otherwise
5057 PICFLAG_FOR_TARGET
='-fPIC -shared'
5059 i
[34567]86-pc-msdosdjgpp*)
5060 # DJGPP does not support shared libraries at all.
5063 # On IA64 HP-UX, PIC is the default but the pic flag
5064 # sets the default TLS model and affects inlining.
5065 PICFLAG_FOR_TARGET
=-fPIC
5068 PICFLAG_FOR_TARGET
=-fpic
5071 # PIC is the default.
5073 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5074 # All AIX code is PIC.
5077 # Some targets support both -fPIC and -fpic, but prefer the latter.
5079 i
[34567]86-*-* | x86_64-
*-*)
5080 PICFLAG_FOR_TARGET
=-fpic
5082 # FIXME: Override -fPIC default in libgcc only?
5083 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5084 PICFLAG_FOR_TARGET
=-fpic
5086 # FIXME: Simplify to sh*-*-netbsd*?
5087 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5088 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5089 PICFLAG_FOR_TARGET
=-fpic
5091 # Default to -fPIC unless specified otherwise.
5093 PICFLAG_FOR_TARGET
=-fPIC
5097 # If the user explicitly uses -fpic/-fPIC, keep that.
5098 case "${CFLAGS_FOR_TARGET}" in
5100 PICFLAG_FOR_TARGET
=-fpic
5103 PICFLAG_FOR_TARGET
=-fPIC
5109 # -------------------------
5110 # Check C compiler features
5111 # -------------------------
5115 ac_cpp
='$CXXCPP $CPPFLAGS'
5116 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5117 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5120 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5121 if test -z "$CXXCPP"; then
5122 if ${ac_cv_prog_CXXCPP+:} false
; then :
5123 $as_echo_n "(cached) " >&6
5125 # Double quotes because CXXCPP needs to be expanded
5126 for CXXCPP
in "$CXX -E" "/lib/cpp"
5129 for ac_cxx_preproc_warn_flag
in '' yes
5131 # Use a header file that comes with gcc, so configuring glibc
5132 # with a fresh cross-compiler works.
5133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5134 # <limits.h> exists even on freestanding compilers.
5135 # On the NeXT, cc -E runs the code through the compiler's parser,
5136 # not just through cpp. "Syntax error" is here to catch this case.
5137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5140 # include <limits.h>
5142 # include <assert.h>
5146 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5149 # Broken: fails on valid input.
5152 rm -f conftest.err conftest.i conftest.
$ac_ext
5154 # OK, works on sane cases. Now check whether nonexistent headers
5155 # can be detected and how.
5156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5157 /* end confdefs.h. */
5158 #include <ac_nonexistent.h>
5160 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5161 # Broken: success on invalid input.
5164 # Passes both tests.
5168 rm -f conftest.err conftest.i conftest.
$ac_ext
5171 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5172 rm -f conftest.i conftest.err conftest.
$ac_ext
5173 if $ac_preproc_ok; then :
5178 ac_cv_prog_CXXCPP
=$CXXCPP
5181 CXXCPP
=$ac_cv_prog_CXXCPP
5183 ac_cv_prog_CXXCPP
=$CXXCPP
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5186 $as_echo "$CXXCPP" >&6; }
5188 for ac_cxx_preproc_warn_flag
in '' yes
5190 # Use a header file that comes with gcc, so configuring glibc
5191 # with a fresh cross-compiler works.
5192 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5193 # <limits.h> exists even on freestanding compilers.
5194 # On the NeXT, cc -E runs the code through the compiler's parser,
5195 # not just through cpp. "Syntax error" is here to catch this case.
5196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5199 # include <limits.h>
5201 # include <assert.h>
5205 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5208 # Broken: fails on valid input.
5211 rm -f conftest.err conftest.i conftest.
$ac_ext
5213 # OK, works on sane cases. Now check whether nonexistent headers
5214 # can be detected and how.
5215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5217 #include <ac_nonexistent.h>
5219 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5220 # Broken: success on invalid input.
5223 # Passes both tests.
5227 rm -f conftest.err conftest.i conftest.
$ac_ext
5230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5231 rm -f conftest.i conftest.err conftest.
$ac_ext
5232 if $ac_preproc_ok; then :
5235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5237 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5238 See \`config.log' for more details" "$LINENO" 5; }
5242 ac_cpp
='$CXXCPP $CPPFLAGS'
5243 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5244 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5245 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5249 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5250 if ${ac_cv_path_GREP+:} false
; then :
5251 $as_echo_n "(cached) " >&6
5253 if test -z "$GREP"; then
5254 ac_path_GREP_found
=false
5255 # Loop through the user's path and test for each of PROGNAME-LIST
5256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5257 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5260 test -z "$as_dir" && as_dir
=.
5261 for ac_prog
in grep ggrep
; do
5262 for ac_exec_ext
in '' $ac_executable_extensions; do
5263 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5264 as_fn_executable_p
"$ac_path_GREP" ||
continue
5265 # Check for GNU ac_path_GREP and select it if it is found.
5266 # Check for GNU $ac_path_GREP
5267 case `"$ac_path_GREP" --version 2>&1` in
5269 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5272 $as_echo_n 0123456789 >"conftest.in"
5275 cat "conftest.in" "conftest.in" >"conftest.tmp"
5276 mv "conftest.tmp" "conftest.in"
5277 cp "conftest.in" "conftest.nl"
5278 $as_echo 'GREP' >> "conftest.nl"
5279 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5280 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5281 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5282 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5283 # Best one so far, save it but keep looking for a better one
5284 ac_cv_path_GREP
="$ac_path_GREP"
5285 ac_path_GREP_max
=$ac_count
5287 # 10*(2^10) chars as input seems more than enough
5288 test $ac_count -gt 10 && break
5290 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5293 $ac_path_GREP_found && break 3
5298 if test -z "$ac_cv_path_GREP"; then
5299 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5302 ac_cv_path_GREP
=$GREP
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5307 $as_echo "$ac_cv_path_GREP" >&6; }
5308 GREP
="$ac_cv_path_GREP"
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5312 $as_echo_n "checking for egrep... " >&6; }
5313 if ${ac_cv_path_EGREP+:} false
; then :
5314 $as_echo_n "(cached) " >&6
5316 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5317 then ac_cv_path_EGREP
="$GREP -E"
5319 if test -z "$EGREP"; then
5320 ac_path_EGREP_found
=false
5321 # Loop through the user's path and test for each of PROGNAME-LIST
5322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5323 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5326 test -z "$as_dir" && as_dir
=.
5327 for ac_prog
in egrep; do
5328 for ac_exec_ext
in '' $ac_executable_extensions; do
5329 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5330 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5331 # Check for GNU ac_path_EGREP and select it if it is found.
5332 # Check for GNU $ac_path_EGREP
5333 case `"$ac_path_EGREP" --version 2>&1` in
5335 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5338 $as_echo_n 0123456789 >"conftest.in"
5341 cat "conftest.in" "conftest.in" >"conftest.tmp"
5342 mv "conftest.tmp" "conftest.in"
5343 cp "conftest.in" "conftest.nl"
5344 $as_echo 'EGREP' >> "conftest.nl"
5345 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5346 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5347 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5348 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5349 # Best one so far, save it but keep looking for a better one
5350 ac_cv_path_EGREP
="$ac_path_EGREP"
5351 ac_path_EGREP_max
=$ac_count
5353 # 10*(2^10) chars as input seems more than enough
5354 test $ac_count -gt 10 && break
5356 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5359 $ac_path_EGREP_found && break 3
5364 if test -z "$ac_cv_path_EGREP"; then
5365 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5368 ac_cv_path_EGREP
=$EGREP
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5374 $as_echo "$ac_cv_path_EGREP" >&6; }
5375 EGREP
="$ac_cv_path_EGREP"
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5379 $as_echo_n "checking for ANSI C header files... " >&6; }
5380 if ${ac_cv_header_stdc+:} false
; then :
5381 $as_echo_n "(cached) " >&6
5383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5398 if ac_fn_cxx_try_compile
"$LINENO"; then :
5399 ac_cv_header_stdc
=yes
5401 ac_cv_header_stdc
=no
5403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5405 if test $ac_cv_header_stdc = yes; then
5406 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5413 $EGREP "memchr" >/dev
/null
2>&1; then :
5416 ac_cv_header_stdc
=no
5422 if test $ac_cv_header_stdc = yes; then
5423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5430 $EGREP "free" >/dev
/null
2>&1; then :
5433 ac_cv_header_stdc
=no
5439 if test $ac_cv_header_stdc = yes; then
5440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5441 if test "$cross_compiling" = yes; then :
5444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5448 #if ((' ' & 0x0FF) == 0x020)
5449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5452 # define ISLOWER(c) \
5453 (('a' <= (c) && (c) <= 'i') \
5454 || ('j' <= (c) && (c) <= 'r') \
5455 || ('s' <= (c) && (c) <= 'z'))
5456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5464 for (i = 0; i < 256; i++)
5465 if (XOR (islower (i), ISLOWER (i))
5466 || toupper (i) != TOUPPER (i))
5471 if ac_fn_cxx_try_run
"$LINENO"; then :
5474 ac_cv_header_stdc
=no
5476 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5477 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5483 $as_echo "$ac_cv_header_stdc" >&6; }
5484 if test $ac_cv_header_stdc = yes; then
5486 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5490 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5491 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5492 inttypes.h stdint.h unistd.h
5494 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5495 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5497 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5498 cat >>confdefs.h
<<_ACEOF
5499 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5508 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5509 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5516 if test "$MINIX" = yes; then
5518 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5521 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5524 $as_echo "#define _MINIX 1" >>confdefs.h
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5530 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5531 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5532 $as_echo_n "(cached) " >&6
5534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5537 # define __EXTENSIONS__ 1
5538 $ac_includes_default
5547 if ac_fn_cxx_try_compile
"$LINENO"; then :
5548 ac_cv_safe_to_define___extensions__
=yes
5550 ac_cv_safe_to_define___extensions__
=no
5552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5555 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5556 test $ac_cv_safe_to_define___extensions__ = yes &&
5557 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5559 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5561 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5563 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5565 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5570 ac_cpp
='$CPP $CPPFLAGS'
5571 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5572 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5573 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5575 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5576 # On Suns, sometimes $CPP names a directory.
5577 if test -n "$CPP" && test -d "$CPP"; then
5580 if test -z "$CPP"; then
5581 if ${ac_cv_prog_CPP+:} false
; then :
5582 $as_echo_n "(cached) " >&6
5584 # Double quotes because CPP needs to be expanded
5585 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5588 for ac_c_preproc_warn_flag
in '' yes
5590 # Use a header file that comes with gcc, so configuring glibc
5591 # with a fresh cross-compiler works.
5592 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5593 # <limits.h> exists even on freestanding compilers.
5594 # On the NeXT, cc -E runs the code through the compiler's parser,
5595 # not just through cpp. "Syntax error" is here to catch this case.
5596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5599 # include <limits.h>
5601 # include <assert.h>
5605 if ac_fn_c_try_cpp
"$LINENO"; then :
5608 # Broken: fails on valid input.
5611 rm -f conftest.err conftest.i conftest.
$ac_ext
5613 # OK, works on sane cases. Now check whether nonexistent headers
5614 # can be detected and how.
5615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5617 #include <ac_nonexistent.h>
5619 if ac_fn_c_try_cpp
"$LINENO"; then :
5620 # Broken: success on invalid input.
5623 # Passes both tests.
5627 rm -f conftest.err conftest.i conftest.
$ac_ext
5630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5631 rm -f conftest.i conftest.err conftest.
$ac_ext
5632 if $ac_preproc_ok; then :
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5645 $as_echo "$CPP" >&6; }
5647 for ac_c_preproc_warn_flag
in '' yes
5649 # Use a header file that comes with gcc, so configuring glibc
5650 # with a fresh cross-compiler works.
5651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5652 # <limits.h> exists even on freestanding compilers.
5653 # On the NeXT, cc -E runs the code through the compiler's parser,
5654 # not just through cpp. "Syntax error" is here to catch this case.
5655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5658 # include <limits.h>
5660 # include <assert.h>
5664 if ac_fn_c_try_cpp
"$LINENO"; then :
5667 # Broken: fails on valid input.
5670 rm -f conftest.err conftest.i conftest.
$ac_ext
5672 # OK, works on sane cases. Now check whether nonexistent headers
5673 # can be detected and how.
5674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5676 #include <ac_nonexistent.h>
5678 if ac_fn_c_try_cpp
"$LINENO"; then :
5679 # Broken: success on invalid input.
5682 # Passes both tests.
5686 rm -f conftest.err conftest.i conftest.
$ac_ext
5689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5690 rm -f conftest.i conftest.err conftest.
$ac_ext
5691 if $ac_preproc_ok; then :
5694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5696 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5697 See \`config.log' for more details" "$LINENO" 5; }
5701 ac_cpp
='$CXXCPP $CPPFLAGS'
5702 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5703 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5704 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5707 $as_echo_n "checking for inline... " >&6; }
5708 if ${ac_cv_c_inline+:} false
; then :
5709 $as_echo_n "(cached) " >&6
5712 for ac_kw
in inline __inline__ __inline
; do
5713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5717 static $ac_kw foo_t static_foo () {return 0; }
5718 $ac_kw foo_t foo () {return 0; }
5722 if ac_fn_cxx_try_compile
"$LINENO"; then :
5723 ac_cv_c_inline
=$ac_kw
5725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5726 test "$ac_cv_c_inline" != no
&& break
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5731 $as_echo "$ac_cv_c_inline" >&6; }
5733 case $ac_cv_c_inline in
5736 case $ac_cv_c_inline in
5738 *) ac_val
=$ac_cv_c_inline;;
5740 cat >>confdefs.h
<<_ACEOF
5742 #define inline $ac_val
5749 # Check whether --enable-largefile was given.
5750 if test "${enable_largefile+set}" = set; then :
5751 enableval
=$enable_largefile;
5754 if test "$enable_largefile" != no
; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5757 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5758 if ${ac_cv_sys_largefile_CC+:} false
; then :
5759 $as_echo_n "(cached) " >&6
5761 ac_cv_sys_largefile_CC
=no
5762 if test "$GCC" != yes; then
5765 # IRIX 6.2 and later do not support large files by default,
5766 # so use the C compiler's -n32 option if that helps.
5767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5769 #include <sys/types.h>
5770 /* Check that off_t can represent 2**63 - 1 correctly.
5771 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5772 since some C++ compilers masquerading as C compilers
5773 incorrectly reject 9223372036854775807. */
5774 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5775 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5776 && LARGE_OFF_T % 2147483647 == 1)
5786 if ac_fn_cxx_try_compile
"$LINENO"; then :
5789 rm -f core conftest.err conftest.
$ac_objext
5791 if ac_fn_cxx_try_compile
"$LINENO"; then :
5792 ac_cv_sys_largefile_CC
=' -n32'; break
5794 rm -f core conftest.err conftest.
$ac_objext
5798 rm -f conftest.
$ac_ext
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5802 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5803 if test "$ac_cv_sys_largefile_CC" != no
; then
5804 CC
=$CC$ac_cv_sys_largefile_CC
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5808 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5809 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5810 $as_echo_n "(cached) " >&6
5813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815 #include <sys/types.h>
5816 /* Check that off_t can represent 2**63 - 1 correctly.
5817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5818 since some C++ compilers masquerading as C compilers
5819 incorrectly reject 9223372036854775807. */
5820 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5822 && LARGE_OFF_T % 2147483647 == 1)
5832 if ac_fn_cxx_try_compile
"$LINENO"; then :
5833 ac_cv_sys_file_offset_bits
=no
; break
5835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5838 #define _FILE_OFFSET_BITS 64
5839 #include <sys/types.h>
5840 /* Check that off_t can represent 2**63 - 1 correctly.
5841 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5842 since some C++ compilers masquerading as C compilers
5843 incorrectly reject 9223372036854775807. */
5844 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5845 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5846 && LARGE_OFF_T % 2147483647 == 1)
5856 if ac_fn_cxx_try_compile
"$LINENO"; then :
5857 ac_cv_sys_file_offset_bits
=64; break
5859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5860 ac_cv_sys_file_offset_bits
=unknown
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5865 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5866 case $ac_cv_sys_file_offset_bits in #(
5869 cat >>confdefs.h
<<_ACEOF
5870 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5875 if test $ac_cv_sys_file_offset_bits = unknown
; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5877 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5878 if ${ac_cv_sys_large_files+:} false
; then :
5879 $as_echo_n "(cached) " >&6
5882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5884 #include <sys/types.h>
5885 /* Check that off_t can represent 2**63 - 1 correctly.
5886 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5887 since some C++ compilers masquerading as C compilers
5888 incorrectly reject 9223372036854775807. */
5889 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5891 && LARGE_OFF_T % 2147483647 == 1)
5901 if ac_fn_cxx_try_compile
"$LINENO"; then :
5902 ac_cv_sys_large_files
=no
; break
5904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h. */
5907 #define _LARGE_FILES 1
5908 #include <sys/types.h>
5909 /* Check that off_t can represent 2**63 - 1 correctly.
5910 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5911 since some C++ compilers masquerading as C compilers
5912 incorrectly reject 9223372036854775807. */
5913 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5914 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5915 && LARGE_OFF_T % 2147483647 == 1)
5925 if ac_fn_cxx_try_compile
"$LINENO"; then :
5926 ac_cv_sys_large_files
=1; break
5928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5929 ac_cv_sys_large_files
=unknown
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5934 $as_echo "$ac_cv_sys_large_files" >&6; }
5935 case $ac_cv_sys_large_files in #(
5938 cat >>confdefs.h
<<_ACEOF
5939 #define _LARGE_FILES $ac_cv_sys_large_files
5949 # The cast to long int works around a bug in the HP C Compiler
5950 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5951 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5952 # This bug is HP SR number 8606223364.
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
5954 $as_echo_n "checking size of ino_t... " >&6; }
5955 if ${ac_cv_sizeof_ino_t+:} false
; then :
5956 $as_echo_n "(cached) " >&6
5958 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
5961 if test "$ac_cv_type_ino_t" = yes; then
5962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5964 as_fn_error
77 "cannot compute sizeof (ino_t)
5965 See \`config.log' for more details" "$LINENO" 5; }
5967 ac_cv_sizeof_ino_t
=0
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
5973 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
5977 cat >>confdefs.h
<<_ACEOF
5978 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
5982 # The cast to long int works around a bug in the HP C Compiler
5983 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5984 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5985 # This bug is HP SR number 8606223364.
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
5987 $as_echo_n "checking size of dev_t... " >&6; }
5988 if ${ac_cv_sizeof_dev_t+:} false
; then :
5989 $as_echo_n "(cached) " >&6
5991 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
5994 if test "$ac_cv_type_dev_t" = yes; then
5995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5997 as_fn_error
77 "cannot compute sizeof (dev_t)
5998 See \`config.log' for more details" "$LINENO" 5; }
6000 ac_cv_sizeof_dev_t
=0
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6006 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6010 cat >>confdefs.h
<<_ACEOF
6011 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6016 # Select the right stat being able to handle 64bit inodes, if needed.
6017 if test "$enable_largefile" != no
; then
6018 case "$host, $build" in
6019 *-*-aix*,*|
*,*-*-aix*)
6020 if test "$ac_cv_sizeof_ino_t" == "4" -a "$ac_cv_sizeof_dev_t" == 4; then
6022 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6029 # sizeof(char) is 1 by definition.
6030 # The cast to long int works around a bug in the HP C Compiler
6031 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6032 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6033 # This bug is HP SR number 8606223364.
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6035 $as_echo_n "checking size of void *... " >&6; }
6036 if ${ac_cv_sizeof_void_p+:} false
; then :
6037 $as_echo_n "(cached) " >&6
6039 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6042 if test "$ac_cv_type_void_p" = yes; then
6043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6045 as_fn_error
77 "cannot compute sizeof (void *)
6046 See \`config.log' for more details" "$LINENO" 5; }
6048 ac_cv_sizeof_void_p
=0
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6054 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6058 cat >>confdefs.h
<<_ACEOF
6059 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6063 # The cast to long int works around a bug in the HP C Compiler
6064 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6065 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6066 # This bug is HP SR number 8606223364.
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6068 $as_echo_n "checking size of short... " >&6; }
6069 if ${ac_cv_sizeof_short+:} false
; then :
6070 $as_echo_n "(cached) " >&6
6072 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6075 if test "$ac_cv_type_short" = yes; then
6076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6078 as_fn_error
77 "cannot compute sizeof (short)
6079 See \`config.log' for more details" "$LINENO" 5; }
6081 ac_cv_sizeof_short
=0
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6087 $as_echo "$ac_cv_sizeof_short" >&6; }
6091 cat >>confdefs.h
<<_ACEOF
6092 #define SIZEOF_SHORT $ac_cv_sizeof_short
6096 # The cast to long int works around a bug in the HP C Compiler
6097 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6098 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6099 # This bug is HP SR number 8606223364.
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6101 $as_echo_n "checking size of int... " >&6; }
6102 if ${ac_cv_sizeof_int+:} false
; then :
6103 $as_echo_n "(cached) " >&6
6105 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6108 if test "$ac_cv_type_int" = yes; then
6109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6111 as_fn_error
77 "cannot compute sizeof (int)
6112 See \`config.log' for more details" "$LINENO" 5; }
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6120 $as_echo "$ac_cv_sizeof_int" >&6; }
6124 cat >>confdefs.h
<<_ACEOF
6125 #define SIZEOF_INT $ac_cv_sizeof_int
6129 # The cast to long int works around a bug in the HP C Compiler
6130 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6131 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6132 # This bug is HP SR number 8606223364.
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6134 $as_echo_n "checking size of long... " >&6; }
6135 if ${ac_cv_sizeof_long+:} false
; then :
6136 $as_echo_n "(cached) " >&6
6138 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6141 if test "$ac_cv_type_long" = yes; then
6142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6144 as_fn_error
77 "cannot compute sizeof (long)
6145 See \`config.log' for more details" "$LINENO" 5; }
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6153 $as_echo "$ac_cv_sizeof_long" >&6; }
6157 cat >>confdefs.h
<<_ACEOF
6158 #define SIZEOF_LONG $ac_cv_sizeof_long
6162 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6163 if test "x$ac_cv_type_long_long" = xyes
; then :
6165 cat >>confdefs.h
<<_ACEOF
6166 #define HAVE_LONG_LONG 1
6169 # The cast to long int works around a bug in the HP C Compiler
6170 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6171 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6172 # This bug is HP SR number 8606223364.
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6174 $as_echo_n "checking size of long long... " >&6; }
6175 if ${ac_cv_sizeof_long_long+:} false
; then :
6176 $as_echo_n "(cached) " >&6
6178 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6181 if test "$ac_cv_type_long_long" = yes; then
6182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6184 as_fn_error
77 "cannot compute sizeof (long long)
6185 See \`config.log' for more details" "$LINENO" 5; }
6187 ac_cv_sizeof_long_long
=0
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6193 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6197 cat >>confdefs.h
<<_ACEOF
6198 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6204 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6205 case $ac_cv_c_int8_t in #(
6209 cat >>confdefs.h
<<_ACEOF
6210 #define int8_t $ac_cv_c_int8_t
6215 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6216 case $ac_cv_c_int16_t in #(
6220 cat >>confdefs.h
<<_ACEOF
6221 #define int16_t $ac_cv_c_int16_t
6226 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6227 case $ac_cv_c_int32_t in #(
6231 cat >>confdefs.h
<<_ACEOF
6232 #define int32_t $ac_cv_c_int32_t
6237 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6238 case $ac_cv_c_int64_t in #(
6242 cat >>confdefs.h
<<_ACEOF
6243 #define int64_t $ac_cv_c_int64_t
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6250 $as_echo_n "checking for unsigned long long int... " >&6; }
6251 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6252 $as_echo_n "(cached) " >&6
6254 ac_cv_type_unsigned_long_long_int
=yes
6255 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6259 /* For now, do not test the preprocessor; as of 2007 there are too many
6260 implementations with broken preprocessors. Perhaps this can
6261 be revisited in 2012. In the meantime, code should not expect
6262 #if to work with literals wider than 32 bits. */
6263 /* Test literals. */
6264 long long int ll = 9223372036854775807ll;
6265 long long int nll = -9223372036854775807LL;
6266 unsigned long long int ull = 18446744073709551615ULL;
6267 /* Test constant expressions. */
6268 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6270 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6276 /* Test availability of runtime routines for shift and division. */
6277 long long int llmax = 9223372036854775807ll;
6278 unsigned long long int ullmax = 18446744073709551615ull;
6279 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6280 | (llmax / ll) | (llmax % ll)
6281 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6282 | (ullmax / ull) | (ullmax % ull));
6288 if ac_fn_cxx_try_link
"$LINENO"; then :
6291 ac_cv_type_unsigned_long_long_int
=no
6293 rm -f core conftest.err conftest.
$ac_objext \
6294 conftest
$ac_exeext conftest.
$ac_ext
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6298 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6299 if test $ac_cv_type_unsigned_long_long_int = yes; then
6301 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6308 $as_echo_n "checking for long long int... " >&6; }
6309 if ${ac_cv_type_long_long_int+:} false
; then :
6310 $as_echo_n "(cached) " >&6
6312 ac_cv_type_long_long_int
=yes
6313 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6314 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6315 if test $ac_cv_type_long_long_int = yes; then
6316 if test "$cross_compiling" = yes; then :
6319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6324 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6325 # define LLONG_MAX (HALF - 1 + HALF)
6330 long long int n = 1;
6334 long long int m = n << i;
6337 if (LLONG_MAX / 2 < m)
6345 if ac_fn_cxx_try_run
"$LINENO"; then :
6348 ac_cv_type_long_long_int
=no
6350 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6351 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6358 $as_echo "$ac_cv_type_long_long_int" >&6; }
6359 if test $ac_cv_type_long_long_int = yes; then
6361 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6367 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6368 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6370 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6373 test $ac_cv_type_long_long_int = yes \
6374 && ac_type
='long long int' \
6375 || ac_type
='long int'
6377 cat >>confdefs.h
<<_ACEOF
6378 #define intmax_t $ac_type
6385 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6386 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6388 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6391 for ac_type
in 'int' 'long int' 'long long int'; do
6392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6393 /* end confdefs.h. */
6394 $ac_includes_default
6398 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6400 return test_array [0];
6406 if ac_fn_cxx_try_compile
"$LINENO"; then :
6408 cat >>confdefs.h
<<_ACEOF
6409 #define intptr_t $ac_type
6414 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6415 test -z "$ac_type" && break
6420 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6421 case $ac_cv_c_uint8_t in #(
6425 $as_echo "#define _UINT8_T 1" >>confdefs.h
6428 cat >>confdefs.h
<<_ACEOF
6429 #define uint8_t $ac_cv_c_uint8_t
6434 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6435 case $ac_cv_c_uint16_t in #(
6440 cat >>confdefs.h
<<_ACEOF
6441 #define uint16_t $ac_cv_c_uint16_t
6446 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6447 case $ac_cv_c_uint32_t in #(
6451 $as_echo "#define _UINT32_T 1" >>confdefs.h
6454 cat >>confdefs.h
<<_ACEOF
6455 #define uint32_t $ac_cv_c_uint32_t
6460 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6461 case $ac_cv_c_uint64_t in #(
6465 $as_echo "#define _UINT64_T 1" >>confdefs.h
6468 cat >>confdefs.h
<<_ACEOF
6469 #define uint64_t $ac_cv_c_uint64_t
6476 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6477 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6479 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6482 test $ac_cv_type_unsigned_long_long_int = yes \
6483 && ac_type
='unsigned long long int' \
6484 || ac_type
='unsigned long int'
6486 cat >>confdefs.h
<<_ACEOF
6487 #define uintmax_t $ac_type
6494 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6495 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6497 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6500 for ac_type
in 'unsigned int' 'unsigned long int' \
6501 'unsigned long long int'; do
6502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6504 $ac_includes_default
6508 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6510 return test_array [0];
6516 if ac_fn_cxx_try_compile
"$LINENO"; then :
6518 cat >>confdefs.h
<<_ACEOF
6519 #define uintptr_t $ac_type
6524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6525 test -z "$ac_type" && break
6542 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6543 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
6546 # check what underlying integer type int64_t uses
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6548 $as_echo_n "checking for int64_t underlying type... " >&6; }
6549 if ${ac_cv_int64_t_type+:} false
; then :
6550 $as_echo_n "(cached) " >&6
6553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6556 #ifdef HAVE_STDINT_H
6559 template <typename T> struct X { };
6561 struct X<long> { typedef long t; };
6571 if ac_fn_cxx_try_compile
"$LINENO"; then :
6572 ac_cv_int64_t_type
=long
6574 ac_cv_int64_t_type
="long long"
6576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6579 $as_echo "$ac_cv_int64_t_type" >&6; }
6580 if test "$ac_cv_int64_t_type" = "long"; then
6582 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6588 #ifdef HAVE_STDINT_H
6591 template <typename T> struct X { };
6593 struct X<long long> { typedef long long t; };
6603 if ac_fn_cxx_try_compile
"$LINENO"; then :
6606 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
6608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6612 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6613 if ${ac_cv_std_swap_in_utility+:} false
; then :
6614 $as_echo_n "(cached) " >&6
6617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6625 int a, b; std::swap(a,b);
6630 if ac_fn_cxx_try_compile
"$LINENO"; then :
6631 ac_cv_std_swap_in_utility
=yes
6633 ac_cv_std_swap_in_utility
=no
6635 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6638 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6639 if test $ac_cv_std_swap_in_utility = yes; then
6641 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6645 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6646 # If the host compiler is affected by the bug, and we build with optimization
6647 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6648 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6649 # Since there is no reliable feature check for the presence of this bug,
6650 # we simply use a GCC version number check. (This should never trigger for
6651 # stages 2 or 3 of a native bootstrap.)
6653 if test "$GCC" = yes; then
6654 saved_CXXFLAGS
="$CXXFLAGS"
6656 # The following test compilation will succeed if and only if $CXX accepts
6657 # -fno-strict-aliasing *and* is older than GCC 4.3.
6658 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6660 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6664 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6665 #error compiler not affected by placement new aliasing bug
6669 if ac_fn_cxx_try_compile
"$LINENO"; then :
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6671 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 $as_echo "no" >&6; }
6676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6678 CXXFLAGS
="$saved_CXXFLAGS"
6684 # ---------------------
6685 # Warnings and checking
6686 # ---------------------
6688 # Check $CC warning features (if it's GCC).
6689 # We want to use -pedantic, but we don't want warnings about
6692 # * overlong strings
6693 # * C++11 narrowing conversions in { }
6694 # So, we only use -pedantic if we can disable those warnings.
6696 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6697 # Check whether --enable-build-format-warnings was given.
6698 if test "${enable_build_format_warnings+set}" = set; then :
6699 enableval
=$enable_build_format_warnings;
6701 enable_build_format_warnings
=yes
6704 if test $enable_build_format_warnings = no
; then :
6710 ac_cpp
='$CXXCPP $CPPFLAGS'
6711 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6712 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6713 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6716 save_CXXFLAGS
="$CXXFLAGS"
6717 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6718 # Do the check with the no- prefix removed since gcc silently
6719 # accepts any -Wno-* option on purpose
6720 case $real_option in
6721 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6722 *) option
=$real_option ;;
6724 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6727 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6728 if eval \
${$as_acx_Woption+:} false
; then :
6729 $as_echo_n "(cached) " >&6
6732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6743 if ac_fn_cxx_try_compile
"$LINENO"; then :
6744 eval "$as_acx_Woption=yes"
6746 eval "$as_acx_Woption=no"
6748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6751 eval ac_res
=\$
$as_acx_Woption
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6753 $as_echo "$ac_res" >&6; }
6754 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6755 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6758 CXXFLAGS
="$save_CXXFLAGS"
6760 ac_cpp
='$CXXCPP $CPPFLAGS'
6761 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6762 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6763 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6768 ac_cpp
='$CPP $CPPFLAGS'
6769 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6770 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6771 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6774 save_CFLAGS
="$CFLAGS"
6775 for real_option
in -Wstrict-prototypes -Wmissing-prototypes ; do
6776 # Do the check with the no- prefix removed since gcc silently
6777 # accepts any -Wno-* option on purpose
6778 case $real_option in
6779 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6780 *) option
=$real_option ;;
6782 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6785 $as_echo_n "checking whether $CC supports $option... " >&6; }
6786 if eval \
${$as_acx_Woption+:} false
; then :
6787 $as_echo_n "(cached) " >&6
6790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6791 /* end confdefs.h. */
6801 if ac_fn_c_try_compile
"$LINENO"; then :
6802 eval "$as_acx_Woption=yes"
6804 eval "$as_acx_Woption=no"
6806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6809 eval ac_res
=\$
$as_acx_Woption
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6811 $as_echo "$ac_res" >&6; }
6812 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6813 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6816 CFLAGS
="$save_CFLAGS"
6818 ac_cpp
='$CXXCPP $CPPFLAGS'
6819 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6825 ac_cpp
='$CXXCPP $CPPFLAGS'
6826 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6827 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6828 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6831 save_CXXFLAGS
="$CXXFLAGS"
6832 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
6833 # Do the check with the no- prefix removed since gcc silently
6834 # accepts any -Wno-* option on purpose
6835 case $real_option in
6836 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6837 *) option
=$real_option ;;
6839 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6842 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6843 if eval \
${$as_acx_Woption+:} false
; then :
6844 $as_echo_n "(cached) " >&6
6847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6858 if ac_fn_cxx_try_compile
"$LINENO"; then :
6859 eval "$as_acx_Woption=yes"
6861 eval "$as_acx_Woption=no"
6863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6866 eval ac_res
=\$
$as_acx_Woption
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6868 $as_echo "$ac_res" >&6; }
6869 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6870 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6873 CXXFLAGS
="$save_CXXFLAGS"
6875 ac_cpp
='$CXXCPP $CPPFLAGS'
6876 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6877 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6878 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6882 ac_cpp
='$CPP $CPPFLAGS'
6883 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6884 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6885 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6888 save_CFLAGS
="$CFLAGS"
6889 for real_option
in -Wold-style-definition -Wc++-compat; do
6890 # Do the check with the no- prefix removed since gcc silently
6891 # accepts any -Wno-* option on purpose
6892 case $real_option in
6893 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6894 *) option
=$real_option ;;
6896 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6899 $as_echo_n "checking whether $CC supports $option... " >&6; }
6900 if eval \
${$as_acx_Woption+:} false
; then :
6901 $as_echo_n "(cached) " >&6
6904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6905 /* end confdefs.h. */
6915 if ac_fn_c_try_compile
"$LINENO"; then :
6916 eval "$as_acx_Woption=yes"
6918 eval "$as_acx_Woption=no"
6920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6923 eval ac_res
=\$
$as_acx_Woption
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6925 $as_echo "$ac_res" >&6; }
6926 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6927 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6930 CFLAGS
="$save_CFLAGS"
6932 ac_cpp
='$CXXCPP $CPPFLAGS'
6933 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6934 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6935 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6939 ac_cpp
='$CXXCPP $CPPFLAGS'
6940 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6941 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6942 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6944 # Do the check with the no- prefix removed from the warning options
6945 # since gcc silently accepts any -Wno-* option on purpose
6946 if test "$GXX" = yes; then :
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6948 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6949 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
6950 $as_echo_n "(cached) " >&6
6952 save_CXXFLAGS
="$CXXFLAGS"
6953 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6965 if ac_fn_cxx_try_compile
"$LINENO"; then :
6966 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6968 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6971 CXXFLAGS
="$save_CXXFLAGS"
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6974 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6975 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6976 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6981 ac_cpp
='$CXXCPP $CPPFLAGS'
6982 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6983 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6984 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6988 ac_cpp
='$CXXCPP $CPPFLAGS'
6989 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6990 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6991 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6993 # Check whether --enable-werror-always was given.
6994 if test "${enable_werror_always+set}" = set; then :
6995 enableval
=$enable_werror_always;
6997 enable_werror_always
=no
7000 if test $enable_werror_always = yes; then :
7001 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
7005 ac_cpp
='$CXXCPP $CPPFLAGS'
7006 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7007 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7008 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7012 # The above macros do nothing if the compiler is not GCC. However, the
7013 # Makefile has more goo to add other flags, so these variables are used
7014 # to enable warnings only for GCC.
7017 if test "x$GCC" = "xyes"; then
7018 warn_cflags
='$(GCC_WARN_CFLAGS)'
7019 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7024 # Disable exceptions and RTTI if building with g++
7026 ac_cpp
='$CPP $CPPFLAGS'
7027 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7028 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7029 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7032 save_CFLAGS
="$CFLAGS"
7033 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7034 # Do the check with the no- prefix removed since gcc silently
7035 # accepts any -Wno-* option on purpose
7036 case $real_option in
7037 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7038 *) option
=$real_option ;;
7040 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7043 $as_echo_n "checking whether $CC supports $option... " >&6; }
7044 if eval \
${$as_acx_Woption+:} false
; then :
7045 $as_echo_n "(cached) " >&6
7048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7059 if ac_fn_c_try_compile
"$LINENO"; then :
7060 eval "$as_acx_Woption=yes"
7062 eval "$as_acx_Woption=no"
7064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7067 eval ac_res
=\$
$as_acx_Woption
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7069 $as_echo "$ac_res" >&6; }
7070 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7071 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7074 CFLAGS
="$save_CFLAGS"
7076 ac_cpp
='$CXXCPP $CPPFLAGS'
7077 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7078 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7079 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7083 # Enable expensive internal checks
7085 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7089 # Check whether --enable-checking was given.
7090 if test "${enable_checking+set}" = set; then :
7091 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7094 # Determine the default checks.
7095 if test x
$is_release = x
; then
7096 ac_checking_flags
=yes,extra
7098 ac_checking_flags
=release
7102 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7103 for check
in release
$ac_checking_flags
7106 # these set all the flags to specific states
7107 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7108 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7109 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7110 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7111 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7112 ac_types_checking
=1 ;;
7113 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7114 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7115 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7116 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7117 ac_tree_checking
= ; ac_valgrind_checking
= ;
7118 ac_types_checking
= ;;
7119 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7120 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7121 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7122 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7123 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7124 ac_types_checking
=1 ;;
7125 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7126 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7127 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7128 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7129 ac_tree_checking
= ; ac_valgrind_checking
= ;
7130 ac_types_checking
= ;;
7131 # these enable particular checks
7132 assert
) ac_assert_checking
=1 ;;
7133 df
) ac_df_checking
=1 ;;
7134 extra
) ac_extra_checking
=1 ;;
7135 fold) ac_fold_checking
=1 ;;
7136 gc
) ac_gc_checking
=1 ;;
7137 gcac
) ac_gc_always_collect
=1 ;;
7138 gimple
) ac_gimple_checking
=1 ;;
7139 misc
) ac_checking
=1 ;;
7140 rtl
) ac_rtl_checking
=1 ;;
7141 rtlflag
) ac_rtlflag_checking
=1 ;;
7142 runtime
) ac_runtime_checking
=1 ;;
7143 tree
) ac_tree_checking
=1 ;;
7144 types
) ac_types_checking
=1 ;;
7145 valgrind
) ac_valgrind_checking
=1 ;;
7146 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7152 if test x
$ac_checking != x
; then
7154 $as_echo "#define CHECKING_P 1" >>confdefs.h
7156 nocommon_flag
=-fno-common
7158 $as_echo "#define CHECKING_P 0" >>confdefs.h
7162 if test x
$ac_extra_checking != x
; then
7164 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7167 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7170 if test x
$ac_df_checking != x
; then
7172 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7175 if test x
$ac_assert_checking != x
; then
7177 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7180 if test x
$ac_gimple_checking != x
; then
7182 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7186 if test x
$ac_runtime_checking != x
; then
7188 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7191 if test x
$ac_tree_checking != x
; then
7193 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7197 if test x
$ac_types_checking != x
; then
7199 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7203 if test x
$ac_rtl_checking != x
; then
7205 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7208 if test x
$ac_rtlflag_checking != x
; then
7210 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7213 if test x
$ac_gc_checking != x
; then
7215 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7218 if test x
$ac_gc_always_collect != x
; then
7220 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7223 if test x
$ac_fold_checking != x
; then
7225 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7228 valgrind_path_defines
=
7231 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7232 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
7240 # It is certainly possible that there's valgrind but no valgrind.h.
7241 # GCC relies on making annotations so we must have both.
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7243 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h. */
7246 #include <valgrind/memcheck.h>
7247 #ifndef VALGRIND_DISCARD
7248 #error VALGRIND_DISCARD not defined
7251 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7252 gcc_cv_header_valgrind_memcheck_h
=yes
7254 gcc_cv_header_valgrind_memcheck_h
=no
7256 rm -f conftest.err conftest.i conftest.
$ac_ext
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7258 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7260 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7262 /* end confdefs.h. */
7263 #include <memcheck.h>
7264 #ifndef VALGRIND_DISCARD
7265 #error VALGRIND_DISCARD not defined
7268 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7269 gcc_cv_header_memcheck_h
=yes
7271 gcc_cv_header_memcheck_h
=no
7273 rm -f conftest.err conftest.i conftest.
$ac_ext
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7275 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7276 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7278 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7281 if test $gcc_cv_header_memcheck_h = yes; then
7283 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7287 if test x
$ac_valgrind_checking != x
; then
7289 # Prepare PATH_SEPARATOR.
7290 # The user is always right.
7291 if test "${PATH_SEPARATOR+set}" != set; then
7292 echo "#! /bin/sh" >conf$$.sh
7293 echo "exit 0" >>conf$$.sh
7295 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7303 # Find out how to test for executable files. Don't use a zero-byte file,
7304 # as systems may use methods other than mode bits to determine executability.
7305 cat >conf$$.
file <<_ASEOF
7309 chmod +x conf$$.
file
7310 if test -x conf$$.
file >/dev
/null
2>&1; then
7311 ac_executable_p
="test -x"
7313 ac_executable_p
="test -f"
7317 # Extract the first word of "valgrind", so it can be a program name with args.
7318 set dummy valgrind
; ac_word
=$2
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7320 $as_echo_n "checking for $ac_word... " >&6; }
7321 if ${ac_cv_path_valgrind_path+:} false
; then :
7322 $as_echo_n "(cached) " >&6
7324 case "$valgrind_path" in
7326 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7329 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7330 for ac_dir
in $PATH; do
7332 test -z "$ac_dir" && ac_dir
=.
7333 for ac_exec_ext
in '' $ac_executable_extensions; do
7334 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7335 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7336 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7346 valgrind_path
="$ac_cv_path_valgrind_path"
7347 if test -n "$valgrind_path"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7349 $as_echo "$valgrind_path" >&6; }
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7355 if test "x$valgrind_path" = "x" \
7356 ||
(test $have_valgrind_h = no \
7357 && test $gcc_cv_header_memcheck_h = no \
7358 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7359 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7361 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7362 valgrind_command
="$valgrind_path -q"
7364 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7370 # Enable code coverage collection
7371 # Check whether --enable-coverage was given.
7372 if test "${enable_coverage+set}" = set; then :
7373 enableval
=$enable_coverage; case "${enableval}" in
7375 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7378 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7381 # a.k.a. --disable-coverage
7385 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7394 # Check whether --enable-gather-detailed-mem-stats was given.
7395 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7396 enableval
=$enable_gather_detailed_mem_stats;
7398 enable_gather_detailed_mem_stats
=no
7401 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7403 cat >>confdefs.h
<<_ACEOF
7404 #define GATHER_STATISTICS $gather_stats
7408 # Check whether --enable-valgrind-annotations was given.
7409 if test "${enable_valgrind_annotations+set}" = set; then :
7410 enableval
=$enable_valgrind_annotations;
7412 enable_valgrind_annotations
=no
7415 if test x
$enable_valgrind_annotations != xno \
7416 ||
test x
$ac_valgrind_checking != x
; then
7417 if (test $have_valgrind_h = no \
7418 && test $gcc_cv_header_memcheck_h = no \
7419 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7420 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7423 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7427 # -------------------------------
7428 # Miscenalleous configure options
7429 # -------------------------------
7431 # Determine whether or not multilibs are enabled.
7432 # Check whether --enable-multilib was given.
7433 if test "${enable_multilib+set}" = set; then :
7434 enableval
=$enable_multilib;
7441 # Determine whether or not multiarch is enabled.
7442 # Check whether --enable-multiarch was given.
7443 if test "${enable_multiarch+set}" = set; then :
7444 enableval
=$enable_multiarch; case "${enableval}" in
7445 yes|no|auto
) enable_multiarch
=$enableval;;
7446 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7449 enable_multiarch
=auto
7452 if test x
${enable_multiarch} = xauto
; then
7453 if test x
${with_native_system_header_dir} != x
; then
7454 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7457 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7458 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7463 $as_echo_n "checking for multiarch configuration... " >&6; }
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7466 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7468 # needed for setting the multiarch name for soft-float/hard-float ABIs
7472 # default stack clash protection guard size as power of twos in bytes.
7473 # Please keep these in sync with params.def.
7477 # Keep the default value when the option is not used to 0, this allows us to
7478 # distinguish between the cases where the user specifially set a value via
7479 # configure and when the normal default value is used.
7481 # Check whether --with-stack-clash-protection-guard-size was given.
7482 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7483 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7485 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7488 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7489 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7490 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7491 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
7495 cat >>confdefs.h
<<_ACEOF
7496 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7500 # Enable __cxa_atexit for C++.
7501 # Check whether --enable-__cxa_atexit was given.
7502 if test "${enable___cxa_atexit+set}" = set; then :
7503 enableval
=$enable___cxa_atexit;
7507 # Enable C extension for decimal float if target supports it.
7509 # Check whether --enable-decimal-float was given.
7510 if test "${enable_decimal_float+set}" = set; then :
7511 enableval
=$enable_decimal_float;
7512 case $enable_decimal_float in
7513 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7514 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7515 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7521 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7522 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7523 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7524 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7525 enable_decimal_float
=yes
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7529 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7530 enable_decimal_float
=no
7537 # x86's use BID format instead of DPD
7538 case x
$enable_decimal_float in
7541 i?
86*-*-* | x86_64
*-*-*)
7542 enable_decimal_float
=bid
7545 enable_decimal_float
=dpd
7548 default_decimal_float
=$enable_decimal_float
7551 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7552 # dependency on libdecnumber.
7553 default_decimal_float
=dpd
7560 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7562 cat >>confdefs.h
<<_ACEOF
7563 #define ENABLE_DECIMAL_FLOAT $dfp
7567 # Use default_decimal_float for dependency.
7568 enable_decimal_float
=$default_decimal_float
7570 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7572 cat >>confdefs.h
<<_ACEOF
7573 #define ENABLE_DECIMAL_BID_FORMAT $bid
7577 # Enable C extension for fixed-point arithmetic.
7578 # Check whether --enable-fixed-point was given.
7579 if test "${enable_fixed_point+set}" = set; then :
7580 enableval
=$enable_fixed_point;
7585 enable_fixed_point
=yes
7589 enable_fixed_point
=yes
7592 enable_fixed_point
=yes
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7596 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7597 enable_fixed_point
=no
7605 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7607 cat >>confdefs.h
<<_ACEOF
7608 #define ENABLE_FIXED_POINT $fixedpoint
7613 # Pass with no value to take the default
7614 # Pass with a value to specify a thread package
7615 # Check whether --enable-threads was given.
7616 if test "${enable_threads+set}" = set; then :
7617 enableval
=$enable_threads;
7623 # Check whether --enable-tls was given.
7624 if test "${enable_tls+set}" = set; then :
7625 enableval
=$enable_tls;
7628 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
7629 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7637 # Check whether --enable-vtable-verify was given.
7638 if test "${enable_vtable_verify+set}" = set; then :
7639 enableval
=$enable_vtable_verify;
7641 enable_vtable_verify
=no
7644 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7646 cat >>confdefs.h
<<_ACEOF
7647 #define ENABLE_VTABLE_VERIFY $vtable_verify
7651 # Check whether --enable-analyzer was given.
7652 if test "${enable_analyzer+set}" = set; then :
7653 enableval
=$enable_analyzer; if test x
$enable_analyzer = xno
; then
7663 cat >>confdefs.h
<<_ACEOF
7664 #define ENABLE_ANALYZER $analyzer
7668 # Check whether --enable-objc-gc was given.
7669 if test "${enable_objc_gc+set}" = set; then :
7670 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7681 # Check whether --with-dwarf2 was given.
7682 if test "${with_dwarf2+set}" = set; then :
7683 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7689 # Check whether --enable-shared was given.
7690 if test "${enable_shared+set}" = set; then :
7691 enableval
=$enable_shared;
7692 case $enable_shared in
7696 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7697 for pkg
in $enableval; do
7698 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7712 # Check whether --enable-gcov was given.
7713 if test "${enable_gcov+set}" = set; then :
7714 enableval
=$enable_gcov;
7730 # Check whether --with-specs was given.
7731 if test "${with_specs+set}" = set; then :
7732 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7742 # Check whether --with-pkgversion was given.
7743 if test "${with_pkgversion+set}" = set; then :
7744 withval
=$with_pkgversion; case "$withval" in
7745 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7747 *) PKGVERSION
="($withval) " ;;
7758 # Check whether --with-bugurl was given.
7759 if test "${with_bugurl+set}" = set; then :
7760 withval
=$with_bugurl; case "$withval" in
7761 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7764 *) BUGURL
="$withval"
7768 BUGURL
="http://sourceforge.net/tracker/?atid=100599&group_id=599&func=browse"
7778 REPORT_BUGS_TO
="<$BUGURL>"
7779 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7786 # Allow overriding the default URL for documentation
7788 # Check whether --with-documentation-root-url was given.
7789 if test "${with_documentation_root_url+set}" = set; then :
7790 withval
=$with_documentation_root_url; case "$withval" in
7791 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
7792 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
7793 */) DOCUMENTATION_ROOT_URL
="$withval" ;;
7794 *) as_fn_error $?
"documentation root URL does not end with /" "$LINENO" 5 ;;
7797 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/"
7802 cat >>confdefs.h
<<_ACEOF
7803 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
7807 # Allow overriding the default URL for GCC changes
7809 # Check whether --with-changes-root-url was given.
7810 if test "${with_changes_root_url+set}" = set; then :
7811 withval
=$with_changes_root_url; case "$withval" in
7812 yes) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
7813 no
) as_fn_error $?
"changes root URL not specified" "$LINENO" 5 ;;
7814 */) CHANGES_ROOT_URL
="$withval" ;;
7815 *) as_fn_error $?
"changes root URL does not end with /" "$LINENO" 5 ;;
7818 CHANGES_ROOT_URL
="https://gcc.gnu.org/"
7823 cat >>confdefs.h
<<_ACEOF
7824 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
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
=`echo $tgt | sed 's/=.*//'`
7888 *-intelmic-* |
*-intelmicemul-*)
7889 omp_device_property
=omp-device-properties-i386
7890 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
7893 omp_device_property
=omp-device-properties-gcn
7894 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
7897 omp_device_property
=omp-device-properties-nvptx
7898 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
7901 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
7904 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
7905 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
7907 if test x
"$offload_targets" = x
; then
7908 offload_targets
=$tgt
7910 offload_targets
="$offload_targets,$tgt"
7917 cat >>confdefs.h
<<_ACEOF
7918 #define OFFLOAD_TARGETS "$offload_targets"
7921 if test x
"$enable_offloading" != x
; then
7923 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7927 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7931 if test "x$enable_offload_defaulted" = xyes
; then
7933 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
7938 # Check whether --with-multilib-list was given.
7939 if test "${with_multilib_list+set}" = set; then :
7940 withval
=$with_multilib_list; :
7942 with_multilib_list
=default
7947 # Check whether --with-multilib-generator was given.
7948 if test "${with_multilib_generator+set}" = set; then :
7949 withval
=$with_multilib_generator; :
7951 with_multilib_generator
=default
7955 # -------------------------
7956 # Checks for other programs
7957 # -------------------------
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7960 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7962 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7963 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
7964 $as_echo_n "(cached) " >&6
7966 cat >conftest.
make <<\_ACEOF
7969 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7971 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7972 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7974 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7976 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7980 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7982 $as_echo "yes" >&6; }
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986 $as_echo "no" >&6; }
7987 SET_MAKE
="MAKE=${MAKE-make}"
7991 # Find some useful tools
7992 for ac_prog
in gawk mawk nawk
awk
7994 # Extract the first word of "$ac_prog", so it can be a program name with args.
7995 set dummy
$ac_prog; ac_word
=$2
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7997 $as_echo_n "checking for $ac_word... " >&6; }
7998 if ${ac_cv_prog_AWK+:} false
; then :
7999 $as_echo_n "(cached) " >&6
8001 if test -n "$AWK"; then
8002 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8008 test -z "$as_dir" && as_dir
=.
8009 for ac_exec_ext
in '' $ac_executable_extensions; do
8010 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8011 ac_cv_prog_AWK
="$ac_prog"
8012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8022 if test -n "$AWK"; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8024 $as_echo "$AWK" >&6; }
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027 $as_echo "no" >&6; }
8031 test -n "$AWK" && break
8034 # We need awk to create options.cc and options.h.
8035 # Bail out if it's missing.
8037 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8041 $as_echo_n "checking whether ln -s works... " >&6; }
8042 if ${gcc_cv_prog_LN_S+:} false
; then :
8043 $as_echo_n "(cached) " >&6
8045 rm -f conftestdata_t
8046 echo >conftestdata_f
8047 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8049 gcc_cv_prog_LN_S
="ln -s"
8051 if ln conftestdata_f conftestdata_t
2>/dev
/null
8055 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8057 gcc_cv_prog_LN_S
="cp -p"
8063 rm -f conftestdata_f conftestdata_t
8066 LN_S
="$gcc_cv_prog_LN_S"
8067 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8069 $as_echo "yes" >&6; }
8071 if test "$gcc_cv_prog_LN_S" = "ln"; then
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8073 $as_echo "no, using ln" >&6; }
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8076 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8081 $as_echo_n "checking whether ln works... " >&6; }
8082 if ${acx_cv_prog_LN+:} false
; then :
8083 $as_echo_n "(cached) " >&6
8085 rm -f conftestdata_t
8086 echo >conftestdata_f
8087 if ln conftestdata_f conftestdata_t
2>/dev
/null
8093 rm -f conftestdata_f conftestdata_t
8096 if test $acx_cv_prog_LN = no
; then
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8099 $as_echo "no, using $LN" >&6; }
8101 LN
="$acx_cv_prog_LN"
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8103 $as_echo "yes" >&6; }
8106 if test -n "$ac_tool_prefix"; then
8107 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8108 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if ${ac_cv_prog_RANLIB+:} false
; then :
8112 $as_echo_n "(cached) " >&6
8114 if test -n "$RANLIB"; then
8115 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8117 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8121 test -z "$as_dir" && as_dir
=.
8122 for ac_exec_ext
in '' $ac_executable_extensions; do
8123 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8124 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 RANLIB
=$ac_cv_prog_RANLIB
8135 if test -n "$RANLIB"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8137 $as_echo "$RANLIB" >&6; }
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8145 if test -z "$ac_cv_prog_RANLIB"; then
8146 ac_ct_RANLIB
=$RANLIB
8147 # Extract the first word of "ranlib", so it can be a program name with args.
8148 set dummy ranlib
; ac_word
=$2
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8150 $as_echo_n "checking for $ac_word... " >&6; }
8151 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8152 $as_echo_n "(cached) " >&6
8154 if test -n "$ac_ct_RANLIB"; then
8155 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8157 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8161 test -z "$as_dir" && as_dir
=.
8162 for ac_exec_ext
in '' $ac_executable_extensions; do
8163 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8164 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8174 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8175 if test -n "$ac_ct_RANLIB"; then
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8177 $as_echo "$ac_ct_RANLIB" >&6; }
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180 $as_echo "no" >&6; }
8183 if test "x$ac_ct_RANLIB" = x
; then
8186 case $cross_compiling:$ac_tool_warned in
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8190 ac_tool_warned
=yes ;;
8192 RANLIB
=$ac_ct_RANLIB
8195 RANLIB
="$ac_cv_prog_RANLIB"
8201 # Find a good install program. We prefer a C program (faster),
8202 # so one script is as good as another. But avoid the broken or
8203 # incompatible versions:
8204 # SysV /etc/install, /usr/sbin/install
8205 # SunOS /usr/etc/install
8206 # IRIX /sbin/install
8208 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8209 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8210 # ./install, which can be erroneously created by make from ./install.sh.
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8212 $as_echo_n "checking for a BSD compatible install... " >&6; }
8213 if test -z "$INSTALL"; then
8214 if ${ac_cv_path_install+:} false
; then :
8215 $as_echo_n "(cached) " >&6
8217 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8218 for ac_dir
in $PATH; do
8219 # Account for people who put trailing slashes in PATH elements.
8221 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8223 # OSF1 and SCO ODT 3.0 have their own names for install.
8224 for ac_prog
in ginstall scoinst
install; do
8225 if test -f $ac_dir/$ac_prog; then
8226 if test $ac_prog = install &&
8227 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8228 # AIX install. It has an incompatible calling convention.
8229 # OSF/1 installbsd also uses dspmsg, but is usable.
8232 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8243 if test "${ac_cv_path_install+set}" = set; then
8244 INSTALL
="$ac_cv_path_install"
8246 # As a last resort, use the slow shell script. We don't cache a
8247 # path for INSTALL within a source directory, because that will
8248 # break other packages using the cache if that directory is
8249 # removed, or if the path is relative.
8250 INSTALL
="$ac_install_sh"
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8254 $as_echo "$INSTALL" >&6; }
8256 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8257 # It thinks the first close brace ends the variable substitution.
8258 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8260 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8263 # See if cmp has --ignore-initial.
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8265 $as_echo_n "checking for cmp's capabilities... " >&6; }
8266 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8267 $as_echo_n "(cached) " >&6
8271 gcc_cv_prog_cmp_skip
=slowcompare
8272 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8273 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8276 gcc_cv_prog_cmp_skip
=gnucompare
8279 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8280 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8281 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8284 gcc_cv_prog_cmp_skip
=fastcompare
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8292 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8293 make_compare_target
=$gcc_cv_prog_cmp_skip
8297 # See if we have the mktemp command.
8298 # Extract the first word of "mktemp", so it can be a program name with args.
8299 set dummy mktemp
; ac_word
=$2
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301 $as_echo_n "checking for $ac_word... " >&6; }
8302 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8303 $as_echo_n "(cached) " >&6
8305 if test -n "$have_mktemp_command"; then
8306 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8312 test -z "$as_dir" && as_dir
=.
8313 for ac_exec_ext
in '' $ac_executable_extensions; do
8314 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8315 ac_cv_prog_have_mktemp_command
="yes"
8316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8323 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8326 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8327 if test -n "$have_mktemp_command"; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8329 $as_echo "$have_mktemp_command" >&6; }
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332 $as_echo "no" >&6; }
8337 # See if makeinfo has been installed and is modern enough
8338 # that we can use it.
8340 # Extract the first word of "makeinfo", so it can be a program name with args.
8341 set dummy makeinfo
; ac_word
=$2
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8343 $as_echo_n "checking for $ac_word... " >&6; }
8344 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8345 $as_echo_n "(cached) " >&6
8347 if test -n "$MAKEINFO"; then
8348 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8354 test -z "$as_dir" && as_dir
=.
8355 for ac_exec_ext
in '' $ac_executable_extensions; do
8356 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8357 ac_cv_prog_MAKEINFO
="makeinfo"
8358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8367 MAKEINFO
=$ac_cv_prog_MAKEINFO
8368 if test -n "$MAKEINFO"; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8370 $as_echo "$MAKEINFO" >&6; }
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373 $as_echo "no" >&6; }
8377 if test -n "$MAKEINFO"; then
8378 # Found it, now check the version.
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8380 $as_echo_n "checking for modern makeinfo... " >&6; }
8381 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8382 $as_echo_n "(cached) " >&6
8384 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8385 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8387 case $ac_prog_version in
8388 '') gcc_cv_prog_makeinfo_modern
=no
;;
8389 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8390 *) gcc_cv_prog_makeinfo_modern
=no
;;
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8395 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8397 gcc_cv_prog_makeinfo_modern
=no
8399 if test $gcc_cv_prog_makeinfo_modern = no
; then
8400 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8403 if test $gcc_cv_prog_makeinfo_modern = no
; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8405 *** Makeinfo is missing or too old.
8406 *** Info documentation will not be built." >&5
8407 $as_echo "$as_me: WARNING:
8408 *** Makeinfo is missing or too old.
8409 *** Info documentation will not be built." >&2;}
8416 # Is pod2man recent enough to regenerate manpages?
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8418 $as_echo_n "checking for recent Pod::Man... " >&6; }
8419 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8421 $as_echo "yes" >&6; }
8422 GENERATED_MANPAGES
=generated-manpages
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425 $as_echo "no" >&6; }
8430 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8435 # Extract the first word of "$ac_prog", so it can be a program name with args.
8436 set dummy
$ac_prog; ac_word
=$2
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438 $as_echo_n "checking for $ac_word... " >&6; }
8439 if ${ac_cv_prog_FLEX+:} false
; then :
8440 $as_echo_n "(cached) " >&6
8442 if test -n "$FLEX"; then
8443 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8449 test -z "$as_dir" && as_dir
=.
8450 for ac_exec_ext
in '' $ac_executable_extensions; do
8451 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8452 ac_cv_prog_FLEX
="$ac_prog"
8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8462 FLEX
=$ac_cv_prog_FLEX
8463 if test -n "$FLEX"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8465 $as_echo "$FLEX" >&6; }
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 $as_echo "no" >&6; }
8472 test -n "$FLEX" && break
8474 test -n "$FLEX" || FLEX
="$MISSING flex"
8478 for ac_prog
in bison
8480 # Extract the first word of "$ac_prog", so it can be a program name with args.
8481 set dummy
$ac_prog; ac_word
=$2
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8483 $as_echo_n "checking for $ac_word... " >&6; }
8484 if ${ac_cv_prog_BISON+:} false
; then :
8485 $as_echo_n "(cached) " >&6
8487 if test -n "$BISON"; then
8488 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8494 test -z "$as_dir" && as_dir
=.
8495 for ac_exec_ext
in '' $ac_executable_extensions; do
8496 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8497 ac_cv_prog_BISON
="$ac_prog"
8498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8507 BISON
=$ac_cv_prog_BISON
8508 if test -n "$BISON"; then
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8510 $as_echo "$BISON" >&6; }
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8513 $as_echo "no" >&6; }
8517 test -n "$BISON" && break
8519 test -n "$BISON" || BISON
="$MISSING bison"
8522 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8523 # check for build == host before using them.
8526 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8527 && test -d ..
/binutils
; then
8528 NM
='${objdir}/../binutils/nm-new'
8530 # Extract the first word of "nm", so it can be a program name with args.
8531 set dummy nm
; ac_word
=$2
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8533 $as_echo_n "checking for $ac_word... " >&6; }
8534 if ${ac_cv_prog_NM+:} false
; then :
8535 $as_echo_n "(cached) " >&6
8537 if test -n "$NM"; then
8538 ac_cv_prog_NM
="$NM" # Let the user override the test.
8540 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8544 test -z "$as_dir" && as_dir
=.
8545 for ac_exec_ext
in '' $ac_executable_extensions; do
8546 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8555 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8559 if test -n "$NM"; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8561 $as_echo "$NM" >&6; }
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 $as_echo "no" >&6; }
8571 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8572 && test -d ..
/binutils
; then
8573 AR
='${objdir}/../binutils/ar'
8575 # Extract the first word of "ar", so it can be a program name with args.
8576 set dummy
ar; ac_word
=$2
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8578 $as_echo_n "checking for $ac_word... " >&6; }
8579 if ${ac_cv_prog_AR+:} false
; then :
8580 $as_echo_n "(cached) " >&6
8582 if test -n "$AR"; then
8583 ac_cv_prog_AR
="$AR" # Let the user override the test.
8585 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8589 test -z "$as_dir" && as_dir
=.
8590 for ac_exec_ext
in '' $ac_executable_extensions; do
8591 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8600 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8604 if test -n "$AR"; then
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8606 $as_echo "$AR" >&6; }
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609 $as_echo "no" >&6; }
8615 # The jit documentation looks better if built with sphinx, but can be
8616 # built with texinfo if sphinx is not available.
8617 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8618 # Extract the first word of "sphinx-build", so it can be a program name with args.
8619 set dummy sphinx-build
; ac_word
=$2
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621 $as_echo_n "checking for $ac_word... " >&6; }
8622 if ${ac_cv_prog_doc_build_sys+:} false
; then :
8623 $as_echo_n "(cached) " >&6
8625 if test -n "$doc_build_sys"; then
8626 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8632 test -z "$as_dir" && as_dir
=.
8633 for ac_exec_ext
in '' $ac_executable_extensions; do
8634 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8635 ac_cv_prog_doc_build_sys
="sphinx"
8636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8643 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8646 doc_build_sys
=$ac_cv_prog_doc_build_sys
8647 if test -n "$doc_build_sys"; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8649 $as_echo "$doc_build_sys" >&6; }
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652 $as_echo "no" >&6; }
8657 # --------------------
8658 # Checks for C headers
8659 # --------------------
8661 # Need to reject headers which give warnings, so that the -Werror bootstrap
8662 # works later. *sigh* This needs to come before all header checks.
8664 ac_c_preproc_warn_flag
=yes
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8667 $as_echo_n "checking for ANSI C header files... " >&6; }
8668 if ${ac_cv_header_stdc+:} false
; then :
8669 $as_echo_n "(cached) " >&6
8671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8686 if ac_fn_cxx_try_compile
"$LINENO"; then :
8687 ac_cv_header_stdc
=yes
8689 ac_cv_header_stdc
=no
8691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8693 if test $ac_cv_header_stdc = yes; then
8694 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h. */
8700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8701 $EGREP "memchr" >/dev
/null
2>&1; then :
8704 ac_cv_header_stdc
=no
8710 if test $ac_cv_header_stdc = yes; then
8711 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8718 $EGREP "free" >/dev
/null
2>&1; then :
8721 ac_cv_header_stdc
=no
8727 if test $ac_cv_header_stdc = yes; then
8728 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8729 if test "$cross_compiling" = yes; then :
8732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8733 /* end confdefs.h. */
8736 #if ((' ' & 0x0FF) == 0x020)
8737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8740 # define ISLOWER(c) \
8741 (('a' <= (c) && (c) <= 'i') \
8742 || ('j' <= (c) && (c) <= 'r') \
8743 || ('s' <= (c) && (c) <= 'z'))
8744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8752 for (i = 0; i < 256; i++)
8753 if (XOR (islower (i), ISLOWER (i))
8754 || toupper (i) != TOUPPER (i))
8759 if ac_fn_cxx_try_run
"$LINENO"; then :
8762 ac_cv_header_stdc
=no
8764 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8765 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8771 $as_echo "$ac_cv_header_stdc" >&6; }
8772 if test $ac_cv_header_stdc = yes; then
8774 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8779 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8780 if ${ac_cv_header_time+:} false
; then :
8781 $as_echo_n "(cached) " >&6
8783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8784 /* end confdefs.h. */
8785 #include <sys/types.h>
8786 #include <sys/time.h>
8792 if ((struct tm *) 0)
8798 if ac_fn_cxx_try_compile
"$LINENO"; then :
8799 ac_cv_header_time
=yes
8801 ac_cv_header_time
=no
8803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8806 $as_echo "$ac_cv_header_time" >&6; }
8807 if test $ac_cv_header_time = yes; then
8809 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8814 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8815 if ${gcc_cv_header_string+:} false
; then :
8816 $as_echo_n "(cached) " >&6
8818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h. */
8821 #include <strings.h>
8830 if ac_fn_cxx_try_compile
"$LINENO"; then :
8831 gcc_cv_header_string
=yes
8833 gcc_cv_header_string
=no
8835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8838 $as_echo "$gcc_cv_header_string" >&6; }
8839 if test $gcc_cv_header_string = yes; then
8841 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8846 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8847 if ${ac_cv_header_sys_wait_h+:} false
; then :
8848 $as_echo_n "(cached) " >&6
8850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h. */
8852 #include <sys/types.h>
8853 #include <sys/wait.h>
8855 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8858 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8866 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8871 if ac_fn_cxx_try_compile
"$LINENO"; then :
8872 ac_cv_header_sys_wait_h
=yes
8874 ac_cv_header_sys_wait_h
=no
8876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8879 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8880 if test $ac_cv_header_sys_wait_h = yes; then
8882 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8887 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8888 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
8889 $as_echo_n "(cached) " >&6
8891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8892 /* end confdefs.h. */
8893 #include <sys/types.h>
8894 #include <termios.h>
8900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8901 $EGREP "yes" >/dev
/null
2>&1; then :
8902 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8904 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8910 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8912 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8914 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8915 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
8916 $as_echo_n "(cached) " >&6
8918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8919 /* end confdefs.h. */
8920 #include <sys/types.h>
8921 #include <sys/ioctl.h>
8927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8928 $EGREP "yes" >/dev
/null
2>&1; then :
8929 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8931 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8937 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8939 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8941 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8946 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8947 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8948 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h sys
/locking.h \
8949 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8951 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8952 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8953 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8954 cat >>confdefs.h
<<_ACEOF
8955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8962 # Check for thread headers.
8963 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8964 if test "x$ac_cv_header_thread_h" = xyes
; then :
8970 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8971 if test "x$ac_cv_header_pthread_h" = xyes
; then :
8978 # These tests can't be done till we know if we have limits.h.
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8980 $as_echo_n "checking for CHAR_BIT... " >&6; }
8981 if ${gcc_cv_decl_char_bit+:} false
; then :
8982 $as_echo_n "(cached) " >&6
8984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8986 #ifdef HAVE_LIMITS_H
8993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8994 $EGREP "found" >/dev
/null
2>&1; then :
8995 gcc_cv_decl_char_bit
=yes
8997 gcc_cv_decl_char_bit
=no
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9004 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9005 if test $gcc_cv_decl_char_bit = no
; then
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9007 $as_echo_n "checking number of bits in a byte... " >&6; }
9008 if ${gcc_cv_c_nbby+:} false
; then :
9009 $as_echo_n "(cached) " >&6
9013 while test $i -lt 65; do
9014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h. */
9021 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9022 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9028 if ac_fn_cxx_try_compile
"$LINENO"; then :
9029 gcc_cv_c_nbby
=$i; break
9031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9034 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9038 $as_echo "$gcc_cv_c_nbby" >&6; }
9039 if test $gcc_cv_c_nbby = failed
; then
9040 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9043 cat >>confdefs.h
<<_ACEOF
9044 #define CHAR_BIT $gcc_cv_c_nbby
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9050 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9051 if ${ac_cv_c_bigendian+:} false
; then :
9052 $as_echo_n "(cached) " >&6
9054 ac_cv_c_bigendian
=unknown
9055 # See if we're dealing with a universal compiler.
9056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h. */
9058 #ifndef __APPLE_CC__
9059 not a universal capable compiler
9064 if ac_fn_cxx_try_compile
"$LINENO"; then :
9066 # Check for potential -arch flags. It is not universal unless
9067 # there are at least two -arch flags with different values.
9070 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9071 if test -n "$ac_prev"; then
9073 i?
86 | x86_64 | ppc | ppc64
)
9074 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9077 ac_cv_c_bigendian
=universal
9083 elif test "x$ac_word" = "x-arch"; then
9088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9089 if test $ac_cv_c_bigendian = unknown
; then
9090 # See if sys/param.h defines the BYTE_ORDER macro.
9091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9092 /* end confdefs.h. */
9093 #include <sys/types.h>
9094 #include <sys/param.h>
9099 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9100 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9109 if ac_fn_cxx_try_compile
"$LINENO"; then :
9110 # It does; now see whether it defined to BIG_ENDIAN or not.
9111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9112 /* end confdefs.h. */
9113 #include <sys/types.h>
9114 #include <sys/param.h>
9119 #if BYTE_ORDER != BIG_ENDIAN
9127 if ac_fn_cxx_try_compile
"$LINENO"; then :
9128 ac_cv_c_bigendian
=yes
9130 ac_cv_c_bigendian
=no
9132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9136 if test $ac_cv_c_bigendian = unknown
; then
9137 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9145 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9153 if ac_fn_cxx_try_compile
"$LINENO"; then :
9154 # It does; now see whether it defined to _BIG_ENDIAN or not.
9155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9156 /* end confdefs.h. */
9170 if ac_fn_cxx_try_compile
"$LINENO"; then :
9171 ac_cv_c_bigendian
=yes
9173 ac_cv_c_bigendian
=no
9175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9179 if test $ac_cv_c_bigendian = unknown
; then
9180 # Compile a test program.
9181 if test "$cross_compiling" = yes; then :
9182 # Try to guess by grepping values from an object file.
9183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h. */
9185 short int ascii_mm[] =
9186 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9187 short int ascii_ii[] =
9188 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9189 int use_ascii (int i) {
9190 return ascii_mm[i] + ascii_ii[i];
9192 short int ebcdic_ii[] =
9193 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9194 short int ebcdic_mm[] =
9195 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9196 int use_ebcdic (int i) {
9197 return ebcdic_mm[i] + ebcdic_ii[i];
9204 return use_ascii (foo) == use_ebcdic (foo);
9209 if ac_fn_cxx_try_compile
"$LINENO"; then :
9210 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9211 ac_cv_c_bigendian
=yes
9213 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9214 if test "$ac_cv_c_bigendian" = unknown
; then
9215 ac_cv_c_bigendian
=no
9217 # finding both strings is unlikely to happen, but who knows?
9218 ac_cv_c_bigendian
=unknown
9222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9226 $ac_includes_default
9231 /* Are we little or big endian? From Harbison&Steele. */
9235 char c[sizeof (long int)];
9238 return u.c[sizeof (long int) - 1] == 1;
9244 if ac_fn_cxx_try_run
"$LINENO"; then :
9245 ac_cv_c_bigendian
=no
9247 ac_cv_c_bigendian
=yes
9249 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9250 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9256 $as_echo "$ac_cv_c_bigendian" >&6; }
9257 case $ac_cv_c_bigendian in #(
9259 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9265 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9269 as_fn_error $?
"unknown endianness
9270 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9274 # ----------------------
9275 # Checks for C++ headers
9276 # ----------------------
9279 ac_cpp
='$CXXCPP $CPPFLAGS'
9280 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9281 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9282 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9284 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9285 if test -z "$CXXCPP"; then
9286 if ${ac_cv_prog_CXXCPP+:} false
; then :
9287 $as_echo_n "(cached) " >&6
9289 # Double quotes because CXXCPP needs to be expanded
9290 for CXXCPP
in "$CXX -E" "/lib/cpp"
9293 for ac_cxx_preproc_warn_flag
in '' yes
9295 # Use a header file that comes with gcc, so configuring glibc
9296 # with a fresh cross-compiler works.
9297 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9298 # <limits.h> exists even on freestanding compilers.
9299 # On the NeXT, cc -E runs the code through the compiler's parser,
9300 # not just through cpp. "Syntax error" is here to catch this case.
9301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9304 # include <limits.h>
9306 # include <assert.h>
9310 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9313 # Broken: fails on valid input.
9316 rm -f conftest.err conftest.i conftest.
$ac_ext
9318 # OK, works on sane cases. Now check whether nonexistent headers
9319 # can be detected and how.
9320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9321 /* end confdefs.h. */
9322 #include <ac_nonexistent.h>
9324 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9325 # Broken: success on invalid input.
9328 # Passes both tests.
9332 rm -f conftest.err conftest.i conftest.
$ac_ext
9335 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9336 rm -f conftest.i conftest.err conftest.
$ac_ext
9337 if $ac_preproc_ok; then :
9342 ac_cv_prog_CXXCPP
=$CXXCPP
9345 CXXCPP
=$ac_cv_prog_CXXCPP
9347 ac_cv_prog_CXXCPP
=$CXXCPP
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9350 $as_echo "$CXXCPP" >&6; }
9352 for ac_cxx_preproc_warn_flag
in '' yes
9354 # Use a header file that comes with gcc, so configuring glibc
9355 # with a fresh cross-compiler works.
9356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9357 # <limits.h> exists even on freestanding compilers.
9358 # On the NeXT, cc -E runs the code through the compiler's parser,
9359 # not just through cpp. "Syntax error" is here to catch this case.
9360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9363 # include <limits.h>
9365 # include <assert.h>
9369 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9372 # Broken: fails on valid input.
9375 rm -f conftest.err conftest.i conftest.
$ac_ext
9377 # OK, works on sane cases. Now check whether nonexistent headers
9378 # can be detected and how.
9379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h. */
9381 #include <ac_nonexistent.h>
9383 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9384 # Broken: success on invalid input.
9387 # Passes both tests.
9391 rm -f conftest.err conftest.i conftest.
$ac_ext
9394 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9395 rm -f conftest.i conftest.err conftest.
$ac_ext
9396 if $ac_preproc_ok; then :
9399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9402 See \`config.log' for more details" >&5
9403 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9404 See \`config.log' for more details" >&2;}; }
9408 ac_cpp
='$CXXCPP $CPPFLAGS'
9409 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9410 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9411 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9414 for ac_header
in unordered_map
9416 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9417 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9418 cat >>confdefs.h
<<_ACEOF
9419 #define HAVE_UNORDERED_MAP 1
9425 for ac_header
in tr1/unordered_map
9427 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9428 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9429 cat >>confdefs.h
<<_ACEOF
9430 #define HAVE_TR1_UNORDERED_MAP 1
9436 for ac_header
in ext
/hash_map
9438 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9439 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9440 cat >>confdefs.h
<<_ACEOF
9441 #define HAVE_EXT_HASH_MAP 1
9449 # Dependency checking.
9452 rm -rf .tst
2>/dev
/null
9453 mkdir .tst
2>/dev
/null
9454 if test -d .tst
; then
9459 rmdir .tst
2>/dev
/null
9461 DEPDIR
="${am__leading_dot}deps"
9463 ac_config_commands
="$ac_config_commands depdir"
9466 ac_config_commands
="$ac_config_commands gccdepdir"
9469 depcc
="$CXX" am_compiler_list
=
9471 am_depcomp
=$ac_aux_dir/depcomp
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9473 $as_echo_n "checking dependency style of $depcc... " >&6; }
9474 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
9475 $as_echo_n "(cached) " >&6
9477 if test -f "$am_depcomp"; then
9478 # We make a subdir and do the tests there. Otherwise we can end up
9479 # making bogus files that we don't know about and never remove. For
9480 # instance it was reported that on HP-UX the gcc test will end up
9481 # making a dummy file named `D' -- because `-MD' means `put the output
9484 # Copy depcomp to subdir because otherwise we won't find it if we're
9485 # using a relative directory.
9486 cp "$am_depcomp" conftest.dir
9488 # We will build objects and dependencies in a subdirectory because
9489 # it helps to detect inapplicable dependency modes. For instance
9490 # both Tru64's cc and ICC support -MD to output dependencies as a
9491 # side effect of compilation, but ICC will put the dependencies in
9492 # the current directory while Tru64 will put them in the object
9496 am_cv_CXX_dependencies_compiler_type
=none
9497 if test "$am_compiler_list" = ""; then
9498 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9500 for depmode
in $am_compiler_list; do
9501 if test $depmode = none
; then break; fi
9503 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9504 # Setup a source with many dependencies, because some compilers
9505 # like to wrap large dependency lists on column 80 (with \), and
9506 # we should not choose a depcomp mode which is confused by this.
9508 # We need to recreate these files for each test, as the compiler may
9509 # overwrite some of them when testing with obscure command lines.
9510 # This happens at least with the AIX C compiler.
9512 for i
in 1 2 3 4 5 6; do
9513 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9514 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9515 # Solaris 8's {/usr,}/bin/sh.
9516 touch sub
/conftst
$i.h
9518 echo "include sub/conftest.Po" > confmf
9520 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9521 # mode. It turns out that the SunPro C++ compiler does not properly
9522 # handle `-M -o', and we need to detect this.
9523 depcmd
="depmode=$depmode \
9524 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9525 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9526 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9527 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9528 if env
$depcmd > conftest.err
2>&1 &&
9529 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9530 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9531 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9532 # icc doesn't choke on unknown options, it will just issue warnings
9533 # or remarks (even with -Werror). So we grep stderr for any message
9534 # that says an option was ignored or not supported.
9535 # When given -MP, icc 7.0 and 7.1 complain thusly:
9536 # icc: Command line warning: ignoring option '-M'; no argument required
9537 # The diagnosis changed in icc 8.0:
9538 # icc: Command line remark: option '-MP' not supported
9539 if (grep 'ignoring option' conftest.err ||
9540 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9541 am_cv_CXX_dependencies_compiler_type
=$depmode
9542 $as_echo "$as_me:$LINENO: success" >&5
9546 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9547 sed -e 's/^/| /' < conftest.err
>&5
9553 am_cv_CXX_dependencies_compiler_type
=none
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9558 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9559 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9560 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
9561 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9571 # These libraries may be used by collect2.
9572 # We may need a special search path to get them linked.
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9574 $as_echo_n "checking for collect2 libraries... " >&6; }
9575 if ${gcc_cv_collect2_libs+:} false
; then :
9576 $as_echo_n "(cached) " >&6
9579 for libs
in '' -lld -lmld \
9580 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9581 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9585 /* end confdefs.h. */
9587 /* Override any GCC internal prototype to avoid an error.
9588 Use char because int might match the return type of a GCC
9589 builtin and then its argument prototype would still apply. */
9602 if ac_fn_cxx_try_link
"$LINENO"; then :
9603 gcc_cv_collect2_libs
="$libs"; break
9605 rm -f core conftest.err conftest.
$ac_objext \
9606 conftest
$ac_exeext conftest.
$ac_ext
9609 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9612 $as_echo "$gcc_cv_collect2_libs" >&6; }
9613 case $gcc_cv_collect2_libs in
9615 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9619 # When building Ada code on Alpha, we need exc_resume which is usually in
9620 # -lexc. So test for it.
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9624 $as_echo_n "checking for library containing exc_resume... " >&6; }
9625 if ${ac_cv_search_exc_resume+:} false
; then :
9626 $as_echo_n "(cached) " >&6
9628 ac_func_search_save_LIBS
=$LIBS
9629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9632 /* Override any GCC internal prototype to avoid an error.
9633 Use char because int might match the return type of a GCC
9634 builtin and then its argument prototype would still apply. */
9642 return exc_resume ();
9647 for ac_lib
in '' exc
; do
9648 if test -z "$ac_lib"; then
9649 ac_res
="none required"
9652 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9654 if ac_fn_cxx_try_link
"$LINENO"; then :
9655 ac_cv_search_exc_resume
=$ac_res
9657 rm -f core conftest.err conftest.
$ac_objext \
9659 if ${ac_cv_search_exc_resume+:} false
; then :
9663 if ${ac_cv_search_exc_resume+:} false
; then :
9666 ac_cv_search_exc_resume
=no
9669 LIBS
=$ac_func_search_save_LIBS
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9672 $as_echo "$ac_cv_search_exc_resume" >&6; }
9673 ac_res
=$ac_cv_search_exc_resume
9674 if test "$ac_res" != no
; then :
9675 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9683 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9687 $as_echo_n "checking for library containing kstat_open... " >&6; }
9688 if ${ac_cv_search_kstat_open+:} false
; then :
9689 $as_echo_n "(cached) " >&6
9691 ac_func_search_save_LIBS
=$LIBS
9692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9695 /* Override any GCC internal prototype to avoid an error.
9696 Use char because int might match the return type of a GCC
9697 builtin and then its argument prototype would still apply. */
9705 return kstat_open ();
9710 for ac_lib
in '' kstat
; do
9711 if test -z "$ac_lib"; then
9712 ac_res
="none required"
9715 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9717 if ac_fn_cxx_try_link
"$LINENO"; then :
9718 ac_cv_search_kstat_open
=$ac_res
9720 rm -f core conftest.err conftest.
$ac_objext \
9722 if ${ac_cv_search_kstat_open+:} false
; then :
9726 if ${ac_cv_search_kstat_open+:} false
; then :
9729 ac_cv_search_kstat_open
=no
9732 LIBS
=$ac_func_search_save_LIBS
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9735 $as_echo "$ac_cv_search_kstat_open" >&6; }
9736 ac_res
=$ac_cv_search_kstat_open
9737 if test "$ac_res" != no
; then :
9738 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9742 EXTRA_GCC_LIBS
="$LIBS"
9746 # Solaris needs libsocket and libnsl for socket functions before 11.4.
9747 # C++ needs those for libcody.
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9752 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9753 if ${ac_cv_search_gethostbyname+:} false
; then :
9754 $as_echo_n "(cached) " >&6
9756 ac_func_search_save_LIBS
=$LIBS
9757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9758 /* end confdefs.h. */
9760 /* Override any GCC internal prototype to avoid an error.
9761 Use char because int might match the return type of a GCC
9762 builtin and then its argument prototype would still apply. */
9766 char gethostbyname ();
9770 return gethostbyname ();
9775 for ac_lib
in '' nsl
; do
9776 if test -z "$ac_lib"; then
9777 ac_res
="none required"
9780 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9782 if ac_fn_cxx_try_link
"$LINENO"; then :
9783 ac_cv_search_gethostbyname
=$ac_res
9785 rm -f core conftest.err conftest.
$ac_objext \
9787 if ${ac_cv_search_gethostbyname+:} false
; then :
9791 if ${ac_cv_search_gethostbyname+:} false
; then :
9794 ac_cv_search_gethostbyname
=no
9797 LIBS
=$ac_func_search_save_LIBS
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9800 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9801 ac_res
=$ac_cv_search_gethostbyname
9802 if test "$ac_res" != no
; then :
9803 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
9808 $as_echo_n "checking for library containing socket... " >&6; }
9809 if ${ac_cv_search_socket+:} false
; then :
9810 $as_echo_n "(cached) " >&6
9812 ac_func_search_save_LIBS
=$LIBS
9813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9814 /* end confdefs.h. */
9816 /* Override any GCC internal prototype to avoid an error.
9817 Use char because int might match the return type of a GCC
9818 builtin and then its argument prototype would still apply. */
9831 for ac_lib
in '' socket
; do
9832 if test -z "$ac_lib"; then
9833 ac_res
="none required"
9836 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9838 if ac_fn_cxx_try_link
"$LINENO"; then :
9839 ac_cv_search_socket
=$ac_res
9841 rm -f core conftest.err conftest.
$ac_objext \
9843 if ${ac_cv_search_socket+:} false
; then :
9847 if ${ac_cv_search_socket+:} false
; then :
9850 ac_cv_search_socket
=no
9853 LIBS
=$ac_func_search_save_LIBS
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
9856 $as_echo "$ac_cv_search_socket" >&6; }
9857 ac_res
=$ac_cv_search_socket
9858 if test "$ac_res" != no
; then :
9859 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
9864 $as_echo_n "checking for socket in -lsocket... " >&6; }
9865 if ${ac_cv_lib_socket_socket+:} false
; then :
9866 $as_echo_n "(cached) " >&6
9868 ac_check_lib_save_LIBS
=$LIBS
9869 LIBS
="-lsocket -lnsl $LIBS"
9870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9871 /* end confdefs.h. */
9873 /* Override any GCC internal prototype to avoid an error.
9874 Use char because int might match the return type of a GCC
9875 builtin and then its argument prototype would still apply. */
9888 if ac_fn_cxx_try_link
"$LINENO"; then :
9889 ac_cv_lib_socket_socket
=yes
9891 ac_cv_lib_socket_socket
=no
9893 rm -f core conftest.err conftest.
$ac_objext \
9894 conftest
$ac_exeext conftest.
$ac_ext
9895 LIBS
=$ac_check_lib_save_LIBS
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
9898 $as_echo "$ac_cv_lib_socket_socket" >&6; }
9899 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
9900 LIBS
="-lsocket -lnsl $LIBS"
9910 # Some systems put ldexp and frexp in libm instead of libc; assume
9911 # they're both in the same place. jcf-dump needs them.
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9915 $as_echo_n "checking for library containing ldexp... " >&6; }
9916 if ${ac_cv_search_ldexp+:} false
; then :
9917 $as_echo_n "(cached) " >&6
9919 ac_func_search_save_LIBS
=$LIBS
9920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9923 /* Override any GCC internal prototype to avoid an error.
9924 Use char because int might match the return type of a GCC
9925 builtin and then its argument prototype would still apply. */
9938 for ac_lib
in '' m
; do
9939 if test -z "$ac_lib"; then
9940 ac_res
="none required"
9943 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9945 if ac_fn_cxx_try_link
"$LINENO"; then :
9946 ac_cv_search_ldexp
=$ac_res
9948 rm -f core conftest.err conftest.
$ac_objext \
9950 if ${ac_cv_search_ldexp+:} false
; then :
9954 if ${ac_cv_search_ldexp+:} false
; then :
9957 ac_cv_search_ldexp
=no
9960 LIBS
=$ac_func_search_save_LIBS
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9963 $as_echo "$ac_cv_search_ldexp" >&6; }
9964 ac_res
=$ac_cv_search_ldexp
9965 if test "$ac_res" != no
; then :
9966 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9974 # Some systems need dlopen
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9978 $as_echo_n "checking for library containing dlopen... " >&6; }
9979 if ${ac_cv_search_dlopen+:} false
; then :
9980 $as_echo_n "(cached) " >&6
9982 ac_func_search_save_LIBS
=$LIBS
9983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9984 /* end confdefs.h. */
9986 /* Override any GCC internal prototype to avoid an error.
9987 Use char because int might match the return type of a GCC
9988 builtin and then its argument prototype would still apply. */
10001 for ac_lib
in '' dl
; do
10002 if test -z "$ac_lib"; then
10003 ac_res
="none required"
10006 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10008 if ac_fn_cxx_try_link
"$LINENO"; then :
10009 ac_cv_search_dlopen
=$ac_res
10011 rm -f core conftest.err conftest.
$ac_objext \
10013 if ${ac_cv_search_dlopen+:} false
; then :
10017 if ${ac_cv_search_dlopen+:} false
; then :
10020 ac_cv_search_dlopen
=no
10022 rm conftest.
$ac_ext
10023 LIBS
=$ac_func_search_save_LIBS
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10026 $as_echo "$ac_cv_search_dlopen" >&6; }
10027 ac_res
=$ac_cv_search_dlopen
10028 if test "$ac_res" != no
; then :
10029 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10037 # Use <inttypes.h> only if it exists,
10038 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10041 $as_echo_n "checking for inttypes.h... " >&6; }
10042 if ${gcc_cv_header_inttypes_h+:} false
; then :
10043 $as_echo_n "(cached) " >&6
10045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10046 /* end confdefs.h. */
10047 #define __STDC_FORMAT_MACROS
10048 #include <sys/types.h>
10049 #include <inttypes.h>
10061 if ac_fn_cxx_try_compile
"$LINENO"; then :
10062 gcc_cv_header_inttypes_h
=yes
10064 gcc_cv_header_inttypes_h
=no
10066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10070 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10071 if test $gcc_cv_header_inttypes_h = yes; then
10073 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10077 # Look for the ZSTD package.
10087 # Check whether --with-zstd was given.
10088 if test "${with_zstd+set}" = set; then :
10089 withval
=$with_zstd;
10093 # Check whether --with-zstd-include was given.
10094 if test "${with_zstd_include+set}" = set; then :
10095 withval
=$with_zstd_include;
10099 # Check whether --with-zstd-lib was given.
10100 if test "${with_zstd_lib+set}" = set; then :
10101 withval
=$with_zstd_lib;
10104 case "x$with_zstd" in
10110 *) ZSTD_INCLUDE
=$with_zstd/include
10111 ZSTD_LIB
=$with_zstd/lib
10115 if test "x$with_zstd" != xno
; then
10116 if test "x$with_zstd_include" != x
; then
10117 ZSTD_INCLUDE
=$with_zstd_include
10119 if test "x$with_zstd_lib" != x
; then
10120 ZSTD_LIB
=$with_zstd_lib
10122 if test "x$ZSTD_INCLUDE" != x \
10123 && test "x$ZSTD_INCLUDE" != xno
; then
10124 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
10126 if test "x$ZSTD_LIB" != x \
10127 && test "x$ZSTD_LIB" != xno
; then
10128 ZSTD_LDFLAGS
=-L$ZSTD_LIB
10131 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
10132 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10135 $as_echo_n "checking for zstd.h... " >&6; }
10136 if ${gcc_cv_header_zstd_h+:} false
; then :
10137 $as_echo_n "(cached) " >&6
10139 # We require version 1.3.0 or later. This is the first version that has
10140 # ZSTD_getFrameContentSize.
10141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10144 #if ZSTD_VERSION_NUMBER < 10300
10145 #error "need zstd 1.3.0 or better"
10155 if ac_fn_cxx_try_compile
"$LINENO"; then :
10156 gcc_cv_header_zstd_h
=yes
10158 gcc_cv_header_zstd_h
=no
10160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10164 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10165 if test $gcc_cv_header_zstd_h = yes; then
10167 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10169 elif test "x$with_zstd" != x
; then
10170 as_fn_error $?
"Unable to find zstd.h. See config.log for details." "$LINENO" 5
10173 # LTO can use zstd compression algorithm
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10177 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10178 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10179 $as_echo_n "(cached) " >&6
10181 ac_func_search_save_LIBS
=$LIBS
10182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10185 /* Override any GCC internal prototype to avoid an error.
10186 Use char because int might match the return type of a GCC
10187 builtin and then its argument prototype would still apply. */
10191 char ZSTD_compress ();
10195 return ZSTD_compress ();
10200 for ac_lib
in '' zstd
; do
10201 if test -z "$ac_lib"; then
10202 ac_res
="none required"
10205 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10207 if ac_fn_cxx_try_link
"$LINENO"; then :
10208 ac_cv_search_ZSTD_compress
=$ac_res
10210 rm -f core conftest.err conftest.
$ac_objext \
10212 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10216 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10219 ac_cv_search_ZSTD_compress
=no
10221 rm conftest.
$ac_ext
10222 LIBS
=$ac_func_search_save_LIBS
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10225 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10226 ac_res
=$ac_cv_search_ZSTD_compress
10227 if test "$ac_res" != no
; then :
10228 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10239 for ac_func
in times clock kill getrlimit setrlimit atoq \
10240 popen sysconf strsignal getrusage nl_langinfo \
10241 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10242 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 mallinfo mallinfo2 fstatat
10244 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10245 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10246 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10247 cat >>confdefs.h
<<_ACEOF
10248 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10255 if test x
$ac_cv_func_mbstowcs = xyes
; then
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10257 $as_echo_n "checking whether mbstowcs works... " >&6; }
10258 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10259 $as_echo_n "(cached) " >&6
10261 if test "$cross_compiling" = yes; then :
10262 gcc_cv_func_mbstowcs_works
=yes
10264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10265 /* end confdefs.h. */
10266 #include <stdlib.h>
10269 mbstowcs(0, "", 0);
10273 if ac_fn_cxx_try_run
"$LINENO"; then :
10274 gcc_cv_func_mbstowcs_works
=yes
10276 gcc_cv_func_mbstowcs_works
=no
10278 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10279 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10284 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10285 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10287 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10292 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10293 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10297 cat >>confdefs.h
<<_ACEOF
10298 #define ssize_t int
10303 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10304 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10308 cat >>confdefs.h
<<_ACEOF
10309 #define caddr_t char *
10314 ac_fn_cxx_check_type
"$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10316 if test "x$ac_cv_type_sighander_t" = xyes
; then :
10318 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10324 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10325 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10326 gcc_header_sys_mman_h
=yes
10328 gcc_header_sys_mman_h
=no
10331 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10332 if test "x$ac_cv_func_mmap" = xyes
; then :
10338 if test "$gcc_header_sys_mman_h" != yes \
10339 ||
test "$gcc_func_mmap" != yes; then
10340 gcc_cv_func_mmap_file
=no
10341 gcc_cv_func_mmap_dev_zero
=no
10342 gcc_cv_func_mmap_anon
=no
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10345 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10346 if ${gcc_cv_func_mmap_file+:} false
; then :
10347 $as_echo_n "(cached) " >&6
10349 # Add a system to this blacklist if
10350 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10351 # memory area containing the same data that you'd get if you applied
10352 # read() to the same fd. The only system known to have a problem here
10353 # is VMS, where text files have record structure.
10356 gcc_cv_func_mmap_file
=no
;;
10358 gcc_cv_func_mmap_file
=yes;;
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10362 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10364 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10365 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10366 $as_echo_n "(cached) " >&6
10368 # Add a system to this blacklist if it has mmap() but /dev/zero
10369 # does not exist, or if mmapping /dev/zero does not give anonymous
10370 # zeroed pages with both the following properties:
10371 # 1. If you map N consecutive pages in with one call, and then
10372 # unmap any subset of those pages, the pages that were not
10373 # explicitly unmapped remain accessible.
10374 # 2. If you map two adjacent blocks of memory and then unmap them
10375 # both at once, they must both go away.
10376 # Systems known to be in this category are Windows (all variants),
10379 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10380 gcc_cv_func_mmap_dev_zero
=no
;;
10382 gcc_cv_func_mmap_dev_zero
=yes;;
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10386 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10388 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10390 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10391 if ${gcc_cv_decl_map_anon+:} false
; then :
10392 $as_echo_n "(cached) " >&6
10394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10395 /* end confdefs.h. */
10396 #include <sys/types.h>
10397 #include <sys/mman.h>
10398 #include <unistd.h>
10400 #ifndef MAP_ANONYMOUS
10401 #define MAP_ANONYMOUS MAP_ANON
10407 int n = MAP_ANONYMOUS;
10412 if ac_fn_cxx_try_compile
"$LINENO"; then :
10413 gcc_cv_decl_map_anon
=yes
10415 gcc_cv_decl_map_anon
=no
10417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10420 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10422 if test $gcc_cv_decl_map_anon = no
; then
10423 gcc_cv_func_mmap_anon
=no
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10426 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10427 if ${gcc_cv_func_mmap_anon+:} false
; then :
10428 $as_echo_n "(cached) " >&6
10430 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10431 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10432 # doesn't give anonymous zeroed pages with the same properties listed
10433 # above for use of /dev/zero.
10434 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10436 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10437 gcc_cv_func_mmap_anon
=no
;;
10439 gcc_cv_func_mmap_anon
=yes;;
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10443 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10447 if test $gcc_cv_func_mmap_file = yes; then
10449 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10452 if test $gcc_cv_func_mmap_dev_zero = yes; then
10454 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10457 if test $gcc_cv_func_mmap_anon = yes; then
10459 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10466 # Under VMS, vfork works very differently than on Unix. The standard test
10467 # won't work, and it isn't easily adaptable. It makes more sense to
10469 ac_cv_func_vfork_works
=yes
10472 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10473 if test "x$ac_cv_type_pid_t" = xyes
; then :
10477 cat >>confdefs.h
<<_ACEOF
10483 for ac_header
in vfork.h
10485 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10486 if test "x$ac_cv_header_vfork_h" = xyes
; then :
10487 cat >>confdefs.h
<<_ACEOF
10488 #define HAVE_VFORK_H 1
10494 for ac_func
in fork vfork
10496 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10497 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10498 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10499 cat >>confdefs.h
<<_ACEOF
10500 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10506 if test "x$ac_cv_func_fork" = xyes
; then
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10508 $as_echo_n "checking for working fork... " >&6; }
10509 if ${ac_cv_func_fork_works+:} false
; then :
10510 $as_echo_n "(cached) " >&6
10512 if test "$cross_compiling" = yes; then :
10513 ac_cv_func_fork_works
=cross
10515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10516 /* end confdefs.h. */
10517 $ac_includes_default
10522 /* By Ruediger Kuhlmann. */
10523 return fork () < 0;
10529 if ac_fn_cxx_try_run
"$LINENO"; then :
10530 ac_cv_func_fork_works
=yes
10532 ac_cv_func_fork_works
=no
10534 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10535 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10540 $as_echo "$ac_cv_func_fork_works" >&6; }
10543 ac_cv_func_fork_works
=$ac_cv_func_fork
10545 if test "x$ac_cv_func_fork_works" = xcross
; then
10547 *-*-amigaos* |
*-*-msdosdjgpp*)
10548 # Override, as these systems have only a dummy fork() stub
10549 ac_cv_func_fork_works
=no
10552 ac_cv_func_fork_works
=yes
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10556 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10558 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10559 if test "x$ac_cv_func_vfork" = xyes
; then
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10561 $as_echo_n "checking for working vfork... " >&6; }
10562 if ${ac_cv_func_vfork_works+:} false
; then :
10563 $as_echo_n "(cached) " >&6
10565 if test "$cross_compiling" = yes; then :
10566 ac_cv_func_vfork_works
=cross
10568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10569 /* end confdefs.h. */
10570 /* Thanks to Paul Eggert for this test. */
10571 $ac_includes_default
10572 #include <sys/wait.h>
10573 #ifdef HAVE_VFORK_H
10574 # include <vfork.h>
10576 /* On some sparc systems, changes by the child to local and incoming
10577 argument registers are propagated back to the parent. The compiler
10578 is told about this with #include <vfork.h>, but some compilers
10579 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10580 static variable whose address is put into a register that is
10581 clobbered by the vfork. */
10584 sparc_address_test (int arg)
10586 sparc_address_test (arg) int arg;
10589 static pid_t child;
10607 pid_t parent = getpid ();
10610 sparc_address_test (0);
10615 /* Here is another test for sparc vfork register problems. This
10616 test uses lots of local variables, at least as many local
10617 variables as main has allocated so far including compiler
10618 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10619 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10620 reuse the register of parent for one of the local variables,
10621 since it will think that parent can't possibly be used any more
10622 in this routine. Assigning to the local variable will thus
10623 munge parent in the parent process. */
10625 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10626 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10627 /* Convince the compiler that p..p7 are live; otherwise, it might
10628 use the same hardware register for all 8 local variables. */
10629 if (p != p1 || p != p2 || p != p3 || p != p4
10630 || p != p5 || p != p6 || p != p7)
10633 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10634 from child file descriptors. If the child closes a descriptor
10635 before it execs or exits, this munges the parent's descriptor
10636 as well. Test for this by closing stdout in the child. */
10637 _exit(close(fileno(stdout)) != 0);
10642 while (wait(&status) != child)
10645 /* Was there some problem with vforking? */
10648 /* Did the child fail? (This shouldn't happen.) */
10651 /* Did the vfork/compiler bug occur? */
10652 || parent != getpid()
10654 /* Did the file descriptor bug occur? */
10655 || fstat(fileno(stdout), &st) != 0
10660 if ac_fn_cxx_try_run
"$LINENO"; then :
10661 ac_cv_func_vfork_works
=yes
10663 ac_cv_func_vfork_works
=no
10665 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10666 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10671 $as_echo "$ac_cv_func_vfork_works" >&6; }
10674 if test "x$ac_cv_func_fork_works" = xcross
; then
10675 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10677 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10680 if test "x$ac_cv_func_vfork_works" = xyes
; then
10682 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10686 $as_echo "#define vfork fork" >>confdefs.h
10689 if test "x$ac_cv_func_fork_works" = xyes
; then
10691 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10697 if test "X$prefix" = "XNONE"; then
10698 acl_final_prefix
="$ac_default_prefix"
10700 acl_final_prefix
="$prefix"
10702 if test "X$exec_prefix" = "XNONE"; then
10703 acl_final_exec_prefix
='${prefix}'
10705 acl_final_exec_prefix
="$exec_prefix"
10707 acl_save_prefix
="$prefix"
10708 prefix
="$acl_final_prefix"
10709 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10710 prefix
="$acl_save_prefix"
10713 # Check whether --with-gnu-ld was given.
10714 if test "${with_gnu_ld+set}" = set; then :
10715 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10720 # Prepare PATH_SEPARATOR.
10721 # The user is always right.
10722 if test "${PATH_SEPARATOR+set}" != set; then
10723 echo "#! /bin/sh" >conf$$.sh
10724 echo "exit 0" >>conf$$.sh
10726 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10734 if test "$GCC" = yes; then
10735 # Check if gcc -print-prog-name=ld gives a path.
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10737 $as_echo_n "checking for ld used by GCC... " >&6; }
10740 # gcc leaves a trailing carriage return which upsets mingw
10741 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10743 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10746 # Accept absolute paths.
10747 [\\/]* |
[A-Za-z
]:[\\/]*)
10748 re_direlt
='/[^/][^/]*/\.\./'
10749 # Canonicalize the path of ld
10750 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10751 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10752 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10754 test -z "$LD" && LD
="$ac_prog"
10757 # If it fails, then pretend we aren't using GCC.
10761 # If it is relative, then search for the first ld in PATH.
10762 with_gnu_ld
=unknown
10765 elif test "$with_gnu_ld" = yes; then
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10767 $as_echo_n "checking for GNU ld... " >&6; }
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10770 $as_echo_n "checking for non-GNU ld... " >&6; }
10772 if ${acl_cv_path_LD+:} false
; then :
10773 $as_echo_n "(cached) " >&6
10775 if test -z "$LD"; then
10776 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10777 for ac_dir
in $PATH; do
10778 test -z "$ac_dir" && ac_dir
=.
10779 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10780 acl_cv_path_LD
="$ac_dir/$ac_prog"
10781 # Check to see if the program is GNU ld. I'd rather use --version,
10782 # but apparently some GNU ld's only accept -v.
10783 # Break only if it was the GNU/non-GNU ld that we prefer.
10784 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10785 test "$with_gnu_ld" != no
&& break
10787 test "$with_gnu_ld" != yes && break
10793 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10797 LD
="$acl_cv_path_LD"
10798 if test -n "$LD"; then
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10800 $as_echo "$LD" >&6; }
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10803 $as_echo "no" >&6; }
10805 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10807 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10808 if ${acl_cv_prog_gnu_ld+:} false
; then :
10809 $as_echo_n "(cached) " >&6
10811 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10812 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10813 acl_cv_prog_gnu_ld
=yes
10815 acl_cv_prog_gnu_ld
=no
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10819 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10820 with_gnu_ld
=$acl_cv_prog_gnu_ld
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10825 $as_echo_n "checking for shared library run path origin... " >&6; }
10826 if ${acl_cv_rpath+:} false
; then :
10827 $as_echo_n "(cached) " >&6
10830 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10831 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10833 rm -f .
/conftest.sh
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10838 $as_echo "$acl_cv_rpath" >&6; }
10840 libext
="$acl_cv_libext"
10841 shlibext
="$acl_cv_shlibext"
10842 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10843 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10844 hardcode_direct
="$acl_cv_hardcode_direct"
10845 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10846 # Check whether --enable-rpath was given.
10847 if test "${enable_rpath+set}" = set; then :
10848 enableval
=$enable_rpath; :
10862 acl_save_prefix
="$prefix"
10863 prefix
="$acl_final_prefix"
10864 acl_save_exec_prefix
="$exec_prefix"
10865 exec_prefix
="$acl_final_exec_prefix"
10867 eval additional_includedir
=\"$includedir\"
10868 eval additional_libdir
=\"$libdir\"
10870 exec_prefix
="$acl_save_exec_prefix"
10871 prefix
="$acl_save_prefix"
10874 # Check whether --with-libiconv-prefix was given.
10875 if test "${with_libiconv_prefix+set}" = set; then :
10876 withval
=$with_libiconv_prefix;
10877 if test "X$withval" = "Xno"; then
10880 if test "X$withval" = "X"; then
10882 acl_save_prefix
="$prefix"
10883 prefix
="$acl_final_prefix"
10884 acl_save_exec_prefix
="$exec_prefix"
10885 exec_prefix
="$acl_final_exec_prefix"
10887 eval additional_includedir
=\"$includedir\"
10888 eval additional_libdir
=\"$libdir\"
10890 exec_prefix
="$acl_save_exec_prefix"
10891 prefix
="$acl_save_prefix"
10894 additional_includedir
="$withval/include"
10895 additional_libdir
="$withval/lib"
10902 # Check whether --with-libiconv-type was given.
10903 if test "${with_libiconv_type+set}" = set; then :
10904 withval
=$with_libiconv_type; with_libiconv_type
=$withval
10906 with_libiconv_type
=auto
10909 lib_type
=`eval echo \$with_libiconv_type`
10916 names_already_handled
=
10917 names_next_round
='iconv '
10918 while test -n "$names_next_round"; do
10919 names_this_round
="$names_next_round"
10921 for name
in $names_this_round; do
10923 for n
in $names_already_handled; do
10924 if test "$n" = "$name"; then
10925 already_handled
=yes
10929 if test -z "$already_handled"; then
10930 names_already_handled
="$names_already_handled $name"
10931 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10932 eval value
=\"\
$HAVE_LIB$uppername\"
10933 if test -n "$value"; then
10934 if test "$value" = yes; then
10935 eval value
=\"\
$LIB$uppername\"
10936 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10937 eval value
=\"\
$LTLIB$uppername\"
10938 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10947 if test $use_additional = yes; then
10948 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10949 found_dir
="$additional_libdir"
10950 found_so
="$additional_libdir/lib$name.$shlibext"
10951 if test -f "$additional_libdir/lib$name.la"; then
10952 found_la
="$additional_libdir/lib$name.la"
10954 elif test x
$lib_type != xshared
; then
10955 if test -f "$additional_libdir/lib$name.$libext"; then
10956 found_dir
="$additional_libdir"
10957 found_a
="$additional_libdir/lib$name.$libext"
10958 if test -f "$additional_libdir/lib$name.la"; then
10959 found_la
="$additional_libdir/lib$name.la"
10964 if test "X$found_dir" = "X"; then
10965 for x
in $LDFLAGS $LTLIBICONV; do
10967 acl_save_prefix
="$prefix"
10968 prefix
="$acl_final_prefix"
10969 acl_save_exec_prefix
="$exec_prefix"
10970 exec_prefix
="$acl_final_exec_prefix"
10972 exec_prefix
="$acl_save_exec_prefix"
10973 prefix
="$acl_save_prefix"
10977 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10978 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10980 found_so
="$dir/lib$name.$shlibext"
10981 if test -f "$dir/lib$name.la"; then
10982 found_la
="$dir/lib$name.la"
10984 elif test x
$lib_type != xshared
; then
10985 if test -f "$dir/lib$name.$libext"; then
10987 found_a
="$dir/lib$name.$libext"
10988 if test -f "$dir/lib$name.la"; then
10989 found_la
="$dir/lib$name.la"
10995 if test "X$found_dir" != "X"; then
11000 if test "X$found_dir" != "X"; then
11001 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11002 if test "X$found_so" != "X"; then
11003 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11004 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11007 for x
in $ltrpathdirs; do
11008 if test "X$x" = "X$found_dir"; then
11013 if test -z "$haveit"; then
11014 ltrpathdirs
="$ltrpathdirs $found_dir"
11016 if test "$hardcode_direct" = yes; then
11017 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11019 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11020 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11022 for x
in $rpathdirs; do
11023 if test "X$x" = "X$found_dir"; then
11028 if test -z "$haveit"; then
11029 rpathdirs
="$rpathdirs $found_dir"
11033 for x
in $LDFLAGS $LIBICONV; do
11035 acl_save_prefix
="$prefix"
11036 prefix
="$acl_final_prefix"
11037 acl_save_exec_prefix
="$exec_prefix"
11038 exec_prefix
="$acl_final_exec_prefix"
11040 exec_prefix
="$acl_save_exec_prefix"
11041 prefix
="$acl_save_prefix"
11043 if test "X$x" = "X-L$found_dir"; then
11048 if test -z "$haveit"; then
11049 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11051 if test "$hardcode_minus_L" != no
; then
11052 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
11054 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11060 if test "X$found_a" != "X"; then
11061 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
11063 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11066 additional_includedir
=
11067 case "$found_dir" in
11069 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11070 additional_includedir
="$basedir/include"
11073 if test "X$additional_includedir" != "X"; then
11074 if test "X$additional_includedir" != "X/usr/include"; then
11076 if test "X$additional_includedir" = "X/usr/local/include"; then
11077 if test -n "$GCC"; then
11079 linux
*) haveit
=yes;;
11083 if test -z "$haveit"; then
11084 for x
in $CPPFLAGS $INCICONV; do
11086 acl_save_prefix
="$prefix"
11087 prefix
="$acl_final_prefix"
11088 acl_save_exec_prefix
="$exec_prefix"
11089 exec_prefix
="$acl_final_exec_prefix"
11091 exec_prefix
="$acl_save_exec_prefix"
11092 prefix
="$acl_save_prefix"
11094 if test "X$x" = "X-I$additional_includedir"; then
11099 if test -z "$haveit"; then
11100 if test -d "$additional_includedir"; then
11101 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11107 if test -n "$found_la"; then
11108 save_libdir
="$libdir"
11109 case "$found_la" in
11110 */* |
*\\*) .
"$found_la" ;;
11111 *) .
"./$found_la" ;;
11113 libdir
="$save_libdir"
11114 for dep
in $dependency_libs; do
11117 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11118 if test "X$additional_libdir" != "X/usr/lib"; then
11120 if test "X$additional_libdir" = "X/usr/local/lib"; then
11121 if test -n "$GCC"; then
11123 linux
*) haveit
=yes;;
11127 if test -z "$haveit"; then
11129 for x
in $LDFLAGS $LIBICONV; do
11131 acl_save_prefix
="$prefix"
11132 prefix
="$acl_final_prefix"
11133 acl_save_exec_prefix
="$exec_prefix"
11134 exec_prefix
="$acl_final_exec_prefix"
11136 exec_prefix
="$acl_save_exec_prefix"
11137 prefix
="$acl_save_prefix"
11139 if test "X$x" = "X-L$additional_libdir"; then
11144 if test -z "$haveit"; then
11145 if test -d "$additional_libdir"; then
11146 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11150 for x
in $LDFLAGS $LTLIBICONV; do
11152 acl_save_prefix
="$prefix"
11153 prefix
="$acl_final_prefix"
11154 acl_save_exec_prefix
="$exec_prefix"
11155 exec_prefix
="$acl_final_exec_prefix"
11157 exec_prefix
="$acl_save_exec_prefix"
11158 prefix
="$acl_save_prefix"
11160 if test "X$x" = "X-L$additional_libdir"; then
11165 if test -z "$haveit"; then
11166 if test -d "$additional_libdir"; then
11167 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11174 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11175 if test "$enable_rpath" != no
; then
11177 for x
in $rpathdirs; do
11178 if test "X$x" = "X$dir"; then
11183 if test -z "$haveit"; then
11184 rpathdirs
="$rpathdirs $dir"
11187 for x
in $ltrpathdirs; do
11188 if test "X$x" = "X$dir"; then
11193 if test -z "$haveit"; then
11194 ltrpathdirs
="$ltrpathdirs $dir"
11199 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11202 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11205 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11206 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11212 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11213 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11214 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11216 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11217 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11224 if test "X$rpathdirs" != "X"; then
11225 if test -n "$hardcode_libdir_separator"; then
11227 for found_dir
in $rpathdirs; do
11228 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11230 acl_save_libdir
="$libdir"
11232 eval flag
=\"$hardcode_libdir_flag_spec\"
11233 libdir
="$acl_save_libdir"
11234 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11236 for found_dir
in $rpathdirs; do
11237 acl_save_libdir
="$libdir"
11238 libdir
="$found_dir"
11239 eval flag
=\"$hardcode_libdir_flag_spec\"
11240 libdir
="$acl_save_libdir"
11241 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11245 if test "X$ltrpathdirs" != "X"; then
11246 for found_dir
in $ltrpathdirs; do
11247 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11258 $as_echo_n "checking for iconv... " >&6; }
11259 if ${am_cv_func_iconv+:} false
; then :
11260 $as_echo_n "(cached) " >&6
11263 am_cv_func_iconv
="no, consider installing GNU libiconv"
11265 am_save_CPPFLAGS
="$CPPFLAGS"
11266 CPPFLAGS
="$CPPFLAGS $INCICONV"
11267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11268 /* end confdefs.h. */
11269 #include <stdlib.h>
11274 iconv_t cd = iconv_open("","");
11275 iconv(cd,NULL,NULL,NULL,NULL);
11281 if ac_fn_cxx_try_link
"$LINENO"; then :
11282 am_cv_func_iconv
=yes
11284 rm -f core conftest.err conftest.
$ac_objext \
11285 conftest
$ac_exeext conftest.
$ac_ext
11286 CPPFLAGS
="$am_save_CPPFLAGS"
11288 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
11289 for _libs
in .libs _libs
; do
11290 am_save_CPPFLAGS
="$CPPFLAGS"
11291 am_save_LIBS
="$LIBS"
11292 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
11293 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11295 /* end confdefs.h. */
11296 #include <stdlib.h>
11301 iconv_t cd = iconv_open("","");
11302 iconv(cd,NULL,NULL,NULL,NULL);
11308 if ac_fn_cxx_try_link
"$LINENO"; then :
11309 INCICONV
="-I../libiconv/include"
11310 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
11311 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
11312 am_cv_lib_iconv
=yes
11313 am_cv_func_iconv
=yes
11315 rm -f core conftest.err conftest.
$ac_objext \
11316 conftest
$ac_exeext conftest.
$ac_ext
11317 CPPFLAGS
="$am_save_CPPFLAGS"
11318 LIBS
="$am_save_LIBS"
11319 if test "$am_cv_func_iconv" = "yes"; then
11325 if test "$am_cv_func_iconv" != yes; then
11326 am_save_CPPFLAGS
="$CPPFLAGS"
11327 am_save_LIBS
="$LIBS"
11328 CPPFLAGS
="$CPPFLAGS $INCICONV"
11329 LIBS
="$LIBS $LIBICONV"
11330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h. */
11332 #include <stdlib.h>
11337 iconv_t cd = iconv_open("","");
11338 iconv(cd,NULL,NULL,NULL,NULL);
11344 if ac_fn_cxx_try_link
"$LINENO"; then :
11345 am_cv_lib_iconv
=yes
11346 am_cv_func_iconv
=yes
11348 rm -f core conftest.err conftest.
$ac_objext \
11349 conftest
$ac_exeext conftest.
$ac_ext
11350 CPPFLAGS
="$am_save_CPPFLAGS"
11351 LIBS
="$am_save_LIBS"
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11356 $as_echo "$am_cv_func_iconv" >&6; }
11357 if test "$am_cv_func_iconv" = yes; then
11359 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11362 if test "$am_cv_lib_iconv" = yes; then
11364 for element
in $INCICONV; do
11366 for x
in $CPPFLAGS; do
11368 acl_save_prefix
="$prefix"
11369 prefix
="$acl_final_prefix"
11370 acl_save_exec_prefix
="$exec_prefix"
11371 exec_prefix
="$acl_final_exec_prefix"
11373 exec_prefix
="$acl_save_exec_prefix"
11374 prefix
="$acl_save_prefix"
11376 if test "X$x" = "X$element"; then
11381 if test -z "$haveit"; then
11382 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11387 $as_echo_n "checking how to link with libiconv... " >&6; }
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11389 $as_echo "$LIBICONV" >&6; }
11397 if test "$am_cv_func_iconv" = yes; then
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11399 $as_echo_n "checking for iconv declaration... " >&6; }
11400 if ${am_cv_proto_iconv+:} false
; then :
11401 $as_echo_n "(cached) " >&6
11404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11407 #include <stdlib.h>
11413 #if defined(__STDC__) || defined(__cplusplus)
11414 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11427 if ac_fn_cxx_try_compile
"$LINENO"; then :
11428 am_cv_proto_iconv_arg1
=""
11430 am_cv_proto_iconv_arg1
="const"
11432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11433 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);"
11436 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11438 }$am_cv_proto_iconv" >&5
11440 }$am_cv_proto_iconv" >&6; }
11442 cat >>confdefs.h
<<_ACEOF
11443 #define ICONV_CONST $am_cv_proto_iconv_arg1
11449 # Until we have in-tree GNU iconv:
11451 if test -f "$LTLIBICONV"; then
11452 LIBICONV_DEP
=$LTLIBICONV
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11458 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11459 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11460 $as_echo_n "(cached) " >&6
11462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11464 #include <locale.h>
11473 if ac_fn_cxx_try_link
"$LINENO"; then :
11474 am_cv_val_LC_MESSAGES
=yes
11476 am_cv_val_LC_MESSAGES
=no
11478 rm -f core conftest.err conftest.
$ac_objext \
11479 conftest
$ac_exeext conftest.
$ac_ext
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11482 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11483 if test $am_cv_val_LC_MESSAGES = yes; then
11485 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11492 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11493 if ${am_cv_langinfo_codeset+:} false
; then :
11494 $as_echo_n "(cached) " >&6
11496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11497 /* end confdefs.h. */
11498 #include <langinfo.h>
11502 char* cs = nl_langinfo(CODESET);
11507 if ac_fn_cxx_try_link
"$LINENO"; then :
11508 am_cv_langinfo_codeset
=yes
11510 am_cv_langinfo_codeset
=no
11512 rm -f core conftest.err conftest.
$ac_objext \
11513 conftest
$ac_exeext conftest.
$ac_ext
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11517 $as_echo "$am_cv_langinfo_codeset" >&6; }
11518 if test $am_cv_langinfo_codeset = yes; then
11520 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11525 # We will need to find libiberty.h and ansidecl.h
11526 saved_CFLAGS
="$CFLAGS"
11527 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC -I${top_srcdir}/../../sdbinutils/include"
11528 saved_CXXFLAGS
="$CXXFLAGS"
11529 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC -I${srcdir}/../../sdbinutils/include"
11531 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11532 # normal autoconf function for these. But force definition of
11533 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11534 # basename handling in libiberty.h.
11535 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11536 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11537 #undef HAVE_DECL_BASENAME
11538 #define HAVE_DECL_BASENAME 1
11539 #include \"ansidecl.h\"
11540 #include \"system.h\"
11542 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11548 cat >>confdefs.h
<<_ACEOF
11549 #define HAVE_DECL_BASENAME $ac_have_decl
11551 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11552 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11553 #undef HAVE_DECL_BASENAME
11554 #define HAVE_DECL_BASENAME 1
11555 #include \"ansidecl.h\"
11556 #include \"system.h\"
11558 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11564 cat >>confdefs.h
<<_ACEOF
11565 #define HAVE_DECL_STRSTR $ac_have_decl
11569 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11570 madvise stpcpy strnlen strsignal strverscmp \
11571 strtol strtoul strtoll strtoull setenv unsetenv \
11572 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11573 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
11575 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11577 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11578 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11579 $as_echo_n "(cached) " >&6
11581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11582 /* end confdefs.h. */
11584 #define $ac_tr_decl 1
11586 #include "ansidecl.h"
11587 #include "system.h"
11593 char *(*pfn) = (char *(*)) $ac_func ;
11599 if ac_fn_cxx_try_compile
"$LINENO"; then :
11600 eval "gcc_cv_have_decl_$ac_func=yes"
11602 eval "gcc_cv_have_decl_$ac_func=no"
11604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11607 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11609 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11610 #define $ac_tr_decl 1
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11616 #define $ac_tr_decl 0
11624 for ac_func
in getrlimit setrlimit getrusage
11626 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11628 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11629 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11630 $as_echo_n "(cached) " >&6
11632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11633 /* end confdefs.h. */
11635 #define $ac_tr_decl 1
11637 #include "ansidecl.h"
11638 #include "system.h"
11639 #ifdef HAVE_SYS_RESOURCE_H
11640 #include <sys/resource.h>
11648 char *(*pfn) = (char *(*)) $ac_func ;
11654 if ac_fn_cxx_try_compile
"$LINENO"; then :
11655 eval "gcc_cv_have_decl_$ac_func=yes"
11657 eval "gcc_cv_have_decl_$ac_func=no"
11659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11662 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11664 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11665 #define $ac_tr_decl 1
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11670 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11671 #define $ac_tr_decl 0
11679 for ac_func
in mallinfo mallinfo2
11681 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11683 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11684 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11685 $as_echo_n "(cached) " >&6
11687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11690 #define $ac_tr_decl 1
11692 #include "ansidecl.h"
11693 #include "system.h"
11694 #ifdef HAVE_MALLOC_H
11695 #include <malloc.h>
11703 char *(*pfn) = (char *(*)) $ac_func ;
11709 if ac_fn_cxx_try_compile
"$LINENO"; then :
11710 eval "gcc_cv_have_decl_$ac_func=yes"
11712 eval "gcc_cv_have_decl_$ac_func=no"
11714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11717 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11719 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11720 #define $ac_tr_decl 1
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11725 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11726 #define $ac_tr_decl 0
11734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11735 /* end confdefs.h. */
11737 #include "ansidecl.h"
11738 #include "system.h"
11739 #ifdef HAVE_SYS_RESOURCE_H
11740 #include <sys/resource.h>
11751 if ac_fn_cxx_try_compile
"$LINENO"; then :
11755 $as_echo "#define rlim_t long" >>confdefs.h
11758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11760 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11761 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11762 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
11763 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11764 for ac_func
in ldgetname
11766 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11768 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11769 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11770 $as_echo_n "(cached) " >&6
11772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11773 /* end confdefs.h. */
11775 #define $ac_tr_decl 1
11777 #include "ansidecl.h"
11778 #include "system.h"
11779 #ifdef HAVE_LDFCN_H
11790 char *(*pfn) = (char *(*)) $ac_func ;
11796 if ac_fn_cxx_try_compile
"$LINENO"; then :
11797 eval "gcc_cv_have_decl_$ac_func=yes"
11799 eval "gcc_cv_have_decl_$ac_func=no"
11801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11804 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11806 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11807 #define $ac_tr_decl 1
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11813 #define $ac_tr_decl 0
11821 for ac_func
in times
11823 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11825 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11826 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11827 $as_echo_n "(cached) " >&6
11829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11832 #define $ac_tr_decl 1
11834 #include "ansidecl.h"
11835 #include "system.h"
11836 #ifdef HAVE_SYS_TIMES_H
11837 #include <sys/times.h>
11845 char *(*pfn) = (char *(*)) $ac_func ;
11851 if ac_fn_cxx_try_compile
"$LINENO"; then :
11852 eval "gcc_cv_have_decl_$ac_func=yes"
11854 eval "gcc_cv_have_decl_$ac_func=no"
11856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11859 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11861 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11862 #define $ac_tr_decl 1
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11868 #define $ac_tr_decl 0
11876 for ac_func
in sigaltstack
11878 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11880 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11881 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11882 $as_echo_n "(cached) " >&6
11884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h. */
11887 #define $ac_tr_decl 1
11889 #include "ansidecl.h"
11890 #include "system.h"
11891 #include <signal.h>
11898 char *(*pfn) = (char *(*)) $ac_func ;
11904 if ac_fn_cxx_try_compile
"$LINENO"; then :
11905 eval "gcc_cv_have_decl_$ac_func=yes"
11907 eval "gcc_cv_have_decl_$ac_func=no"
11909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11912 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11914 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11915 #define $ac_tr_decl 1
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11921 #define $ac_tr_decl 0
11929 # More time-related stuff.
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11931 $as_echo_n "checking for struct tms... " >&6; }
11932 if ${ac_cv_struct_tms+:} false
; then :
11933 $as_echo_n "(cached) " >&6
11936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11937 /* end confdefs.h. */
11939 #include "ansidecl.h"
11940 #include "system.h"
11941 #ifdef HAVE_SYS_TIMES_H
11942 #include <sys/times.h>
11953 if ac_fn_cxx_try_compile
"$LINENO"; then :
11954 ac_cv_struct_tms
=yes
11956 ac_cv_struct_tms
=no
11958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11961 $as_echo "$ac_cv_struct_tms" >&6; }
11962 if test $ac_cv_struct_tms = yes; then
11964 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11968 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11969 # revisit after autoconf 2.50.
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11971 $as_echo_n "checking for clock_t... " >&6; }
11972 if ${gcc_cv_type_clock_t+:} false
; then :
11973 $as_echo_n "(cached) " >&6
11976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h. */
11979 #include "ansidecl.h"
11980 #include "system.h"
11990 if ac_fn_cxx_try_compile
"$LINENO"; then :
11991 gcc_cv_type_clock_t
=yes
11993 gcc_cv_type_clock_t
=no
11995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11998 $as_echo "$gcc_cv_type_clock_t" >&6; }
11999 if test $gcc_cv_type_clock_t = yes; then
12001 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12005 # Check if F_SETLKW is supported by fcntl.
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12007 $as_echo_n "checking for F_SETLKW... " >&6; }
12008 if ${ac_cv_f_setlkw+:} false
; then :
12009 $as_echo_n "(cached) " >&6
12012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h. */
12025 return fcntl (1, F_SETLKW, &fl);
12030 if ac_fn_cxx_try_compile
"$LINENO"; then :
12035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12038 $as_echo "$ac_cv_f_setlkw" >&6; }
12039 if test $ac_cv_f_setlkw = yes; then
12041 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12045 # Check if O_CLOEXEC is defined by fcntl
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12047 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12048 if ${ac_cv_o_cloexec+:} false
; then :
12049 $as_echo_n "(cached) " >&6
12052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12053 /* end confdefs.h. */
12060 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12065 if ac_fn_cxx_try_compile
"$LINENO"; then :
12066 ac_cv_o_cloexec
=yes
12070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12073 $as_echo "$ac_cv_o_cloexec" >&6; }
12074 if test $ac_cv_o_cloexec = yes; then
12076 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12080 # C++ Modules would like some networking features to provide the mapping
12081 # server. You can still use modules without them though.
12082 # The following network-related checks could probably do with some
12083 # Windows and other non-linux defenses and checking.
12085 # Local socket connectivity wants AF_UNIX networking
12086 # Check for AF_UNIX networking
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12088 $as_echo_n "checking for AF_UNIX... " >&6; }
12089 if ${ac_cv_af_unix+:} false
; then :
12090 $as_echo_n "(cached) " >&6
12093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12096 #include <sys/types.h>
12097 #include <sys/socket.h>
12098 #include <sys/un.h>
12099 #include <netinet/in.h>
12105 un.sun_family = AF_UNSPEC;
12106 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12107 connect (fd, (sockaddr *)&un, sizeof (un));
12112 if ac_fn_cxx_try_compile
"$LINENO"; then :
12117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12120 $as_echo "$ac_cv_af_unix" >&6; }
12121 if test $ac_cv_af_unix = yes; then
12123 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12127 # Remote socket connectivity wants AF_INET6 networking
12128 # Check for AF_INET6 networking
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12130 $as_echo_n "checking for AF_INET6... " >&6; }
12131 if ${ac_cv_af_inet6+:} false
; then :
12132 $as_echo_n "(cached) " >&6
12135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12136 /* end confdefs.h. */
12138 #include <sys/types.h>
12139 #include <sys/socket.h>
12140 #include <netinet/in.h>
12147 in6.sin6_family = AF_UNSPEC;
12148 struct addrinfo *addrs = 0;
12149 struct addrinfo hints;
12150 hints.ai_flags = 0;
12151 hints.ai_family = AF_INET6;
12152 hints.ai_socktype = SOCK_STREAM;
12153 hints.ai_protocol = 0;
12154 hints.ai_canonname = 0;
12157 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12158 const char *str = gai_strerror (e);
12159 freeaddrinfo (addrs);
12160 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12161 connect (fd, (sockaddr *)&in6, sizeof (in6));
12166 if ac_fn_cxx_try_compile
"$LINENO"; then :
12171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12174 $as_echo "$ac_cv_af_inet6" >&6; }
12175 if test $ac_cv_af_inet6 = yes; then
12177 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12181 # Check if _LK_LOCK is supported by _locking
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12183 $as_echo_n "checking for _LK_LOCK... " >&6; }
12184 if ${ac_cv_lk_lock+:} false
; then :
12185 $as_echo_n "(cached) " >&6
12188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12189 /* end confdefs.h. */
12192 #include <sys/locking.h>
12198 return _locking (fd, _LK_LOCK, 0);
12203 if ac_fn_cxx_try_compile
"$LINENO"; then :
12208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12211 $as_echo "$ac_cv_lk_lock" >&6; }
12212 if test $ac_cv_lk_lock = yes; then
12214 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12218 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12219 CFLAGS
="$saved_CFLAGS"
12220 CXXFLAGS
="$saved_CXXFLAGS"
12222 # mkdir takes a single argument on some systems.
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12224 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12225 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
12226 $as_echo_n "(cached) " >&6
12228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12229 /* end confdefs.h. */
12231 #include <sys/types.h>
12232 #ifdef HAVE_SYS_STAT_H
12233 # include <sys/stat.h>
12235 #ifdef HAVE_UNISTD_H
12236 # include <unistd.h>
12238 #ifdef HAVE_DIRECT_H
12239 # include <direct.h>
12249 if ac_fn_cxx_try_compile
"$LINENO"; then :
12250 gcc_cv_mkdir_takes_one_arg
=no
12252 gcc_cv_mkdir_takes_one_arg
=yes
12254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12257 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12258 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12260 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12271 # With Setjmp/Longjmp based exception handling.
12272 # Check whether --enable-sjlj-exceptions was given.
12273 if test "${enable_sjlj_exceptions+set}" = set; then :
12274 enableval
=$enable_sjlj_exceptions; case $target in
12276 if test $enableval != yes; then
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
12278 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
12283 force_sjlj_exceptions
=yes
12287 force_sjlj_exceptions
=yes
12291 force_sjlj_exceptions
=yes
12295 force_sjlj_exceptions
=no
12300 if test $force_sjlj_exceptions = yes; then
12301 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12303 cat >>confdefs.h
<<_ACEOF
12304 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12309 # --------------------------------------------------------
12310 # Build, host, and target specific configuration fragments
12311 # --------------------------------------------------------
12313 # Collect build-machine-specific information.
12314 .
${srcdir}/config.build ||
exit 1
12316 # Collect host-machine-specific information.
12317 .
${srcdir}/config.
host ||
exit 1
12321 # Collect target-machine-specific information.
12322 .
${srcdir}/config.gcc ||
exit 1
12324 extra_objs
="${host_extra_objs} ${extra_objs}"
12325 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12327 # Default the target-machine variables that were not explicitly set.
12328 if test x
"$tm_file" = x
12329 then tm_file
=$cpu_type/$cpu_type.h
; fi
12331 if test x
"$extra_headers" = x
12332 then extra_headers
=; fi
12334 if test x
$md_file = x
12335 then md_file
=$cpu_type/$cpu_type.md
; fi
12337 if test x
$out_file = x
12338 then out_file
=$cpu_type/$cpu_type.cc
; fi
12340 if test x
"$tmake_file" = x
12341 then tmake_file
=$cpu_type/t-
$cpu_type
12344 # Support --enable-initfini-array.
12345 if test x
$enable_initfini_array != xno
; then
12346 tm_file
="${tm_file} initfini-array.h"
12349 if test x
"$dwarf2" = xyes
12350 then tm_file
="$tm_file tm-dwarf2.h"
12353 # Say what files are being used for the output code and MD file.
12354 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12355 echo "Using \`$srcdir/config/$md_file' as machine description file."
12357 # If any of the xm_file variables contain nonexistent files, warn
12358 # about them and drop them.
12361 for x
in $build_xm_file; do
12362 if test -f $srcdir/config
/$x
12364 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12365 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12368 build_xm_file
="$bx"
12371 for x
in $host_xm_file; do
12372 if test -f $srcdir/config
/$x
12374 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12375 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12381 for x
in $xm_file; do
12382 if test -f $srcdir/config
/$x
12384 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12385 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12391 for f
in $tm_file; do
12394 if test $count = ax
; then
12395 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12397 echo "Using the following target machine macro files:"
12398 for f
in $tm_file; do
12399 echo " $srcdir/config/$f"
12403 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12405 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12409 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12411 cat >>confdefs.h
<<_ACEOF
12412 #define HAVE_GNU_LD $gnu_ld_bool
12416 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12418 cat >>confdefs.h
<<_ACEOF
12419 #define HAVE_GNU_AS $gnu_as_bool
12424 for f
in $host_xm_file; do
12427 if test $count = a
; then
12429 elif test $count = ax
; then
12430 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12432 echo "Using the following host machine macro files:"
12433 for f
in $host_xm_file; do
12434 echo " $srcdir/config/$f"
12437 echo "Using ${out_host_hook_obj} for host machine hooks."
12439 if test "$host_xm_file" != "$build_xm_file"; then
12441 for f
in $build_xm_file; do
12444 if test $count = a
; then
12446 elif test $count = ax
; then
12447 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12449 echo "Using the following build machine macro files:"
12450 for f
in $build_xm_file; do
12451 echo " $srcdir/config/$f"
12456 if test -n "$configured_native_system_header_dir"; then
12457 native_system_header_dir
=$configured_native_system_header_dir
12459 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
12463 powerpc
*-*-darwin*)
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12465 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12466 if ${gcc_cv_mcontext_underscores+:} false
; then :
12467 $as_echo_n "(cached) " >&6
12469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12472 #include <sys/cdefs.h>
12473 #include <sys/signal.h>
12474 #include <ucontext.h>
12475 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12478 if ac_fn_cxx_try_compile
"$LINENO"; then :
12479 gcc_cv_mcontext_underscores
=no
12481 gcc_cv_mcontext_underscores
=yes
12483 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12486 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12487 if test $gcc_cv_mcontext_underscores = yes; then
12489 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12499 # Check if a valid thread package
12500 case ${enable_threads} in
12503 target_thread_file
='single'
12507 target_thread_file
='single'
12509 aix | dce | lynx | mipssde | posix | rtems | \
12510 single | tpf | vxworks | win32
)
12511 target_thread_file
=${enable_threads}
12514 echo "${enable_threads} is an unknown thread package" 1>&2
12519 if test x
${thread_file} = x
; then
12520 # No thread file set by target-specific clauses in config.gcc,
12521 # so use file chosen by default logic above
12522 thread_file
=${target_thread_file}
12530 if test x
$enable___cxa_atexit = xyes || \
12531 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12532 if test x
$host = x
$target; then
12534 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12535 # keyed to flag_use_cxa_atexit
12543 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12544 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
12547 echo "__cxa_atexit can't be enabled on this target"
12553 # We can't check for __cxa_atexit when building a cross, so assume
12557 if test x
$use_cxa_atexit = xyes
; then
12559 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12564 # Look for a file containing extra machine modes.
12565 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12566 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12569 cat >>confdefs.h
<<_ACEOF
12570 #define EXTRA_MODES_FILE "config/$extra_modes"
12575 # Convert extra_options into a form suitable for Makefile use.
12578 for f
in $extra_options; do
12579 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12580 all_opt_files
="$all_opt_files $srcdir/config/$f"
12584 # auto-host.h is the file containing items generated by autoconf and is
12585 # the first file included by config.h.
12586 # If host=build, it is correct to have bconfig include auto-host.h
12587 # as well. If host!=build, we are in error and need to do more
12588 # work to find out the build config parameters.
12589 if test x
$host = x
$build
12591 build_auto
=auto-host.h
12592 HAVE_AUTO_BUILD
='# '
12594 # We create a subdir, then run autoconf in the subdir.
12595 # To prevent recursion we set host and build for the new
12596 # invocation of configure to the build for this invocation
12603 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12604 *) realsrcdir
=..
/${srcdir};;
12606 # Clearing GMPINC is necessary to prevent host headers being
12607 # used by the build compiler. Defining GENERATOR_FILE stops
12608 # system.h from including gmp.h.
12609 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12610 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
12611 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
12612 GMPINC
="" CPPFLAGS
="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
12613 ${realsrcdir}/configure \
12614 --enable-languages=${enable_languages-all} \
12615 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12616 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12617 --target=$target_alias --host=$build_alias \
12618 --build=$build_alias ||
exit # retaining $tempdir
12620 # We just finished tests for the build machine, so rename
12621 # the file auto-build.h in the gcc directory.
12622 mv auto-host.h ..
/auto-build.h
12625 build_auto
=auto-build.h
12631 tm_file
="${tm_file} defaults.h"
12632 tm_p_file
="${tm_p_file} tm-preds.h"
12633 tm_d_file
="${tm_d_file} defaults.h"
12634 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12635 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12636 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12637 # put this back in temporarily.
12638 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12644 # Compile in configure arguments.
12645 if test -f configargs.h
; then
12646 # Being re-configured.
12647 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12648 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12649 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12650 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12653 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12656 # Double all backslashes and backslash all quotes to turn
12657 # gcc_config_arguments into a C string.
12658 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12659 $gcc_config_arguments
12661 gcc_config_arguments_str
=`cat conftest.out`
12664 cat > configargs.h
<<EOF
12665 /* Generated automatically. */
12666 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12667 static const char thread_model[] = "$thread_file";
12669 static const struct {
12670 const char *name, *value;
12671 } configure_default_options[] = $configure_default_options;
12674 gcc_BASEVER
=`cat $srcdir/BASE-VER`
12675 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
12676 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
12677 if test -f $srcdir/REVISION
; then
12678 gcc_REVISION
=`cat $srcdir/REVISION`
12682 cat > plugin-version.h
<<EOF
12683 #include "configargs.h"
12685 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12686 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12687 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12688 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12690 static char basever[] = "$gcc_BASEVER";
12691 static char datestamp[] = "$gcc_DATESTAMP";
12692 static char devphase[] = "$gcc_DEVPHASE";
12693 static char revision[] = "$gcc_REVISION";
12695 /* FIXME plugins: We should make the version information more precise.
12696 One way to do is to add a checksum. */
12698 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12699 devphase, revision,
12700 configuration_arguments};
12703 # Determine what GCC version number to use in filesystem paths.
12705 get_gcc_base_ver
="cat"
12707 # Check whether --with-gcc-major-version-only was given.
12708 if test "${with_gcc_major_version_only+set}" = set; then :
12709 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
12710 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
12718 # Internationalization
12719 # If we haven't got the data from the intl directory,
12720 # assume NLS is disabled.
12729 if test -f ..
/intl
/config.intl
; then
12730 . ..
/intl
/config.intl
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12733 $as_echo_n "checking whether NLS is requested... " >&6; }
12734 if test x
"$USE_NLS" != xyes
; then
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736 $as_echo "no" >&6; }
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12739 $as_echo "yes" >&6; }
12741 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12745 $as_echo_n "checking for catalogs to be installed... " >&6; }
12746 # Look for .po and .gmo files in the source directory.
12749 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12750 # If there aren't any .gmo files the shell will give us the
12751 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12753 case "$cat" in *\
**)
12756 # The quadruple backslash is collapsed to a double backslash
12757 # by the backticks, then collapsed again by the double quotes,
12758 # leaving us with one backslash in the sed expression (right
12759 # before the dot that mustn't act as a wildcard).
12760 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12761 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
12762 # The user is allowed to set LINGUAS to a list of languages to
12763 # install catalogs for. If it's empty that means "all of them."
12764 if test "x$LINGUAS" = x
; then
12765 CATALOGS
="$CATALOGS $cat"
12766 XLINGUAS
="$XLINGUAS $lang"
12768 case "$LINGUAS" in *$lang*)
12769 CATALOGS
="$CATALOGS $cat"
12770 XLINGUAS
="$XLINGUAS $lang"
12775 LINGUAS
="$XLINGUAS"
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12777 $as_echo "$LINGUAS" >&6; }
12790 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12791 # -liconv on the link line twice.
12792 case "$LIBINTL" in *$LIBICONV*)
12796 # Check whether --enable-secureplt was given.
12797 if test "${enable_secureplt+set}" = set; then :
12798 enableval
=$enable_secureplt;
12802 # Check whether --enable-mingw-wildcard was given.
12803 if test "${enable_mingw_wildcard+set}" = set; then :
12804 enableval
=$enable_mingw_wildcard;
12806 enable_mingw_wildcard
=platform
12809 if test x
"$enable_mingw_wildcard" != xplatform
; then :
12811 cat >>confdefs.h
<<_ACEOF
12812 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12817 # Check whether --enable-large-address-aware was given.
12818 if test "${enable_large_address_aware+set}" = set; then :
12819 enableval
=$enable_large_address_aware;
12822 if test x
"$enable_large_address_aware" = xyes
; then :
12824 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12828 # Check whether --enable-leading-mingw64-underscores was given.
12829 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12830 enableval
=$enable_leading_mingw64_underscores;
12833 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
12835 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12839 # Check whether --enable-cld was given.
12840 if test "${enable_cld+set}" = set; then :
12841 enableval
=$enable_cld;
12847 # Check whether --enable-frame-pointer was given.
12848 if test "${enable_frame_pointer+set}" = set; then :
12849 enableval
=$enable_frame_pointer;
12853 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
12854 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12855 enable_frame_pointer
=no
12858 enable_frame_pointer
=yes
12866 i
[34567]86-*-* | x86_64-
*-*)
12867 if test "x$enable_cld" = xyes
; then
12868 tm_defines
="${tm_defines} USE_IX86_CLD=1"
12870 if test "x$enable_frame_pointer" = xyes
; then
12871 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
12876 # Windows32 Registry support for specifying GCC installation paths.
12877 # Check whether --enable-win32-registry was given.
12878 if test "${enable_win32_registry+set}" = set; then :
12879 enableval
=$enable_win32_registry;
12884 win32 | pe | cygwin
* | mingw32
*)
12885 if test "x$enable_win32_registry" != xno
; then
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12887 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12888 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12889 $as_echo_n "(cached) " >&6
12891 ac_func_search_save_LIBS
=$LIBS
12892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12893 /* end confdefs.h. */
12895 /* Override any GCC internal prototype to avoid an error.
12896 Use char because int might match the return type of a GCC
12897 builtin and then its argument prototype would still apply. */
12901 char RegOpenKeyExA ();
12905 return RegOpenKeyExA ();
12910 for ac_lib
in '' advapi32
; do
12911 if test -z "$ac_lib"; then
12912 ac_res
="none required"
12915 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12917 if ac_fn_cxx_try_link
"$LINENO"; then :
12918 ac_cv_search_RegOpenKeyExA
=$ac_res
12920 rm -f core conftest.err conftest.
$ac_objext \
12922 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12926 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12929 ac_cv_search_RegOpenKeyExA
=no
12931 rm conftest.
$ac_ext
12932 LIBS
=$ac_func_search_save_LIBS
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12935 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12936 ac_res
=$ac_cv_search_RegOpenKeyExA
12937 if test "$ac_res" != no
; then :
12938 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12941 enable_win32_registry
=no
12946 if test "x$enable_win32_registry" != xno
; then
12948 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12951 if test "x$enable_win32_registry" != xyes \
12952 && test "x$enable_win32_registry" != x
; then
12954 cat >>confdefs.h
<<_ACEOF
12955 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12963 # Get an absolute path to the GCC top-level source directory
12964 holddir
=`${PWDCMD-pwd}`
12966 topdir
=`${PWDCMD-pwd}`
12969 # Conditionalize the makefile for this host machine.
12971 for f
in ${host_xmake_file}
12973 if test -f ${srcdir}/config
/$f
12975 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12979 # Conditionalize the makefile for this target machine.
12981 for f
in ${tmake_file}
12983 if test -f ${srcdir}/config
/$f
12985 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12988 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
12990 out_object_file
=`basename $out_file .cc`.o
12991 common_out_file
=default-common.cc
12992 common_out_object_file
=`basename $common_out_file .cc`.o
12994 tm_file_list
="options.h"
12995 tm_include_list
="options.h insn-constants.h"
12996 for f
in $tm_file; do
12999 f
=`echo $f | sed 's/^..//'`
13000 tm_file_list
="${tm_file_list} $f"
13001 tm_include_list
="${tm_include_list} $f"
13004 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13005 tm_include_list
="${tm_include_list} $f"
13008 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13009 tm_include_list
="${tm_include_list} config/$f"
13016 for f
in $tm_p_file; do
13019 tm_p_file_list
="${tm_p_file_list} $f"
13020 tm_p_include_list
="${tm_p_include_list} $f"
13023 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13024 tm_p_include_list
="${tm_p_include_list} config/$f"
13029 tm_d_include_list
="options.h insn-constants.h"
13030 for f
in $tm_d_file; do
13033 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/$f"
13034 tm_d_include_list
="${tm_d_include_list} $f"
13037 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
13038 tm_d_include_list
="${tm_d_include_list} config/$f"
13045 for f
in $xm_file; do
13048 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13049 xm_include_list
="${xm_include_list} $f"
13052 xm_file_list
="${xm_file_list} $f"
13053 xm_include_list
="${xm_include_list} $f"
13056 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13057 xm_include_list
="${xm_include_list} config/$f"
13063 host_xm_include_list
=
13064 for f
in $host_xm_file; do
13067 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13068 host_xm_include_list
="${host_xm_include_list} $f"
13071 host_xm_file_list
="${host_xm_file_list} $f"
13072 host_xm_include_list
="${host_xm_include_list} $f"
13075 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13076 host_xm_include_list
="${host_xm_include_list} config/$f"
13081 build_xm_file_list
=
13082 for f
in $build_xm_file; do
13085 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13086 build_xm_include_list
="${build_xm_include_list} $f"
13088 auto-build.h | auto-host.h
)
13089 build_xm_file_list
="${build_xm_file_list} $f"
13090 build_xm_include_list
="${build_xm_include_list} $f"
13093 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13094 build_xm_include_list
="${build_xm_include_list} config/$f"
13099 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13100 # cross-compiler which does not use the native headers and libraries.
13101 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13104 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13105 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
13107 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
13108 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
13109 if test "x$with_build_sysroot" != x
; then
13110 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13112 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13115 if test x
$host != x
$target
13117 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13119 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
13120 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13121 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
13124 if test "x$with_build_sysroot" != "x"; then
13125 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
13126 elif test "x$with_sysroot" = x
; then
13127 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
13128 elif test "x$with_sysroot" = xyes
; then
13129 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13131 target_header_dir
="${with_sysroot}${native_system_header_dir}"
13134 target_header_dir
=${native_system_header_dir}
13137 # If this is a cross-compiler that does not
13138 # have its own set of headers then define
13141 # If this is using newlib, without having the headers available now,
13142 # then define inhibit_libc in LIBGCC2_CFLAGS.
13143 # This prevents libgcc2 from containing any code which requires libc
13145 : ${inhibit_libc=false}
13146 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13147 test x
$with_newlib = xyes
; } &&
13148 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
13153 # When building gcc with a cross-compiler, we need to adjust things so
13154 # that the generator programs are still built with the native compiler.
13155 # Also, we cannot run fixincludes.
13157 # These are the normal (build=host) settings:
13158 CC_FOR_BUILD
='$(CC)'
13159 CXX_FOR_BUILD
='$(CXX)'
13160 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13161 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
13162 BUILD_LDFLAGS
='$(LDFLAGS)'
13163 STMP_FIXINC
=stmp-fixinc
13165 # And these apply if build != host, or we are generating coverage data
13166 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13168 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13169 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13170 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
13173 # Expand extra_headers to include complete path.
13174 # This substitutes for lots of t-* files.
13175 extra_headers_list
=
13176 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13177 for file in ${extra_headers} ; do
13178 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13181 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13182 if test x
"$use_gcc_tgmath" = xyes
13183 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13186 # Define collect2 in Makefile.
13187 case $host_can_use_collect2 in
13189 *) collect2
='collect2$(exeext)' ;;
13193 # Add a definition of USE_COLLECT2 if system wants one.
13194 case $use_collect2 in
13195 no
) use_collect2
= ;;
13198 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13199 xm_defines
="${xm_defines} USE_COLLECT2"
13200 case $host_can_use_collect2 in
13202 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
13209 cat >>confdefs.h
<<_ACEOF
13210 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13214 # ---------------------------
13215 # Assembler & linker features
13216 # ---------------------------
13218 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13219 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13220 # However when ld-new is first executed from the build tree, libtool will
13221 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13222 # to the build tree. While doing this we need to use the previous-stage
13223 # linker, or we have an infinite loop. The presence of a shell script as
13224 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13225 # the gcc/collect-ld script. So we need to know how libtool works, or
13226 # exec-tool will fail.
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13232 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13237 macro_version
='2.2.7a'
13238 macro_revision
='1.3134'
13252 ltmain
="$ac_aux_dir/ltmain.sh"
13254 # Backslashify metacharacters that are still active within
13255 # double-quoted strings.
13256 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
13258 # Same as above, but do not quote variable references.
13259 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
13261 # Sed substitution to delay expansion of an escaped shell variable in a
13262 # double_quote_subst'ed string.
13263 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
13265 # Sed substitution to delay expansion of an escaped single quote.
13266 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
13268 # Sed substitution to avoid accidental globbing in evaled expressions
13269 no_glob_subst
='s/\*/\\\*/g'
13271 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13272 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13273 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13276 $as_echo_n "checking how to print strings... " >&6; }
13277 # Test print first, because it will be a builtin if present.
13278 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13279 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13281 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13284 # Use this function as a fallback that always works.
13285 func_fallback_echo ()
13287 eval 'cat <<_LTECHO_EOF
13291 ECHO='func_fallback_echo
'
13294 # func_echo_all arg...
13295 # Invoke $ECHO with all args, space-separated.
13302 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13303 $as_echo "printf" >&6; } ;;
13304 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13305 $as_echo "print -r" >&6; } ;;
13306 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13307 $as_echo "cat" >&6; } ;;
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13324 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13325 if ${ac_cv_path_SED+:} false; then :
13326 $as_echo_n "(cached) " >&6
13328 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13329 for ac_i in 1 2 3 4 5 6 7; do
13330 ac_script="$ac_script$as_nl$ac_script"
13332 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13333 { ac_script=; unset ac_script;}
13334 if test -z "$SED"; then
13335 ac_path_SED_found=false
13336 # Loop through the user's path and
test for each of PROGNAME-LIST
13337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13338 for as_dir
in $PATH
13341 test -z "$as_dir" && as_dir
=.
13342 for ac_prog
in sed gsed
; do
13343 for ac_exec_ext
in '' $ac_executable_extensions; do
13344 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13345 as_fn_executable_p
"$ac_path_SED" ||
continue
13346 # Check for GNU ac_path_SED and select it if it is found.
13347 # Check for GNU $ac_path_SED
13348 case `"$ac_path_SED" --version 2>&1` in
13350 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13353 $as_echo_n 0123456789 >"conftest.in"
13356 cat "conftest.in" "conftest.in" >"conftest.tmp"
13357 mv "conftest.tmp" "conftest.in"
13358 cp "conftest.in" "conftest.nl"
13359 $as_echo '' >> "conftest.nl"
13360 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13361 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13362 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13363 if test $ac_count -gt ${ac_path_SED_max-0}; then
13364 # Best one so far, save it but keep looking for a better one
13365 ac_cv_path_SED
="$ac_path_SED"
13366 ac_path_SED_max
=$ac_count
13368 # 10*(2^10) chars as input seems more than enough
13369 test $ac_count -gt 10 && break
13371 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13374 $ac_path_SED_found && break 3
13379 if test -z "$ac_cv_path_SED"; then
13380 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13383 ac_cv_path_SED
=$SED
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13388 $as_echo "$ac_cv_path_SED" >&6; }
13389 SED
="$ac_cv_path_SED"
13392 test -z "$SED" && SED
=sed
13393 Xsed
="$SED -e 1s/^X//"
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13406 $as_echo_n "checking for fgrep... " >&6; }
13407 if ${ac_cv_path_FGREP+:} false
; then :
13408 $as_echo_n "(cached) " >&6
13410 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
13411 then ac_cv_path_FGREP
="$GREP -F"
13413 if test -z "$FGREP"; then
13414 ac_path_FGREP_found
=false
13415 # Loop through the user's path and test for each of PROGNAME-LIST
13416 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13417 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
13420 test -z "$as_dir" && as_dir
=.
13421 for ac_prog
in fgrep
; do
13422 for ac_exec_ext
in '' $ac_executable_extensions; do
13423 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
13424 as_fn_executable_p
"$ac_path_FGREP" ||
continue
13425 # Check for GNU ac_path_FGREP and select it if it is found.
13426 # Check for GNU $ac_path_FGREP
13427 case `"$ac_path_FGREP" --version 2>&1` in
13429 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
13432 $as_echo_n 0123456789 >"conftest.in"
13435 cat "conftest.in" "conftest.in" >"conftest.tmp"
13436 mv "conftest.tmp" "conftest.in"
13437 cp "conftest.in" "conftest.nl"
13438 $as_echo 'FGREP' >> "conftest.nl"
13439 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13440 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13441 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13442 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13443 # Best one so far, save it but keep looking for a better one
13444 ac_cv_path_FGREP
="$ac_path_FGREP"
13445 ac_path_FGREP_max
=$ac_count
13447 # 10*(2^10) chars as input seems more than enough
13448 test $ac_count -gt 10 && break
13450 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13453 $ac_path_FGREP_found && break 3
13458 if test -z "$ac_cv_path_FGREP"; then
13459 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13462 ac_cv_path_FGREP
=$FGREP
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13468 $as_echo "$ac_cv_path_FGREP" >&6; }
13469 FGREP
="$ac_cv_path_FGREP"
13472 test -z "$GREP" && GREP
=grep
13492 # Check whether --with-gnu-ld was given.
13493 if test "${with_gnu_ld+set}" = set; then :
13494 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
13500 if test "$GCC" = yes; then
13501 # Check if gcc -print-prog-name=ld gives a path.
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13503 $as_echo_n "checking for ld used by $CC... " >&6; }
13506 # gcc leaves a trailing carriage return which upsets mingw
13507 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13509 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13512 # Accept absolute paths.
13514 re_direlt
='/[^/][^/]*/\.\./'
13515 # Canonicalize the pathname of ld
13516 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13517 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
13518 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13520 test -z "$LD" && LD
="$ac_prog"
13523 # If it fails, then pretend we aren't using GCC.
13527 # If it is relative, then search for the first ld in PATH.
13528 with_gnu_ld
=unknown
13531 elif test "$with_gnu_ld" = yes; then
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13533 $as_echo_n "checking for GNU ld... " >&6; }
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13536 $as_echo_n "checking for non-GNU ld... " >&6; }
13538 if ${lt_cv_path_LD+:} false
; then :
13539 $as_echo_n "(cached) " >&6
13541 if test -z "$LD"; then
13542 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13543 for ac_dir
in $PATH; do
13545 test -z "$ac_dir" && ac_dir
=.
13546 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
13547 lt_cv_path_LD
="$ac_dir/$ac_prog"
13548 # Check to see if the program is GNU ld. I'd rather use --version,
13549 # but apparently some variants of GNU ld only accept -v.
13550 # Break only if it was the GNU/non-GNU ld that we prefer.
13551 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13552 *GNU
* |
*'with BFD'*)
13553 test "$with_gnu_ld" != no
&& break
13556 test "$with_gnu_ld" != yes && break
13563 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
13567 LD
="$lt_cv_path_LD"
13568 if test -n "$LD"; then
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13570 $as_echo "$LD" >&6; }
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13573 $as_echo "no" >&6; }
13575 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13577 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13578 if ${lt_cv_prog_gnu_ld+:} false
; then :
13579 $as_echo_n "(cached) " >&6
13581 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13582 case `$LD -v 2>&1 </dev/null` in
13583 *GNU
* |
*'with BFD'*)
13584 lt_cv_prog_gnu_ld
=yes
13587 lt_cv_prog_gnu_ld
=no
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13592 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13593 with_gnu_ld
=$lt_cv_prog_gnu_ld
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13604 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13605 if ${lt_cv_path_NM+:} false
; then :
13606 $as_echo_n "(cached) " >&6
13608 if test -n "$NM"; then
13609 # Let the user override the test.
13610 lt_cv_path_NM
="$NM"
13612 lt_nm_to_check
="${ac_tool_prefix}nm"
13613 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13614 lt_nm_to_check
="$lt_nm_to_check nm"
13616 for lt_tmp_nm
in $lt_nm_to_check; do
13617 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13618 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
13620 test -z "$ac_dir" && ac_dir
=.
13621 tmp_nm
="$ac_dir/$lt_tmp_nm"
13622 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
13623 # Check to see if the nm accepts a BSD-compat flag.
13624 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13625 # nm: unknown option "B" ignored
13626 # Tru64's nm complains that /dev/null is an invalid object file
13627 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13628 */dev
/null
* |
*'Invalid file or object type'*)
13629 lt_cv_path_NM
="$tmp_nm -B"
13633 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13635 lt_cv_path_NM
="$tmp_nm -p"
13639 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13640 continue # so that we can try to find one that supports BSD flags
13649 : ${lt_cv_path_NM=no}
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13653 $as_echo "$lt_cv_path_NM" >&6; }
13654 if test "$lt_cv_path_NM" != "no"; then
13655 NM
="$lt_cv_path_NM"
13657 # Didn't find any BSD compatible name lister, look for dumpbin.
13658 if test -n "$DUMPBIN"; then :
13659 # Let the user override the test.
13661 if test -n "$ac_tool_prefix"; then
13662 for ac_prog
in dumpbin
"link -dump"
13664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13665 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13667 $as_echo_n "checking for $ac_word... " >&6; }
13668 if ${ac_cv_prog_DUMPBIN+:} false
; then :
13669 $as_echo_n "(cached) " >&6
13671 if test -n "$DUMPBIN"; then
13672 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
13674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13675 for as_dir
in $PATH
13678 test -z "$as_dir" && as_dir
=.
13679 for ac_exec_ext
in '' $ac_executable_extensions; do
13680 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13681 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
13682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13691 DUMPBIN
=$ac_cv_prog_DUMPBIN
13692 if test -n "$DUMPBIN"; then
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13694 $as_echo "$DUMPBIN" >&6; }
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13697 $as_echo "no" >&6; }
13701 test -n "$DUMPBIN" && break
13704 if test -z "$DUMPBIN"; then
13705 ac_ct_DUMPBIN
=$DUMPBIN
13706 for ac_prog
in dumpbin
"link -dump"
13708 # Extract the first word of "$ac_prog", so it can be a program name with args.
13709 set dummy
$ac_prog; ac_word
=$2
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13711 $as_echo_n "checking for $ac_word... " >&6; }
13712 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
13713 $as_echo_n "(cached) " >&6
13715 if test -n "$ac_ct_DUMPBIN"; then
13716 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
13718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13719 for as_dir
in $PATH
13722 test -z "$as_dir" && as_dir
=.
13723 for ac_exec_ext
in '' $ac_executable_extensions; do
13724 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13725 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
13726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13735 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
13736 if test -n "$ac_ct_DUMPBIN"; then
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13738 $as_echo "$ac_ct_DUMPBIN" >&6; }
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13741 $as_echo "no" >&6; }
13745 test -n "$ac_ct_DUMPBIN" && break
13748 if test "x$ac_ct_DUMPBIN" = x
; then
13751 case $cross_compiling:$ac_tool_warned in
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13755 ac_tool_warned
=yes ;;
13757 DUMPBIN
=$ac_ct_DUMPBIN
13761 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13763 DUMPBIN
="$DUMPBIN -symbols"
13771 if test "$DUMPBIN" != ":"; then
13775 test -z "$NM" && NM
=nm
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13783 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13784 if ${lt_cv_nm_interface+:} false
; then :
13785 $as_echo_n "(cached) " >&6
13787 lt_cv_nm_interface
="BSD nm"
13788 echo "int some_variable = 0;" > conftest.
$ac_ext
13789 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13790 (eval "$ac_compile" 2>conftest.err
)
13791 cat conftest.err
>&5
13792 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13793 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
13794 cat conftest.err
>&5
13795 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13796 cat conftest.out
>&5
13797 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
13798 lt_cv_nm_interface
="MS dumpbin"
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13803 $as_echo "$lt_cv_nm_interface" >&6; }
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13806 $as_echo_n "checking whether ln -s works... " >&6; }
13808 if test "$LN_S" = "ln -s"; then
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13810 $as_echo "yes" >&6; }
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13813 $as_echo "no, using $LN_S" >&6; }
13816 # find the maximum length of command line arguments
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13818 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13819 if ${lt_cv_sys_max_cmd_len+:} false
; then :
13820 $as_echo_n "(cached) " >&6
13827 # On DJGPP, this test can blow up pretty badly due to problems in libc
13828 # (any single argument exceeding 2000 bytes causes a buffer overrun
13829 # during glob expansion). Even if it were fixed, the result of this
13830 # check would be larger than it should be.
13831 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
13835 # Under GNU Hurd, this test is not required because there is
13836 # no limit to the length of command line arguments.
13837 # Libtool will interpret -1 as no limit whatsoever
13838 lt_cv_sys_max_cmd_len
=-1;
13841 cygwin
* | mingw
* | cegcc
*)
13842 # On Win9x/ME, this test blows up -- it succeeds, but takes
13843 # about 5 minutes as the teststring grows exponentially.
13844 # Worse, since 9x/ME are not pre-emptively multitasking,
13845 # you end up with a "frozen" computer, even though with patience
13846 # the test eventually succeeds (with a max line length of 256k).
13847 # Instead, let's just punt: use the minimum linelength reported by
13848 # all of the supported platforms: 8192 (on NT/2K/XP).
13849 lt_cv_sys_max_cmd_len
=8192;
13853 # On MiNT this can take a long time and run out of memory.
13854 lt_cv_sys_max_cmd_len
=8192;
13858 # On AmigaOS with pdksh, this test takes hours, literally.
13859 # So we just punt and use a minimum line length of 8192.
13860 lt_cv_sys_max_cmd_len
=8192;
13863 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
13864 # This has been around since 386BSD, at least. Likely further.
13865 if test -x /sbin
/sysctl
; then
13866 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
13867 elif test -x /usr
/sbin
/sysctl
; then
13868 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
13870 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
13872 # And add a safety zone
13873 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13874 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13878 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13879 lt_cv_sys_max_cmd_len
=196608
13883 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13884 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13885 # nice to cause kernel panics so lets avoid the loop below.
13886 # First set a reasonable default.
13887 lt_cv_sys_max_cmd_len
=16384
13889 if test -x /sbin
/sysconfig
; then
13890 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13891 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13896 lt_cv_sys_max_cmd_len
=102400
13898 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13899 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13900 if test -n "$kargmax"; then
13901 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13903 lt_cv_sys_max_cmd_len
=32768
13907 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13908 if test -n "$lt_cv_sys_max_cmd_len"; then
13909 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13910 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13912 # Make teststring a little bigger before we do anything with it.
13913 # a 1K string should be a reasonable start.
13914 for i
in 1 2 3 4 5 6 7 8 ; do
13915 teststring
=$teststring$teststring
13917 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13918 # If test is not a shell built-in, we'll probably end up computing a
13919 # maximum length that is only half of the actual maximum length, but
13921 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13922 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13923 test $i != 17 # 1/2 MB should be enough
13926 teststring
=$teststring$teststring
13928 # Only check the string length outside the loop.
13929 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13931 # Add a significant safety factor because C++ compilers can tack on
13932 # massive amounts of additional arguments before passing them to the
13933 # linker. It appears as though 1/2 is a usable value.
13934 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13941 if test -n $lt_cv_sys_max_cmd_len ; then
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13943 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13946 $as_echo "none" >&6; }
13948 max_cmd_len
=$lt_cv_sys_max_cmd_len
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13960 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13961 # Try some XSI features
13963 ( _lt_dummy
="a/b/c"
13964 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13966 && eval 'test $(( 1 + 1 )) -eq 2 \
13967 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13970 $as_echo "$xsi_shell" >&6; }
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13974 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13976 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13978 && lt_shell_append=yes
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13980 $as_echo "$lt_shell_append" >&6; }
13983 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13993 # test EBCDIC or ASCII
13994 case `echo X|tr X '\101'` in
13995 A) # ASCII based system
13996 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13997 lt_SP2NL='tr \040 \012'
13998 lt_NL2SP='tr \015\012 \040\040'
14000 *) # EBCDIC based system
14001 lt_SP2NL='tr \100 \n'
14002 lt_NL2SP='tr \r\n \100\100'
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
14015 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
14016 if ${lt_cv_ld_reload_flag+:} false; then :
14017 $as_echo_n "(cached
) " >&6
14019 lt_cv_ld_reload_flag='-r'
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
14022 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14023 reload_flag=$lt_cv_ld_reload_flag
14024 case $reload_flag in
14026 *) reload_flag=" $reload_flag" ;;
14028 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14031 if test "$GCC" = yes; then
14032 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14034 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14047 if test -n "$ac_tool_prefix"; then
14048 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
14049 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14051 $as_echo_n "checking
for $ac_word...
" >&6; }
14052 if ${ac_cv_prog_OBJDUMP+:} false; then :
14053 $as_echo_n "(cached
) " >&6
14055 if test -n "$OBJDUMP"; then
14056 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14059 for as_dir in $PATH
14062 test -z "$as_dir" && as_dir=.
14063 for ac_exec_ext in '' $ac_executable_extensions; do
14064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14065 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
14066 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14075 OBJDUMP=$ac_cv_prog_OBJDUMP
14076 if test -n "$OBJDUMP"; then
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
14078 $as_echo "$OBJDUMP" >&6; }
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14081 $as_echo "no
" >&6; }
14086 if test -z "$ac_cv_prog_OBJDUMP"; then
14087 ac_ct_OBJDUMP=$OBJDUMP
14088 # Extract the first word of "objdump
", so it can be a program name with args.
14089 set dummy objdump; ac_word=$2
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14091 $as_echo_n "checking
for $ac_word...
" >&6; }
14092 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14093 $as_echo_n "(cached
) " >&6
14095 if test -n "$ac_ct_OBJDUMP"; then
14096 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14099 for as_dir in $PATH
14102 test -z "$as_dir" && as_dir=.
14103 for ac_exec_ext in '' $ac_executable_extensions; do
14104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14105 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
14106 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14115 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14116 if test -n "$ac_ct_OBJDUMP"; then
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
14118 $as_echo "$ac_ct_OBJDUMP" >&6; }
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14121 $as_echo "no
" >&6; }
14124 if test "x
$ac_ct_OBJDUMP" = x; then
14127 case $cross_compiling:$ac_tool_warned in
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14130 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14131 ac_tool_warned=yes ;;
14133 OBJDUMP=$ac_ct_OBJDUMP
14136 OBJDUMP="$ac_cv_prog_OBJDUMP"
14139 test -z "$OBJDUMP" && OBJDUMP=objdump
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
14150 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
14151 if ${lt_cv_deplibs_check_method+:} false; then :
14152 $as_echo_n "(cached
) " >&6
14154 lt_cv_file_magic_cmd='$MAGIC_CMD'
14155 lt_cv_file_magic_test_file=
14156 lt_cv_deplibs_check_method='unknown'
14157 # Need to set the preceding variable on all platforms that support
14158 # interlibrary dependencies.
14159 # 'none' -- dependencies not supported.
14160 # `unknown' -- same as none, but documents that we really don't know.
14161 # 'pass_all' -- all dependencies passed with no checks.
14162 # 'test_compile' -- check by making test program.
14163 # 'file_magic [[regex]]' -- check by looking for files in library path
14164 # which responds to the $file_magic_cmd with a given extended regex.
14165 # If you have `file' or equivalent on your system and you're not sure
14166 # whether `pass_all' will *always* work, you probably want this one.
14170 lt_cv_deplibs_check_method=pass_all
14174 lt_cv_deplibs_check_method=pass_all
14178 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14179 lt_cv_file_magic_cmd='/usr/bin/file -L'
14180 lt_cv_file_magic_test_file=/shlib/libc.so
14184 # func_win32_libid is a shell function defined in ltmain.sh
14185 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14186 lt_cv_file_magic_cmd='func_win32_libid'
14190 # Base MSYS/MinGW do not provide the 'file' command needed by
14191 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14192 # unless we find 'file', for example because we are cross-compiling.
14193 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14194 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
14195 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14196 lt_cv_file_magic_cmd='func_win32_libid'
14198 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14199 lt_cv_file_magic_cmd='$OBJDUMP -f'
14204 # use the weaker test based on 'objdump'. See mingw*.
14205 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14206 lt_cv_file_magic_cmd='$OBJDUMP -f'
14209 darwin* | rhapsody*)
14210 lt_cv_deplibs_check_method=pass_all
14213 freebsd* | dragonfly*)
14214 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14217 # Not sure whether the presence of OpenBSD here was a mistake.
14218 # Let's accept both of them until this is cleared up.
14219 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14220 lt_cv_file_magic_cmd=/usr/bin/file
14221 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14225 lt_cv_deplibs_check_method=pass_all
14230 lt_cv_deplibs_check_method=pass_all
14234 lt_cv_deplibs_check_method=pass_all
14237 hpux10.20* | hpux11*)
14238 lt_cv_file_magic_cmd=/usr/bin/file
14241 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14242 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14245 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]'
14246 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14249 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14250 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14256 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14257 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14260 irix5* | irix6* | nonstopux*)
14262 *-32|*"-32 ") libmagic=32-bit;;
14263 *-n32|*"-n32 ") libmagic=N32;;
14264 *-64|*"-64 ") libmagic=64-bit;;
14265 *) libmagic=never-match;;
14267 lt_cv_deplibs_check_method=pass_all
14270 # This must be Linux ELF.
14271 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14272 lt_cv_deplibs_check_method=pass_all
14276 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14284 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14285 lt_cv_file_magic_cmd=/usr/bin/file
14286 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14290 lt_cv_deplibs_check_method=pass_all
14294 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
14295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14301 osf3* | osf4* | osf5*)
14302 lt_cv_deplibs_check_method=pass_all
14306 lt_cv_deplibs_check_method=pass_all
14310 lt_cv_deplibs_check_method=pass_all
14313 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14314 lt_cv_deplibs_check_method=pass_all
14318 case $host_vendor in
14320 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]'
14321 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14324 lt_cv_deplibs_check_method=pass_all
14327 lt_cv_file_magic_cmd='/bin/file'
14328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14331 lt_cv_file_magic_cmd='/bin/file'
14332 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
14333 lt_cv_file_magic_test_file=/lib/libc.so
14336 lt_cv_deplibs_check_method=pass_all
14339 lt_cv_deplibs_check_method=pass_all
14345 lt_cv_deplibs_check_method=pass_all
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
14351 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14352 file_magic_cmd=$lt_cv_file_magic_cmd
14353 deplibs_check_method=$lt_cv_deplibs_check_method
14354 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14367 if test -n "$ac_tool_prefix"; then
14368 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14369 set dummy ${ac_tool_prefix}ar; ac_word=$2
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14371 $as_echo_n "checking
for $ac_word...
" >&6; }
14372 if ${ac_cv_prog_AR+:} false; then :
14373 $as_echo_n "(cached
) " >&6
14375 if test -n "$AR"; then
14376 ac_cv_prog_AR="$AR" # Let the user override the test.
14378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14379 for as_dir in $PATH
14382 test -z "$as_dir" && as_dir=.
14383 for ac_exec_ext in '' $ac_executable_extensions; do
14384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14385 ac_cv_prog_AR="${ac_tool_prefix}ar"
14386 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14396 if test -n "$AR"; then
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
14398 $as_echo "$AR" >&6; }
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14401 $as_echo "no
" >&6; }
14406 if test -z "$ac_cv_prog_AR"; then
14408 # Extract the first word of "ar", so it can be a program name with args.
14409 set dummy ar; ac_word=$2
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14411 $as_echo_n "checking
for $ac_word...
" >&6; }
14412 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14413 $as_echo_n "(cached
) " >&6
14415 if test -n "$ac_ct_AR"; then
14416 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14419 for as_dir in $PATH
14422 test -z "$as_dir" && as_dir=.
14423 for ac_exec_ext in '' $ac_executable_extensions; do
14424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14425 ac_cv_prog_ac_ct_AR="ar"
14426 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14435 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14436 if test -n "$ac_ct_AR"; then
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
14438 $as_echo "$ac_ct_AR" >&6; }
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14441 $as_echo "no
" >&6; }
14444 if test "x
$ac_ct_AR" = x; then
14447 case $cross_compiling:$ac_tool_warned in
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14450 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14451 ac_tool_warned=yes ;;
14456 AR="$ac_cv_prog_AR"
14459 test -z "$AR" && AR=ar
14460 test -z "$AR_FLAGS" && AR_FLAGS=cru
14472 if test -n "$ac_tool_prefix"; then
14473 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14474 set dummy ${ac_tool_prefix}strip; ac_word=$2
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14476 $as_echo_n "checking
for $ac_word...
" >&6; }
14477 if ${ac_cv_prog_STRIP+:} false; then :
14478 $as_echo_n "(cached
) " >&6
14480 if test -n "$STRIP"; then
14481 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14484 for as_dir in $PATH
14487 test -z "$as_dir" && as_dir=.
14488 for ac_exec_ext in '' $ac_executable_extensions; do
14489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14490 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14491 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14500 STRIP=$ac_cv_prog_STRIP
14501 if test -n "$STRIP"; then
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
14503 $as_echo "$STRIP" >&6; }
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14506 $as_echo "no
" >&6; }
14511 if test -z "$ac_cv_prog_STRIP"; then
14513 # Extract the first word of "strip
", so it can be a program name with args.
14514 set dummy strip; ac_word=$2
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14516 $as_echo_n "checking
for $ac_word...
" >&6; }
14517 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14518 $as_echo_n "(cached
) " >&6
14520 if test -n "$ac_ct_STRIP"; then
14521 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14524 for as_dir in $PATH
14527 test -z "$as_dir" && as_dir=.
14528 for ac_exec_ext in '' $ac_executable_extensions; do
14529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14530 ac_cv_prog_ac_ct_STRIP="strip
"
14531 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14540 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14541 if test -n "$ac_ct_STRIP"; then
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
14543 $as_echo "$ac_ct_STRIP" >&6; }
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14546 $as_echo "no
" >&6; }
14549 if test "x
$ac_ct_STRIP" = x; then
14552 case $cross_compiling:$ac_tool_warned in
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14555 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14556 ac_tool_warned=yes ;;
14561 STRIP="$ac_cv_prog_STRIP"
14564 test -z "$STRIP" && STRIP=:
14571 if test -n "$ac_tool_prefix"; then
14572 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14573 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14575 $as_echo_n "checking
for $ac_word...
" >&6; }
14576 if ${ac_cv_prog_RANLIB+:} false; then :
14577 $as_echo_n "(cached
) " >&6
14579 if test -n "$RANLIB"; then
14580 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14583 for as_dir in $PATH
14586 test -z "$as_dir" && as_dir=.
14587 for ac_exec_ext in '' $ac_executable_extensions; do
14588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14589 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
14590 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14599 RANLIB=$ac_cv_prog_RANLIB
14600 if test -n "$RANLIB"; then
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
14602 $as_echo "$RANLIB" >&6; }
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14605 $as_echo "no
" >&6; }
14610 if test -z "$ac_cv_prog_RANLIB"; then
14611 ac_ct_RANLIB=$RANLIB
14612 # Extract the first word of "ranlib
", so it can be a program name with args.
14613 set dummy ranlib; ac_word=$2
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14615 $as_echo_n "checking
for $ac_word...
" >&6; }
14616 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14617 $as_echo_n "(cached
) " >&6
14619 if test -n "$ac_ct_RANLIB"; then
14620 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14623 for as_dir in $PATH
14626 test -z "$as_dir" && as_dir=.
14627 for ac_exec_ext in '' $ac_executable_extensions; do
14628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14629 ac_cv_prog_ac_ct_RANLIB="ranlib
"
14630 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14639 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14640 if test -n "$ac_ct_RANLIB"; then
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
14642 $as_echo "$ac_ct_RANLIB" >&6; }
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14645 $as_echo "no
" >&6; }
14648 if test "x
$ac_ct_RANLIB" = x; then
14651 case $cross_compiling:$ac_tool_warned in
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14654 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14655 ac_tool_warned=yes ;;
14657 RANLIB=$ac_ct_RANLIB
14660 RANLIB="$ac_cv_prog_RANLIB"
14663 test -z "$RANLIB" && RANLIB=:
14670 # Determine commands to create old-style static archives.
14671 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14672 old_postinstall_cmds='chmod 644 $oldlib'
14673 old_postuninstall_cmds=
14675 if test -n "$RANLIB"; then
14678 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
14681 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
14684 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
14689 lock_old_archive_extraction=yes ;;
14691 lock_old_archive_extraction=no ;;
14732 # If no C compiler was specified, use CC.
14735 # If no C compiler flags were specified, use CFLAGS.
14736 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14738 # Allow CC to be a program name with arguments.
14742 # Check for command to grab the raw symbol name followed by C symbol from nm.
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
14744 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
14745 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14746 $as_echo_n "(cached
) " >&6
14749 # These are sane defaults that work on at least a few old systems.
14750 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14752 # Character class describing NM global symbol codes.
14753 symcode='[BCDEGRST]'
14755 # Regexp to match symbols that can be accessed directly from C.
14756 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14758 # Define system-specific variables.
14763 cygwin* | mingw* | pw32* | cegcc*)
14764 symcode='[ABCDGISTW]'
14767 if test "$host_cpu" = ia64; then
14768 symcode='[ABCDEGRST]'
14771 irix* | nonstopux*)
14772 symcode='[BCDEGRST]'
14775 symcode='[BCDEGQRST]'
14786 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14794 # If we're using GNU nm, then use its standard symbol codes.
14795 case `$NM -V 2>&1` in
14796 *GNU* | *'with BFD'*)
14797 symcode='[ABCDGIRSTW]' ;;
14800 # Transform an extracted symbol line into a proper C declaration.
14801 # Some systems (esp. on ia64) link data and code symbols differently,
14802 # so use this general approach.
14803 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14805 # Transform an extracted symbol line into symbol name and symbol address
14806 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14807 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'"
14809 # Handle CRLF in mingw tool chain
14813 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14817 # Try without a prefix underscore, then with it.
14818 for ac_symprfx in "" "_
"; do
14820 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14821 symxfrm="\\1 $ac_symprfx\\2 \\2"
14823 # Write the raw and C identifiers.
14824 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
14825 # Fake it for dumpbin and say T for any non-static function
14826 # and D for any global variable.
14827 # Also find C++ and __fastcall symbols from MSVC++,
14828 # which start with @ or ?.
14829 lt_cv_sys_global_symbol_pipe="$AWK '"\
14830 " {last_section=section; section=\$ 3};"\
14831 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14832 " \$ 0!~/External *\|/{next};"\
14833 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14834 " {if(hide[section]) next};"\
14835 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14836 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14837 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14838 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14839 " ' prfx
=^
$ac_symprfx"
14841 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14844 # Check to see that the pipe works correctly.
14848 cat > conftest.$ac_ext <<_LT_EOF
14853 void nm_test_func(void);
14854 void nm_test_func(void){}
14858 int main(){nm_test_var='a';nm_test_func();return(0);}
14861 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14862 (eval $ac_compile) 2>&5
14864 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14865 test $ac_status = 0; }; then
14866 # Now try to grab the symbols.
14868 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
14869 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14871 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14872 test $ac_status = 0; } && test -s "$nlist"; then
14873 # Try sorting and uniquifying the output.
14874 if sort "$nlist" | uniq > "$nlist"T; then
14875 mv -f "$nlist"T "$nlist"
14880 # Make sure that we snagged all the symbols we need.
14881 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14882 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14883 cat <<_LT_EOF > conftest.$ac_ext
14889 # Now generate the symbol file.
14890 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14892 cat <<_LT_EOF >> conftest.$ac_ext
14894 /* The mapping between symbol names and symbols. */
14899 lt__PROGRAM__LTX_preloaded_symbols[] =
14901 { "@PROGRAM@
", (void *) 0 },
14903 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14904 cat <<\_LT_EOF >> conftest.$ac_ext
14908 /* This works around a problem in FreeBSD linker */
14909 #ifdef FREEBSD_WORKAROUND
14910 static const void *lt_preloaded_setup() {
14911 return lt__PROGRAM__LTX_preloaded_symbols;
14919 # Now try linking the two files.
14920 mv conftest.$ac_objext conftstm.$ac_objext
14921 lt_save_LIBS="$LIBS"
14922 lt_save_CFLAGS="$CFLAGS"
14923 LIBS="conftstm.
$ac_objext"
14924 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14925 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14926 (eval $ac_link) 2>&5
14928 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14929 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14932 LIBS="$lt_save_LIBS"
14933 CFLAGS="$lt_save_CFLAGS"
14935 echo "cannot
find nm_test_func
in $nlist" >&5
14938 echo "cannot
find nm_test_var
in $nlist" >&5
14941 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14944 echo "$progname: failed program was
:" >&5
14945 cat conftest.$ac_ext >&5
14947 rm -rf conftest* conftst*
14949 # Do not use the global_symbol_pipe unless it works.
14950 if test "$pipe_works" = yes; then
14953 lt_cv_sys_global_symbol_pipe=
14959 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14960 lt_cv_sys_global_symbol_to_cdecl=
14962 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14964 $as_echo "failed
" >&6; }
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14967 $as_echo "ok
" >&6; }
14991 # Check whether --enable-libtool-lock was given.
14992 if test "${enable_libtool_lock+set}" = set; then :
14993 enableval=$enable_libtool_lock;
14996 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14998 # Some flags need to be propagated to the compiler or linker for good
15002 # Find out which ABI we are using.
15003 echo 'int i;' > conftest.$ac_ext
15004 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15005 (eval $ac_compile) 2>&5
15007 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15008 test $ac_status = 0; }; then
15009 case `/usr/bin/file conftest.$ac_objext` in
15011 HPUX_IA64_MODE="32"
15014 HPUX_IA64_MODE="64"
15021 # Find out which ABI we are using.
15022 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
15023 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15024 (eval $ac_compile) 2>&5
15026 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15027 test $ac_status = 0; }; then
15028 if test "$lt_cv_prog_gnu_ld" = yes; then
15029 case `/usr/bin/file conftest.$ac_objext` in
15031 LD="${LD-ld} -melf32bsmip"
15034 LD="${LD-ld} -melf32bmipn32"
15037 LD="${LD-ld} -melf64bmip"
15041 case `/usr/bin/file conftest.$ac_objext` in
15057 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15058 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15059 # Find out which ABI we are using.
15060 echo 'int i;' > conftest.$ac_ext
15061 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15062 (eval $ac_compile) 2>&5
15064 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15065 test $ac_status = 0; }; then
15066 case `/usr/bin/file conftest.o` in
15069 x86_64-*kfreebsd*-gnu)
15070 LD="${LD-ld} -m elf_i386_fbsd
"
15073 case `/usr/bin/file conftest.o` in
15075 LD="${LD-ld} -m elf32_x86_64
"
15078 LD="${LD-ld} -m elf_i386
"
15082 powerpc64le-*linux*)
15083 LD="${LD-ld} -m elf32lppclinux
"
15086 LD="${LD-ld} -m elf32ppclinux
"
15089 LD="${LD-ld} -m elf_s390
"
15092 LD="${LD-ld} -m elf32_sparc
"
15098 x86_64-*kfreebsd*-gnu)
15099 LD="${LD-ld} -m elf_x86_64_fbsd
"
15102 LD="${LD-ld} -m elf_x86_64
"
15105 LD="${LD-ld} -m elf64lppc
"
15108 LD="${LD-ld} -m elf64ppc
"
15110 s390*-*linux*|s390*-*tpf*)
15111 LD="${LD-ld} -m elf64_s390
"
15114 LD="${LD-ld} -m elf64_sparc
"
15124 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15125 SAVE_CFLAGS="$CFLAGS"
15126 CFLAGS="$CFLAGS -belf"
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
15128 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
15129 if ${lt_cv_cc_needs_belf+:} false; then :
15130 $as_echo_n "(cached
) " >&6
15133 ac_cpp='$CPP $CPPFLAGS'
15134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15149 if ac_fn_c_try_link "$LINENO"; then :
15150 lt_cv_cc_needs_belf=yes
15152 lt_cv_cc_needs_belf=no
15154 rm -f core conftest.err conftest.$ac_objext \
15155 conftest$ac_exeext conftest.$ac_ext
15157 ac_cpp='$CPP $CPPFLAGS'
15158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
15164 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15165 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15166 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15167 CFLAGS="$SAVE_CFLAGS"
15171 # Find out which ABI we are using.
15172 echo 'int i;' > conftest.$ac_ext
15173 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15174 (eval $ac_compile) 2>&5
15176 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
15177 test $ac_status = 0; }; then
15178 case `/usr/bin/file conftest.o` in
15180 case $lt_cv_prog_gnu_ld in
15181 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
15183 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15195 need_locks="$enable_libtool_lock"
15199 rhapsody* | darwin*)
15200 if test -n "$ac_tool_prefix"; then
15201 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
15202 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15204 $as_echo_n "checking
for $ac_word...
" >&6; }
15205 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15206 $as_echo_n "(cached
) " >&6
15208 if test -n "$DSYMUTIL"; then
15209 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15212 for as_dir in $PATH
15215 test -z "$as_dir" && as_dir=.
15216 for ac_exec_ext in '' $ac_executable_extensions; do
15217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15218 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
15219 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15228 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15229 if test -n "$DSYMUTIL"; then
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
15231 $as_echo "$DSYMUTIL" >&6; }
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15234 $as_echo "no
" >&6; }
15239 if test -z "$ac_cv_prog_DSYMUTIL"; then
15240 ac_ct_DSYMUTIL=$DSYMUTIL
15241 # Extract the first word of "dsymutil
", so it can be a program name with args.
15242 set dummy dsymutil; ac_word=$2
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15244 $as_echo_n "checking
for $ac_word...
" >&6; }
15245 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15246 $as_echo_n "(cached
) " >&6
15248 if test -n "$ac_ct_DSYMUTIL"; then
15249 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15252 for as_dir in $PATH
15255 test -z "$as_dir" && as_dir=.
15256 for ac_exec_ext in '' $ac_executable_extensions; do
15257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15258 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
15259 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15268 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15269 if test -n "$ac_ct_DSYMUTIL"; then
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
15271 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15274 $as_echo "no
" >&6; }
15277 if test "x
$ac_ct_DSYMUTIL" = x; then
15280 case $cross_compiling:$ac_tool_warned in
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15283 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15284 ac_tool_warned=yes ;;
15286 DSYMUTIL=$ac_ct_DSYMUTIL
15289 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15292 if test -n "$ac_tool_prefix"; then
15293 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
15294 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15296 $as_echo_n "checking
for $ac_word...
" >&6; }
15297 if ${ac_cv_prog_NMEDIT+:} false; then :
15298 $as_echo_n "(cached
) " >&6
15300 if test -n "$NMEDIT"; then
15301 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15304 for as_dir in $PATH
15307 test -z "$as_dir" && as_dir=.
15308 for ac_exec_ext in '' $ac_executable_extensions; do
15309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15310 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
15311 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15320 NMEDIT=$ac_cv_prog_NMEDIT
15321 if test -n "$NMEDIT"; then
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
15323 $as_echo "$NMEDIT" >&6; }
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15326 $as_echo "no
" >&6; }
15331 if test -z "$ac_cv_prog_NMEDIT"; then
15332 ac_ct_NMEDIT=$NMEDIT
15333 # Extract the first word of "nmedit
", so it can be a program name with args.
15334 set dummy nmedit; ac_word=$2
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15336 $as_echo_n "checking
for $ac_word...
" >&6; }
15337 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15338 $as_echo_n "(cached
) " >&6
15340 if test -n "$ac_ct_NMEDIT"; then
15341 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15344 for as_dir in $PATH
15347 test -z "$as_dir" && as_dir=.
15348 for ac_exec_ext in '' $ac_executable_extensions; do
15349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15350 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
15351 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15360 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15361 if test -n "$ac_ct_NMEDIT"; then
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
15363 $as_echo "$ac_ct_NMEDIT" >&6; }
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15366 $as_echo "no
" >&6; }
15369 if test "x
$ac_ct_NMEDIT" = x; then
15372 case $cross_compiling:$ac_tool_warned in
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15375 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15376 ac_tool_warned=yes ;;
15378 NMEDIT=$ac_ct_NMEDIT
15381 NMEDIT="$ac_cv_prog_NMEDIT"
15384 if test -n "$ac_tool_prefix"; then
15385 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
15386 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15388 $as_echo_n "checking
for $ac_word...
" >&6; }
15389 if ${ac_cv_prog_LIPO+:} false; then :
15390 $as_echo_n "(cached
) " >&6
15392 if test -n "$LIPO"; then
15393 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15396 for as_dir in $PATH
15399 test -z "$as_dir" && as_dir=.
15400 for ac_exec_ext in '' $ac_executable_extensions; do
15401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15402 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
15403 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15412 LIPO=$ac_cv_prog_LIPO
15413 if test -n "$LIPO"; then
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
15415 $as_echo "$LIPO" >&6; }
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15418 $as_echo "no
" >&6; }
15423 if test -z "$ac_cv_prog_LIPO"; then
15425 # Extract the first word of "lipo
", so it can be a program name with args.
15426 set dummy lipo; ac_word=$2
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15428 $as_echo_n "checking
for $ac_word...
" >&6; }
15429 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15430 $as_echo_n "(cached
) " >&6
15432 if test -n "$ac_ct_LIPO"; then
15433 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15436 for as_dir in $PATH
15439 test -z "$as_dir" && as_dir=.
15440 for ac_exec_ext in '' $ac_executable_extensions; do
15441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15442 ac_cv_prog_ac_ct_LIPO="lipo
"
15443 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15452 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15453 if test -n "$ac_ct_LIPO"; then
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
15455 $as_echo "$ac_ct_LIPO" >&6; }
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15458 $as_echo "no
" >&6; }
15461 if test "x
$ac_ct_LIPO" = x; then
15464 case $cross_compiling:$ac_tool_warned in
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15467 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15468 ac_tool_warned=yes ;;
15473 LIPO="$ac_cv_prog_LIPO"
15476 if test -n "$ac_tool_prefix"; then
15477 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
15478 set dummy ${ac_tool_prefix}otool; ac_word=$2
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15480 $as_echo_n "checking
for $ac_word...
" >&6; }
15481 if ${ac_cv_prog_OTOOL+:} false; then :
15482 $as_echo_n "(cached
) " >&6
15484 if test -n "$OTOOL"; then
15485 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15488 for as_dir in $PATH
15491 test -z "$as_dir" && as_dir=.
15492 for ac_exec_ext in '' $ac_executable_extensions; do
15493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15494 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
15495 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15504 OTOOL=$ac_cv_prog_OTOOL
15505 if test -n "$OTOOL"; then
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
15507 $as_echo "$OTOOL" >&6; }
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15510 $as_echo "no
" >&6; }
15515 if test -z "$ac_cv_prog_OTOOL"; then
15517 # Extract the first word of "otool
", so it can be a program name with args.
15518 set dummy otool; ac_word=$2
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15520 $as_echo_n "checking
for $ac_word...
" >&6; }
15521 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15522 $as_echo_n "(cached
) " >&6
15524 if test -n "$ac_ct_OTOOL"; then
15525 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15528 for as_dir in $PATH
15531 test -z "$as_dir" && as_dir=.
15532 for ac_exec_ext in '' $ac_executable_extensions; do
15533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15534 ac_cv_prog_ac_ct_OTOOL="otool
"
15535 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15544 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15545 if test -n "$ac_ct_OTOOL"; then
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
15547 $as_echo "$ac_ct_OTOOL" >&6; }
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15550 $as_echo "no
" >&6; }
15553 if test "x
$ac_ct_OTOOL" = x; then
15556 case $cross_compiling:$ac_tool_warned in
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15559 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15560 ac_tool_warned=yes ;;
15565 OTOOL="$ac_cv_prog_OTOOL"
15568 if test -n "$ac_tool_prefix"; then
15569 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
15570 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15572 $as_echo_n "checking
for $ac_word...
" >&6; }
15573 if ${ac_cv_prog_OTOOL64+:} false; then :
15574 $as_echo_n "(cached
) " >&6
15576 if test -n "$OTOOL64"; then
15577 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15580 for as_dir in $PATH
15583 test -z "$as_dir" && as_dir=.
15584 for ac_exec_ext in '' $ac_executable_extensions; do
15585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15586 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
15587 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15596 OTOOL64=$ac_cv_prog_OTOOL64
15597 if test -n "$OTOOL64"; then
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
15599 $as_echo "$OTOOL64" >&6; }
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15602 $as_echo "no
" >&6; }
15607 if test -z "$ac_cv_prog_OTOOL64"; then
15608 ac_ct_OTOOL64=$OTOOL64
15609 # Extract the first word of "otool64
", so it can be a program name with args.
15610 set dummy otool64; ac_word=$2
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15612 $as_echo_n "checking
for $ac_word...
" >&6; }
15613 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15614 $as_echo_n "(cached
) " >&6
15616 if test -n "$ac_ct_OTOOL64"; then
15617 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15620 for as_dir in $PATH
15623 test -z "$as_dir" && as_dir=.
15624 for ac_exec_ext in '' $ac_executable_extensions; do
15625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15626 ac_cv_prog_ac_ct_OTOOL64="otool64
"
15627 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15636 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15637 if test -n "$ac_ct_OTOOL64"; then
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
15639 $as_echo "$ac_ct_OTOOL64" >&6; }
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15642 $as_echo "no
" >&6; }
15645 if test "x
$ac_ct_OTOOL64" = x; then
15648 case $cross_compiling:$ac_tool_warned in
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15651 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15652 ac_tool_warned=yes ;;
15654 OTOOL64=$ac_ct_OTOOL64
15657 OTOOL64="$ac_cv_prog_OTOOL64"
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
15687 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
15688 if ${lt_cv_apple_cc_single_mod+:} false; then :
15689 $as_echo_n "(cached
) " >&6
15691 lt_cv_apple_cc_single_mod=no
15692 if test -z "${LT_MULTI_MODULE}"; then
15693 # By default we will add the -single_module flag. You can override
15694 # by either setting the environment variable LT_MULTI_MODULE
15695 # non-empty at configure time, or by adding -multi_module to the
15697 rm -rf libconftest.dylib*
15698 echo "int foo
(void
){return 1;}" > conftest.c
15699 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15700 -dynamiclib -Wl,-single_module conftest.c
" >&5
15701 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15702 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15704 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15705 lt_cv_apple_cc_single_mod=yes
15707 cat conftest.err >&5
15709 rm -rf libconftest.dylib*
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
15714 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
15716 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
15717 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15718 $as_echo_n "(cached
) " >&6
15720 lt_cv_ld_exported_symbols_list=no
15721 save_LDFLAGS=$LDFLAGS
15722 echo "_main
" > conftest.sym
15723 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
15724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15725 /* end confdefs.h. */
15735 if ac_fn_c_try_link "$LINENO"; then :
15736 lt_cv_ld_exported_symbols_list=yes
15738 lt_cv_ld_exported_symbols_list=no
15740 rm -f core conftest.err conftest.$ac_objext \
15741 conftest$ac_exeext conftest.$ac_ext
15742 LDFLAGS="$save_LDFLAGS"
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
15746 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
15748 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
15749 if ${lt_cv_ld_force_load+:} false; then :
15750 $as_echo_n "(cached
) " >&6
15752 lt_cv_ld_force_load=no
15753 cat > conftest.c << _LT_EOF
15754 int forced_loaded() { return 2;}
15756 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
15757 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15758 echo "$AR cru libconftest.a conftest.o
" >&5
15759 $AR cru libconftest.a conftest.o 2>&5
15760 cat > conftest.c << _LT_EOF
15761 int main() { return 0;}
15763 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
15764 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15766 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15767 lt_cv_ld_force_load=yes
15769 cat conftest.err >&5
15771 rm -f conftest.err libconftest.a conftest conftest.c
15772 rm -rf conftest.dSYM
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
15776 $as_echo "$lt_cv_ld_force_load" >&6; }
15777 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
15778 # build without first building modern cctools / linker.
15779 case $host_cpu-$host_os in
15780 *-rhapsody* | *-darwin1.[012])
15781 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15783 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15785 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
15786 # deployment target is forced to an earlier version.
15787 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
15788 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
15791 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15798 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15799 _lt_dar_single_mod='$single_module'
15801 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15802 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15804 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15806 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
15807 _lt_dsymutil='~$DSYMUTIL $lib || :'
15815 for ac_header in dlfcn.h
15817 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
15818 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
15819 cat >>confdefs.h <<_ACEOF
15820 #define HAVE_DLFCN_H 1
15837 enable_win32_dll=no
15840 # Check whether --enable-shared was given.
15841 if test "${enable_shared+set}" = set; then :
15842 enableval=$enable_shared; p=${PACKAGE-default}
15844 yes) enable_shared=yes ;;
15845 no) enable_shared=no ;;
15848 # Look at the argument we got. We use all the common list separators.
15849 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15850 for pkg in $enableval; do
15852 if test "X
$pkg" = "X
$p"; then
15871 # Check whether --enable-static was given.
15872 if test "${enable_static+set}" = set; then :
15873 enableval=$enable_static; p=${PACKAGE-default}
15875 yes) enable_static=yes ;;
15876 no) enable_static=no ;;
15879 # Look at the argument we got. We use all the common list separators.
15880 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15881 for pkg in $enableval; do
15883 if test "X
$pkg" = "X
$p"; then
15903 # Check whether --with-pic was given.
15904 if test "${with_pic+set}" = set; then :
15905 withval=$with_pic; pic_mode="$withval"
15911 test -z "$pic_mode" && pic_mode=default
15919 # Check whether --enable-fast-install was given.
15920 if test "${enable_fast_install+set}" = set; then :
15921 enableval=$enable_fast_install; p=${PACKAGE-default}
15923 yes) enable_fast_install=yes ;;
15924 no) enable_fast_install=no ;;
15926 enable_fast_install=no
15927 # Look at the argument we got. We use all the common list separators.
15928 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15929 for pkg in $enableval; do
15931 if test "X
$pkg" = "X
$p"; then
15932 enable_fast_install=yes
15939 enable_fast_install=yes
15952 # This can be used to rebuild libtool when needed
15953 LIBTOOL_DEPS="$ltmain"
15955 # Always use our own libtool.
15956 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15983 test -z "$LN_S" && LN_S="ln -s"
15998 if test -n "${ZSH_VERSION+set}" ; then
15999 setopt NO_GLOB_SUBST
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
16003 $as_echo_n "checking
for objdir...
" >&6; }
16004 if ${lt_cv_objdir+:} false; then :
16005 $as_echo_n "(cached
) " >&6
16007 rm -f .libs 2>/dev/null
16008 mkdir .libs 2>/dev/null
16009 if test -d .libs; then
16012 # MS-DOS does not allow filenames that begin with a dot.
16015 rmdir .libs 2>/dev/null
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
16018 $as_echo "$lt_cv_objdir" >&6; }
16019 objdir=$lt_cv_objdir
16025 cat >>confdefs.h <<_ACEOF
16026 #define LT_OBJDIR "$lt_cv_objdir/"
16034 # AIX sometimes has problems with the GCC collect2 program. For some
16035 # reason, if we set the COLLECT_NAMES environment variable, the problems
16036 # vanish in a puff of smoke.
16037 if test "X
${COLLECT_NAMES+set}" != Xset; then
16039 export COLLECT_NAMES
16044 # Global variables:
16046 can_build_shared=yes
16048 # All known linkers require a `.a' archive for static linking (except MSVC,
16049 # which needs '.lib').
16052 with_gnu_ld="$lt_cv_prog_gnu_ld"
16055 old_CFLAGS="$CFLAGS"
16057 # Set sane defaults for various variables
16058 test -z "$CC" && CC=cc
16059 test -z "$LTCC" && LTCC=$CC
16060 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16061 test -z "$LD" && LD=ld
16062 test -z "$ac_objext" && ac_objext=o
16064 for cc_temp in $compiler""; do
16066 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16067 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16072 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
16075 # Only perform the check for file, if the check method requires it
16076 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16077 case $deplibs_check_method in
16079 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
16081 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
16082 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16083 $as_echo_n "(cached
) " >&6
16087 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16090 lt_save_MAGIC_CMD="$MAGIC_CMD"
16091 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16092 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16093 for ac_dir in $ac_dummy; do
16095 test -z "$ac_dir" && ac_dir=.
16096 if test -f $ac_dir/${ac_tool_prefix}file; then
16097 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16098 if test -n "$file_magic_test_file"; then
16099 case $deplibs_check_method in
16101 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16102 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16103 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16104 $EGREP "$file_magic_regex" > /dev/null; then
16109 *** Warning: the command libtool uses to detect shared libraries,
16110 *** $file_magic_cmd, produces output that libtool cannot recognize.
16111 *** The result is that libtool may fail to recognize shared libraries
16112 *** as such. This will affect the creation of libtool libraries that
16113 *** depend on shared libraries, but programs linked with such libtool
16114 *** libraries will work regardless of this problem. Nevertheless, you
16115 *** may want to report the problem to your system manager and/or to
16116 *** bug-libtool@gnu.org
16126 MAGIC_CMD="$lt_save_MAGIC_CMD"
16131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16132 if test -n "$MAGIC_CMD"; then
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16134 $as_echo "$MAGIC_CMD" >&6; }
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16137 $as_echo "no
" >&6; }
16144 if test -z "$lt_cv_path_MAGIC_CMD"; then
16145 if test -n "$ac_tool_prefix"; then
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
16147 $as_echo_n "checking
for file...
" >&6; }
16148 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16149 $as_echo_n "(cached
) " >&6
16153 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16156 lt_save_MAGIC_CMD="$MAGIC_CMD"
16157 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16158 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
16159 for ac_dir in $ac_dummy; do
16161 test -z "$ac_dir" && ac_dir=.
16162 if test -f $ac_dir/file; then
16163 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16164 if test -n "$file_magic_test_file"; then
16165 case $deplibs_check_method in
16167 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
16168 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16169 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16170 $EGREP "$file_magic_regex" > /dev/null; then
16175 *** Warning: the command libtool uses to detect shared libraries,
16176 *** $file_magic_cmd, produces output that libtool cannot recognize.
16177 *** The result is that libtool may fail to recognize shared libraries
16178 *** as such. This will affect the creation of libtool libraries that
16179 *** depend on shared libraries, but programs linked with such libtool
16180 *** libraries will work regardless of this problem. Nevertheless, you
16181 *** may want to report the problem to your system manager and/or to
16182 *** bug-libtool@gnu.org
16192 MAGIC_CMD="$lt_save_MAGIC_CMD"
16197 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16198 if test -n "$MAGIC_CMD"; then
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
16200 $as_echo "$MAGIC_CMD" >&6; }
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16203 $as_echo "no
" >&6; }
16216 # Use C for the default configuration in the libtool script
16220 ac_cpp='$CPP $CPPFLAGS'
16221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16226 # Source file extension for C test sources.
16229 # Object file extension for compiled C test sources.
16233 # Code to be used in simple compile tests
16234 lt_simple_compile_test_code="int some_variable
= 0;"
16236 # Code to be used in simple link tests
16237 lt_simple_link_test_code='int main(){return(0);}'
16245 # If no C compiler was specified, use CC.
16248 # If no C compiler flags were specified, use CFLAGS.
16249 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16251 # Allow CC to be a program name with arguments.
16254 # Save the default compiler, since it gets overwritten when the other
16255 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16256 compiler_DEFAULT=$CC
16258 # save warnings/boilerplate of simple test code
16259 ac_outfile=conftest.$ac_objext
16260 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16261 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16262 _lt_compiler_boilerplate=`cat conftest.err`
16265 ac_outfile=conftest.$ac_objext
16266 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16267 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16268 _lt_linker_boilerplate=`cat conftest.err`
16273 ## There is no encapsulation within the following macros, do not change
16274 ## the running order or otherwise move them around unless you know exactly
16275 ## what you are doing...
16276 if test -n "$compiler"; then
16278 lt_prog_compiler_no_builtin_flag=
16280 if test "$GCC" = yes; then
16281 case $cc_basename in
16283 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16285 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
16289 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
16290 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16291 $as_echo_n "(cached
) " >&6
16293 lt_cv_prog_compiler_rtti_exceptions=no
16294 ac_outfile=conftest.$ac_objext
16295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16296 lt_compiler_flag="-fno-rtti -fno-exceptions"
16297 # Insert the option either (1) after the last *FLAGS variable, or
16298 # (2) before a word containing "conftest.
", or (3) at the end.
16299 # Note that $ac_compile itself does not contain backslashes and begins
16300 # with a dollar sign (not a hyphen), so the echo should work correctly.
16301 # The option is referenced via a variable to avoid confusing sed.
16302 lt_compile=`echo "$ac_compile" | $SED \
16303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16305 -e 's:$: $lt_compiler_flag:'`
16306 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16307 (eval "$lt_compile" 2>conftest.err)
16309 cat conftest.err >&5
16310 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16311 if (exit $ac_status) && test -s "$ac_outfile"; then
16312 # The compiler can only warn and ignore the option if not recognized
16313 # So say no if there are warnings other than the usual output.
16314 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16316 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16317 lt_cv_prog_compiler_rtti_exceptions=yes
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
16324 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16326 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16327 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16339 lt_prog_compiler_wl=
16340 lt_prog_compiler_pic=
16341 lt_prog_compiler_static=
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
16344 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
16346 if test "$GCC" = yes; then
16347 lt_prog_compiler_wl='-Wl,'
16348 lt_prog_compiler_static='-static'
16352 # All AIX code is PIC.
16353 if test "$host_cpu" = ia64; then
16354 # AIX 5 now supports IA64 processor
16355 lt_prog_compiler_static='-Bstatic'
16357 lt_prog_compiler_pic='-fPIC'
16363 # see comment about AmigaOS4 .so support
16364 lt_prog_compiler_pic='-fPIC'
16367 # FIXME: we need at least 68020 code to build shared libraries, but
16368 # adding the `-m68020' flag to GCC prevents building anything better,
16370 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16375 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16376 # PIC is the default for these OSes.
16379 mingw* | cygwin* | pw32* | os2* | cegcc*)
16380 # This hack is so that the source file can tell whether it is being
16381 # built for inclusion in a dll (and should export symbols for example).
16382 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16383 # (--disable-auto-import) libraries
16384 lt_prog_compiler_pic='-DDLL_EXPORT'
16387 darwin* | rhapsody*)
16388 # PIC is the default on this platform
16389 # Common symbols not allowed in MH_DYLIB files
16390 lt_prog_compiler_pic='-fno-common'
16394 # PIC is the default for Haiku.
16395 # The "-static" flag exists, but is broken.
16396 lt_prog_compiler_static=
16400 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16401 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16402 # sets the default TLS model and affects inlining.
16408 lt_prog_compiler_pic='-fPIC'
16414 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16415 # Instead, we relocate shared libraries at runtime.
16419 # Just because we use GCC doesn't mean we suddenly get shared libraries
16420 # on systems that don't support them.
16421 lt_prog_compiler_can_build_shared=no
16426 # QNX uses GNU C++, but need to define -shared option too, otherwise
16427 # it will coredump.
16428 lt_prog_compiler_pic='-fPIC -shared'
16432 if test -d /usr/nec; then
16433 lt_prog_compiler_pic=-Kconform_pic
16438 lt_prog_compiler_pic='-fPIC'
16442 case $cc_basename in
16443 nvcc*) # Cuda Compiler Driver 2.2
16444 lt_prog_compiler_wl='-Xlinker '
16445 lt_prog_compiler_pic='-Xcompiler -fPIC'
16449 # PORTME Check for flag to pass linker flags through the system compiler.
16452 lt_prog_compiler_wl='-Wl,'
16453 if test "$host_cpu" = ia64; then
16454 # AIX 5 now supports IA64 processor
16455 lt_prog_compiler_static='-Bstatic'
16457 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16461 mingw* | cygwin* | pw32* | os2* | cegcc*)
16462 # This hack is so that the source file can tell whether it is being
16463 # built for inclusion in a dll (and should export symbols for example).
16464 lt_prog_compiler_pic='-DDLL_EXPORT'
16467 hpux9* | hpux10* | hpux11*)
16468 lt_prog_compiler_wl='-Wl,'
16469 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16470 # not for PA HP-UX.
16476 lt_prog_compiler_pic='+Z'
16479 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16480 lt_prog_compiler_static='${wl}-a ${wl}archive'
16483 irix5* | irix6* | nonstopux*)
16484 lt_prog_compiler_wl='-Wl,'
16485 # PIC (with -KPIC) is the default.
16486 lt_prog_compiler_static='-non_shared'
16489 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16490 case $cc_basename in
16491 # old Intel for x86_64 which still supported -KPIC.
16493 lt_prog_compiler_wl='-Wl,'
16494 lt_prog_compiler_pic='-KPIC'
16495 lt_prog_compiler_static='-static'
16497 # icc used to be incompatible with GCC.
16498 # ICC 10 doesn't accept -KPIC any more.
16500 lt_prog_compiler_wl='-Wl,'
16501 lt_prog_compiler_pic='-fPIC'
16502 lt_prog_compiler_static='-static'
16504 # Lahey Fortran 8.1.
16506 lt_prog_compiler_wl='-Wl,'
16507 lt_prog_compiler_pic='--shared'
16508 lt_prog_compiler_static='--static'
16510 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16511 # Portland Group compilers (*not* the Pentium gcc compiler,
16512 # which looks to be a dead project)
16513 lt_prog_compiler_wl='-Wl,'
16514 lt_prog_compiler_pic='-fpic'
16515 lt_prog_compiler_static='-Bstatic'
16518 lt_prog_compiler_wl='-Wl,'
16519 # All Alpha code is PIC.
16520 lt_prog_compiler_static='-non_shared'
16522 xl* | bgxl* | bgf* | mpixl*)
16523 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16524 lt_prog_compiler_wl='-Wl,'
16525 lt_prog_compiler_pic='-qpic'
16526 lt_prog_compiler_static='-qstaticlink'
16529 case `$CC -V 2>&1 | sed 5q` in
16530 *Sun\ F* | *Sun*Fortran*)
16531 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16532 lt_prog_compiler_pic='-KPIC'
16533 lt_prog_compiler_static='-Bstatic'
16534 lt_prog_compiler_wl=''
16538 lt_prog_compiler_pic='-KPIC'
16539 lt_prog_compiler_static='-Bstatic'
16540 lt_prog_compiler_wl='-Wl,'
16548 lt_prog_compiler_pic='-KPIC'
16549 lt_prog_compiler_static='-Bstatic'
16553 # QNX uses GNU C++, but need to define -shared option too, otherwise
16554 # it will coredump.
16555 lt_prog_compiler_pic='-fPIC -shared'
16558 osf3* | osf4* | osf5*)
16559 lt_prog_compiler_wl='-Wl,'
16560 # All OSF/1 code is PIC.
16561 lt_prog_compiler_static='-non_shared'
16565 lt_prog_compiler_static='-non_shared'
16569 lt_prog_compiler_pic='-KPIC'
16570 lt_prog_compiler_static='-Bstatic'
16571 case $cc_basename in
16572 f77* | f90* | f95*)
16573 lt_prog_compiler_wl='-Qoption ld ';;
16575 lt_prog_compiler_wl='-Wl,';;
16580 lt_prog_compiler_wl='-Qoption ld '
16581 lt_prog_compiler_pic='-PIC'
16582 lt_prog_compiler_static='-Bstatic'
16585 sysv4 | sysv4.2uw2* | sysv4.3*)
16586 lt_prog_compiler_wl='-Wl,'
16587 lt_prog_compiler_pic='-KPIC'
16588 lt_prog_compiler_static='-Bstatic'
16592 if test -d /usr/nec ;then
16593 lt_prog_compiler_pic='-Kconform_pic'
16594 lt_prog_compiler_static='-Bstatic'
16598 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16599 lt_prog_compiler_wl='-Wl,'
16600 lt_prog_compiler_pic='-KPIC'
16601 lt_prog_compiler_static='-Bstatic'
16605 lt_prog_compiler_wl='-Wl,'
16606 lt_prog_compiler_can_build_shared=no
16610 lt_prog_compiler_pic='-pic'
16611 lt_prog_compiler_static='-Bstatic'
16615 lt_prog_compiler_can_build_shared=no
16621 # For platforms which do not support PIC, -DPIC is meaningless:
16623 lt_prog_compiler_pic=
16626 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
16630 $as_echo "$lt_prog_compiler_pic" >&6; }
16638 # Check to make sure the PIC flag actually works.
16640 if test -n "$lt_prog_compiler_pic"; then
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
16642 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
16643 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16644 $as_echo_n "(cached
) " >&6
16646 lt_cv_prog_compiler_pic_works=no
16647 ac_outfile=conftest.$ac_objext
16648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16649 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16650 # Insert the option either (1) after the last *FLAGS variable, or
16651 # (2) before a word containing "conftest.
", or (3) at the end.
16652 # Note that $ac_compile itself does not contain backslashes and begins
16653 # with a dollar sign (not a hyphen), so the echo should work correctly.
16654 # The option is referenced via a variable to avoid confusing sed.
16655 lt_compile=`echo "$ac_compile" | $SED \
16656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16658 -e 's:$: $lt_compiler_flag:'`
16659 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16660 (eval "$lt_compile" 2>conftest.err)
16662 cat conftest.err >&5
16663 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16664 if (exit $ac_status) && test -s "$ac_outfile"; then
16665 # The compiler can only warn and ignore the option if not recognized
16666 # So say no if there are warnings other than the usual output.
16667 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16669 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16670 lt_cv_prog_compiler_pic_works=yes
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
16677 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16679 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16680 case $lt_prog_compiler_pic in
16682 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16685 lt_prog_compiler_pic=
16686 lt_prog_compiler_can_build_shared=no
16697 # Check to make sure the static flag actually works.
16699 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
16701 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
16702 if ${lt_cv_prog_compiler_static_works+:} false; then :
16703 $as_echo_n "(cached
) " >&6
16705 lt_cv_prog_compiler_static_works=no
16706 save_LDFLAGS="$LDFLAGS"
16707 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16708 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16709 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16710 # The linker can only warn and ignore the option if not recognized
16711 # So say no if there are warnings
16712 if test -s conftest.err; then
16713 # Append any errors to the config.log.
16714 cat conftest.err 1>&5
16715 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16717 if diff conftest.exp conftest.er2 >/dev/null; then
16718 lt_cv_prog_compiler_static_works=yes
16721 lt_cv_prog_compiler_static_works=yes
16725 LDFLAGS="$save_LDFLAGS"
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
16729 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16731 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16734 lt_prog_compiler_static=
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16744 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16745 if ${lt_cv_prog_compiler_c_o+:} false; then :
16746 $as_echo_n "(cached
) " >&6
16748 lt_cv_prog_compiler_c_o=no
16749 $RM -r conftest 2>/dev/null
16753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16755 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16756 # Insert the option either (1) after the last *FLAGS variable, or
16757 # (2) before a word containing "conftest.
", or (3) at the end.
16758 # Note that $ac_compile itself does not contain backslashes and begins
16759 # with a dollar sign (not a hyphen), so the echo should work correctly.
16760 lt_compile=`echo "$ac_compile" | $SED \
16761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16763 -e 's:$: $lt_compiler_flag:'`
16764 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16765 (eval "$lt_compile" 2>out/conftest.err)
16767 cat out/conftest.err >&5
16768 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16769 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16771 # The compiler can only warn and ignore the option if not recognized
16772 # So say no if there are warnings
16773 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16774 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16775 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16776 lt_cv_prog_compiler_c_o=yes
16781 # SGI C++ compiler will create directory out/ii_files/ for
16782 # template instantiation
16783 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16784 $RM out/* && rmdir out
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16791 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16799 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16800 if ${lt_cv_prog_compiler_c_o+:} false; then :
16801 $as_echo_n "(cached
) " >&6
16803 lt_cv_prog_compiler_c_o=no
16804 $RM -r conftest 2>/dev/null
16808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16810 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16811 # Insert the option either (1) after the last *FLAGS variable, or
16812 # (2) before a word containing "conftest.
", or (3) at the end.
16813 # Note that $ac_compile itself does not contain backslashes and begins
16814 # with a dollar sign (not a hyphen), so the echo should work correctly.
16815 lt_compile=`echo "$ac_compile" | $SED \
16816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16818 -e 's:$: $lt_compiler_flag:'`
16819 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16820 (eval "$lt_compile" 2>out/conftest.err)
16822 cat out/conftest.err >&5
16823 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16824 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16826 # The compiler can only warn and ignore the option if not recognized
16827 # So say no if there are warnings
16828 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16829 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16830 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16831 lt_cv_prog_compiler_c_o=yes
16836 # SGI C++ compiler will create directory out/ii_files/ for
16837 # template instantiation
16838 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16839 $RM out/* && rmdir out
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16846 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16851 hard_links="nottested
"
16852 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16853 # do not overwrite the value of need_locks provided by the user
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
16855 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
16858 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16860 ln conftest.a conftest.b 2>&5 || hard_links=no
16861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
16863 $as_echo "$hard_links" >&6; }
16864 if test "$hard_links" = no; then
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
16866 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16879 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16882 allow_undefined_flag=
16883 always_export_symbols=no
16885 archive_expsym_cmds=
16886 compiler_needs_object=no
16887 enable_shared_with_static_runtimes=no
16888 export_dynamic_flag_spec=
16889 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16890 hardcode_automatic=no
16892 hardcode_direct_absolute=no
16893 hardcode_libdir_flag_spec=
16894 hardcode_libdir_flag_spec_ld=
16895 hardcode_libdir_separator=
16896 hardcode_minus_L=no
16897 hardcode_shlibpath_var=unsupported
16899 link_all_deplibs=unknown
16901 module_expsym_cmds=
16902 old_archive_from_new_cmds=
16903 old_archive_from_expsyms_cmds=
16904 thread_safe_flag_spec=
16905 whole_archive_flag_spec=
16906 # include_expsyms should be a list of space-separated symbols to be *always*
16907 # included in the symbol list
16909 # exclude_expsyms can be an extended regexp of symbols to exclude
16910 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16911 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16912 # as well as any symbol that contains `d'.
16913 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16914 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16915 # platforms (ab)use it in PIC code, but their linkers get confused if
16916 # the symbol is explicitly referenced. Since portable code cannot
16917 # rely on this symbol name, it's probably fine to never include it in
16918 # preloaded symbol tables.
16919 # Exclude shared library initialization/finalization symbols.
16920 extract_expsyms_cmds=
16923 cygwin* | mingw* | pw32* | cegcc*)
16924 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16925 # When not using gcc, we currently assume that we are using
16926 # Microsoft Visual C++.
16927 if test "$GCC" != yes; then
16932 # we just hope/assume this is gcc and not c89 (= MSVC++)
16942 # On some targets, GNU ld is compatible enough with the native linker
16943 # that we're better off using the native interface for both.
16944 lt_use_gnu_ld_interface=no
16945 if test "$with_gnu_ld" = yes; then
16948 # The AIX port of GNU ld has always aspired to compatibility
16949 # with the native linker. However, as the warning in the GNU ld
16950 # block says, versions before 2.19.5* couldn't really create working
16951 # shared libraries, regardless of the interface used.
16952 case `$LD -v 2>&1` in
16953 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16954 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16955 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16957 lt_use_gnu_ld_interface=yes
16962 lt_use_gnu_ld_interface=yes
16967 if test "$lt_use_gnu_ld_interface" = yes; then
16968 # If archive_cmds runs LD, not CC, wlarc should be empty
16971 # Set some defaults for GNU ld with shared library support. These
16972 # are reset later if shared libraries are not supported. Putting them
16973 # here allows them to be overridden if necessary.
16974 runpath_var=LD_RUN_PATH
16975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16976 export_dynamic_flag_spec='${wl}--export-dynamic'
16977 # ancient GNU ld didn't support --whole-archive et. al.
16978 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16979 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16981 whole_archive_flag_spec=
16983 supports_anon_versioning=no
16984 case `$LD -v 2>&1` in
16985 *GNU\ gold*) supports_anon_versioning=yes ;;
16986 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16987 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16988 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16989 *\ 2.11.*) ;; # other 2.11 versions
16990 *) supports_anon_versioning=yes ;;
16993 # See if GNU ld supports shared libraries.
16996 # On AIX/PPC, the GNU linker is very broken
16997 if test "$host_cpu" != ia64; then
17001 *** Warning: the GNU linker, at least up to release 2.19, is reported
17002 *** to be unable to reliably create shared libraries on AIX.
17003 *** Therefore, libtool is disabling shared libraries support. If you
17004 *** really care for shared libraries, you may want to install binutils
17005 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17006 *** You will then need to restart the configuration process.
17015 # see comment about AmigaOS4 .so support
17016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17017 archive_expsym_cmds=''
17020 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)'
17021 hardcode_libdir_flag_spec
='-L$libdir'
17022 hardcode_minus_L
=yes
17028 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17029 allow_undefined_flag
=unsupported
17030 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17031 # support --undefined. This deserves some investigation. FIXME
17032 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17038 cygwin
* | mingw
* | pw32
* | cegcc
*)
17039 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17040 # as there is no search path for DLLs.
17041 hardcode_libdir_flag_spec
='-L$libdir'
17042 export_dynamic_flag_spec
='${wl}--export-all-symbols'
17043 allow_undefined_flag
=unsupported
17044 always_export_symbols
=no
17045 enable_shared_with_static_runtimes
=yes
17046 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17048 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
17049 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17050 # If the export-symbols file already is a .def file (1st line
17051 # is EXPORTS), use it as is; otherwise, prepend...
17052 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17053 cp $export_symbols $output_objdir/$soname.def;
17055 echo EXPORTS > $output_objdir/$soname.def;
17056 cat $export_symbols >> $output_objdir/$soname.def;
17058 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17065 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17066 link_all_deplibs
=yes
17071 hardcode_shlibpath_var
=no
17072 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17073 export_dynamic_flag_spec
='${wl}-E'
17074 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17075 # Instead, shared libraries are loaded at an image base (0x10000000 by
17076 # default) and relocated if they conflict, which is a slow very memory
17077 # consuming and fragmenting process. To avoid this, we pick a random,
17078 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17079 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17080 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17081 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'
17084 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
17086 if test "$host_os" = linux-dietlibc
; then
17087 case $cc_basename in
17088 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
17091 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
17092 && test "$tmp_diet" = no
17094 tmp_addflag
=' $pic_flag'
17095 tmp_sharedflag
='-shared'
17096 case $cc_basename,$host_cpu in
17097 pgcc
*) # Portland Group C compiler
17098 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'
17099 tmp_addflag
=' $pic_flag'
17101 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
17102 # Portland Group f77 and f90 compilers
17103 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'
17104 tmp_addflag
=' $pic_flag -Mnomain' ;;
17105 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17106 tmp_addflag
=' -i_dynamic' ;;
17107 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17108 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17109 ifc
* | ifort
*) # Intel Fortran compiler
17110 tmp_addflag
=' -nofor_main' ;;
17111 lf95
*) # Lahey Fortran 8.1
17112 whole_archive_flag_spec
=
17113 tmp_sharedflag
='--shared' ;;
17114 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17115 tmp_sharedflag
='-qmkshrobj'
17117 nvcc
*) # Cuda Compiler Driver 2.2
17118 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'
17119 compiler_needs_object
=yes
17122 case `$CC -V 2>&1 | sed 5q` in
17123 *Sun\ C
*) # Sun C 5.9
17124 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'
17125 compiler_needs_object
=yes
17126 tmp_sharedflag
='-G' ;;
17127 *Sun\ F
*) # Sun Fortran 8.3
17128 tmp_sharedflag
='-G' ;;
17130 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17132 if test "x$supports_anon_versioning" = xyes
; then
17133 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17134 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17135 echo "local: *; };" >> $output_objdir/$libname.ver~
17136 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17139 case $cc_basename in
17140 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
17141 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17142 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
17143 hardcode_libdir_flag_spec
=
17144 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
17145 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17146 if test "x$supports_anon_versioning" = xyes
; then
17147 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
17148 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17149 echo "local: *; };" >> $output_objdir/$libname.ver~
17150 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17160 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17161 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17164 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17165 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17170 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
17174 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17175 *** create shared libraries on Solaris systems. Therefore, libtool
17176 *** is disabling shared libraries support. We urge you to upgrade GNU
17177 *** binutils to release 2.9.1 or newer. Another option is to modify
17178 *** your PATH or compiler configuration so that the native linker is
17179 *** used, and then restart.
17182 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17183 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17184 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17190 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17191 case `$LD -v 2>&1` in
17192 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17196 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17197 *** reliably create shared libraries on SCO systems. Therefore, libtool
17198 *** is disabling shared libraries support. We urge you to upgrade GNU
17199 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17200 *** your PATH or compiler configuration so that the native linker is
17201 *** used, and then restart.
17206 # For security reasons, it is highly recommended that you always
17207 # use absolute paths for naming shared libraries, and exclude the
17208 # DT_RUNPATH tag from executables and libraries. But doing so
17209 # requires that you compile everything twice, which is a pain.
17210 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17211 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17212 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17213 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17222 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17224 hardcode_direct
=yes
17225 hardcode_shlibpath_var
=no
17229 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
17230 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17231 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17238 if test "$ld_shlibs" = no
; then
17240 hardcode_libdir_flag_spec
=
17241 export_dynamic_flag_spec
=
17242 whole_archive_flag_spec
=
17245 # PORTME fill in a description of your system's linker (not GNU ld)
17248 allow_undefined_flag
=unsupported
17249 always_export_symbols
=yes
17250 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'
17251 # Note: this linker hardcodes the directories in LIBPATH if there
17252 # are no directories specified by -L.
17253 hardcode_minus_L
=yes
17254 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17255 # Neither direct hardcoding nor static linking is supported with a
17257 hardcode_direct
=unsupported
17262 if test "$host_cpu" = ia64
; then
17263 # On IA64, the linker does run time linking by default, so we don't
17264 # have to do anything special.
17265 aix_use_runtimelinking
=no
17266 exp_sym_flag
='-Bexport'
17269 # If we're using GNU nm, then we don't want the "-C" option.
17270 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17271 # Also, AIX nm treats weak defined symbols like other global
17272 # defined symbols, whereas GNU nm marks them as "W".
17273 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
17274 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'
17276 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'
17278 aix_use_runtimelinking
=no
17280 # Test if we are trying to use run time linking or normal
17281 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17282 # need to do runtime linking.
17283 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17284 for ld_flag
in $LDFLAGS; do
17285 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17286 aix_use_runtimelinking
=yes
17293 exp_sym_flag
='-bexport'
17294 no_entry_flag
='-bnoentry'
17297 # When large executables or shared objects are built, AIX ld can
17298 # have problems creating the table of contents. If linking a library
17299 # or program results in "error TOC overflow" add -mminimal-toc to
17300 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17301 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17304 hardcode_direct
=yes
17305 hardcode_direct_absolute
=yes
17306 hardcode_libdir_separator
=':'
17307 link_all_deplibs
=yes
17308 file_list_spec
='${wl}-f,'
17310 if test "$GCC" = yes; then
17311 case $host_os in aix4.
[012]|aix4.
[012].
*)
17312 # We only want to do this on AIX 4.2 and lower, the check
17313 # below for broken collect2 doesn't work under 4.3+
17314 collect2name
=`${CC} -print-prog-name=collect2`
17315 if test -f "$collect2name" &&
17316 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17318 # We have reworked collect2
17321 # We have old collect2
17322 hardcode_direct
=unsupported
17323 # It fails to find uninstalled libraries when the uninstalled
17324 # path is not listed in the libpath. Setting hardcode_minus_L
17325 # to unsupported forces relinking
17326 hardcode_minus_L
=yes
17327 hardcode_libdir_flag_spec
='-L$libdir'
17328 hardcode_libdir_separator
=
17332 shared_flag
='-shared'
17333 if test "$aix_use_runtimelinking" = yes; then
17334 shared_flag
="$shared_flag "'${wl}-G'
17338 if test "$host_cpu" = ia64
; then
17339 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17340 # chokes on -Wl,-G. The following line is correct:
17343 if test "$aix_use_runtimelinking" = yes; then
17344 shared_flag
='${wl}-G'
17346 shared_flag
='${wl}-bM:SRE'
17351 export_dynamic_flag_spec
='${wl}-bexpall'
17352 # It seems that -bexpall does not export symbols beginning with
17353 # underscore (_), so it is better to generate a list of symbols to export.
17354 always_export_symbols
=yes
17355 if test "$aix_use_runtimelinking" = yes; then
17356 # Warning - without using the other runtime loading flags (-brtl),
17357 # -berok will link without error, but may produce a broken library.
17358 allow_undefined_flag
='-berok'
17359 # Determine the default libpath from the value encoded in an
17360 # empty executable.
17361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17362 /* end confdefs.h. */
17372 if ac_fn_c_try_link
"$LINENO"; then :
17374 lt_aix_libpath_sed
='
17375 /Import File Strings/,/^$/ {
17381 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17382 # Check for a 64-bit object if we didn't find anything.
17383 if test -z "$aix_libpath"; then
17384 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17387 rm -f core conftest.err conftest.
$ac_objext \
17388 conftest
$ac_exeext conftest.
$ac_ext
17389 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17391 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17392 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"
17394 if test "$host_cpu" = ia64
; then
17395 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
17396 allow_undefined_flag
="-z nodefs"
17397 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"
17399 # Determine the default libpath from the value encoded in an
17400 # empty executable.
17401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17402 /* end confdefs.h. */
17412 if ac_fn_c_try_link
"$LINENO"; then :
17414 lt_aix_libpath_sed
='
17415 /Import File Strings/,/^$/ {
17421 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17422 # Check for a 64-bit object if we didn't find anything.
17423 if test -z "$aix_libpath"; then
17424 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17427 rm -f core conftest.err conftest.
$ac_objext \
17428 conftest
$ac_exeext conftest.
$ac_ext
17429 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17431 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17432 # Warning - without using the other run time loading flags,
17433 # -berok will link without error, but may produce a broken library.
17434 no_undefined_flag
=' ${wl}-bernotok'
17435 allow_undefined_flag
=' ${wl}-berok'
17436 if test "$with_gnu_ld" = yes; then
17437 # We only use this code for GNU lds that support --whole-archive.
17438 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17440 # Exported symbols can be pulled into shared objects from archives
17441 whole_archive_flag_spec
='$convenience'
17443 archive_cmds_need_lc
=yes
17444 # This is similar to how AIX traditionally builds its shared libraries.
17445 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'
17453 # see comment about AmigaOS4 .so support
17454 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17455 archive_expsym_cmds
=''
17458 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)'
17459 hardcode_libdir_flag_spec
='-L$libdir'
17460 hardcode_minus_L
=yes
17466 export_dynamic_flag_spec
=-rdynamic
17469 cygwin
* | mingw
* | pw32
* | cegcc
*)
17470 # When not using gcc, we currently assume that we are using
17471 # Microsoft Visual C++.
17472 # hardcode_libdir_flag_spec is actually meaningless, as there is
17473 # no search path for DLLs.
17474 hardcode_libdir_flag_spec
=' '
17475 allow_undefined_flag
=unsupported
17476 # Tell ltmain to make .lib files, not .a files.
17478 # Tell ltmain to make .dll files, not .so files.
17480 # FIXME: Setting linknames here is a bad hack.
17481 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17482 # The linker will automatically build a .lib file if we build a DLL.
17483 old_archive_from_new_cmds
='true'
17484 # FIXME: Should let the user specify the lib program.
17485 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17486 fix_srcfile_path
='`cygpath -w "$srcfile"`'
17487 enable_shared_with_static_runtimes
=yes
17490 darwin
* | rhapsody
*)
17493 archive_cmds_need_lc
=no
17495 hardcode_automatic
=yes
17496 hardcode_shlibpath_var
=unsupported
17497 if test "$lt_cv_ld_force_load" = "yes"; then
17498 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\"`'
17500 whole_archive_flag_spec
=''
17502 link_all_deplibs
=yes
17503 allow_undefined_flag
="$_lt_dar_allow_undefined"
17504 case $cc_basename in
17505 ifort
*) _lt_dar_can_shared
=yes ;;
17506 *) _lt_dar_can_shared
=$GCC ;;
17508 if test "$_lt_dar_can_shared" = "yes"; then
17509 output_verbose_link_cmd
=func_echo_all
17510 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17511 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17512 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}"
17513 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}"
17522 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17523 hardcode_libdir_flag_spec
='-L$libdir'
17524 hardcode_shlibpath_var
=no
17527 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17528 # support. Future versions do this automatically, but an explicit c++rt0.o
17529 # does not break anything, and helps significantly (at the cost of a little
17532 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17533 hardcode_libdir_flag_spec
='-R$libdir'
17534 hardcode_direct
=yes
17535 hardcode_shlibpath_var
=no
17538 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17540 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17541 hardcode_direct
=yes
17542 hardcode_minus_L
=yes
17543 hardcode_shlibpath_var
=no
17546 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17547 freebsd
* | dragonfly
*)
17548 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17549 hardcode_libdir_flag_spec
='-R$libdir'
17550 hardcode_direct
=yes
17551 hardcode_shlibpath_var
=no
17555 if test "$GCC" = yes; then
17556 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'
17558 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'
17560 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17561 hardcode_libdir_separator
=:
17562 hardcode_direct
=yes
17564 # hardcode_minus_L: Not really in the search PATH,
17565 # but as the default location of the library.
17566 hardcode_minus_L
=yes
17567 export_dynamic_flag_spec
='${wl}-E'
17571 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17572 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17574 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17576 if test "$with_gnu_ld" = no
; then
17577 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17578 hardcode_libdir_flag_spec_ld
='+b $libdir'
17579 hardcode_libdir_separator
=:
17580 hardcode_direct
=yes
17581 hardcode_direct_absolute
=yes
17582 export_dynamic_flag_spec
='${wl}-E'
17583 # hardcode_minus_L: Not really in the search PATH,
17584 # but as the default location of the library.
17585 hardcode_minus_L
=yes
17590 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17593 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17596 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17599 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17605 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17608 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17612 # Older versions of the 11.00 compiler do not understand -b yet
17613 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17615 $as_echo_n "checking if $CC understands -b... " >&6; }
17616 if ${lt_cv_prog_compiler__b+:} false
; then :
17617 $as_echo_n "(cached) " >&6
17619 lt_cv_prog_compiler__b
=no
17620 save_LDFLAGS
="$LDFLAGS"
17621 LDFLAGS
="$LDFLAGS -b"
17622 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17623 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17624 # The linker can only warn and ignore the option if not recognized
17625 # So say no if there are warnings
17626 if test -s conftest.err
; then
17627 # Append any errors to the config.log.
17628 cat conftest.err
1>&5
17629 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
17630 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17631 if diff conftest.exp conftest.er2
>/dev
/null
; then
17632 lt_cv_prog_compiler__b
=yes
17635 lt_cv_prog_compiler__b
=yes
17639 LDFLAGS
="$save_LDFLAGS"
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17643 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17645 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
17646 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17648 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17654 if test "$with_gnu_ld" = no
; then
17655 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17656 hardcode_libdir_separator
=:
17661 hardcode_shlibpath_var
=no
17664 hardcode_direct
=yes
17665 hardcode_direct_absolute
=yes
17666 export_dynamic_flag_spec
='${wl}-E'
17668 # hardcode_minus_L: Not really in the search PATH,
17669 # but as the default location of the library.
17670 hardcode_minus_L
=yes
17676 irix5
* | irix6
* | nonstopux
*)
17677 if test "$GCC" = yes; then
17678 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'
17679 # Try to use the -exported_symbol ld option, if it does not
17680 # work, assume that -exports_file does not work either and
17681 # implicitly export all symbols.
17682 save_LDFLAGS
="$LDFLAGS"
17683 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17685 /* end confdefs.h. */
17688 if ac_fn_c_try_link
"$LINENO"; then :
17689 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'
17692 rm -f core conftest.err conftest.
$ac_objext \
17693 conftest
$ac_exeext conftest.
$ac_ext
17694 LDFLAGS
="$save_LDFLAGS"
17696 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'
17697 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'
17699 archive_cmds_need_lc
='no'
17700 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17701 hardcode_libdir_separator
=:
17703 link_all_deplibs
=yes
17707 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17708 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17710 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17712 hardcode_libdir_flag_spec
='-R$libdir'
17713 hardcode_direct
=yes
17714 hardcode_shlibpath_var
=no
17718 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17719 hardcode_direct
=yes
17720 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17721 hardcode_libdir_separator
=:
17722 hardcode_shlibpath_var
=no
17729 if test -f /usr
/libexec
/ld.so
; then
17730 hardcode_direct
=yes
17731 hardcode_shlibpath_var
=no
17732 hardcode_direct_absolute
=yes
17733 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17734 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17735 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17736 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17737 export_dynamic_flag_spec
='${wl}-E'
17740 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17741 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17742 hardcode_libdir_flag_spec
='-R$libdir'
17745 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17746 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17756 hardcode_libdir_flag_spec
='-L$libdir'
17757 hardcode_minus_L
=yes
17758 allow_undefined_flag
=unsupported
17759 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'
17760 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17764 if test "$GCC" = yes; then
17765 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17766 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'
17768 allow_undefined_flag
=' -expect_unresolved \*'
17769 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'
17771 archive_cmds_need_lc
='no'
17772 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17773 hardcode_libdir_separator
=:
17776 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17777 if test "$GCC" = yes; then
17778 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17779 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'
17780 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17782 allow_undefined_flag
=' -expect_unresolved \*'
17783 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'
17784 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~
17785 $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'
17787 # Both c and cxx compiler support -rpath directly
17788 hardcode_libdir_flag_spec
='-rpath $libdir'
17790 archive_cmds_need_lc
='no'
17791 hardcode_libdir_separator
=:
17795 no_undefined_flag
=' -z defs'
17796 if test "$GCC" = yes; then
17798 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17799 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17800 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17802 case `$CC -V 2>&1` in
17805 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17806 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17807 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17811 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17812 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17813 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17817 hardcode_libdir_flag_spec
='-R$libdir'
17818 hardcode_shlibpath_var
=no
17820 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17822 # The compiler driver will combine and reorder linker options,
17823 # but understands `-z linker_flag'. GCC discards it without `$wl',
17824 # but is careful enough not to reorder.
17825 # Supported since Solaris 2.6 (maybe 2.5.1?)
17826 if test "$GCC" = yes; then
17827 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17829 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
17833 link_all_deplibs
=yes
17837 if test "x$host_vendor" = xsequent
; then
17838 # Use $CC to link under sequent, because it throws in some extra .o
17839 # files that make .init and .fini sections work.
17840 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17842 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17844 hardcode_libdir_flag_spec
='-L$libdir'
17845 hardcode_direct
=yes
17846 hardcode_minus_L
=yes
17847 hardcode_shlibpath_var
=no
17851 case $host_vendor in
17853 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17854 hardcode_direct
=yes # is this really true???
17857 ## LD is ld it makes a PLAMLIB
17858 ## CC just makes a GrossModule.
17859 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17860 reload_cmds
='$CC -r -o $output$reload_objs'
17864 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17865 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17868 runpath_var
='LD_RUN_PATH'
17869 hardcode_shlibpath_var
=no
17873 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17874 hardcode_shlibpath_var
=no
17875 export_dynamic_flag_spec
='-Bexport'
17879 if test -d /usr
/nec
; then
17880 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17881 hardcode_shlibpath_var
=no
17882 runpath_var
=LD_RUN_PATH
17883 hardcode_runpath_var
=yes
17888 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17889 no_undefined_flag
='${wl}-z,text'
17890 archive_cmds_need_lc
=no
17891 hardcode_shlibpath_var
=no
17892 runpath_var
='LD_RUN_PATH'
17894 if test "$GCC" = yes; then
17895 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17896 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17898 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17899 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17903 sysv5
* | sco3.2v5
* | sco5v6
*)
17904 # Note: We can NOT use -z defs as we might desire, because we do not
17905 # link with -lc, and that would cause any symbols used from libc to
17906 # always be unresolved, which means just about no library would
17907 # ever link correctly. If we're not using GNU ld we use -z text
17908 # though, which does catch some bad symbols but isn't as heavy-handed
17910 no_undefined_flag
='${wl}-z,text'
17911 allow_undefined_flag
='${wl}-z,nodefs'
17912 archive_cmds_need_lc
=no
17913 hardcode_shlibpath_var
=no
17914 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17915 hardcode_libdir_separator
=':'
17916 link_all_deplibs
=yes
17917 export_dynamic_flag_spec
='${wl}-Bexport'
17918 runpath_var
='LD_RUN_PATH'
17920 if test "$GCC" = yes; then
17921 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17922 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17924 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17925 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17930 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17931 hardcode_libdir_flag_spec
='-L$libdir'
17932 hardcode_shlibpath_var
=no
17940 if test x
$host_vendor = xsni
; then
17942 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17943 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17950 $as_echo "$ld_shlibs" >&6; }
17951 test "$ld_shlibs" = no
&& can_build_shared
=no
17953 with_gnu_ld
=$with_gnu_ld
17970 # Do we need to explicitly link libc?
17972 case "x$archive_cmds_need_lc" in
17974 # Assume -lc should be added
17975 archive_cmds_need_lc
=yes
17977 if test "$enable_shared" = yes && test "$GCC" = yes; then
17978 case $archive_cmds in
17980 # FIXME: we may have to deal with multi-command sequences.
17983 # Test whether the compiler implicitly links with -lc since on some
17984 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17985 # to ld, don't add -lc before -lgcc.
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17987 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17988 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
17989 $as_echo_n "(cached) " >&6
17992 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17995 (eval $ac_compile) 2>&5
17997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17998 test $ac_status = 0; } 2>conftest.err
; then
18001 libobjs
=conftest.
$ac_objext
18003 wl
=$lt_prog_compiler_wl
18004 pic_flag
=$lt_prog_compiler_pic
18010 lt_save_allow_undefined_flag
=$allow_undefined_flag
18011 allow_undefined_flag
=
18012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18013 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18016 test $ac_status = 0; }
18018 lt_cv_archive_cmds_need_lc
=no
18020 lt_cv_archive_cmds_need_lc
=yes
18022 allow_undefined_flag
=$lt_save_allow_undefined_flag
18024 cat conftest.err
1>&5
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18030 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18031 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18195 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18197 if test "$GCC" = yes; then
18199 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
18200 *) lt_awk_arg
="/^libraries:/" ;;
18203 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
18204 *) lt_sed_strip_eq
="s,=/,/,g" ;;
18206 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18207 case $lt_search_path_spec in
18209 # if the path contains ";" then we assume it to be the separator
18210 # otherwise default to the standard path separator (i.e. ":") - it is
18211 # assumed that no part of a normal pathname contains ";" but that should
18212 # okay in the real world where ";" in dirpaths is itself problematic.
18213 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18216 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18219 # Ok, now we have the path, separated by spaces, we can step through it
18220 # and add multilib dir if necessary.
18221 lt_tmp_lt_search_path_spec
=
18222 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18223 for lt_sys_path
in $lt_search_path_spec; do
18224 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18225 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18227 test -d "$lt_sys_path" && \
18228 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
18231 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18232 BEGIN {RS=" "; FS="/|\n";} {
18235 for (lt_i = NF; lt_i > 0; lt_i--) {
18236 if ($lt_i != "" && $lt_i != ".") {
18237 if ($lt_i == "..") {
18240 if (lt_count == 0) {
18241 lt_foo="/" $lt_i lt_foo;
18248 if (lt_foo != "") { lt_freq[lt_foo]++; }
18249 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18251 # AWK program above erroneously prepends '/' to C:/dos/paths
18254 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
18255 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18257 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18259 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
18261 library_names_spec
=
18262 libname_spec
='lib$name'
18266 postuninstall_cmds
=
18270 shlibpath_overrides_runpath
=unknown
18272 dynamic_linker
="$host_os ld.so"
18273 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18274 need_lib_prefix
=unknown
18275 hardcode_into_libs
=no
18277 # when you set need_version to no, make sure it does not cause -set_version
18278 # flags to be left without arguments
18279 need_version
=unknown
18284 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18285 shlibpath_var
=LIBPATH
18287 # AIX 3 has no versioning support, so we append a major version to the name.
18288 soname_spec
='${libname}${release}${shared_ext}$major'
18295 hardcode_into_libs
=yes
18296 if test "$host_cpu" = ia64
; then
18297 # AIX 5 supports IA64
18298 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18299 shlibpath_var
=LD_LIBRARY_PATH
18301 # With GCC up to 2.95.x, collect2 would create an import file
18302 # for dependence libraries. The import file would start with
18303 # the line `#! .'. This would cause the generated library to
18304 # depend on `.', always an invalid library. This was fixed in
18305 # development snapshots of GCC prior to 3.0.
18307 aix4 | aix4.
[01] | aix4.
[01].
*)
18308 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18310 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
18313 can_build_shared
=no
18317 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18318 # soname into executable. Probably we can add versioning support to
18319 # collect2, so additional links can be useful in future.
18320 if test "$aix_use_runtimelinking" = yes; then
18321 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18322 # instead of lib<name>.a to let people know that these are not
18323 # typical AIX shared libraries.
18324 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18326 # We preserve .a as extension for shared libraries through AIX4.2
18327 # and later when we are not doing run time linking.
18328 library_names_spec
='${libname}${release}.a $libname.a'
18329 soname_spec
='${libname}${release}${shared_ext}$major'
18331 shlibpath_var
=LIBPATH
18338 # Since July 2007 AmigaOS4 officially supports .so libraries.
18339 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18340 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18343 library_names_spec
='$libname.ixlibrary $libname.a'
18344 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18345 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'
18351 library_names_spec
='${libname}${shared_ext}'
18352 dynamic_linker
="$host_os ld.so"
18353 shlibpath_var
=LIBRARY_PATH
18359 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18360 soname_spec
='${libname}${release}${shared_ext}$major'
18361 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18362 shlibpath_var
=LD_LIBRARY_PATH
18363 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18364 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18365 # the default ld.so.conf also contains /usr/contrib/lib and
18366 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18367 # libtool to hard-code these into programs
18370 cygwin
* | mingw
* | pw32
* | cegcc
*)
18371 version_type
=windows
18376 case $GCC,$host_os in
18377 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
18378 library_names_spec
='$libname.dll.a'
18379 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18380 postinstall_cmds
='base_file=`basename \${file}`~
18381 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18382 dldir=$destdir/`dirname \$dlpath`~
18383 test -d \$dldir || mkdir -p \$dldir~
18384 $install_prog $dir/$dlname \$dldir/$dlname~
18385 chmod a+x \$dldir/$dlname~
18386 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18387 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18389 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18390 dlpath=$dir/\$dldll~
18392 shlibpath_overrides_runpath
=yes
18396 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18397 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18399 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
18402 # MinGW DLLs use traditional 'lib' prefix
18403 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18406 # pw32 DLLs use 'pw' prefix rather than 'lib'
18407 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18413 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18416 dynamic_linker
='Win32 ld.exe'
18417 # FIXME: first we should search . and the directory the executable is in
18421 darwin
* | rhapsody
*)
18422 dynamic_linker
="$host_os dyld"
18423 version_type
=darwin
18426 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18427 soname_spec
='${libname}${release}${major}$shared_ext'
18428 shlibpath_overrides_runpath
=yes
18429 shlibpath_var
=DYLD_LIBRARY_PATH
18430 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18432 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
18433 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18440 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18441 soname_spec
='${libname}${release}${shared_ext}$major'
18442 shlibpath_var
=LD_LIBRARY_PATH
18445 freebsd
* | dragonfly
*)
18446 # DragonFly does not have aout. When/if they implement a new
18447 # versioning mechanism, adjust this.
18448 if test -x /usr
/bin
/objformat
; then
18449 objformat
=`/usr/bin/objformat`
18452 freebsd
[23].
*) objformat
=aout
;;
18453 *) objformat
=elf
;;
18456 version_type
=freebsd-
$objformat
18457 case $version_type in
18459 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18464 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18468 shlibpath_var
=LD_LIBRARY_PATH
18471 shlibpath_overrides_runpath
=yes
18473 freebsd3.
[01]* | freebsdelf3.
[01]*)
18474 shlibpath_overrides_runpath
=yes
18475 hardcode_into_libs
=yes
18477 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18478 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18479 shlibpath_overrides_runpath
=no
18480 hardcode_into_libs
=yes
18482 *) # from 4.6 on, and DragonFly
18483 shlibpath_overrides_runpath
=yes
18484 hardcode_into_libs
=yes
18493 dynamic_linker
="$host_os runtime_loader"
18494 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18495 soname_spec
='${libname}${release}${shared_ext}$major'
18496 shlibpath_var
=LIBRARY_PATH
18497 shlibpath_overrides_runpath
=yes
18498 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18499 hardcode_into_libs
=yes
18502 hpux9
* | hpux10
* | hpux11
*)
18503 # Give a soname corresponding to the major version so that dld.sl refuses to
18504 # link against other versions.
18511 hardcode_into_libs
=yes
18512 dynamic_linker
="$host_os dld.so"
18513 shlibpath_var
=LD_LIBRARY_PATH
18514 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18515 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18516 soname_spec
='${libname}${release}${shared_ext}$major'
18517 if test "X$HPUX_IA64_MODE" = X32
; then
18518 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18520 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18522 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18526 hardcode_into_libs
=yes
18527 dynamic_linker
="$host_os dld.sl"
18528 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18529 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18530 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18531 soname_spec
='${libname}${release}${shared_ext}$major'
18532 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18533 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18537 dynamic_linker
="$host_os dld.sl"
18538 shlibpath_var
=SHLIB_PATH
18539 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18540 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18541 soname_spec
='${libname}${release}${shared_ext}$major'
18544 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18545 postinstall_cmds
='chmod 555 $lib'
18546 # or fails outright, so override atomically:
18547 install_override_mode
=555
18554 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18555 soname_spec
='${libname}${release}${shared_ext}$major'
18556 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18557 shlibpath_var
=LD_LIBRARY_PATH
18558 shlibpath_overrides_runpath
=no
18559 hardcode_into_libs
=yes
18562 irix5
* | irix6
* | nonstopux
*)
18564 nonstopux
*) version_type
=nonstopux
;;
18566 if test "$lt_cv_prog_gnu_ld" = yes; then
18574 soname_spec
='${libname}${release}${shared_ext}$major'
18575 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18577 irix5
* | nonstopux
*)
18578 libsuff
= shlibsuff
=
18581 case $LD in # libtool.m4 will add one of these switches to LD
18582 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18583 libsuff
= shlibsuff
= libmagic
=32-bit;;
18584 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18585 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18586 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18587 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18588 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18592 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18593 shlibpath_overrides_runpath
=no
18594 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18595 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18596 hardcode_into_libs
=yes
18599 # No shared lib support for Linux oldld, aout, or coff.
18600 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18604 # This must be Linux ELF.
18606 # uclinux* changes (here and below) have been submitted to the libtool
18607 # project, but have not yet been accepted: they are GCC-local changes
18608 # for the time being. (See
18609 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18610 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
18614 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18615 soname_spec
='${libname}${release}${shared_ext}$major'
18616 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18617 shlibpath_var
=LD_LIBRARY_PATH
18618 shlibpath_overrides_runpath
=no
18620 # Some binutils ld are patched to set DT_RUNPATH
18621 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
18622 $as_echo_n "(cached) " >&6
18624 lt_cv_shlibpath_overrides_runpath
=no
18625 save_LDFLAGS
=$LDFLAGS
18626 save_libdir
=$libdir
18627 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18628 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18630 /* end confdefs.h. */
18640 if ac_fn_c_try_link
"$LINENO"; then :
18641 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
18642 lt_cv_shlibpath_overrides_runpath
=yes
18645 rm -f core conftest.err conftest.
$ac_objext \
18646 conftest
$ac_exeext conftest.
$ac_ext
18647 LDFLAGS
=$save_LDFLAGS
18648 libdir
=$save_libdir
18652 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
18654 # This implies no fast_install, which is unacceptable.
18655 # Some rework will be needed to allow for fast_install
18656 # before this can be enabled.
18657 hardcode_into_libs
=yes
18659 # Append ld.so.conf contents to the search path
18660 if test -f /etc
/ld.so.conf
; then
18661 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' ' '`
18662 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18665 # We used to test for /lib/ld.so.1 and disable shared libraries on
18666 # powerpc, because MkLinux only supported shared libraries with the
18667 # GNU dynamic linker. Since this was broken with cross compilers,
18668 # most powerpc-linux boxes support dynamic linking these days and
18669 # people can always --disable-shared, the test was removed, and we
18670 # assume the GNU/Linux dynamic linker is in use.
18671 dynamic_linker
='GNU/Linux ld.so'
18678 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18679 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18680 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18681 dynamic_linker
='NetBSD (a.out) ld.so'
18683 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18684 soname_spec
='${libname}${release}${shared_ext}$major'
18685 dynamic_linker
='NetBSD ld.elf_so'
18687 shlibpath_var
=LD_LIBRARY_PATH
18688 shlibpath_overrides_runpath
=yes
18689 hardcode_into_libs
=yes
18694 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18695 shlibpath_var
=LD_LIBRARY_PATH
18696 shlibpath_overrides_runpath
=yes
18703 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18704 soname_spec
='${libname}${release}${shared_ext}$major'
18705 shlibpath_var
=LD_LIBRARY_PATH
18706 shlibpath_overrides_runpath
=no
18707 hardcode_into_libs
=yes
18708 dynamic_linker
='ldqnx.so'
18713 sys_lib_dlsearch_path_spec
="/usr/lib"
18715 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18717 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18718 *) need_version
=no
;;
18720 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18721 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18722 shlibpath_var
=LD_LIBRARY_PATH
18723 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18725 openbsd2.
[89] | openbsd2.
[89].
*)
18726 shlibpath_overrides_runpath
=no
18729 shlibpath_overrides_runpath
=yes
18733 shlibpath_overrides_runpath
=yes
18738 libname_spec
='$name'
18741 library_names_spec
='$libname${shared_ext} $libname.a'
18742 dynamic_linker
='OS/2 ld.exe'
18743 shlibpath_var
=LIBPATH
18746 osf3
* | osf4
* | osf5
*)
18750 soname_spec
='${libname}${release}${shared_ext}$major'
18751 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18752 shlibpath_var
=LD_LIBRARY_PATH
18753 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18754 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18765 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18766 soname_spec
='${libname}${release}${shared_ext}$major'
18767 shlibpath_var
=LD_LIBRARY_PATH
18768 shlibpath_overrides_runpath
=yes
18769 hardcode_into_libs
=yes
18770 # ldd complains unless libraries are executable
18771 postinstall_cmds
='chmod +x $lib'
18776 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18777 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18778 shlibpath_var
=LD_LIBRARY_PATH
18779 shlibpath_overrides_runpath
=yes
18780 if test "$with_gnu_ld" = yes; then
18788 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18789 soname_spec
='${libname}${release}${shared_ext}$major'
18790 shlibpath_var
=LD_LIBRARY_PATH
18791 case $host_vendor in
18793 shlibpath_overrides_runpath
=no
18795 runpath_var
=LD_RUN_PATH
18803 shlibpath_overrides_runpath
=no
18804 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18810 if test -d /usr
/nec
;then
18812 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18813 soname_spec
='$libname${shared_ext}.$major'
18814 shlibpath_var
=LD_LIBRARY_PATH
18818 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18819 version_type
=freebsd-elf
18822 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18823 soname_spec
='${libname}${release}${shared_ext}$major'
18824 shlibpath_var
=LD_LIBRARY_PATH
18825 shlibpath_overrides_runpath
=yes
18826 hardcode_into_libs
=yes
18827 if test "$with_gnu_ld" = yes; then
18828 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18830 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18833 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18837 sys_lib_dlsearch_path_spec
='/usr/lib'
18841 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18845 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18846 shlibpath_var
=LD_LIBRARY_PATH
18847 shlibpath_overrides_runpath
=no
18848 hardcode_into_libs
=yes
18853 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18854 soname_spec
='${libname}${release}${shared_ext}$major'
18855 shlibpath_var
=LD_LIBRARY_PATH
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18863 $as_echo "$dynamic_linker" >&6; }
18864 test "$dynamic_linker" = no
&& can_build_shared
=no
18866 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18867 if test "$GCC" = yes; then
18868 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18871 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18872 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18874 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18875 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18970 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18972 if test -n "$hardcode_libdir_flag_spec" ||
18973 test -n "$runpath_var" ||
18974 test "X$hardcode_automatic" = "Xyes" ; then
18976 # We can hardcode non-existent directories.
18977 if test "$hardcode_direct" != no
&&
18978 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18979 # have to relink, otherwise we might link with an installed library
18980 # when we should be linking with a yet-to-be-installed one
18981 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18982 test "$hardcode_minus_L" != no
; then
18983 # Linking always hardcodes the temporary library directory.
18984 hardcode_action
=relink
18986 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18987 hardcode_action
=immediate
18990 # We cannot hardcode anything, or else we can only hardcode existing
18992 hardcode_action
=unsupported
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18995 $as_echo "$hardcode_action" >&6; }
18997 if test "$hardcode_action" = relink ||
18998 test "$inherit_rpath" = yes; then
18999 # Fast installation is not supported
19000 enable_fast_install
=no
19001 elif test "$shlibpath_overrides_runpath" = yes ||
19002 test "$enable_shared" = no
; then
19003 # Fast installation is not necessary
19004 enable_fast_install
=needless
19012 if test "x$enable_dlopen" != xyes
; then
19013 enable_dlopen
=unknown
19014 enable_dlopen_self
=unknown
19015 enable_dlopen_self_static
=unknown
19022 lt_cv_dlopen
="load_add_on"
19024 lt_cv_dlopen_self
=yes
19027 mingw
* | pw32
* | cegcc
*)
19028 lt_cv_dlopen
="LoadLibrary"
19033 lt_cv_dlopen
="dlopen"
19038 # if libdl is installed we need to link against it
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19040 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19041 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19042 $as_echo_n "(cached) " >&6
19044 ac_check_lib_save_LIBS
=$LIBS
19046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19047 /* end confdefs.h. */
19049 /* Override any GCC internal prototype to avoid an error.
19050 Use char because int might match the return type of a GCC
19051 builtin and then its argument prototype would still apply. */
19064 if ac_fn_c_try_link
"$LINENO"; then :
19065 ac_cv_lib_dl_dlopen
=yes
19067 ac_cv_lib_dl_dlopen
=no
19069 rm -f core conftest.err conftest.
$ac_objext \
19070 conftest
$ac_exeext conftest.
$ac_ext
19071 LIBS
=$ac_check_lib_save_LIBS
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19074 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19075 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19076 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19079 lt_cv_dlopen
="dyld"
19081 lt_cv_dlopen_self
=yes
19088 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
19089 if test "x$ac_cv_func_shl_load" = xyes
; then :
19090 lt_cv_dlopen
="shl_load"
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19093 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19094 if ${ac_cv_lib_dld_shl_load+:} false
; then :
19095 $as_echo_n "(cached) " >&6
19097 ac_check_lib_save_LIBS
=$LIBS
19099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19100 /* end confdefs.h. */
19102 /* Override any GCC internal prototype to avoid an error.
19103 Use char because int might match the return type of a GCC
19104 builtin and then its argument prototype would still apply. */
19112 return shl_load ();
19117 if ac_fn_c_try_link
"$LINENO"; then :
19118 ac_cv_lib_dld_shl_load
=yes
19120 ac_cv_lib_dld_shl_load
=no
19122 rm -f core conftest.err conftest.
$ac_objext \
19123 conftest
$ac_exeext conftest.
$ac_ext
19124 LIBS
=$ac_check_lib_save_LIBS
19126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19127 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19128 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
19129 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
19131 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
19132 if test "x$ac_cv_func_dlopen" = xyes
; then :
19133 lt_cv_dlopen
="dlopen"
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19136 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19137 if ${ac_cv_lib_dl_dlopen+:} false
; then :
19138 $as_echo_n "(cached) " >&6
19140 ac_check_lib_save_LIBS
=$LIBS
19142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19143 /* end confdefs.h. */
19145 /* Override any GCC internal prototype to avoid an error.
19146 Use char because int might match the return type of a GCC
19147 builtin and then its argument prototype would still apply. */
19160 if ac_fn_c_try_link
"$LINENO"; then :
19161 ac_cv_lib_dl_dlopen
=yes
19163 ac_cv_lib_dl_dlopen
=no
19165 rm -f core conftest.err conftest.
$ac_objext \
19166 conftest
$ac_exeext conftest.
$ac_ext
19167 LIBS
=$ac_check_lib_save_LIBS
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19170 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19171 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
19172 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19175 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19176 if ${ac_cv_lib_svld_dlopen+:} false
; then :
19177 $as_echo_n "(cached) " >&6
19179 ac_check_lib_save_LIBS
=$LIBS
19180 LIBS
="-lsvld $LIBS"
19181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19182 /* end confdefs.h. */
19184 /* Override any GCC internal prototype to avoid an error.
19185 Use char because int might match the return type of a GCC
19186 builtin and then its argument prototype would still apply. */
19199 if ac_fn_c_try_link
"$LINENO"; then :
19200 ac_cv_lib_svld_dlopen
=yes
19202 ac_cv_lib_svld_dlopen
=no
19204 rm -f core conftest.err conftest.
$ac_objext \
19205 conftest
$ac_exeext conftest.
$ac_ext
19206 LIBS
=$ac_check_lib_save_LIBS
19208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19209 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19210 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
19211 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19214 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19215 if ${ac_cv_lib_dld_dld_link+:} false
; then :
19216 $as_echo_n "(cached) " >&6
19218 ac_check_lib_save_LIBS
=$LIBS
19220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19221 /* end confdefs.h. */
19223 /* Override any GCC internal prototype to avoid an error.
19224 Use char because int might match the return type of a GCC
19225 builtin and then its argument prototype would still apply. */
19233 return dld_link ();
19238 if ac_fn_c_try_link
"$LINENO"; then :
19239 ac_cv_lib_dld_dld_link
=yes
19241 ac_cv_lib_dld_dld_link
=no
19243 rm -f core conftest.err conftest.
$ac_objext \
19244 conftest
$ac_exeext conftest.
$ac_ext
19245 LIBS
=$ac_check_lib_save_LIBS
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19248 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19249 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
19250 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
19271 if test "x$lt_cv_dlopen" != xno
; then
19277 case $lt_cv_dlopen in
19279 save_CPPFLAGS
="$CPPFLAGS"
19280 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
19282 save_LDFLAGS
="$LDFLAGS"
19283 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
19286 LIBS
="$lt_cv_dlopen_libs $LIBS"
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19289 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19290 if ${lt_cv_dlopen_self+:} false
; then :
19291 $as_echo_n "(cached) " >&6
19293 if test "$cross_compiling" = yes; then :
19294 lt_cv_dlopen_self
=cross
19296 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19297 lt_status
=$lt_dlunknown
19298 cat > conftest.
$ac_ext <<_LT_EOF
19299 #line 19299 "configure"
19300 #include "confdefs.h"
19309 # define LT_DLGLOBAL RTLD_GLOBAL
19312 # define LT_DLGLOBAL DL_GLOBAL
19314 # define LT_DLGLOBAL 0
19318 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19319 find out it does not work in some platform. */
19320 #ifndef LT_DLLAZY_OR_NOW
19322 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19325 # define LT_DLLAZY_OR_NOW DL_LAZY
19328 # define LT_DLLAZY_OR_NOW RTLD_NOW
19331 # define LT_DLLAZY_OR_NOW DL_NOW
19333 # define LT_DLLAZY_OR_NOW 0
19340 /* When -fvisbility=hidden is used, assume the code has been annotated
19341 correspondingly for the symbols needed. */
19342 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19343 void fnord () __attribute__((visibility("default")));
19346 void fnord () { int i=42; }
19349 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19350 int status = $lt_dlunknown;
19354 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19357 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19358 else puts (dlerror ());
19360 /* dlclose (self); */
19368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19369 (eval $ac_link) 2>&5
19371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19372 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19373 (.
/conftest
; exit; ) >&5 2>/dev
/null
19375 case x
$lt_status in
19376 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
19377 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
19378 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
19381 # compilation failed
19382 lt_cv_dlopen_self
=no
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19390 $as_echo "$lt_cv_dlopen_self" >&6; }
19392 if test "x$lt_cv_dlopen_self" = xyes
; then
19393 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19395 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19396 if ${lt_cv_dlopen_self_static+:} false
; then :
19397 $as_echo_n "(cached) " >&6
19399 if test "$cross_compiling" = yes; then :
19400 lt_cv_dlopen_self_static
=cross
19402 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19403 lt_status
=$lt_dlunknown
19404 cat > conftest.
$ac_ext <<_LT_EOF
19405 #line 19405 "configure"
19406 #include "confdefs.h"
19415 # define LT_DLGLOBAL RTLD_GLOBAL
19418 # define LT_DLGLOBAL DL_GLOBAL
19420 # define LT_DLGLOBAL 0
19424 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19425 find out it does not work in some platform. */
19426 #ifndef LT_DLLAZY_OR_NOW
19428 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19431 # define LT_DLLAZY_OR_NOW DL_LAZY
19434 # define LT_DLLAZY_OR_NOW RTLD_NOW
19437 # define LT_DLLAZY_OR_NOW DL_NOW
19439 # define LT_DLLAZY_OR_NOW 0
19446 /* When -fvisbility=hidden is used, assume the code has been annotated
19447 correspondingly for the symbols needed. */
19448 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19449 void fnord () __attribute__((visibility("default")));
19452 void fnord () { int i=42; }
19455 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19456 int status = $lt_dlunknown;
19460 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19463 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19464 else puts (dlerror ());
19466 /* dlclose (self); */
19474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19475 (eval $ac_link) 2>&5
19477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19478 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19479 (.
/conftest
; exit; ) >&5 2>/dev
/null
19481 case x
$lt_status in
19482 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
19483 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
19484 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
19487 # compilation failed
19488 lt_cv_dlopen_self_static
=no
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19496 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19499 CPPFLAGS
="$save_CPPFLAGS"
19500 LDFLAGS
="$save_LDFLAGS"
19505 case $lt_cv_dlopen_self in
19506 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
19507 *) enable_dlopen_self
=unknown
;;
19510 case $lt_cv_dlopen_self_static in
19511 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
19512 *) enable_dlopen_self_static
=unknown
;;
19534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19535 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19536 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
19537 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
19538 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19540 $as_echo "yes" >&6; }
19542 # FIXME - insert some real tests, host_os isn't really good enough
19545 if test -n "$STRIP" ; then
19546 striplib
="$STRIP -x"
19547 old_striplib
="$STRIP -S"
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19549 $as_echo "yes" >&6; }
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19552 $as_echo "no" >&6; }
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19557 $as_echo "no" >&6; }
19573 # Report which library types will actually be built
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19575 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19577 $as_echo "$can_build_shared" >&6; }
19579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19580 $as_echo_n "checking whether to build shared libraries... " >&6; }
19581 test "$can_build_shared" = "no" && enable_shared
=no
19583 # On AIX, shared libraries and static libraries use the same namespace, and
19584 # are all built from PIC.
19587 test "$enable_shared" = yes && enable_static
=no
19588 if test -n "$RANLIB"; then
19589 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
19590 postinstall_cmds
='$RANLIB $lib'
19595 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
19596 test "$enable_shared" = yes && enable_static
=no
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19601 $as_echo "$enable_shared" >&6; }
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19604 $as_echo_n "checking whether to build static libraries... " >&6; }
19605 # Make sure either enable_shared or enable_static is yes.
19606 test "$enable_shared" = yes || enable_static
=yes
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19608 $as_echo "$enable_static" >&6; }
19615 ac_cpp
='$CXXCPP $CPPFLAGS'
19616 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19617 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19618 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19622 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19623 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19624 (test "X$CXX" != "Xg++"))) ; then
19626 ac_cpp
='$CXXCPP $CPPFLAGS'
19627 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19628 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19629 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19631 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19632 if test -z "$CXXCPP"; then
19633 if ${ac_cv_prog_CXXCPP+:} false
; then :
19634 $as_echo_n "(cached) " >&6
19636 # Double quotes because CXXCPP needs to be expanded
19637 for CXXCPP
in "$CXX -E" "/lib/cpp"
19639 ac_preproc_ok
=false
19640 for ac_cxx_preproc_warn_flag
in '' yes
19642 # Use a header file that comes with gcc, so configuring glibc
19643 # with a fresh cross-compiler works.
19644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19645 # <limits.h> exists even on freestanding compilers.
19646 # On the NeXT, cc -E runs the code through the compiler's parser,
19647 # not just through cpp. "Syntax error" is here to catch this case.
19648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19649 /* end confdefs.h. */
19651 # include <limits.h>
19653 # include <assert.h>
19657 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19660 # Broken: fails on valid input.
19663 rm -f conftest.err conftest.i conftest.
$ac_ext
19665 # OK, works on sane cases. Now check whether nonexistent headers
19666 # can be detected and how.
19667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19668 /* end confdefs.h. */
19669 #include <ac_nonexistent.h>
19671 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19672 # Broken: success on invalid input.
19675 # Passes both tests.
19679 rm -f conftest.err conftest.i conftest.
$ac_ext
19682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19683 rm -f conftest.i conftest.err conftest.
$ac_ext
19684 if $ac_preproc_ok; then :
19689 ac_cv_prog_CXXCPP
=$CXXCPP
19692 CXXCPP
=$ac_cv_prog_CXXCPP
19694 ac_cv_prog_CXXCPP
=$CXXCPP
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19697 $as_echo "$CXXCPP" >&6; }
19698 ac_preproc_ok
=false
19699 for ac_cxx_preproc_warn_flag
in '' yes
19701 # Use a header file that comes with gcc, so configuring glibc
19702 # with a fresh cross-compiler works.
19703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19704 # <limits.h> exists even on freestanding compilers.
19705 # On the NeXT, cc -E runs the code through the compiler's parser,
19706 # not just through cpp. "Syntax error" is here to catch this case.
19707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19708 /* end confdefs.h. */
19710 # include <limits.h>
19712 # include <assert.h>
19716 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19719 # Broken: fails on valid input.
19722 rm -f conftest.err conftest.i conftest.
$ac_ext
19724 # OK, works on sane cases. Now check whether nonexistent headers
19725 # can be detected and how.
19726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19727 /* end confdefs.h. */
19728 #include <ac_nonexistent.h>
19730 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19731 # Broken: success on invalid input.
19734 # Passes both tests.
19738 rm -f conftest.err conftest.i conftest.
$ac_ext
19741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19742 rm -f conftest.i conftest.err conftest.
$ac_ext
19743 if $ac_preproc_ok; then :
19746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19748 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
19749 See \`config.log' for more details" "$LINENO" 5; }
19753 ac_cpp
='$CXXCPP $CPPFLAGS'
19754 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19755 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19756 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19759 _lt_caught_CXX_error
=yes
19763 ac_cpp
='$CXXCPP $CPPFLAGS'
19764 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19765 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19766 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19768 archive_cmds_need_lc_CXX
=no
19769 allow_undefined_flag_CXX
=
19770 always_export_symbols_CXX
=no
19771 archive_expsym_cmds_CXX
=
19772 compiler_needs_object_CXX
=no
19773 export_dynamic_flag_spec_CXX
=
19774 hardcode_direct_CXX
=no
19775 hardcode_direct_absolute_CXX
=no
19776 hardcode_libdir_flag_spec_CXX
=
19777 hardcode_libdir_flag_spec_ld_CXX
=
19778 hardcode_libdir_separator_CXX
=
19779 hardcode_minus_L_CXX
=no
19780 hardcode_shlibpath_var_CXX
=unsupported
19781 hardcode_automatic_CXX
=no
19782 inherit_rpath_CXX
=no
19784 module_expsym_cmds_CXX
=
19785 link_all_deplibs_CXX
=unknown
19786 old_archive_cmds_CXX
=$old_archive_cmds
19787 reload_flag_CXX
=$reload_flag
19788 reload_cmds_CXX
=$reload_cmds
19789 no_undefined_flag_CXX
=
19790 whole_archive_flag_spec_CXX
=
19791 enable_shared_with_static_runtimes_CXX
=no
19793 # Source file extension for C++ test sources.
19796 # Object file extension for compiled C++ test sources.
19800 # No sense in running all these tests if we already determined that
19801 # the CXX compiler isn't working. Some variables (like enable_shared)
19802 # are currently assumed to apply to all compilers on this platform,
19803 # and will be corrupted by setting them based on a non-working compiler.
19804 if test "$_lt_caught_CXX_error" != yes; then
19805 # Code to be used in simple compile tests
19806 lt_simple_compile_test_code
="int some_variable = 0;"
19808 # Code to be used in simple link tests
19809 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
19811 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19818 # If no C compiler was specified, use CC.
19821 # If no C compiler flags were specified, use CFLAGS.
19822 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19824 # Allow CC to be a program name with arguments.
19828 # save warnings/boilerplate of simple test code
19829 ac_outfile
=conftest.
$ac_objext
19830 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19831 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19832 _lt_compiler_boilerplate
=`cat conftest.err`
19835 ac_outfile
=conftest.
$ac_objext
19836 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19837 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19838 _lt_linker_boilerplate
=`cat conftest.err`
19842 # Allow CC to be a program name with arguments.
19847 lt_save_with_gnu_ld
=$with_gnu_ld
19848 lt_save_path_LD
=$lt_cv_path_LD
19849 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19850 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
19852 $as_unset lt_cv_prog_gnu_ld
19854 if test -n "${lt_cv_path_LDCXX+set}"; then
19855 lt_cv_path_LD
=$lt_cv_path_LDCXX
19857 $as_unset lt_cv_path_LD
19859 test -z "${LDCXX+set}" || LD
=$LDCXX
19863 for cc_temp
in $compiler""; do
19865 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19866 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19871 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19874 if test -n "$compiler"; then
19875 # We don't want -fno-exception when compiling C++ code, so set the
19876 # no_builtin_flag separately
19877 if test "$GXX" = yes; then
19878 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19880 lt_prog_compiler_no_builtin_flag_CXX
=
19883 if test "$GXX" = yes; then
19884 # Set up default GNU C++ configuration
19888 # Check whether --with-gnu-ld was given.
19889 if test "${with_gnu_ld+set}" = set; then :
19890 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19896 if test "$GCC" = yes; then
19897 # Check if gcc -print-prog-name=ld gives a path.
19898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19899 $as_echo_n "checking for ld used by $CC... " >&6; }
19902 # gcc leaves a trailing carriage return which upsets mingw
19903 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19905 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19908 # Accept absolute paths.
19910 re_direlt
='/[^/][^/]*/\.\./'
19911 # Canonicalize the pathname of ld
19912 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19913 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19914 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19916 test -z "$LD" && LD
="$ac_prog"
19919 # If it fails, then pretend we aren't using GCC.
19923 # If it is relative, then search for the first ld in PATH.
19924 with_gnu_ld
=unknown
19927 elif test "$with_gnu_ld" = yes; then
19928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19929 $as_echo_n "checking for GNU ld... " >&6; }
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19932 $as_echo_n "checking for non-GNU ld... " >&6; }
19934 if ${lt_cv_path_LD+:} false
; then :
19935 $as_echo_n "(cached) " >&6
19937 if test -z "$LD"; then
19938 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19939 for ac_dir
in $PATH; do
19941 test -z "$ac_dir" && ac_dir
=.
19942 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19943 lt_cv_path_LD
="$ac_dir/$ac_prog"
19944 # Check to see if the program is GNU ld. I'd rather use --version,
19945 # but apparently some variants of GNU ld only accept -v.
19946 # Break only if it was the GNU/non-GNU ld that we prefer.
19947 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19948 *GNU
* |
*'with BFD'*)
19949 test "$with_gnu_ld" != no
&& break
19952 test "$with_gnu_ld" != yes && break
19959 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19963 LD
="$lt_cv_path_LD"
19964 if test -n "$LD"; then
19965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19966 $as_echo "$LD" >&6; }
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19969 $as_echo "no" >&6; }
19971 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19973 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19974 if ${lt_cv_prog_gnu_ld+:} false
; then :
19975 $as_echo_n "(cached) " >&6
19977 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19978 case `$LD -v 2>&1 </dev/null` in
19979 *GNU
* |
*'with BFD'*)
19980 lt_cv_prog_gnu_ld
=yes
19983 lt_cv_prog_gnu_ld
=no
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19988 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19989 with_gnu_ld
=$lt_cv_prog_gnu_ld
19997 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19998 # archiving commands below assume that GNU ld is being used.
19999 if test "$with_gnu_ld" = yes; then
20000 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20001 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'
20003 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20004 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20006 # If archive_cmds runs LD, not CC, wlarc should be empty
20007 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20008 # investigate it a little bit more. (MM)
20011 # ancient GNU ld didn't support --whole-archive et. al.
20012 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20013 $GREP 'no-whole-archive' > /dev
/null
; then
20014 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20016 whole_archive_flag_spec_CXX
=
20022 # A generic and very simple default shared library creation
20023 # command for GNU C++ for the case where it uses the native
20024 # linker, instead of GNU ld. If possible, this setting should
20025 # overridden to take advantage of the native linker features on
20026 # the platform it is being used on.
20027 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20030 # Commands to make compiler produce verbose output that lists
20031 # what "hidden" libraries, object files and flags are used when
20032 # linking a shared library.
20033 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20041 # PORTME: fill in a description of your system's C++ link characteristics
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20043 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20047 # FIXME: insert proper C++ library support
20051 if test "$host_cpu" = ia64
; then
20052 # On IA64, the linker does run time linking by default, so we don't
20053 # have to do anything special.
20054 aix_use_runtimelinking
=no
20055 exp_sym_flag
='-Bexport'
20058 aix_use_runtimelinking
=no
20060 # Test if we are trying to use run time linking or normal
20061 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20062 # need to do runtime linking.
20063 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
20064 for ld_flag
in $LDFLAGS; do
20067 aix_use_runtimelinking
=yes
20075 exp_sym_flag
='-bexport'
20076 no_entry_flag
='-bnoentry'
20079 # When large executables or shared objects are built, AIX ld can
20080 # have problems creating the table of contents. If linking a library
20081 # or program results in "error TOC overflow" add -mminimal-toc to
20082 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20083 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20085 archive_cmds_CXX
=''
20086 hardcode_direct_CXX
=yes
20087 hardcode_direct_absolute_CXX
=yes
20088 hardcode_libdir_separator_CXX
=':'
20089 link_all_deplibs_CXX
=yes
20090 file_list_spec_CXX
='${wl}-f,'
20092 if test "$GXX" = yes; then
20093 case $host_os in aix4.
[012]|aix4.
[012].
*)
20094 # We only want to do this on AIX 4.2 and lower, the check
20095 # below for broken collect2 doesn't work under 4.3+
20096 collect2name
=`${CC} -print-prog-name=collect2`
20097 if test -f "$collect2name" &&
20098 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
20100 # We have reworked collect2
20103 # We have old collect2
20104 hardcode_direct_CXX
=unsupported
20105 # It fails to find uninstalled libraries when the uninstalled
20106 # path is not listed in the libpath. Setting hardcode_minus_L
20107 # to unsupported forces relinking
20108 hardcode_minus_L_CXX
=yes
20109 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20110 hardcode_libdir_separator_CXX
=
20113 shared_flag
='-shared'
20114 if test "$aix_use_runtimelinking" = yes; then
20115 shared_flag
="$shared_flag "'${wl}-G'
20119 if test "$host_cpu" = ia64
; then
20120 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20121 # chokes on -Wl,-G. The following line is correct:
20124 if test "$aix_use_runtimelinking" = yes; then
20125 shared_flag
='${wl}-G'
20127 shared_flag
='${wl}-bM:SRE'
20132 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
20133 # It seems that -bexpall does not export symbols beginning with
20134 # underscore (_), so it is better to generate a list of symbols to
20136 always_export_symbols_CXX
=yes
20137 if test "$aix_use_runtimelinking" = yes; then
20138 # Warning - without using the other runtime loading flags (-brtl),
20139 # -berok will link without error, but may produce a broken library.
20140 allow_undefined_flag_CXX
='-berok'
20141 # Determine the default libpath from the value encoded in an empty
20143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20144 /* end confdefs.h. */
20154 if ac_fn_cxx_try_link
"$LINENO"; then :
20156 lt_aix_libpath_sed
='
20157 /Import File Strings/,/^$/ {
20163 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20164 # Check for a 64-bit object if we didn't find anything.
20165 if test -z "$aix_libpath"; then
20166 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20169 rm -f core conftest.err conftest.
$ac_objext \
20170 conftest
$ac_exeext conftest.
$ac_ext
20171 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20173 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20175 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"
20177 if test "$host_cpu" = ia64
; then
20178 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
20179 allow_undefined_flag_CXX
="-z nodefs"
20180 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"
20182 # Determine the default libpath from the value encoded in an
20183 # empty executable.
20184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20185 /* end confdefs.h. */
20195 if ac_fn_cxx_try_link
"$LINENO"; then :
20197 lt_aix_libpath_sed
='
20198 /Import File Strings/,/^$/ {
20204 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20205 # Check for a 64-bit object if we didn't find anything.
20206 if test -z "$aix_libpath"; then
20207 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20210 rm -f core conftest.err conftest.
$ac_objext \
20211 conftest
$ac_exeext conftest.
$ac_ext
20212 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
20214 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
20215 # Warning - without using the other run time loading flags,
20216 # -berok will link without error, but may produce a broken library.
20217 no_undefined_flag_CXX
=' ${wl}-bernotok'
20218 allow_undefined_flag_CXX
=' ${wl}-berok'
20219 if test "$with_gnu_ld" = yes; then
20220 # We only use this code for GNU lds that support --whole-archive.
20221 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20223 # Exported symbols can be pulled into shared objects from archives
20224 whole_archive_flag_spec_CXX
='$convenience'
20226 archive_cmds_need_lc_CXX
=yes
20227 # This is similar to how AIX traditionally builds its shared
20229 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'
20235 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
20236 allow_undefined_flag_CXX
=unsupported
20237 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20238 # support --undefined. This deserves some investigation. FIXME
20239 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20246 case $cc_basename in
20248 # FIXME: insert proper C++ library support
20254 cygwin
* | mingw
* | pw32
* | cegcc
*)
20255 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20256 # as there is no search path for DLLs.
20257 hardcode_libdir_flag_spec_CXX
='-L$libdir'
20258 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
20259 allow_undefined_flag_CXX
=unsupported
20260 always_export_symbols_CXX
=no
20261 enable_shared_with_static_runtimes_CXX
=yes
20263 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
20264 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'
20265 # If the export-symbols file already is a .def file (1st line
20266 # is EXPORTS), use it as is; otherwise, prepend...
20267 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20268 cp $export_symbols $output_objdir/$soname.def;
20270 echo EXPORTS > $output_objdir/$soname.def;
20271 cat $export_symbols >> $output_objdir/$soname.def;
20273 $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'
20278 darwin
* | rhapsody
*)
20281 archive_cmds_need_lc_CXX
=no
20282 hardcode_direct_CXX
=no
20283 hardcode_automatic_CXX
=yes
20284 hardcode_shlibpath_var_CXX
=unsupported
20285 if test "$lt_cv_ld_force_load" = "yes"; then
20286 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\"`'
20288 whole_archive_flag_spec_CXX
=''
20290 link_all_deplibs_CXX
=yes
20291 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
20292 case $cc_basename in
20293 ifort
*) _lt_dar_can_shared
=yes ;;
20294 *) _lt_dar_can_shared
=$GCC ;;
20296 if test "$_lt_dar_can_shared" = "yes"; then
20297 output_verbose_link_cmd
=func_echo_all
20298 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}"
20299 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20300 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}"
20301 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}"
20302 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20303 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}"
20304 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}"
20314 case $cc_basename in
20316 # FIXME: insert proper C++ library support
20320 # Green Hills C++ Compiler
20321 # FIXME: insert proper C++ library support
20325 # FIXME: insert proper C++ library support
20332 # C++ shared libraries reported to be fairly broken before
20338 archive_cmds_need_lc_CXX
=no
20341 freebsd
* | dragonfly
*)
20342 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20351 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20352 link_all_deplibs_CXX
=yes
20356 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20357 hardcode_libdir_separator_CXX
=:
20358 export_dynamic_flag_spec_CXX
='${wl}-E'
20359 hardcode_direct_CXX
=yes
20360 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20361 # but as the default
20362 # location of the library.
20364 case $cc_basename in
20366 # FIXME: insert proper C++ library support
20370 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'
20371 # Commands to make compiler produce verbose output that lists
20372 # what "hidden" libraries, object files and flags are used when
20373 # linking a shared library.
20375 # There doesn't appear to be a way to prevent this compiler from
20376 # explicitly linking system object files so we need to strip them
20377 # from the output so that they don't get included in the library
20379 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"'
20382 if test "$GXX" = yes; then
20383 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'
20385 # FIXME: insert proper C++ library support
20393 if test $with_gnu_ld = no
; then
20394 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20395 hardcode_libdir_separator_CXX
=:
20401 export_dynamic_flag_spec_CXX
='${wl}-E'
20407 hardcode_direct_CXX
=no
20408 hardcode_shlibpath_var_CXX
=no
20411 hardcode_direct_CXX
=yes
20412 hardcode_direct_absolute_CXX
=yes
20413 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20414 # but as the default
20415 # location of the library.
20419 case $cc_basename in
20421 # FIXME: insert proper C++ library support
20427 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20430 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20433 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20436 # Commands to make compiler produce verbose output that lists
20437 # what "hidden" libraries, object files and flags are used when
20438 # linking a shared library.
20440 # There doesn't appear to be a way to prevent this compiler from
20441 # explicitly linking system object files so we need to strip them
20442 # from the output so that they don't get included in the library
20444 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"'
20447 if test "$GXX" = yes; then
20448 if test $with_gnu_ld = no
; then
20451 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20454 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20457 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'
20462 # FIXME: insert proper C++ library support
20470 hardcode_direct_CXX
=no
20471 hardcode_shlibpath_var_CXX
=no
20472 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20473 export_dynamic_flag_spec_CXX
='${wl}-E'
20474 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20475 # Instead, shared libraries are loaded at an image base (0x10000000 by
20476 # default) and relocated if they conflict, which is a slow very memory
20477 # consuming and fragmenting process. To avoid this, we pick a random,
20478 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20479 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20480 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'
20481 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'
20484 case $cc_basename in
20487 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'
20489 # Archives containing C++ object files must be created using
20490 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20491 # necessary to make sure instantiated templates are included
20493 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
20496 if test "$GXX" = yes; then
20497 if test "$with_gnu_ld" = no
; then
20498 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'
20500 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'
20503 link_all_deplibs_CXX
=yes
20506 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20507 hardcode_libdir_separator_CXX
=:
20508 inherit_rpath_CXX
=yes
20511 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20512 case $cc_basename in
20514 # Kuck and Associates, Inc. (KAI) C++ Compiler
20516 # KCC will only create a shared library if the output file
20517 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20518 # to its proper name (with version) after linking.
20519 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'
20520 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'
20521 # Commands to make compiler produce verbose output that lists
20522 # what "hidden" libraries, object files and flags are used when
20523 # linking a shared library.
20525 # There doesn't appear to be a way to prevent this compiler from
20526 # explicitly linking system object files so we need to strip them
20527 # from the output so that they don't get included in the library
20529 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"'
20531 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20532 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20534 # Archives containing C++ object files must be created using
20535 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20536 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
20541 # version 8.0 and above of icpc choke on multiply defined symbols
20542 # if we add $predep_objects and $postdep_objects, however 7.1 and
20543 # earlier do not add the objects themselves.
20544 case `$CC -V 2>&1` in
20546 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20547 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'
20549 *) # Version 8.0 or newer
20552 ia64
*) tmp_idyn
=' -i_dynamic';;
20554 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20555 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'
20558 archive_cmds_need_lc_CXX
=no
20559 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20560 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20561 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20564 # Portland Group C++ compiler
20566 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
20567 prelink_cmds_CXX
='tpldir=Template.dir~
20569 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20570 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20571 old_archive_cmds_CXX
='tpldir=Template.dir~
20573 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20574 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20576 archive_cmds_CXX
='tpldir=Template.dir~
20578 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20579 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20580 archive_expsym_cmds_CXX
='tpldir=Template.dir~
20582 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20583 $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'
20585 *) # Version 6 and above use weak symbols
20586 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20587 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'
20591 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
20592 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20593 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'
20597 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20598 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'
20600 runpath_var
=LD_RUN_PATH
20601 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20602 hardcode_libdir_separator_CXX
=:
20604 # Commands to make compiler produce verbose output that lists
20605 # what "hidden" libraries, object files and flags are used when
20606 # linking a shared library.
20608 # There doesn't appear to be a way to prevent this compiler from
20609 # explicitly linking system object files so we need to strip them
20610 # from the output so that they don't get included in the library
20612 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'
20614 xl
* | mpixl
* | bgxl
*)
20615 # IBM XL 8.0 on PPC, with GNU ld
20616 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20617 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20618 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20619 if test "x$supports_anon_versioning" = xyes
; then
20620 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
20621 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20622 echo "local: *; };" >> $output_objdir/$libname.ver~
20623 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20627 case `$CC -V 2>&1 | sed 5q` in
20630 no_undefined_flag_CXX
=' -zdefs'
20631 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20632 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'
20633 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20634 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'
20635 compiler_needs_object_CXX
=yes
20637 # Not sure whether something based on
20638 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20640 output_verbose_link_cmd
='func_echo_all'
20642 # Archives containing C++ object files must be created using
20643 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20644 # necessary to make sure instantiated templates are included
20646 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20654 # FIXME: insert proper C++ library support
20659 # FIXME: insert proper C++ library support
20664 case $cc_basename in
20666 # FIXME: insert proper C++ library support
20670 # FIXME: insert proper C++ library support
20677 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20678 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20680 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20681 hardcode_direct_CXX
=yes
20682 hardcode_shlibpath_var_CXX
=no
20684 # Workaround some broken pre-1.5 toolchains
20685 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20693 # C++ shared libraries are fairly broken
20698 if test -f /usr
/libexec
/ld.so
; then
20699 hardcode_direct_CXX
=yes
20700 hardcode_shlibpath_var_CXX
=no
20701 hardcode_direct_absolute_CXX
=yes
20702 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20703 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20704 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20705 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20706 export_dynamic_flag_spec_CXX
='${wl}-E'
20707 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20709 output_verbose_link_cmd
=func_echo_all
20715 osf3
* | osf4
* | osf5
*)
20716 case $cc_basename in
20718 # Kuck and Associates, Inc. (KAI) C++ Compiler
20720 # KCC will only create a shared library if the output file
20721 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20722 # to its proper name (with version) after linking.
20723 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'
20725 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20726 hardcode_libdir_separator_CXX
=:
20728 # Archives containing C++ object files must be created using
20729 # the KAI C++ compiler.
20731 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
20732 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
20736 # Rational C++ 2.4.1
20737 # FIXME: insert proper C++ library support
20743 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20744 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'
20745 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20748 allow_undefined_flag_CXX
=' -expect_unresolved \*'
20749 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'
20750 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20751 echo "-hidden">> $lib.exp~
20752 $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~
20754 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20758 hardcode_libdir_separator_CXX
=:
20760 # Commands to make compiler produce verbose output that lists
20761 # what "hidden" libraries, object files and flags are used when
20762 # linking a shared library.
20764 # There doesn't appear to be a way to prevent this compiler from
20765 # explicitly linking system object files so we need to strip them
20766 # from the output so that they don't get included in the library
20768 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"'
20771 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20772 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20775 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'
20778 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'
20782 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20783 hardcode_libdir_separator_CXX
=:
20785 # Commands to make compiler produce verbose output that lists
20786 # what "hidden" libraries, object files and flags are used when
20787 # linking a shared library.
20788 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20791 # FIXME: insert proper C++ library support
20799 # FIXME: insert proper C++ library support
20804 case $cc_basename in
20807 # FIXME: insert proper C++ library support
20812 # FIXME: insert proper C++ library support
20816 # FIXME: insert proper C++ library support
20823 case $cc_basename in
20825 # Sun C++ 4.2, 5.x and Centerline C++
20826 archive_cmds_need_lc_CXX
=yes
20827 no_undefined_flag_CXX
=' -zdefs'
20828 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20829 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20830 $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'
20832 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20833 hardcode_shlibpath_var_CXX
=no
20835 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20837 # The compiler driver will combine and reorder linker options,
20838 # but understands `-z linker_flag'.
20839 # Supported since Solaris 2.6 (maybe 2.5.1?)
20840 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
20843 link_all_deplibs_CXX
=yes
20845 output_verbose_link_cmd
='func_echo_all'
20847 # Archives containing C++ object files must be created using
20848 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20849 # necessary to make sure instantiated templates are included
20851 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20854 # Green Hills C++ Compiler
20855 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20857 # The C++ compiler must be used to create the archive.
20858 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20861 # GNU C++ compiler with Solaris linker
20862 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20863 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
20864 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
20865 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20866 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20867 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20869 # Commands to make compiler produce verbose output that lists
20870 # what "hidden" libraries, object files and flags are used when
20871 # linking a shared library.
20872 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20874 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20876 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20877 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20878 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20880 # Commands to make compiler produce verbose output that lists
20881 # what "hidden" libraries, object files and flags are used when
20882 # linking a shared library.
20883 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20886 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20888 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20890 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20898 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20899 no_undefined_flag_CXX
='${wl}-z,text'
20900 archive_cmds_need_lc_CXX
=no
20901 hardcode_shlibpath_var_CXX
=no
20902 runpath_var
='LD_RUN_PATH'
20904 case $cc_basename in
20906 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20907 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20910 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20911 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20916 sysv5
* | sco3.2v5
* | sco5v6
*)
20917 # Note: We can NOT use -z defs as we might desire, because we do not
20918 # link with -lc, and that would cause any symbols used from libc to
20919 # always be unresolved, which means just about no library would
20920 # ever link correctly. If we're not using GNU ld we use -z text
20921 # though, which does catch some bad symbols but isn't as heavy-handed
20923 no_undefined_flag_CXX
='${wl}-z,text'
20924 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20925 archive_cmds_need_lc_CXX
=no
20926 hardcode_shlibpath_var_CXX
=no
20927 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20928 hardcode_libdir_separator_CXX
=':'
20929 link_all_deplibs_CXX
=yes
20930 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20931 runpath_var
='LD_RUN_PATH'
20933 case $cc_basename in
20935 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20936 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20937 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20938 '"$old_archive_cmds_CXX"
20939 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20940 '"$reload_cmds_CXX"
20943 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20944 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20950 case $cc_basename in
20952 # NonStop-UX NCC 3.20
20953 # FIXME: insert proper C++ library support
20957 # FIXME: insert proper C++ library support
20964 # FIXME: insert proper C++ library support
20969 # FIXME: insert proper C++ library support
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20975 $as_echo "$ld_shlibs_CXX" >&6; }
20976 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20982 ## There is no encapsulation within the following macros, do not change
20983 ## the running order or otherwise move them around unless you know exactly
20984 ## what you are doing...
20985 # Dependencies to place before and after the object being linked:
20986 predep_objects_CXX
=
20987 postdep_objects_CXX
=
20990 compiler_lib_search_path_CXX
=
20992 cat > conftest.
$ac_ext <<_LT_EOF
20996 Foo (void) { a = 0; }
21002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21003 (eval $ac_compile) 2>&5
21005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21006 test $ac_status = 0; }; then
21007 # Parse the compiler output and extract the necessary
21008 # objects, libraries and library flags.
21010 # Sentinel used to keep track of whether or not we are before
21011 # the conftest object file.
21012 pre_test_object_deps_done
=no
21014 for p
in `eval "$output_verbose_link_cmd"`; do
21018 # Some compilers place space between "-{L,R}" and the path.
21019 # Remove the space.
21020 if test $p = "-L" ||
21021 test $p = "-R"; then
21028 if test "$pre_test_object_deps_done" = no
; then
21031 # Internal compiler library paths should come after those
21032 # provided the user. The postdeps already come after the
21033 # user supplied libs so there is no need to process them.
21034 if test -z "$compiler_lib_search_path_CXX"; then
21035 compiler_lib_search_path_CXX
="${prev}${p}"
21037 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
21040 # The "-l" case would never come before the object being
21041 # linked, so don't bother handling this case.
21044 if test -z "$postdeps_CXX"; then
21045 postdeps_CXX
="${prev}${p}"
21047 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
21053 # This assumes that the test object file only shows up
21054 # once in the compiler output.
21055 if test "$p" = "conftest.$objext"; then
21056 pre_test_object_deps_done
=yes
21060 if test "$pre_test_object_deps_done" = no
; then
21061 if test -z "$predep_objects_CXX"; then
21062 predep_objects_CXX
="$p"
21064 predep_objects_CXX
="$predep_objects_CXX $p"
21067 if test -z "$postdep_objects_CXX"; then
21068 postdep_objects_CXX
="$p"
21070 postdep_objects_CXX
="$postdep_objects_CXX $p"
21075 *) ;; # Ignore the rest.
21083 echo "libtool.m4: error: problem compiling CXX test program"
21086 $RM -f confest.
$objext
21088 # PORTME: override above test on systems where it is broken
21091 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21092 # hack all around it, let's just trust "g++" to DTRT.
21093 predep_objects_CXX
=
21094 postdep_objects_CXX
=
21099 case `$CC -V 2>&1 | sed 5q` in
21103 # The more standards-conforming stlport4 library is
21104 # incompatible with the Cstd library. Avoid specifying
21105 # it if it's in CXXFLAGS. Ignore libCrun as
21106 # -library=stlport4 depends on it.
21107 case " $CXX $CXXFLAGS " in
21108 *" -library=stlport4 "*)
21109 solaris_use_stlport4
=yes
21113 if test "$solaris_use_stlport4" != yes; then
21114 postdeps_CXX
='-library=Cstd -library=Crun'
21121 case $cc_basename in
21123 # The more standards-conforming stlport4 library is
21124 # incompatible with the Cstd library. Avoid specifying
21125 # it if it's in CXXFLAGS. Ignore libCrun as
21126 # -library=stlport4 depends on it.
21127 case " $CXX $CXXFLAGS " in
21128 *" -library=stlport4 "*)
21129 solaris_use_stlport4
=yes
21133 # Adding this requires a known-good setup of shared libraries for
21134 # Sun compiler versions before 5.6, else PIC objects from an old
21135 # archive will be linked into the output, leading to subtle bugs.
21136 if test "$solaris_use_stlport4" != yes; then
21137 postdeps_CXX
='-library=Cstd -library=Crun'
21145 case " $postdeps_CXX " in
21146 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
21148 compiler_lib_search_dirs_CXX
=
21149 if test -n "${compiler_lib_search_path_CXX}"; then
21150 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21183 lt_prog_compiler_wl_CXX
=
21184 lt_prog_compiler_pic_CXX
=
21185 lt_prog_compiler_static_CXX
=
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21188 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21190 # C++ specific cases for pic, static, wl, etc.
21191 if test "$GXX" = yes; then
21192 lt_prog_compiler_wl_CXX
='-Wl,'
21193 lt_prog_compiler_static_CXX
='-static'
21197 # All AIX code is PIC.
21198 if test "$host_cpu" = ia64
; then
21199 # AIX 5 now supports IA64 processor
21200 lt_prog_compiler_static_CXX
='-Bstatic'
21202 lt_prog_compiler_pic_CXX
='-fPIC'
21208 # see comment about AmigaOS4 .so support
21209 lt_prog_compiler_pic_CXX
='-fPIC'
21212 # FIXME: we need at least 68020 code to build shared libraries, but
21213 # adding the `-m68020' flag to GCC prevents building anything better,
21215 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
21220 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21221 # PIC is the default for these OSes.
21223 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
21224 # This hack is so that the source file can tell whether it is being
21225 # built for inclusion in a dll (and should export symbols for example).
21226 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21227 # (--disable-auto-import) libraries
21228 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
21230 darwin
* | rhapsody
*)
21231 # PIC is the default on this platform
21232 # Common symbols not allowed in MH_DYLIB files
21233 lt_prog_compiler_pic_CXX
='-fno-common'
21236 # DJGPP does not support shared libraries at all
21237 lt_prog_compiler_pic_CXX
=
21240 # PIC is the default for Haiku.
21241 # The "-static" flag exists, but is broken.
21242 lt_prog_compiler_static_CXX
=
21245 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21246 # Instead, we relocate shared libraries at runtime.
21249 if test -d /usr
/nec
; then
21250 lt_prog_compiler_pic_CXX
=-Kconform_pic
21254 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21255 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21256 # sets the default TLS model and affects inlining.
21261 lt_prog_compiler_pic_CXX
='-fPIC'
21266 # QNX uses GNU C++, but need to define -shared option too, otherwise
21267 # it will coredump.
21268 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21271 lt_prog_compiler_pic_CXX
='-fPIC'
21277 # All AIX code is PIC.
21278 if test "$host_cpu" = ia64
; then
21279 # AIX 5 now supports IA64 processor
21280 lt_prog_compiler_static_CXX
='-Bstatic'
21282 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
21286 case $cc_basename in
21288 # Green Hills C++ Compiler
21289 # _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"
21294 case $cc_basename in
21296 lt_prog_compiler_pic_CXX
='-KPIC'
21299 # Green Hills C++ Compiler
21300 lt_prog_compiler_pic_CXX
='-pic'
21306 freebsd
* | dragonfly
*)
21307 # FreeBSD uses GNU C++
21309 hpux9
* | hpux10
* | hpux11
*)
21310 case $cc_basename in
21312 lt_prog_compiler_wl_CXX
='-Wl,'
21313 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21314 if test "$host_cpu" != ia64
; then
21315 lt_prog_compiler_pic_CXX
='+Z'
21319 lt_prog_compiler_wl_CXX
='-Wl,'
21320 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21326 lt_prog_compiler_pic_CXX
='+Z'
21335 # This is c89, which is MS Visual C++ (no shared libs)
21336 # Anyone wants to do a port?
21338 irix5
* | irix6
* | nonstopux
*)
21339 case $cc_basename in
21341 lt_prog_compiler_wl_CXX
='-Wl,'
21342 lt_prog_compiler_static_CXX
='-non_shared'
21343 # CC pic flag -KPIC is the default.
21349 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21350 case $cc_basename in
21353 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21354 lt_prog_compiler_pic_CXX
='-fPIC'
21357 # old Intel C++ for x86_64 which still supported -KPIC.
21358 lt_prog_compiler_wl_CXX
='-Wl,'
21359 lt_prog_compiler_pic_CXX
='-KPIC'
21360 lt_prog_compiler_static_CXX
='-static'
21363 # Intel C++, used to be incompatible with GCC.
21364 # ICC 10 doesn't accept -KPIC any more.
21365 lt_prog_compiler_wl_CXX
='-Wl,'
21366 lt_prog_compiler_pic_CXX
='-fPIC'
21367 lt_prog_compiler_static_CXX
='-static'
21370 # Portland Group C++ compiler
21371 lt_prog_compiler_wl_CXX
='-Wl,'
21372 lt_prog_compiler_pic_CXX
='-fpic'
21373 lt_prog_compiler_static_CXX
='-Bstatic'
21377 # Make sure the PIC flag is empty. It appears that all Alpha
21378 # Linux and Compaq Tru64 Unix objects are PIC.
21379 lt_prog_compiler_pic_CXX
=
21380 lt_prog_compiler_static_CXX
='-non_shared'
21382 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
21383 # IBM XL 8.0, 9.0 on PPC and BlueGene
21384 lt_prog_compiler_wl_CXX
='-Wl,'
21385 lt_prog_compiler_pic_CXX
='-qpic'
21386 lt_prog_compiler_static_CXX
='-qstaticlink'
21389 case `$CC -V 2>&1 | sed 5q` in
21392 lt_prog_compiler_pic_CXX
='-KPIC'
21393 lt_prog_compiler_static_CXX
='-Bstatic'
21394 lt_prog_compiler_wl_CXX
='-Qoption ld '
21405 case $cc_basename in
21407 lt_prog_compiler_pic_CXX
='-W c,exportall'
21416 # QNX uses GNU C++, but need to define -shared option too, otherwise
21417 # it will coredump.
21418 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21420 osf3
* | osf4
* | osf5
*)
21421 case $cc_basename in
21423 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21426 # Rational C++ 2.4.1
21427 lt_prog_compiler_pic_CXX
='-pic'
21430 # Digital/Compaq C++
21431 lt_prog_compiler_wl_CXX
='-Wl,'
21432 # Make sure the PIC flag is empty. It appears that all Alpha
21433 # Linux and Compaq Tru64 Unix objects are PIC.
21434 lt_prog_compiler_pic_CXX
=
21435 lt_prog_compiler_static_CXX
='-non_shared'
21444 case $cc_basename in
21446 # Sun C++ 4.2, 5.x and Centerline C++
21447 lt_prog_compiler_pic_CXX
='-KPIC'
21448 lt_prog_compiler_static_CXX
='-Bstatic'
21449 lt_prog_compiler_wl_CXX
='-Qoption ld '
21452 # Green Hills C++ Compiler
21453 lt_prog_compiler_pic_CXX
='-PIC'
21460 case $cc_basename in
21463 lt_prog_compiler_pic_CXX
='-pic'
21464 lt_prog_compiler_static_CXX
='-Bstatic'
21468 lt_prog_compiler_pic_CXX
='-pic'
21474 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21475 case $cc_basename in
21477 lt_prog_compiler_wl_CXX
='-Wl,'
21478 lt_prog_compiler_pic_CXX
='-KPIC'
21479 lt_prog_compiler_static_CXX
='-Bstatic'
21484 case $cc_basename in
21486 # NonStop-UX NCC 3.20
21487 lt_prog_compiler_pic_CXX
='-KPIC'
21496 lt_prog_compiler_can_build_shared_CXX
=no
21502 # For platforms which do not support PIC, -DPIC is meaningless:
21504 lt_prog_compiler_pic_CXX
=
21507 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
21510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21511 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21516 # Check to make sure the PIC flag actually works.
21518 if test -n "$lt_prog_compiler_pic_CXX"; then
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21520 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21521 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
21522 $as_echo_n "(cached) " >&6
21524 lt_cv_prog_compiler_pic_works_CXX
=no
21525 ac_outfile
=conftest.
$ac_objext
21526 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21527 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
21528 # Insert the option either (1) after the last *FLAGS variable, or
21529 # (2) before a word containing "conftest.", or (3) at the end.
21530 # Note that $ac_compile itself does not contain backslashes and begins
21531 # with a dollar sign (not a hyphen), so the echo should work correctly.
21532 # The option is referenced via a variable to avoid confusing sed.
21533 lt_compile
=`echo "$ac_compile" | $SED \
21534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21536 -e 's:$: $lt_compiler_flag:'`
21537 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21538 (eval "$lt_compile" 2>conftest.err
)
21540 cat conftest.err
>&5
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 if (exit $ac_status) && test -s "$ac_outfile"; then
21543 # The compiler can only warn and ignore the option if not recognized
21544 # So say no if there are warnings other than the usual output.
21545 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
21546 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21547 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21548 lt_cv_prog_compiler_pic_works_CXX
=yes
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21555 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21557 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
21558 case $lt_prog_compiler_pic_CXX in
21560 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
21563 lt_prog_compiler_pic_CXX
=
21564 lt_prog_compiler_can_build_shared_CXX
=no
21572 # Check to make sure the static flag actually works.
21574 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21576 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21577 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
21578 $as_echo_n "(cached) " >&6
21580 lt_cv_prog_compiler_static_works_CXX
=no
21581 save_LDFLAGS
="$LDFLAGS"
21582 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21583 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
21584 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21585 # The linker can only warn and ignore the option if not recognized
21586 # So say no if there are warnings
21587 if test -s conftest.err
; then
21588 # Append any errors to the config.log.
21589 cat conftest.err
1>&5
21590 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
21591 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21592 if diff conftest.exp conftest.er2
>/dev
/null
; then
21593 lt_cv_prog_compiler_static_works_CXX
=yes
21596 lt_cv_prog_compiler_static_works_CXX
=yes
21600 LDFLAGS
="$save_LDFLAGS"
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21604 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21606 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
21609 lt_prog_compiler_static_CXX
=
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21616 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21617 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21618 $as_echo_n "(cached) " >&6
21620 lt_cv_prog_compiler_c_o_CXX
=no
21621 $RM -r conftest
2>/dev
/null
21625 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21627 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21628 # Insert the option either (1) after the last *FLAGS variable, or
21629 # (2) before a word containing "conftest.", or (3) at the end.
21630 # Note that $ac_compile itself does not contain backslashes and begins
21631 # with a dollar sign (not a hyphen), so the echo should work correctly.
21632 lt_compile
=`echo "$ac_compile" | $SED \
21633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21635 -e 's:$: $lt_compiler_flag:'`
21636 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21637 (eval "$lt_compile" 2>out
/conftest.err
)
21639 cat out
/conftest.err
>&5
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21643 # The compiler can only warn and ignore the option if not recognized
21644 # So say no if there are warnings
21645 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21646 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21647 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21648 lt_cv_prog_compiler_c_o_CXX
=yes
21653 # SGI C++ compiler will create directory out/ii_files/ for
21654 # template instantiation
21655 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21656 $RM out
/* && rmdir out
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21663 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21668 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21669 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21670 $as_echo_n "(cached) " >&6
21672 lt_cv_prog_compiler_c_o_CXX
=no
21673 $RM -r conftest
2>/dev
/null
21677 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21679 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21680 # Insert the option either (1) after the last *FLAGS variable, or
21681 # (2) before a word containing "conftest.", or (3) at the end.
21682 # Note that $ac_compile itself does not contain backslashes and begins
21683 # with a dollar sign (not a hyphen), so the echo should work correctly.
21684 lt_compile
=`echo "$ac_compile" | $SED \
21685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21687 -e 's:$: $lt_compiler_flag:'`
21688 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21689 (eval "$lt_compile" 2>out
/conftest.err
)
21691 cat out
/conftest.err
>&5
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21695 # The compiler can only warn and ignore the option if not recognized
21696 # So say no if there are warnings
21697 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21698 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21699 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21700 lt_cv_prog_compiler_c_o_CXX
=yes
21705 # SGI C++ compiler will create directory out/ii_files/ for
21706 # template instantiation
21707 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21708 $RM out
/* && rmdir out
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21715 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21720 hard_links
="nottested"
21721 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
21722 # do not overwrite the value of need_locks provided by the user
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21724 $as_echo_n "checking if we can lock with hard links... " >&6; }
21727 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21729 ln conftest.a conftest.b
2>&5 || hard_links
=no
21730 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21732 $as_echo "$hard_links" >&6; }
21733 if test "$hard_links" = no
; then
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21735 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21745 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21747 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21750 # If we're using GNU nm, then we don't want the "-C" option.
21751 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21752 # Also, AIX nm treats weak defined symbols like other global defined
21753 # symbols, whereas GNU nm marks them as "W".
21754 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
21755 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'
21757 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'
21761 export_symbols_cmds_CXX
="$ltdll_cmds"
21763 cygwin
* | mingw
* | cegcc
*)
21764 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'
21767 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21770 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21773 $as_echo "$ld_shlibs_CXX" >&6; }
21774 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21776 with_gnu_ld_CXX
=$with_gnu_ld
21784 # Do we need to explicitly link libc?
21786 case "x$archive_cmds_need_lc_CXX" in
21788 # Assume -lc should be added
21789 archive_cmds_need_lc_CXX
=yes
21791 if test "$enable_shared" = yes && test "$GCC" = yes; then
21792 case $archive_cmds_CXX in
21794 # FIXME: we may have to deal with multi-command sequences.
21797 # Test whether the compiler implicitly links with -lc since on some
21798 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21799 # to ld, don't add -lc before -lgcc.
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21801 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21802 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
21803 $as_echo_n "(cached) " >&6
21806 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21809 (eval $ac_compile) 2>&5
21811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21812 test $ac_status = 0; } 2>conftest.err
; then
21815 libobjs
=conftest.
$ac_objext
21817 wl
=$lt_prog_compiler_wl_CXX
21818 pic_flag
=$lt_prog_compiler_pic_CXX
21824 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
21825 allow_undefined_flag_CXX
=
21826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21827 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
21829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21830 test $ac_status = 0; }
21832 lt_cv_archive_cmds_need_lc_CXX
=no
21834 lt_cv_archive_cmds_need_lc_CXX
=yes
21836 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
21838 cat conftest.err
1>&5
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21844 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21845 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21916 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21918 library_names_spec
=
21919 libname_spec
='lib$name'
21923 postuninstall_cmds
=
21927 shlibpath_overrides_runpath
=unknown
21929 dynamic_linker
="$host_os ld.so"
21930 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21931 need_lib_prefix
=unknown
21932 hardcode_into_libs
=no
21934 # when you set need_version to no, make sure it does not cause -set_version
21935 # flags to be left without arguments
21936 need_version
=unknown
21941 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21942 shlibpath_var
=LIBPATH
21944 # AIX 3 has no versioning support, so we append a major version to the name.
21945 soname_spec
='${libname}${release}${shared_ext}$major'
21952 hardcode_into_libs
=yes
21953 if test "$host_cpu" = ia64
; then
21954 # AIX 5 supports IA64
21955 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21956 shlibpath_var
=LD_LIBRARY_PATH
21958 # With GCC up to 2.95.x, collect2 would create an import file
21959 # for dependence libraries. The import file would start with
21960 # the line `#! .'. This would cause the generated library to
21961 # depend on `.', always an invalid library. This was fixed in
21962 # development snapshots of GCC prior to 3.0.
21964 aix4 | aix4.
[01] | aix4.
[01].
*)
21965 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21967 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21970 can_build_shared
=no
21974 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21975 # soname into executable. Probably we can add versioning support to
21976 # collect2, so additional links can be useful in future.
21977 if test "$aix_use_runtimelinking" = yes; then
21978 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21979 # instead of lib<name>.a to let people know that these are not
21980 # typical AIX shared libraries.
21981 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21983 # We preserve .a as extension for shared libraries through AIX4.2
21984 # and later when we are not doing run time linking.
21985 library_names_spec
='${libname}${release}.a $libname.a'
21986 soname_spec
='${libname}${release}${shared_ext}$major'
21988 shlibpath_var
=LIBPATH
21995 # Since July 2007 AmigaOS4 officially supports .so libraries.
21996 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21997 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22000 library_names_spec
='$libname.ixlibrary $libname.a'
22001 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22002 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'
22008 library_names_spec
='${libname}${shared_ext}'
22009 dynamic_linker
="$host_os ld.so"
22010 shlibpath_var
=LIBRARY_PATH
22016 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22017 soname_spec
='${libname}${release}${shared_ext}$major'
22018 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
22019 shlibpath_var
=LD_LIBRARY_PATH
22020 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22021 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
22022 # the default ld.so.conf also contains /usr/contrib/lib and
22023 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22024 # libtool to hard-code these into programs
22027 cygwin
* | mingw
* | pw32
* | cegcc
*)
22028 version_type
=windows
22033 case $GCC,$host_os in
22034 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
22035 library_names_spec
='$libname.dll.a'
22036 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22037 postinstall_cmds
='base_file=`basename \${file}`~
22038 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22039 dldir=$destdir/`dirname \$dlpath`~
22040 test -d \$dldir || mkdir -p \$dldir~
22041 $install_prog $dir/$dlname \$dldir/$dlname~
22042 chmod a+x \$dldir/$dlname~
22043 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22044 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22046 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22047 dlpath=$dir/\$dldll~
22049 shlibpath_overrides_runpath
=yes
22053 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22054 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22058 # MinGW DLLs use traditional 'lib' prefix
22059 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22062 # pw32 DLLs use 'pw' prefix rather than 'lib'
22063 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22069 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22072 dynamic_linker
='Win32 ld.exe'
22073 # FIXME: first we should search . and the directory the executable is in
22077 darwin
* | rhapsody
*)
22078 dynamic_linker
="$host_os dyld"
22079 version_type
=darwin
22082 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22083 soname_spec
='${libname}${release}${major}$shared_ext'
22084 shlibpath_overrides_runpath
=yes
22085 shlibpath_var
=DYLD_LIBRARY_PATH
22086 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
22088 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
22095 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22096 soname_spec
='${libname}${release}${shared_ext}$major'
22097 shlibpath_var
=LD_LIBRARY_PATH
22100 freebsd
* | dragonfly
*)
22101 # DragonFly does not have aout. When/if they implement a new
22102 # versioning mechanism, adjust this.
22103 if test -x /usr
/bin
/objformat
; then
22104 objformat
=`/usr/bin/objformat`
22107 freebsd
[23].
*) objformat
=aout
;;
22108 *) objformat
=elf
;;
22111 version_type
=freebsd-
$objformat
22112 case $version_type in
22114 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22119 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22123 shlibpath_var
=LD_LIBRARY_PATH
22126 shlibpath_overrides_runpath
=yes
22128 freebsd3.
[01]* | freebsdelf3.
[01]*)
22129 shlibpath_overrides_runpath
=yes
22130 hardcode_into_libs
=yes
22132 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
22133 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
22134 shlibpath_overrides_runpath
=no
22135 hardcode_into_libs
=yes
22137 *) # from 4.6 on, and DragonFly
22138 shlibpath_overrides_runpath
=yes
22139 hardcode_into_libs
=yes
22148 dynamic_linker
="$host_os runtime_loader"
22149 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22150 soname_spec
='${libname}${release}${shared_ext}$major'
22151 shlibpath_var
=LIBRARY_PATH
22152 shlibpath_overrides_runpath
=yes
22153 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22154 hardcode_into_libs
=yes
22157 hpux9
* | hpux10
* | hpux11
*)
22158 # Give a soname corresponding to the major version so that dld.sl refuses to
22159 # link against other versions.
22166 hardcode_into_libs
=yes
22167 dynamic_linker
="$host_os dld.so"
22168 shlibpath_var
=LD_LIBRARY_PATH
22169 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22170 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22171 soname_spec
='${libname}${release}${shared_ext}$major'
22172 if test "X$HPUX_IA64_MODE" = X32
; then
22173 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22175 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
22177 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22181 hardcode_into_libs
=yes
22182 dynamic_linker
="$host_os dld.sl"
22183 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
22184 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
22185 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22186 soname_spec
='${libname}${release}${shared_ext}$major'
22187 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22188 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
22192 dynamic_linker
="$host_os dld.sl"
22193 shlibpath_var
=SHLIB_PATH
22194 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
22195 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22196 soname_spec
='${libname}${release}${shared_ext}$major'
22199 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22200 postinstall_cmds
='chmod 555 $lib'
22201 # or fails outright, so override atomically:
22202 install_override_mode
=555
22209 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22210 soname_spec
='${libname}${release}${shared_ext}$major'
22211 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
22212 shlibpath_var
=LD_LIBRARY_PATH
22213 shlibpath_overrides_runpath
=no
22214 hardcode_into_libs
=yes
22217 irix5
* | irix6
* | nonstopux
*)
22219 nonstopux
*) version_type
=nonstopux
;;
22221 if test "$lt_cv_prog_gnu_ld" = yes; then
22229 soname_spec
='${libname}${release}${shared_ext}$major'
22230 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22232 irix5
* | nonstopux
*)
22233 libsuff
= shlibsuff
=
22236 case $LD in # libtool.m4 will add one of these switches to LD
22237 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
22238 libsuff
= shlibsuff
= libmagic
=32-bit;;
22239 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
22240 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
22241 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
22242 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
22243 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
22247 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
22248 shlibpath_overrides_runpath
=no
22249 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22250 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
22251 hardcode_into_libs
=yes
22254 # No shared lib support for Linux oldld, aout, or coff.
22255 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
22259 # This must be Linux ELF.
22261 # uclinux* changes (here and below) have been submitted to the libtool
22262 # project, but have not yet been accepted: they are GCC-local changes
22263 # for the time being. (See
22264 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22265 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
22269 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22270 soname_spec
='${libname}${release}${shared_ext}$major'
22271 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22272 shlibpath_var
=LD_LIBRARY_PATH
22273 shlibpath_overrides_runpath
=no
22275 # Some binutils ld are patched to set DT_RUNPATH
22276 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
22277 $as_echo_n "(cached) " >&6
22279 lt_cv_shlibpath_overrides_runpath
=no
22280 save_LDFLAGS
=$LDFLAGS
22281 save_libdir
=$libdir
22282 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22283 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22285 /* end confdefs.h. */
22295 if ac_fn_cxx_try_link
"$LINENO"; then :
22296 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
22297 lt_cv_shlibpath_overrides_runpath
=yes
22300 rm -f core conftest.err conftest.
$ac_objext \
22301 conftest
$ac_exeext conftest.
$ac_ext
22302 LDFLAGS
=$save_LDFLAGS
22303 libdir
=$save_libdir
22307 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
22309 # This implies no fast_install, which is unacceptable.
22310 # Some rework will be needed to allow for fast_install
22311 # before this can be enabled.
22312 hardcode_into_libs
=yes
22314 # Append ld.so.conf contents to the search path
22315 if test -f /etc
/ld.so.conf
; then
22316 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' ' '`
22317 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
22320 # We used to test for /lib/ld.so.1 and disable shared libraries on
22321 # powerpc, because MkLinux only supported shared libraries with the
22322 # GNU dynamic linker. Since this was broken with cross compilers,
22323 # most powerpc-linux boxes support dynamic linking these days and
22324 # people can always --disable-shared, the test was removed, and we
22325 # assume the GNU/Linux dynamic linker is in use.
22326 dynamic_linker
='GNU/Linux ld.so'
22333 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
22334 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22335 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22336 dynamic_linker
='NetBSD (a.out) ld.so'
22338 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22339 soname_spec
='${libname}${release}${shared_ext}$major'
22340 dynamic_linker
='NetBSD ld.elf_so'
22342 shlibpath_var
=LD_LIBRARY_PATH
22343 shlibpath_overrides_runpath
=yes
22344 hardcode_into_libs
=yes
22349 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22350 shlibpath_var
=LD_LIBRARY_PATH
22351 shlibpath_overrides_runpath
=yes
22358 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22359 soname_spec
='${libname}${release}${shared_ext}$major'
22360 shlibpath_var
=LD_LIBRARY_PATH
22361 shlibpath_overrides_runpath
=no
22362 hardcode_into_libs
=yes
22363 dynamic_linker
='ldqnx.so'
22368 sys_lib_dlsearch_path_spec
="/usr/lib"
22370 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22372 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
22373 *) need_version
=no
;;
22375 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22376 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22377 shlibpath_var
=LD_LIBRARY_PATH
22378 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22380 openbsd2.
[89] | openbsd2.
[89].
*)
22381 shlibpath_overrides_runpath
=no
22384 shlibpath_overrides_runpath
=yes
22388 shlibpath_overrides_runpath
=yes
22393 libname_spec
='$name'
22396 library_names_spec
='$libname${shared_ext} $libname.a'
22397 dynamic_linker
='OS/2 ld.exe'
22398 shlibpath_var
=LIBPATH
22401 osf3
* | osf4
* | osf5
*)
22405 soname_spec
='${libname}${release}${shared_ext}$major'
22406 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22407 shlibpath_var
=LD_LIBRARY_PATH
22408 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22409 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
22420 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22421 soname_spec
='${libname}${release}${shared_ext}$major'
22422 shlibpath_var
=LD_LIBRARY_PATH
22423 shlibpath_overrides_runpath
=yes
22424 hardcode_into_libs
=yes
22425 # ldd complains unless libraries are executable
22426 postinstall_cmds
='chmod +x $lib'
22431 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22432 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22433 shlibpath_var
=LD_LIBRARY_PATH
22434 shlibpath_overrides_runpath
=yes
22435 if test "$with_gnu_ld" = yes; then
22443 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22444 soname_spec
='${libname}${release}${shared_ext}$major'
22445 shlibpath_var
=LD_LIBRARY_PATH
22446 case $host_vendor in
22448 shlibpath_overrides_runpath
=no
22450 runpath_var
=LD_RUN_PATH
22458 shlibpath_overrides_runpath
=no
22459 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
22465 if test -d /usr
/nec
;then
22467 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22468 soname_spec
='$libname${shared_ext}.$major'
22469 shlibpath_var
=LD_LIBRARY_PATH
22473 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
22474 version_type
=freebsd-elf
22477 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22478 soname_spec
='${libname}${release}${shared_ext}$major'
22479 shlibpath_var
=LD_LIBRARY_PATH
22480 shlibpath_overrides_runpath
=yes
22481 hardcode_into_libs
=yes
22482 if test "$with_gnu_ld" = yes; then
22483 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22485 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
22488 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
22492 sys_lib_dlsearch_path_spec
='/usr/lib'
22496 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22500 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22501 shlibpath_var
=LD_LIBRARY_PATH
22502 shlibpath_overrides_runpath
=no
22503 hardcode_into_libs
=yes
22508 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22509 soname_spec
='${libname}${release}${shared_ext}$major'
22510 shlibpath_var
=LD_LIBRARY_PATH
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22518 $as_echo "$dynamic_linker" >&6; }
22519 test "$dynamic_linker" = no
&& can_build_shared
=no
22521 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
22522 if test "$GCC" = yes; then
22523 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22526 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22527 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
22529 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22530 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22571 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22572 hardcode_action_CXX
=
22573 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22574 test -n "$runpath_var_CXX" ||
22575 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22577 # We can hardcode non-existent directories.
22578 if test "$hardcode_direct_CXX" != no
&&
22579 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22580 # have to relink, otherwise we might link with an installed library
22581 # when we should be linking with a yet-to-be-installed one
22582 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22583 test "$hardcode_minus_L_CXX" != no
; then
22584 # Linking always hardcodes the temporary library directory.
22585 hardcode_action_CXX
=relink
22587 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22588 hardcode_action_CXX
=immediate
22591 # We cannot hardcode anything, or else we can only hardcode existing
22593 hardcode_action_CXX
=unsupported
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22596 $as_echo "$hardcode_action_CXX" >&6; }
22598 if test "$hardcode_action_CXX" = relink ||
22599 test "$inherit_rpath_CXX" = yes; then
22600 # Fast installation is not supported
22601 enable_fast_install
=no
22602 elif test "$shlibpath_overrides_runpath" = yes ||
22603 test "$enable_shared" = no
; then
22604 # Fast installation is not necessary
22605 enable_fast_install
=needless
22614 fi # test -n "$compiler"
22620 with_gnu_ld
=$lt_save_with_gnu_ld
22621 lt_cv_path_LDCXX
=$lt_cv_path_LD
22622 lt_cv_path_LD
=$lt_save_path_LD
22623 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
22624 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
22625 fi # test "$_lt_caught_CXX_error" != yes
22628 ac_cpp
='$CXXCPP $CPPFLAGS'
22629 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22630 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22631 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
22648 # Only expand once:
22654 # Identify the assembler which will work hand-in-glove with the newly
22655 # built GCC, so that we can examine its features. This is the assembler
22656 # which will be driven by the driver program.
22658 # If build != host, and we aren't building gas in-tree, we identify a
22659 # build->target assembler and hope that it will have the same features
22660 # as the host->target assembler we'll be using.
22661 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22663 if ${gcc_cv_as+:} false
; then :
22667 if test -x "$DEFAULT_ASSEMBLER"; then
22668 gcc_cv_as
="$DEFAULT_ASSEMBLER"
22669 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22670 && test -f ..
/gas
/Makefile \
22671 && test x
$build = x
$host; then
22672 gcc_cv_as
=..
/gas
/as-new
$build_exeext
22673 elif test -x as
$build_exeext; then
22674 # Build using assembler in the current directory.
22675 gcc_cv_as
=.
/as
$build_exeext
22676 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
22677 gcc_cv_as
="$AS_FOR_TARGET"
22679 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22680 set dummy
$AS_FOR_TARGET; ac_word
=$2
22681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22682 $as_echo_n "checking for $ac_word... " >&6; }
22683 if ${ac_cv_path_gcc_cv_as+:} false
; then :
22684 $as_echo_n "(cached) " >&6
22688 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
22691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22692 for as_dir
in $PATH
22695 test -z "$as_dir" && as_dir
=.
22696 for ac_exec_ext
in '' $ac_executable_extensions; do
22697 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22698 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
22699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22709 gcc_cv_as
=$ac_cv_path_gcc_cv_as
22710 if test -n "$gcc_cv_as"; then
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22712 $as_echo "$gcc_cv_as" >&6; }
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22715 $as_echo "no" >&6; }
22722 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
22724 case "$ORIGINAL_AS_FOR_TARGET" in
22725 .
/as | .
/as
$build_exeext) ;;
22726 *) ac_config_files
="$ac_config_files as:exec-tool.in"
22731 # Check whether --enable-ld was given.
22732 if test "${enable_ld+set}" = set; then :
22733 enableval
=$enable_ld; case "${enableval}" in
22741 install_gold_as_default
=no
22742 # Check whether --enable-gold was given.
22743 if test "${enable_gold+set}" = set; then :
22744 enableval
=$enable_gold; case "${enableval}" in
22746 install_gold_as_default
=yes
22749 if test x
${default_ld} != x
; then
22750 install_gold_as_default
=yes
22756 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
22762 # Identify the linker which will work hand-in-glove with the newly
22763 # built GCC, so that we can examine its features. This is the linker
22764 # which will be driven by the driver program.
22766 # If build != host, and we aren't building gas in-tree, we identify a
22767 # build->target linker and hope that it will have the same features
22768 # as the host->target linker we'll be using.
22769 gcc_cv_gld_major_version
=
22770 gcc_cv_gld_minor_version
=
22771 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22772 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22773 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22775 if ${gcc_cv_ld+:} false
; then :
22779 if test -x "$DEFAULT_LINKER"; then
22780 gcc_cv_ld
="$DEFAULT_LINKER"
22781 elif test $install_gold_as_default = yes \
22782 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22783 && test -f ..
/gold
/Makefile \
22784 && test x
$build = x
$host; then
22785 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
22786 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22787 && test -f ..
/ld
/Makefile \
22788 && test x
$build = x
$host; then
22789 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
22790 elif test -x collect-ld
$build_exeext; then
22791 # Build using linker in the current directory.
22792 gcc_cv_ld
=.
/collect-ld
$build_exeext
22793 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
22794 gcc_cv_ld
="$LD_FOR_TARGET"
22796 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22797 set dummy
$LD_FOR_TARGET; ac_word
=$2
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22799 $as_echo_n "checking for $ac_word... " >&6; }
22800 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
22801 $as_echo_n "(cached) " >&6
22805 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
22808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22809 for as_dir
in $PATH
22812 test -z "$as_dir" && as_dir
=.
22813 for ac_exec_ext
in '' $ac_executable_extensions; do
22814 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22815 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
22816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22826 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22827 if test -n "$gcc_cv_ld"; then
22828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22829 $as_echo "$gcc_cv_ld" >&6; }
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22832 $as_echo "no" >&6; }
22839 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22840 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22841 # if the PLUGIN_LD is set ld-new, just have it as ld
22842 # as that is the installed named.
22843 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22844 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22845 PLUGIN_LD_SUFFIX
=ld
22848 # Check whether --with-plugin-ld was given.
22849 if test "${with_plugin_ld+set}" = set; then :
22850 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22851 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22852 PLUGIN_LD_SUFFIX
="$withval"
22858 cat >>confdefs.h
<<_ACEOF
22859 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22863 # Check to see if we are using gold instead of ld
22864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22865 $as_echo_n "checking whether we are using gold... " >&6; }
22867 if test x
$gcc_cv_ld != x
; then
22868 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22869 |
grep "GNU gold" > /dev
/null
; then
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22874 $as_echo "$ld_is_gold" >&6; }
22876 # Check to see if we are using mold instead of ld
22877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
22878 $as_echo_n "checking whether we are using mold... " >&6; }
22880 if test x
$gcc_cv_ld != x
; then
22881 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22882 |
grep "mold" > /dev
/null
; then
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
22887 $as_echo "$ld_is_mold" >&6; }
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22891 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22892 # Check to see if default ld is not gold, but gold is
22893 # available and has support for split stack. If gcc was configured
22894 # with gold then no checking is done.
22896 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22898 # For platforms other than powerpc64*, enable as appropriate.
22900 gold_non_default
=no
22901 ld_gold
=`which ${gcc_cv_ld}.gold`
22902 # Make sure this gold has minimal split stack support
22903 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22904 ld_vers
=`$ld_gold --version | sed 1q`
22905 gold_vers
=`echo $ld_vers | sed -n \
22906 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22908 # check that the gold version contains the complete split stack support
22909 # on powerpc64 big and little endian
22911 case "$gold_vers" in
22912 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22914 *) gold_non_default
=no
22920 if test $gold_non_default = yes; then
22922 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22927 $as_echo "$gold_non_default" >&6; }
22929 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22931 case "$ORIGINAL_LD_FOR_TARGET" in
22932 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22933 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22938 $as_echo_n "checking what linker to use... " >&6; }
22939 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22940 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22941 # Single tree build which includes ld. We want to prefer it
22942 # over whatever linker top-level may have detected, since
22943 # we'll use what we're building after installation anyway.
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22945 $as_echo "newly built ld" >&6; }
22947 in_tree_ld_is_elf
=no
22948 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22949 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22950 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22951 in_tree_ld_is_elf
=yes
22952 elif test "$ld_is_gold" = yes; then
22953 in_tree_ld_is_elf
=yes
22955 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
22957 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22958 if test x
$gcc_cv_gld_version != x
; then
22962 case $gcc_cv_gld_version in
22964 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22966 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22967 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22968 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22969 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22972 $as_echo "$gcc_cv_ld" >&6; }
22974 gcc_cvs_ld_program
=false
# `dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22975 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22976 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22982 # Figure out what nm we will be using.
22983 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22984 if ${gcc_cv_nm+:} false
; then :
22988 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22989 && test -f ..
/binutils
/Makefile \
22990 && test x
$build = x
$host; then
22991 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22992 elif test -x nm
$build_exeext; then
22993 gcc_cv_nm
=.
/nm
$build_exeext
22994 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22995 gcc_cv_nm
="$NM_FOR_TARGET"
22997 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22998 set dummy
$NM_FOR_TARGET; ac_word
=$2
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23000 $as_echo_n "checking for $ac_word... " >&6; }
23001 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
23002 $as_echo_n "(cached) " >&6
23006 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
23009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23010 for as_dir
in $PATH
23013 test -z "$as_dir" && as_dir
=.
23014 for ac_exec_ext
in '' $ac_executable_extensions; do
23015 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23016 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
23017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23027 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
23028 if test -n "$gcc_cv_nm"; then
23029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23030 $as_echo "$gcc_cv_nm" >&6; }
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23033 $as_echo "no" >&6; }
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23041 $as_echo_n "checking what nm to use... " >&6; }
23042 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
23043 # Single tree build which includes binutils.
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23045 $as_echo "newly built nm" >&6; }
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23049 $as_echo "$gcc_cv_nm" >&6; }
23053 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
23055 case "$ORIGINAL_NM_FOR_TARGET" in
23056 .
/nm | .
/nm
$build_exeext) ;;
23057 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
23062 # Figure out what objdump we will be using.
23063 if ${gcc_cv_objdump+:} false
; then :
23067 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23068 && test -f ..
/binutils
/Makefile \
23069 && test x
$build = x
$host; then
23070 # Single tree build which includes binutils.
23071 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
23072 elif test -x objdump
$build_exeext; then
23073 gcc_cv_objdump
=.
/objdump
$build_exeext
23074 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
23075 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
23077 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23078 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23080 $as_echo_n "checking for $ac_word... " >&6; }
23081 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
23082 $as_echo_n "(cached) " >&6
23084 case $gcc_cv_objdump in
23086 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
23089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23090 for as_dir
in $PATH
23093 test -z "$as_dir" && as_dir
=.
23094 for ac_exec_ext
in '' $ac_executable_extensions; do
23095 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23096 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
23097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23107 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
23108 if test -n "$gcc_cv_objdump"; then
23109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23110 $as_echo "$gcc_cv_objdump" >&6; }
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23113 $as_echo "no" >&6; }
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23121 $as_echo_n "checking what objdump to use... " >&6; }
23122 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
23123 # Single tree build which includes binutils.
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23125 $as_echo "newly built objdump" >&6; }
23126 elif test x
$gcc_cv_objdump = x
; then
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23128 $as_echo "not found" >&6; }
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23131 $as_echo "$gcc_cv_objdump" >&6; }
23134 # Figure out what readelf we will be using.
23135 if ${gcc_cv_readelf+:} false
; then :
23139 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23140 && test -f ..
/binutils
/Makefile \
23141 && test x
$build = x
$host; then
23142 # Single tree build which includes binutils.
23143 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
23144 elif test -x readelf
$build_exeext; then
23145 gcc_cv_readelf
=.
/readelf
$build_exeext
23146 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
23147 gcc_cv_readelf
="$READELF_FOR_TARGET"
23149 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23150 set dummy
$READELF_FOR_TARGET; ac_word
=$2
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23152 $as_echo_n "checking for $ac_word... " >&6; }
23153 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
23154 $as_echo_n "(cached) " >&6
23156 case $gcc_cv_readelf in
23158 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
23161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23162 for as_dir
in $PATH
23165 test -z "$as_dir" && as_dir
=.
23166 for ac_exec_ext
in '' $ac_executable_extensions; do
23167 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23168 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
23169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23179 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
23180 if test -n "$gcc_cv_readelf"; then
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23182 $as_echo "$gcc_cv_readelf" >&6; }
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23185 $as_echo "no" >&6; }
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23193 $as_echo_n "checking what readelf to use... " >&6; }
23194 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
23195 # Single tree build which includes binutils.
23196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23197 $as_echo "newly built readelf" >&6; }
23198 elif test x
$gcc_cv_readelf = x
; then
23199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23200 $as_echo "not found" >&6; }
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23203 $as_echo "$gcc_cv_readelf" >&6; }
23206 # Figure out what otool we will be using.
23207 if ${gcc_cv_otool+:} false
; then :
23211 if test -x otool
$build_exeext; then
23212 gcc_cv_otool
=.
/otool
$build_exeext
23213 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
23214 gcc_cv_otool
="$OTOOL_FOR_TARGET"
23216 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23217 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
23218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23219 $as_echo_n "checking for $ac_word... " >&6; }
23220 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
23221 $as_echo_n "(cached) " >&6
23223 case $gcc_cv_otool in
23225 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
23228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23229 for as_dir
in $PATH
23232 test -z "$as_dir" && as_dir
=.
23233 for ac_exec_ext
in '' $ac_executable_extensions; do
23234 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23235 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
23236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23246 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
23247 if test -n "$gcc_cv_otool"; then
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23249 $as_echo "$gcc_cv_otool" >&6; }
23251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23252 $as_echo "no" >&6; }
23259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23260 $as_echo_n "checking what otool to use... " >&6; }
23261 if test x
$gcc_cv_otool = x
; then
23262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23263 $as_echo "not found" >&6; }
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23266 $as_echo "$gcc_cv_otool" >&6; }
23269 # Figure out the dsymutil we will use.
23270 if ${gcc_cv_dsymutil+:} false
; then :
23274 if test -x "$DEFAULT_DSYMUTIL"; then
23275 gcc_cv_dsymutil
="$DEFAULT_DSYMUTIL"
23276 elif test -x dsymutil
$build_exeext; then
23277 gcc_cv_dsymutil
=.
/dsymutil
$build_exeext
23278 elif ( set dummy
$DSYMUTIL_FOR_TARGET; test -x $2 ); then
23279 gcc_cv_dsymutil
=$DSYMUTIL_FOR_TARGET
23280 elif ( set dummy
$DSYMUTIL; test -x $2 ); then
23281 gcc_cv_dsymutil
=$DSYMUTIL
23283 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23284 set dummy
$DSYMUTIL_FOR_TARGET; ac_word
=$2
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23286 $as_echo_n "checking for $ac_word... " >&6; }
23287 if ${ac_cv_path_gcc_cv_dsymutil+:} false
; then :
23288 $as_echo_n "(cached) " >&6
23290 case $gcc_cv_dsymutil in
23292 ac_cv_path_gcc_cv_dsymutil
="$gcc_cv_dsymutil" # Let the user override the test with a path.
23295 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23296 for as_dir
in $PATH
23299 test -z "$as_dir" && as_dir
=.
23300 for ac_exec_ext
in '' $ac_executable_extensions; do
23301 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
23302 ac_cv_path_gcc_cv_dsymutil
="$as_dir/$ac_word$ac_exec_ext"
23303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23313 gcc_cv_dsymutil
=$ac_cv_path_gcc_cv_dsymutil
23314 if test -n "$gcc_cv_dsymutil"; then
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23316 $as_echo "$gcc_cv_dsymutil" >&6; }
23318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23319 $as_echo "no" >&6; }
23326 ORIGINAL_DSYMUTIL_FOR_TARGET
=$gcc_cv_dsymutil
23328 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23329 .
/dsymutil | .
/dsymutil
$build_exeext) ;;
23330 *) ac_config_files
="$ac_config_files dsymutil:exec-tool.in"
23334 #~ # Figure out what assembler alignment features are present.
23335 #~ gcc_GAS_CHECK_FEATURE([.balign and .p2align], gcc_cv_as_balign_and_p2align,,
23338 #~ [AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN, 1,
23339 #~ [Define if your assembler supports .balign and .p2align.])])
23341 #~ gcc_GAS_CHECK_FEATURE([.p2align with maximum skip], gcc_cv_as_max_skip_p2align,,
23342 #~ [.p2align 4,,7],,
23343 #~ [AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN, 1,
23344 #~ [Define if your assembler supports specifying the maximum number
23345 #~ of bytes to skip when using the GAS .p2align command.])])
23347 #~ gcc_GAS_CHECK_FEATURE([.literal16], gcc_cv_as_literal16,,
23349 #~ [AC_DEFINE(HAVE_GAS_LITERAL16, 1,
23350 #~ [Define if your assembler supports .literal16.])])
23352 #~ gcc_GAS_CHECK_FEATURE([working .subsection -1], gcc_cv_as_subsection_m1,,
23353 #~ [conftest_label1: .word 0
23355 #~ conftest_label2: .word 0
23357 #~ [if test x$gcc_cv_nm != x; then
23358 #~ $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23359 #~ $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23360 #~ if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23362 #~ else gcc_cv_as_subsection_m1=yes
23364 #~ rm -f conftest.nm1 conftest.nm2
23366 #~ [AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING, 1,
23367 #~ [Define if your assembler supports .subsection and .subsection -1 starts
23368 #~ emitting at the beginning of your section.])])
23370 #~ gcc_GAS_CHECK_FEATURE([.weak], gcc_cv_as_weak,,
23371 #~ [ .weak foobar],,
23372 #~ [AC_DEFINE(HAVE_GAS_WEAK, 1, [Define if your assembler supports .weak.])])
23374 #~ gcc_GAS_CHECK_FEATURE([.weakref], gcc_cv_as_weakref,,
23375 #~ [ .weakref foobar, barfnot],,
23376 #~ [AC_DEFINE(HAVE_GAS_WEAKREF, 1, [Define if your assembler supports .weakref.])])
23378 #~ gcc_GAS_CHECK_FEATURE([.nsubspa comdat], gcc_cv_as_nsubspa_comdat,,
23380 #~ .NSUBSPA $CODE$,COMDAT],,
23381 #~ [AC_DEFINE(HAVE_GAS_NSUBSPA_COMDAT, 1, [Define if your assembler supports .nsubspa comdat option.])])
23383 #~ # .hidden needs to be supported in both the assembler and the linker,
23384 #~ # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23385 #~ # This is irritatingly difficult to feature test for; we have to check the
23386 #~ # date string after the version number. If we've got an in-tree
23387 #~ # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23389 #~ # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23390 #~ case "${target}" in
23392 #~ conftest_s=' .globl foobar,hidden'
23395 #~ conftest_s=' .hidden foobar
23399 #~ gcc_GAS_CHECK_FEATURE([.hidden], gcc_cv_as_hidden,, [$conftest_s])
23400 #~ case "${target}" in
23402 #~ # Darwin as has some visibility support, though with a different syntax.
23403 #~ gcc_cv_as_hidden=yes
23407 # gnu_indirect_function type is an extension proposed at
23408 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23409 # selection of function implementation
23410 # Check whether --enable-gnu-indirect-function was given.
23411 if test "${enable_gnu_indirect_function+set}" = set; then :
23412 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23414 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23415 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23418 enable_gnu_indirect_function
="$default_gnu_indirect_function"
23422 case "${target}" in
23424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
23425 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
23426 cat > conftest.s
<<EOF
23428 .type foo_resolver, @function
23431 .size foo_resolver, .-foo_resolver
23434 .type foo, %gnu_indirect_function
23435 .set foo, foo_resolver
23438 .type bar, @function
23444 if test x
$gcc_cv_as != x \
23445 && test x
$gcc_cv_ld != x \
23446 && test x
$gcc_cv_readelf != x \
23447 && $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23448 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23449 && $gcc_cv_readelf --relocs --wide conftest \
23450 |
grep R_RISCV_IRELATIVE
> /dev
/null
2>&1; then
23451 enable_gnu_indirect_function
=yes
23453 rm -f conftest conftest.o conftest.s
23454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
23455 $as_echo "$enable_gnu_indirect_function" >&6; }
23459 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23461 cat >>confdefs.h
<<_ACEOF
23462 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23467 if test $in_tree_ld != yes ; then
23468 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23469 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23470 if test x
"$ld_is_gold" = xyes
; then
23471 # GNU gold --version looks like this:
23473 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23475 # We extract the binutils version which is more familiar and specific
23476 # than the gold version.
23477 ld_vers
=`echo $ld_ver | sed -n \
23478 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23480 # GNU ld --version looks like this:
23482 # GNU ld (GNU Binutils) 2.21.51.20110225
23483 ld_vers
=`echo $ld_ver | sed -n \
23484 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23486 ld_date
=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)\(-*\)\([01][0-9]\)\2\([0-3][0-9]\).*$,\1\3\4,p'`
23487 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23488 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23489 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23491 case "${target}" in
23493 # Solaris 2 ld -V output looks like this for a regular version:
23495 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23497 # but test versions add stuff at the end:
23499 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23501 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23502 # numbers can be used in ld.so.1 feature checks even if a different
23503 # linker is configured.
23504 ld_ver
=`$gcc_cv_ld -V 2>&1`
23505 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
23506 ld_vers
=`echo $ld_ver | sed -n \
23507 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23508 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23509 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23517 $as_echo_n "checking linker for .hidden support... " >&6; }
23518 if ${gcc_cv_ld_hidden+:} false
; then :
23519 $as_echo_n "(cached) " >&6
23521 if test $in_tree_ld = yes ; then
23522 gcc_cv_ld_hidden
=no
23523 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 \
23524 && test $in_tree_ld_is_elf = yes; then
23525 gcc_cv_ld_hidden
=yes
23528 gcc_cv_ld_hidden
=yes
23529 if test x
"$ld_is_gold" = xyes
; then
23531 elif test x
"$ld_is_mold" = xyes
; then
23533 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23534 if test 0"$ld_date" -lt 20020404; then
23535 if test -n "$ld_date"; then
23536 # If there was date string, but was earlier than 2002-04-04, fail
23537 gcc_cv_ld_hidden
=no
23538 elif test -z "$ld_vers"; then
23539 # If there was no date string nor ld version number, something is wrong
23540 gcc_cv_ld_hidden
=no
23542 test -z "$ld_vers_patch" && ld_vers_patch
=0
23543 if test "$ld_vers_major" -lt 2; then
23544 gcc_cv_ld_hidden
=no
23545 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23546 gcc_cv_ld_hidden
="no"
23547 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23548 gcc_cv_ld_hidden
=no
23553 case "${target}" in
23555 gcc_cv_ld_hidden
=yes
23558 # Darwin ld has some visibility support.
23559 gcc_cv_ld_hidden
=yes
23561 hppa64
*-*-hpux* | ia64
*-*-hpux*)
23562 gcc_cv_ld_hidden
=yes
23565 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23566 # .symbolic was only added in Solaris 9 12/02.
23567 gcc_cv_ld_hidden
=yes
23570 gcc_cv_ld_hidden
=no
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23577 $as_echo "$gcc_cv_ld_hidden" >&6; }
23578 libgcc_visibility
=no
23581 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23582 libgcc_visibility
=yes
23584 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23589 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23590 gcc_cv_ld_ro_rw_mix
=unknown
23591 if test $in_tree_ld = yes ; then
23592 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 \
23593 && test $in_tree_ld_is_elf = yes; then
23594 gcc_cv_ld_ro_rw_mix
=read-write
23596 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23597 echo '.section myfoosect, "a"' > conftest1.s
23598 echo '.section myfoosect, "aw"' > conftest2.s
23599 echo '.byte 1' >> conftest2.s
23600 echo '.section myfoosect, "a"' > conftest3.s
23601 echo '.byte 0' >> conftest3.s
23602 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
23603 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
23604 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
23605 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23606 conftest2.o conftest3.o
> /dev
/null
2>&1; then
23607 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
23608 | sed -e '/myfoosect/!d' -e N`
23609 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
23610 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
23611 gcc_cv_ld_ro_rw_mix
=read-only
23613 gcc_cv_ld_ro_rw_mix
=read-write
23617 rm -f conftest.
* conftest
[123].
*
23619 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
23621 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23625 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23627 # Check whether --enable-initfini-array was given.
23628 if test "${enable_initfini_array+set}" = set; then :
23629 enableval
=$enable_initfini_array;
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23633 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23634 if ${gcc_cv_initfini_array+:} false
; then :
23635 $as_echo_n "(cached) " >&6
23637 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23638 case "${target}" in
23640 if test "$cross_compiling" = yes; then :
23641 gcc_cv_initfini_array
=no
23643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23644 /* end confdefs.h. */
23647 #error Not an ELF OS
23649 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23650 if it can be used. */
23652 int main (void) { return x; }
23653 int foo (void) { x = 0; }
23654 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23657 if ac_fn_cxx_try_run
"$LINENO"; then :
23658 gcc_cv_initfini_array
=yes
23660 gcc_cv_initfini_array
=no
23662 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23663 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23667 gcc_cv_initfini_array
=no
23668 if test $in_tree_ld = yes ; then
23669 if test "$gcc_cv_gld_major_version" -eq 2 \
23670 -a "$gcc_cv_gld_minor_version" -ge 22 \
23671 -o "$gcc_cv_gld_major_version" -gt 2 \
23672 && test $in_tree_ld_is_elf = yes; then
23673 gcc_cv_initfini_array
=yes
23675 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23676 case $target:$gas in
23679 sh_type
='%progbits'
23681 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
23683 sh_type
='@progbits'
23685 sparc
*-*-solaris2*:no
)
23687 sh_type
='#progbits'
23691 case "$target:$gnu_ld" in
23693 cat > conftest.s
<<EOF
23694 .section .dtors,$sh_flags,$sh_type
23696 .byte 'A', 'A', 'A', 'A'
23697 .section .ctors,$sh_flags,$sh_type
23699 .byte 'B', 'B', 'B', 'B'
23700 .section .fini_array.65530,$sh_flags,$sh_type
23702 .byte 'C', 'C', 'C', 'C'
23703 .section .init_array.65530,$sh_flags,$sh_type
23705 .byte 'D', 'D', 'D', 'D'
23706 .section .dtors.64528,$sh_flags,$sh_type
23708 .byte 'E', 'E', 'E', 'E'
23709 .section .ctors.64528,$sh_flags,$sh_type
23711 .byte 'F', 'F', 'F', 'F'
23712 .section .fini_array.01005,$sh_flags,$sh_type
23714 .byte 'G', 'G', 'G', 'G'
23715 .section .init_array.01005,$sh_flags,$sh_type
23717 .byte 'H', 'H', 'H', 'H'
23722 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23723 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23724 && $gcc_cv_objdump -s -j .init_array conftest \
23725 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23726 && $gcc_cv_objdump -s -j .fini_array conftest \
23727 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23728 gcc_cv_initfini_array
=yes
23732 # When Solaris ld added constructor priority support, it was
23733 # decided to only handle .init_array.N/.fini_array.N since
23734 # there was no need for backwards compatibility with
23735 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23736 # sections with correct execution order resp. to
23737 # .init_array/.fini_array, while gld merges them into
23738 # .init_array/.fini_array.
23739 cat > conftest.s
<<EOF
23740 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23742 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23743 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23745 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23746 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23748 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23749 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23751 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23756 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23757 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23758 && $gcc_cv_objdump -s -j .init_array conftest \
23759 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
23760 && $gcc_cv_objdump -s -j .fini_array conftest \
23761 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
23762 gcc_cv_initfini_array
=yes
23766 rm -f conftest conftest.
*
23768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23769 /* end confdefs.h. */
23772 # error Not an ELF OS
23774 #include <stdlib.h>
23775 #if defined __GLIBC_PREREQ
23776 # if __GLIBC_PREREQ (2, 4)
23778 # error GLIBC 2.4 required
23781 # if defined __sun__ && defined __svr4__
23782 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23784 # error The C library not known to support .init_array/.fini_array
23789 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23792 gcc_cv_initfini_array
=no
23794 rm -f conftest.err conftest.i conftest.
$ac_ext;;
23797 case "${target}" in
23798 aarch64
*-linux-gnu*)
23799 # AArch64 postdates glibc support for .init_array/.fini_array,
23800 # so we don't need the preprocessor test above.
23801 gcc_cv_initfini_array
=yes
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23806 $as_echo_n "checking cross compile... guessing... " >&6; }
23807 gcc_cv_initfini_array
=no
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23813 $as_echo "$gcc_cv_initfini_array" >&6; }
23814 enable_initfini_array
=$gcc_cv_initfini_array
23819 cat >>confdefs.h
<<_ACEOF
23820 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23825 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23826 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
23827 # these directives, even when they appear to accept them.
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23829 $as_echo_n "checking assembler flags... " >&6; }
23830 if ${gcc_cv_as_flags+:} false
; then :
23831 $as_echo_n "(cached) " >&6
23834 i
[34567]86-*-linux*)
23835 gcc_cv_as_flags
=--32
23837 x86_64-
*-linux-gnux32)
23838 gcc_cv_as_flags
=--x32
23841 gcc_cv_as_flags
=--64
23843 powerpc
*-*-darwin*)
23844 gcc_cv_as_flags
="-arch ppc"
23847 gcc_cv_as_flags
=" "
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23852 $as_echo "$gcc_cv_as_flags" >&6; }
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23855 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23856 if ${gcc_cv_as_leb128+:} false
; then :
23857 $as_echo_n "(cached) " >&6
23859 gcc_cv_as_leb128
=no
23860 if test x
$gcc_cv_as != x
; then
23867 .uleb128 0x8000000000000000
23869 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23871 (eval $ac_try) 2>&5
23873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23874 test $ac_status = 0; }; }
23877 if test "x$gcc_cv_objdump" != x
; then
23878 if $gcc_cv_objdump -s conftest.o
2>/dev
/null \
23879 |
grep '04800a8e 78808080 80808080 808001' >/dev
/null
; then
23880 gcc_cv_as_leb128
=yes
23882 elif test "x$gcc_cv_otool" != x
; then
23883 if $gcc_cv_otool -d conftest.o
2>/dev
/null \
23884 |
grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev
/null
; then
23885 gcc_cv_as_leb128
=yes
23888 # play safe, assume the assembler is broken.
23893 echo "configure: failed program was" >&5
23896 rm -f conftest.o conftest.s
23899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23900 $as_echo "$gcc_cv_as_leb128" >&6; }
23901 if test $gcc_cv_as_leb128 = yes; then
23903 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23906 if test $gcc_cv_as_leb128 != yes; then
23908 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23912 # Determine if an .eh_frame section is read-only.
23913 gcc_fn_eh_frame_ro
() {
23914 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23915 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23916 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
23919 # Check if we have assembler support for unwind directives.
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23921 $as_echo_n "checking assembler for cfi directives... " >&6; }
23922 if ${gcc_cv_as_cfi_directive+:} false
; then :
23923 $as_echo_n "(cached) " >&6
23925 gcc_cv_as_cfi_directive
=no
23926 if test x
$gcc_cv_as != x
; then
23932 .cfi_escape 1, 2, 3, 4, 5
23933 .cfi_endproc' > conftest.s
23934 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23936 (eval $ac_try) 2>&5
23938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23939 test $ac_status = 0; }; }
23943 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23944 # read-only and read-write sections, we need to make sure that the
23945 # assembler used emits read-write .eh_frame sections.
23946 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
23947 gcc_cv_as_cfi_directive
=yes
23948 elif test "x$gcc_cv_objdump" = x
; then
23949 # No objdump, err on the side of caution.
23950 gcc_cv_as_cfi_directive
=no
23952 if test x
$gas = xyes
; then
23960 sparc
*-*-solaris2.
*)
23961 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23962 if gcc_fn_eh_frame_ro
$as_32_opt \
23963 || gcc_fn_eh_frame_ro
$as_64_opt; then
23964 gcc_cv_as_cfi_directive
=no
23966 gcc_cv_as_cfi_directive
=yes
23969 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
23970 # On Solaris/x86, make sure that GCC and assembler agree on using
23971 # read-only .eh_frame sections for 64-bit.
23972 if gcc_fn_eh_frame_ro
$as_32_opt; then
23973 gcc_cv_as_cfi_directive
=no
23974 elif gcc_fn_eh_frame_ro
$as_64_opt; then
23975 gcc_cv_as_cfi_directive
=yes
23977 gcc_cv_as_cfi_directive
=no
23984 gcc_cv_as_cfi_directive
=yes
23988 echo "configure: failed program was" >&5
23991 rm -f conftest.o conftest.s
23994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23995 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23998 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24000 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24001 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
24002 $as_echo_n "(cached) " >&6
24004 gcc_cv_as_cfi_advance_working
=no
24005 if test x
$gcc_cv_as != x
; then
24008 .cfi_adjust_cfa_offset 64
24010 .cfi_adjust_cfa_offset 128
24011 .cfi_endproc' > conftest.s
24012 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24014 (eval $ac_try) 2>&5
24016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24017 test $ac_status = 0; }; }
24020 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
24021 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
24022 gcc_cv_as_cfi_advance_working
=yes
24026 echo "configure: failed program was" >&5
24029 rm -f conftest.o conftest.s
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24033 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24037 # no objdump, err on the side of caution
24038 gcc_cv_as_cfi_advance_working
=no
24042 cat >>confdefs.h
<<_ACEOF
24043 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24044 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24050 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24051 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
24052 $as_echo_n "(cached) " >&6
24054 gcc_cv_as_cfi_personality_directive
=no
24055 if test x
$gcc_cv_as != x
; then
24058 .cfi_personality 0, symbol
24059 .cfi_endproc' > conftest.s
24060 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24062 (eval $ac_try) 2>&5
24064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24065 test $ac_status = 0; }; }
24067 gcc_cv_as_cfi_personality_directive
=yes
24069 echo "configure: failed program was" >&5
24072 rm -f conftest.o conftest.s
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24076 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24080 cat >>confdefs.h
<<_ACEOF
24081 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24086 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24087 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
24088 $as_echo_n "(cached) " >&6
24090 gcc_cv_as_cfi_sections_directive
=no
24091 if test x
$gcc_cv_as != x
; then
24093 .cfi_sections .debug_frame, .eh_frame
24095 .cfi_endproc' > conftest.s
24096 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24098 (eval $ac_try) 2>&5
24100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24101 test $ac_status = 0; }; }
24104 win32 | pe | cygwin
* | mingw32
*)
24105 # Need to check that we generated the correct relocation for the
24106 # .debug_frame section. This was fixed for binutils 2.21.
24107 gcc_cv_as_cfi_sections_directive
=no
24108 if test "x$gcc_cv_objdump" != x
; then
24109 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
24110 grep secrel
> /dev
/null
; then
24111 gcc_cv_as_cfi_sections_directive
=yes
24116 gcc_cv_as_cfi_sections_directive
=yes
24120 echo "configure: failed program was" >&5
24123 rm -f conftest.o conftest.s
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24127 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24132 cat >>confdefs.h
<<_ACEOF
24133 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24137 # GAS versions up to and including 2.11.0 may mis-optimize
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24140 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24141 if ${gcc_cv_as_eh_frame+:} false
; then :
24142 $as_echo_n "(cached) " >&6
24144 gcc_cv_as_eh_frame
=no
24145 if test x
$gcc_cv_as != x
; then
24152 .section .eh_frame,"aw",@progbits
24154 .4byte .LECIE1-.LSCIE1
24168 .4byte .LEFDE1-.LASFDE1
24170 .4byte .LASFDE1-__FRAME_BEGIN__
24177 .LEFDE1:' > conftest.s
24178 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24180 (eval $ac_try) 2>&5
24182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24183 test $ac_status = 0; }; }
24185 cat > conftest.lit
<<EOF
24186 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24187 0010 01000000 12000000 18000000 00000000 ................
24188 0020 08000000 04080000 0044 .........D
24190 cat > conftest.big
<<EOF
24191 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24192 0010 00000001 00000012 00000018 00000000 ................
24193 0020 00000008 04000000 0844 .........D
24195 # If the assembler didn't choke, and we can objdump,
24196 # and we got the correct data, then succeed.
24197 # The text in the here-document typically retains its unix-style line
24198 # endings, while the output of objdump will use host line endings.
24199 # Therefore, use diff -b for the comparisons.
24200 if test x
$gcc_cv_objdump != x \
24201 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
24202 |
tail -3 > conftest.got \
24203 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
24204 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
24206 gcc_cv_as_eh_frame
=yes
24207 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24209 (eval $ac_try) 2>&5
24211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24212 test $ac_status = 0; }; }; then
24213 gcc_cv_as_eh_frame
=buggy
24215 # Uh oh, what do we do now?
24216 gcc_cv_as_eh_frame
=no
24219 echo "configure: failed program was" >&5
24222 rm -f conftest.o conftest.s
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24226 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24230 if test $gcc_cv_as_eh_frame = buggy
; then
24232 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24236 # Test if the assembler supports the section flag 'e' or #exclude for
24237 # specifying an excluded section.
24238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24239 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24240 if ${gcc_cv_as_section_exclude_e+:} false
; then :
24241 $as_echo_n "(cached) " >&6
24243 gcc_cv_as_section_exclude_e
=no
24244 if test x
$gcc_cv_as != x
; then
24245 $as_echo '.section foo1,"e"
24246 .byte 0,0,0,0' > conftest.s
24247 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24249 (eval $ac_try) 2>&5
24251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24252 test $ac_status = 0; }; }
24254 gcc_cv_as_section_exclude_e
=yes
24256 echo "configure: failed program was" >&5
24259 rm -f conftest.o conftest.s
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24263 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24266 if test $gcc_cv_as_section_exclude_e = no
; then
24267 case "${target}" in
24268 # Solaris as uses #exclude instead.
24270 case "${target}" in
24271 sparc
*-*-solaris2*)
24272 conftest_s
='.section "foo1", #exclude'
24274 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24275 conftest_s
='.section foo1, #exclude'
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24281 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24282 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
24283 $as_echo_n "(cached) " >&6
24285 gcc_cv_as_section_exclude_hash
=no
24286 if test x
$gcc_cv_as != x
; then
24287 $as_echo "$conftest_s
24288 .byte 0,0,0,0" > conftest.s
24289 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24291 (eval $ac_try) 2>&5
24293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24294 test $ac_status = 0; }; }
24296 gcc_cv_as_section_exclude_hash
=yes
24298 echo "configure: failed program was" >&5
24301 rm -f conftest.o conftest.s
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24305 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24310 cat >>confdefs.h
<<_ACEOF
24311 #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`
24315 #~ # Test if the assembler supports the section flag 'R' for specifying
24316 #~ # section with SHF_GNU_RETAIN.
24317 #~ case "${target}" in
24318 #~ # Solaris may use GNU assembler with Solairs ld. Even if GNU
24319 #~ # assembler supports the section flag 'R', it doesn't mean that
24320 #~ # Solairs ld supports it.
24322 #~ gcc_cv_as_shf_gnu_retain=no
24325 #~ gcc_GAS_CHECK_FEATURE([section 'R' flag], gcc_cv_as_shf_gnu_retain,
24326 #~ [--fatal-warnings],
24327 #~ [.section .foo,"awR",%progbits
24331 #~ AC_DEFINE_UNQUOTED(HAVE_GAS_SHF_GNU_RETAIN,
24332 #~ [`if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`],
24333 #~ [Define 0/1 if your assembler supports marking sections with SHF_GNU_RETAIN flag.])
24335 #~ # Test if the assembler supports the section flag 'o' for specifying
24336 #~ # section with link-order.
24337 #~ case "${target}" in
24338 #~ # Solaris may use GNU assembler with Solairs ld. Even if GNU
24339 #~ # assembler supports the section flag 'o', it doesn't mean that
24340 #~ # Solairs ld supports it.
24342 #~ gcc_cv_as_section_link_order=no
24345 #~ gcc_GAS_CHECK_FEATURE([section 'o' flag], gcc_cv_as_section_link_order,
24346 #~ [--fatal-warnings],
24347 #~ [.section .foo,"a"
24349 #~ .section __patchable_function_entries,"awo",%progbits,.foo
24353 #~ AC_DEFINE_UNQUOTED(HAVE_GAS_SECTION_LINK_ORDER,
24354 #~ [`if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`],
24355 #~ [Define 0/1 if your assembler supports 'o' flag in .section directive.])
24357 #~ gcc_GAS_CHECK_FEATURE(section merging support, gcc_cv_as_shf_merge,
24358 #~ [--fatal-warnings],
24359 #~ [.section .rodata.str, "aMS", @progbits, 1])
24360 #~ if test $gcc_cv_as_shf_merge = no; then
24361 #~ gcc_GAS_CHECK_FEATURE(section merging support, gcc_cv_as_shf_merge,
24362 #~ [--fatal-warnings],
24363 #~ [.section .rodata.str, "aMS", %progbits, 1])
24365 #~ AC_DEFINE_UNQUOTED(HAVE_GAS_SHF_MERGE,
24366 #~ [`if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`],
24367 #~ [Define 0/1 if your assembler supports marking sections with SHF_MERGE flag.])
24369 #~ gcc_cv_ld_aligned_shf_merge=yes
24370 #~ case "$target" in
24371 #~ # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24372 #~ # alignment > 1.
24373 #~ sparc*-*-solaris2.11*)
24374 #~ if test x"$gnu_ld" = xno \
24375 #~ && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24376 #~ gcc_cv_ld_aligned_shf_merge=no
24380 #~ AC_DEFINE_UNQUOTED(HAVE_LD_ALIGNED_SHF_MERGE,
24381 #~ [`if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`],
24382 #~ [Define 0/1 if your linker supports the SHF_MERGE flag with section alignment > 1.])
24384 #~ gcc_GAS_CHECK_FEATURE([stabs directive], gcc_cv_as_stabs_directive,,
24385 #~ [.stabs "gcc2_compiled.",60,0,0,0],,
24386 #~ [AC_DEFINE(HAVE_AS_STABS_DIRECTIVE, 1,
24387 #~ [Define if your assembler supports .stabs.])])
24389 #~ gcc_GAS_CHECK_FEATURE([COMDAT group support (GNU as)],
24390 #~ gcc_cv_as_comdat_group,
24391 #~ [--fatal-warnings],
24392 #~ [.section .text,"axG",@progbits,.foo,comdat])
24393 #~ if test $gcc_cv_as_comdat_group = yes; then
24394 #~ gcc_cv_as_comdat_group_percent=no
24395 #~ gcc_cv_as_comdat_group_group=no
24397 #~ gcc_GAS_CHECK_FEATURE([COMDAT group support (GNU as, %type)],
24398 #~ gcc_cv_as_comdat_group_percent,
24399 #~ [--fatal-warnings],
24400 #~ [.section .text,"axG",%progbits,.foo,comdat])
24401 #~ if test $gcc_cv_as_comdat_group_percent = yes; then
24402 #~ gcc_cv_as_comdat_group_group=no
24404 #~ case "${target}" in
24405 #~ # Sun as uses a completely different syntax.
24407 #~ case "${target}" in
24408 #~ sparc*-*-solaris2*)
24410 #~ .group foo,".text%foo",#comdat
24411 #~ .section ".text%foo", #alloc,#execinstr,#progbits
24416 #~ i?86-*-solaris2* | x86_64-*-solaris2*)
24418 #~ .group foo,.text%foo,#comdat
24419 #~ .section .text%foo, "ax", @progbits
24425 #~ gcc_GAS_CHECK_FEATURE([COMDAT group support (Sun as, .group)],
24426 #~ gcc_cv_as_comdat_group_group,
24427 #~ , [$conftest_s])
24430 #~ if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24431 #~ gcc_cv_as_comdat_group_group=no
24435 #~ if test x"$ld_is_gold" = xyes; then
24436 #~ comdat_group=yes
24437 #~ elif test x"$ld_is_mold" = xyes; then
24438 #~ comdat_group=yes
24439 #~ elif test $in_tree_ld = yes ; then
24441 #~ 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 \
24442 #~ && test $in_tree_ld_is_elf = yes; then
24443 #~ comdat_group=yes
24445 #~ elif echo "$ld_ver" | grep GNU > /dev/null; then
24446 #~ comdat_group=yes
24447 #~ if test 0"$ld_date" -lt 20050308; then
24448 #~ if test -n "$ld_date"; then
24449 #~ # If there was date string, but was earlier than 2005-03-08, fail
24451 #~ elif test "$ld_vers_major" -lt 2; then
24453 #~ elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24458 #~ changequote(,)dnl
24459 #~ case "${target}" in
24460 #~ *-*-solaris2.1[1-9]*)
24462 #~ # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24463 #~ # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24464 #~ # version 1.688.
24466 #~ # If using Sun as for COMDAT group as emitted by GCC, one needs at
24467 #~ # least ld version 1.2267.
24468 #~ if test "$ld_vers_major" -gt 1; then
24469 #~ comdat_group=yes
24470 #~ elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
24471 #~ comdat_group=yes
24472 #~ elif test "$ld_vers_minor" -ge 2267; then
24473 #~ comdat_group=yes
24477 #~ # Assume linkers other than GNU ld don't support COMDAT group.
24481 #~ changequote([,])dnl
24483 #~ # Allow overriding the automatic COMDAT group tests above.
24484 #~ AC_ARG_ENABLE(comdat,
24485 #~ [AS_HELP_STRING([--enable-comdat], [enable COMDAT group support])],
24486 #~ [comdat_group="$enable_comdat"])
24487 #~ if test $comdat_group = no; then
24488 #~ gcc_cv_as_comdat_group=no
24489 #~ gcc_cv_as_comdat_group_percent=no
24490 #~ gcc_cv_as_comdat_group_group=no
24492 #~ AC_DEFINE_UNQUOTED(HAVE_COMDAT_GROUP,
24493 #~ [`if test $gcc_cv_as_comdat_group = yes \
24494 #~ || test $gcc_cv_as_comdat_group_percent = yes \
24495 #~ || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`],
24496 #~ [Define 0/1 if your assembler and linker support COMDAT groups.])
24498 #~ # Restrict this test to Solaris/x86: other targets define this statically.
24499 #~ case "${target}" in
24500 #~ i?86-*-solaris2* | x86_64-*-solaris2*)
24501 #~ AC_MSG_CHECKING(support for hidden thunks in linkonce sections)
24502 #~ if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24503 #~ hidden_linkonce=yes
24505 #~ case "${target}" in
24506 #~ # Full support for hidden thunks in linkonce sections only appeared in
24507 #~ # Solaris 11/OpenSolaris.
24508 #~ *-*-solaris2.1[[1-9]]*)
24509 #~ hidden_linkonce=yes
24512 #~ hidden_linkonce=no
24516 #~ AC_MSG_RESULT($hidden_linkonce)
24517 #~ AC_DEFINE_UNQUOTED(USE_HIDDEN_LINKONCE,
24518 #~ [`if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`],
24519 #~ [Define 0/1 if your linker supports hidden thunks in linkonce sections.])
24523 #~ gcc_GAS_CHECK_FEATURE([line table is_stmt support],
24524 #~ gcc_cv_as_is_stmt,,
24526 #~ .file 1 "conf.c"
24527 #~ .loc 1 1 0 is_stmt 1],,
24528 #~ [AC_DEFINE(HAVE_GAS_LOC_STMT, 1,
24529 #~ [Define if your assembler supports the .loc is_stmt sub-directive.])])
24531 #~ gcc_GAS_CHECK_FEATURE([line table discriminator support],
24532 #~ gcc_cv_as_discriminator,,
24534 #~ .file 1 "conf.c"
24535 #~ .loc 1 1 0 discriminator 1],,
24536 #~ [AC_DEFINE(HAVE_GAS_DISCRIMINATOR, 1,
24537 #~ [Define if your assembler supports the .loc discriminator sub-directive.])])
24539 # Catch the newlib flag of the same name so we can gate GCC features on it.
24540 # Check whether --enable-newlib-nano-formatted-io was given.
24541 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
24542 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
24546 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
24552 #~ # Thread-local storage - the check is heavily parameterized.
24555 #~ case "$target" in
24556 #~ changequote(,)dnl
24559 #~ .section ".tdata","awT",@progbits
24562 #~ ldq $27,__tls_get_addr($29) !literal!1
24563 #~ lda $16,foo($29) !tlsgd!1
24564 #~ jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24565 #~ ldq $27,__tls_get_addr($29) !literal!2
24566 #~ lda $16,foo($29) !tlsldm!2
24567 #~ jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24568 #~ ldq $1,foo($29) !gotdtprel
24569 #~ ldah $2,foo($29) !dtprelhi
24570 #~ lda $3,foo($2) !dtprello
24571 #~ lda $4,foo($29) !dtprel
24572 #~ ldq $1,foo($29) !gottprel
24573 #~ ldah $2,foo($29) !tprelhi
24574 #~ lda $3,foo($2) !tprello
24575 #~ lda $4,foo($29) !tprel'
24576 #~ tls_as_opt=--fatal-warnings
24580 #~ add_s r0,r0, @foo@tpoff'
24582 #~ cris-*-*|crisv32-*-*)
24584 #~ .section ".tdata","awT",@progbits
24587 #~ move.d x:IE,$r10
24589 #~ tls_as_opt=--fatal-warnings
24593 #~ .section ".tdata","awT",@progbits
24596 #~ call #gettlsoff(x)'
24603 #~ .section ".tdata","awT",@progbits
24607 #~ addil LT%foo-$tls_gdidx$,gp
24608 #~ ldo RT%foo-$tls_gdidx$(%r1),%arg0
24609 #~ b __tls_get_addr
24611 #~ addil LT%foo-$tls_ldidx$,gp
24612 #~ b __tls_get_addr
24613 #~ ldo RT%foo-$tls_ldidx$(%r1),%arg0
24614 #~ addil LR%foo-$tls_dtpoff$,%ret0
24615 #~ ldo RR%foo-$tls_dtpoff$(%r1),%t1
24617 #~ addil LT%foo-$tls_ieoff$,gp
24618 #~ ldw RT%foo-$tls_ieoff$(%r1),%t2
24621 #~ addil LR%foo-$tls_leoff$,%t1
24622 #~ ldo RR%foo-$tls_leoff$(%r1),%t2'
24623 #~ tls_as_opt=--fatal-warnings
24627 #~ .section ".tdata","awT",%progbits
24630 #~ .word foo(gottpoff)
24631 #~ .word foo(tpoff)
24632 #~ .word foo(tlsgd)
24633 #~ .word foo(tlsldm)
24634 #~ .word foo(tlsldo)'
24636 #~ i[34567]86-*-* | x86_64-*-*)
24637 #~ case "$target" in
24638 #~ i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
24645 #~ if test x$on_solaris = xyes && test x$gas_flag = xno; then
24647 #~ .section .tdata,"awt",@progbits'
24648 #~ tls_section_flag=t
24649 #~ changequote([,])dnl
24650 #~ AC_DEFINE(TLS_SECTION_ASM_FLAG, 't',
24651 #~ [Define to the flag used to mark TLS sections if the default (`T') doesn't work.])
24652 #~ changequote(,)dnl
24655 #~ .section ".tdata","awT",@progbits'
24656 #~ tls_section_flag=T
24657 #~ tls_as_opt="--fatal-warnings"
24659 #~ case "$target" in
24661 #~ if test x$on_solaris = xyes; then
24662 #~ case $gas_flag in
24663 #~ yes) tls_as_opt="$tls_as_opt --32" ;;
24666 #~ conftest_s="$conftest_s
24669 #~ movl %gs:0, %eax
24670 #~ leal foo@tlsgd(,%ebx,1), %eax
24671 #~ leal foo@tlsldm(%ebx), %eax
24672 #~ leal foo@dtpoff(%eax), %edx
24673 #~ movl foo@gottpoff(%ebx), %eax
24674 #~ subl foo@gottpoff(%ebx), %eax
24675 #~ addl foo@gotntpoff(%ebx), %eax
24676 #~ movl foo@indntpoff, %eax
24677 #~ movl \$foo@tpoff, %eax
24678 #~ subl \$foo@tpoff, %eax
24679 #~ leal foo@ntpoff(%ecx), %eax"
24682 #~ if test x$on_solaris = xyes; then
24683 #~ case $gas_flag in
24684 #~ yes) tls_as_opt="$tls_as_opt --64" ;;
24685 #~ no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24688 #~ conftest_s="$conftest_s
24691 #~ movq %fs:0, %rax
24692 #~ leaq foo@tlsgd(%rip), %rdi
24693 #~ leaq foo@tlsld(%rip), %rdi
24694 #~ leaq foo@dtpoff(%rax), %rdx
24695 #~ movq foo@gottpoff(%rip), %rax
24696 #~ movq \$foo@tpoff, %rax"
24702 #~ .section ".tdata","awT",@progbits
24705 #~ addl r16 = @ltoff(@dtpmod(foo#)), gp
24706 #~ addl r17 = @ltoff(@dtprel(foo#)), gp
24707 #~ addl r18 = @ltoff(@tprel(foo#)), gp
24708 #~ addl r19 = @dtprel(foo#), gp
24709 #~ adds r21 = @dtprel(foo#), r13
24710 #~ movl r23 = @dtprel(foo#)
24711 #~ addl r20 = @tprel(foo#), gp
24712 #~ adds r22 = @tprel(foo#), r13
24713 #~ movl r24 = @tprel(foo#)'
24714 #~ tls_as_opt=--fatal-warnings
24718 #~ .section .tdata,"awT",@progbits
24722 #~ bl __tls_get_addr'
24723 #~ tls_first_major=0
24724 #~ tls_first_minor=0
24725 #~ tls_as_opt='--fatal-warnings'
24727 #~ microblaze*-*-*)
24729 #~ .section .tdata,"awT",@progbits
24733 #~ addik r5,r20,x@TLSGD
24734 #~ addik r5,r20,x@TLSLDM'
24735 #~ tls_as_opt='--fatal-warnings'
24739 #~ .section .tdata,"awT",@progbits
24743 #~ addiu $4, $28, %tlsgd(x)
24744 #~ addiu $4, $28, %tlsldm(x)
24745 #~ lui $4, %dtprel_hi(x)
24746 #~ addiu $4, $4, %dtprel_lo(x)
24747 #~ lw $4, %gottprel(x)($28)
24748 #~ lui $4, %tprel_hi(x)
24749 #~ addiu $4, $4, %tprel_lo(x)'
24750 #~ tls_as_opt='-32 --fatal-warnings'
24754 #~ .section .tdata,"awT",@progbits
24759 #~ move.l x@TLSGD(%a5),%a0
24760 #~ move.l x@TLSLDM(%a5),%a0
24761 #~ move.l x@TLSLDO(%a5),%a0
24762 #~ move.l x@TLSIE(%a5),%a0
24763 #~ move.l x@TLSLE(%a5),%a0'
24764 #~ tls_as_opt='--fatal-warnings'
24768 #~ .section ".tdata","awT",@progbits'
24769 #~ tls_as_opt="--fatal-warnings"
24773 #~ .section ".tdata","awT",%progbits
24776 #~ adrp x0, :tlsgd:x
24777 #~ add x0, x0, #:tlsgd_lo12:x
24778 #~ bl __tls_get_addr
24780 #~ tls_as_opt='--fatal-warnings'
24784 #~ .section ".tdata","awT",@progbits
24787 #~ l.movhi r3, tpoffha(foo)
24788 #~ l.add r3, r3, r10
24789 #~ l.lwz r4, tpofflo(foo)(r3)'
24790 #~ tls_as_opt=--fatal-warnings
24792 #~ powerpc-ibm-aix*)
24794 #~ .extern __get_tpointer
24797 #~ .tc a[TC],a[TL]@le
24798 #~ .csect .text[PR]
24801 #~ bla __get_tpointer
24810 #~ .section ".tdata","awT",@progbits
24818 #~ addi 3,2,ld0@got@tlsgd
24819 #~ bl .__tls_get_addr
24821 #~ addi 3,2,ld1@toc
24822 #~ bl .__tls_get_addr
24824 #~ addi 3,2,x1@got@tlsld
24825 #~ bl .__tls_get_addr
24827 #~ addi 9,3,x1@dtprel
24828 #~ bl .__tls_get_addr
24830 #~ addis 9,3,x2@dtprel@ha
24831 #~ addi 9,9,x2@dtprel@l
24832 #~ bl .__tls_get_addr
24834 #~ ld 9,x3@got@dtprel(2)
24836 #~ bl .__tls_get_addr
24838 #~ tls_as_opt="-a64 --fatal-warnings"
24842 #~ .section ".tdata","awT",@progbits
24850 #~ addi 3,31,ld0@got@tlsgd
24851 #~ bl __tls_get_addr
24852 #~ addi 3,31,x1@got@tlsld
24853 #~ bl __tls_get_addr
24854 #~ addi 9,3,x1@dtprel
24855 #~ addis 9,3,x2@dtprel@ha
24856 #~ addi 9,9,x2@dtprel@l
24857 #~ lwz 9,x3@got@tprel(31)
24859 #~ addi 9,2,x1@tprel
24860 #~ addis 9,2,x2@tprel@ha
24861 #~ addi 9,9,x2@tprel@l'
24862 #~ tls_as_opt="-a32 --fatal-warnings"
24866 #~ .section .tdata,"awT",@progbits
24870 #~ call __tls_get_addr'
24871 #~ tls_as_opt='--fatal-warnings'
24875 #~ .section ".tdata","awT",@progbits
24879 #~ .long foo@TLSLDM
24880 #~ .long foo@DTPOFF
24881 #~ .long foo@NTPOFF
24882 #~ .long foo@GOTNTPOFF
24883 #~ .long foo@INDNTPOFF
24884 #~ l %r1,foo@GOTNTPOFF(%r12)
24885 #~ l %r1,0(%r1):tls_load:foo
24886 #~ bas %r14,0(%r1,%r13):tls_gdcall:foo
24887 #~ bas %r14,0(%r1,%r13):tls_ldcall:foo'
24888 #~ tls_as_opt="-m31 --fatal-warnings"
24892 #~ .section ".tdata","awT",@progbits
24896 #~ .quad foo@TLSLDM
24897 #~ .quad foo@DTPOFF
24898 #~ .quad foo@NTPOFF
24899 #~ .quad foo@GOTNTPOFF
24900 #~ lg %r1,foo@GOTNTPOFF(%r12)
24901 #~ larl %r1,foo@INDNTPOFF
24902 #~ brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24903 #~ brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24904 #~ tls_as_opt="-m64 -Aesame --fatal-warnings"
24906 #~ sh-*-* | sh[123456789lbe]*-*-*)
24908 #~ .section ".tdata","awT",@progbits
24912 #~ .long foo@TLSLDM
24913 #~ .long foo@DTPOFF
24914 #~ .long foo@GOTTPOFF
24915 #~ .long foo@TPOFF'
24916 #~ tls_as_opt=--fatal-warnings
24919 #~ case "$target" in
24920 #~ sparc*-sun-solaris2.*)
24927 #~ if test x$on_solaris = xyes && test x$gas_flag = xno; then
24929 #~ .section ".tdata",#alloc,#write,#tls'
24932 #~ .section ".tdata","awT",@progbits'
24933 #~ tls_as_opt="-32 --fatal-warnings"
24935 #~ conftest_s="$conftest_s
24938 #~ sethi %tgd_hi22(foo), %o0
24939 #~ add %o0, %tgd_lo10(foo), %o1
24940 #~ add %l7, %o1, %o0, %tgd_add(foo)
24941 #~ call __tls_get_addr, %tgd_call(foo)
24942 #~ sethi %tldm_hi22(foo), %l1
24943 #~ add %l1, %tldm_lo10(foo), %l2
24944 #~ add %l7, %l2, %o0, %tldm_add(foo)
24945 #~ call __tls_get_addr, %tldm_call(foo)
24946 #~ sethi %tldo_hix22(foo), %l3
24947 #~ xor %l3, %tldo_lox10(foo), %l4
24948 #~ add %o0, %l4, %l5, %tldo_add(foo)
24949 #~ sethi %tie_hi22(foo), %o3
24950 #~ add %o3, %tie_lo10(foo), %o3
24951 #~ ld [%l7 + %o3], %o2, %tie_ld(foo)
24952 #~ add %g7, %o2, %o4, %tie_add(foo)
24953 #~ sethi %tle_hix22(foo), %l1
24954 #~ xor %l1, %tle_lox10(foo), %o5
24955 #~ ld [%g7 + %o5], %o1"
24959 #~ .section ".tdata","awT",@progbits
24962 #~ addli r0, zero, tls_gd(foo)
24963 #~ auli r0, zero, tls_gd_ha16(foo)
24964 #~ addli r0, r0, tls_gd_lo16(foo)
24965 #~ jal __tls_get_addr
24966 #~ addli r0, zero, tls_ie(foo)
24967 #~ auli r0, r0, tls_ie_ha16(foo)
24968 #~ addli r0, r0, tls_ie_lo16(foo)'
24969 #~ tls_as_opt="--fatal-warnings"
24973 #~ .section ".tdata","awT",@progbits
24976 #~ shl16insli r0, zero, hw0_last_tls_gd(foo)
24977 #~ shl16insli r0, zero, hw1_last_tls_gd(foo)
24978 #~ shl16insli r0, r0, hw0_tls_gd(foo)
24979 #~ jal __tls_get_addr
24980 #~ shl16insli r0, zero, hw1_last_tls_ie(foo)
24981 #~ shl16insli r0, r0, hw0_tls_ie(foo)'
24982 #~ tls_as_opt="--fatal-warnings"
24986 #~ .section ".tdata","awT",@progbits
24989 #~ movi a8, foo@TLSFUNC
24990 #~ movi a10, foo@TLSARG
24991 #~ callx8.tls a8, foo@TLSCALL'
24993 #~ changequote([,])dnl
24995 #~ set_have_as_tls=no
24996 #~ if test "x$enable_tls" = xno ; then
24997 #~ : # TLS explicitly disabled.
24998 #~ elif test "x$enable_tls" = xyes ; then
24999 #~ set_have_as_tls=yes # TLS explicitly enabled.
25000 #~ elif test -z "$conftest_s"; then
25001 #~ : # If we don't have a check, assume no support.
25003 #~ gcc_GAS_CHECK_FEATURE(thread-local storage support, gcc_cv_as_tls,
25004 #~ [$tls_as_opt], [$conftest_s],,
25005 #~ [set_have_as_tls=yes])
25007 #~ if test $set_have_as_tls = yes ; then
25008 #~ AC_DEFINE(HAVE_AS_TLS, 1,
25009 #~ [Define if your assembler and linker support thread-local storage.])
25012 # Target-specific assembler checks.
25014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25015 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25016 gcc_cv_ld_static_dynamic
=no
25017 gcc_cv_ld_static_option
='-Bstatic'
25018 gcc_cv_ld_dynamic_option
='-Bdynamic'
25019 if test $in_tree_ld = yes ; then
25020 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
25021 gcc_cv_ld_static_dynamic
=yes
25023 elif test x
$gcc_cv_ld != x
; then
25024 # Check if linker supports -Bstatic/-Bdynamic option
25025 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
25026 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
25027 gcc_cv_ld_static_dynamic
=yes
25030 # AIX ld uses -b flags
25031 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
25032 gcc_cv_ld_static_dynamic
=yes
25033 gcc_cv_ld_static_option
="-bstatic"
25034 gcc_cv_ld_dynamic_option
="-bdynamic"
25036 # HP-UX ld uses -a flags to select between shared and archive.
25038 if test x
"$gnu_ld" = xno
; then
25039 gcc_cv_ld_static_dynamic
=yes
25040 gcc_cv_ld_static_option
="-aarchive_shared"
25041 gcc_cv_ld_dynamic_option
="-adefault"
25044 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25046 gcc_cv_ld_static_dynamic
=yes
25051 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
25053 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25056 cat >>confdefs.h
<<_ACEOF
25057 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25061 cat >>confdefs.h
<<_ACEOF
25062 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25067 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25070 $as_echo_n "checking linker --version-script option... " >&6; }
25071 gcc_cv_ld_version_script
=no
25072 ld_version_script_option
=''
25073 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25074 gcc_cv_ld_version_script
=yes
25075 ld_version_script_option
='--version-script'
25076 elif test x
$gcc_cv_ld != x
; then
25078 # Solaris 2 ld always supports -M. It also supports a subset of
25079 # --version-script since Solaris 11.4, but requires
25080 # -z gnu-version-script-compat to activate.
25082 gcc_cv_ld_version_script
=yes
25083 ld_version_script_option
='-M'
25087 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25089 $as_echo "$gcc_cv_ld_version_script" >&6; }
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25093 $as_echo_n "checking linker soname option... " >&6; }
25094 gcc_cv_ld_soname
=no
25095 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25096 gcc_cv_ld_soname
=yes
25097 ld_soname_option
='-soname'
25098 elif test x
$gcc_cv_ld != x
; then
25101 gcc_cv_ld_soname
=yes
25102 ld_soname_option
='-install_name'
25104 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25105 # ld compatiblity since some Solaris 10 update.
25107 gcc_cv_ld_soname
=yes
25108 ld_soname_option
='-h'
25112 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25114 $as_echo "$gcc_cv_ld_soname" >&6; }
25117 if test x
"$demangler_in_ld" = xyes
; then
25118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25119 $as_echo_n "checking linker --demangle support... " >&6; }
25120 gcc_cv_ld_demangle
=no
25121 if test $in_tree_ld = yes; then
25122 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 \
25123 gcc_cv_ld_demangle
=yes
25125 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
25126 # Check if the GNU linker supports --demangle option
25127 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
25128 gcc_cv_ld_demangle
=yes
25131 if test x
"$gcc_cv_ld_demangle" = xyes
; then
25133 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25137 $as_echo "$gcc_cv_ld_demangle" >&6; }
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25141 $as_echo_n "checking linker plugin support... " >&6; }
25142 gcc_cv_lto_plugin
=0
25143 if test -f liblto_plugin.la
; then
25144 save_ld_ver
="$ld_ver"
25145 save_ld_vers_major
="$ld_vers_major"
25146 save_ld_vers_minor
="$ld_vers_minor"
25147 save_ld_is_gold
="$ld_is_gold"
25151 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
25153 # FIXME: ld_is_gold?
25154 ld_vers_major
="$gcc_cv_gld_major_version"
25155 ld_vers_minor
="$gcc_cv_gld_minor_version"
25157 # Determine plugin linker version.
25158 # FIXME: Partial duplicate from above, generalize.
25159 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25160 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25161 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
25163 ld_vers
=`echo $ld_ver | sed -n \
25164 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25166 ld_vers
=`echo $ld_ver | sed -n \
25167 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25169 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
25170 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25174 # Determine plugin support.
25175 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25176 # Require GNU ld or gold 2.21+ for plugin support by default.
25177 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25178 gcc_cv_lto_plugin
=2
25179 elif test "$ld_is_mold" = yes; then
25180 gcc_cv_lto_plugin
=2
25181 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25182 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25183 gcc_cv_lto_plugin
=1
25187 ld_ver
="$save_ld_ver"
25188 ld_vers_major
="$save_ld_vers_major"
25189 ld_vers_minor
="$save_ld_vers_minor"
25190 ld_is_gold
="$save_ld_is_gold"
25193 cat >>confdefs.h
<<_ACEOF
25194 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25198 $as_echo "$gcc_cv_lto_plugin" >&6; }
25200 # Target OS-specific assembler checks.
25202 #~ case "$target_os" in
25204 #~ gcc_GAS_CHECK_FEATURE([-mmacosx-version-min option],
25205 #~ gcc_cv_as_mmacosx_version_min,
25206 #~ [-mmacosx-version-min=10.1], [.text],,
25207 #~ [AC_DEFINE(HAVE_AS_MMACOSX_VERSION_MIN_OPTION, 1,
25208 #~ [Define if your Mac OS X assembler supports the -mmacos-version-min option.])])
25212 # Target CPU-specific assembler checks.
25214 #~ case "$target" in
25216 #~ gcc_GAS_CHECK_FEATURE([-mabi option], gcc_cv_as_aarch64_mabi,
25217 #~ [-mabi=lp64], [.text],,,)
25218 #~ if test x$gcc_cv_as_aarch64_mabi = xyes; then
25219 #~ AC_DEFINE(HAVE_AS_MABI_OPTION, 1,
25220 #~ [Define if your assembler supports the -mabi option.])
25222 #~ if test x$with_abi = xilp32; then
25223 #~ AC_MSG_ERROR([Assembler does not support -mabi=ilp32.\
25224 #~ Upgrade the Assembler.])
25226 #~ if test x"$with_multilib_list" = xdefault; then
25227 #~ TM_MULTILIB_CONFIG=lp64
25229 #~ aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
25230 #~ for aarch64_multilib in ${aarch64_multilibs}; do
25231 #~ case ${aarch64_multilib} in
25233 #~ AC_MSG_ERROR([Assembler does not support -mabi=ilp32.\
25234 #~ Upgrade the Assembler.])
25242 #~ # Check if we have binutils support for relocations types needed by -fpic
25243 #~ gcc_GAS_CHECK_FEATURE([-fpic relocs], gcc_cv_as_aarch64_picreloc,,
25246 #~ ldr x0, [[x2, #:gotpage_lo15:globalsym]]
25247 #~ ],,[AC_DEFINE(HAVE_AS_SMALL_PIC_RELOCS, 1,
25248 #~ [Define if your assembler supports relocs needed by -fpic.])])
25249 #~ # Enable Branch Target Identification Mechanism and Return Address
25250 #~ # Signing by default.
25251 #~ AC_ARG_ENABLE(standard-branch-protection,
25253 #~ AS_HELP_STRING([--enable-standard-branch-protection],
25254 #~ [enable Branch Target Identification Mechanism and Return Address Signing by default for AArch64])
25255 #~ AS_HELP_STRING([--disable-standard-branch-protection],
25256 #~ [disable Branch Target Identification Mechanism and Return Address Signing by default for AArch64])
25259 #~ case $enableval in
25261 #~ tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25266 #~ AC_MSG_ERROR(['$enableval' is an invalid value for --enable-standard-branch-protection.\
25267 #~ Valid choices are 'yes' and 'no'.])
25272 #~ # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25273 #~ AC_ARG_ENABLE(fix-cortex-a53-835769,
25275 #~ AS_HELP_STRING([--enable-fix-cortex-a53-835769],
25276 #~ [enable workaround for AArch64 Cortex-A53 erratum 835769 by default])
25277 #~ AS_HELP_STRING([--disable-fix-cortex-a53-835769],
25278 #~ [disable workaround for AArch64 Cortex-A53 erratum 835769 by default])
25281 #~ case $enableval in
25283 #~ tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25288 #~ AC_MSG_ERROR(['$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25289 #~ Valid choices are 'yes' and 'no'.])
25295 #~ # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25296 #~ AC_ARG_ENABLE(fix-cortex-a53-843419,
25298 #~ AS_HELP_STRING([--enable-fix-cortex-a53-843419],
25299 #~ [enable workaround for AArch64 Cortex-A53 erratum 843419 by default])
25300 #~ AS_HELP_STRING([--disable-fix-cortex-a53-843419],
25301 #~ [disable workaround for AArch64 Cortex-A53 erratum 843419 by default])
25304 #~ case $enableval in
25306 #~ tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25311 #~ AC_MSG_ERROR(['$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25312 #~ Valid choices are 'yes' and 'no'.])
25320 #~ # All TARGET_ABI_OSF targets.
25321 #~ alpha*-*-linux* | alpha*-*-*bsd*)
25322 #~ gcc_GAS_CHECK_FEATURE([explicit relocation support],
25323 #~ gcc_cv_as_alpha_explicit_relocs,,
25326 #~ extbl $3, $2, $3 !lituse_bytoff!1
25327 #~ ldq $2, a($29) !literal!1
25328 #~ ldq $4, b($29) !literal!2
25329 #~ ldq_u $3, 0($2) !lituse_base!1
25330 #~ ldq $27, f($29) !literal!5
25331 #~ jsr $26, ($27), f !lituse_jsr!5
25332 #~ ldah $29, 0($26) !gpdisp!3
25333 #~ lda $0, c($29) !gprel
25334 #~ ldah $1, d($29) !gprelhigh
25335 #~ lda $1, d($1) !gprellow
25336 #~ lda $29, 0($29) !gpdisp!3],,
25337 #~ [AC_DEFINE(HAVE_AS_EXPLICIT_RELOCS, 1,
25338 #~ [Define if your assembler supports explicit relocations.])])
25339 #~ gcc_GAS_CHECK_FEATURE([jsrdirect relocation support],
25340 #~ gcc_cv_as_alpha_jsrdirect_relocs,,
25343 #~ ldq $27, a($29) !literal!1
25344 #~ jsr $26, ($27), a !lituse_jsrdirect!1],,
25345 #~ [AC_DEFINE(HAVE_AS_JSRDIRECT_RELOCS, 1,
25346 #~ [Define if your assembler supports the lituse_jsrdirect relocation.])])
25350 #~ gcc_GAS_CHECK_FEATURE([--mlink-relax option], gcc_cv_as_avr_mlink_relax,
25351 #~ [--mlink-relax], [.text],,
25352 #~ [AC_DEFINE(HAVE_AS_AVR_MLINK_RELAX_OPTION, 1,
25353 #~ [Define if your avr assembler supports --mlink-relax option.])])
25355 #~ gcc_GAS_CHECK_FEATURE([-mrmw option], gcc_cv_as_avr_mrmw,
25356 #~ [-mrmw], [.text],,
25357 #~ [AC_DEFINE(HAVE_AS_AVR_MRMW_OPTION, 1,
25358 #~ [Define if your avr assembler supports -mrmw option.])])
25360 #~ gcc_GAS_CHECK_FEATURE([__gcc_isr pseudo instruction],
25361 #~ gcc_cv_as_avr_mgccisr,
25362 #~ [-mgcc-isr], [.text
25367 #~ [AC_DEFINE(HAVE_AS_AVR_MGCCISR_OPTION, 1,
25368 #~ [Define if your avr assembler supports -mgcc-isr option.])])
25370 #~ # Check how default linker description file implements .rodata for
25371 #~ # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25372 #~ # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25373 #~ AC_MSG_CHECKING(binutils for avrxmega3 .rodata support)
25374 #~ cat > conftest.s <<EOF
25375 #~ .section .rodata,"a",@progbits
25377 #~ ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25381 #~ rm -f conftest.nm
25382 #~ AC_TRY_COMMAND([$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o])
25383 #~ AC_TRY_COMMAND([$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf])
25384 #~ AC_TRY_COMMAND([$gcc_cv_nm conftest.elf > conftest.nm])
25385 #~ if test -s conftest.nm
25387 #~ if grep ' R xxvaryy' conftest.nm > /dev/null; then
25388 #~ AC_MSG_RESULT(yes)
25389 #~ AC_DEFINE(HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH, 1,
25390 #~ [Define if your default avr linker script for avrxmega3 leaves .rodata in flash.])
25392 #~ AC_MSG_RESULT(no: avrxmega3 .rodata located in RAM)
25393 #~ echo "$as_me: nm output was" >&AS_MESSAGE_LOG_FD
25394 #~ cat conftest.nm >&AS_MESSAGE_LOG_FD
25395 #~ avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25396 #~ AC_MSG_WARN([[support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)]])
25399 #~ AC_MSG_RESULT(test failed)
25400 #~ echo "$as_me: failed program was" >&AS_MESSAGE_LOG_FD
25401 #~ cat conftest.s >&AS_MESSAGE_LOG_FD
25402 #~ AC_MSG_WARN([[see `config.log' for details]])
25404 #~ rm -f conftest.s conftest.o conftest.elf conftest.nm
25408 #~ gcc_GAS_CHECK_FEATURE([-no-mul-bug-abort option],
25409 #~ gcc_cv_as_cris_no_mul_bug,
25410 #~ [-no-mul-bug-abort], [.text],,
25411 #~ [AC_DEFINE(HAVE_AS_NO_MUL_BUG_ABORT_OPTION, 1,
25412 #~ [Define if your assembler supports the -no-mul-bug-abort option.])])
25416 #~ gcc_GAS_CHECK_FEATURE([-relax option], gcc_cv_as_sparc_relax,
25417 #~ [-relax], [.text],,
25418 #~ [AC_DEFINE(HAVE_AS_RELAX_OPTION, 1,
25419 #~ [Define if your assembler supports -relax option.])])
25421 #~ gcc_GAS_CHECK_FEATURE([GOTDATA_OP relocs],
25422 #~ gcc_cv_as_sparc_gotdata_op,
25429 #~ sethi %gdop_hix22(foo), %g1
25430 #~ xor %g1, %gdop_lox10(foo), %g1
25431 #~ ld [[%l7 + %g1]], %g2, %gdop(foo)],
25432 #~ [if test x$gcc_cv_ld != x \
25433 #~ && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25434 #~ if test x$gcc_cv_objdump != x; then
25435 #~ if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25436 #~ | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25437 #~ gcc_cv_as_sparc_gotdata_op=no
25439 #~ gcc_cv_as_sparc_gotdata_op=yes
25443 #~ rm -f conftest],
25444 #~ [AC_DEFINE(HAVE_AS_SPARC_GOTDATA_OP, 1,
25445 #~ [Define if your assembler and linker support GOTDATA_OP relocs.])])
25447 #~ gcc_GAS_CHECK_FEATURE([unaligned pcrel relocs],
25448 #~ gcc_cv_as_sparc_ua_pcrel,
25456 #~ .uaword %r_disp32(foo)],
25457 #~ [if test x$gcc_cv_ld != x \
25458 #~ && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25459 #~ gcc_cv_as_sparc_ua_pcrel=yes
25461 #~ rm -f conftest],
25462 #~ [AC_DEFINE(HAVE_AS_SPARC_UA_PCREL, 1,
25463 #~ [Define if your assembler and linker support unaligned PC relative relocs.])
25465 #~ gcc_GAS_CHECK_FEATURE([unaligned pcrel relocs against hidden symbols],
25466 #~ gcc_cv_as_sparc_ua_pcrel_hidden,
25471 #~ .uaword %r_disp32(foo)
25472 #~ .byte 0x32, 0x33, 0x34
25477 #~ [if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25478 #~ && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25479 #~ && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25480 #~ | grep ' 31000000 07323334' > /dev/null 2>&1; then
25481 #~ if $gcc_cv_objdump -R conftest 2> /dev/null \
25482 #~ | grep 'DISP32' > /dev/null 2>&1; then
25485 #~ gcc_cv_as_sparc_ua_pcrel_hidden=yes
25488 #~ rm -f conftest],
25489 #~ [AC_DEFINE(HAVE_AS_SPARC_UA_PCREL_HIDDEN, 1,
25490 #~ [Define if your assembler and linker support unaligned PC relative relocs against hidden symbols.])])
25491 #~ ]) # unaligned pcrel relocs
25493 #~ gcc_GAS_CHECK_FEATURE([offsetable %lo()],
25494 #~ gcc_cv_as_sparc_offsetable_lo10,
25497 #~ or %g1, %lo(ab) + 12, %g1
25498 #~ or %g1, %lo(ab + 12), %g1],
25499 #~ [if test x$gcc_cv_objdump != x \
25500 #~ && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25501 #~ | grep ' 82106000 82106000' > /dev/null 2>&1; then
25502 #~ gcc_cv_as_sparc_offsetable_lo10=yes
25504 #~ [AC_DEFINE(HAVE_AS_OFFSETABLE_LO10, 1,
25505 #~ [Define if your assembler supports offsetable %lo().])])
25507 #~ gcc_GAS_CHECK_FEATURE([FMAF, HPC, and VIS 3.0 instructions],
25508 #~ gcc_cv_as_sparc_fmaf,
25511 #~ .register %g2, #scratch
25512 #~ .register %g3, #scratch
25514 #~ fmaddd %f0, %f2, %f4, %f6
25515 #~ addxccc %g1, %g2, %g3
25516 #~ fsrl32 %f2, %f4, %f8
25517 #~ fnaddd %f10, %f12, %f14],,
25518 #~ [AC_DEFINE(HAVE_AS_FMAF_HPC_VIS3, 1,
25519 #~ [Define if your assembler supports FMAF, HPC, and VIS 3.0 instructions.])])
25521 #~ gcc_GAS_CHECK_FEATURE([SPARC4 instructions],
25522 #~ gcc_cv_as_sparc_sparc4,
25523 #~ [-xarch=sparc4],
25525 #~ .register %g2, #scratch
25526 #~ .register %g3, #scratch
25528 #~ cxbe %g2, %g3, 1f
25529 #~ 1: cwbneg %g2, %g3, 1f
25532 #~ aes_kexpand0 %f4, %f6, %f8
25533 #~ des_round %f38, %f40, %f42, %f44
25534 #~ camellia_f %f54, %f56, %f58, %f60
25535 #~ kasumi_fi_xor %f46, %f48, %f50, %f52],,
25536 #~ [AC_DEFINE(HAVE_AS_SPARC4, 1,
25537 #~ [Define if your assembler supports SPARC4 instructions.])])
25539 #~ gcc_GAS_CHECK_FEATURE([SPARC5 and VIS 4.0 instructions],
25540 #~ gcc_cv_as_sparc_sparc5,
25541 #~ [-xarch=sparc5],
25543 #~ .register %g2, #scratch
25544 #~ .register %g3, #scratch
25546 #~ subxc %g1, %g2, %g3
25547 #~ fpadd8 %f0, %f2, %f4],,
25548 #~ [AC_DEFINE(HAVE_AS_SPARC5_VIS4, 1,
25549 #~ [Define if your assembler supports SPARC5 and VIS 4.0 instructions.])])
25551 #~ gcc_GAS_CHECK_FEATURE([SPARC6 instructions],
25552 #~ gcc_cv_as_sparc_sparc6,
25553 #~ [-xarch=sparc6],
25555 #~ .register %g2, #scratch
25556 #~ .register %g3, #scratch
25558 #~ rd %entropy, %g1
25559 #~ fpsll64x %f0, %f2, %f4],,
25560 #~ [AC_DEFINE(HAVE_AS_SPARC6, 1,
25561 #~ [Define if your assembler supports SPARC6 instructions.])])
25563 #~ gcc_GAS_CHECK_FEATURE([LEON instructions],
25564 #~ gcc_cv_as_sparc_leon,
25567 #~ .register %g2, #scratch
25568 #~ .register %g3, #scratch
25570 #~ smac %g2, %g3, %g1
25571 #~ umac %g2, %g3, %g1
25572 #~ casa [[%g2]] 0xb, %g3, %g1],,
25573 #~ [AC_DEFINE(HAVE_AS_LEON, 1,
25574 #~ [Define if your assembler supports LEON instructions.])])
25577 #~ changequote(,)dnl
25578 #~ i[34567]86-*-* | x86_64-*-*)
25579 #~ changequote([,])dnl
25580 #~ case $target_os in
25582 #~ # Full C++ conformance when using a shared libstdc++-v3 requires some
25583 #~ # support from the Cygwin DLL, which in more recent versions exports
25584 #~ # wrappers to aid in interposing and redirecting operators new, delete,
25585 #~ # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25586 #~ # are configuring for a version of Cygwin that exports the wrappers.
25587 #~ if test x$host = x$target && test x$host_cpu = xi686; then
25588 #~ AC_CHECK_FUNC([__wrap__Znaj],[gcc_ac_cygwin_dll_wrappers=yes],[gcc_ac_cygwin_dll_wrappers=no])
25590 #~ # Can't check presence of libc functions during cross-compile, so
25591 #~ # we just have to assume we're building for an up-to-date target.
25592 #~ gcc_ac_cygwin_dll_wrappers=yes
25594 #~ AC_DEFINE_UNQUOTED(USE_CYGWIN_LIBSTDCXX_WRAPPERS,
25595 #~ [`if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`],
25596 #~ [Define if you want to generate code by default that assumes that the
25597 #~ Cygwin DLL exports wrappers to support libstdc++ function replacement.])
25599 #~ case $target_os in
25600 #~ cygwin* | pe | mingw32*)
25601 #~ # Recent binutils allows the three-operand form of ".comm" on PE. This
25602 #~ # definition is used unconditionally to initialise the default state of
25603 #~ # the target option variable that governs usage of the feature.
25604 #~ gcc_GAS_CHECK_FEATURE([.comm with alignment], gcc_cv_as_comm_has_align,,
25605 #~ [.comm foo,1,32])
25606 #~ AC_DEFINE_UNQUOTED(HAVE_GAS_ALIGNED_COMM,
25607 #~ [`if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`],
25608 #~ [Define if your assembler supports specifying the alignment
25609 #~ of objects allocated using the GAS .comm command.])
25610 #~ # Used for DWARF 2 in PE
25611 #~ gcc_GAS_CHECK_FEATURE([.secrel32 relocs],
25612 #~ gcc_cv_as_ix86_pe_secrel32,,
25617 #~ [if test x$gcc_cv_ld != x \
25618 #~ && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25619 #~ gcc_cv_as_ix86_pe_secrel32=yes
25621 #~ rm -f conftest],
25622 #~ [AC_DEFINE(HAVE_GAS_PE_SECREL32_RELOC, 1,
25623 #~ [Define if your assembler and linker support 32-bit section relative relocs via '.secrel32 label'.])])
25624 #~ # Test if the assembler supports the extended form of the .section
25625 #~ # directive that specifies section alignment. LTO support uses this,
25626 #~ # but normally only after installation, so we warn but don't fail the
25627 #~ # configure if LTO is enabled but the assembler does not support it.
25628 #~ gcc_GAS_CHECK_FEATURE([.section with alignment], gcc_cv_as_section_has_align,
25629 #~ -fatal-warnings,[.section lto_test,"dr0"])
25630 #~ if test x$gcc_cv_as_section_has_align != xyes; then
25631 #~ case ",$enable_languages," in
25633 #~ AC_MSG_WARN([LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded.])
25639 #~ case $target_os in
25640 #~ darwin2* | darwin19*)
25641 #~ gcc_GAS_CHECK_FEATURE([llvm assembler x86-pad-for-align option],
25642 #~ gcc_cv_as_mllvm_x86_pad_for_align,
25643 #~ [-mllvm -x86-pad-for-align=false], [.text],,
25644 #~ [AC_DEFINE(HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN, 1,
25645 #~ [Define if your Mac OS X assembler supports -mllvm -x86-pad-for-align=false.])])
25649 #~ gcc_GAS_CHECK_FEATURE([-xbrace_comment], gcc_cv_as_ix86_xbrace_comment,
25650 #~ [-xbrace_comment=no], [.text],,
25651 #~ [AC_DEFINE(HAVE_AS_XBRACE_COMMENT_OPTION, 1,
25652 #~ [Define if your assembler supports -xbrace_comment option.])])
25654 #~ gcc_GAS_CHECK_FEATURE([filds and fists mnemonics],
25655 #~ gcc_cv_as_ix86_filds,,
25656 #~ [filds (%ebp); fists (%ebp)],,
25657 #~ [AC_DEFINE(HAVE_AS_IX86_FILDS, 1,
25658 #~ [Define if your assembler uses filds and fists mnemonics.])])
25660 #~ gcc_GAS_CHECK_FEATURE([fildq and fistpq mnemonics],
25661 #~ gcc_cv_as_ix86_fildq,,
25662 #~ [fildq (%ebp); fistpq (%ebp)],,
25663 #~ [AC_DEFINE(HAVE_AS_IX86_FILDQ, 1,
25664 #~ [Define if your assembler uses fildq and fistq mnemonics.])])
25666 #~ gcc_GAS_CHECK_FEATURE([cmov syntax],
25667 #~ gcc_cv_as_ix86_cmov_sun_syntax,,
25668 #~ [cmovl.l %edx, %eax],,
25669 #~ [AC_DEFINE(HAVE_AS_IX86_CMOV_SUN_SYNTAX, 1,
25670 #~ [Define if your assembler supports the Sun syntax for cmov.])])
25672 #~ gcc_GAS_CHECK_FEATURE([ffreep mnemonic],
25673 #~ gcc_cv_as_ix86_ffreep,,
25674 #~ [ffreep %st(1)],,
25675 #~ [AC_DEFINE(HAVE_AS_IX86_FFREEP, 1,
25676 #~ [Define if your assembler supports the ffreep mnemonic.])])
25678 #~ gcc_GAS_CHECK_FEATURE([.quad directive],
25679 #~ gcc_cv_as_ix86_quad,,
25681 #~ [AC_DEFINE(HAVE_AS_IX86_QUAD, 1,
25682 #~ [Define if your assembler supports the .quad directive.])])
25684 #~ gcc_GAS_CHECK_FEATURE([sahf mnemonic],
25685 #~ gcc_cv_as_ix86_sahf,,
25688 #~ [AC_DEFINE(HAVE_AS_IX86_SAHF, 1,
25689 #~ [Define if your assembler supports the sahf mnemonic in 64bit mode.])])
25691 #~ gcc_GAS_CHECK_FEATURE([interunit movq mnemonic],
25692 #~ gcc_cv_as_ix86_interunit_movq,,
25695 #~ movq %rax, %xmm0])
25696 #~ AC_DEFINE_UNQUOTED(HAVE_AS_IX86_INTERUNIT_MOVQ,
25697 #~ [`if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`],
25698 #~ [Define if your assembler supports interunit movq mnemonic.])
25700 #~ gcc_GAS_CHECK_FEATURE([hle prefixes],
25701 #~ gcc_cv_as_ix86_hle,,
25702 #~ [lock xacquire cmpxchg %esi, (%ecx)],,
25703 #~ [AC_DEFINE(HAVE_AS_IX86_HLE, 1,
25704 #~ [Define if your assembler supports HLE prefixes.])])
25706 #~ gcc_GAS_CHECK_FEATURE([swap suffix],
25707 #~ gcc_cv_as_ix86_swap,,
25708 #~ [movl.s %esp, %ebp],,
25709 #~ [AC_DEFINE(HAVE_AS_IX86_SWAP, 1,
25710 #~ [Define if your assembler supports the swap suffix.])])
25712 #~ gcc_GAS_CHECK_FEATURE([different section symbol subtraction],
25713 #~ gcc_cv_as_ix86_diff_sect_delta,,
25714 #~ [.section .rodata
25721 #~ [AC_DEFINE(HAVE_AS_IX86_DIFF_SECT_DELTA, 1,
25722 #~ [Define if your assembler supports the subtraction of symbols in different sections.])])
25724 #~ gcc_GAS_CHECK_FEATURE([rep and lock prefix],
25725 #~ gcc_cv_as_ix86_rep_lock_prefix,,
25729 #~ rep bsf %ecx, %eax
25730 #~ rep bsr %ecx, %eax
25731 #~ lock addl %edi, (%eax,%esi)
25732 #~ lock orl $0, (%esp)],,
25733 #~ [AC_DEFINE(HAVE_AS_IX86_REP_LOCK_PREFIX, 1,
25734 #~ [Define if the assembler supports 'rep <insn>, lock <insn>'.])])
25736 #~ gcc_GAS_CHECK_FEATURE([ud2 mnemonic],
25737 #~ gcc_cv_as_ix86_ud2,,
25739 #~ [AC_DEFINE(HAVE_AS_IX86_UD2, 1,
25740 #~ [Define if your assembler supports the 'ud2' mnemonic.])])
25742 #~ # Enforce 32-bit output with gas and gld.
25743 #~ if test x$gas = xyes; then
25744 #~ as_ix86_gas_32_opt="--32"
25746 #~ if echo "$ld_ver" | grep GNU > /dev/null; then
25747 #~ if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25748 #~ ld_ix86_gld_32_opt="-melf_i386_sol2"
25750 #~ ld_ix86_gld_32_opt="-melf_i386"
25754 #~ gcc_GAS_CHECK_FEATURE([R_386_TLS_GD_PLT reloc],
25755 #~ gcc_cv_as_ix86_tlsgdplt,
25756 #~ [$as_ix86_gas_32_opt],
25757 #~ [call tls_gd@tlsgdplt],
25758 #~ [if test x$gcc_cv_ld != x \
25759 #~ && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
25760 #~ gcc_cv_as_ix86_tlsgdplt=yes
25762 #~ rm -f conftest],
25763 #~ [AC_DEFINE(HAVE_AS_IX86_TLSGDPLT, 1,
25764 #~ [Define if your assembler and linker support @tlsgdplt.])])
25767 #~ .section .tdata,"aw'$tls_section_flag'",@progbits
25769 #~ .section .text,"ax",@progbits
25770 #~ call tls_ld@tlsldmplt'
25772 #~ gcc_GAS_CHECK_FEATURE([R_386_TLS_LDM_PLT reloc],
25773 #~ gcc_cv_as_ix86_tlsldmplt,
25774 #~ [$as_ix86_gas_32_opt],
25776 #~ [if test x$gcc_cv_ld != x \
25777 #~ && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
25778 #~ gcc_cv_as_ix86_tlsldmplt=yes
25780 #~ rm -f conftest])
25781 #~ AC_DEFINE_UNQUOTED(HAVE_AS_IX86_TLSLDMPLT,
25782 #~ [`if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`],
25783 #~ [Define to 1 if your assembler and linker support @tlsldmplt.])
25786 #~ .section .text,"ax",@progbits
25788 #~ .type _start, @function
25790 #~ leal value@tlsldm(%ebx), %eax
25791 #~ call ___tls_get_addr@plt
25793 #~ .section .tdata,"aw'$tls_section_flag'",@progbits
25794 #~ .type value, @object
25796 #~ gcc_GAS_CHECK_FEATURE([R_386_TLS_LDM reloc],
25797 #~ gcc_cv_as_ix86_tlsldm,
25798 #~ [$as_ix86_gas_32_opt],
25800 #~ [if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25801 #~ && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25802 #~ if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25803 #~ || dis conftest 2>/dev/null | grep nop > /dev/null; then
25804 #~ gcc_cv_as_ix86_tlsldm=yes
25807 #~ rm -f conftest])
25808 #~ AC_DEFINE_UNQUOTED(HAVE_AS_IX86_TLSLDM,
25809 #~ [`if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`],
25810 #~ [Define to 1 if your assembler and linker support @tlsldm.])
25819 #~ cmpl $0, bar@GOT
25820 #~ jmp *_start@GOT'
25821 #~ gcc_GAS_CHECK_FEATURE([R_386_GOT32X reloc],
25822 #~ gcc_cv_as_ix86_got32x,
25823 #~ [$as_ix86_gas_32_opt],
25825 #~ [if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25826 #~ && test x$gcc_cv_readelf != x \
25827 #~ && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
25828 #~ | grep R_386_GOT32X > /dev/null 2>&1 \
25829 #~ && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
25830 #~ if $gcc_cv_objdump -dw conftest 2>&1 \
25831 #~ | grep 0xffffff > /dev/null 2>&1; then
25832 #~ gcc_cv_as_ix86_got32x=no
25834 #~ gcc_cv_as_ix86_got32x=yes
25837 #~ rm -f conftest])
25838 #~ AC_DEFINE_UNQUOTED(HAVE_AS_IX86_GOT32X,
25839 #~ [`if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`],
25840 #~ [Define 0/1 if your assembler and linker support @GOT.])
25842 #~ gcc_GAS_CHECK_FEATURE([GOTOFF in data],
25843 #~ gcc_cv_as_ix86_gotoff_in_data,
25844 #~ [$as_ix86_gas_32_opt],
25849 #~ .long .L0@GOTOFF])
25850 #~ AC_DEFINE_UNQUOTED(HAVE_AS_GOTOFF_IN_DATA,
25851 #~ [`if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`],
25852 #~ [Define true if the assembler supports '.long foo@GOTOFF'.])
25855 #~ .section .text,"ax",@progbits
25857 #~ .type _start, @function
25859 #~ leal ld@tlsldm(%ecx), %eax
25860 #~ call *___tls_get_addr@GOT(%ecx)
25861 #~ leal gd@tlsgd(%ecx), %eax
25862 #~ call *___tls_get_addr@GOT(%ecx)
25864 #~ .section .tdata,"aw'$tls_section_flag'",@progbits
25865 #~ .type ld, @object
25869 #~ .type gd, @object
25872 #~ gcc_GAS_CHECK_FEATURE([calling ___tls_get_addr via GOT],
25873 #~ gcc_cv_as_ix86_tls_get_addr_via_got,
25874 #~ [$as_ix86_gas_32_opt],
25876 #~ [if test x$gcc_cv_ld != x \
25877 #~ && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
25878 #~ gcc_cv_as_ix86_tls_get_addr_via_got=yes
25880 #~ rm -f conftest])
25881 #~ AC_DEFINE_UNQUOTED(HAVE_AS_IX86_TLS_GET_ADDR_GOT,
25882 #~ [`if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`],
25883 #~ [Define 0/1 if your assembler and linker support calling ___tls_get_addr via GOT.])
25887 #~ gcc_GAS_CHECK_FEATURE([ltoffx and ldxmov relocs],
25888 #~ gcc_cv_as_ia64_ltoffx_ldxmov_relocs,,
25890 #~ addl r15 = @ltoffx(x#), gp
25892 #~ ld8.mov r16 = [[r15]], x#
25894 #~ [AC_DEFINE(HAVE_AS_LTOFFX_LDXMOV_RELOCS, 1,
25895 #~ [Define if your assembler supports ltoffx and ldxmov relocations.])])
25903 #~ gcc_GAS_CHECK_FEATURE([.machine directive support],
25904 #~ gcc_cv_as_machine_directive,,
25905 #~ [ .machine ppc7400])
25906 #~ if test x$gcc_cv_as_machine_directive != xyes; then
25907 #~ echo "*** This target requires an assembler supporting \".machine\"" >&2
25908 #~ echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25909 #~ test x$build = x$target && exit 1
25915 #~ *-*-aix*) conftest_s=' .machine "pwr5"
25916 #~ .csect .text[[PR]]
25918 #~ *-*-darwin*) conftest_s=' .text
25920 #~ *) conftest_s=' .machine power4
25925 #~ gcc_GAS_CHECK_FEATURE([mfcr field support],
25926 #~ gcc_cv_as_powerpc_mfcrf,,
25928 #~ [AC_DEFINE(HAVE_AS_MFCRF, 1,
25929 #~ [Define if your assembler supports mfcr field.])])
25932 #~ *-*-aix*) conftest_s=' .csect .text[[PR]]
25934 #~ addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25936 #~ conftest_s=' .text
25938 #~ addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25939 #~ *) conftest_s=' .text
25941 #~ addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25944 #~ gcc_GAS_CHECK_FEATURE([rel16 relocs],
25945 #~ gcc_cv_as_powerpc_rel16, -a32,
25947 #~ [AC_DEFINE(HAVE_AS_REL16, 1,
25948 #~ [Define if your assembler supports R_PPC_REL16 relocs.])])
25951 #~ *-*-aix*) conftest_s=' .machine "pwr7"
25952 #~ .csect .text[[PR]]
25954 #~ *) conftest_s=' .machine power7
25959 #~ gcc_GAS_CHECK_FEATURE([vector-scalar support],
25960 #~ gcc_cv_as_powerpc_vsx, -a32,
25962 #~ [AC_DEFINE(HAVE_AS_VSX, 1,
25963 #~ [Define if your assembler supports VSX instructions.])])
25965 #~ gcc_GAS_CHECK_FEATURE([.gnu_attribute support],
25966 #~ gcc_cv_as_powerpc_gnu_attribute,,
25967 #~ [.gnu_attribute 4,1],,
25968 #~ [AC_DEFINE(HAVE_AS_GNU_ATTRIBUTE, 1,
25969 #~ [Define if your assembler supports .gnu_attribute.])])
25971 #~ gcc_GAS_CHECK_FEATURE([prologue entry point marker support],
25972 #~ gcc_cv_as_powerpc_entry_markers,-a64 --fatal-warnings,
25973 #~ [ .reloc .,R_PPC64_ENTRY; nop],,
25974 #~ [AC_DEFINE(HAVE_AS_ENTRY_MARKERS, 1,
25975 #~ [Define if your assembler supports the R_PPC64_ENTRY relocation.])])
25977 #~ gcc_GAS_CHECK_FEATURE([plt sequence marker support],
25978 #~ gcc_cv_as_powerpc_pltseq_markers,-a32 --fatal-warnings,
25979 #~ [ .reloc .,R_PPC_PLTSEQ; nop],,
25980 #~ [AC_DEFINE(HAVE_AS_PLTSEQ, 1,
25981 #~ [Define if your assembler supports R_PPC*_PLTSEQ relocations.])])
25985 #~ gcc_GAS_CHECK_FEATURE([AIX .ref support],
25986 #~ gcc_cv_as_aix_ref,,
25987 #~ [ .csect stuff[[rw]]
25993 #~ [AC_DEFINE(HAVE_AS_REF, 1,
25994 #~ [Define if your assembler supports .ref])])
25996 #~ gcc_GAS_CHECK_FEATURE([AIX DWARF location lists section support],
25997 #~ gcc_cv_as_aix_dwloc,,
25998 #~ [ .dwsect 0xA0000
26000 #~ .vbyte 4,Lframe..0
26002 #~ [AC_DEFINE(HAVE_XCOFF_DWARF_EXTRAS, 1,
26003 #~ [Define if your assembler supports AIX debug frame section label reference.])])
26009 #~ gcc_GAS_CHECK_FEATURE([explicit relocation support],
26010 #~ gcc_cv_as_mips_explicit_relocs,,
26011 #~ [ lw $4,%gp_rel(foo)($4)],,
26012 #~ [if test x$target_cpu_default = x
26013 #~ then target_cpu_default=MASK_EXPLICIT_RELOCS
26014 #~ else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26017 #~ gcc_GAS_CHECK_FEATURE([-mno-shared support],
26018 #~ gcc_cv_as_mips_no_shared,[-mno-shared], [nop],,
26019 #~ [AC_DEFINE(HAVE_AS_NO_SHARED, 1,
26020 #~ [Define if the assembler understands -mno-shared.])])
26022 #~ gcc_GAS_CHECK_FEATURE([.gnu_attribute support],
26023 #~ gcc_cv_as_mips_gnu_attribute,,
26024 #~ [.gnu_attribute 4,1],,
26025 #~ [AC_DEFINE(HAVE_AS_GNU_ATTRIBUTE, 1,
26026 #~ [Define if your assembler supports .gnu_attribute.])])
26028 #~ gcc_GAS_CHECK_FEATURE([.module support],
26029 #~ gcc_cv_as_mips_dot_module,[-32],
26031 #~ .module fp=xx],,
26032 #~ [AC_DEFINE(HAVE_AS_DOT_MODULE, 1,
26033 #~ [Define if your assembler supports .module.])])
26034 #~ if test x$gcc_cv_as_mips_dot_module = xno \
26035 #~ && test x$with_fp_32 != x; then
26037 #~ [Requesting --with-fp-32= requires assembler support for .module.])
26040 #~ gcc_GAS_CHECK_FEATURE([.micromips support],
26041 #~ gcc_cv_as_micromips_support,[--fatal-warnings],
26042 #~ [.set micromips],,
26043 #~ [AC_DEFINE(HAVE_GAS_MICROMIPS, 1,
26044 #~ [Define if your assembler supports the .set micromips directive])])
26046 #~ gcc_GAS_CHECK_FEATURE([.dtprelword support],
26047 #~ gcc_cv_as_mips_dtprelword,,
26048 #~ [.section .tdata,"awT",@progbits
26052 #~ .dtprelword x+0x8000],,
26053 #~ [AC_DEFINE(HAVE_AS_DTPRELWORD, 1,
26054 #~ [Define if your assembler supports .dtprelword.])])
26056 #~ gcc_GAS_CHECK_FEATURE([DSPR1 mult with four accumulators support],
26057 #~ gcc_cv_as_mips_dspr1_mult,,
26062 #~ maddu $ac3,$4,$5
26064 #~ msubu $ac3,$4,$5
26066 #~ multu $ac3,$4,$5],,
26067 #~ [AC_DEFINE(HAVE_AS_DSPR1_MULT, 1,
26068 #~ [Define if your assembler supports DSPR1 mult.])])
26070 #~ AC_MSG_CHECKING(assembler and linker for explicit JALR relocation)
26071 #~ gcc_cv_as_ld_jalr_reloc=no
26072 #~ if test $gcc_cv_as_mips_explicit_relocs = yes; then
26073 #~ if test $in_tree_ld = yes ; then
26074 #~ 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 \
26075 #~ && test $in_tree_ld_is_elf = yes; then
26076 #~ gcc_cv_as_ld_jalr_reloc=yes
26078 #~ elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26079 #~ echo ' .ent x' > conftest.s
26080 #~ echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26081 #~ echo ' lw $25,%call16(y)($28)' >> conftest.s
26082 #~ echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26083 #~ echo '1: jalr $25' >> conftest.s
26084 #~ echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26085 #~ echo '1: jalr $25' >> conftest.s
26086 #~ echo ' .end x' >> conftest.s
26087 #~ if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&AS_MESSAGE_LOG_FD \
26088 #~ && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&AS_MESSAGE_LOG_FD; then
26089 #~ if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26090 #~ && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26091 #~ gcc_cv_as_ld_jalr_reloc=yes
26094 #~ rm -f conftest.*
26097 #~ if test $gcc_cv_as_ld_jalr_reloc = yes; then
26098 #~ if test x$target_cpu_default = x; then
26099 #~ target_cpu_default=MASK_RELAX_PIC_CALLS
26101 #~ target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26104 #~ AC_MSG_RESULT($gcc_cv_as_ld_jalr_reloc)
26106 #~ AC_CACHE_CHECK([linker for .eh_frame personality relaxation],
26107 #~ [gcc_cv_ld_mips_personality_relaxation],
26108 #~ [gcc_cv_ld_mips_personality_relaxation=no
26109 #~ if test $in_tree_ld = yes ; then
26110 #~ if test "$gcc_cv_gld_major_version" -eq 2 \
26111 #~ -a "$gcc_cv_gld_minor_version" -ge 21 \
26112 #~ -o "$gcc_cv_gld_major_version" -gt 2; then
26113 #~ gcc_cv_ld_mips_personality_relaxation=yes
26115 #~ elif test x$gcc_cv_as != x \
26116 #~ -a x$gcc_cv_ld != x \
26117 #~ -a x$gcc_cv_readelf != x ; then
26118 #~ cat > conftest.s <<EOF
26120 #~ .cfi_personality 0x80,indirect_ptr
26127 #~ .section .data,"aw",@progbits
26129 #~ .dc.a personality
26131 #~ if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26132 #~ && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26133 #~ if $gcc_cv_readelf -d conftest 2>&1 \
26134 #~ | grep TEXTREL > /dev/null 2>&1; then
26136 #~ elif $gcc_cv_readelf --relocs conftest 2>&1 \
26137 #~ | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26140 #~ gcc_cv_ld_mips_personality_relaxation=yes
26144 #~ rm -f conftest.s conftest.o conftest])
26145 #~ if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26146 #~ AC_DEFINE(HAVE_LD_PERSONALITY_RELAXATION, 1,
26147 #~ [Define if your linker can relax absolute .eh_frame personality
26148 #~ pointers into PC-relative form.])
26151 #~ gcc_GAS_CHECK_FEATURE([-mnan= support],
26152 #~ gcc_cv_as_mips_nan,
26154 #~ [AC_DEFINE(HAVE_AS_NAN, 1,
26155 #~ [Define if the assembler understands -mnan=.])])
26156 #~ if test x$gcc_cv_as_mips_nan = xno \
26157 #~ && test x$with_nan != x; then
26159 #~ [Requesting --with-nan= requires assembler support for -mnan=])
26163 #~ # Earlier GAS versions generically support .gnu_attribute, but the
26164 #~ # msp430 assembler will not do anything with it.
26165 #~ gcc_GAS_CHECK_FEATURE([.gnu_attribute support],
26166 #~ gcc_cv_as_msp430_gnu_attribute,,
26167 #~ [.gnu_attribute 4,1],,
26168 #~ [AC_DEFINE(HAVE_AS_GNU_ATTRIBUTE, 1,
26169 #~ [Define if your assembler supports .gnu_attribute.])])
26170 #~ gcc_GAS_CHECK_FEATURE([.mspabi_attribute support],
26171 #~ gcc_cv_as_msp430_mspabi_attribute,,
26172 #~ [.mspabi_attribute 4,2],,
26173 #~ [AC_DEFINE(HAVE_AS_MSPABI_ATTRIBUTE, 1,
26174 #~ [Define if your assembler supports .mspabi_attribute.])])
26175 #~ if test x$enable_newlib_nano_formatted_io = xyes; then
26176 #~ AC_DEFINE(HAVE_NEWLIB_NANO_FORMATTED_IO, 1, [Define if GCC has been
26177 #~ configured with --enable-newlib-nano-formatted-io.])
26181 #~ # Versions 2.33 and earlier lacked support for the %gotoff relocation
26182 #~ # syntax that is documented in the ABI specification.
26183 #~ gcc_GAS_CHECK_FEATURE([support for %gotoff relocations in constant data],
26184 #~ gcc_cv_as_nios2_gotoff_relocation,,
26187 #~ .long %gotoff(foo)],,
26188 #~ [AC_DEFINE(HAVE_AS_NIOS2_GOTOFF_RELOCATION, 1,
26189 #~ [Define if your assembler supports %gotoff relocation syntax.])])
26192 #~ gcc_GAS_CHECK_FEATURE([.attribute support],
26193 #~ gcc_cv_as_riscv_attribute,,
26194 #~ [.attribute stack_align,4],,
26195 #~ [AC_DEFINE(HAVE_AS_RISCV_ATTRIBUTE, 1,
26196 #~ [Define if your assembler supports .attribute.])])
26197 #~ gcc_GAS_CHECK_FEATURE([-misa-spec= support],
26198 #~ gcc_cv_as_riscv_isa_spec,
26199 #~ [-misa-spec=2.2],,,
26200 #~ [AC_DEFINE(HAVE_AS_MISA_SPEC, 1,
26201 #~ [Define if the assembler understands -misa-spec=.])])
26202 #~ gcc_GAS_CHECK_FEATURE([-march=rv32i_zifencei support],
26203 #~ gcc_cv_as_riscv_march_zifencei,
26204 #~ [-march=rv32i_zifencei2p0],,,
26205 #~ [AC_DEFINE(HAVE_AS_MARCH_ZIFENCEI, 1,
26206 #~ [Define if the assembler understands -march=rv*_zifencei.])])
26209 #~ gcc_GAS_CHECK_FEATURE([.dtprelword support],
26210 #~ gcc_cv_as_loongarch_dtprelword, [2,18,0],,
26211 #~ [.section .tdata,"awT",@progbits
26215 #~ .dtprelword x+0x8000],,
26216 #~ [AC_DEFINE(HAVE_AS_DTPRELWORD, 1,
26217 #~ [Define if your assembler supports .dtprelword.])])
26220 #~ gcc_GAS_CHECK_FEATURE([.gnu_attribute support],
26221 #~ gcc_cv_as_s390_gnu_attribute,,
26222 #~ [.gnu_attribute 8,1],,
26223 #~ [AC_DEFINE(HAVE_AS_GNU_ATTRIBUTE, 1,
26224 #~ [Define if your assembler supports .gnu_attribute.])])
26225 #~ gcc_GAS_CHECK_FEATURE([.machine and .machinemode support],
26226 #~ gcc_cv_as_s390_machine_machinemode,,
26227 #~ [ .machinemode push
26228 #~ .machinemode pop
26231 #~ [AC_DEFINE(HAVE_AS_MACHINE_MACHINEMODE, 1,
26232 #~ [Define if your assembler supports .machine and .machinemode.])])
26233 #~ gcc_GAS_CHECK_FEATURE([architecture modifiers support],
26234 #~ gcc_cv_as_s390_architecture_modifiers,,
26235 #~ [ .machine z13+vx ],,
26236 #~ [AC_DEFINE(HAVE_AS_ARCHITECTURE_MODIFIERS, 1,
26237 #~ [Define if your assembler supports architecture modifiers.])])
26238 #~ gcc_GAS_CHECK_FEATURE([vector load/store alignment hints],
26239 #~ gcc_cv_as_s390_vector_loadstore_alignment_hints,,
26240 #~ [ vl %v24,0(%r15),3 ],,
26241 #~ [AC_DEFINE(HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS, 1,
26242 #~ [Define if your assembler supports vl/vst/vlm/vstm with an optional alignment hint argument.])])
26243 #~ gcc_GAS_CHECK_FEATURE([vector load/store alignment hints on z13],
26244 #~ gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13, [-mzarch -march=z13],
26245 #~ [ vl %v24,0(%r15),3 ],,
26246 #~ [AC_DEFINE(HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13, 1,
26247 #~ [Define if your assembler supports vl/vst/vlm/vstm with an optional alignment hint argument on z13.])])
26252 #~ # Mips, LoongArch and HP-UX need the GNU assembler.
26253 #~ # Linux on IA64 might be able to use the Intel assembler.
26255 #~ case "$target" in
26256 #~ mips*-*-* | loongarch*-*-* | *-*-hpux* )
26257 #~ if test x$gas_flag = xyes \
26258 #~ || test x"$host" != x"$build" \
26259 #~ || test ! -x "$gcc_cv_as" \
26260 #~ || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26263 #~ echo "*** This configuration requires the GNU assembler" >&2
26269 #~ # This tests if the assembler supports two registers for global_load functions
26270 #~ # (like in LLVM versions <12) or one register (like in LLVM 12).
26271 #~ case "$target" in
26272 #~ amdgcn-* | gcn-*)
26273 #~ AC_MSG_CHECKING(assembler fix for global_load functions)
26274 #~ gcc_cv_as_gcn_global_load_fixed=yes
26275 #~ if test x$gcc_cv_as != x; then
26276 #~ cat > conftest.s <<EOF
26277 #~ global_store_dwordx2 v[[1:2]], v[[4:5]], s[[14:15]]
26279 #~ if $gcc_cv_as -triple=amdgcn--amdhsa -filetype=obj -mcpu=gfx900 -o conftest.o conftest.s > /dev/null 2>&1; then
26280 #~ gcc_cv_as_gcn_global_load_fixed=no
26282 #~ rm -f conftest.s conftest.o conftest
26284 #~ global_load_fixed=`if test x$gcc_cv_as_gcn_global_load_fixed = xyes; then echo 1; else echo 0; fi`
26285 #~ AC_DEFINE_UNQUOTED(HAVE_GCN_ASM_GLOBAL_LOAD_FIXED, $global_load_fixed,
26286 #~ [Define if your assembler has fixed global_load functions.])
26287 #~ AC_MSG_RESULT($gcc_cv_as_gcn_global_load_fixed)
26291 #~ case "$target" in
26292 #~ amdgcn-* | gcn-*)
26293 #~ # Test the LLVM assembler syntax dialect; they have made a number of
26294 #~ # changes between LLVM 12 & 13 without any backward compatibility.
26295 #~ gcc_GAS_CHECK_FEATURE([assembler amdgcn_target v2/3 syntax],
26296 #~ gcc_cv_as_gcn_asm_v3_syntax,
26297 #~ [-triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=+xnack],
26298 #~ [.amdgcn_target "amdgcn-unknown-amdhsa--gfx906+xnack"],,
26299 #~ [AC_DEFINE(HAVE_GCN_ASM_V3_SYNTAX, 1,
26300 #~ [Define if your assembler expects amdgcn_target gfx908+xnack syntax.])])
26301 #~ gcc_GAS_CHECK_FEATURE([assembler amdgcn_target v4 syntax],
26302 #~ gcc_cv_as_gcn_asm_v4_syntax,
26303 #~ [-triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=+xnack],
26304 #~ [.amdgcn_target "amdgcn-unknown-amdhsa--gfx908:xnack+"],,
26305 #~ [AC_DEFINE(HAVE_GCN_ASM_V4_SYNTAX, 1,
26306 #~ [Define if your assembler expects amdgcn_target gfx908:xnack+ syntax.])])
26308 #~ # Some attribute names changed in the move to v4 ...
26309 #~ if test $gcc_cv_as_gcn_asm_v3_syntax = yes; then
26310 #~ sramopt="+sram-ecc"
26311 #~ sramattr="+sram-ecc"
26312 #~ xnackattr="+xnack"
26313 #~ elif test $gcc_cv_as_gcn_asm_v4_syntax = yes; then
26314 #~ sramopt="+sramecc"
26315 #~ sramattr=":sramecc+"
26316 #~ xnackattr=":xnack+"
26318 #~ AC_MSG_ERROR([Unrecognised assembler version])
26321 #~ # Test whether the LLVM assembler accepts -mattr=+xnack without any
26322 #~ # diagnostic. LLVM 9 & 10 accept the option whether it makes sense or not,
26323 #~ # LLVM 12+ throws a warning for GPUs without support.
26324 #~ gcc_GAS_CHECK_FEATURE([assembler accepts -mattr=+xnack for fiji],
26325 #~ gcc_cv_as_gcn_xnack_ecc_fiji,
26326 #~ [-triple=amdgcn--amdhsa -mcpu=fiji -mattr=+xnack 2>conftest.err], [],
26327 #~ [grep "." conftest.err >&AS_MESSAGE_LOG_FD \
26328 #~ || gcc_cv_as_gcn_xnack_ecc_fiji=yes],
26329 #~ [AC_DEFINE(HAVE_GCN_XNACK_FIJI, 1,
26330 #~ [Define if your assembler allows -mattr=+xnack for fiji.])])
26331 #~ rm -f conftest.err
26332 #~ gcc_GAS_CHECK_FEATURE([assembler accepts -mattr=+xnack for gfx900],
26333 #~ gcc_cv_as_gcn_xnack_ecc_gfx900,
26334 #~ [-triple=amdgcn--amdhsa -mcpu=gfx900 -mattr=+xnack 2>conftest.err], [],
26335 #~ [grep "." conftest.err >&AS_MESSAGE_LOG_FD \
26336 #~ || gcc_cv_as_gcn_xnack_ecc_gfx900=yes],
26337 #~ [AC_DEFINE(HAVE_GCN_XNACK_GFX900, 1,
26338 #~ [Define if your assembler allows -mattr=+xnack for gfx900.])])
26339 #~ rm -f conftest.err
26340 #~ gcc_GAS_CHECK_FEATURE([assembler accepts -mattr=+xnack for gfx906],
26341 #~ gcc_cv_as_gcn_xnack_ecc_gfx906,
26342 #~ [-triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=+xnack 2>conftest.err], [],
26343 #~ [grep "." conftest.err >&AS_MESSAGE_LOG_FD \
26344 #~ || gcc_cv_as_gcn_xnack_ecc_gfx906=yes],
26345 #~ [AC_DEFINE(HAVE_GCN_XNACK_GFX906, 1,
26346 #~ [Define if your assembler allows -mattr=+xnack for gfx906.])])
26347 #~ rm -f conftest.err
26348 #~ gcc_GAS_CHECK_FEATURE([assembler accepts -mattr=+xnack for gfx908],
26349 #~ gcc_cv_as_gcn_xnack_ecc_gfx908,
26350 #~ [-triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=+xnack 2>conftest.err], [],
26351 #~ [grep "." conftest.err >&AS_MESSAGE_LOG_FD \
26352 #~ || gcc_cv_as_gcn_xnack_ecc_gfx908=yes],
26353 #~ [AC_DEFINE(HAVE_GCN_XNACK_GFX908, 1,
26354 #~ [Define if your assembler allows -mattr=+xnack for gfx908.])])
26355 #~ rm -f conftest.err
26357 #~ # Test whether the LLVM assembler accepts -mattr=+sramecc without any
26358 #~ # diagnostic. LLVM 9 & 10 accept the option whether it makes sense or not,
26359 #~ # (some?) LLVM 12 rejects it for all GPUs, and LLVM13 throws a warning
26360 #~ # for GPUs without support.
26361 #~ gcc_GAS_CHECK_FEATURE([assembler accepts -mattr=$sramopt for fiji],
26362 #~ gcc_cv_as_gcn_sram_ecc_fiji,
26363 #~ [-triple=amdgcn--amdhsa -mcpu=fiji -mattr=$sramopt 2>conftest.err], [],
26364 #~ [grep "." conftest.err >&AS_MESSAGE_LOG_FD \
26365 #~ || gcc_cv_as_gcn_sram_ecc_fiji=yes],
26366 #~ [AC_DEFINE(HAVE_GCN_SRAM_ECC_FIJI, 1,
26367 #~ [Define if your assembler allows -mattr=+sramecc for fiji.])])
26368 #~ rm -f conftest.err
26369 #~ gcc_GAS_CHECK_FEATURE([assembler accepts -mattr=$sramopt for gfx900],
26370 #~ gcc_cv_as_gcn_sram_ecc_gfx900,
26371 #~ [-triple=amdgcn--amdhsa -mcpu=gfx900 -mattr=$sramopt 2>conftest.err], [],
26372 #~ [grep "." conftest.err >&AS_MESSAGE_LOG_FD \
26373 #~ || gcc_cv_as_gcn_sram_ecc_gfx900=yes],
26374 #~ [AC_DEFINE(HAVE_GCN_SRAM_ECC_GFX900, 1,
26375 #~ [Define if your assembler allows -mattr=+sramecc for gfx900.])])
26376 #~ rm -f conftest.err
26377 #~ gcc_GAS_CHECK_FEATURE([assembler accepts -mattr=$sramopt for gfx906],
26378 #~ gcc_cv_as_gcn_sram_ecc_gfx906,
26379 #~ [-triple=amdgcn--amdhsa -mcpu=gfx906 -mattr=$sramopt 2>conftest.err], [],
26380 #~ [grep "." conftest.err >&AS_MESSAGE_LOG_FD \
26381 #~ || gcc_cv_as_gcn_sram_ecc_gfx906=yes],
26382 #~ [AC_DEFINE(HAVE_GCN_SRAM_ECC_GFX906, 1,
26383 #~ [Define if your assembler allows -mattr=+sramecc for gfx906.])])
26384 #~ rm -f conftest.err
26385 #~ gcc_GAS_CHECK_FEATURE([assembler accepts -mattr=$sramopt for gfx908],
26386 #~ gcc_cv_as_gcn_sram_ecc_gfx908,
26387 #~ [-triple=amdgcn--amdhsa -mcpu=gfx908 -mattr=$sramopt 2>conftest.err], [],
26388 #~ [grep "." conftest.err >&AS_MESSAGE_LOG_FD \
26389 #~ || gcc_cv_as_gcn_sram_ecc_gfx908=yes],
26390 #~ [AC_DEFINE(HAVE_GCN_SRAM_ECC_GFX908, 1,
26391 #~ [Define if your assembler allows -mattr=+sramecc for gfx908.])])
26392 #~ rm -f conftest.err
26395 #~ gcc_GAS_CHECK_FEATURE([assembler for arm accepts context-specific architecture extensions],
26396 #~ gcc_cv_as_arm_option_extensions,
26397 #~ [-march=armv8.1-m.main+mve],
26401 #~ vmov.f32 s0, s1],,
26402 #~ [AC_DEFINE(HAVE_GAS_ARM_EXTENDED_ARCH, 1,
26403 #~ [Define if your Arm assembler permits context-specific feature extensions.])])
26406 #~ # ??? Not all targets support dwarf2 debug_line, even within a version
26407 #~ # of gas. Moreover, we need to emit a valid instruction to trigger any
26408 #~ # info to the output file. So, as supported targets are added to gas 2.11,
26409 #~ # add some instruction here to (also) show we expect this might work.
26410 #~ # ??? Once 2.11 is released, probably need to add first known working
26411 #~ # version to the per-target configury.
26412 #~ case "$cpu_type" in
26413 #~ aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
26414 #~ | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
26415 #~ | tilegx | tilepro | visium | xstormy16 | xtensa)
26425 #~ if test x"$insn" != x; then
26427 #~ .file 1 \"conftest.s\"
26430 #~ gcc_GAS_CHECK_FEATURE([dwarf2 debug_line support],
26431 #~ gcc_cv_as_dwarf2_debug_line,,
26433 #~ [if test x$gcc_cv_objdump != x \
26434 #~ && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26435 #~ | grep debug_line > /dev/null 2>&1; then
26436 #~ gcc_cv_as_dwarf2_debug_line=yes
26437 #~ elif test x$gcc_cv_otool != x \
26438 #~ && $gcc_cv_otool -l conftest.o 2> /dev/null \
26439 #~ | grep debug_line > /dev/null 2>&1; then
26440 #~ gcc_cv_as_dwarf2_debug_line=yes
26443 #~ # The .debug_line file table must be in the exact order that
26444 #~ # we specified the files, since these indices are also used
26445 #~ # by DW_AT_decl_file. Approximate this test by testing if
26446 #~ # the assembler bitches if the same index is assigned twice.
26447 #~ gcc_GAS_CHECK_FEATURE([buggy dwarf2 .file directive],
26448 #~ gcc_cv_as_dwarf2_file_buggy,,
26449 #~ [ .file 1 "foo.s"
26450 #~ .file 1 "bar.s"])
26452 #~ if test $gcc_cv_as_dwarf2_debug_line = yes \
26453 #~ && test $gcc_cv_as_dwarf2_file_buggy = no; then
26454 #~ AC_DEFINE(HAVE_AS_DWARF2_DEBUG_LINE, 1,
26455 #~ [Define if your assembler supports dwarf2 .file/.loc directives,
26456 #~ and preserves file table indices exactly as given.])
26458 #~ if test $gcc_cv_as_leb128 = yes; then
26460 #~ .file 1 \"conftest.s\"
26461 #~ .loc 1 3 0 view .LVU1
26467 #~ gcc_GAS_CHECK_FEATURE([dwarf2 debug_view support],
26468 #~ gcc_cv_as_dwarf2_debug_view,,
26470 #~ [AC_DEFINE(HAVE_AS_DWARF2_DEBUG_VIEW, 1,
26471 #~ [Define if your assembler supports views in dwarf2 .loc directives.])])
26475 #~ gcc_GAS_CHECK_FEATURE([--gdwarf2 option],
26476 #~ gcc_cv_as_gdwarf2_flag,
26477 #~ [--gdwarf2], [$insn],,
26478 #~ [AC_DEFINE(HAVE_AS_GDWARF2_DEBUG_FLAG, 1,
26479 #~ [Define if your assembler supports the --gdwarf2 option.])])
26481 #~ gcc_GAS_CHECK_FEATURE([--gdwarf-5 option],
26482 #~ gcc_cv_as_gdwarf_5_flag,
26483 #~ [--gdwarf-5], [$insn],
26484 #~ [if test x$gcc_cv_objdump != x \
26485 #~ && $gcc_cv_objdump -Wi conftest.o 2>&1 \
26486 #~ | grep DW_TAG_compile_unit > /dev/null 2>&1; then
26487 #~ gcc_cv_as_gdwarf_5_flag=yes;
26488 #~ fi],[AC_DEFINE(HAVE_AS_GDWARF_5_DEBUG_FLAG, 1,
26489 #~ [Define if your assembler supports the --gdwarf-5 option.])])
26491 #~ case $target_os in
26492 #~ win32 | pe | cygwin* | mingw32*)
26493 #~ section_flags=\"dr\"
26494 #~ function_type=".def foo; .scl 2; .type 32; .endef"
26495 #~ function_size="";;
26497 #~ section_flags=\"\",%progbits
26498 #~ function_type=".type foo, %function"
26499 #~ function_size=".size foo, .-foo";;
26501 #~ dwarf4_debug_info_size=0x46
26502 #~ dwarf4_high_pc_form=7
26503 #~ dwarf4_debug_aranges_size=0x2c
26504 #~ dwarf4_line_sz=9
26505 #~ for dwarf4_addr_size in 8 4; do
26521 #~ .section .debug_info,$section_flags
26523 #~ .4byte $dwarf4_debug_info_size
26525 #~ .4byte .Ldebug_abbrev0
26526 #~ .byte 0x$dwarf4_addr_size
26528 #~ .ascii \"GNU C17\\0\"
26530 #~ .ascii \"a.c\\0\"
26532 #~ .${dwarf4_addr_size}byte .Ltext0
26533 #~ .${dwarf4_addr_size}byte .Letext0-.Ltext0
26534 #~ .4byte .Ldebug_line0
26536 #~ .ascii \"foo\\0\"
26540 #~ .${dwarf4_addr_size}byte .LFB0
26541 #~ .${dwarf4_addr_size}byte .LFE0-.LFB0
26545 #~ .section .debug_abbrev,$section_flags
26546 #~ .Ldebug_abbrev0:
26561 #~ .byte 0x$dwarf4_high_pc_form
26582 #~ .byte 0x$dwarf4_high_pc_form
26588 #~ .section .debug_aranges,$section_flags
26589 #~ .4byte $dwarf4_debug_aranges_size
26591 #~ .4byte .Ldebug_info0
26596 #~ .${dwarf4_addr_size}byte .Ltext0
26597 #~ .${dwarf4_addr_size}byte .Letext0-.Ltext0
26598 #~ .${dwarf4_addr_size}byte 0
26599 #~ .${dwarf4_addr_size}byte 0
26600 #~ .section .debug_line,$section_flags
26602 #~ .4byte .LELT0-.LSLT0
26605 #~ .4byte .LELTP0-.LASLTP0
26626 #~ .ascii \"a.c\\0\"
26633 #~ .byte 0x$dwarf4_line_sz
26635 #~ .${dwarf4_addr_size}byte .LM1
26640 #~ .byte 0x$dwarf4_line_sz
26642 #~ .${dwarf4_addr_size}byte .LM2
26647 #~ .byte 0x$dwarf4_line_sz
26649 #~ .${dwarf4_addr_size}byte .Letext0
26654 #~ .section .debug_str,$section_flags
26657 #~ dwarf4_success=no
26658 #~ if test $dwarf4_addr_size = 4; then
26659 #~ gcc_GAS_CHECK_FEATURE([assembly of compiler generated 32-bit .debug_line],
26660 #~ gcc_cv_as_debug_line_32_flag,,
26662 #~ [dwarf4_success=yes])
26664 #~ gcc_GAS_CHECK_FEATURE([assembly of compiler generated 64-bit .debug_line],
26665 #~ gcc_cv_as_debug_line_64_flag,,
26667 #~ [dwarf4_success=yes])
26669 #~ if test $dwarf4_success = yes; then
26670 #~ dwarf4_success=no
26671 #~ gcc_GAS_CHECK_FEATURE([--gdwarf-4 not refusing compiler generated .debug_line],
26672 #~ gcc_cv_as_dwarf_4_debug_line_flag,
26673 #~ [--gdwarf-4], [$conftest_s],,
26674 #~ [dwarf4_success=yes])
26677 #~ dwarf4_debug_info_size=0x36
26678 #~ dwarf4_high_pc_form=6
26679 #~ dwarf4_debug_aranges_size=0x1c
26680 #~ dwarf4_line_sz=5
26683 #~ if test $dwarf4_success = yes; then
26689 #~ # 82 \"xxx.h\" 1
26695 #~ .file 1 \"foo.c\"
26697 #~ .file 2 \"foo.h\"
26700 #~ dwarf4_success=no
26701 #~ gcc_GAS_CHECK_FEATURE([--gdwarf-4 with the APP marker],
26702 #~ gcc_cv_as_dwarf_4_app_flag,
26703 #~ [--gdwarf-4], [$conftest_s],, [dwarf4_success=yes])
26706 #~ if test $dwarf4_success = yes; then
26714 #~ .file 1 \"foo.c\"
26716 #~ gcc_GAS_CHECK_FEATURE([working --gdwarf-4/--gdwarf-5 for all sources],
26717 #~ gcc_cv_as_working_gdwarf_n_flag,
26720 #~ [changequote(,)dnl
26721 #~ if test x$gcc_cv_objdump != x \
26722 #~ && $gcc_cv_objdump -W conftest.o 2>&1 \
26723 #~ | grep conftest.s > /dev/null 2>&1; then
26724 #~ gcc_cv_as_working_gdwarf_n_flag=no
26726 #~ gcc_cv_as_working_gdwarf_n_flag=yes
26728 #~ changequote([,])dnl])
26729 #~ if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
26730 #~ AC_DEFINE(HAVE_AS_WORKING_DWARF_N_FLAG, 1,
26731 #~ [Define if your assembler supports --gdwarf-4/--gdwarf-5 even with
26732 #~ compiler generated .debug_line.])
26736 #~ gcc_GAS_CHECK_FEATURE([--gstabs option],
26737 #~ gcc_cv_as_gstabs_flag,
26738 #~ [--gstabs], [$insn],,
26739 #~ [AC_DEFINE(HAVE_AS_GSTABS_DEBUG_FLAG, 1,
26740 #~ [Define if your assembler supports the --gstabs option.])])
26742 #~ gcc_GAS_CHECK_FEATURE([--debug-prefix-map option],
26743 #~ gcc_cv_as_debug_prefix_map_flag,
26744 #~ [--debug-prefix-map /a=/b], [$insn],,
26745 #~ [AC_DEFINE(HAVE_AS_DEBUG_PREFIX_MAP, 1,
26746 #~ [Define if your assembler supports the --debug-prefix-map option.])])
26749 #~ gcc_GAS_CHECK_FEATURE([compressed debug sections],
26750 #~ gcc_cv_as_compress_debug,,,
26751 #~ [# gas compiled without zlib cannot compress debug sections and warns
26752 #~ # about it, but still exits successfully. So check for this, too.
26753 #~ if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
26755 #~ gcc_cv_as_compress_debug=0
26756 #~ # Since binutils 2.26, gas supports --compress-debug-sections=type,
26757 #~ # defaulting to the ELF gABI format.
26758 #~ elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
26760 #~ gcc_cv_as_compress_debug=2
26761 #~ gcc_cv_as_compress_debug_option="--compress-debug-sections"
26762 #~ gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
26763 #~ # Before binutils 2.26, gas only supported --compress-debug-options and
26764 #~ # emitted the traditional GNU format.
26765 #~ elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
26767 #~ gcc_cv_as_compress_debug=1
26768 #~ gcc_cv_as_compress_debug_option="--compress-debug-sections"
26769 #~ gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
26771 #~ gcc_cv_as_compress_debug=0
26773 #~ AC_DEFINE_UNQUOTED(HAVE_AS_COMPRESS_DEBUG, $gcc_cv_as_compress_debug,
26774 #~ [Define to the level of your assembler's compressed debug section support.])
26775 #~ AC_DEFINE_UNQUOTED(AS_COMPRESS_DEBUG_OPTION, "$gcc_cv_as_compress_debug_option",
26776 #~ [Define to the assembler option to enable compressed debug sections.])
26777 #~ AC_DEFINE_UNQUOTED(AS_NO_COMPRESS_DEBUG_OPTION, "$gcc_cv_as_no_compress_debug_option",
26778 #~ [Define to the assembler option to disable compressed debug sections.])
26780 #~ gcc_GAS_CHECK_FEATURE([.lcomm with alignment], gcc_cv_as_lcomm_with_alignment,,
26781 #~ [.lcomm bar,4,16],,
26782 #~ [AC_DEFINE(HAVE_GAS_LCOMM_WITH_ALIGNMENT, 1,
26783 #~ [Define if your assembler supports .lcomm with an alignment field.])])
26785 #~ if test x$with_sysroot = x && test x$host = x$target \
26786 #~ && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26787 #~ && test "$prefix" != "NONE"; then
26788 #~ AC_DEFINE_UNQUOTED(PREFIX_INCLUDE_DIR, "$prefix/include",
26789 #~ [Define to PREFIX/include if cpp should also search that directory.])
26792 #~ # Determine the version of glibc, if any, used on the target.
26793 #~ AC_MSG_CHECKING([for target glibc version])
26794 #~ AC_ARG_WITH([glibc-version],
26795 #~ [AS_HELP_STRING([--with-glibc-version=M.N],
26796 #~ [assume GCC used with glibc version M.N or later])], [
26797 #~ if [echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$']; then
26798 #~ glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26799 #~ glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26801 #~ AC_MSG_ERROR([option --with-glibc-version requires a version number M.N])
26803 #~ glibc_version_major=0
26804 #~ glibc_version_minor=0
26805 #~ [if test -f $target_header_dir/features.h \
26806 #~ && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26807 #~ && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26808 #~ glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26809 #~ glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26811 #~ AC_MSG_RESULT([$glibc_version_major.$glibc_version_minor])
26812 #~ AC_DEFINE_UNQUOTED([TARGET_GLIBC_MAJOR], [$glibc_version_major],
26813 #~ [GNU C Library major version number used on the target, or 0.])
26814 #~ AC_DEFINE_UNQUOTED([TARGET_GLIBC_MINOR], [$glibc_version_minor],
26815 #~ [GNU C Library minor version number used on the target, or 0.])
26817 #~ AC_ARG_ENABLE(gnu-unique-object,
26818 #~ [AS_HELP_STRING([--enable-gnu-unique-object],
26819 #~ [enable the use of the @gnu_unique_object ELF extension on glibc systems])],
26820 #~ [case $enable_gnu_unique_object in
26822 #~ *) AC_MSG_ERROR(['$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26823 #~ Valid choices are 'yes' and 'no'.]) ;;
26825 #~ [gcc_GAS_CHECK_FEATURE([gnu_unique_object], gcc_cv_as_gnu_unique_object,,
26826 #~ [.type foo, '$target_type_format_char'gnu_unique_object],,
26827 #~ # We need to unquote above to to use the definition from config.gcc.
26828 #~ # Also check for ld.so support, i.e. glibc 2.11 or higher.
26829 #~ [GCC_GLIBC_VERSION_GTE_IFELSE([2], [11], [enable_gnu_unique_object=yes], )]
26831 #~ if test x$enable_gnu_unique_object = xyes; then
26832 #~ AC_DEFINE(HAVE_GAS_GNU_UNIQUE_OBJECT, 1,
26833 #~ [Define if your assembler supports @gnu_unique_object.])
26836 #~ AC_CACHE_CHECK([assembler for tolerance to line number 0],
26837 #~ [gcc_cv_as_line_zero],
26838 #~ [gcc_cv_as_line_zero=no
26839 #~ if test "x$gcc_cv_as" != x; then
26840 #~ { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26841 #~ if AC_TRY_COMMAND([$gcc_cv_as -o conftest.o conftest.s >&AS_MESSAGE_LOG_FD 2>conftest.out]) &&
26842 #~ test "x`cat conftest.out`" = x
26844 #~ gcc_cv_as_line_zero=yes
26846 #~ echo "configure: failed program was" >&AS_MESSAGE_LOG_FD
26847 #~ cat conftest.s >&AS_MESSAGE_LOG_FD
26848 #~ echo "configure: error output was" >&AS_MESSAGE_LOG_FD
26849 #~ cat conftest.out >&AS_MESSAGE_LOG_FD
26851 #~ rm -f conftest.o conftest.s conftest.out
26853 #~ if test "x$gcc_cv_as_line_zero" = xyes; then
26854 #~ AC_DEFINE([HAVE_AS_LINE_ZERO], 1,
26855 #~ [Define if the assembler won't complain about a line such as # 0 "" 2.])
26858 #~ AC_MSG_CHECKING(support for thin archives)
26859 #~ thin_archive_support=no
26860 #~ echo 'int main (void) { return 0; }' > conftest.c
26861 #~ if ($AR --version | sed 1q | grep "GNU ar" \
26862 #~ && $CC $CFLAGS -c conftest.c \
26863 #~ && $AR rcT conftest.a conftest.o \
26864 #~ && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
26865 #~ thin_archive_support=yes
26867 #~ rm -f conftest.c conftest.o conftest.a conftest
26868 #~ AC_MSG_RESULT($thin_archive_support)
26869 #~ AC_SUBST(thin_archive_support)
26871 #~ AC_MSG_CHECKING(linker PT_GNU_EH_FRAME support)
26872 #~ gcc_cv_ld_eh_frame_hdr=no
26873 #~ if test $in_tree_ld = yes ; then
26874 #~ 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 \
26875 #~ && test $in_tree_ld_is_elf = yes; then
26876 #~ gcc_cv_ld_eh_frame_hdr=yes
26878 #~ elif test x$gcc_cv_ld != x; then
26879 #~ if echo "$ld_ver" | grep GNU > /dev/null; then
26880 #~ # Check if linker supports --eh-frame-hdr option
26881 #~ if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
26882 #~ gcc_cv_ld_eh_frame_hdr=yes
26885 #~ case "$target" in
26887 #~ # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26888 #~ if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26889 #~ gcc_cv_ld_eh_frame_hdr=yes
26895 #~ GCC_TARGET_TEMPLATE([HAVE_LD_EH_FRAME_HDR])
26896 #~ if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26897 #~ AC_DEFINE(HAVE_LD_EH_FRAME_HDR, 1,
26898 #~ [Define if your linker supports .eh_frame_hdr.])
26900 #~ AC_MSG_RESULT($gcc_cv_ld_eh_frame_hdr)
26902 #~ AC_MSG_CHECKING(linker CIEv3 in .eh_frame support)
26903 #~ gcc_cv_ld_eh_frame_ciev3=no
26904 #~ if test $in_tree_ld = yes ; then
26905 #~ 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 \
26906 #~ && test $in_tree_ld_is_elf = yes; then
26907 #~ gcc_cv_ld_eh_frame_ciev3=yes
26909 #~ elif test x$gcc_cv_ld != x; then
26910 #~ if echo "$ld_ver" | grep GNU > /dev/null; then
26911 #~ gcc_cv_ld_eh_frame_ciev3=yes
26912 #~ if test 0"$ld_date" -lt 20040513; then
26913 #~ if test -n "$ld_date"; then
26914 #~ # If there was date string, but was earlier than 2004-05-13, fail
26915 #~ gcc_cv_ld_eh_frame_ciev3=no
26916 #~ elif test "$ld_vers_major" -lt 2; then
26917 #~ gcc_cv_ld_eh_frame_ciev3=no
26918 #~ elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26919 #~ gcc_cv_ld_eh_frame_ciev3=no
26923 #~ case "$target" in
26925 #~ # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26926 #~ if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26927 #~ gcc_cv_ld_eh_frame_ciev3=yes
26933 #~ AC_DEFINE_UNQUOTED(HAVE_LD_EH_FRAME_CIEV3,
26934 #~ [`if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`],
26935 #~ [Define 0/1 if your linker supports CIE v3 in .eh_frame.])
26936 #~ AC_MSG_RESULT($gcc_cv_ld_eh_frame_ciev3)
26938 #~ AC_MSG_CHECKING(linker position independent executable support)
26939 #~ gcc_cv_ld_pie=no
26940 #~ if test $in_tree_ld = yes ; then
26941 #~ case "$target" in
26942 #~ # Full PIE support on Solaris was only introduced in gld 2.26.
26943 #~ *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
26944 #~ *) gcc_gld_pie_min_version=15 ;;
26946 #~ 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 \
26947 #~ && test $in_tree_ld_is_elf = yes; then
26948 #~ gcc_cv_ld_pie=yes
26950 #~ elif test x$gcc_cv_ld != x; then
26951 #~ # Check if linker supports -pie option
26952 #~ if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
26953 #~ gcc_cv_ld_pie=yes
26954 #~ case "$target" in
26956 #~ if echo "$ld_ver" | grep GNU > /dev/null \
26957 #~ && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
26958 #~ gcc_cv_ld_pie=no
26963 #~ case "$target" in
26964 #~ *-*-solaris2.1[[1-9]]*)
26965 #~ # Solaris 11.3 added PIE support.
26966 #~ if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
26967 #~ gcc_cv_ld_pie=yes
26973 #~ if test x"$gcc_cv_ld_pie" = xyes; then
26974 #~ AC_DEFINE(HAVE_LD_PIE, 1,
26975 #~ [Define if your linker supports PIE option.])
26977 #~ AC_MSG_RESULT($gcc_cv_ld_pie)
26979 #~ AC_MSG_CHECKING(linker PIE support with copy reloc)
26980 #~ gcc_cv_ld_pie_copyreloc=no
26981 #~ if test $gcc_cv_ld_pie = yes ; then
26982 #~ if test $in_tree_ld = yes ; then
26983 #~ 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
26984 #~ gcc_cv_ld_pie_copyreloc=yes
26986 #~ elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26987 #~ # Check if linker supports -pie option with copy reloc
26988 #~ case "$target" in
26989 #~ i?86-*-linux* | x86_64-*-linux*)
26990 #~ cat > conftest1.s <<EOF
26993 #~ .type a_glob, @object
26998 #~ cat > conftest2.s <<EOF
27001 #~ .type main, @function
27003 #~ movl %eax, a_glob(%rip)
27004 #~ .size main, .-main
27006 #~ .section .data.rel,"aw",@progbits
27007 #~ .type ptr, @object
27011 #~ if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27012 #~ && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27013 #~ && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27014 #~ && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27015 #~ gcc_cv_ld_pie_copyreloc=yes
27017 #~ rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27022 #~ AC_DEFINE_UNQUOTED(HAVE_LD_PIE_COPYRELOC,
27023 #~ [`if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`],
27024 #~ [Define 0/1 if your linker supports -pie option with copy reloc.])
27025 #~ AC_MSG_RESULT($gcc_cv_ld_pie_copyreloc)
27027 #~ AC_MSG_CHECKING(linker EH-compatible garbage collection of sections)
27028 #~ gcc_cv_ld_eh_gc_sections=no
27029 #~ if test $in_tree_ld = yes ; then
27030 #~ 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 \
27031 #~ && test $in_tree_ld_is_elf = yes; then
27032 #~ gcc_cv_ld_eh_gc_sections=yes
27034 #~ elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27035 #~ cat > conftest.s <<EOF
27038 #~ .type _start, @function
27041 #~ .size _start, .-_start
27042 #~ .section .text.foo,"ax",@progbits
27043 #~ .type foo, @function
27046 #~ .size foo, .-foo
27047 #~ .section .gcc_except_table.foo,"a",@progbits
27050 #~ .section .eh_frame,"a",@progbits
27053 #~ if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27054 #~ if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27055 #~ | grep "gc-sections option ignored" > /dev/null; then
27056 #~ gcc_cv_ld_eh_gc_sections=no
27057 #~ elif $gcc_cv_objdump -h conftest 2> /dev/null \
27058 #~ | grep gcc_except_table > /dev/null; then
27059 #~ gcc_cv_ld_eh_gc_sections=yes
27060 #~ # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27061 #~ if test x$gcc_cv_as_comdat_group != xyes; then
27062 #~ gcc_cv_ld_eh_gc_sections=no
27063 #~ cat > conftest.s <<EOF
27066 #~ .type _start, @function
27069 #~ .size _start, .-_start
27070 #~ .section .gnu.linkonce.t.foo,"ax",@progbits
27071 #~ .type foo, @function
27074 #~ .size foo, .-foo
27075 #~ .section .gcc_except_table.foo,"a",@progbits
27078 #~ .section .eh_frame,"a",@progbits
27081 #~ if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27082 #~ if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27083 #~ | grep "gc-sections option ignored" > /dev/null; then
27084 #~ gcc_cv_ld_eh_gc_sections=no
27085 #~ elif $gcc_cv_objdump -h conftest 2> /dev/null \
27086 #~ | grep gcc_except_table > /dev/null; then
27087 #~ gcc_cv_ld_eh_gc_sections=yes
27093 #~ rm -f conftest.s conftest.o conftest
27095 #~ case "$target" in
27097 #~ # ??? This apparently exposes a binutils bug with PC-relative relocations.
27098 #~ gcc_cv_ld_eh_gc_sections=no
27101 #~ if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27102 #~ AC_DEFINE(HAVE_LD_EH_GC_SECTIONS, 1,
27103 #~ [Define if your linker supports garbage collection of
27104 #~ sections in presence of EH frames.])
27106 #~ AC_MSG_RESULT($gcc_cv_ld_eh_gc_sections)
27108 #~ AC_MSG_CHECKING(linker EH garbage collection of sections bug)
27109 #~ gcc_cv_ld_eh_gc_sections_bug=no
27110 #~ if test $in_tree_ld = yes ; then
27111 #~ 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 \
27112 #~ && test $in_tree_ld_is_elf = yes; then
27113 #~ gcc_cv_ld_eh_gc_sections_bug=yes
27115 #~ 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
27116 #~ gcc_cv_ld_eh_gc_sections_bug=yes
27117 #~ cat > conftest.s <<EOF
27120 #~ .type _start, @function
27123 #~ .size _start, .-_start
27124 #~ .section .text.startup.foo,"ax",@progbits
27125 #~ .type foo, @function
27128 #~ .size foo, .-foo
27129 #~ .section .gcc_except_table.foo,"a",@progbits
27132 #~ .section .eh_frame,"a",@progbits
27135 #~ if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27136 #~ if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27137 #~ | grep "gc-sections option ignored" > /dev/null; then
27139 #~ elif $gcc_cv_objdump -h conftest 2> /dev/null \
27140 #~ | grep gcc_except_table > /dev/null; then
27141 #~ gcc_cv_ld_eh_gc_sections_bug=no
27144 #~ rm -f conftest.s conftest.o conftest
27146 #~ if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27147 #~ AC_DEFINE(HAVE_LD_EH_GC_SECTIONS_BUG, 1,
27148 #~ [Define if your linker has buggy garbage collection of
27149 #~ sections support when .text.startup.foo like sections are used.])
27151 #~ AC_MSG_RESULT($gcc_cv_ld_eh_gc_sections_bug)
27153 #~ AC_MSG_CHECKING(linker for compressed debug sections)
27154 #~ # gold/gld support compressed debug sections since binutils 2.19/2.21
27155 #~ # In binutils 2.26, gld gained support for the ELF gABI format.
27156 #~ if test $in_tree_ld = yes ; then
27157 #~ gcc_cv_ld_compress_debug=0
27158 #~ if test $ld_is_mold = yes; then
27159 #~ gcc_cv_ld_compress_debug=3
27160 #~ gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27161 #~ elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
27162 #~ && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27163 #~ gcc_cv_ld_compress_debug=2
27164 #~ gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27165 #~ 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 \
27166 #~ && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
27167 #~ gcc_cv_ld_compress_debug=3
27168 #~ gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27169 #~ 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 \
27170 #~ && test $in_tree_ld_is_elf = yes; then
27171 #~ gcc_cv_ld_compress_debug=1
27173 #~ elif echo "$ld_ver" | grep GNU > /dev/null; then
27174 #~ if test $ld_is_mold = yes; then
27175 #~ gcc_cv_ld_compress_debug=3
27176 #~ gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27177 #~ elif test "$ld_vers_major" -lt 2 \
27178 #~ || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27179 #~ gcc_cv_ld_compress_debug=0
27180 #~ elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27181 #~ gcc_cv_ld_compress_debug=1
27183 #~ gcc_cv_ld_compress_debug=3
27184 #~ gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27186 #~ if test $ld_is_gold = yes; then
27187 #~ gcc_cv_ld_compress_debug=2
27188 #~ gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27191 #~ changequote(,)dnl
27192 #~ case "${target}" in
27194 #~ # Introduced in Solaris 11.2.
27195 #~ if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27196 #~ gcc_cv_ld_compress_debug=3
27197 #~ gcc_cv_ld_compress_debug_option="-z compress-sections"
27199 #~ gcc_cv_ld_compress_debug=0
27203 #~ # Assume linkers other than GNU ld don't support compessed debug
27205 #~ gcc_cv_ld_compress_debug=0
27208 #~ changequote([,])dnl
27210 #~ AC_DEFINE_UNQUOTED(HAVE_LD_COMPRESS_DEBUG, $gcc_cv_ld_compress_debug,
27211 #~ [Define to the level of your linker's compressed debug section support.])
27212 #~ AC_DEFINE_UNQUOTED(LD_COMPRESS_DEBUG_OPTION, "$gcc_cv_ld_compress_debug_option",
27213 #~ [Define to the linker option to enable compressed debug sections.])
27214 #~ AC_MSG_RESULT($gcc_cv_ld_compress_debug)
27216 if test x
"$ld64_flag" = x
"yes"; then
27218 # Set defaults for possibly untestable items.
27219 gcc_cv_ld64_export_dynamic
=0
27220 gcc_cv_ld64_platform_version
=0
27222 if test "$build" = "$host"; then
27228 # On Darwin, because of FAT library support, it is often possible to execute
27229 # exes from compatible archs even when the host differs from the build system.
27230 case "$build","$host" in
27231 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
27232 darwin_try_test
=1;;
27236 # If the configurer specified a minimum ld64 version to be supported, then use
27237 # that to determine feature support.
27238 if test x
"${gcc_cv_ld64_version}" != x
; then
27239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
27240 $as_echo_n "checking ld64 specified version... " >&6; }
27241 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
27242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
27243 $as_echo "$gcc_cv_ld64_major" >&6; }
27244 if test "$gcc_cv_ld64_major" -ge 236; then
27245 gcc_cv_ld64_export_dynamic
=1
27247 if test "$gcc_cv_ld64_major" -ge 512; then
27248 gcc_cv_ld64_platform_version
=1
27250 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
27251 # If the version was not specified, try to find it.
27252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
27253 $as_echo_n "checking linker version... " >&6; }
27254 if test x
"${gcc_cv_ld64_version}" = x
; then
27255 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
27258 $as_echo "$gcc_cv_ld64_version" >&6; }
27260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
27261 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
27262 gcc_cv_ld64_export_dynamic
=1
27263 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
27264 gcc_cv_ld64_export_dynamic
=0
27266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
27267 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
27270 $as_echo_n "checking linker for -platform_version support... " >&6; }
27271 gcc_cv_ld64_platform_version
=1
27272 if $gcc_cv_ld -platform_version macos
10.5 0.0 < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
27273 gcc_cv_ld64_platform_version
=0
27275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
27276 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
27279 if test x
"${gcc_cv_ld64_version}" != x
; then
27281 cat >>confdefs.h
<<_ACEOF
27282 #define LD64_VERSION "${gcc_cv_ld64_version}"
27288 cat >>confdefs.h
<<_ACEOF
27289 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
27294 cat >>confdefs.h
<<_ACEOF
27295 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
27300 if test x
"$dsymutil_flag" = x
"yes"; then
27302 # If the user specified a dsymutil path, then we will already have the
27303 # version string, otherwise, pick it up.
27304 if test x
"$gcc_cv_dsymutil" = x
; then
27305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
27306 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
27307 dsymutil_vers
="tool unspecified"
27308 elif test x
"$dsymutil_vers" = x
; then
27309 dsymutil_vers
=`$gcc_cv_dsymutil -v /dev/null 2>&1`
27312 dsymutil_temp
=`echo $dsymutil_vers | sed 1q`
27313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
27314 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
27315 if echo $dsymutil_temp |
grep dwarfutils-
> /dev
/null
; then
27316 dsymutil_kind
=DWARFUTILS
27317 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
27318 elif echo $dsymutil_temp |
grep clang-
> /dev
/null
; then
27319 dsymutil_kind
=CLANG
27320 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
27321 elif echo $dsymutil_temp |
grep 'LLVM version ' > /dev
/null
; then
27323 dsymutil_vers
=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
27325 dsymutil_kind
=UNKNOWN
27326 dsymutil_vers
="0.0"
27328 dsymutil_major
=`expr "$dsymutil_vers" : '\([0-9]*\)'`
27329 dsymutil_minor
=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
27330 dsymutil_tiny
=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
27331 if test x
"${dsymutil_minor}" = x
; then
27334 if test x
"${dsymutil_tiny}" = x
; then
27338 cat >>confdefs.h
<<_ACEOF
27339 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
27342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
27343 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
27346 #~ case $target_os in
27347 #~ win32 | pe | cygwin* | mingw32*)
27348 #~ AC_MSG_CHECKING(broken PE linker dwarf5 support)
27349 #~ gcc_cv_ld_broken_pe_dwarf5=yes
27350 #~ if test $in_tree_ld = yes ; then
27351 #~ if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
27352 #~ $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
27353 #~ && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
27354 #~ $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
27355 #~ gcc_cv_ld_broken_pe_dwarf5=no
27358 #~ if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
27359 #~ && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
27360 #~ gcc_cv_ld_broken_pe_dwarf5=no
27363 #~ if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
27364 #~ AC_DEFINE(HAVE_LD_BROKEN_PE_DWARF5, 1,
27365 #~ [Define if the PE linker has broken DWARF 5 support.])
27367 #~ AC_MSG_RESULT($gcc_cv_ld_broken_pe_dwarf5)
27369 #~ AC_MSG_CHECKING(PE linker --disable-dynamicbase support)
27370 #~ gcc_cv_ld_disable_dynamicbase=no
27371 #~ if test $in_tree_ld = yes; then
27372 #~ if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 36 -o "$gcc_cv_gld_major_version" -gt 2; then \
27373 #~ gcc_cv_ld_disable_dynamicbase=yes
27376 #~ if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
27377 #~ gcc_cv_ld_disable_dynamicbase=yes
27380 #~ if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
27381 #~ AC_DEFINE(HAVE_LD_PE_DISABLE_DYNAMICBASE, 1,
27382 #~ [Define if the PE linker supports --disable-dynamicbase option.])
27384 #~ AC_MSG_RESULT($gcc_cv_ld_disable_dynamicbase)
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker
--as-needed support
" >&5
27393 $as_echo_n "checking linker
--as-needed support...
" >&6; }
27394 if ${gcc_cv_ld_as_needed+:} false; then :
27395 $as_echo_n "(cached
) " >&6
27397 gcc_cv_ld_as_needed=no
27398 gcc_cv_ld_as_needed_option='--as-needed'
27399 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27400 if test $in_tree_ld = yes ; then
27401 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 \
27402 && test $in_tree_ld_is_elf = yes; then
27403 gcc_cv_ld_as_needed=yes
27404 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
27405 gcc_cv_ld_as_needed_option='--push-state --as-needed'
27406 gcc_cv_ld_no_as_needed_option='--pop-state'
27409 elif test x$gcc_cv_ld != x; then
27410 # Check if linker supports --as-needed and --no-as-needed options
27411 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
27412 gcc_cv_ld_as_needed=yes
27413 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
27414 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
27415 && echo "$ld_ver" | grep GNU > /dev/null \
27416 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
27417 # Use these options only when both ld.bfd and ld.gold support
27418 # --push-state/--pop-state, which unfortunately wasn't added
27419 # at the same time.
27420 gcc_cv_ld_as_needed_option='--push-state --as-needed'
27421 gcc_cv_ld_no_as_needed_option='--pop-state'
27424 case "$target:$gnu_ld" in
27426 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
27428 gcc_cv_ld_as_needed=yes
27429 gcc_cv_ld_as_needed_option="-z ignore
"
27430 gcc_cv_ld_no_as_needed_option="-z record
"
27434 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27435 # dl_iterate_phdr, i.e. since Solaris 11.
27437 *-*-solaris2.1[1-9]*)
27439 i?86-*-* | x86_64-*-*)
27440 if echo "$ld_ver" | grep GNU > /dev/null; then
27441 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27442 gcc_cv_ld_as_needed=no
27448 gcc_cv_ld_as_needed=no
27453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_cv_ld_as_needed" >&5
27454 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27455 if test x"$gcc_cv_ld_as_needed" = xyes; then
27457 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27460 cat >>confdefs.h
<<_ACEOF
27461 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27465 cat >>confdefs.h
<<_ACEOF
27466 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27472 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27473 saved_LDFLAGS
="$LDFLAGS"
27474 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
27475 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27477 /* end confdefs.h. */
27478 int main(void) {return 0;}
27480 if ac_fn_cxx_try_link
"$LINENO"; then :
27481 gcc_cv_ld_clearcap
=yes; break
27483 gcc_cv_ld_clearcap
=no
27485 rm -f core conftest.err conftest.
$ac_objext \
27486 conftest
$ac_exeext conftest.
$ac_ext
27488 LDFLAGS
="$saved_LDFLAGS"
27489 if test "x$gcc_cv_ld_clearcap" = xyes
; then
27491 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27493 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27497 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27503 emul_name
="-melf32lppc"
27506 emul_name
="-melf32ppc"
27509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
27510 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
27511 if ${gcc_cv_ld_ppc_attr+:} false
; then :
27512 $as_echo_n "(cached) " >&6
27514 gcc_cv_ld_ppc_attr
=no
27515 if test x
"$ld_is_gold" = xyes
; then
27516 gcc_cv_ld_ppc_attr
=yes
27517 elif test $in_tree_ld = yes ; then
27518 if test "$gcc_cv_gld_major_version" -eq 2 \
27519 -a "$gcc_cv_gld_minor_version" -ge 28 \
27520 -o "$gcc_cv_gld_major_version" -gt 2; then
27521 gcc_cv_ld_ppc_attr
=yes
27523 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27524 # check that merging the long double .gnu_attribute doesn't warn
27525 cat > conftest1.s
<<EOF
27528 cat > conftest2.s
<<EOF
27531 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27532 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27533 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
27534 && test ! -s conftest.err
; then
27535 gcc_cv_ld_ppc_attr
=yes
27537 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
27541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
27542 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
27543 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
27545 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
27551 case "$target:$tm_file" in
27552 powerpc64
*-*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
27555 emul_name
="-melf64lppc"
27558 emul_name
="-melf64ppc"
27561 emul_name
="-melf64lppc_fbsd"
27564 emul_name
="-melf64ppc_fbsd"
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27568 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27569 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
27570 $as_echo_n "(cached) " >&6
27572 gcc_cv_ld_no_dot_syms
=no
27573 if test x
"$ld_is_gold" = xyes
; then
27574 gcc_cv_ld_no_dot_syms
=yes
27575 elif test $in_tree_ld = yes ; then
27576 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
27577 gcc_cv_ld_no_dot_syms
=yes
27579 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27580 cat > conftest1.s
<<EOF
27584 cat > conftest2.s
<<EOF
27585 .section ".opd","aw"
27588 .type foo,@function
27590 .quad .LEfoo,.TOC.@tocbase,0
27596 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27597 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27598 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
27599 gcc_cv_ld_no_dot_syms
=yes
27601 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27606 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27607 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
27609 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27614 $as_echo_n "checking linker large toc support... " >&6; }
27615 if ${gcc_cv_ld_large_toc+:} false
; then :
27616 $as_echo_n "(cached) " >&6
27618 gcc_cv_ld_large_toc
=no
27619 if test x
"$ld_is_gold" = xyes
; then
27620 gcc_cv_ld_large_toc
=yes
27621 elif test $in_tree_ld = yes ; then
27622 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
27623 gcc_cv_ld_large_toc
=yes
27625 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27626 cat > conftest.s
<<EOF
27627 .section ".tbss","awT",@nobits
27633 addis 9,13,ie0@got@tprel@ha
27634 ld 9,ie0@got@tprel@l(9)
27636 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27637 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
27638 gcc_cv_ld_large_toc
=yes
27640 rm -f conftest conftest.o conftest.s
27644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27645 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27646 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27648 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
27653 $as_echo_n "checking linker toc pointer alignment... " >&6; }
27654 if ${gcc_cv_ld_toc_align+:} false
; then :
27655 $as_echo_n "(cached) " >&6
27657 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
27658 cat > conftest.s
<<EOF
27663 .section .data.rel.ro,"aw",@progbits
27668 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27669 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
27670 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)) }'`
27672 rm -f conftest conftest.o conftest.s
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
27677 $as_echo "$gcc_cv_ld_toc_align" >&6; }
27678 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
27680 cat >>confdefs.h
<<_ACEOF
27681 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
27690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27691 $as_echo_n "checking linker large toc support... " >&6; }
27692 if ${gcc_cv_ld_large_toc+:} false
; then :
27693 $as_echo_n "(cached) " >&6
27695 gcc_cv_ld_large_toc
=no
27696 if test x
$gcc_cv_as != x
; then
27697 cat > conftest.s
<<EOF
27707 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
27708 gcc_cv_ld_large_toc
=yes
27710 rm -f conftest conftest.o conftest.s
27714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27715 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27716 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27718 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27725 $as_echo_n "checking linker --build-id support... " >&6; }
27726 if ${gcc_cv_ld_buildid+:} false
; then :
27727 $as_echo_n "(cached) " >&6
27729 gcc_cv_ld_buildid
=no
27730 if test $in_tree_ld = yes ; then
27731 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27732 "$gcc_cv_gld_minor_version" -ge 18 -o \
27733 "$gcc_cv_gld_major_version" -gt 2 \
27734 && test $in_tree_ld_is_elf = yes; then
27735 gcc_cv_ld_buildid
=yes
27737 elif test x
$gcc_cv_ld != x
; then
27738 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
27739 gcc_cv_ld_buildid
=yes
27743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27744 $as_echo "$gcc_cv_ld_buildid" >&6; }
27745 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27747 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27751 # Check whether --enable-linker-build-id was given.
27752 if test "${enable_linker_build_id+set}" = set; then :
27753 enableval
=$enable_linker_build_id;
27755 enable_linker_build_id
=no
27759 if test x
"$enable_linker_build_id" = xyes
; then
27760 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27762 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27766 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27770 # In binutils 2.21, GNU ld gained support for new emulations fully
27771 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27773 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27774 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
27775 $as_echo_n "(cached) " >&6
27777 gcc_cv_ld_sol2_emulation
=no
27778 if test $in_tree_ld = yes ; then
27779 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27780 "$gcc_cv_gld_minor_version" -ge 21 -o \
27781 "$gcc_cv_gld_major_version" -gt 2 \
27782 && test $in_tree_ld_is_elf = yes; then
27783 gcc_cv_ld_sol2_emulation
=yes
27785 elif test x
$gcc_cv_ld != x
; then
27786 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
27787 grep _sol2
> /dev
/null
; then
27788 gcc_cv_ld_sol2_emulation
=yes
27792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27793 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27794 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
27796 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27801 $as_echo_n "checking linker --sysroot support... " >&6; }
27802 if ${gcc_cv_ld_sysroot+:} false
; then :
27803 $as_echo_n "(cached) " >&6
27805 gcc_cv_ld_sysroot
=no
27806 if test $in_tree_ld = yes ; then
27807 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
27808 gcc_cv_ld_sysroot
=yes
27810 elif test x
$gcc_cv_ld != x
; then
27811 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
27812 gcc_cv_ld_sysroot
=yes
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27817 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27818 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
27820 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27826 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
27828 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
27829 if ${gcc_cv_solaris_crts+:} false
; then :
27830 $as_echo_n "(cached) " >&6
27832 gcc_cv_solaris_crts
=no
27833 if test x
$host != x
$target; then
27834 if test "x$with_sysroot" = xyes
; then
27835 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
27837 target_sysroot
="${with_sysroot}"
27840 target_libdir
="$target_sysroot/usr/lib"
27841 # At the time they were added, gcrt1.o became a symlink for backwards
27842 # compatibility on x86, while crt1.o was added on sparc, so check for that.
27844 i?
86-*-solaris2* | x86_64-
*-solaris2*)
27845 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
27847 sparc
*-*-solaris2*)
27848 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
27852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
27853 $as_echo "$gcc_cv_solaris_crts" >&6; }
27856 if test x
$gcc_cv_solaris_crts = xyes
; then
27858 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
27862 # Check whether --enable-libssp was given.
27863 if test "${enable_libssp+set}" = set; then :
27864 enableval
=$enable_libssp; case "${enableval}" in
27868 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
27874 # Test for stack protector support in target C library.
27875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27876 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27877 if ${gcc_cv_libc_provides_ssp+:} false
; then :
27878 $as_echo_n "(cached) " >&6
27880 gcc_cv_libc_provides_ssp
=no
27881 if test "x$enable_libssp" = "xno"; then
27882 gcc_cv_libc_provides_ssp
=yes
27883 elif test "x$enable_libssp" = "xyes"; then
27884 gcc_cv_libc_provides_ssp
=no
27888 # All versions of musl provide stack protector
27889 gcc_cv_libc_provides_ssp
=yes;;
27890 *-*-linux* |
*-*-kfreebsd*-gnu)
27891 # glibc 2.4 and later provides __stack_chk_fail and
27892 # either __stack_chk_guard, or TLS access to stack guard canary.
27894 if test $glibc_version_major -gt 2 \
27895 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27896 gcc_cv_libc_provides_ssp
=yes
27899 if test -f $target_header_dir/features.h \
27900 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27901 $target_header_dir/features.h
> /dev
/null
; then
27902 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27903 $target_header_dir/features.h
> /dev
/null
&& \
27904 test -f $target_header_dir/bits
/uClibc_config.h
&& \
27905 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27906 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
27907 gcc_cv_libc_provides_ssp
=yes
27909 # all versions of Bionic support stack protector
27910 elif test -f $target_header_dir/sys
/cdefs.h \
27911 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27912 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
27913 gcc_cv_libc_provides_ssp
=yes
27918 # Avoid complicated tests (see
27919 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27920 # simply assert that glibc does provide this, which is true for all
27921 # realistically usable GNU/Hurd configurations.
27922 # All supported versions of musl provide it as well
27923 gcc_cv_libc_provides_ssp
=yes;;
27924 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
27925 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27926 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
27927 gcc_cv_libc_provides_ssp
=yes
27929 echo "no __stack_chk_fail on this target"
27933 *) gcc_cv_libc_provides_ssp
=no
;;
27937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27938 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27940 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
27942 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27946 # Check whether --enable-default-ssp was given.
27947 # Check whether --enable-default-ssp was given.
27948 if test "${enable_default_ssp+set}" = set; then :
27949 enableval
=$enable_default_ssp;
27950 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
27952 ia64
*-*-*) enable_default_ssp
=no
;;
27953 *) enable_default_ssp
=$enableval ;;
27956 enable_default_ssp
=no
27959 enable_default_ssp
=no
27962 if test x
$enable_default_ssp = xyes
; then
27964 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
27969 # Test for <sys/sdt.h> on the target.
27971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27972 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27974 if test -f $target_header_dir/sys
/sdt.h
; then
27977 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27981 $as_echo "$have_sys_sdt_h" >&6; }
27983 # Check if TFmode long double should be used by default or not.
27984 # Some glibc targets used DFmode long double, but with glibc 2.4
27985 # and later they can use TFmode.
27987 powerpc
*-*-linux* | \
27988 sparc
*-*-linux* | \
27992 # Check whether --with-long-double-128 was given.
27993 if test "${with_long_double_128+set}" = set; then :
27994 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
27998 s390
*-*-linux-musl*)
27999 gcc_cv_target_ldbl128
=yes
28001 powerpc
*-*-linux-musl*)
28002 gcc_cv_target_ldbl128
=no
28006 if test $glibc_version_major -gt 2 \
28007 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28008 gcc_cv_target_ldbl128
=yes
28011 gcc_cv_target_ldbl128
=no
28012 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28013 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
28014 && gcc_cv_target_ldbl128
=yes
28025 if test x
$gcc_cv_target_ldbl128 = xyes
; then
28027 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28031 # Check if TFmode long double target should use the IBM extended double or IEEE
28032 # 128-bit floating point formats if long doubles are 128-bits long. The long
28033 # double type can only be switched on powerpc64 bit Linux systems where VSX is
28034 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
28037 # Check whether --with-long-double-format was given.
28038 if test "${with_long_double_format+set}" = set; then :
28039 withval
=$with_long_double_format;
28040 case "$target:$with_long_double_format" in
28041 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
28044 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
28045 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
28046 case "$with_cpu" in
28047 power7 | power8 | power9 | power1
*)
28051 as_fn_error $?
"Configuration option --with-long-double-format is only \
28052 supported if the default cpu is power7 or newer" "$LINENO" 5
28053 with_long_double_format
=""
28057 powerpc64
*-*-linux*:*)
28058 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
28059 with_long_double_format
=""
28062 as_fn_error $?
"Configure option --with-long-double-format is only supported \
28063 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
28064 with_long_double_format
=""
28070 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
28071 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
28072 gcc_cv_libc_provides_hwcap_in_tcb
=no
28076 if test $glibc_version_major -gt 2 \
28077 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
28078 gcc_cv_libc_provides_hwcap_in_tcb
=yes
28082 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
28084 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
28088 # Check if the target LIBC handles PT_GNU_STACK.
28089 gcc_cv_libc_gnustack
=unknown
28091 mips
*-*-linux-musl*)
28092 gcc_cv_libc_gnustack
=yes
28096 if test $glibc_version_major -gt 2 \
28097 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
28098 gcc_cv_libc_gnustack
=yes
28102 if test x
$gcc_cv_libc_gnustack = xyes
; then
28104 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28109 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28110 gcc_cv_target_dl_iterate_phdr
=unknown
28113 # <link.h> needs both a dl_iterate_phdr declaration and support for
28114 # compilation with largefile support.
28115 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
28116 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
28117 gcc_cv_target_dl_iterate_phdr
=yes
28119 gcc_cv_target_dl_iterate_phdr
=no
28122 *-*-dragonfly* |
*-*-freebsd*)
28123 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
28124 gcc_cv_target_dl_iterate_phdr
=yes
28126 gcc_cv_target_dl_iterate_phdr
=no
28130 gcc_cv_target_dl_iterate_phdr
=yes
28134 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
28136 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28140 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28142 # We no longer support different GC mechanisms. Emit an error if
28143 # the user configures with --with-gc.
28145 # Check whether --with-gc was given.
28146 if test "${with_gc+set}" = set; then :
28147 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28151 # Libraries to use on the host. This will normally be set by the top
28152 # level Makefile. Here we simply capture the value for our Makefile.
28153 if test -z "${HOST_LIBS+set}"; then
28158 # Use the system's zlib library.
28160 # Use the system's zlib library.
28161 zlibdir
="-L\$(top_builddir)/../zlib"
28162 zlibinc
="-I\$(top_srcdir)/../zlib"
28164 # Check whether --with-system-zlib was given.
28165 if test "${with_system_zlib+set}" = set; then :
28166 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
28178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28179 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28180 # Check whether --enable-maintainer-mode was given.
28181 if test "${enable_maintainer_mode+set}" = set; then :
28182 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28189 $as_echo "$maintainer_mode" >&6; }
28191 if test "$maintainer_mode" = "yes"; then
28197 if test -z "$CTAGS"; then
28201 if test -z "$ETAGS"; then
28205 if test -z "$CSCOPE"; then
28211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28212 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28213 # Check whether --enable-link-mutex was given.
28214 if test "${enable_link_mutex+set}" = set; then :
28215 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
28220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28221 $as_echo "$do_link_mutex" >&6; }
28223 if test "$do_link_mutex" = "yes"; then
28226 DO_LINK_MUTEX
=false
28231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
28232 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
28233 # Check whether --enable-link-serialization was given.
28234 if test "${enable_link_serialization+set}" = set; then :
28235 enableval
=$enable_link_serialization; do_link_serialization
=$enableval
28237 do_link_serialization
=no
28240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
28241 $as_echo "$do_link_serialization" >&6; }
28243 case "$do_link_serialization" in
28245 DO_LINK_SERIALIZATION
=1;;
28246 [1-9] |
[1-9][0-9] |
[1-9][0-9][0-9])
28247 DO_LINK_SERIALIZATION
=$do_link_serialization;;
28249 DO_LINK_SERIALIZATION
=;;
28251 as_fn_error $?
"bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
28259 # Make empty files to contain the specs and options for each language.
28260 # Then add #include lines to for a compiler that has specs and/or options.
28266 # These (without "all_") are set in each config-lang.in.
28267 # `language' must be a single word so is spelled singularly.
28270 all_outputs
='Makefile'
28271 # List of language configure and makefile fragments.
28272 all_lang_configurefrags
=
28273 all_lang_makefrags
=
28274 # Additional files for gengtype
28275 all_gtfiles
="$target_gtfiles"
28277 # These are the languages that are set in --enable-languages,
28278 # and are available in the GCC tree.
28279 all_selected_languages
=
28281 # Add the language fragments.
28282 # Languages are added via two mechanisms. Some information must be
28283 # recorded in makefile variables, these are defined in config-lang.in.
28284 # We accumulate them and plug them into the main Makefile.
28285 # The other mechanism is a set of hooks for each of the main targets
28286 # like `clean', `install', etc.
28288 language_hooks
="Make-hooks"
28290 for lang
in ${srcdir}/*/config-lang.
in
28292 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28294 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28295 if test "x$lang_alias" = x
28297 echo "$lang doesn't set \$language." 1>&2
28300 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28301 subdirs
="$subdirs $subdir"
28303 # $gcc_subdir is where the gcc integration files are to be found
28304 # for a language, both for internal compiler purposes (compiler
28305 # sources implementing front-end to GCC tree converters), and for
28306 # build infrastructure purposes (Make-lang.in, etc.)
28308 # This will be <subdir> (relative to $srcdir) if a line like
28309 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28310 # is found in <langdir>/config-lang.in, and will remain <langdir>
28313 # Except for the language alias (fetched above), the regular
28314 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28315 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28316 # only this and the language alias.
28318 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28319 if [ "$gcc_subdir" = "" ]; then
28320 gcc_subdir
="$subdir"
28323 case ",$enable_languages," in
28325 all_selected_languages
="$all_selected_languages $lang_alias"
28326 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
28327 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28338 .
${srcdir}/$gcc_subdir/config-lang.
in
28339 if test "x$language" = x
28341 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28346 case ",$enable_languages," in
28347 *,$lang_alias,*) ;;
28349 for i
in $subdir_requires; do
28350 test -f "${srcdir}/$i/config-lang.in" && continue
28358 all_lang_configurefrags
="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
28359 if test "x$language" = xc
&& test -n "$all_lang_makefrags"; then
28360 # Put c/Make-lang.in fragment first to match serialization languages order.
28361 all_lang_makefrags
="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
28363 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28365 if test -f $srcdir/$gcc_subdir/lang.opt
; then
28366 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28367 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28369 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
28370 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28372 all_languages
="$all_languages $language"
28373 all_compilers
="$all_compilers $compilers"
28374 all_outputs
="$all_outputs $outputs"
28375 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
28376 case ",$enable_languages," in
28379 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28389 for language
in $all_selected_languages
28391 check_languages
="$check_languages check-$language"
28394 selftest_languages
=
28395 for language
in $all_selected_languages
28397 selftest_languages
="$selftest_languages selftest-$language"
28400 # We link each language in with a set of hooks, reached indirectly via
28401 # lang.${target}. Only do so for selected languages.
28405 target_list
="all.cross start.encap rest.encap tags \
28406 install-common install-man install-info install-dvi install-pdf \
28407 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
28408 mostlyclean clean distclean maintainer-clean install-plugin"
28410 for t
in $target_list
28413 for lang
in $all_selected_languages
28417 echo "lang.$t: $x" >> Make-hooks
28420 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
28421 echo "SERIAL_LIST =" >> Make-hooks
28422 echo else >> Make-hooks
28426 serialization_languages
=c
28427 for lang
in $all_selected_languages
28429 test $lang = c
&& continue
28430 if test $lang = lto
; then
28431 serialization_languages
="$serialization_languages lto1 lto2"
28433 serialization_languages
="$serialization_languages $lang"
28436 for lang
in $serialization_languages
28438 test $lang = c
&& continue
28439 lang_cnt
=`expr $lang_cnt + 1`
28440 lang_list
=" $prev$lang_list"
28443 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
28444 echo endif
>> Make-hooks
28445 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
28446 echo "INDEX.c = 0" >> Make-hooks
28448 for lang
in $serialization_languages
28450 test $lang = c
&& continue
28451 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
28452 echo "INDEX.$lang = $lang_idx" >> Make-hooks
28453 lang_cnt
=`expr $lang_cnt - 1`
28454 lang_idx
=`expr $lang_idx + 1`
28458 # Option include files
28461 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
28462 option_includes
="option-includes.mk"
28471 echo "dir ." > .gdbinit
28472 echo "dir ${srcdir}" >> .gdbinit
28473 if test x
$gdb_needs_out_file_path = xyes
28475 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28477 if test "x$subdirs" != x
; then
28480 echo "dir ${srcdir}/$s" >> .gdbinit
28483 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28484 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28486 # Put a breakpoint on __asan_report_error to help with debugging buffer
28489 *-fsanitize=address
*)
28490 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28494 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28498 # Find a directory in which to install a shared libgcc.
28500 # Check whether --enable-version-specific-runtime-libs was given.
28501 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28502 enableval
=$enable_version_specific_runtime_libs;
28506 # Substitute configuration variables
28577 if test x
${build} = x
${host} ; then
28578 if test x
${host} = x
${target} ; then
28579 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28581 echo "Links are now set up to build a cross-compiler" 1>&2
28582 echo " from ${host} to ${target}." 1>&2
28585 if test x
${host} = x
${target} ; then
28586 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28587 echo " for ${target}." 1>&2
28589 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28590 echo " from ${host} to ${target}." 1>&2
28599 if test "x${ISLLIBS}" != "x" ; then
28601 $as_echo "#define HAVE_isl 1" >>confdefs.h
28605 # SDCC GCC_ENABLE_PLUGINS
28608 if test x
"$enable_plugin" = x
"yes"; then
28610 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28615 # Enable --enable-host-shared
28616 # Check whether --enable-host-shared was given.
28617 if test "${enable_host_shared+set}" = set; then :
28618 enableval
=$enable_host_shared; PICFLAG
=-fPIC
28627 # Check whether --enable-libquadmath-support was given.
28628 if test "${enable_libquadmath_support+set}" = set; then :
28629 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
28631 ENABLE_LIBQUADMATH_SUPPORT
=yes
28634 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28636 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28641 # Specify what hash style to use by default.
28643 # Check whether --with-linker-hash-style was given.
28644 if test "${with_linker_hash_style+set}" = set; then :
28645 withval
=$with_linker_hash_style; case x
"$withval" in
28647 LINKER_HASH_STYLE
=sysv
28650 LINKER_HASH_STYLE
=gnu
28653 LINKER_HASH_STYLE
=both
28656 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28660 LINKER_HASH_STYLE
=''
28663 if test x
"${LINKER_HASH_STYLE}" != x
; then
28665 cat >>confdefs.h
<<_ACEOF
28666 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28671 # Specify what should be the default of -fdiagnostics-color option.
28673 # Check whether --with-diagnostics-color was given.
28674 if test "${with_diagnostics_color+set}" = set; then :
28675 withval
=$with_diagnostics_color; case x
"$withval" in
28677 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
28680 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
28683 DIAGNOSTICS_COLOR_DEFAULT
=-1
28686 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
28689 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
28693 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
28697 cat >>confdefs.h
<<_ACEOF
28698 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
28702 # Specify what should be the default of -fdiagnostics-urls option.
28704 # Check whether --with-diagnostics-urls was given.
28705 if test "${with_diagnostics_urls+set}" = set; then :
28706 withval
=$with_diagnostics_urls; case x
"$withval" in
28708 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_NO
28711 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
28714 DIAGNOSTICS_URLS_DEFAULT
=-1
28717 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_YES
28720 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
28724 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
28728 cat >>confdefs.h
<<_ACEOF
28729 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
28733 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28734 # of jit/jit-playback.cc.
28735 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
28736 echo "gcc_driver_version: ${gcc_driver_version}"
28737 cat > gcc-driver-name.h
<<EOF
28738 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
28741 # Check whether --enable-default-pie was given.
28742 # Check whether --enable-default-pie was given.
28743 if test "${enable_default_pie+set}" = set; then :
28744 enableval
=$enable_default_pie; enable_default_pie
=$enableval
28746 enable_default_pie
=no
28749 if test x
$enable_default_pie = xyes
; then
28751 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
28756 # Check if -fno-PIE works.
28757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
28758 $as_echo_n "checking for -fno-PIE option... " >&6; }
28759 if ${gcc_cv_c_no_fpie+:} false
; then :
28760 $as_echo_n "(cached) " >&6
28762 saved_CXXFLAGS
="$CXXFLAGS"
28763 CXXFLAGS
="$CXXFLAGS -fno-PIE"
28764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28765 /* end confdefs.h. */
28766 int main(void) {return 0;}
28768 if ac_fn_cxx_try_compile
"$LINENO"; then :
28769 gcc_cv_c_no_fpie
=yes
28771 gcc_cv_c_no_fpie
=no
28773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28774 CXXFLAGS
="$saved_CXXFLAGS"
28776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
28777 $as_echo "$gcc_cv_c_no_fpie" >&6; }
28778 if test "$gcc_cv_c_no_fpie" = "yes"; then
28779 NO_PIE_CFLAGS
="-fno-PIE"
28783 # Check if -no-pie works.
28784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
28785 $as_echo_n "checking for -no-pie option... " >&6; }
28786 if ${gcc_cv_no_pie+:} false
; then :
28787 $as_echo_n "(cached) " >&6
28789 saved_LDFLAGS
="$LDFLAGS"
28790 LDFLAGS
="$LDFLAGS -no-pie"
28791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28792 /* end confdefs.h. */
28793 int main(void) {return 0;}
28795 if ac_fn_cxx_try_link
"$LINENO"; then :
28800 rm -f core conftest.err conftest.
$ac_objext \
28801 conftest
$ac_exeext conftest.
$ac_ext
28802 LDFLAGS
="$saved_LDFLAGS"
28804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
28805 $as_echo "$gcc_cv_no_pie" >&6; }
28806 if test "$gcc_cv_no_pie" = "yes"; then
28807 NO_PIE_FLAG
="-no-pie"
28811 # Enable Intel CET on Intel CET enabled host if jit is enabled.
28812 # Check whether --enable-cet was given.
28813 if test "${enable_cet+set}" = set; then :
28814 enableval
=$enable_cet;
28815 case "$enableval" in
28817 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
28825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
28826 $as_echo_n "checking for CET support... " >&6; }
28829 i
[34567]86-*-linux* | x86_64-
*-linux*)
28831 cet_save_CFLAGS
="$CFLAGS"
28832 CFLAGS
="$CFLAGS -fcf-protection"
28833 case "$enable_cet" in
28835 # Check if target supports multi-byte NOPs
28836 # and if compiler and assembler support CET.
28837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28838 /* end confdefs.h. */
28844 #if !defined(__SSE2__)
28845 #error target does not support multi-byte NOPs
28854 if ac_fn_cxx_try_compile
"$LINENO"; then :
28859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28862 # Check if compiler and assembler support CET.
28863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28864 /* end confdefs.h. */
28874 if ac_fn_cxx_try_compile
"$LINENO"; then :
28879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28880 if test $support_cet = "no"; then
28881 if test x
$enable_bootstrap != xno \
28882 && test -z "${with_build_subdir}" \
28883 && (test ! -f ..
/stage_current \
28884 ||
test `cat ../stage_current` != "stage1"); then
28885 # Require CET support only for the final GCC build.
28886 as_fn_error $?
"compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
28888 # Don't enable CET without CET support for non-bootstrap
28889 # build, in stage1 nor for build support.
28895 CFLAGS
="$cet_save_CFLAGS"
28903 cet_save_CFLAGS
="$CFLAGS"
28904 CFLAGS
="$CFLAGS -fcf-protection=none"
28905 cet_save_LDFLAGS
="$LDFLAGS"
28906 LDFLAGS
="$LDFLAGS -Wl,-z,ibt,-z,shstk"
28907 if test x
$may_have_cet = xyes
; then
28908 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
28909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28910 /* end confdefs.h. */
28920 if ac_fn_cxx_try_link
"$LINENO"; then :
28925 rm -f core conftest.err conftest.
$ac_objext \
28926 conftest
$ac_exeext conftest.
$ac_ext
28929 if test x
$may_have_cet = xyes
; then
28930 if test x
$cross_compiling = xno
; then
28931 if test "$cross_compiling" = yes; then :
28932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28934 as_fn_error $?
"cannot run test program while cross compiling
28935 See \`config.log' for more details" "$LINENO" 5; }
28937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28938 /* end confdefs.h. */
28948 if ac_fn_cxx_try_run
"$LINENO"; then :
28949 have_multi_byte_nop
=yes
28951 have_multi_byte_nop
=no
28953 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28954 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28958 if test x
$have_multi_byte_nop = xyes
; then
28959 if test "$cross_compiling" = yes; then :
28960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28962 as_fn_error $?
"cannot run test program while cross compiling
28963 See \`config.log' for more details" "$LINENO" 5; }
28965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28966 /* end confdefs.h. */
28974 __attribute__ ((noinline, noclone))
28975 xxx (void (*f) (void))
28981 __attribute__ ((noinline, noclone))
28995 if ac_fn_cxx_try_run
"$LINENO"; then :
29000 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
29001 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
29005 if test x
$enable_cet = xno
-a x
$have_cet = xyes
; then
29006 as_fn_error $?
"Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
29010 # Enable CET in cross compiler if possible so that it will run on both
29011 # CET and non-CET hosts.
29014 if test x
$enable_cet = xyes
; then
29015 CET_HOST_FLAGS
="-fcf-protection"
29016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29017 $as_echo "yes" >&6; }
29019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29020 $as_echo "no" >&6; }
29022 CFLAGS
="$cet_save_CFLAGS"
29023 LDFLAGS
="$cet_save_LDFLAGS"
29025 case x
$enable_languages in
29034 # Check linker supports '-z bndplt'
29035 ld_bndplt_support
=no
29036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29037 $as_echo_n "checking linker -z bndplt option... " >&6; }
29038 if test x
"$ld_is_gold" = xno
; then
29039 if test $in_tree_ld = yes ; then
29040 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
29041 ld_bndplt_support
=yes
29043 elif test x
$gcc_cv_ld != x
; then
29044 # Check if linker supports -a bndplt option
29045 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
29046 ld_bndplt_support
=yes
29050 if test x
"$ld_bndplt_support" = xyes
; then
29052 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29056 $as_echo "$ld_bndplt_support" >&6; }
29058 # Check linker supports '--push-state'/'--pop-state'
29059 ld_pushpopstate_support
=no
29060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29061 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29062 if test x
"$ld_is_gold" = xno
; then
29063 if test $in_tree_ld = yes ; then
29064 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
29065 ld_pushpopstate_support
=yes
29067 elif test x
$gcc_cv_ld != x
; then
29068 # Check if linker supports --push-state/--pop-state options
29069 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
29070 ld_pushpopstate_support
=yes
29074 if test x
"$ld_pushpopstate_support" = xyes
; then
29076 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29080 $as_echo "$ld_pushpopstate_support" >&6; }
29082 # On s390, float_t has historically been statically defined as double for no
29083 # good reason. To comply with the C standard in the light of this definition,
29084 # gcc has evaluated float expressions in double precision when in
29085 # standards-compatible mode or when given -fexcess-precision=standard. To enable
29086 # a smooth transition towards the new model used by most architectures, where
29087 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
29088 # float_t from that, this behavior can be configured with
29089 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
29090 # the old model. When omitted, native builds and cross compiles that have target
29091 # libc headers will detect whether libc clamps float_t to double and in that
29092 # case maintain the old model. Otherwise, they will default to the new model.
29093 # Check whether --enable-s390-excess-float-precision was given.
29094 if test "${enable_s390_excess_float_precision+set}" = set; then :
29095 enableval
=$enable_s390_excess_float_precision;
29097 enable_s390_excess_float_precision
=auto
29103 if test x
"$enable_s390_excess_float_precision" = xauto
; then
29104 # Can we autodetect the behavior of the target libc?
29105 if test "$target" = "$host" -a "$host" = "$build"; then
29106 enable_s390_excess_float_precision
=autodetect
29107 elif test "x$with_headers" != xno
; then
29108 # cross build. are target headers available?
29109 # carefully coerce the build-system compiler to use target headers
29110 saved_CXXFLAGS
="$CXXFLAGS"
29111 fixed_XGCC_FLAGS_FOR_TARGET
=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
29112 CROSS_TEST_CXXFLAGS
="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
29113 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
29114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29115 /* end confdefs.h. */
29120 if ac_fn_cxx_try_compile
"$LINENO"; then :
29121 enable_s390_excess_float_precision
=autodetect
29123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29124 CXXFLAGS
="$saved_CXXFLAGS"
29127 if test x
"$enable_s390_excess_float_precision" = xautodetect
; then
29128 saved_CXXFLAGS
="$CXXFLAGS"
29129 if ! test "$target" = "$host" -a "$host" = "$build"; then
29130 CXXFLAGS
="$CROSS_TEST_CXXFLAGS"
29131 unset CROSS_TEST_CXXFLAGS
29133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
29134 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
29135 if ${gcc_cv_float_t_clamped_to_double+:} false
; then :
29136 $as_echo_n "(cached) " >&6
29139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29140 /* end confdefs.h. */
29142 #define __FLT_EVAL_METHOD__ 0
29144 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
29147 if ac_fn_cxx_try_compile
"$LINENO"; then :
29148 gcc_cv_float_t_clamped_to_double
=yes
29150 gcc_cv_float_t_clamped_to_double
=no
29152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
29155 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
29156 CXXFLAGS
="$saved_CXXFLAGS"
29157 enable_s390_excess_float_precision
="$gcc_cv_float_t_clamped_to_double"
29159 # no way to detect behavior of target libc, default to new model
29160 enable_s390_excess_float_precision
=no
29165 if test x
"$enable_s390_excess_float_precision" = xyes
; then
29167 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
29173 # Configure the subdirectories
29174 # AC_CONFIG_SUBDIRS($subdirs)
29176 # Create the Makefile
29177 # and configure language subdirectories
29178 ac_config_files
="$ac_config_files $all_outputs"
29181 ac_config_commands
="$ac_config_commands default"
29183 cat >confcache
<<\_ACEOF
29184 # This file is a shell script that caches the results of configure
29185 # tests run on this system so they can be shared between configure
29186 # scripts and configure runs, see configure's option --config-cache.
29187 # It is not useful on other systems. If it contains results you don't
29188 # want to keep, you may remove or edit it.
29190 # config.status only pays attention to the cache file if you give it
29191 # the --recheck option to rerun configure.
29193 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29194 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29195 # following values.
29199 # The following way of writing the cache mishandles newlines in values,
29200 # but we know of no workaround that is simple, portable, and efficient.
29201 # So, we kill variables containing newlines.
29202 # Ultrix sh set writes to stderr and can't be redirected directly,
29203 # and sets the high bit in the cache file unless we assign to the vars.
29205 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29206 eval ac_val
=\$
$ac_var
29210 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29211 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29214 _ | IFS | as_nl
) ;; #(
29215 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
29216 *) { eval $ac_var=; unset $ac_var;} ;;
29222 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29223 *${as_nl}ac_space
=\
*)
29224 # `set' does not quote correctly, so add quotes: double-quote
29225 # substitution turns \\\\ into \\, and sed turns \\ into \.
29228 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29231 # `set' quotes correctly as required by POSIX, so do not add quotes.
29232 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29241 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29243 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29245 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29246 if test -w "$cache_file"; then
29247 if test "x$cache_file" != "x/dev/null"; then
29248 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29249 $as_echo "$as_me: updating cache $cache_file" >&6;}
29250 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
29251 cat confcache
>"$cache_file"
29253 case $cache_file in #(
29255 mv -f confcache
"$cache_file"$$
&&
29256 mv -f "$cache_file"$$
"$cache_file" ;; #(
29258 mv -f confcache
"$cache_file" ;;
29263 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29264 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29269 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29270 # Let make expand exec_prefix.
29271 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29273 DEFS
=-DHAVE_CONFIG_H
29278 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29279 # 1. Remove the extension, and $U if already installed.
29280 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29281 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
29282 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29283 # will be set to the directory where LIBOBJS objects are built.
29284 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29285 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
29287 LIBOBJS
=$ac_libobjs
29289 LTLIBOBJS
=$ac_ltlibobjs
29294 : "${CONFIG_STATUS=./config.status}"
29296 ac_clean_files_save
=$ac_clean_files
29297 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29298 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29299 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29301 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29303 # Generated by $as_me.
29304 # Run this file to recreate the current configuration.
29305 # Compiler output produced by configure, useful for debugging
29306 # configure, is in config.log if it exists.
29309 ac_cs_recheck=false
29312 SHELL=\${CONFIG_SHELL-$SHELL}
29315 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
29316 ## -------------------- ##
29317 ## M4sh Initialization. ##
29318 ## -------------------- ##
29320 # Be more Bourne compatible
29321 DUALCASE
=1; export DUALCASE
# for MKS sh
29322 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
29325 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29326 # is contrary to our usage. Disable this feature.
29327 alias -g '${1+"$@"}'='"$@"'
29328 setopt NO_GLOB_SUBST
29330 case `(set -o) 2>/dev/null` in #(
29342 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29343 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29344 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29345 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29346 # Prefer a ksh shell builtin over an external printf program on Solaris,
29347 # but without wasting forks for bash or zsh.
29348 if test -z "$BASH_VERSION$ZSH_VERSION" \
29349 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29350 as_echo='print
-r --'
29351 as_echo_n='print
-rn --'
29352 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29353 as_echo='printf %s
\n'
29354 as_echo_n='printf %s
'
29356 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29357 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
29358 as_echo_n='/usr
/ucb
/echo -n'
29360 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29361 as_echo_n_body='eval
29365 expr "X$arg" : "X\\(.*\\)$as_nl";
29366 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29368 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
29370 export as_echo_n_body
29371 as_echo_n='sh
-c $as_echo_n_body as_echo
'
29373 export as_echo_body
29374 as_echo='sh
-c $as_echo_body as_echo
'
29377 # The user is always right.
29378 if test "${PATH_SEPARATOR+set}" != set; then
29380 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29381 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29388 # We need space, tab and new line, in precisely that order. Quoting is
29389 # there to prevent editors from complaining about space-tab.
29390 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29391 # splitting by setting IFS to empty value.)
29394 # Find who we are. Look in the path if we contain no directory separator.
29397 *[\\/]* ) as_myself=$0 ;;
29398 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29399 for as_dir in $PATH
29402 test -z "$as_dir" && as_dir=.
29403 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29409 # We did not find ourselves, most probably we were run as `sh COMMAND'
29410 # in which case we are not to be found in the path.
29411 if test "x$as_myself" = x
; then
29414 if test ! -f "$as_myself"; then
29415 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29419 # Unset variables that we do not need and which cause bugs (e.g. in
29420 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29421 # suppresses any "Segmentation fault" message there. '((' could
29422 # trigger a bug in pdksh 5.2.14.
29423 for as_var
in BASH_ENV ENV MAIL MAILPATH
29424 do eval test x\
${$as_var+set} = xset \
29425 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
29438 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
29441 # as_fn_error STATUS ERROR [LINENO LOG_FD]
29442 # ----------------------------------------
29443 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29444 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29445 # script with STATUS, using 1 if that was 0.
29448 as_status
=$1; test $as_status -eq 0 && as_status
=1
29450 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
29451 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
29453 $as_echo "$as_me: error: $2" >&2
29454 as_fn_exit
$as_status
29458 # as_fn_set_status STATUS
29459 # -----------------------
29460 # Set $? to STATUS, without forking.
29461 as_fn_set_status
()
29464 } # as_fn_set_status
29466 # as_fn_exit STATUS
29467 # -----------------
29468 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29472 as_fn_set_status
$1
29478 # Portably unset VAR.
29481 { eval $1=; unset $1;}
29483 as_unset
=as_fn_unset
29484 # as_fn_append VAR VALUE
29485 # ----------------------
29486 # Append the text in VALUE to the end of the definition contained in VAR. Take
29487 # advantage of any shell optimizations that allow amortized linear growth over
29488 # repeated appends, instead of the typical quadratic growth present in naive
29490 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
29491 eval 'as_fn_append ()
29502 # as_fn_arith ARG...
29503 # ------------------
29504 # Perform arithmetic evaluation on the ARGs, and store the result in the
29505 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29506 # must be portable across $(()) and expr.
29507 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
29508 eval 'as_fn_arith ()
29515 as_val
=`expr "$@" || test $? -eq 1`
29520 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29521 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29527 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29528 as_basename
=basename
29533 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29539 as_me
=`$as_basename -- "$0" ||
29540 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29541 X"$0" : 'X\(//\)$' \| \
29542 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29544 sed '/^.*\/\([^/][^/]*\)\/*$/{
29558 # Avoid depending upon Character Ranges.
29559 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29560 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29561 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29562 as_cr_digits
='0123456789'
29563 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29565 ECHO_C
= ECHO_N
= ECHO_T
=
29566 case `echo -n x` in #(((((
29568 case `echo 'xy\c'` in
29569 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29571 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
29578 rm -f conf$$ conf$$.exe conf$$.
file
29579 if test -d conf$$.dir
; then
29580 rm -f conf$$.dir
/conf$$.
file
29583 mkdir conf$$.dir
2>/dev
/null
29585 if (echo >conf$$.
file) 2>/dev
/null
; then
29586 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29588 # ... but there are two gotchas:
29589 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29590 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29591 # In both cases, we have to default to `cp -pR'.
29592 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29594 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29602 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29603 rmdir conf$$.dir
2>/dev
/null
29608 # Create "$as_dir" as a directory, including parents if necessary.
29613 -*) as_dir
=.
/$as_dir;;
29615 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
29619 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29620 *) as_qdir
=$as_dir;;
29622 as_dirs
="'$as_qdir' $as_dirs"
29623 as_dir
=`$as_dirname -- "$as_dir" ||
29624 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29625 X"$as_dir" : 'X\(//\)[^/]' \| \
29626 X"$as_dir" : 'X\(//\)$' \| \
29627 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29628 $as_echo X"$as_dir" |
29629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29633 /^X\(\/\/\)[^/].*/{
29646 test -d "$as_dir" && break
29648 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29649 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
29653 if mkdir
-p .
2>/dev
/null
; then
29654 as_mkdir_p
='mkdir -p "$as_dir"'
29656 test -d .
/-p && rmdir .
/-p
29661 # as_fn_executable_p FILE
29662 # -----------------------
29663 # Test if FILE is an executable regular file.
29664 as_fn_executable_p
()
29666 test -f "$1" && test -x "$1"
29667 } # as_fn_executable_p
29668 as_test_x
='test -x'
29669 as_executable_p
=as_fn_executable_p
29671 # Sed expression to map a string onto a valid CPP name.
29672 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29674 # Sed expression to map a string onto a valid variable name.
29675 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29679 ## ----------------------------------- ##
29680 ## Main body of $CONFIG_STATUS script. ##
29681 ## ----------------------------------- ##
29683 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
29685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29686 # Save the log message, to keep $0 and so on meaningful, and to
29687 # report actual input values of CONFIG_FILES etc. instead of their
29688 # values after options handling.
29690 This file was extended by $as_me, which was
29691 generated by GNU Autoconf 2.69. Invocation command line was
29693 CONFIG_FILES = $CONFIG_FILES
29694 CONFIG_HEADERS = $CONFIG_HEADERS
29695 CONFIG_LINKS = $CONFIG_LINKS
29696 CONFIG_COMMANDS = $CONFIG_COMMANDS
29699 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29704 case $ac_config_files in *"
29705 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
29708 case $ac_config_headers in *"
29709 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
29713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29714 # Files that config.status was made for.
29715 config_files="$ac_config_files"
29716 config_headers="$ac_config_headers"
29717 config_links="$ac_config_links"
29718 config_commands="$ac_config_commands"
29722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29724 \`$as_me' instantiates files and other configuration actions
29725 from templates according to the current configuration. Unless the files
29726 and actions are specified as TAGs, all are instantiated by default.
29728 Usage: $0 [OPTION]... [TAG]...
29730 -h, --help print this help, then exit
29731 -V, --version print version number and configuration settings, then exit
29732 --config print configuration, then exit
29733 -q, --quiet, --silent
29734 do not print progress messages
29735 -d, --debug don't remove temporary files
29736 --recheck update $as_me by reconfiguring in the same conditions
29737 --file=FILE[:TEMPLATE]
29738 instantiate the configuration file FILE
29739 --header=FILE[:TEMPLATE]
29740 instantiate the configuration header FILE
29742 Configuration files:
29745 Configuration headers:
29748 Configuration links:
29751 Configuration commands:
29754 Report bugs to the package provider."
29757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29758 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29761 configured by $0, generated by GNU Autoconf 2.69,
29762 with options \\"\$ac_cs_config\\"
29764 Copyright (C) 2012 Free Software Foundation, Inc.
29765 This config.status script is free software; the Free Software Foundation
29766 gives unlimited permission to copy, distribute and modify it."
29771 test -n "\$AWK" || AWK=awk
29774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29775 # The default lists apply if the user does not specify any file.
29781 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29782 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29786 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29798 # Handling of the options.
29799 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29801 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29802 $as_echo "$ac_cs_version"; exit ;;
29803 --config |
--confi |
--conf |
--con |
--co |
--c )
29804 $as_echo "$ac_cs_config"; exit ;;
29805 --debug |
--debu |
--deb |
--de |
--d |
-d )
29807 --file |
--fil |
--fi |
--f )
29810 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29811 '') as_fn_error $?
"missing file argument" ;;
29813 as_fn_append CONFIG_FILES
" '$ac_optarg'"
29814 ac_need_defaults
=false
;;
29815 --header |
--heade |
--head |
--hea )
29818 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29820 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
29821 ac_need_defaults
=false
;;
29823 # Conflict between --help and --header
29824 as_fn_error $?
"ambiguous option: \`$1'
29825 Try \`$0 --help' for more information.";;
29826 --help |
--hel |
-h )
29827 $as_echo "$ac_cs_usage"; exit ;;
29828 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29829 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29832 # This is an error.
29833 -*) as_fn_error $?
"unrecognized option: \`$1'
29834 Try \`$0 --help' for more information." ;;
29836 *) as_fn_append ac_config_targets
" $1"
29837 ac_need_defaults
=false
;;
29843 ac_configure_extra_args
=
29845 if $ac_cs_silent; then
29847 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29852 if \$ac_cs_recheck; then
29853 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29855 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29856 CONFIG_SHELL='$SHELL'
29857 export CONFIG_SHELL
29862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29866 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29867 ## Running $as_me. ##
29873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29877 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29878 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29885 # Handling of arguments.
29886 for ac_config_target
in $ac_config_targets
29888 case $ac_config_target in
29889 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
29890 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
29891 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
29892 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
29893 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29894 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
29895 "dsymutil") CONFIG_FILES
="$CONFIG_FILES dsymutil:exec-tool.in" ;;
29896 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29897 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
29898 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
29900 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29905 # If the user did not use the arguments to specify the items to instantiate,
29906 # then the envvar interface is used. Set only those that are not.
29907 # We use the long form for the default assignment because of an extremely
29908 # bizarre bug on SunOS 4.1.3.
29909 if $ac_need_defaults; then
29910 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29911 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29912 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
29913 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29916 # Have a temporary directory for convenience. Make it in the build tree
29917 # simply because there is no reason against having it here, and in addition,
29918 # creating and moving files from /tmp can sometimes cause problems.
29919 # Hook for its removal unless debugging.
29920 # Note that there is a small window in which the directory will not be cleaned:
29921 # after its creation but before its name has been assigned to `$tmp'.
29925 trap 'exit_status=$?
29926 : "${ac_tmp:=$tmp}"
29927 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29929 trap 'as_fn_exit 1' 1 2 13 15
29931 # Create a (secure) tmp directory for tmp files.
29934 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29938 tmp
=.
/conf$$
-$RANDOM
29939 (umask 077 && mkdir
"$tmp")
29940 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
29943 # Set up the scripts for CONFIG_FILES section.
29944 # No need to generate them if there are no CONFIG_FILES.
29945 # This happens for instance with `./config.status config.h'.
29946 if test -n "$CONFIG_FILES"; then
29948 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
29949 ac_cs_awk_getline
=:
29950 ac_cs_awk_pipe_init
=
29951 ac_cs_awk_read_file
='
29952 while ((getline aline < (F[key])) > 0)
29955 ac_cs_awk_pipe_fini
=
29957 ac_cs_awk_getline
=false
29958 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
29959 ac_cs_awk_read_file
='
29961 print "cat " F[key] " &&"
29962 '$ac_cs_awk_pipe_init
29963 # The final `:' finishes the AND list.
29964 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
29966 ac_cr
=`echo X | tr X '\015'`
29967 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29968 # But we know of no other shell where ac_cr would be empty at this
29969 # point, so we can use a bashism as a fallback.
29970 if test "x$ac_cr" = x
; then
29971 eval ac_cr
=\$
\'\\r
\'
29973 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29974 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29977 ac_cs_awk_cr
=$ac_cr
29980 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29983 # Create commands to substitute file output variables.
29985 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29986 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
29987 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
29990 } >conf$
$files.sh
&&
29991 . .
/conf$
$files.sh ||
29992 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
29993 rm -f conf$
$files.sh
29996 echo "cat >conf$$subs.awk <<_ACEOF" &&
29997 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29999 } >conf$$subs.sh ||
30000 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
30001 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30003 for ac_last_try in false false false false false :; do
30004 . ./conf$$subs.sh ||
30005 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
30007 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
30008 if test $ac_delim_n = $ac_delim_num; then
30010 elif $ac_last_try; then
30011 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
30013 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30016 rm -f conf$$subs.sh
30018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30019 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
30023 s/^/S["/; s
/!.
*/"]=/
30033 s/\(.\{148\}\)..*/\1/
30035 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
30040 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30047 s/\(.\{148\}\)..*/\1/
30049 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
30053 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30058 ' <conf$$subs.awk | sed '
30063 ' >>$CONFIG_STATUS || ac_write_fail=1
30064 rm -f conf$$subs.awk
30065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30067 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
30068 for (key in S) S_is_set[key] = 1
30070 \$ac_cs_awk_pipe_init
30074 nfields = split(line, field, "@
")
30076 len = length(field[1])
30077 for (i = 2; i < nfields; i++) {
30079 keylen = length(key)
30080 if (S_is_set[key]) {
30082 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30083 len += length(value) + length(field[++i])
30088 if (nfields == 3 && !substed) {
30090 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30091 \$ac_cs_awk_read_file
30097 \$ac_cs_awk_pipe_fini
30100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30101 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30102 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
30105 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
30106 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
30109 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
30110 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
30111 # trailing colons and then remove the whole line if VPATH becomes empty
30112 # (actually we leave an empty line to preserve line numbers).
30113 if test "x
$srcdir" = x.; then
30114 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
30132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30133 fi # test -n "$CONFIG_FILES"
30135 # Set up the scripts for CONFIG_HEADERS section.
30136 # No need to generate them if there are no CONFIG_HEADERS.
30137 # This happens for instance with `./config.status Makefile'.
30138 if test -n "$CONFIG_HEADERS"; then
30139 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
30143 # Transform confdefs.h into an awk script `defines.awk', embedded as
30144 # here-document in config.status, that substitutes the proper values into
30145 # config.h.in to produce config.h.
30147 # Create a delimiter string that does not exist in confdefs.h, to ease
30148 # handling of long lines.
30150 for ac_last_try in false false :; do
30151 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
30152 if test -z "$ac_tt"; then
30154 elif $ac_last_try; then
30155 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
30157 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30161 # For the awk script, D is an array of macro values keyed by name,
30162 # likewise P contains macro parameters if any. Preserve backslash
30163 # newline sequences.
30165 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30167 s/.\{148\}/&'"$ac_delim"'/g
30170 s/^[ ]*#[ ]*define[ ][ ]*/ /
30177 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30179 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30183 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30184 D["\
1"]=" \
3\\\\\\n
"\\/p
30186 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30191 s/.\{148\}/&'"$ac_delim"'/g
30196 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30199 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30201 ' <confdefs.h | sed '
30202 s/'"$ac_delim"'/"\\\
30203 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30206 for (key in D) D_is_set[key] = 1
30209 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30211 split(line, arg, " ")
30212 if (arg[1] == "#") {
30216 defundef
= substr
(arg
[1], 2)
30219 split(mac1
, mac2
, "(") #)
30221 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30222 if (D_is_set
[macro
]) {
30223 # Preserve the white space surrounding the "#".
30224 print prefix
"define", macro P
[macro
] D
[macro
]
30227 # Replace #undef with comments. This is necessary, for example,
30228 # in the case of _POSIX_SOURCE, which is predefined and required
30229 # on some systems where configure will not decide to define it.
30230 if (defundef
== "undef") {
30231 print
"/*", prefix defundef
, macro
, "*/"
30239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30240 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
30241 fi # test -n "$CONFIG_HEADERS"
30244 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30249 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30251 case $ac_mode$ac_tag in
30253 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
30254 :[FH
]-) ac_tag
=-:-;;
30255 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30272 -) ac_f
="$ac_tmp/stdin";;
30273 *) # Look for the file first in the build tree, then in the source tree
30274 # (if the path is not absolute). The absolute path cannot be DOS-style,
30275 # because $ac_f cannot contain `:'.
30279 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30281 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30283 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30284 as_fn_append ac_file_inputs
" '$ac_f'"
30287 # Let's still pretend it is `configure' which instantiates (i.e., don't
30288 # use $as_me), people would be surprised to read:
30289 # /* config.h. Generated by config.status. */
30290 configure_input
='Generated from '`
30291 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30293 if test x
"$ac_file" != x-
; then
30294 configure_input
="$ac_file. $configure_input"
30295 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30296 $as_echo "$as_me: creating $ac_file" >&6;}
30298 # Neutralize special characters interpreted by sed in replacement strings.
30299 case $configure_input in #(
30300 *\
&* |
*\|
* |
*\\* )
30301 ac_sed_conf_input
=`$as_echo "$configure_input" |
30302 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30303 *) ac_sed_conf_input
=$configure_input;;
30307 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
30308 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
30313 ac_dir
=`$as_dirname -- "$ac_file" ||
30314 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30315 X"$ac_file" : 'X\(//\)[^/]' \| \
30316 X"$ac_file" : 'X\(//\)$' \| \
30317 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30318 $as_echo X"$ac_file" |
30319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30323 /^X\(\/\/\)[^/].*/{
30336 as_dir
="$ac_dir"; as_fn_mkdir_p
30340 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30342 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30343 # A ".." for each directory in $ac_dir_suffix.
30344 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30345 case $ac_top_builddir_sub in
30346 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30347 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30350 ac_abs_top_builddir
=$ac_pwd
30351 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30352 # for backward compatibility:
30353 ac_top_builddir
=$ac_top_build_prefix
30356 .
) # We are building in place.
30358 ac_top_srcdir
=$ac_top_builddir_sub
30359 ac_abs_top_srcdir
=$ac_pwd ;;
30360 [\\/]* | ?
:[\\/]* ) # Absolute name.
30361 ac_srcdir
=$srcdir$ac_dir_suffix;
30362 ac_top_srcdir
=$srcdir
30363 ac_abs_top_srcdir
=$srcdir ;;
30364 *) # Relative name.
30365 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30366 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30367 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30369 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30381 # If the template does not know about datarootdir, expand it.
30382 # FIXME: This hack should be removed a few years after 2.60.
30383 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30394 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30395 *datarootdir
*) ac_datarootdir_seen
=yes;;
30396 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30398 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30401 ac_datarootdir_hack='
30402 s&@datadir@&$datadir&g
30403 s&@docdir@&$docdir&g
30404 s&@infodir@&$infodir&g
30405 s&@localedir@&$localedir&g
30406 s&@mandir@&$mandir&g
30407 s&\\\${datarootdir}&$datarootdir&g' ;;
30411 # Neutralize VPATH when `$srcdir' = `.'.
30412 # Shell code in configure.ac might set extrasub.
30413 # FIXME: do we really want to maintain this feature?
30414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30415 ac_sed_extra="$ac_vpsub
30418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30420 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30421 s|@configure_input@|
$ac_sed_conf_input|
;t t
30422 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30423 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30424 s
&@srcdir@
&$ac_srcdir&;t t
30425 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30426 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30427 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30428 s
&@builddir@
&$ac_builddir&;t t
30429 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30430 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30431 $ac_datarootdir_hack
30433 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30434 if $ac_cs_awk_getline; then
30435 $AWK -f "$ac_tmp/subs.
awk"
30437 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
30439 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
30441 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30442 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
30443 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
30444 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
30445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30446 which seems to be undefined. Please make sure it is defined" >&5
30447 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30448 which seems to be undefined. Please make sure it is defined" >&2;}
30450 rm -f "$ac_tmp/stdin"
30452 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
30453 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
30455 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30461 if test x"$ac_file" != x-; then
30463 $as_echo "/* $configure_input */" \
30464 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
30465 } >"$ac_tmp/config.h" \
30466 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30467 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
30468 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30469 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30472 mv "$ac_tmp/config.h" "$ac_file" \
30473 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30476 $as_echo "/* $configure_input */" \
30477 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
30478 || as_fn_error $? "could not create -" "$LINENO" 5
30486 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
30489 # Prefer the file from the source tree if names are identical.
30490 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30491 ac_source=$srcdir/$ac_source
30494 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30495 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30497 if test ! -r "$ac_source"; then
30498 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
30502 # Try a relative symlink, then a hard link, then a copy.
30504 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30505 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30507 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30508 ln "$ac_source" "$ac_file" 2>/dev/null ||
30509 cp -p "$ac_source" "$ac_file" ||
30510 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30513 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30514 $as_echo "$as_me: executing $ac_file commands" >&6;}
30519 case $ac_file$ac_mode in
30520 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30522 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30523 for lang in $subdirs c-family common analyzer rtl-ssa
30525 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30527 "as":F) chmod +x as ;;
30528 "collect-ld":F) chmod +x collect-ld ;;
30529 "nm":F) chmod +x nm ;;
30530 "dsymutil":F) chmod +x dsymutil ;;
30532 case ${CONFIG_HEADERS} in
30533 *auto-host.h:config.in*)
30536 # Make sure all the subdirs exist.
30537 for d in $subdirs doc build common c-family
30539 test -d $d || mkdir $d
30549 ac_clean_files=$ac_clean_files_save
30551 test $ac_write_fail = 0 ||
30552 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30555 # configure is writing to config.log, and then calls config.status.
30556 # config.status does its own redirection, appending to config.log.
30557 # Unfortunately, on DOS this fails, as config.log is still kept open
30558 # by configure, so config.status won't be able to
write to it
; its
30559 # output is simply discarded. So we exec the FD to /dev/null,
30560 # effectively closing config.log, so it can be properly (re)opened and
30561 # appended to by config.status. When coming back to configure, we
30562 # need to make the FD available again.
30563 if test "$no_create" != yes; then
30565 ac_config_status_args
=
30566 test "$silent" = yes &&
30567 ac_config_status_args
="$ac_config_status_args --quiet"
30569 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30571 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30572 # would make configure fail if this is the last instruction.
30573 $ac_cs_success || as_fn_exit
1
30575 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
30576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30577 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}