2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
595 ac_unique_file="tree.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
727 ld_version_script_option
729 ORIGINAL_DSYMUTIL_FOR_TARGET
734 ORIGINAL_NM_FOR_TARGET
736 ORIGINAL_LD_GOLD_FOR_TARGET
737 ORIGINAL_LD_BFD_FOR_TARGET
738 ORIGINAL_LD_FOR_TARGET
739 ORIGINAL_PLUGIN_LD_FOR_TARGET
741 ORIGINAL_AS_FOR_TARGET
766 BUILD_SYSTEM_HEADER_DIR
786 NATIVE_SYSTEM_HEADER_DIR
824 omp_device_property_deps
825 omp_device_properties
827 real_target_noncanonical
828 enable_as_accelerator
844 valgrind_path_defines
876 CROSS_SYSTEM_HEADER_DIR
877 TARGET_SYSTEM_ROOT_DEFINE
879 SYSROOT_CFLAGS_FOR_TARGET
925 program_transform_name
936 ac_subst_files='option_includes
939 enable_option_checking
942 with_native_system_header_dir
946 with_gxx_libcxx_include_dir
948 enable_generated_files_in_srcdir
956 enable_build_format_warnings
960 enable_gather_detailed_mem_stats
961 enable_valgrind_annotations
964 with_stack_clash_protection_guard_size
979 with_documentation_root_url
980 with_changes_root_url
983 with_multilib_generator
990 enable_sjlj_exceptions
991 with_gcc_major_version_only
993 enable_mingw_wildcard
994 enable_large_address_aware
995 enable_leading_mingw64_underscores
998 enable_win32_registry
1006 enable_gnu_indirect_function
1007 enable_initfini_array
1009 enable_newlib_nano_formatted_io
1010 enable_standard_branch_protection
1011 enable_fix_cortex_a53_835769
1012 enable_fix_cortex_a53_843419
1014 enable_gnu_unique_object
1015 enable_linker_build_id
1018 with_long_double_128
1019 with_long_double_format
1022 enable_maintainer_mode
1024 enable_link_serialization
1025 enable_version_specific_runtime_libs
1028 enable_libquadmath_support
1029 with_linker_hash_style
1030 with_diagnostics_color
1031 with_diagnostics_urls
1034 enable_s390_excess_float_precision
1036 ac_precious_vars='build_alias
1055 # Initialize some variables set by options.
1057 ac_init_version=false
1058 ac_unrecognized_opts=
1059 ac_unrecognized_sep=
1060 # The variables have the same names as the options, with
1061 # dashes changed to underlines.
1062 cache_file=/dev/null
1069 program_transform_name=s,x,x,
1077 # Installation directory options.
1078 # These are left unexpanded so users can "make install exec_prefix=/foo"
1079 # and all the variables that are supposed to be based on exec_prefix
1080 # by default will actually change.
1081 # Use braces instead of parens because sh, perl, etc. also accept them.
1082 # (The list follows the same order as the GNU Coding Standards.)
1083 bindir='${exec_prefix}/bin'
1084 sbindir='${exec_prefix}/sbin'
1085 libexecdir='${exec_prefix}/libexec'
1086 datarootdir='${prefix}/share'
1087 datadir='${datarootdir}'
1088 sysconfdir='${prefix}/etc'
1089 sharedstatedir='${prefix}/com'
1090 localstatedir='${prefix}/var'
1091 includedir='${prefix}/include'
1092 oldincludedir='/usr/include'
1093 docdir='${datarootdir}/doc/${PACKAGE}'
1094 infodir='${datarootdir}/info'
1099 libdir='${exec_prefix}/lib'
1100 localedir='${datarootdir}/locale'
1101 mandir='${datarootdir}/man'
1107 # If the previous option needs an argument, assign it.
1108 if test -n "$ac_prev"; then
1109 eval $ac_prev=\$ac_option
1115 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1120 # Accept the important Cygnus configure options, so we can diagnose typos.
1122 case $ac_dashdash$ac_option in
1126 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1128 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1129 bindir=$ac_optarg ;;
1131 -build | --build | --buil | --bui | --bu)
1132 ac_prev=build_alias ;;
1133 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1134 build_alias=$ac_optarg ;;
1136 -cache-file | --cache-file | --cache-fil | --cache-fi \
1137 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1138 ac_prev=cache_file ;;
1139 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1140 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1141 cache_file=$ac_optarg ;;
1143 --config-cache | -C)
1144 cache_file=config.cache ;;
1146 -datadir | --datadir | --datadi | --datad)
1148 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1149 datadir=$ac_optarg ;;
1151 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1152 | --dataroo | --dataro | --datar)
1153 ac_prev=datarootdir ;;
1154 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1155 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1156 datarootdir=$ac_optarg ;;
1158 -disable-* | --disable-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid feature name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1167 "enable_$ac_useropt"
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1172 eval enable_$ac_useropt=no ;;
1174 -docdir | --docdir | --docdi | --doc | --do)
1176 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1177 docdir=$ac_optarg ;;
1179 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1181 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1182 dvidir=$ac_optarg ;;
1184 -enable-* | --enable-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid feature name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1193 "enable_$ac_useropt"
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1198 eval enable_$ac_useropt=\$ac_optarg ;;
1200 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1201 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1202 | --exec | --exe | --ex)
1203 ac_prev=exec_prefix ;;
1204 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1205 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1206 | --exec=* | --exe=* | --ex=*)
1207 exec_prefix=$ac_optarg ;;
1209 -gas | --gas | --ga | --g)
1210 # Obsolete; use --with-gas.
1213 -help | --help | --hel | --he | -h)
1214 ac_init_help=long ;;
1215 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1216 ac_init_help=recursive ;;
1217 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1218 ac_init_help=short ;;
1220 -host | --host | --hos | --ho)
1221 ac_prev=host_alias ;;
1222 -host=* | --host=* | --hos=* | --ho=*)
1223 host_alias=$ac_optarg ;;
1225 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1227 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1229 htmldir=$ac_optarg ;;
1231 -includedir | --includedir | --includedi | --included | --include \
1232 | --includ | --inclu | --incl | --inc)
1233 ac_prev=includedir ;;
1234 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1235 | --includ=* | --inclu=* | --incl=* | --inc=*)
1236 includedir=$ac_optarg ;;
1238 -infodir | --infodir | --infodi | --infod | --info | --inf)
1240 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1241 infodir=$ac_optarg ;;
1243 -libdir | --libdir | --libdi | --libd)
1245 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1246 libdir=$ac_optarg ;;
1248 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1249 | --libexe | --libex | --libe)
1250 ac_prev=libexecdir ;;
1251 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1252 | --libexe=* | --libex=* | --libe=*)
1253 libexecdir=$ac_optarg ;;
1255 -localedir | --localedir | --localedi | --localed | --locale)
1256 ac_prev=localedir ;;
1257 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1258 localedir=$ac_optarg ;;
1260 -localstatedir | --localstatedir | --localstatedi | --localstated \
1261 | --localstate | --localstat | --localsta | --localst | --locals)
1262 ac_prev=localstatedir ;;
1263 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1264 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1265 localstatedir=$ac_optarg ;;
1267 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1269 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1270 mandir=$ac_optarg ;;
1272 -nfp | --nfp | --nf)
1273 # Obsolete; use --without-fp.
1276 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1277 | --no-cr | --no-c | -n)
1280 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1281 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1284 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1285 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1286 | --oldin | --oldi | --old | --ol | --o)
1287 ac_prev=oldincludedir ;;
1288 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1289 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1290 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1291 oldincludedir=$ac_optarg ;;
1293 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1295 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1296 prefix=$ac_optarg ;;
1298 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1299 | --program-pre | --program-pr | --program-p)
1300 ac_prev=program_prefix ;;
1301 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1302 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1303 program_prefix=$ac_optarg ;;
1305 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1306 | --program-suf | --program-su | --program-s)
1307 ac_prev=program_suffix ;;
1308 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1309 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1310 program_suffix=$ac_optarg ;;
1312 -program-transform-name | --program-transform-name \
1313 | --program-transform-nam | --program-transform-na \
1314 | --program-transform-n | --program-transform- \
1315 | --program-transform | --program-transfor \
1316 | --program-transfo | --program-transf \
1317 | --program-trans | --program-tran \
1318 | --progr-tra | --program-tr | --program-t)
1319 ac_prev=program_transform_name ;;
1320 -program-transform-name=* | --program-transform-name=* \
1321 | --program-transform-nam=* | --program-transform-na=* \
1322 | --program-transform-n=* | --program-transform-=* \
1323 | --program-transform=* | --program-transfor=* \
1324 | --program-transfo=* | --program-transf=* \
1325 | --program-trans=* | --program-tran=* \
1326 | --progr-tra=* | --program-tr=* | --program-t=*)
1327 program_transform_name=$ac_optarg ;;
1329 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1331 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1332 pdfdir=$ac_optarg ;;
1334 -psdir | --psdir | --psdi | --psd | --ps)
1336 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1340 | -silent | --silent | --silen | --sile | --sil)
1343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1347 sbindir=$ac_optarg ;;
1349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1351 | --sharedst | --shareds | --shared | --share | --shar \
1353 ac_prev=sharedstatedir ;;
1354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1358 sharedstatedir=$ac_optarg ;;
1360 -site | --site | --sit)
1362 -site=* | --site=* | --sit=*)
1365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1368 srcdir=$ac_optarg ;;
1370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1371 | --syscon | --sysco | --sysc | --sys | --sy)
1372 ac_prev=sysconfdir ;;
1373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1375 sysconfdir=$ac_optarg ;;
1377 -target | --target | --targe | --targ | --tar | --ta | --t)
1378 ac_prev=target_alias ;;
1379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1380 target_alias=$ac_optarg ;;
1382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1385 -version | --version | --versio | --versi | --vers | -V)
1386 ac_init_version=: ;;
1389 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1390 # Reject names that are not valid shell variable names.
1391 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1392 as_fn_error $? "invalid package name: $ac_useropt"
1393 ac_useropt_orig=$ac_useropt
1394 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1395 case $ac_user_opts in
1399 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1400 ac_unrecognized_sep=', ';;
1402 eval with_$ac_useropt=\$ac_optarg ;;
1404 -without-* | --without-*)
1405 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1406 # Reject names that are not valid shell variable names.
1407 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1408 as_fn_error $? "invalid package name: $ac_useropt"
1409 ac_useropt_orig=$ac_useropt
1410 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1411 case $ac_user_opts in
1415 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1416 ac_unrecognized_sep=', ';;
1418 eval with_$ac_useropt=no ;;
1421 # Obsolete; use --with-x.
1424 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1425 | --x-incl | --x-inc | --x-in | --x-i)
1426 ac_prev=x_includes ;;
1427 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1428 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1429 x_includes=$ac_optarg ;;
1431 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1432 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1433 ac_prev=x_libraries ;;
1434 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1435 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1436 x_libraries=$ac_optarg ;;
1438 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1439 Try \`$0 --help' for more information"
1443 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1444 # Reject names that are not valid shell variable names.
1445 case $ac_envvar in #(
1446 '' | [0-9]* | *[!_$as_cr_alnum]* )
1447 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1449 eval $ac_envvar=\$ac_optarg
1450 export $ac_envvar ;;
1453 # FIXME: should be removed in autoconf 3.0.
1454 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1455 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1456 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1457 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1463 if test -n "$ac_prev"; then
1464 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1465 as_fn_error $? "missing argument to $ac_option"
1468 if test -n "$ac_unrecognized_opts"; then
1469 case $enable_option_checking in
1471 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1472 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1476 # Check all directory arguments for consistency.
1477 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1478 datadir sysconfdir sharedstatedir localstatedir includedir \
1479 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1480 libdir localedir mandir
1482 eval ac_val=\$$ac_var
1483 # Remove trailing slashes.
1486 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1487 eval $ac_var=\$ac_val;;
1489 # Be sure to have absolute directory names.
1491 [\\/$]* | ?:[\\/]* ) continue;;
1492 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1494 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1497 # There might be people who depend on the old broken behavior: `$host'
1498 # used to hold the argument of --host etc.
1499 # FIXME: To remove some day.
1502 target=$target_alias
1504 # FIXME: To remove some day.
1505 if test "x$host_alias" != x; then
1506 if test "x$build_alias" = x; then
1507 cross_compiling=maybe
1508 elif test "x$build_alias" != "x$host_alias"; then
1514 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1516 test "$silent" = yes && exec 6>/dev/null
1519 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1520 ac_ls_di=`ls -di .` &&
1521 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1522 as_fn_error $? "working directory cannot be determined"
1523 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1524 as_fn_error $? "pwd does not report name of working directory"
1527 # Find the source files, if location was not specified.
1528 if test -z "$srcdir"; then
1529 ac_srcdir_defaulted=yes
1530 # Try the directory containing this script, then the parent directory.
1531 ac_confdir=`$as_dirname -- "$as_myself" ||
1532 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1533 X"$as_myself" : 'X\(//\)[^/]' \| \
1534 X"$as_myself" : 'X\(//\)$' \| \
1535 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1536 $as_echo X"$as_myself" |
1537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1555 if test ! -r "$srcdir/$ac_unique_file"; then
1559 ac_srcdir_defaulted=no
1561 if test ! -r "$srcdir/$ac_unique_file"; then
1562 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1563 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1565 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1567 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1569 # When building in place, set srcdir=.
1570 if test "$ac_abs_confdir" = "$ac_pwd"; then
1573 # Remove unnecessary trailing slashes from srcdir.
1574 # Double slashes in file names in object file debugging info
1575 # mess up M-x gdb in Emacs.
1577 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1579 for ac_var in $ac_precious_vars; do
1580 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1581 eval ac_env_${ac_var}_value=\$${ac_var}
1582 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1583 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1587 # Report the --help message.
1589 if test "$ac_init_help" = "long"; then
1590 # Omit some internal or obsolete options to make the list less imposing.
1591 # This message is too long to be a string in the A/UX 3.1 sh.
1593 \`configure' configures this package to adapt to many kinds of systems.
1595 Usage: $0 [OPTION]... [VAR=VALUE]...
1597 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1598 VAR=VALUE. See below for descriptions of some of the useful variables.
1600 Defaults for the options are specified in brackets.
1603 -h, --help display this help and exit
1604 --help=short display options specific to this package
1605 --help=recursive display the short help of all the included packages
1606 -V, --version display version information and exit
1607 -q, --quiet, --silent do not print \`checking ...' messages
1608 --cache-file=FILE cache test results in FILE [disabled]
1609 -C, --config-cache alias for \`--cache-file=config.cache'
1610 -n, --no-create do not create output files
1611 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1613 Installation directories:
1614 --prefix=PREFIX install architecture-independent files in PREFIX
1615 [$ac_default_prefix]
1616 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1619 By default, \`make install' will install all the files in
1620 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1621 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1622 for instance \`--prefix=\$HOME'.
1624 For better control, use the options below.
1626 Fine tuning of the installation directories:
1627 --bindir=DIR user executables [EPREFIX/bin]
1628 --sbindir=DIR system admin executables [EPREFIX/sbin]
1629 --libexecdir=DIR program executables [EPREFIX/libexec]
1630 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1631 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1632 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1633 --libdir=DIR object code libraries [EPREFIX/lib]
1634 --includedir=DIR C header files [PREFIX/include]
1635 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1636 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1637 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1638 --infodir=DIR info documentation [DATAROOTDIR/info]
1639 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1640 --mandir=DIR man documentation [DATAROOTDIR/man]
1641 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1642 --htmldir=DIR html documentation [DOCDIR]
1643 --dvidir=DIR dvi documentation [DOCDIR]
1644 --pdfdir=DIR pdf documentation [DOCDIR]
1645 --psdir=DIR ps documentation [DOCDIR]
1651 --program-prefix=PREFIX prepend PREFIX to installed program names
1652 --program-suffix=SUFFIX append SUFFIX to installed program names
1653 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1656 --build=BUILD configure for building on BUILD [guessed]
1657 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1658 --target=TARGET configure for building compilers for TARGET [HOST]
1662 if test -n "$ac_init_help"; then
1667 --disable-option-checking ignore unrecognized --enable/--with options
1668 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1669 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1670 --enable-generated-files-in-srcdir
1671 put copies of generated files in source dir intended
1672 for creating source tarballs for users without
1673 texinfo bison or flex
1674 --disable-largefile omit support for large files
1675 --disable-build-format-warnings
1676 don't use -Wformat while building GCC
1677 --enable-werror-always enable -Werror despite compiler version
1678 --enable-checking[=LIST]
1679 enable expensive run-time checks. With LIST, enable
1680 only specific categories of checks. Categories are:
1681 yes,no,all,none,release. Flags are:
1682 assert,df,extra,fold,gc,gcac,gimple,misc,
1683 rtlflag,rtl,runtime,tree,valgrind,types
1684 --enable-coverage[=LEVEL]
1685 enable compiler's code coverage collection. Use to
1686 measure compiler performance and locate unused parts
1687 of the compiler. With LEVEL, specify optimization.
1688 Values are opt, noopt, default is noopt
1689 --enable-gather-detailed-mem-stats
1690 enable detailed memory allocation stats gathering
1691 --enable-valgrind-annotations
1692 enable valgrind runtime interaction
1693 --enable-multilib enable library support for multiple ABIs
1694 --enable-multiarch enable support for multiarch paths
1695 --enable-__cxa_atexit enable __cxa_atexit for C++
1696 --enable-decimal-float={no,yes,bid,dpd}
1697 enable decimal float extension to C. Selecting 'bid'
1698 or 'dpd' choses which decimal floating point format
1700 --enable-fixed-point enable fixed-point arithmetic extension to C
1701 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1703 --enable-tls enable or disable generation of tls code overriding
1704 the assembler check for tls support
1705 --enable-vtable-verify enable vtable verification feature
1706 --disable-analyzer disable -fanalyzer static analyzer
1707 --enable-objc-gc enable the use of Boehm's garbage collector with the
1708 GNU Objective-C runtime
1709 --disable-shared don't provide a shared libgcc
1710 --disable-gcov don't provide libgcov and related host tools
1711 --enable-languages=LIST specify which front-ends to build
1712 --disable-rpath do not hardcode runtime library paths
1713 --enable-sjlj-exceptions
1714 arrange to use setjmp/longjmp exception handling
1715 --enable-secureplt enable -msecure-plt by default for PowerPC
1716 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1717 Default to platform configuration
1718 --enable-large-address-aware
1719 Link mingw executables with --large-address-aware
1720 --enable-leading-mingw64-underscores
1721 enable leading underscores on 64 bit mingw targets
1722 --enable-cld enable -mcld by default for 32bit x86
1723 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1724 --disable-win32-registry
1725 disable lookup of installation paths in the Registry
1727 --enable-win32-registry enable registry lookup (default)
1728 --enable-win32-registry=KEY
1729 use KEY instead of GCC version as the last portion
1731 --enable-shared[=PKGS] build shared libraries [default=yes]
1732 --enable-static[=PKGS] build static libraries [default=yes]
1733 --enable-fast-install[=PKGS]
1734 optimize for fast installation [default=yes]
1735 --disable-libtool-lock avoid locking (might break parallel builds)
1736 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1737 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1738 --enable-gnu-indirect-function
1739 enable the use of the @gnu_indirect_function to
1741 --enable-initfini-array use .init_array/.fini_array sections
1742 --enable-comdat enable COMDAT group support
1743 --enable-newlib-nano-formatted-io
1744 Use nano version formatted IO
1746 --enable-standard-branch-protection
1747 enable Branch Target Identification Mechanism and
1748 Return Address Signing by default for AArch64
1749 --disable-standard-branch-protection
1750 disable Branch Target Identification Mechanism and
1751 Return Address Signing by default for AArch64
1754 --enable-fix-cortex-a53-835769
1755 enable workaround for AArch64 Cortex-A53 erratum
1757 --disable-fix-cortex-a53-835769
1758 disable workaround for AArch64 Cortex-A53 erratum
1762 --enable-fix-cortex-a53-843419
1763 enable workaround for AArch64 Cortex-A53 erratum
1765 --disable-fix-cortex-a53-843419
1766 disable workaround for AArch64 Cortex-A53 erratum
1769 --enable-gnu-unique-object
1770 enable the use of the @gnu_unique_object ELF
1771 extension on glibc systems
1772 --enable-linker-build-id
1773 compiler will always pass --build-id to linker
1774 --enable-libssp enable linking against libssp
1775 --enable-default-ssp enable Stack Smashing Protection as default
1776 --enable-maintainer-mode
1777 enable make rules and dependencies not useful (and
1778 sometimes confusing) to the casual installer
1779 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1780 thrashing on the build machine
1781 --enable-link-serialization
1782 avoid linking multiple GCC front-ends at once using
1783 make dependencies to avoid thrashing on the build
1785 --enable-version-specific-runtime-libs
1786 specify that runtime libraries should be installed
1787 in a compiler-specific directory
1788 --enable-plugin enable plugin support
1789 --enable-host-shared build host code as shared libraries
1790 --disable-libquadmath-support
1791 disable libquadmath support for Fortran
1792 --enable-default-pie enable Position Independent Executable as default
1793 --enable-cet enable Intel CET in host libraries [default=auto]
1794 --enable-s390-excess-float-precision
1795 on s390 targets, evaluate float with double
1796 precision when in standards-conforming mode
1799 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1800 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1801 --with-build-libsubdir=DIR Directory where to find libraries for build system
1802 --with-local-prefix=DIR specifies directory to put local include
1803 --with-native-system-header-dir=dir
1804 use dir as the directory to look for standard
1805 system header files in. Defaults to /usr/include.
1806 --with-build-sysroot=sysroot
1807 use sysroot as the system root during the build
1808 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1809 --with-gxx-include-dir=DIR
1810 specifies directory to put g++ header files
1811 --with-gxx-libcxx-include-dir=DIR
1812 specifies directory to find libc++ header files
1813 --with-cpp-install-dir=DIR
1814 install the user visible C preprocessor in DIR
1815 (relative to PREFIX) as well as PREFIX/bin
1816 --with-gnu-ld arrange to work with GNU ld
1817 --with-ld arrange to use the specified ld (full pathname)
1818 --with-demangler-in-ld try to use demangler in GNU ld
1819 --with-dsymutil arrange to use the specified dsymutil (full
1821 --with-gnu-as arrange to work with GNU as
1822 --with-as arrange to use the specified as (full pathname)
1823 --with-stack-clash-protection-guard-size=size
1824 Set the default stack clash protection guard size
1825 for specific targets as a power of two in bytes.
1826 --with-dwarf2 force the default debug format to be DWARF 2
1827 --with-specs=SPECS add SPECS to driver command-line processing
1828 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1829 --with-bugurl=URL Direct users to URL to report a bug
1830 --with-documentation-root-url=URL
1831 Root for documentation URLs
1832 --with-changes-root-url=URL
1833 Root for GCC changes URLs
1834 --with-multilib-list select multilibs (AArch64, ARM, AVR, OR1K, RISC-V,
1836 --with-multilib-generator
1837 Multi-libs configuration string (RISC-V only)
1838 --with-zstd=PATH specify prefix directory for installed zstd library.
1839 Equivalent to --with-zstd-include=PATH/include plus
1840 --with-zstd-lib=PATH/lib
1841 --with-zstd-include=PATH
1842 specify directory for installed zstd include files
1843 --with-zstd-lib=PATH specify directory for the installed zstd library
1844 --with-gnu-ld assume the C compiler uses GNU ld default=no
1845 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1846 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1847 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1848 --with-gcc-major-version-only
1849 use only GCC major number in filesystem paths
1850 --with-pic try to use only PIC/non-PIC objects [default=use
1852 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1853 --with-plugin-ld=[ARG] specify the plugin linker
1854 --with-glibc-version=M.N
1855 assume GCC used with glibc version M.N or later
1856 --with-long-double-128 use 128-bit long double by default
1857 --with-long-double-format={ieee,ibm}
1858 Specify whether PowerPC long double uses IEEE or IBM format
1860 --with-gc={page,zone} this option is not supported anymore. It used to
1861 choose the garbage collection mechanism to use with
1863 --with-system-zlib use installed libz
1864 --with-linker-hash-style={sysv,gnu,both}
1865 specify the linker hash style
1866 --with-diagnostics-color={never,auto,auto-if-env,always}
1867 specify the default of -fdiagnostics-color option
1868 auto-if-env stands for -fdiagnostics-color=auto if
1869 GCC_COLOR environment variable is present and
1870 -fdiagnostics-color=never otherwise
1871 --with-diagnostics-urls={never,auto,auto-if-env,always}
1872 specify the default of -fdiagnostics-urls option
1873 auto-if-env stands for -fdiagnostics-urls=auto if
1874 GCC_URLS or TERM_URLS environment variable is
1875 present and -fdiagnostics-urls=never otherwise
1877 Some influential environment variables:
1878 CC C compiler command
1879 CFLAGS C compiler flags
1880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1881 nonstandard directory <lib dir>
1882 LIBS libraries to pass to the linker, e.g. -l<library>
1883 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1884 you have headers in a nonstandard directory <include dir>
1885 CXX C++ compiler command
1886 CXXFLAGS C++ compiler flags
1887 CXXCPP C++ preprocessor
1889 GMPLIBS How to link GMP
1890 GMPINC How to find GMP include files
1891 ISLLIBS How to link isl
1892 ISLINC How to find isl include files
1894 Use these variables to override the choices made by `configure' or to help
1895 it to find libraries and programs with nonstandard names/locations.
1897 Report bugs to the package provider.
1902 if test "$ac_init_help" = "recursive"; then
1903 # If there are subdirs, report their specific --help.
1904 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1905 test -d "$ac_dir" ||
1906 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1911 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1913 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1914 # A ".." for each directory in $ac_dir_suffix.
1915 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1916 case $ac_top_builddir_sub in
1917 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1918 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1921 ac_abs_top_builddir=$ac_pwd
1922 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1923 # for backward compatibility:
1924 ac_top_builddir=$ac_top_build_prefix
1927 .) # We are building in place.
1929 ac_top_srcdir=$ac_top_builddir_sub
1930 ac_abs_top_srcdir=$ac_pwd ;;
1931 [\\/]* | ?:[\\/]* ) # Absolute name.
1932 ac_srcdir=$srcdir$ac_dir_suffix;
1933 ac_top_srcdir=$srcdir
1934 ac_abs_top_srcdir=$srcdir ;;
1936 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1937 ac_top_srcdir=$ac_top_build_prefix$srcdir
1938 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1940 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1942 cd "$ac_dir" || { ac_status=$?; continue; }
1943 # Check for guested configure.
1944 if test -f "$ac_srcdir/configure.gnu"; then
1946 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1947 elif test -f "$ac_srcdir/configure"; then
1949 $SHELL "$ac_srcdir/configure" --help=recursive
1951 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1953 cd "$ac_pwd" || { ac_status=$?; break; }
1957 test -n "$ac_init_help" && exit $ac_status
1958 if $ac_init_version; then
1961 generated by GNU Autoconf 2.69
1963 Copyright (C) 2012 Free Software Foundation, Inc.
1964 This configure script is free software; the Free Software Foundation
1965 gives unlimited permission to copy, distribute and modify it.
1970 ## ------------------------ ##
1971 ## Autoconf initialization. ##
1972 ## ------------------------ ##
1974 # ac_fn_c_try_compile LINENO
1975 # --------------------------
1976 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1977 ac_fn_c_try_compile ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 rm -f conftest.$ac_objext
1981 if { { ac_try="$ac_compile"
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_compile") 2>conftest.err
1990 if test -s conftest.err; then
1991 grep -v '^ *+' conftest.err >conftest.er1
1992 cat conftest.er1 >&5
1993 mv -f conftest.er1 conftest.err
1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996 test $ac_status = 0; } && {
1997 test -z "$ac_c_werror_flag" ||
1998 test ! -s conftest.err
1999 } && test -s conftest.$ac_objext; then :
2002 $as_echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.$ac_ext >&5
2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008 as_fn_set_status $ac_retval
2010 } # ac_fn_c_try_compile
2012 # ac_fn_cxx_try_compile LINENO
2013 # ----------------------------
2014 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2015 ac_fn_cxx_try_compile ()
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 rm -f conftest.$ac_objext
2019 if { { ac_try="$ac_compile"
2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_compile") 2>conftest.err
2028 if test -s conftest.err; then
2029 grep -v '^ *+' conftest.err >conftest.er1
2030 cat conftest.er1 >&5
2031 mv -f conftest.er1 conftest.err
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; } && {
2035 test -z "$ac_cxx_werror_flag" ||
2036 test ! -s conftest.err
2037 } && test -s conftest.$ac_objext; then :
2040 $as_echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046 as_fn_set_status $ac_retval
2048 } # ac_fn_cxx_try_compile
2050 # ac_fn_cxx_try_cpp LINENO
2051 # ------------------------
2052 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2053 ac_fn_cxx_try_cpp ()
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 if { { ac_try="$ac_cpp conftest.$ac_ext"
2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059 *) ac_try_echo=$ac_try;;
2061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062 $as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2065 if test -s conftest.err; then
2066 grep -v '^ *+' conftest.err >conftest.er1
2067 cat conftest.er1 >&5
2068 mv -f conftest.er1 conftest.err
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } > conftest.i && {
2072 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2073 test ! -s conftest.err
2077 $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status $ac_retval
2085 } # ac_fn_cxx_try_cpp
2087 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2088 # ---------------------------------------------------------
2089 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2090 # the include files in INCLUDES and setting the cache variable VAR
2092 ac_fn_cxx_check_header_mongrel ()
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 if eval \${$3+:} false; then :
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097 $as_echo_n "checking for $2... " >&6; }
2098 if eval \${$3+:} false; then :
2099 $as_echo_n "(cached) " >&6
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2105 # Is the header compilable?
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2107 $as_echo_n "checking $2 usability... " >&6; }
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2113 if ac_fn_cxx_try_compile "$LINENO"; then :
2114 ac_header_compiler=yes
2116 ac_header_compiler=no
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2120 $as_echo "$ac_header_compiler" >&6; }
2122 # Is the header present?
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2124 $as_echo_n "checking $2 presence... " >&6; }
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2129 if ac_fn_cxx_try_cpp "$LINENO"; then :
2130 ac_header_preproc=yes
2132 ac_header_preproc=no
2134 rm -f conftest.err conftest.i conftest.$ac_ext
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2136 $as_echo "$ac_header_preproc" >&6; }
2138 # So? What about this header?
2139 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2142 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2144 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2148 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2150 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2152 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2154 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2156 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval \${$3+:} false; then :
2162 $as_echo_n "(cached) " >&6
2164 eval "$3=\$ac_header_compiler"
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172 } # ac_fn_cxx_check_header_mongrel
2174 # ac_fn_cxx_try_run LINENO
2175 # ------------------------
2176 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2177 # that executables *can* be run.
2178 ac_fn_cxx_try_run ()
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 if { { ac_try="$ac_link"
2183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2184 *) ac_try_echo=$ac_try;;
2186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2187 $as_echo "$ac_try_echo"; } >&5
2188 (eval "$ac_link") 2>&5
2190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2191 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2192 { { case "(($ac_try" in
2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194 *) ac_try_echo=$ac_try;;
2196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197 $as_echo "$ac_try_echo"; } >&5
2198 (eval "$ac_try") 2>&5
2200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201 test $ac_status = 0; }; }; then :
2204 $as_echo "$as_me: program exited with status $ac_status" >&5
2205 $as_echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2208 ac_retval=$ac_status
2210 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212 as_fn_set_status $ac_retval
2214 } # ac_fn_cxx_try_run
2216 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2217 # ---------------------------------------------------------
2218 # Tests whether HEADER exists and can be compiled using the include files in
2219 # INCLUDES, setting the cache variable VAR accordingly.
2220 ac_fn_cxx_check_header_compile ()
2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224 $as_echo_n "checking for $2... " >&6; }
2225 if eval \${$3+:} false; then :
2226 $as_echo_n "(cached) " >&6
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2233 if ac_fn_cxx_try_compile "$LINENO"; then :
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242 $as_echo "$ac_res" >&6; }
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245 } # ac_fn_cxx_check_header_compile
2247 # ac_fn_c_try_cpp LINENO
2248 # ----------------------
2249 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 if { { ac_try="$ac_cpp conftest.$ac_ext"
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2259 $as_echo "$ac_try_echo"; } >&5
2260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2262 if test -s conftest.err; then
2263 grep -v '^ *+' conftest.err >conftest.er1
2264 cat conftest.er1 >&5
2265 mv -f conftest.er1 conftest.err
2267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2268 test $ac_status = 0; } > conftest.i && {
2269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2270 test ! -s conftest.err
2274 $as_echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280 as_fn_set_status $ac_retval
2284 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2285 # ----------------------------------------------
2286 # Tries to find the compile-time value of EXPR in a program that includes
2287 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2289 ac_fn_cxx_compute_int ()
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 if test "$cross_compiling" = yes; then
2293 # Depending upon the size, compute the lo and hi bounds.
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2300 static int test_array [1 - 2 * !(($2) >= 0)];
2302 return test_array [0];
2308 if ac_fn_cxx_try_compile "$LINENO"; then :
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2317 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2319 return test_array [0];
2325 if ac_fn_cxx_try_compile "$LINENO"; then :
2326 ac_hi=$ac_mid; break
2328 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2329 if test $ac_lo -le $ac_mid; then
2333 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2344 static int test_array [1 - 2 * !(($2) < 0)];
2346 return test_array [0];
2352 if ac_fn_cxx_try_compile "$LINENO"; then :
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2361 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2363 return test_array [0];
2369 if ac_fn_cxx_try_compile "$LINENO"; then :
2370 ac_lo=$ac_mid; break
2372 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2373 if test $ac_mid -le $ac_hi; then
2377 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 # Binary search between lo and hi bounds.
2388 while test "x$ac_lo" != "x$ac_hi"; do
2389 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2396 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2398 return test_array [0];
2404 if ac_fn_cxx_try_compile "$LINENO"; then :
2407 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2412 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2419 static long int longval () { return $2; }
2420 static unsigned long int ulongval () { return $2; }
2427 FILE *f = fopen ("conftest.val", "w");
2432 long int i = longval ();
2435 fprintf (f, "%ld", i);
2439 unsigned long int i = ulongval ();
2442 fprintf (f, "%lu", i);
2444 /* Do not output a trailing newline, as this causes \r\n confusion
2445 on some platforms. */
2446 return ferror (f) || fclose (f) != 0;
2452 if ac_fn_cxx_try_run "$LINENO"; then :
2453 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2458 conftest.$ac_objext conftest.beam conftest.$ac_ext
2462 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2463 as_fn_set_status $ac_retval
2465 } # ac_fn_cxx_compute_int
2467 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2468 # ---------------------------------------------
2469 # Tests whether TYPE exists after having included INCLUDES, setting cache
2470 # variable VAR accordingly.
2471 ac_fn_cxx_check_type ()
2473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2475 $as_echo_n "checking for $2... " >&6; }
2476 if eval \${$3+:} false; then :
2477 $as_echo_n "(cached) " >&6
2480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h. */
2492 if ac_fn_cxx_try_compile "$LINENO"; then :
2493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h. */
2505 if ac_fn_cxx_try_compile "$LINENO"; then :
2510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2516 $as_echo "$ac_res" >&6; }
2517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2519 } # ac_fn_cxx_check_type
2521 # ac_fn_c_find_intX_t LINENO BITS VAR
2522 # -----------------------------------
2523 # Finds a signed integer type with width BITS, setting cache variable VAR
2525 ac_fn_c_find_intX_t ()
2527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2529 $as_echo_n "checking for int$2_t... " >&6; }
2530 if eval \${$3+:} false; then :
2531 $as_echo_n "(cached) " >&6
2534 # Order is important - never check a type that is potentially smaller
2535 # than half of the expected target width.
2536 for ac_type in int$2_t 'int' 'long int' \
2537 'long long int' 'short int' 'signed char'; do
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2540 $ac_includes_default
2541 enum { N = $2 / 2 - 1 };
2545 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2547 return test_array [0];
2553 if ac_fn_cxx_try_compile "$LINENO"; then :
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 $ac_includes_default
2557 enum { N = $2 / 2 - 1 };
2561 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2562 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2564 return test_array [0];
2570 if ac_fn_cxx_try_compile "$LINENO"; then :
2577 eval "$3=\$ac_type" ;;
2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 if eval test \"x\$"$3"\" = x"no"; then :
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2592 $as_echo "$ac_res" >&6; }
2593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2595 } # ac_fn_c_find_intX_t
2597 # ac_fn_cxx_try_link LINENO
2598 # -------------------------
2599 # Try to link conftest.$ac_ext, and return whether this succeeded.
2600 ac_fn_cxx_try_link ()
2602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603 rm -f conftest.$ac_objext conftest$ac_exeext
2604 if { { ac_try="$ac_link"
2606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607 *) ac_try_echo=$ac_try;;
2609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2610 $as_echo "$ac_try_echo"; } >&5
2611 (eval "$ac_link") 2>conftest.err
2613 if test -s conftest.err; then
2614 grep -v '^ *+' conftest.err >conftest.er1
2615 cat conftest.er1 >&5
2616 mv -f conftest.er1 conftest.err
2618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2619 test $ac_status = 0; } && {
2620 test -z "$ac_cxx_werror_flag" ||
2621 test ! -s conftest.err
2622 } && test -s conftest$ac_exeext && {
2623 test "$cross_compiling" = yes ||
2624 test -x conftest$ac_exeext
2628 $as_echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2633 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2634 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2635 # interfere with the next link command; also delete a directory that is
2636 # left behind by Apple's compiler. We do this before executing the actions.
2637 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2639 as_fn_set_status $ac_retval
2641 } # ac_fn_cxx_try_link
2643 # ac_fn_c_find_uintX_t LINENO BITS VAR
2644 # ------------------------------------
2645 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2647 ac_fn_c_find_uintX_t ()
2649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2651 $as_echo_n "checking for uint$2_t... " >&6; }
2652 if eval \${$3+:} false; then :
2653 $as_echo_n "(cached) " >&6
2656 # Order is important - never check a type that is potentially smaller
2657 # than half of the expected target width.
2658 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2659 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2662 $ac_includes_default
2666 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2668 return test_array [0];
2674 if ac_fn_cxx_try_compile "$LINENO"; then :
2679 eval "$3=\$ac_type" ;;
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 if eval test \"x\$"$3"\" = x"no"; then :
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692 $as_echo "$ac_res" >&6; }
2693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2695 } # ac_fn_c_find_uintX_t
2697 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2698 # ------------------------------------------------
2699 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2700 ac_fn_cxx_check_header_preproc ()
2702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2704 $as_echo_n "checking for $2... " >&6; }
2705 if eval \${$3+:} false; then :
2706 $as_echo_n "(cached) " >&6
2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709 /* end confdefs.h. */
2712 if ac_fn_cxx_try_cpp "$LINENO"; then :
2717 rm -f conftest.err conftest.i conftest.$ac_ext
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2721 $as_echo "$ac_res" >&6; }
2722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2724 } # ac_fn_cxx_check_header_preproc
2726 # ac_fn_cxx_check_func LINENO FUNC VAR
2727 # ------------------------------------
2728 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2729 ac_fn_cxx_check_func ()
2731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2733 $as_echo_n "checking for $2... " >&6; }
2734 if eval \${$3+:} false; then :
2735 $as_echo_n "(cached) " >&6
2737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h. */
2739 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2741 #define $2 innocuous_$2
2743 /* System header to define __stub macros and hopefully few prototypes,
2744 which can conflict with char $2 (); below.
2745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2746 <limits.h> exists even on freestanding compilers. */
2749 # include <limits.h>
2751 # include <assert.h>
2756 /* Override any GCC internal prototype to avoid an error.
2757 Use char because int might match the return type of a GCC
2758 builtin and then its argument prototype would still apply. */
2763 /* The GNU C library defines this for functions which it implements
2764 to always fail with ENOSYS. Some functions are actually named
2765 something starting with __ and the normal name is an alias. */
2766 #if defined __stub_$2 || defined __stub___$2
2778 if ac_fn_cxx_try_link "$LINENO"; then :
2783 rm -f core conftest.err conftest.$ac_objext \
2784 conftest$ac_exeext conftest.$ac_ext
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2788 $as_echo "$ac_res" >&6; }
2789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2791 } # ac_fn_cxx_check_func
2793 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2794 # -----------------------------------------------
2795 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2797 ac_fn_cxx_check_decl ()
2799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2800 as_decl_name=`echo $2|sed 's/ *(.*//'`
2801 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2803 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2804 if eval \${$3+:} false; then :
2805 $as_echo_n "(cached) " >&6
2807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2808 /* end confdefs.h. */
2813 #ifndef $as_decl_name
2815 (void) $as_decl_use;
2817 (void) $as_decl_name;
2825 if ac_fn_cxx_try_compile "$LINENO"; then :
2830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2834 $as_echo "$ac_res" >&6; }
2835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2837 } # ac_fn_cxx_check_decl
2839 # ac_fn_c_try_link LINENO
2840 # -----------------------
2841 # Try to link conftest.$ac_ext, and return whether this succeeded.
2844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2845 rm -f conftest.$ac_objext conftest$ac_exeext
2846 if { { ac_try="$ac_link"
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2852 $as_echo "$ac_try_echo"; } >&5
2853 (eval "$ac_link") 2>conftest.err
2855 if test -s conftest.err; then
2856 grep -v '^ *+' conftest.err >conftest.er1
2857 cat conftest.er1 >&5
2858 mv -f conftest.er1 conftest.err
2860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2861 test $ac_status = 0; } && {
2862 test -z "$ac_c_werror_flag" ||
2863 test ! -s conftest.err
2864 } && test -s conftest$ac_exeext && {
2865 test "$cross_compiling" = yes ||
2866 test -x conftest$ac_exeext
2870 $as_echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2875 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2876 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2877 # interfere with the next link command; also delete a directory that is
2878 # left behind by Apple's compiler. We do this before executing the actions.
2879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2881 as_fn_set_status $ac_retval
2883 } # ac_fn_c_try_link
2885 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2886 # ----------------------------------------------
2887 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2888 ac_fn_c_check_header_preproc ()
2890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2892 $as_echo_n "checking for $2... " >&6; }
2893 if eval \${$3+:} false; then :
2894 $as_echo_n "(cached) " >&6
2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897 /* end confdefs.h. */
2900 if ac_fn_c_try_cpp "$LINENO"; then :
2905 rm -f conftest.err conftest.i conftest.$ac_ext
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2909 $as_echo "$ac_res" >&6; }
2910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2912 } # ac_fn_c_check_header_preproc
2914 # ac_fn_c_check_func LINENO FUNC VAR
2915 # ----------------------------------
2916 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2917 ac_fn_c_check_func ()
2919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2921 $as_echo_n "checking for $2... " >&6; }
2922 if eval \${$3+:} false; then :
2923 $as_echo_n "(cached) " >&6
2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926 /* end confdefs.h. */
2927 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2929 #define $2 innocuous_$2
2931 /* System header to define __stub macros and hopefully few prototypes,
2932 which can conflict with char $2 (); below.
2933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2934 <limits.h> exists even on freestanding compilers. */
2937 # include <limits.h>
2939 # include <assert.h>
2944 /* Override any GCC internal prototype to avoid an error.
2945 Use char because int might match the return type of a GCC
2946 builtin and then its argument prototype would still apply. */
2951 /* The GNU C library defines this for functions which it implements
2952 to always fail with ENOSYS. Some functions are actually named
2953 something starting with __ and the normal name is an alias. */
2954 #if defined __stub_$2 || defined __stub___$2
2966 if ac_fn_c_try_link "$LINENO"; then :
2971 rm -f core conftest.err conftest.$ac_objext \
2972 conftest$ac_exeext conftest.$ac_ext
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2976 $as_echo "$ac_res" >&6; }
2977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2979 } # ac_fn_c_check_func
2980 cat >config.log <<_ACEOF
2981 This file contains any messages produced by compilers while
2982 running configure, to aid debugging if configure makes a mistake.
2984 It was created by $as_me, which was
2985 generated by GNU Autoconf 2.69. Invocation command line was
2997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3009 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 test -z "$as_dir" && as_dir=.
3021 $as_echo "PATH: $as_dir"
3037 # Keep a trace of the command line.
3038 # Strip out --no-create and --no-recursion so they do not pile up.
3039 # Strip out --silent because we don't want to record it for future runs.
3040 # Also quote any args containing shell meta-characters.
3041 # Make two passes to allow for proper duplicate-argument suppression.
3045 ac_must_keep_next=false
3051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3053 | -silent | --silent | --silen | --sile | --sil)
3056 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3061 as_fn_append ac_configure_args1 " '$ac_arg'"
3062 if test $ac_must_keep_next = true; then
3063 ac_must_keep_next=false # Got value, back to normal.
3066 *=* | --config-cache | -C | -disable-* | --disable-* \
3067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3069 | -with-* | --with-* | -without-* | --without-* | --x)
3070 case "$ac_configure_args0 " in
3071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3074 -* ) ac_must_keep_next=true ;;
3077 as_fn_append ac_configure_args " '$ac_arg'"
3082 { ac_configure_args0=; unset ac_configure_args0;}
3083 { ac_configure_args1=; unset ac_configure_args1;}
3085 # When interrupted or exit'd, cleanup temporary files, and complete
3086 # config.log. We remove comments because anyway the quotes in there
3087 # would cause problems or look ugly.
3088 # WARNING: Use '\'' to represent an apostrophe within the trap.
3089 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3090 trap 'exit_status=$?
3091 # Save into config.log some information that might help in debugging.
3095 $as_echo "## ---------------- ##
3096 ## Cache variables. ##
3097 ## ---------------- ##"
3099 # The following way of writing the cache mishandles newlines in values,
3101 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3102 eval ac_val=\$$ac_var
3106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3107 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3110 _ | IFS | as_nl) ;; #(
3111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3112 *) { eval $ac_var=; unset $ac_var;} ;;
3117 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3118 *${as_nl}ac_space=\ *)
3120 "s/'\''/'\''\\\\'\'''\''/g;
3121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3131 $as_echo "## ----------------- ##
3132 ## Output variables. ##
3133 ## ----------------- ##"
3135 for ac_var in $ac_subst_vars
3137 eval ac_val=\$$ac_var
3139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3141 $as_echo "$ac_var='\''$ac_val'\''"
3145 if test -n "$ac_subst_files"; then
3146 $as_echo "## ------------------- ##
3147 ## File substitutions. ##
3148 ## ------------------- ##"
3150 for ac_var in $ac_subst_files
3152 eval ac_val=\$$ac_var
3154 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3156 $as_echo "$ac_var='\''$ac_val'\''"
3161 if test -s confdefs.h; then
3162 $as_echo "## ----------- ##
3169 test "$ac_signal" != 0 &&
3170 $as_echo "$as_me: caught signal $ac_signal"
3171 $as_echo "$as_me: exit $exit_status"
3173 rm -f core *.core core.conftest.* &&
3174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3177 for ac_signal in 1 2 13 15; do
3178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3183 rm -f -r conftest* confdefs.h
3185 $as_echo "/* confdefs.h */" > confdefs.h
3187 # Predefined preprocessor variables.
3189 cat >>confdefs.h <<_ACEOF
3190 #define PACKAGE_NAME "$PACKAGE_NAME"
3193 cat >>confdefs.h <<_ACEOF
3194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3197 cat >>confdefs.h <<_ACEOF
3198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3201 cat >>confdefs.h <<_ACEOF
3202 #define PACKAGE_STRING "$PACKAGE_STRING"
3205 cat >>confdefs.h <<_ACEOF
3206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3209 cat >>confdefs.h <<_ACEOF
3210 #define PACKAGE_URL "$PACKAGE_URL"
3214 # Let the site file select an alternate cache file if it wants to.
3215 # Prefer an explicitly selected file to automatically selected ones.
3218 if test -n "$CONFIG_SITE"; then
3219 # We do not want a PATH search for config.site.
3220 case $CONFIG_SITE in #((
3221 -*) ac_site_file1=./$CONFIG_SITE;;
3222 */*) ac_site_file1=$CONFIG_SITE;;
3223 *) ac_site_file1=./$CONFIG_SITE;;
3225 elif test "x$prefix" != xNONE; then
3226 ac_site_file1=$prefix/share/config.site
3227 ac_site_file2=$prefix/etc/config.site
3229 ac_site_file1=$ac_default_prefix/share/config.site
3230 ac_site_file2=$ac_default_prefix/etc/config.site
3232 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3234 test "x$ac_site_file" = xNONE && continue
3235 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3237 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3238 sed 's/^/| /' "$ac_site_file" >&5
3240 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3242 as_fn_error $? "failed to load site script $ac_site_file
3243 See \`config.log' for more details" "$LINENO" 5; }
3247 if test -r "$cache_file"; then
3248 # Some versions of bash will fail to source /dev/null (special files
3249 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3250 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3252 $as_echo "$as_me: loading cache $cache_file" >&6;}
3254 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3255 *) . "./$cache_file";;
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3260 $as_echo "$as_me: creating cache $cache_file" >&6;}
3264 # Check that the precious variables saved in the cache have kept the same
3266 ac_cache_corrupted=false
3267 for ac_var in $ac_precious_vars; do
3268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3269 eval ac_new_set=\$ac_env_${ac_var}_set
3270 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3271 eval ac_new_val=\$ac_env_${ac_var}_value
3272 case $ac_old_set,$ac_new_set in
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3275 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3276 ac_cache_corrupted=: ;;
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3279 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3280 ac_cache_corrupted=: ;;
3283 if test "x$ac_old_val" != "x$ac_new_val"; then
3284 # differences in whitespace do not lead to failure.
3285 ac_old_val_w=`echo x $ac_old_val`
3286 ac_new_val_w=`echo x $ac_new_val`
3287 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3289 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3290 ac_cache_corrupted=:
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3293 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3294 eval $ac_var=\$ac_old_val
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3297 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3299 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3302 # Pass precious variables to config.status.
3303 if test "$ac_new_set" = set; then
3305 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3306 *) ac_arg=$ac_var=$ac_new_val ;;
3308 case " $ac_configure_args " in
3309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3310 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3314 if $ac_cache_corrupted; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3318 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3319 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3321 ## -------------------- ##
3322 ## Main body of script. ##
3323 ## -------------------- ##
3326 ac_cpp='$CPP $CPPFLAGS'
3327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3336 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3339 gcc_version=`cat $srcdir/BASE-VER`
3341 # Determine the host, build, and target systems
3343 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3344 if test -f "$ac_dir/install-sh"; then
3346 ac_install_sh="$ac_aux_dir/install-sh -c"
3348 elif test -f "$ac_dir/install.sh"; then
3350 ac_install_sh="$ac_aux_dir/install.sh -c"
3352 elif test -f "$ac_dir/shtool"; then
3354 ac_install_sh="$ac_aux_dir/shtool install -c"
3358 if test -z "$ac_aux_dir"; then
3359 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3362 # These three variables are undocumented and unsupported,
3363 # and are intended to be withdrawn in a future Autoconf release.
3364 # They can cause serious problems if a builder's source tree is in a directory
3365 # whose full name contains unusual characters.
3366 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3367 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3368 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3371 # Make sure we can run config.sub.
3372 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3373 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3376 $as_echo_n "checking build system type... " >&6; }
3377 if ${ac_cv_build+:} false; then :
3378 $as_echo_n "(cached) " >&6
3380 ac_build_alias=$build_alias
3381 test "x$ac_build_alias" = x &&
3382 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3383 test "x$ac_build_alias" = x &&
3384 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3385 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3386 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3390 $as_echo "$ac_cv_build" >&6; }
3391 case $ac_cv_build in
3393 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3396 ac_save_IFS=$IFS; IFS='-'
3402 # Remember, the first character of IFS is used to create $*,
3403 # except with old shells:
3406 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3410 $as_echo_n "checking host system type... " >&6; }
3411 if ${ac_cv_host+:} false; then :
3412 $as_echo_n "(cached) " >&6
3414 if test "x$host_alias" = x; then
3415 ac_cv_host=$ac_cv_build
3417 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3418 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3423 $as_echo "$ac_cv_host" >&6; }
3426 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3429 ac_save_IFS=$IFS; IFS='-'
3435 # Remember, the first character of IFS is used to create $*,
3436 # except with old shells:
3439 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3443 $as_echo_n "checking target system type... " >&6; }
3444 if ${ac_cv_target+:} false; then :
3445 $as_echo_n "(cached) " >&6
3447 if test "x$target_alias" = x; then
3448 ac_cv_target=$ac_cv_host
3450 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3451 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3456 $as_echo "$ac_cv_target" >&6; }
3457 case $ac_cv_target in
3459 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3461 target=$ac_cv_target
3462 ac_save_IFS=$IFS; IFS='-'
3468 # Remember, the first character of IFS is used to create $*,
3469 # except with old shells:
3472 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3475 # The aliases save the names the user supplied, while $host etc.
3476 # will get canonicalized.
3477 test -n "$target_alias" &&
3478 test "$program_prefix$program_suffix$program_transform_name" = \
3480 program_prefix=${target_alias}-
3482 # Determine the noncanonical host name, for Ada.
3483 case ${build_alias} in
3484 "") build_noncanonical=${build} ;;
3485 *) build_noncanonical=${build_alias} ;;
3488 case ${host_alias} in
3489 "") host_noncanonical=${build_noncanonical} ;;
3490 *) host_noncanonical=${host_alias} ;;
3496 # Determine the noncanonical target name, for directory use.
3497 case ${target_alias} in
3498 "") target_noncanonical=${host_noncanonical} ;;
3499 *) target_noncanonical=${target_alias} ;;
3505 # Used for constructing correct paths for offload compilers.
3506 real_target_noncanonical=${target_noncanonical}
3509 # Determine the target- and build-specific subdirectories
3511 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3512 # have matching libraries, they should use host libraries: Makefile.tpl
3513 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3514 # However, they still use the build modules, because the corresponding
3515 # host modules (e.g. bison) are only built for the host when bootstrap
3517 # - build_subdir is where we find build modules, and never changes.
3518 # - build_libsubdir is where we find build libraries, and can be overridden.
3520 # Prefix 'build-' so this never conflicts with target_subdir.
3521 build_subdir="build-${build_noncanonical}"
3523 # Check whether --with-build-libsubdir was given.
3524 if test "${with_build_libsubdir+set}" = set; then :
3525 withval=$with_build_libsubdir; build_libsubdir="$withval"
3527 build_libsubdir="$build_subdir"
3530 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3531 if ( test $srcdir = . && test -d gcc ) \
3532 || test -d $srcdir/../host-${host_noncanonical}; then
3533 host_subdir="host-${host_noncanonical}"
3538 target_subdir=${target_noncanonical}
3541 # Set program_transform_name
3542 test "$program_prefix" != NONE &&
3543 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3544 # Use a double $ so make ignores it.
3545 test "$program_suffix" != NONE &&
3546 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3547 # Double any \ or $.
3548 # By default was `s,x,x', remove it if useless.
3549 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3550 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3553 # Check for bogus environment variables.
3554 # Test if LIBRARY_PATH contains the notation for the current directory
3555 # since this would lead to problems installing/building glibc.
3556 # LIBRARY_PATH contains the current directory if one of the following
3558 # - one of the terminals (":" and ";") is the first or last sign
3559 # - two terminals occur directly after each other
3560 # - the path contains an element with a dot in it
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3562 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3563 case ${LIBRARY_PATH} in
3564 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3565 library_path_setting="contains current directory"
3568 library_path_setting="ok"
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3572 $as_echo "$library_path_setting" >&6; }
3573 if test "$library_path_setting" != "ok"; then
3575 *** LIBRARY_PATH shouldn't contain the current directory when
3576 *** building gcc. Please change the environment variable
3577 *** and run configure again." "$LINENO" 5
3580 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3581 # since this would lead to problems installing/building glibc.
3582 # GCC_EXEC_PREFIX contains the current directory if one of the following
3584 # - one of the terminals (":" and ";") is the first or last sign
3585 # - two terminals occur directly after each other
3586 # - the path contains an element with a dot in it
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3588 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3589 case ${GCC_EXEC_PREFIX} in
3590 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3591 gcc_exec_prefix_setting="contains current directory"
3594 gcc_exec_prefix_setting="ok"
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3598 $as_echo "$gcc_exec_prefix_setting" >&6; }
3599 if test "$gcc_exec_prefix_setting" != "ok"; then
3601 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3602 *** building gcc. Please change the environment variable
3603 *** and run configure again." "$LINENO" 5
3610 # Specify the local prefix
3613 # Check whether --with-local-prefix was given.
3614 if test "${with_local_prefix+set}" = set; then :
3615 withval=$with_local_prefix; case "${withval}" in
3616 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3618 *) local_prefix=$with_local_prefix ;;
3623 # Default local prefix if it is empty
3624 if test x$local_prefix = x; then
3625 local_prefix=/usr/local
3629 # Check whether --with-native-system-header-dir was given.
3630 if test "${with_native_system_header_dir+set}" = set; then :
3631 withval=$with_native_system_header_dir;
3632 case ${with_native_system_header_dir} in
3633 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3634 /* | [A-Za-z]:[\\/]*) ;;
3635 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3637 configured_native_system_header_dir="${withval}"
3640 configured_native_system_header_dir=
3645 # Check whether --with-build-sysroot was given.
3646 if test "${with_build_sysroot+set}" = set; then :
3647 withval=$with_build_sysroot; if test x"$withval" != x ; then
3648 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3651 SYSROOT_CFLAGS_FOR_TARGET=
3656 if test "x$prefix" = xNONE; then
3657 test_prefix=/usr/local
3661 if test "x$exec_prefix" = xNONE; then
3662 test_exec_prefix=$test_prefix
3664 test_exec_prefix=$exec_prefix
3668 # Check whether --with-sysroot was given.
3669 if test "${with_sysroot+set}" = set; then :
3670 withval=$with_sysroot;
3671 case ${with_sysroot} in
3673 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3675 case ${with_sysroot} in
3676 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3677 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3680 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3681 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3683 case ${TARGET_SYSTEM_ROOT} in
3684 "${test_prefix}"|"${test_prefix}/"*|\
3685 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3686 '${prefix}'|'${prefix}/'*|\
3687 '${exec_prefix}'|'${exec_prefix}/'*)
3688 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3689 TARGET_SYSTEM_ROOT_DEFINE="$t"
3696 TARGET_SYSTEM_ROOT_DEFINE=
3697 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3705 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3706 # passed in by the toplevel make and thus we'd get different behavior
3707 # depending on where we built the sources.
3708 gcc_gxx_include_dir=
3709 # Specify the g++ header file directory
3711 # Check whether --with-gxx-include-dir was given.
3712 if test "${with_gxx_include_dir+set}" = set; then :
3713 withval=$with_gxx_include_dir; case "${withval}" in
3714 yes) as_fn_error $? "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3716 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3721 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3722 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3723 # relative to the sysroot.
3724 gcc_gxx_include_dir_add_sysroot=0
3726 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3727 if test x${gcc_gxx_include_dir} = x; then
3728 if test x${enable_version_specific_runtime_libs} = xyes; then
3729 gcc_gxx_include_dir='${libsubdir}/include/c++'
3731 libstdcxx_incdir='include/c++/$(version)'
3732 if test x$host != x$target; then
3733 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3735 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3737 elif test "${with_sysroot+set}" = set; then
3738 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3739 if test "${gcc_gxx_without_sysroot}"; then
3740 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3741 gcc_gxx_include_dir_add_sysroot=1
3745 # Configuration for an alternate set of C++ headers.
3746 gcc_gxx_libcxx_include_dir=
3747 # Specify the alternate g++ header file directory
3749 # Check whether --with-gxx-libcxx-include-dir was given.
3750 if test "${with_gxx_libcxx_include_dir+set}" = set; then :
3751 withval=$with_gxx_libcxx_include_dir; case "${withval}" in
3752 yes) as_fn_error $? "bad value ${withval} given for libc++ include directory" "$LINENO" 5 ;;
3754 *) gcc_gxx_libcxx_include_dir=$with_gxx_libcxx_include_dir ;;
3759 # If both --with-sysroot and --with-gxx-libcxx-include-dir are passed, we
3760 # check to see if the latter starts with the former and, upon success, compute
3761 # gcc_gxx_libcxx_include_dir as relative to the sysroot.
3762 gcc_gxx_libcxx_include_dir_add_sysroot=0
3764 if test x${gcc_gxx_libcxx_include_dir} != x; then
3766 $as_echo "#define ENABLE_STDLIB_OPTION 1" >>confdefs.h
3769 $as_echo "#define ENABLE_STDLIB_OPTION 0" >>confdefs.h
3772 # ??? This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3773 if test x${gcc_gxx_libcxx_include_dir} = x; then
3774 if test x${enable_version_specific_runtime_libs} = xyes; then
3775 gcc_gxx_libcxx_include_dir='${libsubdir}/libc++_include/c++/v1'
3777 libcxx_incdir='libc++_include/c++/$(version)/v1'
3778 if test x$host != x$target; then
3779 libcxx_incdir="$target_alias/$libcxx_incdir"
3781 gcc_gxx_libcxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libcxx_incdir"
3783 elif test "${with_sysroot+set}" = set; then
3784 gcc_gxx_libcxx_without_sysroot=`expr "${gcc_gxx_libcxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3785 if test "${gcc_gxx_libcxx_without_sysroot}"; then
3786 gcc_gxx_libcxx_include_dir="${gcc_gxx_libcxx_without_sysroot}"
3787 gcc_gxx_libcxx_include_dir_add_sysroot=1
3792 # Check whether --with-cpp_install_dir was given.
3793 if test "${with_cpp_install_dir+set}" = set; then :
3794 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3795 as_fn_error $? "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3796 elif test x$withval != xno; then
3797 cpp_install_dir=$withval
3802 # We would like to our source tree to be readonly. However when releases or
3803 # pre-releases are generated, the flex/bison generated files as well as the
3804 # various formats of manuals need to be included along with the rest of the
3805 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3809 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3810 # Check whether --enable-generated-files-in-srcdir was given.
3811 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3812 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3814 generated_files_in_srcdir=no
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3819 $as_echo "$generated_files_in_srcdir" >&6; }
3821 if test "$generated_files_in_srcdir" = "yes"; then
3828 # -------------------
3829 # Find default linker
3830 # -------------------
3834 # Check whether --with-gnu-ld was given.
3835 if test "${with_gnu_ld+set}" = set; then :
3836 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3844 ld64_flag=yes # Darwin can only use a ld64-compatible linker.
3845 dsymutil_flag=yes # Darwin uses dsymutil to link debug.
3853 # With pre-defined ld
3855 # Check whether --with-ld was given.
3856 if test "${with_ld+set}" = set; then :
3857 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3860 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3861 if test ! -x "$DEFAULT_LINKER"; then
3862 as_fn_error $? "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3863 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3865 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3869 cat >>confdefs.h <<_ACEOF
3870 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3876 $as_echo_n "checking whether a default linker was specified... " >&6; }
3877 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3878 if test x"$gnu_ld_flag" = x"no"; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3880 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3883 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; }
3890 # With demangler in GNU ld
3892 # Check whether --with-demangler-in-ld was given.
3893 if test "${with_demangler_in_ld+set}" = set; then :
3894 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3900 # Allow the user to specify a dsymutil executable (used on Darwin only, so far)
3902 # Check whether --with-dsymutil was given.
3903 if test "${with_dsymutil+set}" = set; then :
3904 withval=$with_dsymutil; DEFAULT_DSYMUTIL="$with_dsymutil"
3909 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3910 if test ! -x "$DEFAULT_DSYMUTIL"; then
3911 as_fn_error $? "cannot execute: $DEFAULT_DSYMUTIL: check --with-dsymutil or env. var. DEFAULT_DSYMUTIL" "$LINENO" 5
3913 if dsymutil_vers=`$DEFAULT_DSYMUTIL -v /dev/null 2>&1`; then
3918 cat >>confdefs.h <<_ACEOF
3919 #define DEFAULT_DSYMUTIL "$DEFAULT_DSYMUTIL"
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default dsymutil was specified" >&5
3925 $as_echo_n "checking whether a default dsymutil was specified... " >&6; }
3926 if test x"${DEFAULT_DSYMUTIL+set}" = x"set"; then
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_DSYMUTIL)" >&5
3928 $as_echo "yes ($DEFAULT_DSYMUTIL)" >&6; }
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 $as_echo "no" >&6; }
3934 # ----------------------
3935 # Find default assembler
3936 # ----------------------
3940 # Check whether --with-gnu-as was given.
3941 if test "${with_gnu_as+set}" = set; then :
3942 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3949 # Check whether --with-as was given.
3950 if test "${with_as+set}" = set; then :
3951 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3954 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3955 if test ! -x "$DEFAULT_ASSEMBLER"; then
3956 as_fn_error $? "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3957 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3961 cat >>confdefs.h <<_ACEOF
3962 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3968 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3969 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3970 if test x"$gas_flag" = x"no"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3972 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3975 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3986 # If a non-executable a.out is present (e.g. created by GNU as above even if
3987 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3988 # file, even when creating an executable, so an execution test fails.
3989 # Remove possible default executable files to avoid this.
3991 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3992 # Autoconf includes it.
3993 rm -f a.out a.exe b.out
3995 # Find the native compiler
3997 ac_cpp='$CPP $CPPFLAGS'
3998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4001 if test -n "$ac_tool_prefix"; then
4002 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4003 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005 $as_echo_n "checking for $ac_word... " >&6; }
4006 if ${ac_cv_prog_CC+:} false; then :
4007 $as_echo_n "(cached) " >&6
4009 if test -n "$CC"; then
4010 ac_cv_prog_CC="$CC" # Let the user override the test.
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 if test -n "$CC"; then
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4032 $as_echo "$CC" >&6; }
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 $as_echo "no" >&6; }
4040 if test -z "$ac_cv_prog_CC"; then
4042 # Extract the first word of "gcc", so it can be a program name with args.
4043 set dummy gcc; ac_word=$2
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4045 $as_echo_n "checking for $ac_word... " >&6; }
4046 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4047 $as_echo_n "(cached) " >&6
4049 if test -n "$ac_ct_CC"; then
4050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 test -z "$as_dir" && as_dir=.
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059 ac_cv_prog_ac_ct_CC="gcc"
4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4070 if test -n "$ac_ct_CC"; then
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4072 $as_echo "$ac_ct_CC" >&6; }
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075 $as_echo "no" >&6; }
4078 if test "x$ac_ct_CC" = x; then
4081 case $cross_compiling:$ac_tool_warned in
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4085 ac_tool_warned=yes ;;
4093 if test -z "$CC"; then
4094 if test -n "$ac_tool_prefix"; then
4095 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4096 set dummy ${ac_tool_prefix}cc; ac_word=$2
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 $as_echo_n "checking for $ac_word... " >&6; }
4099 if ${ac_cv_prog_CC+:} false; then :
4100 $as_echo_n "(cached) " >&6
4102 if test -n "$CC"; then
4103 ac_cv_prog_CC="$CC" # Let the user override the test.
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4112 ac_cv_prog_CC="${ac_tool_prefix}cc"
4113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 if test -n "$CC"; then
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4125 $as_echo "$CC" >&6; }
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4134 if test -z "$CC"; then
4135 # Extract the first word of "cc", so it can be a program name with args.
4136 set dummy cc; ac_word=$2
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138 $as_echo_n "checking for $ac_word... " >&6; }
4139 if ${ac_cv_prog_CC+:} false; then :
4140 $as_echo_n "(cached) " >&6
4142 if test -n "$CC"; then
4143 ac_cv_prog_CC="$CC" # Let the user override the test.
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4154 ac_prog_rejected=yes
4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 if test $ac_prog_rejected = yes; then
4166 # We found a bogon in the path, so make sure we never use it.
4167 set dummy $ac_cv_prog_CC
4169 if test $# != 0; then
4170 # We chose a different compiler from the bogus one.
4171 # However, it has the same basename, so the bogon will be chosen
4172 # first if we set CC to just the basename; use the full file name.
4174 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
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; }
4190 if test -z "$CC"; then
4191 if test -n "$ac_tool_prefix"; then
4192 for ac_prog in cl.exe
4194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if ${ac_cv_prog_CC+:} false; then :
4199 $as_echo_n "(cached) " >&6
4201 if test -n "$CC"; then
4202 ac_cv_prog_CC="$CC" # Let the user override the test.
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4211 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 if test -n "$CC"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4224 $as_echo "$CC" >&6; }
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4231 test -n "$CC" && break
4234 if test -z "$CC"; then
4236 for ac_prog in cl.exe
4238 # Extract the first word of "$ac_prog", so it can be a program name with args.
4239 set dummy $ac_prog; ac_word=$2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4243 $as_echo_n "(cached) " >&6
4245 if test -n "$ac_ct_CC"; then
4246 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4255 ac_cv_prog_ac_ct_CC="$ac_prog"
4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4266 if test -n "$ac_ct_CC"; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4268 $as_echo "$ac_ct_CC" >&6; }
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4275 test -n "$ac_ct_CC" && break
4278 if test "x$ac_ct_CC" = x; then
4281 case $cross_compiling:$ac_tool_warned in
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4285 ac_tool_warned=yes ;;
4294 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4296 as_fn_error $? "no acceptable C compiler found in \$PATH
4297 See \`config.log' for more details" "$LINENO" 5; }
4299 # Provide some information about the compiler.
4300 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4303 for ac_option in --version -v -V -qversion; do
4304 { { ac_try="$ac_compiler $ac_option >&5"
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310 $as_echo "$ac_try_echo"; } >&5
4311 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4313 if test -s conftest.err; then
4315 ... rest of stderr output deleted ...
4316 10q' conftest.err >conftest.er1
4317 cat conftest.er1 >&5
4319 rm -f conftest.er1 conftest.err
4320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4321 test $ac_status = 0; }
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4335 ac_clean_files_save=$ac_clean_files
4336 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4337 # Try to create an executable without -o first, disregard a.out.
4338 # It will help us diagnose broken compilers, and finding out an intuition
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4341 $as_echo_n "checking whether the C compiler works... " >&6; }
4342 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4344 # The possible output files:
4345 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4348 for ac_file in $ac_files
4351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4352 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4357 if { { ac_try="$ac_link_default"
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4363 $as_echo "$ac_try_echo"; } >&5
4364 (eval "$ac_link_default") 2>&5
4366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4367 test $ac_status = 0; }; then :
4368 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4369 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4370 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4371 # so that the user can short-circuit this test for compilers unknown to
4373 for ac_file in $ac_files ''
4375 test -f "$ac_file" || continue
4377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4380 # We found the default executable, but exeext='' is most
4384 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4386 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4388 # We set ac_cv_exeext here because the later test for it is not
4389 # safe: cross compilers may not add the suffix if given an `-o'
4390 # argument, so we may need to know it at that point already.
4391 # Even if this section looks crufty: it has the advantage of
4398 test "$ac_cv_exeext" = no && ac_cv_exeext=
4403 if test -z "$ac_file"; then :
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4405 $as_echo "no" >&6; }
4406 $as_echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4411 as_fn_error 77 "C compiler cannot create executables
4412 See \`config.log' for more details" "$LINENO" 5; }
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4415 $as_echo "yes" >&6; }
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4418 $as_echo_n "checking for C compiler default output file name... " >&6; }
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4420 $as_echo "$ac_file" >&6; }
4421 ac_exeext=$ac_cv_exeext
4423 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4424 ac_clean_files=$ac_clean_files_save
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4426 $as_echo_n "checking for suffix of executables... " >&6; }
4427 if { { ac_try="$ac_link"
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4433 $as_echo "$ac_try_echo"; } >&5
4434 (eval "$ac_link") 2>&5
4436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4437 test $ac_status = 0; }; then :
4438 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4439 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4440 # work properly (i.e., refer to `conftest.exe'), while it won't with
4442 for ac_file in conftest.exe conftest conftest.*; do
4443 test -f "$ac_file" || continue
4445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4446 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4454 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4455 See \`config.log' for more details" "$LINENO" 5; }
4457 rm -f conftest conftest$ac_cv_exeext
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4459 $as_echo "$ac_cv_exeext" >&6; }
4461 rm -f conftest.$ac_ext
4462 EXEEXT=$ac_cv_exeext
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4470 FILE *f = fopen ("conftest.out", "w");
4471 return ferror (f) || fclose (f) != 0;
4477 ac_clean_files="$ac_clean_files conftest.out"
4478 # Check that the compiler produces executables we can run. If not, either
4479 # the compiler is broken, or we cross compile.
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4481 $as_echo_n "checking whether we are cross compiling... " >&6; }
4482 if test "$cross_compiling" != yes; then
4483 { { ac_try="$ac_link"
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490 (eval "$ac_link") 2>&5
4492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493 test $ac_status = 0; }
4494 if { ac_try='./conftest$ac_cv_exeext'
4495 { { case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500 $as_echo "$ac_try_echo"; } >&5
4501 (eval "$ac_try") 2>&5
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }; }; then
4507 if test "$cross_compiling" = maybe; then
4510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4512 as_fn_error $? "cannot run C compiled programs.
4513 If you meant to cross compile, use \`--host'.
4514 See \`config.log' for more details" "$LINENO" 5; }
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4519 $as_echo "$cross_compiling" >&6; }
4521 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4522 ac_clean_files=$ac_clean_files_save
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4524 $as_echo_n "checking for suffix of object files... " >&6; }
4525 if ${ac_cv_objext+:} false; then :
4526 $as_echo_n "(cached) " >&6
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4539 rm -f conftest.o conftest.obj
4540 if { { ac_try="$ac_compile"
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4546 $as_echo "$ac_try_echo"; } >&5
4547 (eval "$ac_compile") 2>&5
4549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4550 test $ac_status = 0; }; then :
4551 for ac_file in conftest.o conftest.obj conftest.*; do
4552 test -f "$ac_file" || continue;
4554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4555 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4560 $as_echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4565 as_fn_error $? "cannot compute suffix of object files: cannot compile
4566 See \`config.log' for more details" "$LINENO" 5; }
4568 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4571 $as_echo "$ac_cv_objext" >&6; }
4572 OBJEXT=$ac_cv_objext
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4575 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4576 if ${ac_cv_c_compiler_gnu+:} false; then :
4577 $as_echo_n "(cached) " >&6
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4593 if ac_fn_c_try_compile "$LINENO"; then :
4598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4603 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4604 if test $ac_compiler_gnu = yes; then
4609 ac_test_CFLAGS=${CFLAGS+set}
4610 ac_save_CFLAGS=$CFLAGS
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4612 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4613 if ${ac_cv_prog_cc_g+:} false; then :
4614 $as_echo_n "(cached) " >&6
4616 ac_save_c_werror_flag=$ac_c_werror_flag
4617 ac_c_werror_flag=yes
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4631 if ac_fn_c_try_compile "$LINENO"; then :
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4646 if ac_fn_c_try_compile "$LINENO"; then :
4649 ac_c_werror_flag=$ac_save_c_werror_flag
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4662 if ac_fn_c_try_compile "$LINENO"; then :
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 ac_c_werror_flag=$ac_save_c_werror_flag
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4673 $as_echo "$ac_cv_prog_cc_g" >&6; }
4674 if test "$ac_test_CFLAGS" = set; then
4675 CFLAGS=$ac_save_CFLAGS
4676 elif test $ac_cv_prog_cc_g = yes; then
4677 if test "$GCC" = yes; then
4683 if test "$GCC" = yes; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4690 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4691 if ${ac_cv_prog_cc_c89+:} false; then :
4692 $as_echo_n "(cached) " >&6
4694 ac_cv_prog_cc_c89=no
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4701 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4702 struct buf { int x; };
4703 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4704 static char *e (p, i)
4710 static char *f (char * (*g) (char **, int), char **p, ...)
4715 s = g (p, va_arg (v,int));
4720 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4721 function prototypes and stuff, but not '\xHH' hex character constants.
4722 These don't provoke an error unfortunately, instead are silently treated
4723 as 'x'. The following induces an error, until -std is added to get
4724 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4725 array size at least. It's necessary to write '\x00'==0 to get something
4726 that's true only with -std. */
4727 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4729 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4730 inside strings and character constants. */
4732 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4734 int test (int i, double x);
4735 struct s1 {int (*f) (int a);};
4736 struct s2 {int (*f) (double a);};
4737 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4743 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4748 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4749 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4751 CC="$ac_save_CC $ac_arg"
4752 if ac_fn_c_try_compile "$LINENO"; then :
4753 ac_cv_prog_cc_c89=$ac_arg
4755 rm -f core conftest.err conftest.$ac_objext
4756 test "x$ac_cv_prog_cc_c89" != "xno" && break
4758 rm -f conftest.$ac_ext
4763 case "x$ac_cv_prog_cc_c89" in
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4766 $as_echo "none needed" >&6; } ;;
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4769 $as_echo "unsupported" >&6; } ;;
4771 CC="$CC $ac_cv_prog_cc_c89"
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4773 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4775 if test "x$ac_cv_prog_cc_c89" != xno; then :
4780 ac_cpp='$CPP $CPPFLAGS'
4781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4786 ac_cpp='$CXXCPP $CPPFLAGS'
4787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4790 if test -z "$CXX"; then
4791 if test -n "$CCC"; then
4794 if test -n "$ac_tool_prefix"; then
4795 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if ${ac_cv_prog_CXX+:} false; then :
4802 $as_echo_n "(cached) " >&6
4804 if test -n "$CXX"; then
4805 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4814 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 if test -n "$CXX"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4827 $as_echo "$CXX" >&6; }
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4834 test -n "$CXX" && break
4837 if test -z "$CXX"; then
4839 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4841 # Extract the first word of "$ac_prog", so it can be a program name with args.
4842 set dummy $ac_prog; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4846 $as_echo_n "(cached) " >&6
4848 if test -n "$ac_ct_CXX"; then
4849 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858 ac_cv_prog_ac_ct_CXX="$ac_prog"
4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4869 if test -n "$ac_ct_CXX"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4871 $as_echo "$ac_ct_CXX" >&6; }
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4878 test -n "$ac_ct_CXX" && break
4881 if test "x$ac_ct_CXX" = x; then
4884 case $cross_compiling:$ac_tool_warned in
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888 ac_tool_warned=yes ;;
4896 # Provide some information about the compiler.
4897 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4900 for ac_option in --version -v -V -qversion; do
4901 { { ac_try="$ac_compiler $ac_option >&5"
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4907 $as_echo "$ac_try_echo"; } >&5
4908 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4910 if test -s conftest.err; then
4912 ... rest of stderr output deleted ...
4913 10q' conftest.err >conftest.er1
4914 cat conftest.er1 >&5
4916 rm -f conftest.er1 conftest.err
4917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4918 test $ac_status = 0; }
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4922 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4923 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4924 $as_echo_n "(cached) " >&6
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4940 if ac_fn_cxx_try_compile "$LINENO"; then :
4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4950 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4951 if test $ac_compiler_gnu = yes; then
4956 ac_test_CXXFLAGS=${CXXFLAGS+set}
4957 ac_save_CXXFLAGS=$CXXFLAGS
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4959 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4960 if ${ac_cv_prog_cxx_g+:} false; then :
4961 $as_echo_n "(cached) " >&6
4963 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4964 ac_cxx_werror_flag=yes
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4978 if ac_fn_cxx_try_compile "$LINENO"; then :
4979 ac_cv_prog_cxx_g=yes
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4993 if ac_fn_cxx_try_compile "$LINENO"; then :
4996 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5009 if ac_fn_cxx_try_compile "$LINENO"; then :
5010 ac_cv_prog_cxx_g=yes
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5020 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5021 if test "$ac_test_CXXFLAGS" = set; then
5022 CXXFLAGS=$ac_save_CXXFLAGS
5023 elif test $ac_cv_prog_cxx_g = yes; then
5024 if test "$GXX" = yes; then
5030 if test "$GXX" = yes; then
5037 ac_cpp='$CPP $CPPFLAGS'
5038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045 if test -n "$ac_tool_prefix"; then
5046 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5047 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if ${ac_cv_prog_GNATBIND+:} false; then :
5051 $as_echo_n "(cached) " >&6
5053 if test -n "$GNATBIND"; then
5054 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 GNATBIND=$ac_cv_prog_GNATBIND
5074 if test -n "$GNATBIND"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5076 $as_echo "$GNATBIND" >&6; }
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5084 if test -z "$ac_cv_prog_GNATBIND"; then
5085 ac_ct_GNATBIND=$GNATBIND
5086 # Extract the first word of "gnatbind", so it can be a program name with args.
5087 set dummy gnatbind; ac_word=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5091 $as_echo_n "(cached) " >&6
5093 if test -n "$ac_ct_GNATBIND"; then
5094 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5114 if test -n "$ac_ct_GNATBIND"; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5116 $as_echo "$ac_ct_GNATBIND" >&6; }
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5122 if test "x$ac_ct_GNATBIND" = x; then
5125 case $cross_compiling:$ac_tool_warned in
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5129 ac_tool_warned=yes ;;
5131 GNATBIND=$ac_ct_GNATBIND
5134 GNATBIND="$ac_cv_prog_GNATBIND"
5137 if test -n "$ac_tool_prefix"; then
5138 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5139 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_prog_GNATMAKE+:} false; then :
5143 $as_echo_n "(cached) " >&6
5145 if test -n "$GNATMAKE"; then
5146 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 GNATMAKE=$ac_cv_prog_GNATMAKE
5166 if test -n "$GNATMAKE"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5168 $as_echo "$GNATMAKE" >&6; }
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5176 if test -z "$ac_cv_prog_GNATMAKE"; then
5177 ac_ct_GNATMAKE=$GNATMAKE
5178 # Extract the first word of "gnatmake", so it can be a program name with args.
5179 set dummy gnatmake; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5183 $as_echo_n "(cached) " >&6
5185 if test -n "$ac_ct_GNATMAKE"; then
5186 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5206 if test -n "$ac_ct_GNATMAKE"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5208 $as_echo "$ac_ct_GNATMAKE" >&6; }
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5214 if test "x$ac_ct_GNATMAKE" = x; then
5217 case $cross_compiling:$ac_tool_warned in
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5221 ac_tool_warned=yes ;;
5223 GNATMAKE=$ac_ct_GNATMAKE
5226 GNATMAKE="$ac_cv_prog_GNATMAKE"
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5230 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5231 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5232 $as_echo_n "(cached) " >&6
5234 cat >conftest.adb <<EOF
5235 pragma Warnings (Off);
5237 pragma Warnings (On);
5238 use type System.CRTL.int64;
5239 procedure conftest is begin null; end conftest;
5241 acx_cv_cc_gcc_supports_ada=no
5242 # There is a bug in old released versions of GCC which causes the
5243 # driver to exit successfully when the appropriate language module
5244 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5245 # Therefore we must check for the error message as well as an
5246 # unsuccessful exit.
5247 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5248 # given a .adb file, but produce no object file. So we must check
5249 # if an object file was really produced to guard against this.
5250 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5251 if test x"$errors" = x && test -f conftest.$ac_objext; then
5252 acx_cv_cc_gcc_supports_ada=yes
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5257 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5259 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5267 if test -n "$ac_tool_prefix"; then
5268 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5269 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271 $as_echo_n "checking for $ac_word... " >&6; }
5272 if ${ac_cv_prog_GDC+:} false; then :
5273 $as_echo_n "(cached) " >&6
5275 if test -n "$GDC"; then
5276 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5285 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 if test -n "$GDC"; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5298 $as_echo "$GDC" >&6; }
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 $as_echo "no" >&6; }
5306 if test -z "$ac_cv_prog_GDC"; then
5308 # Extract the first word of "gdc", so it can be a program name with args.
5309 set dummy gdc; ac_word=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5313 $as_echo_n "(cached) " >&6
5315 if test -n "$ac_ct_GDC"; then
5316 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_ac_ct_GDC="gdc"
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5336 if test -n "$ac_ct_GDC"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5338 $as_echo "$ac_ct_GDC" >&6; }
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5344 if test "x$ac_ct_GDC" = x; then
5347 case $cross_compiling:$ac_tool_warned in
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5351 ac_tool_warned=yes ;;
5356 GDC="$ac_cv_prog_GDC"
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5360 $as_echo_n "checking whether the D compiler works... " >&6; }
5361 if ${acx_cv_d_compiler_works+:} false; then :
5362 $as_echo_n "(cached) " >&6
5364 cat >conftest.d <<EOF
5365 module conftest; int main() { return 0; }
5367 acx_cv_d_compiler_works=no
5368 if test "x$GDC" != xno; then
5369 errors=`(${GDC} -I"$srcdir"/d -c conftest.d) 2>&1 || echo failure`
5370 if test x"$errors" = x && test -f conftest.$ac_objext; then
5371 acx_cv_d_compiler_works=yes
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5377 $as_echo "$acx_cv_d_compiler_works" >&6; }
5378 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5385 # Do configure tests with the C++ compiler, since that's what we build with.
5387 ac_cpp='$CXXCPP $CPPFLAGS'
5388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5393 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5394 # optimizations to be activated explicitly by the toplevel.
5396 */prev-gcc/xgcc*) ;;
5397 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5398 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5404 # Determine PICFLAG for target gnatlib.
5410 # PIC is the default on some targets or must not be used.
5412 # For darwin, common symbols are not allowed in MH_DYLIB files
5414 # If we are using a compiler supporting mdynamic-no-pic
5415 # and the option has been tested as safe to add, then cancel
5416 # it here, since the code generated is incompatible with shared
5418 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5419 *) PICFLAG_FOR_TARGET=-fno-common ;;
5423 # PIC is the default.
5426 # PIC is the default for 64-bit PA HP-UX.
5428 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5430 i[34567]86-*-mingw* | x86_64-*-mingw*)
5432 i[34567]86-*-interix[3-9]*)
5433 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5434 # Instead, we relocate shared libraries at runtime.
5436 i[34567]86-*-nto-qnx*)
5437 # QNX uses GNU C++, but need to define -shared option too, otherwise
5439 PICFLAG_FOR_TARGET='-fPIC -shared'
5441 i[34567]86-pc-msdosdjgpp*)
5442 # DJGPP does not support shared libraries at all.
5445 # On IA64 HP-UX, PIC is the default but the pic flag
5446 # sets the default TLS model and affects inlining.
5447 PICFLAG_FOR_TARGET=-fPIC
5450 PICFLAG_FOR_TARGET=-fpic
5453 # PIC is the default.
5455 rs6000-ibm-aix* | powerpc-ibm-aix*)
5456 # All AIX code is PIC.
5459 # Some targets support both -fPIC and -fpic, but prefer the latter.
5461 i[34567]86-*-* | x86_64-*-*)
5462 PICFLAG_FOR_TARGET=-fpic
5464 # FIXME: Override -fPIC default in libgcc only?
5465 sh-*-linux* | sh[2346lbe]*-*-linux*)
5466 PICFLAG_FOR_TARGET=-fpic
5468 # FIXME: Simplify to sh*-*-netbsd*?
5469 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5470 sh64-*-netbsd* | sh64l*-*-netbsd*)
5471 PICFLAG_FOR_TARGET=-fpic
5473 # Default to -fPIC unless specified otherwise.
5475 PICFLAG_FOR_TARGET=-fPIC
5479 # If the user explicitly uses -fpic/-fPIC, keep that.
5480 case "${CFLAGS_FOR_TARGET}" in
5482 PICFLAG_FOR_TARGET=-fpic
5485 PICFLAG_FOR_TARGET=-fPIC
5491 # -------------------------
5492 # Check C compiler features
5493 # -------------------------
5497 ac_cpp='$CXXCPP $CPPFLAGS'
5498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5502 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5503 if test -z "$CXXCPP"; then
5504 if ${ac_cv_prog_CXXCPP+:} false; then :
5505 $as_echo_n "(cached) " >&6
5507 # Double quotes because CXXCPP needs to be expanded
5508 for CXXCPP in "$CXX -E" "/lib/cpp"
5511 for ac_cxx_preproc_warn_flag in '' yes
5513 # Use a header file that comes with gcc, so configuring glibc
5514 # with a fresh cross-compiler works.
5515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5516 # <limits.h> exists even on freestanding compilers.
5517 # On the NeXT, cc -E runs the code through the compiler's parser,
5518 # not just through cpp. "Syntax error" is here to catch this case.
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5522 # include <limits.h>
5524 # include <assert.h>
5528 if ac_fn_cxx_try_cpp "$LINENO"; then :
5531 # Broken: fails on valid input.
5534 rm -f conftest.err conftest.i conftest.$ac_ext
5536 # OK, works on sane cases. Now check whether nonexistent headers
5537 # can be detected and how.
5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5540 #include <ac_nonexistent.h>
5542 if ac_fn_cxx_try_cpp "$LINENO"; then :
5543 # Broken: success on invalid input.
5546 # Passes both tests.
5550 rm -f conftest.err conftest.i conftest.$ac_ext
5553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5554 rm -f conftest.i conftest.err conftest.$ac_ext
5555 if $ac_preproc_ok; then :
5560 ac_cv_prog_CXXCPP=$CXXCPP
5563 CXXCPP=$ac_cv_prog_CXXCPP
5565 ac_cv_prog_CXXCPP=$CXXCPP
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5568 $as_echo "$CXXCPP" >&6; }
5570 for ac_cxx_preproc_warn_flag in '' yes
5572 # Use a header file that comes with gcc, so configuring glibc
5573 # with a fresh cross-compiler works.
5574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5575 # <limits.h> exists even on freestanding compilers.
5576 # On the NeXT, cc -E runs the code through the compiler's parser,
5577 # not just through cpp. "Syntax error" is here to catch this case.
5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h. */
5581 # include <limits.h>
5583 # include <assert.h>
5587 if ac_fn_cxx_try_cpp "$LINENO"; then :
5590 # Broken: fails on valid input.
5593 rm -f conftest.err conftest.i conftest.$ac_ext
5595 # OK, works on sane cases. Now check whether nonexistent headers
5596 # can be detected and how.
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5599 #include <ac_nonexistent.h>
5601 if ac_fn_cxx_try_cpp "$LINENO"; then :
5602 # Broken: success on invalid input.
5605 # Passes both tests.
5609 rm -f conftest.err conftest.i conftest.$ac_ext
5612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5613 rm -f conftest.i conftest.err conftest.$ac_ext
5614 if $ac_preproc_ok; then :
5617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5619 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5620 See \`config.log' for more details" "$LINENO" 5; }
5624 ac_cpp='$CXXCPP $CPPFLAGS'
5625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5631 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5632 if ${ac_cv_path_GREP+:} false; then :
5633 $as_echo_n "(cached) " >&6
5635 if test -z "$GREP"; then
5636 ac_path_GREP_found=false
5637 # Loop through the user's path and test for each of PROGNAME-LIST
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5642 test -z "$as_dir" && as_dir=.
5643 for ac_prog in grep ggrep; do
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5646 as_fn_executable_p "$ac_path_GREP" || continue
5647 # Check for GNU ac_path_GREP and select it if it is found.
5648 # Check for GNU $ac_path_GREP
5649 case `"$ac_path_GREP" --version 2>&1` in
5651 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5654 $as_echo_n 0123456789 >"conftest.in"
5657 cat "conftest.in" "conftest.in" >"conftest.tmp"
5658 mv "conftest.tmp" "conftest.in"
5659 cp "conftest.in" "conftest.nl"
5660 $as_echo 'GREP' >> "conftest.nl"
5661 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5663 as_fn_arith $ac_count + 1 && ac_count=$as_val
5664 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5665 # Best one so far, save it but keep looking for a better one
5666 ac_cv_path_GREP="$ac_path_GREP"
5667 ac_path_GREP_max=$ac_count
5669 # 10*(2^10) chars as input seems more than enough
5670 test $ac_count -gt 10 && break
5672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5675 $ac_path_GREP_found && break 3
5680 if test -z "$ac_cv_path_GREP"; then
5681 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5684 ac_cv_path_GREP=$GREP
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5689 $as_echo "$ac_cv_path_GREP" >&6; }
5690 GREP="$ac_cv_path_GREP"
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5694 $as_echo_n "checking for egrep... " >&6; }
5695 if ${ac_cv_path_EGREP+:} false; then :
5696 $as_echo_n "(cached) " >&6
5698 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5699 then ac_cv_path_EGREP="$GREP -E"
5701 if test -z "$EGREP"; then
5702 ac_path_EGREP_found=false
5703 # Loop through the user's path and test for each of PROGNAME-LIST
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5708 test -z "$as_dir" && as_dir=.
5709 for ac_prog in egrep; do
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5712 as_fn_executable_p "$ac_path_EGREP" || continue
5713 # Check for GNU ac_path_EGREP and select it if it is found.
5714 # Check for GNU $ac_path_EGREP
5715 case `"$ac_path_EGREP" --version 2>&1` in
5717 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5720 $as_echo_n 0123456789 >"conftest.in"
5723 cat "conftest.in" "conftest.in" >"conftest.tmp"
5724 mv "conftest.tmp" "conftest.in"
5725 cp "conftest.in" "conftest.nl"
5726 $as_echo 'EGREP' >> "conftest.nl"
5727 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5728 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5729 as_fn_arith $ac_count + 1 && ac_count=$as_val
5730 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5731 # Best one so far, save it but keep looking for a better one
5732 ac_cv_path_EGREP="$ac_path_EGREP"
5733 ac_path_EGREP_max=$ac_count
5735 # 10*(2^10) chars as input seems more than enough
5736 test $ac_count -gt 10 && break
5738 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5741 $ac_path_EGREP_found && break 3
5746 if test -z "$ac_cv_path_EGREP"; then
5747 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5750 ac_cv_path_EGREP=$EGREP
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5756 $as_echo "$ac_cv_path_EGREP" >&6; }
5757 EGREP="$ac_cv_path_EGREP"
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5761 $as_echo_n "checking for ANSI C header files... " >&6; }
5762 if ${ac_cv_header_stdc+:} false; then :
5763 $as_echo_n "(cached) " >&6
5765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766 /* end confdefs.h. */
5780 if ac_fn_cxx_try_compile "$LINENO"; then :
5781 ac_cv_header_stdc=yes
5783 ac_cv_header_stdc=no
5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 if test $ac_cv_header_stdc = yes; then
5788 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5795 $EGREP "memchr" >/dev/null 2>&1; then :
5798 ac_cv_header_stdc=no
5804 if test $ac_cv_header_stdc = yes; then
5805 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807 /* end confdefs.h. */
5811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5812 $EGREP "free" >/dev/null 2>&1; then :
5815 ac_cv_header_stdc=no
5821 if test $ac_cv_header_stdc = yes; then
5822 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5823 if test "$cross_compiling" = yes; then :
5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5830 #if ((' ' & 0x0FF) == 0x020)
5831 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5832 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5834 # define ISLOWER(c) \
5835 (('a' <= (c) && (c) <= 'i') \
5836 || ('j' <= (c) && (c) <= 'r') \
5837 || ('s' <= (c) && (c) <= 'z'))
5838 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5841 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5846 for (i = 0; i < 256; i++)
5847 if (XOR (islower (i), ISLOWER (i))
5848 || toupper (i) != TOUPPER (i))
5853 if ac_fn_cxx_try_run "$LINENO"; then :
5856 ac_cv_header_stdc=no
5858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5859 conftest.$ac_objext conftest.beam conftest.$ac_ext
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5865 $as_echo "$ac_cv_header_stdc" >&6; }
5866 if test $ac_cv_header_stdc = yes; then
5868 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5872 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5873 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5874 inttypes.h stdint.h unistd.h
5876 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5877 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5879 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5880 cat >>confdefs.h <<_ACEOF
5881 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5890 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5891 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5898 if test "$MINIX" = yes; then
5900 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5903 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5906 $as_echo "#define _MINIX 1" >>confdefs.h
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5912 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5913 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5914 $as_echo_n "(cached) " >&6
5916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h. */
5919 # define __EXTENSIONS__ 1
5920 $ac_includes_default
5929 if ac_fn_cxx_try_compile "$LINENO"; then :
5930 ac_cv_safe_to_define___extensions__=yes
5932 ac_cv_safe_to_define___extensions__=no
5934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5937 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5938 test $ac_cv_safe_to_define___extensions__ = yes &&
5939 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5941 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5943 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5945 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5947 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5952 ac_cpp='$CPP $CPPFLAGS'
5953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5957 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5958 # On Suns, sometimes $CPP names a directory.
5959 if test -n "$CPP" && test -d "$CPP"; then
5962 if test -z "$CPP"; then
5963 if ${ac_cv_prog_CPP+:} false; then :
5964 $as_echo_n "(cached) " >&6
5966 # Double quotes because CPP needs to be expanded
5967 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5970 for ac_c_preproc_warn_flag in '' yes
5972 # Use a header file that comes with gcc, so configuring glibc
5973 # with a fresh cross-compiler works.
5974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5975 # <limits.h> exists even on freestanding compilers.
5976 # On the NeXT, cc -E runs the code through the compiler's parser,
5977 # not just through cpp. "Syntax error" is here to catch this case.
5978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979 /* end confdefs.h. */
5981 # include <limits.h>
5983 # include <assert.h>
5987 if ac_fn_c_try_cpp "$LINENO"; then :
5990 # Broken: fails on valid input.
5993 rm -f conftest.err conftest.i conftest.$ac_ext
5995 # OK, works on sane cases. Now check whether nonexistent headers
5996 # can be detected and how.
5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
5999 #include <ac_nonexistent.h>
6001 if ac_fn_c_try_cpp "$LINENO"; then :
6002 # Broken: success on invalid input.
6005 # Passes both tests.
6009 rm -f conftest.err conftest.i conftest.$ac_ext
6012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6013 rm -f conftest.i conftest.err conftest.$ac_ext
6014 if $ac_preproc_ok; then :
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6027 $as_echo "$CPP" >&6; }
6029 for ac_c_preproc_warn_flag in '' yes
6031 # Use a header file that comes with gcc, so configuring glibc
6032 # with a fresh cross-compiler works.
6033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6034 # <limits.h> exists even on freestanding compilers.
6035 # On the NeXT, cc -E runs the code through the compiler's parser,
6036 # not just through cpp. "Syntax error" is here to catch this case.
6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6040 # include <limits.h>
6042 # include <assert.h>
6046 if ac_fn_c_try_cpp "$LINENO"; then :
6049 # Broken: fails on valid input.
6052 rm -f conftest.err conftest.i conftest.$ac_ext
6054 # OK, works on sane cases. Now check whether nonexistent headers
6055 # can be detected and how.
6056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6058 #include <ac_nonexistent.h>
6060 if ac_fn_c_try_cpp "$LINENO"; then :
6061 # Broken: success on invalid input.
6064 # Passes both tests.
6068 rm -f conftest.err conftest.i conftest.$ac_ext
6071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6072 rm -f conftest.i conftest.err conftest.$ac_ext
6073 if $ac_preproc_ok; 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 $? "C preprocessor \"$CPP\" fails sanity check
6079 See \`config.log' for more details" "$LINENO" 5; }
6083 ac_cpp='$CXXCPP $CPPFLAGS'
6084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6089 $as_echo_n "checking for inline... " >&6; }
6090 if ${ac_cv_c_inline+:} false; then :
6091 $as_echo_n "(cached) " >&6
6094 for ac_kw in inline __inline__ __inline; do
6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h. */
6099 static $ac_kw foo_t static_foo () {return 0; }
6100 $ac_kw foo_t foo () {return 0; }
6104 if ac_fn_cxx_try_compile "$LINENO"; then :
6105 ac_cv_c_inline=$ac_kw
6107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6108 test "$ac_cv_c_inline" != no && break
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6113 $as_echo "$ac_cv_c_inline" >&6; }
6115 case $ac_cv_c_inline in
6118 case $ac_cv_c_inline in
6120 *) ac_val=$ac_cv_c_inline;;
6122 cat >>confdefs.h <<_ACEOF
6124 #define inline $ac_val
6131 # Check whether --enable-largefile was given.
6132 if test "${enable_largefile+set}" = set; then :
6133 enableval=$enable_largefile;
6136 if test "$enable_largefile" != no; then
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6139 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6140 if ${ac_cv_sys_largefile_CC+:} false; then :
6141 $as_echo_n "(cached) " >&6
6143 ac_cv_sys_largefile_CC=no
6144 if test "$GCC" != yes; then
6147 # IRIX 6.2 and later do not support large files by default,
6148 # so use the C compiler's -n32 option if that helps.
6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h. */
6151 #include <sys/types.h>
6152 /* Check that off_t can represent 2**63 - 1 correctly.
6153 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6154 since some C++ compilers masquerading as C compilers
6155 incorrectly reject 9223372036854775807. */
6156 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6157 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6158 && LARGE_OFF_T % 2147483647 == 1)
6168 if ac_fn_cxx_try_compile "$LINENO"; then :
6171 rm -f core conftest.err conftest.$ac_objext
6173 if ac_fn_cxx_try_compile "$LINENO"; then :
6174 ac_cv_sys_largefile_CC=' -n32'; break
6176 rm -f core conftest.err conftest.$ac_objext
6180 rm -f conftest.$ac_ext
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6184 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6185 if test "$ac_cv_sys_largefile_CC" != no; then
6186 CC=$CC$ac_cv_sys_largefile_CC
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6190 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6191 if ${ac_cv_sys_file_offset_bits+:} false; then :
6192 $as_echo_n "(cached) " >&6
6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6197 #include <sys/types.h>
6198 /* Check that off_t can represent 2**63 - 1 correctly.
6199 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6200 since some C++ compilers masquerading as C compilers
6201 incorrectly reject 9223372036854775807. */
6202 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6203 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6204 && LARGE_OFF_T % 2147483647 == 1)
6214 if ac_fn_cxx_try_compile "$LINENO"; then :
6215 ac_cv_sys_file_offset_bits=no; break
6217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6220 #define _FILE_OFFSET_BITS 64
6221 #include <sys/types.h>
6222 /* Check that off_t can represent 2**63 - 1 correctly.
6223 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6224 since some C++ compilers masquerading as C compilers
6225 incorrectly reject 9223372036854775807. */
6226 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6227 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6228 && LARGE_OFF_T % 2147483647 == 1)
6238 if ac_fn_cxx_try_compile "$LINENO"; then :
6239 ac_cv_sys_file_offset_bits=64; break
6241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242 ac_cv_sys_file_offset_bits=unknown
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6247 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6248 case $ac_cv_sys_file_offset_bits in #(
6251 cat >>confdefs.h <<_ACEOF
6252 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6257 if test $ac_cv_sys_file_offset_bits = unknown; then
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6259 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6260 if ${ac_cv_sys_large_files+:} false; then :
6261 $as_echo_n "(cached) " >&6
6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6266 #include <sys/types.h>
6267 /* Check that off_t can represent 2**63 - 1 correctly.
6268 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6269 since some C++ compilers masquerading as C compilers
6270 incorrectly reject 9223372036854775807. */
6271 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6272 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6273 && LARGE_OFF_T % 2147483647 == 1)
6283 if ac_fn_cxx_try_compile "$LINENO"; then :
6284 ac_cv_sys_large_files=no; break
6286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6289 #define _LARGE_FILES 1
6290 #include <sys/types.h>
6291 /* Check that off_t can represent 2**63 - 1 correctly.
6292 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6293 since some C++ compilers masquerading as C compilers
6294 incorrectly reject 9223372036854775807. */
6295 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6296 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6297 && LARGE_OFF_T % 2147483647 == 1)
6307 if ac_fn_cxx_try_compile "$LINENO"; then :
6308 ac_cv_sys_large_files=1; break
6310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311 ac_cv_sys_large_files=unknown
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6316 $as_echo "$ac_cv_sys_large_files" >&6; }
6317 case $ac_cv_sys_large_files in #(
6320 cat >>confdefs.h <<_ACEOF
6321 #define _LARGE_FILES $ac_cv_sys_large_files
6331 # The cast to long int works around a bug in the HP C Compiler
6332 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6333 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6334 # This bug is HP SR number 8606223364.
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6336 $as_echo_n "checking size of ino_t... " >&6; }
6337 if ${ac_cv_sizeof_ino_t+:} false; then :
6338 $as_echo_n "(cached) " >&6
6340 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6343 if test "$ac_cv_type_ino_t" = yes; then
6344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6346 as_fn_error 77 "cannot compute sizeof (ino_t)
6347 See \`config.log' for more details" "$LINENO" 5; }
6349 ac_cv_sizeof_ino_t=0
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6355 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6359 cat >>confdefs.h <<_ACEOF
6360 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6364 # The cast to long int works around a bug in the HP C Compiler
6365 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6366 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6367 # This bug is HP SR number 8606223364.
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6369 $as_echo_n "checking size of dev_t... " >&6; }
6370 if ${ac_cv_sizeof_dev_t+:} false; then :
6371 $as_echo_n "(cached) " >&6
6373 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6376 if test "$ac_cv_type_dev_t" = yes; then
6377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6379 as_fn_error 77 "cannot compute sizeof (dev_t)
6380 See \`config.log' for more details" "$LINENO" 5; }
6382 ac_cv_sizeof_dev_t=0
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6388 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6392 cat >>confdefs.h <<_ACEOF
6393 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6398 # Select the right stat being able to handle 64bit inodes, if needed.
6399 if test "$enable_largefile" != no; then
6400 case "$host, $build" in
6401 *-*-aix*,*|*,*-*-aix*)
6402 if test "$ac_cv_sizeof_ino_t" == "4" -a "$ac_cv_sizeof_dev_t" == 4; then
6404 $as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
6411 # sizeof(char) is 1 by definition.
6412 # The cast to long int works around a bug in the HP C Compiler
6413 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6414 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6415 # This bug is HP SR number 8606223364.
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6417 $as_echo_n "checking size of void *... " >&6; }
6418 if ${ac_cv_sizeof_void_p+:} false; then :
6419 $as_echo_n "(cached) " >&6
6421 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6424 if test "$ac_cv_type_void_p" = yes; then
6425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6427 as_fn_error 77 "cannot compute sizeof (void *)
6428 See \`config.log' for more details" "$LINENO" 5; }
6430 ac_cv_sizeof_void_p=0
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6436 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6440 cat >>confdefs.h <<_ACEOF
6441 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6445 # The cast to long int works around a bug in the HP C Compiler
6446 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6447 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6448 # This bug is HP SR number 8606223364.
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6450 $as_echo_n "checking size of short... " >&6; }
6451 if ${ac_cv_sizeof_short+:} false; then :
6452 $as_echo_n "(cached) " >&6
6454 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6457 if test "$ac_cv_type_short" = yes; then
6458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6460 as_fn_error 77 "cannot compute sizeof (short)
6461 See \`config.log' for more details" "$LINENO" 5; }
6463 ac_cv_sizeof_short=0
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6469 $as_echo "$ac_cv_sizeof_short" >&6; }
6473 cat >>confdefs.h <<_ACEOF
6474 #define SIZEOF_SHORT $ac_cv_sizeof_short
6478 # The cast to long int works around a bug in the HP C Compiler
6479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6481 # This bug is HP SR number 8606223364.
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6483 $as_echo_n "checking size of int... " >&6; }
6484 if ${ac_cv_sizeof_int+:} false; then :
6485 $as_echo_n "(cached) " >&6
6487 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6490 if test "$ac_cv_type_int" = yes; then
6491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6493 as_fn_error 77 "cannot compute sizeof (int)
6494 See \`config.log' for more details" "$LINENO" 5; }
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6502 $as_echo "$ac_cv_sizeof_int" >&6; }
6506 cat >>confdefs.h <<_ACEOF
6507 #define SIZEOF_INT $ac_cv_sizeof_int
6511 # The cast to long int works around a bug in the HP C Compiler
6512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6513 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6514 # This bug is HP SR number 8606223364.
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6516 $as_echo_n "checking size of long... " >&6; }
6517 if ${ac_cv_sizeof_long+:} false; then :
6518 $as_echo_n "(cached) " >&6
6520 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6523 if test "$ac_cv_type_long" = yes; then
6524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6526 as_fn_error 77 "cannot compute sizeof (long)
6527 See \`config.log' for more details" "$LINENO" 5; }
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6535 $as_echo "$ac_cv_sizeof_long" >&6; }
6539 cat >>confdefs.h <<_ACEOF
6540 #define SIZEOF_LONG $ac_cv_sizeof_long
6544 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6545 if test "x$ac_cv_type_long_long" = xyes; then :
6547 cat >>confdefs.h <<_ACEOF
6548 #define HAVE_LONG_LONG 1
6551 # The cast to long int works around a bug in the HP C Compiler
6552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6554 # This bug is HP SR number 8606223364.
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6556 $as_echo_n "checking size of long long... " >&6; }
6557 if ${ac_cv_sizeof_long_long+:} false; then :
6558 $as_echo_n "(cached) " >&6
6560 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6563 if test "$ac_cv_type_long_long" = yes; then
6564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6566 as_fn_error 77 "cannot compute sizeof (long long)
6567 See \`config.log' for more details" "$LINENO" 5; }
6569 ac_cv_sizeof_long_long=0
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6575 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6579 cat >>confdefs.h <<_ACEOF
6580 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6586 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6587 case $ac_cv_c_int8_t in #(
6591 cat >>confdefs.h <<_ACEOF
6592 #define int8_t $ac_cv_c_int8_t
6597 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6598 case $ac_cv_c_int16_t in #(
6602 cat >>confdefs.h <<_ACEOF
6603 #define int16_t $ac_cv_c_int16_t
6608 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6609 case $ac_cv_c_int32_t in #(
6613 cat >>confdefs.h <<_ACEOF
6614 #define int32_t $ac_cv_c_int32_t
6619 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6620 case $ac_cv_c_int64_t in #(
6624 cat >>confdefs.h <<_ACEOF
6625 #define int64_t $ac_cv_c_int64_t
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6632 $as_echo_n "checking for unsigned long long int... " >&6; }
6633 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6634 $as_echo_n "(cached) " >&6
6636 ac_cv_type_unsigned_long_long_int=yes
6637 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639 /* end confdefs.h. */
6641 /* For now, do not test the preprocessor; as of 2007 there are too many
6642 implementations with broken preprocessors. Perhaps this can
6643 be revisited in 2012. In the meantime, code should not expect
6644 #if to work with literals wider than 32 bits. */
6645 /* Test literals. */
6646 long long int ll = 9223372036854775807ll;
6647 long long int nll = -9223372036854775807LL;
6648 unsigned long long int ull = 18446744073709551615ULL;
6649 /* Test constant expressions. */
6650 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6652 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6658 /* Test availability of runtime routines for shift and division. */
6659 long long int llmax = 9223372036854775807ll;
6660 unsigned long long int ullmax = 18446744073709551615ull;
6661 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6662 | (llmax / ll) | (llmax % ll)
6663 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6664 | (ullmax / ull) | (ullmax % ull));
6670 if ac_fn_cxx_try_link "$LINENO"; then :
6673 ac_cv_type_unsigned_long_long_int=no
6675 rm -f core conftest.err conftest.$ac_objext \
6676 conftest$ac_exeext conftest.$ac_ext
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6680 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6681 if test $ac_cv_type_unsigned_long_long_int = yes; then
6683 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6690 $as_echo_n "checking for long long int... " >&6; }
6691 if ${ac_cv_type_long_long_int+:} false; then :
6692 $as_echo_n "(cached) " >&6
6694 ac_cv_type_long_long_int=yes
6695 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6696 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6697 if test $ac_cv_type_long_long_int = yes; then
6698 if test "$cross_compiling" = yes; then :
6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702 /* end confdefs.h. */
6706 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6707 # define LLONG_MAX (HALF - 1 + HALF)
6712 long long int n = 1;
6716 long long int m = n << i;
6719 if (LLONG_MAX / 2 < m)
6727 if ac_fn_cxx_try_run "$LINENO"; then :
6730 ac_cv_type_long_long_int=no
6732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6733 conftest.$ac_objext conftest.beam conftest.$ac_ext
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6740 $as_echo "$ac_cv_type_long_long_int" >&6; }
6741 if test $ac_cv_type_long_long_int = yes; then
6743 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6749 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6750 if test "x$ac_cv_type_intmax_t" = xyes; then :
6752 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6755 test $ac_cv_type_long_long_int = yes \
6756 && ac_type='long long int' \
6757 || ac_type='long int'
6759 cat >>confdefs.h <<_ACEOF
6760 #define intmax_t $ac_type
6767 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6768 if test "x$ac_cv_type_intptr_t" = xyes; then :
6770 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6773 for ac_type in 'int' 'long int' 'long long int'; do
6774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6775 /* end confdefs.h. */
6776 $ac_includes_default
6780 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6782 return test_array [0];
6788 if ac_fn_cxx_try_compile "$LINENO"; then :
6790 cat >>confdefs.h <<_ACEOF
6791 #define intptr_t $ac_type
6796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797 test -z "$ac_type" && break
6802 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6803 case $ac_cv_c_uint8_t in #(
6807 $as_echo "#define _UINT8_T 1" >>confdefs.h
6810 cat >>confdefs.h <<_ACEOF
6811 #define uint8_t $ac_cv_c_uint8_t
6816 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6817 case $ac_cv_c_uint16_t in #(
6822 cat >>confdefs.h <<_ACEOF
6823 #define uint16_t $ac_cv_c_uint16_t
6828 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6829 case $ac_cv_c_uint32_t in #(
6833 $as_echo "#define _UINT32_T 1" >>confdefs.h
6836 cat >>confdefs.h <<_ACEOF
6837 #define uint32_t $ac_cv_c_uint32_t
6842 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6843 case $ac_cv_c_uint64_t in #(
6847 $as_echo "#define _UINT64_T 1" >>confdefs.h
6850 cat >>confdefs.h <<_ACEOF
6851 #define uint64_t $ac_cv_c_uint64_t
6858 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6859 if test "x$ac_cv_type_uintmax_t" = xyes; then :
6861 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6864 test $ac_cv_type_unsigned_long_long_int = yes \
6865 && ac_type='unsigned long long int' \
6866 || ac_type='unsigned long int'
6868 cat >>confdefs.h <<_ACEOF
6869 #define uintmax_t $ac_type
6876 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6877 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6879 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6882 for ac_type in 'unsigned int' 'unsigned long int' \
6883 'unsigned long long int'; do
6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885 /* end confdefs.h. */
6886 $ac_includes_default
6890 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6892 return test_array [0];
6898 if ac_fn_cxx_try_compile "$LINENO"; then :
6900 cat >>confdefs.h <<_ACEOF
6901 #define uintptr_t $ac_type
6906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907 test -z "$ac_type" && break
6924 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6925 as_fn_error $? "uint64_t or int64_t not found" "$LINENO" 5
6928 # check what underlying integer type int64_t uses
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6930 $as_echo_n "checking for int64_t underlying type... " >&6; }
6931 if ${ac_cv_int64_t_type+:} false; then :
6932 $as_echo_n "(cached) " >&6
6935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936 /* end confdefs.h. */
6938 #ifdef HAVE_STDINT_H
6941 template <typename T> struct X { };
6943 struct X<long> { typedef long t; };
6953 if ac_fn_cxx_try_compile "$LINENO"; then :
6954 ac_cv_int64_t_type=long
6956 ac_cv_int64_t_type="long long"
6958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6961 $as_echo "$ac_cv_int64_t_type" >&6; }
6962 if test "$ac_cv_int64_t_type" = "long"; then
6964 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6970 #ifdef HAVE_STDINT_H
6973 template <typename T> struct X { };
6975 struct X<long long> { typedef long long t; };
6985 if ac_fn_cxx_try_compile "$LINENO"; then :
6988 as_fn_error $? "error verifying int64_t uses long long" "$LINENO" 5
6990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6994 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6995 if ${ac_cv_std_swap_in_utility+:} false; then :
6996 $as_echo_n "(cached) " >&6
6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h. */
7007 int a, b; std::swap(a,b);
7012 if ac_fn_cxx_try_compile "$LINENO"; then :
7013 ac_cv_std_swap_in_utility=yes
7015 ac_cv_std_swap_in_utility=no
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
7020 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
7021 if test $ac_cv_std_swap_in_utility = yes; then
7023 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
7027 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
7028 # If the host compiler is affected by the bug, and we build with optimization
7029 # enabled (which happens e.g. when cross-compiling), the pool allocator may
7030 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
7031 # Since there is no reliable feature check for the presence of this bug,
7032 # we simply use a GCC version number check. (This should never trigger for
7033 # stages 2 or 3 of a native bootstrap.)
7035 if test "$GCC" = yes; then
7036 saved_CXXFLAGS="$CXXFLAGS"
7038 # The following test compilation will succeed if and only if $CXX accepts
7039 # -fno-strict-aliasing *and* is older than GCC 4.3.
7040 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
7042 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7046 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
7047 #error compiler not affected by placement new aliasing bug
7051 if ac_fn_cxx_try_compile "$LINENO"; then :
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7053 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056 $as_echo "no" >&6; }
7058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060 CXXFLAGS="$saved_CXXFLAGS"
7066 # ---------------------
7067 # Warnings and checking
7068 # ---------------------
7070 # Check $CC warning features (if it's GCC).
7071 # We want to use -pedantic, but we don't want warnings about
7074 # * overlong strings
7075 # * C++11 narrowing conversions in { }
7076 # So, we only use -pedantic if we can disable those warnings.
7078 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
7079 # Check whether --enable-build-format-warnings was given.
7080 if test "${enable_build_format_warnings+set}" = set; then :
7081 enableval=$enable_build_format_warnings;
7083 enable_build_format_warnings=yes
7086 if test $enable_build_format_warnings = no; then :
7092 ac_cpp='$CXXCPP $CPPFLAGS'
7093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7098 save_CXXFLAGS="$CXXFLAGS"
7099 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
7100 # Do the check with the no- prefix removed since gcc silently
7101 # accepts any -Wno-* option on purpose
7102 case $real_option in
7103 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7104 *) option=$real_option ;;
7106 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7109 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7110 if eval \${$as_acx_Woption+:} false; then :
7111 $as_echo_n "(cached) " >&6
7114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h. */
7125 if ac_fn_cxx_try_compile "$LINENO"; then :
7126 eval "$as_acx_Woption=yes"
7128 eval "$as_acx_Woption=no"
7130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133 eval ac_res=\$$as_acx_Woption
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7135 $as_echo "$ac_res" >&6; }
7136 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7137 loose_warn="$loose_warn${loose_warn:+ }$real_option"
7140 CXXFLAGS="$save_CXXFLAGS"
7142 ac_cpp='$CXXCPP $CPPFLAGS'
7143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7150 ac_cpp='$CPP $CPPFLAGS'
7151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7156 save_CFLAGS="$CFLAGS"
7157 for real_option in -Wstrict-prototypes -Wmissing-prototypes ; do
7158 # Do the check with the no- prefix removed since gcc silently
7159 # accepts any -Wno-* option on purpose
7160 case $real_option in
7161 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7162 *) option=$real_option ;;
7164 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7167 $as_echo_n "checking whether $CC supports $option... " >&6; }
7168 if eval \${$as_acx_Woption+:} false; then :
7169 $as_echo_n "(cached) " >&6
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7183 if ac_fn_c_try_compile "$LINENO"; then :
7184 eval "$as_acx_Woption=yes"
7186 eval "$as_acx_Woption=no"
7188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7191 eval ac_res=\$$as_acx_Woption
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7193 $as_echo "$ac_res" >&6; }
7194 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7195 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
7198 CFLAGS="$save_CFLAGS"
7200 ac_cpp='$CXXCPP $CPPFLAGS'
7201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7207 ac_cpp='$CXXCPP $CPPFLAGS'
7208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7213 save_CXXFLAGS="$CXXFLAGS"
7214 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
7215 # Do the check with the no- prefix removed since gcc silently
7216 # accepts any -Wno-* option on purpose
7217 case $real_option in
7218 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7219 *) option=$real_option ;;
7221 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
7224 $as_echo_n "checking whether $CXX supports $option... " >&6; }
7225 if eval \${$as_acx_Woption+:} false; then :
7226 $as_echo_n "(cached) " >&6
7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7240 if ac_fn_cxx_try_compile "$LINENO"; then :
7241 eval "$as_acx_Woption=yes"
7243 eval "$as_acx_Woption=no"
7245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248 eval ac_res=\$$as_acx_Woption
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7250 $as_echo "$ac_res" >&6; }
7251 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7252 strict_warn="$strict_warn${strict_warn:+ }$real_option"
7255 CXXFLAGS="$save_CXXFLAGS"
7257 ac_cpp='$CXXCPP $CPPFLAGS'
7258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7264 ac_cpp='$CPP $CPPFLAGS'
7265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7270 save_CFLAGS="$CFLAGS"
7271 for real_option in -Wold-style-definition -Wc++-compat; do
7272 # Do the check with the no- prefix removed since gcc silently
7273 # accepts any -Wno-* option on purpose
7274 case $real_option in
7275 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7276 *) option=$real_option ;;
7278 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7281 $as_echo_n "checking whether $CC supports $option... " >&6; }
7282 if eval \${$as_acx_Woption+:} false; then :
7283 $as_echo_n "(cached) " >&6
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7297 if ac_fn_c_try_compile "$LINENO"; then :
7298 eval "$as_acx_Woption=yes"
7300 eval "$as_acx_Woption=no"
7302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7305 eval ac_res=\$$as_acx_Woption
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7307 $as_echo "$ac_res" >&6; }
7308 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7309 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
7312 CFLAGS="$save_CFLAGS"
7314 ac_cpp='$CXXCPP $CPPFLAGS'
7315 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7316 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7317 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7321 ac_cpp='$CXXCPP $CPPFLAGS'
7322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7326 # Do the check with the no- prefix removed from the warning options
7327 # since gcc silently accepts any -Wno-* option on purpose
7328 if test "$GXX" = yes; then :
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7330 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7331 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false; then :
7332 $as_echo_n "(cached) " >&6
7334 save_CXXFLAGS="$CXXFLAGS"
7335 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7337 /* end confdefs.h. */
7347 if ac_fn_cxx_try_compile "$LINENO"; then :
7348 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
7350 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
7352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7353 CXXFLAGS="$save_CXXFLAGS"
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7356 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7357 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7358 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7363 ac_cpp='$CXXCPP $CPPFLAGS'
7364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7370 ac_cpp='$CXXCPP $CPPFLAGS'
7371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7375 # Check whether --enable-werror-always was given.
7376 if test "${enable_werror_always+set}" = set; then :
7377 enableval=$enable_werror_always;
7379 enable_werror_always=no
7382 if test $enable_werror_always = yes; then :
7383 strict_warn="$strict_warn${strict_warn:+ }-Werror"
7387 ac_cpp='$CXXCPP $CPPFLAGS'
7388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7394 # The above macros do nothing if the compiler is not GCC. However, the
7395 # Makefile has more goo to add other flags, so these variables are used
7396 # to enable warnings only for GCC.
7399 if test "x$GCC" = "xyes"; then
7400 warn_cflags='$(GCC_WARN_CFLAGS)'
7401 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7406 # Disable exceptions and RTTI if building with g++
7408 ac_cpp='$CPP $CPPFLAGS'
7409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7414 save_CFLAGS="$CFLAGS"
7415 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7416 # Do the check with the no- prefix removed since gcc silently
7417 # accepts any -Wno-* option on purpose
7418 case $real_option in
7419 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7420 *) option=$real_option ;;
7422 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7425 $as_echo_n "checking whether $CC supports $option... " >&6; }
7426 if eval \${$as_acx_Woption+:} false; then :
7427 $as_echo_n "(cached) " >&6
7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h. */
7441 if ac_fn_c_try_compile "$LINENO"; then :
7442 eval "$as_acx_Woption=yes"
7444 eval "$as_acx_Woption=no"
7446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449 eval ac_res=\$$as_acx_Woption
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7451 $as_echo "$ac_res" >&6; }
7452 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7453 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7456 CFLAGS="$save_CFLAGS"
7458 ac_cpp='$CXXCPP $CPPFLAGS'
7459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7465 # Enable expensive internal checks
7467 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7471 # Check whether --enable-checking was given.
7472 if test "${enable_checking+set}" = set; then :
7473 enableval=$enable_checking; ac_checking_flags="${enableval}"
7476 # Determine the default checks.
7477 if test x$is_release = x ; then
7478 ac_checking_flags=yes,extra
7480 ac_checking_flags=release
7484 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7485 for check in release $ac_checking_flags
7488 # these set all the flags to specific states
7489 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7490 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7491 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7492 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7493 ac_tree_checking=1 ; ac_valgrind_checking= ;
7494 ac_types_checking=1 ;;
7495 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7496 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7497 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7498 ac_rtlflag_checking= ; ac_runtime_checking= ;
7499 ac_tree_checking= ; ac_valgrind_checking= ;
7500 ac_types_checking= ;;
7501 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7502 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7503 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7504 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7505 ac_tree_checking=1 ; ac_valgrind_checking= ;
7506 ac_types_checking=1 ;;
7507 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7508 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7509 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7510 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7511 ac_tree_checking= ; ac_valgrind_checking= ;
7512 ac_types_checking= ;;
7513 # these enable particular checks
7514 assert) ac_assert_checking=1 ;;
7515 df) ac_df_checking=1 ;;
7516 extra) ac_extra_checking=1 ;;
7517 fold) ac_fold_checking=1 ;;
7518 gc) ac_gc_checking=1 ;;
7519 gcac) ac_gc_always_collect=1 ;;
7520 gimple) ac_gimple_checking=1 ;;
7521 misc) ac_checking=1 ;;
7522 rtl) ac_rtl_checking=1 ;;
7523 rtlflag) ac_rtlflag_checking=1 ;;
7524 runtime) ac_runtime_checking=1 ;;
7525 tree) ac_tree_checking=1 ;;
7526 types) ac_types_checking=1 ;;
7527 valgrind) ac_valgrind_checking=1 ;;
7528 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
7534 if test x$ac_checking != x ; then
7536 $as_echo "#define CHECKING_P 1" >>confdefs.h
7538 nocommon_flag=-fno-common
7540 $as_echo "#define CHECKING_P 0" >>confdefs.h
7544 if test x$ac_extra_checking != x ; then
7546 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7549 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7552 if test x$ac_df_checking != x ; then
7554 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7557 if test x$ac_assert_checking != x ; then
7559 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7562 if test x$ac_gimple_checking != x ; then
7564 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7568 if test x$ac_runtime_checking != x ; then
7570 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7573 if test x$ac_tree_checking != x ; then
7575 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7579 if test x$ac_types_checking != x ; then
7581 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7585 if test x$ac_rtl_checking != x ; then
7587 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7590 if test x$ac_rtlflag_checking != x ; then
7592 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7595 if test x$ac_gc_checking != x ; then
7597 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7600 if test x$ac_gc_always_collect != x ; then
7602 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7605 if test x$ac_fold_checking != x ; then
7607 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7610 valgrind_path_defines=
7613 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7614 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7622 # It is certainly possible that there's valgrind but no valgrind.h.
7623 # GCC relies on making annotations so we must have both.
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7625 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h. */
7628 #include <valgrind/memcheck.h>
7629 #ifndef VALGRIND_DISCARD
7630 #error VALGRIND_DISCARD not defined
7633 if ac_fn_cxx_try_cpp "$LINENO"; then :
7634 gcc_cv_header_valgrind_memcheck_h=yes
7636 gcc_cv_header_valgrind_memcheck_h=no
7638 rm -f conftest.err conftest.i conftest.$ac_ext
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7640 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7642 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7645 #include <memcheck.h>
7646 #ifndef VALGRIND_DISCARD
7647 #error VALGRIND_DISCARD not defined
7650 if ac_fn_cxx_try_cpp "$LINENO"; then :
7651 gcc_cv_header_memcheck_h=yes
7653 gcc_cv_header_memcheck_h=no
7655 rm -f conftest.err conftest.i conftest.$ac_ext
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7657 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7658 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7660 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7663 if test $gcc_cv_header_memcheck_h = yes; then
7665 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7669 if test x$ac_valgrind_checking != x ; then
7671 # Prepare PATH_SEPARATOR.
7672 # The user is always right.
7673 if test "${PATH_SEPARATOR+set}" != set; then
7674 echo "#! /bin/sh" >conf$$.sh
7675 echo "exit 0" >>conf$$.sh
7677 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7685 # Find out how to test for executable files. Don't use a zero-byte file,
7686 # as systems may use methods other than mode bits to determine executability.
7687 cat >conf$$.file <<_ASEOF
7691 chmod +x conf$$.file
7692 if test -x conf$$.file >/dev/null 2>&1; then
7693 ac_executable_p="test -x"
7695 ac_executable_p="test -f"
7699 # Extract the first word of "valgrind", so it can be a program name with args.
7700 set dummy valgrind; ac_word=$2
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702 $as_echo_n "checking for $ac_word... " >&6; }
7703 if ${ac_cv_path_valgrind_path+:} false; then :
7704 $as_echo_n "(cached) " >&6
7706 case "$valgrind_path" in
7708 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7711 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7712 for ac_dir in $PATH; do
7714 test -z "$ac_dir" && ac_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7717 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7718 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7728 valgrind_path="$ac_cv_path_valgrind_path"
7729 if test -n "$valgrind_path"; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7731 $as_echo "$valgrind_path" >&6; }
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734 $as_echo "no" >&6; }
7737 if test "x$valgrind_path" = "x" \
7738 || (test $have_valgrind_h = no \
7739 && test $gcc_cv_header_memcheck_h = no \
7740 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7741 as_fn_error $? "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7743 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7744 valgrind_command="$valgrind_path -q"
7746 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7752 # Enable code coverage collection
7753 # Check whether --enable-coverage was given.
7754 if test "${enable_coverage+set}" = set; then :
7755 enableval=$enable_coverage; case "${enableval}" in
7757 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7760 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7763 # a.k.a. --disable-coverage
7767 as_fn_error $? "unknown coverage setting $enableval" "$LINENO" 5
7776 # Check whether --enable-gather-detailed-mem-stats was given.
7777 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7778 enableval=$enable_gather_detailed_mem_stats;
7780 enable_gather_detailed_mem_stats=no
7783 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7785 cat >>confdefs.h <<_ACEOF
7786 #define GATHER_STATISTICS $gather_stats
7790 # Check whether --enable-valgrind-annotations was given.
7791 if test "${enable_valgrind_annotations+set}" = set; then :
7792 enableval=$enable_valgrind_annotations;
7794 enable_valgrind_annotations=no
7797 if test x$enable_valgrind_annotations != xno \
7798 || test x$ac_valgrind_checking != x; then
7799 if (test $have_valgrind_h = no \
7800 && test $gcc_cv_header_memcheck_h = no \
7801 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7802 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7805 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7809 # -------------------------------
7810 # Miscenalleous configure options
7811 # -------------------------------
7813 # Determine whether or not multilibs are enabled.
7814 # Check whether --enable-multilib was given.
7815 if test "${enable_multilib+set}" = set; then :
7816 enableval=$enable_multilib;
7823 # Determine whether or not multiarch is enabled.
7824 # Check whether --enable-multiarch was given.
7825 if test "${enable_multiarch+set}" = set; then :
7826 enableval=$enable_multiarch; case "${enableval}" in
7827 yes|no|auto) enable_multiarch=$enableval;;
7828 *) as_fn_error $? "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7831 enable_multiarch=auto
7834 if test x${enable_multiarch} = xauto; then
7835 if test x${with_native_system_header_dir} != x; then
7836 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7839 if test x$host != x$target && test "x$with_sysroot" = x; then
7840 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7845 $as_echo_n "checking for multiarch configuration... " >&6; }
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7848 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7850 # needed for setting the multiarch name for soft-float/hard-float ABIs
7854 # default stack clash protection guard size as power of twos in bytes.
7855 # Please keep these in sync with params.def.
7859 # Keep the default value when the option is not used to 0, this allows us to
7860 # distinguish between the cases where the user specifially set a value via
7861 # configure and when the normal default value is used.
7863 # Check whether --with-stack-clash-protection-guard-size was given.
7864 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7865 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7867 DEFAULT_STK_CLASH_GUARD_SIZE=0
7870 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7871 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7872 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7873 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
7877 cat >>confdefs.h <<_ACEOF
7878 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7882 # Enable __cxa_atexit for C++.
7883 # Check whether --enable-__cxa_atexit was given.
7884 if test "${enable___cxa_atexit+set}" = set; then :
7885 enableval=$enable___cxa_atexit;
7889 # Enable C extension for decimal float if target supports it.
7891 # Check whether --enable-decimal-float was given.
7892 if test "${enable_decimal_float+set}" = set; then :
7893 enableval=$enable_decimal_float;
7894 case $enable_decimal_float in
7895 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7896 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7897 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7904 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7905 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7906 i?86*-*-mingw* | x86_64*-*-mingw* | \
7907 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7908 enable_decimal_float=yes
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7912 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7913 enable_decimal_float=no
7920 # x86's use BID format instead of DPD
7921 case x$enable_decimal_float in
7924 aarch64* | i?86*-*-* | x86_64*-*-*)
7925 enable_decimal_float=bid
7928 enable_decimal_float=dpd
7931 default_decimal_float=$enable_decimal_float
7934 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7935 # dependency on libdecnumber.
7936 default_decimal_float=dpd
7943 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7945 cat >>confdefs.h <<_ACEOF
7946 #define ENABLE_DECIMAL_FLOAT $dfp
7950 # Use default_decimal_float for dependency.
7951 enable_decimal_float=$default_decimal_float
7953 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7955 cat >>confdefs.h <<_ACEOF
7956 #define ENABLE_DECIMAL_BID_FORMAT $bid
7960 # Enable C extension for fixed-point arithmetic.
7961 # Check whether --enable-fixed-point was given.
7962 if test "${enable_fixed_point+set}" = set; then :
7963 enableval=$enable_fixed_point;
7968 enable_fixed_point=yes
7972 enable_fixed_point=yes
7975 enable_fixed_point=yes
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7979 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7980 enable_fixed_point=no
7988 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7990 cat >>confdefs.h <<_ACEOF
7991 #define ENABLE_FIXED_POINT $fixedpoint
7996 # Pass with no value to take the default
7997 # Pass with a value to specify a thread package
7998 # Check whether --enable-threads was given.
7999 if test "${enable_threads+set}" = set; then :
8000 enableval=$enable_threads;
8006 # Check whether --enable-tls was given.
8007 if test "${enable_tls+set}" = set; then :
8008 enableval=$enable_tls;
8011 *) as_fn_error $? "'$enable_tls' is an invalid value for --enable-tls.
8012 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
8020 # Check whether --enable-vtable-verify was given.
8021 if test "${enable_vtable_verify+set}" = set; then :
8022 enableval=$enable_vtable_verify;
8024 enable_vtable_verify=no
8027 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
8029 cat >>confdefs.h <<_ACEOF
8030 #define ENABLE_VTABLE_VERIFY $vtable_verify
8034 # Check whether --enable-analyzer was given.
8035 if test "${enable_analyzer+set}" = set; then :
8036 enableval=$enable_analyzer; if test x$enable_analyzer = xno; then
8046 cat >>confdefs.h <<_ACEOF
8047 #define ENABLE_ANALYZER $analyzer
8051 # Check whether --enable-objc-gc was given.
8052 if test "${enable_objc_gc+set}" = set; then :
8053 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
8064 # Check whether --with-dwarf2 was given.
8065 if test "${with_dwarf2+set}" = set; then :
8066 withval=$with_dwarf2; dwarf2="$with_dwarf2"
8072 # Check whether --enable-shared was given.
8073 if test "${enable_shared+set}" = set; then :
8074 enableval=$enable_shared;
8075 case $enable_shared in
8079 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
8080 for pkg in $enableval; do
8081 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
8095 # Check whether --enable-gcov was given.
8096 if test "${enable_gcov+set}" = set; then :
8097 enableval=$enable_gcov;
8113 # Check whether --with-specs was given.
8114 if test "${with_specs+set}" = set; then :
8115 withval=$with_specs; CONFIGURE_SPECS=$withval
8125 # Check whether --with-pkgversion was given.
8126 if test "${with_pkgversion+set}" = set; then :
8127 withval=$with_pkgversion; case "$withval" in
8128 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
8130 *) PKGVERSION="($withval) " ;;
8141 # Check whether --with-bugurl was given.
8142 if test "${with_bugurl+set}" = set; then :
8143 withval=$with_bugurl; case "$withval" in
8144 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
8147 *) BUGURL="$withval"
8151 BUGURL="https://gcc.gnu.org/bugs/"
8161 REPORT_BUGS_TO="<$BUGURL>"
8162 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8169 # Allow overriding the default URL for documentation
8171 # Check whether --with-documentation-root-url was given.
8172 if test "${with_documentation_root_url+set}" = set; then :
8173 withval=$with_documentation_root_url; case "$withval" in
8174 yes) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8175 no) as_fn_error $? "documentation root URL not specified" "$LINENO" 5 ;;
8176 */) DOCUMENTATION_ROOT_URL="$withval" ;;
8177 *) as_fn_error $? "documentation root URL does not end with /" "$LINENO" 5 ;;
8180 DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
8185 cat >>confdefs.h <<_ACEOF
8186 #define DOCUMENTATION_ROOT_URL "$DOCUMENTATION_ROOT_URL"
8190 # Allow overriding the default URL for GCC changes
8192 # Check whether --with-changes-root-url was given.
8193 if test "${with_changes_root_url+set}" = set; then :
8194 withval=$with_changes_root_url; case "$withval" in
8195 yes) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8196 no) as_fn_error $? "changes root URL not specified" "$LINENO" 5 ;;
8197 */) CHANGES_ROOT_URL="$withval" ;;
8198 *) as_fn_error $? "changes root URL does not end with /" "$LINENO" 5 ;;
8201 CHANGES_ROOT_URL="https://gcc.gnu.org/"
8206 cat >>confdefs.h <<_ACEOF
8207 #define CHANGES_ROOT_URL "$CHANGES_ROOT_URL"
8211 # Sanity check enable_languages in case someone does not run the toplevel
8212 # configure # script.
8213 # Check whether --enable-languages was given.
8214 if test "${enable_languages+set}" = set; then :
8215 enableval=$enable_languages; case ,${enable_languages}, in
8217 # go safe -- we cannot be much sure without the toplevel
8219 # analysis of which target libs are present and usable
8223 as_fn_error $? "only the toplevel supports --enable-languages=all" "$LINENO" 5
8228 enable_languages=c,${enable_languages}
8236 # If top-level libada has been disabled, then wire in install-gnatlib
8237 # invocation with `make install', so that one can build and install
8238 # the library manually with `make -C gcc all gnatlib gnattools install'.
8239 if test x"$enable_libada" = xno; then
8240 gnat_install_lib=gnat-install-lib
8246 if test x"$enable_as_accelerator_for" != x; then
8248 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
8250 enable_as_accelerator=yes
8253 # In this case we expect offload compiler to be built as native, so we
8254 # need to rename the driver to avoid clashes with host's drivers.
8255 program_transform_name="s&^&${target}-&" ;;
8257 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
8258 program_transform_name=`echo $program_transform_name | sed $sedscript`
8259 accel_dir_suffix=/accel/${target_noncanonical}
8260 real_target_noncanonical=${enable_as_accelerator_for}
8266 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
8267 tgt=`echo $tgt | sed 's/=.*//'`
8271 *-intelmic-* | *-intelmicemul-*)
8272 omp_device_property=omp-device-properties-i386
8273 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
8276 omp_device_property=omp-device-properties-gcn
8277 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
8280 omp_device_property=omp-device-properties-nvptx
8281 omp_device_property_tmake_file="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
8284 as_fn_error $? "unknown offload target specified" "$LINENO" 5
8287 omp_device_properties="${omp_device_properties} ${tgt}=${omp_device_property}"
8288 omp_device_property_deps="${omp_device_property_deps} ${omp_device_property}"
8290 if test x"$offload_targets" = x; then
8291 offload_targets=$tgt
8293 offload_targets="$offload_targets,$tgt"
8300 cat >>confdefs.h <<_ACEOF
8301 #define OFFLOAD_TARGETS "$offload_targets"
8304 if test x"$enable_offloading" != x; then
8306 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
8310 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
8314 if test "x$enable_offload_defaulted" = xyes; then
8316 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
8321 # Check whether --with-multilib-list was given.
8322 if test "${with_multilib_list+set}" = set; then :
8323 withval=$with_multilib_list; :
8325 with_multilib_list=default
8330 # Check whether --with-multilib-generator was given.
8331 if test "${with_multilib_generator+set}" = set; then :
8332 withval=$with_multilib_generator; :
8334 with_multilib_generator=default
8338 # -------------------------
8339 # Checks for other programs
8340 # -------------------------
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8343 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8345 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8346 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8347 $as_echo_n "(cached) " >&6
8349 cat >conftest.make <<\_ACEOF
8352 @echo '@@@%%%=$(MAKE)=@@@%%%'
8354 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8355 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8357 eval ac_cv_prog_make_${ac_make}_set=yes;;
8359 eval ac_cv_prog_make_${ac_make}_set=no;;
8363 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8365 $as_echo "yes" >&6; }
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8370 SET_MAKE="MAKE=${MAKE-make}"
8374 # Find some useful tools
8375 for ac_prog in gawk mawk nawk awk
8377 # Extract the first word of "$ac_prog", so it can be a program name with args.
8378 set dummy $ac_prog; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if ${ac_cv_prog_AWK+:} false; then :
8382 $as_echo_n "(cached) " >&6
8384 if test -n "$AWK"; then
8385 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 test -z "$as_dir" && as_dir=.
8392 for ac_exec_ext in '' $ac_executable_extensions; do
8393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8394 ac_cv_prog_AWK="$ac_prog"
8395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8405 if test -n "$AWK"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8407 $as_echo "$AWK" >&6; }
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8414 test -n "$AWK" && break
8417 # We need awk to create options.cc and options.h.
8418 # Bail out if it's missing.
8420 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8424 $as_echo_n "checking whether ln -s works... " >&6; }
8425 if ${gcc_cv_prog_LN_S+:} false; then :
8426 $as_echo_n "(cached) " >&6
8428 rm -f conftestdata_t
8429 echo >conftestdata_f
8430 if ln -s conftestdata_f conftestdata_t 2>/dev/null
8432 gcc_cv_prog_LN_S="ln -s"
8434 if ln conftestdata_f conftestdata_t 2>/dev/null
8438 if cp -p conftestdata_f conftestdata_t 2>/dev/null
8440 gcc_cv_prog_LN_S="cp -p"
8446 rm -f conftestdata_f conftestdata_t
8449 LN_S="$gcc_cv_prog_LN_S"
8450 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8452 $as_echo "yes" >&6; }
8454 if test "$gcc_cv_prog_LN_S" = "ln"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8456 $as_echo "no, using ln" >&6; }
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8459 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8464 $as_echo_n "checking whether ln works... " >&6; }
8465 if ${acx_cv_prog_LN+:} false; then :
8466 $as_echo_n "(cached) " >&6
8468 rm -f conftestdata_t
8469 echo >conftestdata_f
8470 if ln conftestdata_f conftestdata_t 2>/dev/null
8476 rm -f conftestdata_f conftestdata_t
8479 if test $acx_cv_prog_LN = no; then
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8482 $as_echo "no, using $LN" >&6; }
8484 LN="$acx_cv_prog_LN"
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8486 $as_echo "yes" >&6; }
8489 if test -n "$ac_tool_prefix"; then
8490 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8491 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8493 $as_echo_n "checking for $ac_word... " >&6; }
8494 if ${ac_cv_prog_RANLIB+:} false; then :
8495 $as_echo_n "(cached) " >&6
8497 if test -n "$RANLIB"; then
8498 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504 test -z "$as_dir" && as_dir=.
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8507 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8517 RANLIB=$ac_cv_prog_RANLIB
8518 if test -n "$RANLIB"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8520 $as_echo "$RANLIB" >&6; }
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523 $as_echo "no" >&6; }
8528 if test -z "$ac_cv_prog_RANLIB"; then
8529 ac_ct_RANLIB=$RANLIB
8530 # Extract the first word of "ranlib", so it can be a program name with args.
8531 set dummy ranlib; 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_ac_ct_RANLIB+:} false; then :
8535 $as_echo_n "(cached) " >&6
8537 if test -n "$ac_ct_RANLIB"; then
8538 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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
8547 ac_cv_prog_ac_ct_RANLIB="ranlib"
8548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8557 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8558 if test -n "$ac_ct_RANLIB"; then
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8560 $as_echo "$ac_ct_RANLIB" >&6; }
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563 $as_echo "no" >&6; }
8566 if test "x$ac_ct_RANLIB" = x; then
8569 case $cross_compiling:$ac_tool_warned in
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8573 ac_tool_warned=yes ;;
8575 RANLIB=$ac_ct_RANLIB
8578 RANLIB="$ac_cv_prog_RANLIB"
8584 # Find a good install program. We prefer a C program (faster),
8585 # so one script is as good as another. But avoid the broken or
8586 # incompatible versions:
8587 # SysV /etc/install, /usr/sbin/install
8588 # SunOS /usr/etc/install
8589 # IRIX /sbin/install
8591 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8592 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8593 # ./install, which can be erroneously created by make from ./install.sh.
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8595 $as_echo_n "checking for a BSD compatible install... " >&6; }
8596 if test -z "$INSTALL"; then
8597 if ${ac_cv_path_install+:} false; then :
8598 $as_echo_n "(cached) " >&6
8600 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8601 for ac_dir in $PATH; do
8602 # Account for people who put trailing slashes in PATH elements.
8604 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8606 # OSF1 and SCO ODT 3.0 have their own names for install.
8607 for ac_prog in ginstall scoinst install; do
8608 if test -f $ac_dir/$ac_prog; then
8609 if test $ac_prog = install &&
8610 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8611 # AIX install. It has an incompatible calling convention.
8612 # OSF/1 installbsd also uses dspmsg, but is usable.
8615 ac_cv_path_install="$ac_dir/$ac_prog -c"
8626 if test "${ac_cv_path_install+set}" = set; then
8627 INSTALL="$ac_cv_path_install"
8629 # As a last resort, use the slow shell script. We don't cache a
8630 # path for INSTALL within a source directory, because that will
8631 # break other packages using the cache if that directory is
8632 # removed, or if the path is relative.
8633 INSTALL="$ac_install_sh"
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8637 $as_echo "$INSTALL" >&6; }
8639 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8640 # It thinks the first close brace ends the variable substitution.
8641 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8646 # See if cmp has --ignore-initial.
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8648 $as_echo_n "checking for cmp's capabilities... " >&6; }
8649 if ${gcc_cv_prog_cmp_skip+:} false; then :
8650 $as_echo_n "(cached) " >&6
8654 gcc_cv_prog_cmp_skip=slowcompare
8655 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8656 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8659 gcc_cv_prog_cmp_skip=gnucompare
8662 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8663 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8664 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8667 gcc_cv_prog_cmp_skip=fastcompare
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8675 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8676 make_compare_target=$gcc_cv_prog_cmp_skip
8680 # See if we have the mktemp command.
8681 # Extract the first word of "mktemp", so it can be a program name with args.
8682 set dummy mktemp; ac_word=$2
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8684 $as_echo_n "checking for $ac_word... " >&6; }
8685 if ${ac_cv_prog_have_mktemp_command+:} false; then :
8686 $as_echo_n "(cached) " >&6
8688 if test -n "$have_mktemp_command"; then
8689 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695 test -z "$as_dir" && as_dir=.
8696 for ac_exec_ext in '' $ac_executable_extensions; do
8697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8698 ac_cv_prog_have_mktemp_command="yes"
8699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8706 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8709 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8710 if test -n "$have_mktemp_command"; then
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8712 $as_echo "$have_mktemp_command" >&6; }
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8720 # See if makeinfo has been installed and is modern enough
8721 # that we can use it.
8723 # Extract the first word of "makeinfo", so it can be a program name with args.
8724 set dummy makeinfo; ac_word=$2
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8726 $as_echo_n "checking for $ac_word... " >&6; }
8727 if ${ac_cv_prog_MAKEINFO+:} false; then :
8728 $as_echo_n "(cached) " >&6
8730 if test -n "$MAKEINFO"; then
8731 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737 test -z "$as_dir" && as_dir=.
8738 for ac_exec_ext in '' $ac_executable_extensions; do
8739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8740 ac_cv_prog_MAKEINFO="makeinfo"
8741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8750 MAKEINFO=$ac_cv_prog_MAKEINFO
8751 if test -n "$MAKEINFO"; then
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8753 $as_echo "$MAKEINFO" >&6; }
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756 $as_echo "no" >&6; }
8760 if test -n "$MAKEINFO"; then
8761 # Found it, now check the version.
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8763 $as_echo_n "checking for modern makeinfo... " >&6; }
8764 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
8765 $as_echo_n "(cached) " >&6
8767 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8768 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8770 case $ac_prog_version in
8771 '') gcc_cv_prog_makeinfo_modern=no;;
8772 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8773 *) gcc_cv_prog_makeinfo_modern=no;;
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8778 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8780 gcc_cv_prog_makeinfo_modern=no
8782 if test $gcc_cv_prog_makeinfo_modern = no; then
8783 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8786 if test $gcc_cv_prog_makeinfo_modern = no; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8788 *** Makeinfo is missing or too old.
8789 *** Info documentation will not be built." >&5
8790 $as_echo "$as_me: WARNING:
8791 *** Makeinfo is missing or too old.
8792 *** Info documentation will not be built." >&2;}
8799 # Is pod2man recent enough to regenerate manpages?
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8801 $as_echo_n "checking for recent Pod::Man... " >&6; }
8802 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8804 $as_echo "yes" >&6; }
8805 GENERATED_MANPAGES=generated-manpages
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808 $as_echo "no" >&6; }
8813 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8818 # Extract the first word of "$ac_prog", so it can be a program name with args.
8819 set dummy $ac_prog; ac_word=$2
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8821 $as_echo_n "checking for $ac_word... " >&6; }
8822 if ${ac_cv_prog_FLEX+:} false; then :
8823 $as_echo_n "(cached) " >&6
8825 if test -n "$FLEX"; then
8826 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832 test -z "$as_dir" && as_dir=.
8833 for ac_exec_ext in '' $ac_executable_extensions; do
8834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8835 ac_cv_prog_FLEX="$ac_prog"
8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8845 FLEX=$ac_cv_prog_FLEX
8846 if test -n "$FLEX"; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8848 $as_echo "$FLEX" >&6; }
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 $as_echo "no" >&6; }
8855 test -n "$FLEX" && break
8857 test -n "$FLEX" || FLEX="$MISSING flex"
8861 for ac_prog in bison
8863 # Extract the first word of "$ac_prog", so it can be a program name with args.
8864 set dummy $ac_prog; ac_word=$2
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8866 $as_echo_n "checking for $ac_word... " >&6; }
8867 if ${ac_cv_prog_BISON+:} false; then :
8868 $as_echo_n "(cached) " >&6
8870 if test -n "$BISON"; then
8871 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877 test -z "$as_dir" && as_dir=.
8878 for ac_exec_ext in '' $ac_executable_extensions; do
8879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8880 ac_cv_prog_BISON="$ac_prog"
8881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8890 BISON=$ac_cv_prog_BISON
8891 if test -n "$BISON"; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8893 $as_echo "$BISON" >&6; }
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8896 $as_echo "no" >&6; }
8900 test -n "$BISON" && break
8902 test -n "$BISON" || BISON="$MISSING bison"
8905 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8906 # check for build == host before using them.
8909 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8910 && test -d ../binutils ; then
8911 NM='${objdir}/../binutils/nm-new'
8913 # Extract the first word of "nm", so it can be a program name with args.
8914 set dummy nm; ac_word=$2
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8916 $as_echo_n "checking for $ac_word... " >&6; }
8917 if ${ac_cv_prog_NM+:} false; then :
8918 $as_echo_n "(cached) " >&6
8920 if test -n "$NM"; then
8921 ac_cv_prog_NM="$NM" # Let the user override the test.
8923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927 test -z "$as_dir" && as_dir=.
8928 for ac_exec_ext in '' $ac_executable_extensions; do
8929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8942 if test -n "$NM"; then
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8944 $as_echo "$NM" >&6; }
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8947 $as_echo "no" >&6; }
8954 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8955 && test -d ../binutils ; then
8956 AR='${objdir}/../binutils/ar'
8958 # Extract the first word of "ar", so it can be a program name with args.
8959 set dummy ar; ac_word=$2
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8961 $as_echo_n "checking for $ac_word... " >&6; }
8962 if ${ac_cv_prog_AR+:} false; then :
8963 $as_echo_n "(cached) " >&6
8965 if test -n "$AR"; then
8966 ac_cv_prog_AR="$AR" # Let the user override the test.
8968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972 test -z "$as_dir" && as_dir=.
8973 for ac_exec_ext in '' $ac_executable_extensions; do
8974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8983 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8987 if test -n "$AR"; then
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8989 $as_echo "$AR" >&6; }
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8992 $as_echo "no" >&6; }
8998 # The jit documentation looks better if built with sphinx, but can be
8999 # built with texinfo if sphinx is not available.
9000 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
9001 # Extract the first word of "sphinx-build", so it can be a program name with args.
9002 set dummy sphinx-build; ac_word=$2
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9004 $as_echo_n "checking for $ac_word... " >&6; }
9005 if ${ac_cv_prog_doc_build_sys+:} false; then :
9006 $as_echo_n "(cached) " >&6
9008 if test -n "$doc_build_sys"; then
9009 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
9011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9015 test -z "$as_dir" && as_dir=.
9016 for ac_exec_ext in '' $ac_executable_extensions; do
9017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9018 ac_cv_prog_doc_build_sys="sphinx"
9019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9026 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
9029 doc_build_sys=$ac_cv_prog_doc_build_sys
9030 if test -n "$doc_build_sys"; then
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
9032 $as_echo "$doc_build_sys" >&6; }
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9035 $as_echo "no" >&6; }
9040 # --------------------
9041 # Checks for C headers
9042 # --------------------
9044 # Need to reject headers which give warnings, so that the -Werror bootstrap
9045 # works later. *sigh* This needs to come before all header checks.
9047 ac_c_preproc_warn_flag=yes
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9050 $as_echo_n "checking for ANSI C header files... " >&6; }
9051 if ${ac_cv_header_stdc+:} false; then :
9052 $as_echo_n "(cached) " >&6
9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055 /* end confdefs.h. */
9069 if ac_fn_cxx_try_compile "$LINENO"; then :
9070 ac_cv_header_stdc=yes
9072 ac_cv_header_stdc=no
9074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9076 if test $ac_cv_header_stdc = yes; then
9077 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9084 $EGREP "memchr" >/dev/null 2>&1; then :
9087 ac_cv_header_stdc=no
9093 if test $ac_cv_header_stdc = yes; then
9094 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9101 $EGREP "free" >/dev/null 2>&1; then :
9104 ac_cv_header_stdc=no
9110 if test $ac_cv_header_stdc = yes; then
9111 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9112 if test "$cross_compiling" = yes; then :
9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9119 #if ((' ' & 0x0FF) == 0x020)
9120 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9121 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9123 # define ISLOWER(c) \
9124 (('a' <= (c) && (c) <= 'i') \
9125 || ('j' <= (c) && (c) <= 'r') \
9126 || ('s' <= (c) && (c) <= 'z'))
9127 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9130 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9135 for (i = 0; i < 256; i++)
9136 if (XOR (islower (i), ISLOWER (i))
9137 || toupper (i) != TOUPPER (i))
9142 if ac_fn_cxx_try_run "$LINENO"; then :
9145 ac_cv_header_stdc=no
9147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9148 conftest.$ac_objext conftest.beam conftest.$ac_ext
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9154 $as_echo "$ac_cv_header_stdc" >&6; }
9155 if test $ac_cv_header_stdc = yes; then
9157 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9162 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9163 if ${ac_cv_header_time+:} false; then :
9164 $as_echo_n "(cached) " >&6
9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h. */
9168 #include <sys/types.h>
9169 #include <sys/time.h>
9175 if ((struct tm *) 0)
9181 if ac_fn_cxx_try_compile "$LINENO"; then :
9182 ac_cv_header_time=yes
9184 ac_cv_header_time=no
9186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9189 $as_echo "$ac_cv_header_time" >&6; }
9190 if test $ac_cv_header_time = yes; then
9192 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
9197 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
9198 if ${gcc_cv_header_string+:} false; then :
9199 $as_echo_n "(cached) " >&6
9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9204 #include <strings.h>
9213 if ac_fn_cxx_try_compile "$LINENO"; then :
9214 gcc_cv_header_string=yes
9216 gcc_cv_header_string=no
9218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
9221 $as_echo "$gcc_cv_header_string" >&6; }
9222 if test $gcc_cv_header_string = yes; then
9224 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9229 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9230 if ${ac_cv_header_sys_wait_h+:} false; then :
9231 $as_echo_n "(cached) " >&6
9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9235 #include <sys/types.h>
9236 #include <sys/wait.h>
9238 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9241 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9249 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9254 if ac_fn_cxx_try_compile "$LINENO"; then :
9255 ac_cv_header_sys_wait_h=yes
9257 ac_cv_header_sys_wait_h=no
9259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9262 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9263 if test $ac_cv_header_sys_wait_h = yes; then
9265 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
9270 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
9271 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
9272 $as_echo_n "(cached) " >&6
9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9276 #include <sys/types.h>
9277 #include <termios.h>
9283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9284 $EGREP "yes" >/dev/null 2>&1; then :
9285 ac_cv_sys_tiocgwinsz_in_termios_h=yes
9287 ac_cv_sys_tiocgwinsz_in_termios_h=no
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9293 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
9295 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9297 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
9298 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
9299 $as_echo_n "(cached) " >&6
9301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9303 #include <sys/types.h>
9304 #include <sys/ioctl.h>
9310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9311 $EGREP "yes" >/dev/null 2>&1; then :
9312 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
9314 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9320 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
9322 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
9324 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
9329 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
9330 fcntl.h ftw.h unistd.h sys/auxv.h sys/file.h sys/time.h sys/mman.h \
9331 sys/resource.h sys/param.h sys/times.h sys/stat.h sys/locking.h \
9332 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
9334 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9335 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
9336 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9337 cat >>confdefs.h <<_ACEOF
9338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9345 # Check for thread headers.
9346 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
9347 if test "x$ac_cv_header_thread_h" = xyes; then :
9353 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
9354 if test "x$ac_cv_header_pthread_h" = xyes; then :
9361 # These tests can't be done till we know if we have limits.h.
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9363 $as_echo_n "checking for CHAR_BIT... " >&6; }
9364 if ${gcc_cv_decl_char_bit+:} false; then :
9365 $as_echo_n "(cached) " >&6
9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h. */
9369 #ifdef HAVE_LIMITS_H
9376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9377 $EGREP "found" >/dev/null 2>&1; then :
9378 gcc_cv_decl_char_bit=yes
9380 gcc_cv_decl_char_bit=no
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9387 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9388 if test $gcc_cv_decl_char_bit = no; then
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9390 $as_echo_n "checking number of bits in a byte... " >&6; }
9391 if ${gcc_cv_c_nbby+:} false; then :
9392 $as_echo_n "(cached) " >&6
9396 while test $i -lt 65; do
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9404 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9405 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9411 if ac_fn_cxx_try_compile "$LINENO"; then :
9412 gcc_cv_c_nbby=$i; break
9414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9417 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9421 $as_echo "$gcc_cv_c_nbby" >&6; }
9422 if test $gcc_cv_c_nbby = failed; then
9423 as_fn_error $? "cannot determine number of bits in a byte" "$LINENO" 5
9426 cat >>confdefs.h <<_ACEOF
9427 #define CHAR_BIT $gcc_cv_c_nbby
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9433 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9434 if ${ac_cv_c_bigendian+:} false; then :
9435 $as_echo_n "(cached) " >&6
9437 ac_cv_c_bigendian=unknown
9438 # See if we're dealing with a universal compiler.
9439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440 /* end confdefs.h. */
9441 #ifndef __APPLE_CC__
9442 not a universal capable compiler
9447 if ac_fn_cxx_try_compile "$LINENO"; then :
9449 # Check for potential -arch flags. It is not universal unless
9450 # there are at least two -arch flags with different values.
9453 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9454 if test -n "$ac_prev"; then
9456 i?86 | x86_64 | ppc | ppc64)
9457 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9460 ac_cv_c_bigendian=universal
9466 elif test "x$ac_word" = "x-arch"; then
9471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9472 if test $ac_cv_c_bigendian = unknown; then
9473 # See if sys/param.h defines the BYTE_ORDER macro.
9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9476 #include <sys/types.h>
9477 #include <sys/param.h>
9482 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9483 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9492 if ac_fn_cxx_try_compile "$LINENO"; then :
9493 # It does; now see whether it defined to BIG_ENDIAN or not.
9494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9495 /* end confdefs.h. */
9496 #include <sys/types.h>
9497 #include <sys/param.h>
9502 #if BYTE_ORDER != BIG_ENDIAN
9510 if ac_fn_cxx_try_compile "$LINENO"; then :
9511 ac_cv_c_bigendian=yes
9513 ac_cv_c_bigendian=no
9515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9519 if test $ac_cv_c_bigendian = unknown; then
9520 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9528 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9536 if ac_fn_cxx_try_compile "$LINENO"; then :
9537 # It does; now see whether it defined to _BIG_ENDIAN or not.
9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9553 if ac_fn_cxx_try_compile "$LINENO"; then :
9554 ac_cv_c_bigendian=yes
9556 ac_cv_c_bigendian=no
9558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9562 if test $ac_cv_c_bigendian = unknown; then
9563 # Compile a test program.
9564 if test "$cross_compiling" = yes; then :
9565 # Try to guess by grepping values from an object file.
9566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567 /* end confdefs.h. */
9568 short int ascii_mm[] =
9569 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9570 short int ascii_ii[] =
9571 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9572 int use_ascii (int i) {
9573 return ascii_mm[i] + ascii_ii[i];
9575 short int ebcdic_ii[] =
9576 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9577 short int ebcdic_mm[] =
9578 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9579 int use_ebcdic (int i) {
9580 return ebcdic_mm[i] + ebcdic_ii[i];
9587 return use_ascii (foo) == use_ebcdic (foo);
9592 if ac_fn_cxx_try_compile "$LINENO"; then :
9593 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9594 ac_cv_c_bigendian=yes
9596 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9597 if test "$ac_cv_c_bigendian" = unknown; then
9598 ac_cv_c_bigendian=no
9600 # finding both strings is unlikely to happen, but who knows?
9601 ac_cv_c_bigendian=unknown
9605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9608 /* end confdefs.h. */
9609 $ac_includes_default
9614 /* Are we little or big endian? From Harbison&Steele. */
9618 char c[sizeof (long int)];
9621 return u.c[sizeof (long int) - 1] == 1;
9627 if ac_fn_cxx_try_run "$LINENO"; then :
9628 ac_cv_c_bigendian=no
9630 ac_cv_c_bigendian=yes
9632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9633 conftest.$ac_objext conftest.beam conftest.$ac_ext
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9639 $as_echo "$ac_cv_c_bigendian" >&6; }
9640 case $ac_cv_c_bigendian in #(
9642 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9648 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9652 as_fn_error $? "unknown endianness
9653 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9657 # ----------------------
9658 # Checks for C++ headers
9659 # ----------------------
9662 ac_cpp='$CXXCPP $CPPFLAGS'
9663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9667 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9668 if test -z "$CXXCPP"; then
9669 if ${ac_cv_prog_CXXCPP+:} false; then :
9670 $as_echo_n "(cached) " >&6
9672 # Double quotes because CXXCPP needs to be expanded
9673 for CXXCPP in "$CXX -E" "/lib/cpp"
9676 for ac_cxx_preproc_warn_flag in '' yes
9678 # Use a header file that comes with gcc, so configuring glibc
9679 # with a fresh cross-compiler works.
9680 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9681 # <limits.h> exists even on freestanding compilers.
9682 # On the NeXT, cc -E runs the code through the compiler's parser,
9683 # not just through cpp. "Syntax error" is here to catch this case.
9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685 /* end confdefs.h. */
9687 # include <limits.h>
9689 # include <assert.h>
9693 if ac_fn_cxx_try_cpp "$LINENO"; then :
9696 # Broken: fails on valid input.
9699 rm -f conftest.err conftest.i conftest.$ac_ext
9701 # OK, works on sane cases. Now check whether nonexistent headers
9702 # can be detected and how.
9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704 /* end confdefs.h. */
9705 #include <ac_nonexistent.h>
9707 if ac_fn_cxx_try_cpp "$LINENO"; then :
9708 # Broken: success on invalid input.
9711 # Passes both tests.
9715 rm -f conftest.err conftest.i conftest.$ac_ext
9718 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9719 rm -f conftest.i conftest.err conftest.$ac_ext
9720 if $ac_preproc_ok; then :
9725 ac_cv_prog_CXXCPP=$CXXCPP
9728 CXXCPP=$ac_cv_prog_CXXCPP
9730 ac_cv_prog_CXXCPP=$CXXCPP
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9733 $as_echo "$CXXCPP" >&6; }
9735 for ac_cxx_preproc_warn_flag in '' yes
9737 # Use a header file that comes with gcc, so configuring glibc
9738 # with a fresh cross-compiler works.
9739 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9740 # <limits.h> exists even on freestanding compilers.
9741 # On the NeXT, cc -E runs the code through the compiler's parser,
9742 # not just through cpp. "Syntax error" is here to catch this case.
9743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744 /* end confdefs.h. */
9746 # include <limits.h>
9748 # include <assert.h>
9752 if ac_fn_cxx_try_cpp "$LINENO"; then :
9755 # Broken: fails on valid input.
9758 rm -f conftest.err conftest.i conftest.$ac_ext
9760 # OK, works on sane cases. Now check whether nonexistent headers
9761 # can be detected and how.
9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h. */
9764 #include <ac_nonexistent.h>
9766 if ac_fn_cxx_try_cpp "$LINENO"; then :
9767 # Broken: success on invalid input.
9770 # Passes both tests.
9774 rm -f conftest.err conftest.i conftest.$ac_ext
9777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9778 rm -f conftest.i conftest.err conftest.$ac_ext
9779 if $ac_preproc_ok; then :
9782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9785 See \`config.log' for more details" >&5
9786 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9787 See \`config.log' for more details" >&2;}; }
9791 ac_cpp='$CXXCPP $CPPFLAGS'
9792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9797 for ac_header in unordered_map
9799 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9800 if test "x$ac_cv_header_unordered_map" = xyes; then :
9801 cat >>confdefs.h <<_ACEOF
9802 #define HAVE_UNORDERED_MAP 1
9808 for ac_header in tr1/unordered_map
9810 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9811 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9812 cat >>confdefs.h <<_ACEOF
9813 #define HAVE_TR1_UNORDERED_MAP 1
9819 for ac_header in ext/hash_map
9821 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9822 if test "x$ac_cv_header_ext_hash_map" = xyes; then :
9823 cat >>confdefs.h <<_ACEOF
9824 #define HAVE_EXT_HASH_MAP 1
9832 # Dependency checking.
9835 rm -rf .tst 2>/dev/null
9836 mkdir .tst 2>/dev/null
9837 if test -d .tst; then
9842 rmdir .tst 2>/dev/null
9844 DEPDIR="${am__leading_dot}deps"
9846 ac_config_commands="$ac_config_commands depdir"
9849 ac_config_commands="$ac_config_commands gccdepdir"
9852 depcc="$CXX" am_compiler_list=
9854 am_depcomp=$ac_aux_dir/depcomp
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9856 $as_echo_n "checking dependency style of $depcc... " >&6; }
9857 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
9858 $as_echo_n "(cached) " >&6
9860 if test -f "$am_depcomp"; then
9861 # We make a subdir and do the tests there. Otherwise we can end up
9862 # making bogus files that we don't know about and never remove. For
9863 # instance it was reported that on HP-UX the gcc test will end up
9864 # making a dummy file named `D' -- because `-MD' means `put the output
9867 # Copy depcomp to subdir because otherwise we won't find it if we're
9868 # using a relative directory.
9869 cp "$am_depcomp" conftest.dir
9871 # We will build objects and dependencies in a subdirectory because
9872 # it helps to detect inapplicable dependency modes. For instance
9873 # both Tru64's cc and ICC support -MD to output dependencies as a
9874 # side effect of compilation, but ICC will put the dependencies in
9875 # the current directory while Tru64 will put them in the object
9879 am_cv_CXX_dependencies_compiler_type=none
9880 if test "$am_compiler_list" = ""; then
9881 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9883 for depmode in $am_compiler_list; do
9884 if test $depmode = none; then break; fi
9886 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9887 # Setup a source with many dependencies, because some compilers
9888 # like to wrap large dependency lists on column 80 (with \), and
9889 # we should not choose a depcomp mode which is confused by this.
9891 # We need to recreate these files for each test, as the compiler may
9892 # overwrite some of them when testing with obscure command lines.
9893 # This happens at least with the AIX C compiler.
9895 for i in 1 2 3 4 5 6; do
9896 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9897 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9898 # Solaris 8's {/usr,}/bin/sh.
9899 touch sub/conftst$i.h
9901 echo "include sub/conftest.Po" > confmf
9903 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9904 # mode. It turns out that the SunPro C++ compiler does not properly
9905 # handle `-M -o', and we need to detect this.
9906 depcmd="depmode=$depmode \
9907 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9908 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9909 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9910 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9911 if env $depcmd > conftest.err 2>&1 &&
9912 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9913 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9914 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9915 # icc doesn't choke on unknown options, it will just issue warnings
9916 # or remarks (even with -Werror). So we grep stderr for any message
9917 # that says an option was ignored or not supported.
9918 # When given -MP, icc 7.0 and 7.1 complain thusly:
9919 # icc: Command line warning: ignoring option '-M'; no argument required
9920 # The diagnosis changed in icc 8.0:
9921 # icc: Command line remark: option '-MP' not supported
9922 if (grep 'ignoring option' conftest.err ||
9923 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9924 am_cv_CXX_dependencies_compiler_type=$depmode
9925 $as_echo "$as_me:$LINENO: success" >&5
9929 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9930 sed -e 's/^/| /' < conftest.err >&5
9936 am_cv_CXX_dependencies_compiler_type=none
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9941 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9942 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9943 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
9944 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9954 # These libraries may be used by collect2.
9955 # We may need a special search path to get them linked.
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9957 $as_echo_n "checking for collect2 libraries... " >&6; }
9958 if ${gcc_cv_collect2_libs+:} false; then :
9959 $as_echo_n "(cached) " >&6
9962 for libs in '' -lld -lmld \
9963 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9964 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968 /* end confdefs.h. */
9970 /* Override any GCC internal prototype to avoid an error.
9971 Use char because int might match the return type of a GCC
9972 builtin and then its argument prototype would still apply. */
9985 if ac_fn_cxx_try_link "$LINENO"; then :
9986 gcc_cv_collect2_libs="$libs"; break
9988 rm -f core conftest.err conftest.$ac_objext \
9989 conftest$ac_exeext conftest.$ac_ext
9992 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9995 $as_echo "$gcc_cv_collect2_libs" >&6; }
9996 case $gcc_cv_collect2_libs in
9998 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
10002 # When building Ada code on Alpha, we need exc_resume which is usually in
10003 # -lexc. So test for it.
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
10007 $as_echo_n "checking for library containing exc_resume... " >&6; }
10008 if ${ac_cv_search_exc_resume+:} false; then :
10009 $as_echo_n "(cached) " >&6
10011 ac_func_search_save_LIBS=$LIBS
10012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013 /* end confdefs.h. */
10015 /* Override any GCC internal prototype to avoid an error.
10016 Use char because int might match the return type of a GCC
10017 builtin and then its argument prototype would still apply. */
10021 char exc_resume ();
10025 return exc_resume ();
10030 for ac_lib in '' exc; do
10031 if test -z "$ac_lib"; then
10032 ac_res="none required"
10035 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10037 if ac_fn_cxx_try_link "$LINENO"; then :
10038 ac_cv_search_exc_resume=$ac_res
10040 rm -f core conftest.err conftest.$ac_objext \
10042 if ${ac_cv_search_exc_resume+:} false; then :
10046 if ${ac_cv_search_exc_resume+:} false; then :
10049 ac_cv_search_exc_resume=no
10051 rm conftest.$ac_ext
10052 LIBS=$ac_func_search_save_LIBS
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
10055 $as_echo "$ac_cv_search_exc_resume" >&6; }
10056 ac_res=$ac_cv_search_exc_resume
10057 if test "$ac_res" != no; then :
10058 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10062 GNAT_LIBEXC="$LIBS"
10066 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
10070 $as_echo_n "checking for library containing kstat_open... " >&6; }
10071 if ${ac_cv_search_kstat_open+:} false; then :
10072 $as_echo_n "(cached) " >&6
10074 ac_func_search_save_LIBS=$LIBS
10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h. */
10078 /* Override any GCC internal prototype to avoid an error.
10079 Use char because int might match the return type of a GCC
10080 builtin and then its argument prototype would still apply. */
10084 char kstat_open ();
10088 return kstat_open ();
10093 for ac_lib in '' kstat; do
10094 if test -z "$ac_lib"; then
10095 ac_res="none required"
10098 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10100 if ac_fn_cxx_try_link "$LINENO"; then :
10101 ac_cv_search_kstat_open=$ac_res
10103 rm -f core conftest.err conftest.$ac_objext \
10105 if ${ac_cv_search_kstat_open+:} false; then :
10109 if ${ac_cv_search_kstat_open+:} false; then :
10112 ac_cv_search_kstat_open=no
10114 rm conftest.$ac_ext
10115 LIBS=$ac_func_search_save_LIBS
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
10118 $as_echo "$ac_cv_search_kstat_open" >&6; }
10119 ac_res=$ac_cv_search_kstat_open
10120 if test "$ac_res" != no; then :
10121 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10125 EXTRA_GCC_LIBS="$LIBS"
10129 # Solaris needs libsocket and libnsl for socket functions before 11.4.
10130 # C++ needs those for libcody.
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10135 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10136 if ${ac_cv_search_gethostbyname+:} false; then :
10137 $as_echo_n "(cached) " >&6
10139 ac_func_search_save_LIBS=$LIBS
10140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141 /* end confdefs.h. */
10143 /* Override any GCC internal prototype to avoid an error.
10144 Use char because int might match the return type of a GCC
10145 builtin and then its argument prototype would still apply. */
10149 char gethostbyname ();
10153 return gethostbyname ();
10158 for ac_lib in '' nsl; do
10159 if test -z "$ac_lib"; then
10160 ac_res="none required"
10163 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10165 if ac_fn_cxx_try_link "$LINENO"; then :
10166 ac_cv_search_gethostbyname=$ac_res
10168 rm -f core conftest.err conftest.$ac_objext \
10170 if ${ac_cv_search_gethostbyname+:} false; then :
10174 if ${ac_cv_search_gethostbyname+:} false; then :
10177 ac_cv_search_gethostbyname=no
10179 rm conftest.$ac_ext
10180 LIBS=$ac_func_search_save_LIBS
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10183 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10184 ac_res=$ac_cv_search_gethostbyname
10185 if test "$ac_res" != no; then :
10186 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
10191 $as_echo_n "checking for library containing socket... " >&6; }
10192 if ${ac_cv_search_socket+:} false; then :
10193 $as_echo_n "(cached) " >&6
10195 ac_func_search_save_LIBS=$LIBS
10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h. */
10199 /* Override any GCC internal prototype to avoid an error.
10200 Use char because int might match the return type of a GCC
10201 builtin and then its argument prototype would still apply. */
10214 for ac_lib in '' socket; do
10215 if test -z "$ac_lib"; then
10216 ac_res="none required"
10219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10221 if ac_fn_cxx_try_link "$LINENO"; then :
10222 ac_cv_search_socket=$ac_res
10224 rm -f core conftest.err conftest.$ac_objext \
10226 if ${ac_cv_search_socket+:} false; then :
10230 if ${ac_cv_search_socket+:} false; then :
10233 ac_cv_search_socket=no
10235 rm conftest.$ac_ext
10236 LIBS=$ac_func_search_save_LIBS
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
10239 $as_echo "$ac_cv_search_socket" >&6; }
10240 ac_res=$ac_cv_search_socket
10241 if test "$ac_res" != no; then :
10242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10247 $as_echo_n "checking for socket in -lsocket... " >&6; }
10248 if ${ac_cv_lib_socket_socket+:} false; then :
10249 $as_echo_n "(cached) " >&6
10251 ac_check_lib_save_LIBS=$LIBS
10252 LIBS="-lsocket -lnsl $LIBS"
10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10254 /* end confdefs.h. */
10256 /* Override any GCC internal prototype to avoid an error.
10257 Use char because int might match the return type of a GCC
10258 builtin and then its argument prototype would still apply. */
10271 if ac_fn_cxx_try_link "$LINENO"; then :
10272 ac_cv_lib_socket_socket=yes
10274 ac_cv_lib_socket_socket=no
10276 rm -f core conftest.err conftest.$ac_objext \
10277 conftest$ac_exeext conftest.$ac_ext
10278 LIBS=$ac_check_lib_save_LIBS
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10281 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10282 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10283 LIBS="-lsocket -lnsl $LIBS"
10293 # Some systems put ldexp and frexp in libm instead of libc; assume
10294 # they're both in the same place. jcf-dump needs them.
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
10298 $as_echo_n "checking for library containing ldexp... " >&6; }
10299 if ${ac_cv_search_ldexp+:} false; then :
10300 $as_echo_n "(cached) " >&6
10302 ac_func_search_save_LIBS=$LIBS
10303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10304 /* end confdefs.h. */
10306 /* Override any GCC internal prototype to avoid an error.
10307 Use char because int might match the return type of a GCC
10308 builtin and then its argument prototype would still apply. */
10321 for ac_lib in '' m; do
10322 if test -z "$ac_lib"; then
10323 ac_res="none required"
10326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10328 if ac_fn_cxx_try_link "$LINENO"; then :
10329 ac_cv_search_ldexp=$ac_res
10331 rm -f core conftest.err conftest.$ac_objext \
10333 if ${ac_cv_search_ldexp+:} false; then :
10337 if ${ac_cv_search_ldexp+:} false; then :
10340 ac_cv_search_ldexp=no
10342 rm conftest.$ac_ext
10343 LIBS=$ac_func_search_save_LIBS
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
10346 $as_echo "$ac_cv_search_ldexp" >&6; }
10347 ac_res=$ac_cv_search_ldexp
10348 if test "$ac_res" != no; then :
10349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10357 # Some systems need dlopen
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10361 $as_echo_n "checking for library containing dlopen... " >&6; }
10362 if ${ac_cv_search_dlopen+:} false; then :
10363 $as_echo_n "(cached) " >&6
10365 ac_func_search_save_LIBS=$LIBS
10366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367 /* end confdefs.h. */
10369 /* Override any GCC internal prototype to avoid an error.
10370 Use char because int might match the return type of a GCC
10371 builtin and then its argument prototype would still apply. */
10384 for ac_lib in '' dl; do
10385 if test -z "$ac_lib"; then
10386 ac_res="none required"
10389 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10391 if ac_fn_cxx_try_link "$LINENO"; then :
10392 ac_cv_search_dlopen=$ac_res
10394 rm -f core conftest.err conftest.$ac_objext \
10396 if ${ac_cv_search_dlopen+:} false; then :
10400 if ${ac_cv_search_dlopen+:} false; then :
10403 ac_cv_search_dlopen=no
10405 rm conftest.$ac_ext
10406 LIBS=$ac_func_search_save_LIBS
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10409 $as_echo "$ac_cv_search_dlopen" >&6; }
10410 ac_res=$ac_cv_search_dlopen
10411 if test "$ac_res" != no; then :
10412 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10420 # Use <inttypes.h> only if it exists,
10421 # doesn't clash with <sys/types.h>, declares intmax_t and defines
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
10424 $as_echo_n "checking for inttypes.h... " >&6; }
10425 if ${gcc_cv_header_inttypes_h+:} false; then :
10426 $as_echo_n "(cached) " >&6
10428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429 /* end confdefs.h. */
10430 #define __STDC_FORMAT_MACROS
10431 #include <sys/types.h>
10432 #include <inttypes.h>
10444 if ac_fn_cxx_try_compile "$LINENO"; then :
10445 gcc_cv_header_inttypes_h=yes
10447 gcc_cv_header_inttypes_h=no
10449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
10453 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
10454 if test $gcc_cv_header_inttypes_h = yes; then
10456 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
10460 # Look for the ZSTD package.
10470 # Check whether --with-zstd was given.
10471 if test "${with_zstd+set}" = set; then :
10472 withval=$with_zstd;
10476 # Check whether --with-zstd-include was given.
10477 if test "${with_zstd_include+set}" = set; then :
10478 withval=$with_zstd_include;
10482 # Check whether --with-zstd-lib was given.
10483 if test "${with_zstd_lib+set}" = set; then :
10484 withval=$with_zstd_lib;
10487 case "x$with_zstd" in
10493 *) ZSTD_INCLUDE=$with_zstd/include
10494 ZSTD_LIB=$with_zstd/lib
10498 if test "x$with_zstd" != xno; then
10499 if test "x$with_zstd_include" != x; then
10500 ZSTD_INCLUDE=$with_zstd_include
10502 if test "x$with_zstd_lib" != x; then
10503 ZSTD_LIB=$with_zstd_lib
10505 if test "x$ZSTD_INCLUDE" != x \
10506 && test "x$ZSTD_INCLUDE" != xno; then
10507 ZSTD_CPPFLAGS=-I$ZSTD_INCLUDE
10509 if test "x$ZSTD_LIB" != x \
10510 && test "x$ZSTD_LIB" != xno; then
10511 ZSTD_LDFLAGS=-L$ZSTD_LIB
10514 CXXFLAGS="$CXXFLAGS $ZSTD_CPPFLAGS"
10515 LDFLAGS="$LDFLAGS $ZSTD_LDFLAGS"
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
10518 $as_echo_n "checking for zstd.h... " >&6; }
10519 if ${gcc_cv_header_zstd_h+:} false; then :
10520 $as_echo_n "(cached) " >&6
10522 # We require version 1.3.0 or later. This is the first version that has
10523 # ZSTD_getFrameContentSize.
10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h. */
10527 #if ZSTD_VERSION_NUMBER < 10300
10528 #error "need zstd 1.3.0 or better"
10538 if ac_fn_cxx_try_compile "$LINENO"; then :
10539 gcc_cv_header_zstd_h=yes
10541 gcc_cv_header_zstd_h=no
10543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10547 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10548 if test $gcc_cv_header_zstd_h = yes; then
10550 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10552 elif test "x$with_zstd" != x; then
10553 as_fn_error $? "Unable to find zstd.h. See config.log for details." "$LINENO" 5
10556 # LTO can use zstd compression algorithm
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10560 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10561 if ${ac_cv_search_ZSTD_compress+:} false; then :
10562 $as_echo_n "(cached) " >&6
10564 ac_func_search_save_LIBS=$LIBS
10565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566 /* end confdefs.h. */
10568 /* Override any GCC internal prototype to avoid an error.
10569 Use char because int might match the return type of a GCC
10570 builtin and then its argument prototype would still apply. */
10574 char ZSTD_compress ();
10578 return ZSTD_compress ();
10583 for ac_lib in '' zstd; do
10584 if test -z "$ac_lib"; then
10585 ac_res="none required"
10588 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10590 if ac_fn_cxx_try_link "$LINENO"; then :
10591 ac_cv_search_ZSTD_compress=$ac_res
10593 rm -f core conftest.err conftest.$ac_objext \
10595 if ${ac_cv_search_ZSTD_compress+:} false; then :
10599 if ${ac_cv_search_ZSTD_compress+:} false; then :
10602 ac_cv_search_ZSTD_compress=no
10604 rm conftest.$ac_ext
10605 LIBS=$ac_func_search_save_LIBS
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10608 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10609 ac_res=$ac_cv_search_ZSTD_compress
10610 if test "$ac_res" != no; then :
10611 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10622 for ac_func in times clock kill getrlimit setrlimit atoq \
10623 popen sysconf strsignal getrusage nl_langinfo \
10624 gettimeofday mbstowcs wcswidth mmap posix_fallocate setlocale \
10625 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 getauxval
10627 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10628 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10629 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10630 cat >>confdefs.h <<_ACEOF
10631 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10638 if test x$ac_cv_func_mbstowcs = xyes; then
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10640 $as_echo_n "checking whether mbstowcs works... " >&6; }
10641 if ${gcc_cv_func_mbstowcs_works+:} false; then :
10642 $as_echo_n "(cached) " >&6
10644 if test "$cross_compiling" = yes; then :
10645 gcc_cv_func_mbstowcs_works=yes
10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649 #include <stdlib.h>
10652 mbstowcs(0, "", 0);
10656 if ac_fn_cxx_try_run "$LINENO"; then :
10657 gcc_cv_func_mbstowcs_works=yes
10659 gcc_cv_func_mbstowcs_works=no
10661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10662 conftest.$ac_objext conftest.beam conftest.$ac_ext
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10667 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10668 if test x$gcc_cv_func_mbstowcs_works = xyes; then
10670 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10675 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10676 if test "x$ac_cv_type_ssize_t" = xyes; then :
10680 cat >>confdefs.h <<_ACEOF
10681 #define ssize_t int
10686 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10687 if test "x$ac_cv_type_caddr_t" = xyes; then :
10691 cat >>confdefs.h <<_ACEOF
10692 #define caddr_t char *
10697 ac_fn_cxx_check_type "$LINENO" "sighander_t" "ac_cv_type_sighander_t" "signal.h
10699 if test "x$ac_cv_type_sighander_t" = xyes; then :
10701 $as_echo "#define HAVE_SIGHANDLER_T 1" >>confdefs.h
10707 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10708 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
10709 gcc_header_sys_mman_h=yes
10711 gcc_header_sys_mman_h=no
10714 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10715 if test "x$ac_cv_func_mmap" = xyes; then :
10721 if test "$gcc_header_sys_mman_h" != yes \
10722 || test "$gcc_func_mmap" != yes; then
10723 gcc_cv_func_mmap_file=no
10724 gcc_cv_func_mmap_dev_zero=no
10725 gcc_cv_func_mmap_anon=no
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10728 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10729 if ${gcc_cv_func_mmap_file+:} false; then :
10730 $as_echo_n "(cached) " >&6
10732 # Add a system to this blacklist if
10733 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10734 # memory area containing the same data that you'd get if you applied
10735 # read() to the same fd. The only system known to have a problem here
10736 # is VMS, where text files have record structure.
10739 gcc_cv_func_mmap_file=no ;;
10741 gcc_cv_func_mmap_file=yes;;
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10745 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10747 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10748 if ${gcc_cv_func_mmap_dev_zero+:} false; then :
10749 $as_echo_n "(cached) " >&6
10751 # Add a system to this blacklist if it has mmap() but /dev/zero
10752 # does not exist, or if mmapping /dev/zero does not give anonymous
10753 # zeroed pages with both the following properties:
10754 # 1. If you map N consecutive pages in with one call, and then
10755 # unmap any subset of those pages, the pages that were not
10756 # explicitly unmapped remain accessible.
10757 # 2. If you map two adjacent blocks of memory and then unmap them
10758 # both at once, they must both go away.
10759 # Systems known to be in this category are Windows (all variants),
10762 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10763 gcc_cv_func_mmap_dev_zero=no ;;
10765 gcc_cv_func_mmap_dev_zero=yes;;
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10769 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10771 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10773 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10774 if ${gcc_cv_decl_map_anon+:} false; then :
10775 $as_echo_n "(cached) " >&6
10777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h. */
10779 #include <sys/types.h>
10780 #include <sys/mman.h>
10781 #include <unistd.h>
10783 #ifndef MAP_ANONYMOUS
10784 #define MAP_ANONYMOUS MAP_ANON
10790 int n = MAP_ANONYMOUS;
10795 if ac_fn_cxx_try_compile "$LINENO"; then :
10796 gcc_cv_decl_map_anon=yes
10798 gcc_cv_decl_map_anon=no
10800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10803 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10805 if test $gcc_cv_decl_map_anon = no; then
10806 gcc_cv_func_mmap_anon=no
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10809 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10810 if ${gcc_cv_func_mmap_anon+:} false; then :
10811 $as_echo_n "(cached) " >&6
10813 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10814 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10815 # doesn't give anonymous zeroed pages with the same properties listed
10816 # above for use of /dev/zero.
10817 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10819 *vms* | cygwin* | pe | mingw* | sco* | udk* )
10820 gcc_cv_func_mmap_anon=no ;;
10822 gcc_cv_func_mmap_anon=yes;;
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10826 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10830 if test $gcc_cv_func_mmap_file = yes; then
10832 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10835 if test $gcc_cv_func_mmap_dev_zero = yes; then
10837 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10840 if test $gcc_cv_func_mmap_anon = yes; then
10842 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10849 # Under VMS, vfork works very differently than on Unix. The standard test
10850 # won't work, and it isn't easily adaptable. It makes more sense to
10852 ac_cv_func_vfork_works=yes
10855 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10856 if test "x$ac_cv_type_pid_t" = xyes; then :
10860 cat >>confdefs.h <<_ACEOF
10866 for ac_header in vfork.h
10868 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10869 if test "x$ac_cv_header_vfork_h" = xyes; then :
10870 cat >>confdefs.h <<_ACEOF
10871 #define HAVE_VFORK_H 1
10877 for ac_func in fork vfork
10879 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10880 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10881 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10882 cat >>confdefs.h <<_ACEOF
10883 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10889 if test "x$ac_cv_func_fork" = xyes; then
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10891 $as_echo_n "checking for working fork... " >&6; }
10892 if ${ac_cv_func_fork_works+:} false; then :
10893 $as_echo_n "(cached) " >&6
10895 if test "$cross_compiling" = yes; then :
10896 ac_cv_func_fork_works=cross
10898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10899 /* end confdefs.h. */
10900 $ac_includes_default
10905 /* By Ruediger Kuhlmann. */
10906 return fork () < 0;
10912 if ac_fn_cxx_try_run "$LINENO"; then :
10913 ac_cv_func_fork_works=yes
10915 ac_cv_func_fork_works=no
10917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10918 conftest.$ac_objext conftest.beam conftest.$ac_ext
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10923 $as_echo "$ac_cv_func_fork_works" >&6; }
10926 ac_cv_func_fork_works=$ac_cv_func_fork
10928 if test "x$ac_cv_func_fork_works" = xcross; then
10930 *-*-amigaos* | *-*-msdosdjgpp*)
10931 # Override, as these systems have only a dummy fork() stub
10932 ac_cv_func_fork_works=no
10935 ac_cv_func_fork_works=yes
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10939 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10941 ac_cv_func_vfork_works=$ac_cv_func_vfork
10942 if test "x$ac_cv_func_vfork" = xyes; then
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10944 $as_echo_n "checking for working vfork... " >&6; }
10945 if ${ac_cv_func_vfork_works+:} false; then :
10946 $as_echo_n "(cached) " >&6
10948 if test "$cross_compiling" = yes; then :
10949 ac_cv_func_vfork_works=cross
10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10953 /* Thanks to Paul Eggert for this test. */
10954 $ac_includes_default
10955 #include <sys/wait.h>
10956 #ifdef HAVE_VFORK_H
10957 # include <vfork.h>
10959 /* On some sparc systems, changes by the child to local and incoming
10960 argument registers are propagated back to the parent. The compiler
10961 is told about this with #include <vfork.h>, but some compilers
10962 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10963 static variable whose address is put into a register that is
10964 clobbered by the vfork. */
10967 sparc_address_test (int arg)
10969 sparc_address_test (arg) int arg;
10972 static pid_t child;
10990 pid_t parent = getpid ();
10993 sparc_address_test (0);
10998 /* Here is another test for sparc vfork register problems. This
10999 test uses lots of local variables, at least as many local
11000 variables as main has allocated so far including compiler
11001 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11002 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11003 reuse the register of parent for one of the local variables,
11004 since it will think that parent can't possibly be used any more
11005 in this routine. Assigning to the local variable will thus
11006 munge parent in the parent process. */
11008 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11009 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11010 /* Convince the compiler that p..p7 are live; otherwise, it might
11011 use the same hardware register for all 8 local variables. */
11012 if (p != p1 || p != p2 || p != p3 || p != p4
11013 || p != p5 || p != p6 || p != p7)
11016 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11017 from child file descriptors. If the child closes a descriptor
11018 before it execs or exits, this munges the parent's descriptor
11019 as well. Test for this by closing stdout in the child. */
11020 _exit(close(fileno(stdout)) != 0);
11025 while (wait(&status) != child)
11028 /* Was there some problem with vforking? */
11031 /* Did the child fail? (This shouldn't happen.) */
11034 /* Did the vfork/compiler bug occur? */
11035 || parent != getpid()
11037 /* Did the file descriptor bug occur? */
11038 || fstat(fileno(stdout), &st) != 0
11043 if ac_fn_cxx_try_run "$LINENO"; then :
11044 ac_cv_func_vfork_works=yes
11046 ac_cv_func_vfork_works=no
11048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11049 conftest.$ac_objext conftest.beam conftest.$ac_ext
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11054 $as_echo "$ac_cv_func_vfork_works" >&6; }
11057 if test "x$ac_cv_func_fork_works" = xcross; then
11058 ac_cv_func_vfork_works=$ac_cv_func_vfork
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11060 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11063 if test "x$ac_cv_func_vfork_works" = xyes; then
11065 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11069 $as_echo "#define vfork fork" >>confdefs.h
11072 if test "x$ac_cv_func_fork_works" = xyes; then
11074 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11080 if test "X$prefix" = "XNONE"; then
11081 acl_final_prefix="$ac_default_prefix"
11083 acl_final_prefix="$prefix"
11085 if test "X$exec_prefix" = "XNONE"; then
11086 acl_final_exec_prefix='${prefix}'
11088 acl_final_exec_prefix="$exec_prefix"
11090 acl_save_prefix="$prefix"
11091 prefix="$acl_final_prefix"
11092 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11093 prefix="$acl_save_prefix"
11096 # Check whether --with-gnu-ld was given.
11097 if test "${with_gnu_ld+set}" = set; then :
11098 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11103 # Prepare PATH_SEPARATOR.
11104 # The user is always right.
11105 if test "${PATH_SEPARATOR+set}" != set; then
11106 echo "#! /bin/sh" >conf$$.sh
11107 echo "exit 0" >>conf$$.sh
11109 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11117 if test "$GCC" = yes; then
11118 # Check if gcc -print-prog-name=ld gives a path.
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11120 $as_echo_n "checking for ld used by GCC... " >&6; }
11123 # gcc leaves a trailing carriage return which upsets mingw
11124 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11126 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11129 # Accept absolute paths.
11130 [\\/]* | [A-Za-z]:[\\/]*)
11131 re_direlt='/[^/][^/]*/\.\./'
11132 # Canonicalize the path of ld
11133 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11134 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11135 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11137 test -z "$LD" && LD="$ac_prog"
11140 # If it fails, then pretend we aren't using GCC.
11144 # If it is relative, then search for the first ld in PATH.
11145 with_gnu_ld=unknown
11148 elif test "$with_gnu_ld" = yes; then
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11150 $as_echo_n "checking for GNU ld... " >&6; }
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11153 $as_echo_n "checking for non-GNU ld... " >&6; }
11155 if ${acl_cv_path_LD+:} false; then :
11156 $as_echo_n "(cached) " >&6
11158 if test -z "$LD"; then
11159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11160 for ac_dir in $PATH; do
11161 test -z "$ac_dir" && ac_dir=.
11162 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11163 acl_cv_path_LD="$ac_dir/$ac_prog"
11164 # Check to see if the program is GNU ld. I'd rather use --version,
11165 # but apparently some GNU ld's only accept -v.
11166 # Break only if it was the GNU/non-GNU ld that we prefer.
11167 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11168 test "$with_gnu_ld" != no && break
11170 test "$with_gnu_ld" != yes && break
11176 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11180 LD="$acl_cv_path_LD"
11181 if test -n "$LD"; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11183 $as_echo "$LD" >&6; }
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186 $as_echo "no" >&6; }
11188 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11190 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11191 if ${acl_cv_prog_gnu_ld+:} false; then :
11192 $as_echo_n "(cached) " >&6
11194 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11195 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11196 acl_cv_prog_gnu_ld=yes
11198 acl_cv_prog_gnu_ld=no
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11202 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11203 with_gnu_ld=$acl_cv_prog_gnu_ld
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11208 $as_echo_n "checking for shared library run path origin... " >&6; }
11209 if ${acl_cv_rpath+:} false; then :
11210 $as_echo_n "(cached) " >&6
11213 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11214 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11216 rm -f ./conftest.sh
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11221 $as_echo "$acl_cv_rpath" >&6; }
11223 libext="$acl_cv_libext"
11224 shlibext="$acl_cv_shlibext"
11225 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11226 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11227 hardcode_direct="$acl_cv_hardcode_direct"
11228 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11229 # Check whether --enable-rpath was given.
11230 if test "${enable_rpath+set}" = set; then :
11231 enableval=$enable_rpath; :
11245 acl_save_prefix="$prefix"
11246 prefix="$acl_final_prefix"
11247 acl_save_exec_prefix="$exec_prefix"
11248 exec_prefix="$acl_final_exec_prefix"
11250 eval additional_includedir=\"$includedir\"
11251 eval additional_libdir=\"$libdir\"
11253 exec_prefix="$acl_save_exec_prefix"
11254 prefix="$acl_save_prefix"
11257 # Check whether --with-libiconv-prefix was given.
11258 if test "${with_libiconv_prefix+set}" = set; then :
11259 withval=$with_libiconv_prefix;
11260 if test "X$withval" = "Xno"; then
11263 if test "X$withval" = "X"; then
11265 acl_save_prefix="$prefix"
11266 prefix="$acl_final_prefix"
11267 acl_save_exec_prefix="$exec_prefix"
11268 exec_prefix="$acl_final_exec_prefix"
11270 eval additional_includedir=\"$includedir\"
11271 eval additional_libdir=\"$libdir\"
11273 exec_prefix="$acl_save_exec_prefix"
11274 prefix="$acl_save_prefix"
11277 additional_includedir="$withval/include"
11278 additional_libdir="$withval/lib"
11285 # Check whether --with-libiconv-type was given.
11286 if test "${with_libiconv_type+set}" = set; then :
11287 withval=$with_libiconv_type; with_libiconv_type=$withval
11289 with_libiconv_type=auto
11292 lib_type=`eval echo \$with_libiconv_type`
11299 names_already_handled=
11300 names_next_round='iconv '
11301 while test -n "$names_next_round"; do
11302 names_this_round="$names_next_round"
11304 for name in $names_this_round; do
11306 for n in $names_already_handled; do
11307 if test "$n" = "$name"; then
11308 already_handled=yes
11312 if test -z "$already_handled"; then
11313 names_already_handled="$names_already_handled $name"
11314 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11315 eval value=\"\$HAVE_LIB$uppername\"
11316 if test -n "$value"; then
11317 if test "$value" = yes; then
11318 eval value=\"\$LIB$uppername\"
11319 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11320 eval value=\"\$LTLIB$uppername\"
11321 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11330 if test $use_additional = yes; then
11331 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11332 found_dir="$additional_libdir"
11333 found_so="$additional_libdir/lib$name.$shlibext"
11334 if test -f "$additional_libdir/lib$name.la"; then
11335 found_la="$additional_libdir/lib$name.la"
11337 elif test x$lib_type != xshared; then
11338 if test -f "$additional_libdir/lib$name.$libext"; then
11339 found_dir="$additional_libdir"
11340 found_a="$additional_libdir/lib$name.$libext"
11341 if test -f "$additional_libdir/lib$name.la"; then
11342 found_la="$additional_libdir/lib$name.la"
11347 if test "X$found_dir" = "X"; then
11348 for x in $LDFLAGS $LTLIBICONV; do
11350 acl_save_prefix="$prefix"
11351 prefix="$acl_final_prefix"
11352 acl_save_exec_prefix="$exec_prefix"
11353 exec_prefix="$acl_final_exec_prefix"
11355 exec_prefix="$acl_save_exec_prefix"
11356 prefix="$acl_save_prefix"
11360 dir=`echo "X$x" | sed -e 's/^X-L//'`
11361 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
11363 found_so="$dir/lib$name.$shlibext"
11364 if test -f "$dir/lib$name.la"; then
11365 found_la="$dir/lib$name.la"
11367 elif test x$lib_type != xshared; then
11368 if test -f "$dir/lib$name.$libext"; then
11370 found_a="$dir/lib$name.$libext"
11371 if test -f "$dir/lib$name.la"; then
11372 found_la="$dir/lib$name.la"
11378 if test "X$found_dir" != "X"; then
11383 if test "X$found_dir" != "X"; then
11384 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11385 if test "X$found_so" != "X"; then
11386 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11387 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11390 for x in $ltrpathdirs; do
11391 if test "X$x" = "X$found_dir"; then
11396 if test -z "$haveit"; then
11397 ltrpathdirs="$ltrpathdirs $found_dir"
11399 if test "$hardcode_direct" = yes; then
11400 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11402 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11403 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11405 for x in $rpathdirs; do
11406 if test "X$x" = "X$found_dir"; then
11411 if test -z "$haveit"; then
11412 rpathdirs="$rpathdirs $found_dir"
11416 for x in $LDFLAGS $LIBICONV; do
11418 acl_save_prefix="$prefix"
11419 prefix="$acl_final_prefix"
11420 acl_save_exec_prefix="$exec_prefix"
11421 exec_prefix="$acl_final_exec_prefix"
11423 exec_prefix="$acl_save_exec_prefix"
11424 prefix="$acl_save_prefix"
11426 if test "X$x" = "X-L$found_dir"; then
11431 if test -z "$haveit"; then
11432 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11434 if test "$hardcode_minus_L" != no; then
11435 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11437 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11443 if test "X$found_a" != "X"; then
11444 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11446 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11449 additional_includedir=
11450 case "$found_dir" in
11452 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11453 additional_includedir="$basedir/include"
11456 if test "X$additional_includedir" != "X"; then
11457 if test "X$additional_includedir" != "X/usr/include"; then
11459 if test "X$additional_includedir" = "X/usr/local/include"; then
11460 if test -n "$GCC"; then
11462 linux*) haveit=yes;;
11466 if test -z "$haveit"; then
11467 for x in $CPPFLAGS $INCICONV; do
11469 acl_save_prefix="$prefix"
11470 prefix="$acl_final_prefix"
11471 acl_save_exec_prefix="$exec_prefix"
11472 exec_prefix="$acl_final_exec_prefix"
11474 exec_prefix="$acl_save_exec_prefix"
11475 prefix="$acl_save_prefix"
11477 if test "X$x" = "X-I$additional_includedir"; then
11482 if test -z "$haveit"; then
11483 if test -d "$additional_includedir"; then
11484 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11490 if test -n "$found_la"; then
11491 save_libdir="$libdir"
11492 case "$found_la" in
11493 */* | *\\*) . "$found_la" ;;
11494 *) . "./$found_la" ;;
11496 libdir="$save_libdir"
11497 for dep in $dependency_libs; do
11500 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11501 if test "X$additional_libdir" != "X/usr/lib"; then
11503 if test "X$additional_libdir" = "X/usr/local/lib"; then
11504 if test -n "$GCC"; then
11506 linux*) haveit=yes;;
11510 if test -z "$haveit"; then
11512 for x in $LDFLAGS $LIBICONV; do
11514 acl_save_prefix="$prefix"
11515 prefix="$acl_final_prefix"
11516 acl_save_exec_prefix="$exec_prefix"
11517 exec_prefix="$acl_final_exec_prefix"
11519 exec_prefix="$acl_save_exec_prefix"
11520 prefix="$acl_save_prefix"
11522 if test "X$x" = "X-L$additional_libdir"; then
11527 if test -z "$haveit"; then
11528 if test -d "$additional_libdir"; then
11529 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11533 for x in $LDFLAGS $LTLIBICONV; do
11535 acl_save_prefix="$prefix"
11536 prefix="$acl_final_prefix"
11537 acl_save_exec_prefix="$exec_prefix"
11538 exec_prefix="$acl_final_exec_prefix"
11540 exec_prefix="$acl_save_exec_prefix"
11541 prefix="$acl_save_prefix"
11543 if test "X$x" = "X-L$additional_libdir"; then
11548 if test -z "$haveit"; then
11549 if test -d "$additional_libdir"; then
11550 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11557 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11558 if test "$enable_rpath" != no; then
11560 for x in $rpathdirs; do
11561 if test "X$x" = "X$dir"; then
11566 if test -z "$haveit"; then
11567 rpathdirs="$rpathdirs $dir"
11570 for x in $ltrpathdirs; do
11571 if test "X$x" = "X$dir"; then
11576 if test -z "$haveit"; then
11577 ltrpathdirs="$ltrpathdirs $dir"
11582 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11585 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11588 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11589 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11595 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
11596 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11597 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11599 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11600 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11607 if test "X$rpathdirs" != "X"; then
11608 if test -n "$hardcode_libdir_separator"; then
11610 for found_dir in $rpathdirs; do
11611 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11613 acl_save_libdir="$libdir"
11615 eval flag=\"$hardcode_libdir_flag_spec\"
11616 libdir="$acl_save_libdir"
11617 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11619 for found_dir in $rpathdirs; do
11620 acl_save_libdir="$libdir"
11621 libdir="$found_dir"
11622 eval flag=\"$hardcode_libdir_flag_spec\"
11623 libdir="$acl_save_libdir"
11624 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11628 if test "X$ltrpathdirs" != "X"; then
11629 for found_dir in $ltrpathdirs; do
11630 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11641 $as_echo_n "checking for iconv... " >&6; }
11642 if ${am_cv_func_iconv+:} false; then :
11643 $as_echo_n "(cached) " >&6
11646 am_cv_func_iconv="no, consider installing GNU libiconv"
11648 am_save_CPPFLAGS="$CPPFLAGS"
11649 CPPFLAGS="$CPPFLAGS $INCICONV"
11650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651 /* end confdefs.h. */
11652 #include <stdlib.h>
11657 iconv_t cd = iconv_open("","");
11658 iconv(cd,NULL,NULL,NULL,NULL);
11664 if ac_fn_cxx_try_link "$LINENO"; then :
11665 am_cv_func_iconv=yes
11667 rm -f core conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext
11669 CPPFLAGS="$am_save_CPPFLAGS"
11671 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
11672 for _libs in .libs _libs; do
11673 am_save_CPPFLAGS="$CPPFLAGS"
11674 am_save_LIBS="$LIBS"
11675 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
11676 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h. */
11679 #include <stdlib.h>
11684 iconv_t cd = iconv_open("","");
11685 iconv(cd,NULL,NULL,NULL,NULL);
11691 if ac_fn_cxx_try_link "$LINENO"; then :
11692 INCICONV="-I../libiconv/include"
11693 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
11694 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
11695 am_cv_lib_iconv=yes
11696 am_cv_func_iconv=yes
11698 rm -f core conftest.err conftest.$ac_objext \
11699 conftest$ac_exeext conftest.$ac_ext
11700 CPPFLAGS="$am_save_CPPFLAGS"
11701 LIBS="$am_save_LIBS"
11702 if test "$am_cv_func_iconv" = "yes"; then
11708 if test "$am_cv_func_iconv" != yes; then
11709 am_save_CPPFLAGS="$CPPFLAGS"
11710 am_save_LIBS="$LIBS"
11711 CPPFLAGS="$CPPFLAGS $INCICONV"
11712 LIBS="$LIBS $LIBICONV"
11713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11714 /* end confdefs.h. */
11715 #include <stdlib.h>
11720 iconv_t cd = iconv_open("","");
11721 iconv(cd,NULL,NULL,NULL,NULL);
11727 if ac_fn_cxx_try_link "$LINENO"; then :
11728 am_cv_lib_iconv=yes
11729 am_cv_func_iconv=yes
11731 rm -f core conftest.err conftest.$ac_objext \
11732 conftest$ac_exeext conftest.$ac_ext
11733 CPPFLAGS="$am_save_CPPFLAGS"
11734 LIBS="$am_save_LIBS"
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11739 $as_echo "$am_cv_func_iconv" >&6; }
11740 if test "$am_cv_func_iconv" = yes; then
11742 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11745 if test "$am_cv_lib_iconv" = yes; then
11747 for element in $INCICONV; do
11749 for x in $CPPFLAGS; do
11751 acl_save_prefix="$prefix"
11752 prefix="$acl_final_prefix"
11753 acl_save_exec_prefix="$exec_prefix"
11754 exec_prefix="$acl_final_exec_prefix"
11756 exec_prefix="$acl_save_exec_prefix"
11757 prefix="$acl_save_prefix"
11759 if test "X$x" = "X$element"; then
11764 if test -z "$haveit"; then
11765 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11770 $as_echo_n "checking how to link with libiconv... " >&6; }
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11772 $as_echo "$LIBICONV" >&6; }
11780 if test "$am_cv_func_iconv" = yes; then
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11782 $as_echo_n "checking for iconv declaration... " >&6; }
11783 if ${am_cv_proto_iconv+:} false; then :
11784 $as_echo_n "(cached) " >&6
11787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11788 /* end confdefs.h. */
11790 #include <stdlib.h>
11796 #if defined(__STDC__) || defined(__cplusplus)
11797 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11810 if ac_fn_cxx_try_compile "$LINENO"; then :
11811 am_cv_proto_iconv_arg1=""
11813 am_cv_proto_iconv_arg1="const"
11815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11816 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);"
11819 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11821 }$am_cv_proto_iconv" >&5
11823 }$am_cv_proto_iconv" >&6; }
11825 cat >>confdefs.h <<_ACEOF
11826 #define ICONV_CONST $am_cv_proto_iconv_arg1
11832 # Until we have in-tree GNU iconv:
11834 if test -f "$LTLIBICONV"; then
11835 LIBICONV_DEP=$LTLIBICONV
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11841 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11842 if ${am_cv_val_LC_MESSAGES+:} false; then :
11843 $as_echo_n "(cached) " >&6
11845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11846 /* end confdefs.h. */
11847 #include <locale.h>
11856 if ac_fn_cxx_try_link "$LINENO"; then :
11857 am_cv_val_LC_MESSAGES=yes
11859 am_cv_val_LC_MESSAGES=no
11861 rm -f core conftest.err conftest.$ac_objext \
11862 conftest$ac_exeext conftest.$ac_ext
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11865 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11866 if test $am_cv_val_LC_MESSAGES = yes; then
11868 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11875 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11876 if ${am_cv_langinfo_codeset+:} false; then :
11877 $as_echo_n "(cached) " >&6
11879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11880 /* end confdefs.h. */
11881 #include <langinfo.h>
11885 char* cs = nl_langinfo(CODESET);
11890 if ac_fn_cxx_try_link "$LINENO"; then :
11891 am_cv_langinfo_codeset=yes
11893 am_cv_langinfo_codeset=no
11895 rm -f core conftest.err conftest.$ac_objext \
11896 conftest$ac_exeext conftest.$ac_ext
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11900 $as_echo "$am_cv_langinfo_codeset" >&6; }
11901 if test $am_cv_langinfo_codeset = yes; then
11903 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11908 # We will need to find libiberty.h and ansidecl.h
11909 saved_CFLAGS="$CFLAGS"
11910 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11911 saved_CXXFLAGS="$CXXFLAGS"
11912 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11914 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11915 # normal autoconf function for these. But force definition of
11916 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11917 # basename handling in libiberty.h.
11918 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11919 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11920 #undef HAVE_DECL_BASENAME
11921 #define HAVE_DECL_BASENAME 1
11922 #include \"ansidecl.h\"
11923 #include \"system.h\"
11925 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11931 cat >>confdefs.h <<_ACEOF
11932 #define HAVE_DECL_BASENAME $ac_have_decl
11934 as_ac_Symbol=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11935 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11936 #undef HAVE_DECL_BASENAME
11937 #define HAVE_DECL_BASENAME 1
11938 #include \"ansidecl.h\"
11939 #include \"system.h\"
11941 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
11947 cat >>confdefs.h <<_ACEOF
11948 #define HAVE_DECL_STRSTR $ac_have_decl
11952 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11953 madvise stpcpy strnlen strsignal strverscmp \
11954 strtol strtoul strtoll strtoull setenv unsetenv \
11955 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11956 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
11958 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11960 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11961 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
11962 $as_echo_n "(cached) " >&6
11964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h. */
11967 #define $ac_tr_decl 1
11969 #include "ansidecl.h"
11970 #include "system.h"
11976 char *(*pfn) = (char *(*)) $ac_func ;
11982 if ac_fn_cxx_try_compile "$LINENO"; then :
11983 eval "gcc_cv_have_decl_$ac_func=yes"
11985 eval "gcc_cv_have_decl_$ac_func=no"
11987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11992 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11993 #define $ac_tr_decl 1
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11998 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11999 #define $ac_tr_decl 0
12007 for ac_func in getrlimit setrlimit getrusage
12009 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12011 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12012 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12013 $as_echo_n "(cached) " >&6
12015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12016 /* end confdefs.h. */
12018 #define $ac_tr_decl 1
12020 #include "ansidecl.h"
12021 #include "system.h"
12022 #ifdef HAVE_SYS_RESOURCE_H
12023 #include <sys/resource.h>
12031 char *(*pfn) = (char *(*)) $ac_func ;
12037 if ac_fn_cxx_try_compile "$LINENO"; then :
12038 eval "gcc_cv_have_decl_$ac_func=yes"
12040 eval "gcc_cv_have_decl_$ac_func=no"
12042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12045 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12047 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12048 #define $ac_tr_decl 1
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12054 #define $ac_tr_decl 0
12062 for ac_func in mallinfo mallinfo2
12064 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12066 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12067 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12068 $as_echo_n "(cached) " >&6
12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h. */
12073 #define $ac_tr_decl 1
12075 #include "ansidecl.h"
12076 #include "system.h"
12077 #ifdef HAVE_MALLOC_H
12078 #include <malloc.h>
12086 char *(*pfn) = (char *(*)) $ac_func ;
12092 if ac_fn_cxx_try_compile "$LINENO"; then :
12093 eval "gcc_cv_have_decl_$ac_func=yes"
12095 eval "gcc_cv_have_decl_$ac_func=no"
12097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12100 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12102 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12103 #define $ac_tr_decl 1
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12108 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12109 #define $ac_tr_decl 0
12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h. */
12120 #include "ansidecl.h"
12121 #include "system.h"
12122 #ifdef HAVE_SYS_RESOURCE_H
12123 #include <sys/resource.h>
12134 if ac_fn_cxx_try_compile "$LINENO"; then :
12138 $as_echo "#define rlim_t long" >>confdefs.h
12141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12143 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
12144 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
12145 # in collect2.cc, <fcntl.h> isn't visible, but the configure test below needs
12146 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
12147 for ac_func in ldgetname
12149 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12151 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12152 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12153 $as_echo_n "(cached) " >&6
12155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156 /* end confdefs.h. */
12158 #define $ac_tr_decl 1
12160 #include "ansidecl.h"
12161 #include "system.h"
12162 #ifdef HAVE_LDFCN_H
12173 char *(*pfn) = (char *(*)) $ac_func ;
12179 if ac_fn_cxx_try_compile "$LINENO"; then :
12180 eval "gcc_cv_have_decl_$ac_func=yes"
12182 eval "gcc_cv_have_decl_$ac_func=no"
12184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12187 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12189 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12190 #define $ac_tr_decl 1
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12196 #define $ac_tr_decl 0
12204 for ac_func in times
12206 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12208 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12209 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12210 $as_echo_n "(cached) " >&6
12212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h. */
12215 #define $ac_tr_decl 1
12217 #include "ansidecl.h"
12218 #include "system.h"
12219 #ifdef HAVE_SYS_TIMES_H
12220 #include <sys/times.h>
12228 char *(*pfn) = (char *(*)) $ac_func ;
12234 if ac_fn_cxx_try_compile "$LINENO"; then :
12235 eval "gcc_cv_have_decl_$ac_func=yes"
12237 eval "gcc_cv_have_decl_$ac_func=no"
12239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12242 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12244 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12245 #define $ac_tr_decl 1
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12250 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12251 #define $ac_tr_decl 0
12259 for ac_func in sigaltstack
12261 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
12263 $as_echo_n "checking whether $ac_func is declared... " >&6; }
12264 if eval \${gcc_cv_have_decl_$ac_func+:} false; then :
12265 $as_echo_n "(cached) " >&6
12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h. */
12270 #define $ac_tr_decl 1
12272 #include "ansidecl.h"
12273 #include "system.h"
12274 #include <signal.h>
12281 char *(*pfn) = (char *(*)) $ac_func ;
12287 if ac_fn_cxx_try_compile "$LINENO"; then :
12288 eval "gcc_cv_have_decl_$ac_func=yes"
12290 eval "gcc_cv_have_decl_$ac_func=no"
12292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12295 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12297 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
12298 #define $ac_tr_decl 1
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
12304 #define $ac_tr_decl 0
12312 # More time-related stuff.
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
12314 $as_echo_n "checking for struct tms... " >&6; }
12315 if ${ac_cv_struct_tms+:} false; then :
12316 $as_echo_n "(cached) " >&6
12319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12320 /* end confdefs.h. */
12322 #include "ansidecl.h"
12323 #include "system.h"
12324 #ifdef HAVE_SYS_TIMES_H
12325 #include <sys/times.h>
12336 if ac_fn_cxx_try_compile "$LINENO"; then :
12337 ac_cv_struct_tms=yes
12339 ac_cv_struct_tms=no
12341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
12344 $as_echo "$ac_cv_struct_tms" >&6; }
12345 if test $ac_cv_struct_tms = yes; then
12347 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
12351 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
12352 # revisit after autoconf 2.50.
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
12354 $as_echo_n "checking for clock_t... " >&6; }
12355 if ${gcc_cv_type_clock_t+:} false; then :
12356 $as_echo_n "(cached) " >&6
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12362 #include "ansidecl.h"
12363 #include "system.h"
12373 if ac_fn_cxx_try_compile "$LINENO"; then :
12374 gcc_cv_type_clock_t=yes
12376 gcc_cv_type_clock_t=no
12378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
12381 $as_echo "$gcc_cv_type_clock_t" >&6; }
12382 if test $gcc_cv_type_clock_t = yes; then
12384 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
12388 # Check if F_SETLKW is supported by fcntl.
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
12390 $as_echo_n "checking for F_SETLKW... " >&6; }
12391 if ${ac_cv_f_setlkw+:} false; then :
12392 $as_echo_n "(cached) " >&6
12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
12408 return fcntl (1, F_SETLKW, &fl);
12413 if ac_fn_cxx_try_compile "$LINENO"; then :
12418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
12421 $as_echo "$ac_cv_f_setlkw" >&6; }
12422 if test $ac_cv_f_setlkw = yes; then
12424 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
12428 # Check if O_CLOEXEC is defined by fcntl
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12430 $as_echo_n "checking for O_CLOEXEC... " >&6; }
12431 if ${ac_cv_o_cloexec+:} false; then :
12432 $as_echo_n "(cached) " >&6
12435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12436 /* end confdefs.h. */
12443 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
12448 if ac_fn_cxx_try_compile "$LINENO"; then :
12449 ac_cv_o_cloexec=yes
12453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
12456 $as_echo "$ac_cv_o_cloexec" >&6; }
12457 if test $ac_cv_o_cloexec = yes; then
12459 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
12463 # Check if O_NONBLOCK is defined by fcntl
12464 for ac_header in fcntl.h
12466 ac_fn_cxx_check_header_preproc "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h"
12467 if test "x$ac_cv_header_fcntl_h" = xyes; then :
12468 cat >>confdefs.h <<_ACEOF
12469 #define HAVE_FCNTL_H 1
12475 ac_fn_cxx_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
12477 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
12481 if test $ac_cv_have_decl_O_NONBLOCK = yes; then
12483 $as_echo "#define HOST_HAS_O_NONBLOCK 1" >>confdefs.h
12488 # C++ Modules would like some networking features to provide the mapping
12489 # server. You can still use modules without them though.
12490 # The following network-related checks could probably do with some
12491 # Windows and other non-linux defenses and checking.
12493 # Local socket connectivity wants AF_UNIX networking
12494 # Check for AF_UNIX networking
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
12496 $as_echo_n "checking for AF_UNIX... " >&6; }
12497 if ${ac_cv_af_unix+:} false; then :
12498 $as_echo_n "(cached) " >&6
12501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12502 /* end confdefs.h. */
12504 #include <sys/types.h>
12505 #include <sys/socket.h>
12506 #include <sys/un.h>
12507 #include <netinet/in.h>
12513 un.sun_family = AF_UNSPEC;
12514 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
12515 connect (fd, (sockaddr *)&un, sizeof (un));
12520 if ac_fn_cxx_try_compile "$LINENO"; then :
12525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
12528 $as_echo "$ac_cv_af_unix" >&6; }
12529 if test $ac_cv_af_unix = yes; then
12531 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
12535 # Remote socket connectivity wants AF_INET6 networking
12536 # Check for AF_INET6 networking
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
12538 $as_echo_n "checking for AF_INET6... " >&6; }
12539 if ${ac_cv_af_inet6+:} false; then :
12540 $as_echo_n "(cached) " >&6
12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h. */
12546 #include <sys/types.h>
12547 #include <sys/socket.h>
12548 #include <netinet/in.h>
12555 in6.sin6_family = AF_UNSPEC;
12556 struct addrinfo *addrs = 0;
12557 struct addrinfo hints;
12558 hints.ai_flags = 0;
12559 hints.ai_family = AF_INET6;
12560 hints.ai_socktype = SOCK_STREAM;
12561 hints.ai_protocol = 0;
12562 hints.ai_canonname = 0;
12565 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
12566 const char *str = gai_strerror (e);
12567 freeaddrinfo (addrs);
12568 int fd = socket (AF_INET6, SOCK_STREAM, 0);
12569 connect (fd, (sockaddr *)&in6, sizeof (in6));
12574 if ac_fn_cxx_try_compile "$LINENO"; then :
12579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
12582 $as_echo "$ac_cv_af_inet6" >&6; }
12583 if test $ac_cv_af_inet6 = yes; then
12585 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
12589 # Check if _LK_LOCK is supported by _locking
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LK_LOCK" >&5
12591 $as_echo_n "checking for _LK_LOCK... " >&6; }
12592 if ${ac_cv_lk_lock+:} false; then :
12593 $as_echo_n "(cached) " >&6
12596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597 /* end confdefs.h. */
12600 #include <sys/locking.h>
12606 return _locking (fd, _LK_LOCK, 0);
12611 if ac_fn_cxx_try_compile "$LINENO"; then :
12616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lk_lock" >&5
12619 $as_echo "$ac_cv_lk_lock" >&6; }
12620 if test $ac_cv_lk_lock = yes; then
12622 $as_echo "#define HOST_HAS_LK_LOCK 1" >>confdefs.h
12626 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12627 CFLAGS="$saved_CFLAGS"
12628 CXXFLAGS="$saved_CXXFLAGS"
12630 # mkdir takes a single argument on some systems.
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
12632 $as_echo_n "checking if mkdir takes one argument... " >&6; }
12633 if ${gcc_cv_mkdir_takes_one_arg+:} false; then :
12634 $as_echo_n "(cached) " >&6
12636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12637 /* end confdefs.h. */
12639 #include <sys/types.h>
12640 #ifdef HAVE_SYS_STAT_H
12641 # include <sys/stat.h>
12643 #ifdef HAVE_UNISTD_H
12644 # include <unistd.h>
12646 #ifdef HAVE_DIRECT_H
12647 # include <direct.h>
12657 if ac_fn_cxx_try_compile "$LINENO"; then :
12658 gcc_cv_mkdir_takes_one_arg=no
12660 gcc_cv_mkdir_takes_one_arg=yes
12662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
12665 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
12666 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12668 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
12679 # With Setjmp/Longjmp based exception handling.
12680 # Check whether --enable-sjlj-exceptions was given.
12681 if test "${enable_sjlj_exceptions+set}" = set; then :
12682 enableval=$enable_sjlj_exceptions; case $target in
12684 force_sjlj_exceptions=yes
12688 force_sjlj_exceptions=no
12693 if test $force_sjlj_exceptions = yes; then
12694 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12696 cat >>confdefs.h <<_ACEOF
12697 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12702 # --------------------------------------------------------
12703 # Build, host, and target specific configuration fragments
12704 # --------------------------------------------------------
12706 # Collect build-machine-specific information.
12707 . ${srcdir}/config.build || exit 1
12709 # Collect host-machine-specific information.
12710 . ${srcdir}/config.host || exit 1
12714 # Collect target-machine-specific information.
12715 . ${srcdir}/config.gcc || exit 1
12717 extra_objs="${host_extra_objs} ${extra_objs}"
12718 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12720 # Default the target-machine variables that were not explicitly set.
12721 if test x"$tm_file" = x
12722 then tm_file=$cpu_type/$cpu_type.h; fi
12724 if test x"$extra_headers" = x
12725 then extra_headers=; fi
12727 if test x$md_file = x
12728 then md_file=$cpu_type/$cpu_type.md; fi
12730 if test x$out_file = x
12731 then out_file=$cpu_type/$cpu_type.cc; fi
12733 if test x"$tmake_file" = x
12734 then tmake_file=$cpu_type/t-$cpu_type
12737 # Support --enable-initfini-array.
12738 if test x$enable_initfini_array != xno; then
12739 tm_file="${tm_file} initfini-array.h"
12742 if test x"$dwarf2" = xyes
12743 then tm_file="$tm_file tm-dwarf2.h"
12746 # Say what files are being used for the output code and MD file.
12747 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12748 echo "Using \`$srcdir/config/$md_file' as machine description file."
12750 # If any of the xm_file variables contain nonexistent files, warn
12751 # about them and drop them.
12754 for x in $build_xm_file; do
12755 if test -f $srcdir/config/$x
12757 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12758 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12761 build_xm_file="$bx"
12764 for x in $host_xm_file; do
12765 if test -f $srcdir/config/$x
12767 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12768 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12774 for x in $xm_file; do
12775 if test -f $srcdir/config/$x
12777 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12778 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12784 for f in $tm_file; do
12787 if test $count = ax; then
12788 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12790 echo "Using the following target machine macro files:"
12791 for f in $tm_file; do
12792 echo " $srcdir/config/$f"
12796 if test x$use_long_long_for_widest_fast_int = xyes; then
12798 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12802 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12804 cat >>confdefs.h <<_ACEOF
12805 #define HAVE_GNU_LD $gnu_ld_bool
12809 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12811 cat >>confdefs.h <<_ACEOF
12812 #define HAVE_GNU_AS $gnu_as_bool
12817 for f in $host_xm_file; do
12820 if test $count = a; then
12822 elif test $count = ax; then
12823 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12825 echo "Using the following host machine macro files:"
12826 for f in $host_xm_file; do
12827 echo " $srcdir/config/$f"
12830 echo "Using ${out_host_hook_obj} for host machine hooks."
12832 if test "$host_xm_file" != "$build_xm_file"; then
12834 for f in $build_xm_file; do
12837 if test $count = a; then
12839 elif test $count = ax; then
12840 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12842 echo "Using the following build machine macro files:"
12843 for f in $build_xm_file; do
12844 echo " $srcdir/config/$f"
12849 if test -n "$configured_native_system_header_dir"; then
12850 native_system_header_dir=$configured_native_system_header_dir
12852 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
12856 powerpc*-*-darwin*)
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12858 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12859 if ${gcc_cv_mcontext_underscores+:} false; then :
12860 $as_echo_n "(cached) " >&6
12862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12865 #include <sys/cdefs.h>
12866 #include <sys/signal.h>
12867 #include <ucontext.h>
12868 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12871 if ac_fn_cxx_try_compile "$LINENO"; then :
12872 gcc_cv_mcontext_underscores=no
12874 gcc_cv_mcontext_underscores=yes
12876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12879 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12880 if test $gcc_cv_mcontext_underscores = yes; then
12882 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12892 # Check if a valid thread package
12893 case ${enable_threads} in
12896 target_thread_file='single'
12900 target_thread_file='single'
12902 aix | dce | lynx | mipssde | posix | rtems | \
12903 single | tpf | vxworks | win32)
12904 target_thread_file=${enable_threads}
12907 echo "${enable_threads} is an unknown thread package" 1>&2
12912 if test x${thread_file} = x; then
12913 # No thread file set by target-specific clauses in config.gcc,
12914 # so use file chosen by default logic above
12915 thread_file=${target_thread_file}
12923 if test x$enable___cxa_atexit = xyes || \
12924 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12925 if test x$host = x$target; then
12927 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12928 # keyed to flag_use_cxa_atexit
12936 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12937 if test "x$ac_cv_func___cxa_atexit" = xyes; then :
12940 echo "__cxa_atexit can't be enabled on this target"
12946 # We can't check for __cxa_atexit when building a cross, so assume
12950 if test x$use_cxa_atexit = xyes; then
12952 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12957 # Look for a file containing extra machine modes.
12958 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12959 extra_modes_file='$(srcdir)'/config/${extra_modes}
12962 cat >>confdefs.h <<_ACEOF
12963 #define EXTRA_MODES_FILE "config/$extra_modes"
12968 # Convert extra_options into a form suitable for Makefile use.
12971 for f in $extra_options; do
12972 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12973 all_opt_files="$all_opt_files $srcdir/config/$f"
12977 # auto-host.h is the file containing items generated by autoconf and is
12978 # the first file included by config.h.
12979 # If host=build, it is correct to have bconfig include auto-host.h
12980 # as well. If host!=build, we are in error and need to do more
12981 # work to find out the build config parameters.
12982 if test x$host = x$build
12984 build_auto=auto-host.h
12985 HAVE_AUTO_BUILD='# '
12987 # We create a subdir, then run autoconf in the subdir.
12988 # To prevent recursion we set host and build for the new
12989 # invocation of configure to the build for this invocation
12996 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12997 *) realsrcdir=../${srcdir};;
12999 # Clearing GMPINC is necessary to prevent host headers being
13000 # used by the build compiler. Defining GENERATOR_FILE stops
13001 # system.h from including gmp.h.
13002 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
13003 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
13004 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
13005 GMPINC="" CPPFLAGS="${CPPFLAGS_FOR_BUILD} -DGENERATOR_FILE" \
13006 ${realsrcdir}/configure \
13007 --enable-languages=${enable_languages-all} \
13008 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
13009 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
13010 --target=$target_alias --host=$build_alias \
13011 --build=$build_alias || exit # retaining $tempdir
13013 # We just finished tests for the build machine, so rename
13014 # the file auto-build.h in the gcc directory.
13015 mv auto-host.h ../auto-build.h
13018 build_auto=auto-build.h
13024 tm_file="${tm_file} defaults.h"
13025 tm_p_file="${tm_p_file} tm-preds.h"
13026 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
13027 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
13028 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
13029 # put this back in temporarily.
13030 xm_file="auto-host.h ansidecl.h ${xm_file}"
13036 # Compile in configure arguments.
13037 if test -f configargs.h ; then
13038 # Being re-configured.
13039 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
13040 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
13041 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
13042 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
13045 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
13048 # Double all backslashes and backslash all quotes to turn
13049 # gcc_config_arguments into a C string.
13050 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
13051 $gcc_config_arguments
13053 gcc_config_arguments_str=`cat conftest.out`
13056 cat > configargs.h <<EOF
13057 /* Generated automatically. */
13058 static const char configuration_arguments[] = "$gcc_config_arguments_str";
13059 static const char thread_model[] = "$thread_file";
13061 static const struct {
13062 const char *name, *value;
13063 } configure_default_options[] = $configure_default_options;
13066 gcc_BASEVER=`cat $srcdir/BASE-VER`
13067 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
13068 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
13069 if test -f $srcdir/REVISION ; then
13070 gcc_REVISION=`cat $srcdir/REVISION`
13074 cat > plugin-version.h <<EOF
13075 #include "configargs.h"
13077 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
13078 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
13079 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
13080 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
13082 static char basever[] = "$gcc_BASEVER";
13083 static char datestamp[] = "$gcc_DATESTAMP";
13084 static char devphase[] = "$gcc_DEVPHASE";
13085 static char revision[] = "$gcc_REVISION";
13087 /* FIXME plugins: We should make the version information more precise.
13088 One way to do is to add a checksum. */
13090 static struct plugin_gcc_version gcc_version = {basever, datestamp,
13091 devphase, revision,
13092 configuration_arguments};
13095 # Determine what GCC version number to use in filesystem paths.
13097 get_gcc_base_ver="cat"
13099 # Check whether --with-gcc-major-version-only was given.
13100 if test "${with_gcc_major_version_only+set}" = set; then :
13101 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13102 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13110 # Internationalization
13111 # If we haven't got the data from the intl directory,
13112 # assume NLS is disabled.
13121 if test -f ../intl/config.intl; then
13122 . ../intl/config.intl
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13125 $as_echo_n "checking whether NLS is requested... " >&6; }
13126 if test x"$USE_NLS" != xyes; then
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128 $as_echo "no" >&6; }
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13131 $as_echo "yes" >&6; }
13133 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13137 $as_echo_n "checking for catalogs to be installed... " >&6; }
13138 # Look for .po and .gmo files in the source directory.
13141 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13142 # If there aren't any .gmo files the shell will give us the
13143 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13145 case "$cat" in *\**)
13148 # The quadruple backslash is collapsed to a double backslash
13149 # by the backticks, then collapsed again by the double quotes,
13150 # leaving us with one backslash in the sed expression (right
13151 # before the dot that mustn't act as a wildcard).
13152 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13153 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13154 # The user is allowed to set LINGUAS to a list of languages to
13155 # install catalogs for. If it's empty that means "all of them."
13156 if test "x$LINGUAS" = x; then
13157 CATALOGS="$CATALOGS $cat"
13158 XLINGUAS="$XLINGUAS $lang"
13160 case "$LINGUAS" in *$lang*)
13161 CATALOGS="$CATALOGS $cat"
13162 XLINGUAS="$XLINGUAS $lang"
13167 LINGUAS="$XLINGUAS"
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13169 $as_echo "$LINGUAS" >&6; }
13182 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
13183 # -liconv on the link line twice.
13184 case "$LIBINTL" in *$LIBICONV*)
13188 # Check whether --enable-secureplt was given.
13189 if test "${enable_secureplt+set}" = set; then :
13190 enableval=$enable_secureplt;
13194 # Check whether --enable-mingw-wildcard was given.
13195 if test "${enable_mingw_wildcard+set}" = set; then :
13196 enableval=$enable_mingw_wildcard;
13198 enable_mingw_wildcard=platform
13201 if test x"$enable_mingw_wildcard" != xplatform ; then :
13203 cat >>confdefs.h <<_ACEOF
13204 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
13209 # Check whether --enable-large-address-aware was given.
13210 if test "${enable_large_address_aware+set}" = set; then :
13211 enableval=$enable_large_address_aware;
13214 if test x"$enable_large_address_aware" = xyes; then :
13216 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
13220 # Check whether --enable-leading-mingw64-underscores was given.
13221 if test "${enable_leading_mingw64_underscores+set}" = set; then :
13222 enableval=$enable_leading_mingw64_underscores;
13225 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
13227 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
13231 # Check whether --enable-cld was given.
13232 if test "${enable_cld+set}" = set; then :
13233 enableval=$enable_cld;
13239 # Check whether --enable-frame-pointer was given.
13240 if test "${enable_frame_pointer+set}" = set; then :
13241 enableval=$enable_frame_pointer;
13245 linux* | gnu* | darwin[8912]* | cygwin* | mingw*)
13246 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
13247 enable_frame_pointer=no
13250 enable_frame_pointer=yes
13258 i[34567]86-*-* | x86_64-*-*)
13259 if test "x$enable_cld" = xyes; then
13260 tm_defines="${tm_defines} USE_IX86_CLD=1"
13262 if test "x$enable_frame_pointer" = xyes; then
13263 tm_defines="${tm_defines} USE_IX86_FRAME_POINTER=1"
13268 # Windows32 Registry support for specifying GCC installation paths.
13269 # Check whether --enable-win32-registry was given.
13270 if test "${enable_win32_registry+set}" = set; then :
13271 enableval=$enable_win32_registry;
13276 win32 | pe | cygwin* | mingw32*)
13277 if test "x$enable_win32_registry" != xno; then
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
13279 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
13280 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13281 $as_echo_n "(cached) " >&6
13283 ac_func_search_save_LIBS=$LIBS
13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h. */
13287 /* Override any GCC internal prototype to avoid an error.
13288 Use char because int might match the return type of a GCC
13289 builtin and then its argument prototype would still apply. */
13293 char RegOpenKeyExA ();
13297 return RegOpenKeyExA ();
13302 for ac_lib in '' advapi32; do
13303 if test -z "$ac_lib"; then
13304 ac_res="none required"
13307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13309 if ac_fn_cxx_try_link "$LINENO"; then :
13310 ac_cv_search_RegOpenKeyExA=$ac_res
13312 rm -f core conftest.err conftest.$ac_objext \
13314 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13318 if ${ac_cv_search_RegOpenKeyExA+:} false; then :
13321 ac_cv_search_RegOpenKeyExA=no
13323 rm conftest.$ac_ext
13324 LIBS=$ac_func_search_save_LIBS
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
13327 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
13328 ac_res=$ac_cv_search_RegOpenKeyExA
13329 if test "$ac_res" != no; then :
13330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13333 enable_win32_registry=no
13338 if test "x$enable_win32_registry" != xno; then
13340 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
13343 if test "x$enable_win32_registry" != xyes \
13344 && test "x$enable_win32_registry" != x; then
13346 cat >>confdefs.h <<_ACEOF
13347 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13355 # Get an absolute path to the GCC top-level source directory
13356 holddir=`${PWDCMD-pwd}`
13358 topdir=`${PWDCMD-pwd}`
13361 # Conditionalize the makefile for this host machine.
13363 for f in ${host_xmake_file}
13365 if test -f ${srcdir}/config/$f
13367 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13371 # Conditionalize the makefile for this target machine.
13373 for f in ${tmake_file}
13375 if test -f ${srcdir}/config/$f
13377 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13380 tmake_file="${tmake_file_}${omp_device_property_tmake_file}"
13382 out_object_file=`basename $out_file .cc`.o
13383 common_out_object_file=`basename $common_out_file .cc`.o
13385 tm_file_list="options.h"
13386 tm_include_list="options.h insn-constants.h"
13387 for f in $tm_file; do
13390 f=`echo $f | sed 's/^..//'`
13391 tm_file_list="${tm_file_list} $f"
13392 tm_include_list="${tm_include_list} $f"
13395 tm_file_list="${tm_file_list} \$(srcdir)/$f"
13396 tm_include_list="${tm_include_list} $f"
13399 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13400 tm_include_list="${tm_include_list} config/$f"
13407 for f in $tm_p_file; do
13410 tm_p_file_list="${tm_p_file_list} $f"
13411 tm_p_include_list="${tm_p_include_list} $f"
13414 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13415 tm_p_include_list="${tm_p_include_list} config/$f"
13421 for f in $tm_d_file; do
13424 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
13425 tm_d_include_list="${tm_d_include_list} config/$f"
13432 for f in $xm_file; do
13435 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13436 xm_include_list="${xm_include_list} $f"
13439 xm_file_list="${xm_file_list} $f"
13440 xm_include_list="${xm_include_list} $f"
13443 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13444 xm_include_list="${xm_include_list} config/$f"
13450 host_xm_include_list=
13451 for f in $host_xm_file; do
13454 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13455 host_xm_include_list="${host_xm_include_list} $f"
13458 host_xm_file_list="${host_xm_file_list} $f"
13459 host_xm_include_list="${host_xm_include_list} $f"
13462 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13463 host_xm_include_list="${host_xm_include_list} config/$f"
13468 build_xm_file_list=
13469 for f in $build_xm_file; do
13472 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13473 build_xm_include_list="${build_xm_include_list} $f"
13475 auto-build.h | auto-host.h )
13476 build_xm_file_list="${build_xm_file_list} $f"
13477 build_xm_include_list="${build_xm_include_list} $f"
13480 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13481 build_xm_include_list="${build_xm_include_list} config/$f"
13486 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13487 # cross-compiler which does not use the native headers and libraries.
13488 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13491 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13492 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
13494 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
13495 test x$build != x$host || test "x$with_build_sysroot" != x; then
13496 if test "x$with_build_sysroot" != x; then
13497 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13499 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13502 if test x$host != x$target
13504 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13506 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
13507 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13508 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
13511 if test "x$with_build_sysroot" != "x"; then
13512 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
13513 elif test "x$with_sysroot" = x; then
13514 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
13515 elif test "x$with_sysroot" = xyes; then
13516 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
13518 target_header_dir="${with_sysroot}${native_system_header_dir}"
13521 target_header_dir=${native_system_header_dir}
13524 # If this is a cross-compiler that does not
13525 # have its own set of headers then define
13528 # If this is using newlib, without having the headers available now,
13529 # then define inhibit_libc in LIBGCC2_CFLAGS.
13530 # This prevents libgcc2 from containing any code which requires libc
13532 : ${inhibit_libc=false}
13533 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13534 test x$with_newlib = xyes ; } &&
13535 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
13540 # When building gcc with a cross-compiler, we need to adjust things so
13541 # that the generator programs are still built with the native compiler.
13542 # Also, we cannot run fixincludes.
13544 # These are the normal (build=host) settings:
13545 CC_FOR_BUILD='$(CC)'
13546 CXX_FOR_BUILD='$(CXX)'
13547 BUILD_CFLAGS='$(ALL_CFLAGS)'
13548 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
13549 BUILD_LDFLAGS='$(LDFLAGS)'
13550 STMP_FIXINC=stmp-fixinc
13552 # And these apply if build != host, or we are generating coverage data
13553 if test x$build != x$host || test "x$coverage_flags" != x
13555 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CFLAGS_FOR_BUILD)'
13556 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS-$@) $(CXXFLAGS_FOR_BUILD)'
13557 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
13561 if test x$enable_fixincludes = xno;
13566 # Expand extra_headers to include complete path.
13567 # This substitutes for lots of t-* files.
13568 extra_headers_list=
13569 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13570 for file in ${extra_headers} ; do
13571 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13574 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13575 if test x"$use_gcc_tgmath" = xyes
13576 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13579 # Define collect2 in Makefile.
13580 case $host_can_use_collect2 in
13582 *) collect2='collect2$(exeext)' ;;
13586 # Add a definition of USE_COLLECT2 if system wants one.
13587 case $use_collect2 in
13588 no) use_collect2= ;;
13591 host_xm_defines="${host_xm_defines} USE_COLLECT2"
13592 xm_defines="${xm_defines} USE_COLLECT2"
13593 case $host_can_use_collect2 in
13595 as_fn_error $? "collect2 is required but cannot be built on this system" "$LINENO" 5
13602 cat >>confdefs.h <<_ACEOF
13603 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
13607 # ---------------------------
13608 # Assembler & linker features
13609 # ---------------------------
13611 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
13612 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
13613 # However when ld-new is first executed from the build tree, libtool will
13614 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
13615 # to the build tree. While doing this we need to use the previous-stage
13616 # linker, or we have an infinite loop. The presence of a shell script as
13617 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
13618 # the gcc/collect-ld script. So we need to know how libtool works, or
13619 # exec-tool will fail.
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13625 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13630 macro_version='2.2.7a'
13631 macro_revision='1.3134'
13645 ltmain="$ac_aux_dir/ltmain.sh"
13647 # Backslashify metacharacters that are still active within
13648 # double-quoted strings.
13649 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13651 # Same as above, but do not quote variable references.
13652 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13654 # Sed substitution to delay expansion of an escaped shell variable in a
13655 # double_quote_subst'ed string.
13656 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13658 # Sed substitution to delay expansion of an escaped single quote.
13659 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13661 # Sed substitution to avoid accidental globbing in evaled expressions
13662 no_glob_subst='s/\*/\\\*/g'
13664 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13665 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13666 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13669 $as_echo_n "checking how to print strings... " >&6; }
13670 # Test print first, because it will be a builtin if present.
13671 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
13672 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13674 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13677 # Use this function as a fallback that always works.
13678 func_fallback_echo ()
13680 eval 'cat <<_LTECHO_EOF
13684 ECHO='func_fallback_echo'
13687 # func_echo_all arg...
13688 # Invoke $ECHO with all args, space-separated.
13695 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13696 $as_echo "printf" >&6; } ;;
13697 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13698 $as_echo "print -r" >&6; } ;;
13699 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13700 $as_echo "cat" >&6; } ;;
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13717 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13718 if ${ac_cv_path_SED+:} false; then :
13719 $as_echo_n "(cached) " >&6
13721 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13722 for ac_i in 1 2 3 4 5 6 7; do
13723 ac_script="$ac_script$as_nl$ac_script"
13725 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13726 { ac_script=; unset ac_script;}
13727 if test -z "$SED"; then
13728 ac_path_SED_found=false
13729 # Loop through the user's path and test for each of PROGNAME-LIST
13730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13731 for as_dir in $PATH
13734 test -z "$as_dir" && as_dir=.
13735 for ac_prog in sed gsed; do
13736 for ac_exec_ext in '' $ac_executable_extensions; do
13737 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13738 as_fn_executable_p "$ac_path_SED" || continue
13739 # Check for GNU ac_path_SED and select it if it is found.
13740 # Check for GNU $ac_path_SED
13741 case `"$ac_path_SED" --version 2>&1` in
13743 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13746 $as_echo_n 0123456789 >"conftest.in"
13749 cat "conftest.in" "conftest.in" >"conftest.tmp"
13750 mv "conftest.tmp" "conftest.in"
13751 cp "conftest.in" "conftest.nl"
13752 $as_echo '' >> "conftest.nl"
13753 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13754 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13755 as_fn_arith $ac_count + 1 && ac_count=$as_val
13756 if test $ac_count -gt ${ac_path_SED_max-0}; then
13757 # Best one so far, save it but keep looking for a better one
13758 ac_cv_path_SED="$ac_path_SED"
13759 ac_path_SED_max=$ac_count
13761 # 10*(2^10) chars as input seems more than enough
13762 test $ac_count -gt 10 && break
13764 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13767 $ac_path_SED_found && break 3
13772 if test -z "$ac_cv_path_SED"; then
13773 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13776 ac_cv_path_SED=$SED
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13781 $as_echo "$ac_cv_path_SED" >&6; }
13782 SED="$ac_cv_path_SED"
13785 test -z "$SED" && SED=sed
13786 Xsed="$SED -e 1s/^X//"
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13799 $as_echo_n "checking for fgrep... " >&6; }
13800 if ${ac_cv_path_FGREP+:} false; then :
13801 $as_echo_n "(cached) " >&6
13803 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13804 then ac_cv_path_FGREP="$GREP -F"
13806 if test -z "$FGREP"; then
13807 ac_path_FGREP_found=false
13808 # Loop through the user's path and test for each of PROGNAME-LIST
13809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13810 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13813 test -z "$as_dir" && as_dir=.
13814 for ac_prog in fgrep; do
13815 for ac_exec_ext in '' $ac_executable_extensions; do
13816 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13817 as_fn_executable_p "$ac_path_FGREP" || continue
13818 # Check for GNU ac_path_FGREP and select it if it is found.
13819 # Check for GNU $ac_path_FGREP
13820 case `"$ac_path_FGREP" --version 2>&1` in
13822 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13825 $as_echo_n 0123456789 >"conftest.in"
13828 cat "conftest.in" "conftest.in" >"conftest.tmp"
13829 mv "conftest.tmp" "conftest.in"
13830 cp "conftest.in" "conftest.nl"
13831 $as_echo 'FGREP' >> "conftest.nl"
13832 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13833 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13834 as_fn_arith $ac_count + 1 && ac_count=$as_val
13835 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13836 # Best one so far, save it but keep looking for a better one
13837 ac_cv_path_FGREP="$ac_path_FGREP"
13838 ac_path_FGREP_max=$ac_count
13840 # 10*(2^10) chars as input seems more than enough
13841 test $ac_count -gt 10 && break
13843 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13846 $ac_path_FGREP_found && break 3
13851 if test -z "$ac_cv_path_FGREP"; then
13852 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13855 ac_cv_path_FGREP=$FGREP
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13861 $as_echo "$ac_cv_path_FGREP" >&6; }
13862 FGREP="$ac_cv_path_FGREP"
13865 test -z "$GREP" && GREP=grep
13885 # Check whether --with-gnu-ld was given.
13886 if test "${with_gnu_ld+set}" = set; then :
13887 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13893 if test "$GCC" = yes; then
13894 # Check if gcc -print-prog-name=ld gives a path.
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13896 $as_echo_n "checking for ld used by $CC... " >&6; }
13899 # gcc leaves a trailing carriage return which upsets mingw
13900 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13902 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13905 # Accept absolute paths.
13907 re_direlt='/[^/][^/]*/\.\./'
13908 # Canonicalize the pathname of ld
13909 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13910 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13911 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13913 test -z "$LD" && LD="$ac_prog"
13916 # If it fails, then pretend we aren't using GCC.
13920 # If it is relative, then search for the first ld in PATH.
13921 with_gnu_ld=unknown
13924 elif test "$with_gnu_ld" = yes; then
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13926 $as_echo_n "checking for GNU ld... " >&6; }
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13929 $as_echo_n "checking for non-GNU ld... " >&6; }
13931 if ${lt_cv_path_LD+:} false; then :
13932 $as_echo_n "(cached) " >&6
13934 if test -z "$LD"; then
13935 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13936 for ac_dir in $PATH; do
13938 test -z "$ac_dir" && ac_dir=.
13939 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13940 lt_cv_path_LD="$ac_dir/$ac_prog"
13941 # Check to see if the program is GNU ld. I'd rather use --version,
13942 # but apparently some variants of GNU ld only accept -v.
13943 # Break only if it was the GNU/non-GNU ld that we prefer.
13944 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13945 *GNU* | *'with BFD'*)
13946 test "$with_gnu_ld" != no && break
13949 test "$with_gnu_ld" != yes && break
13956 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13960 LD="$lt_cv_path_LD"
13961 if test -n "$LD"; then
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13963 $as_echo "$LD" >&6; }
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13966 $as_echo "no" >&6; }
13968 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13970 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13971 if ${lt_cv_prog_gnu_ld+:} false; then :
13972 $as_echo_n "(cached) " >&6
13974 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13975 case `$LD -v 2>&1 </dev/null` in
13976 *GNU* | *'with BFD'*)
13977 lt_cv_prog_gnu_ld=yes
13980 lt_cv_prog_gnu_ld=no
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13985 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13986 with_gnu_ld=$lt_cv_prog_gnu_ld
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13997 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13998 if ${lt_cv_path_NM+:} false; then :
13999 $as_echo_n "(cached) " >&6
14001 if test -n "$NM"; then
14002 # Let the user override the test.
14003 lt_cv_path_NM="$NM"
14005 lt_nm_to_check="${ac_tool_prefix}nm"
14006 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14007 lt_nm_to_check="$lt_nm_to_check nm"
14009 for lt_tmp_nm in $lt_nm_to_check; do
14010 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14011 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14013 test -z "$ac_dir" && ac_dir=.
14014 tmp_nm="$ac_dir/$lt_tmp_nm"
14015 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14016 # Check to see if the nm accepts a BSD-compat flag.
14017 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14018 # nm: unknown option "B" ignored
14019 # Tru64's nm complains that /dev/null is an invalid object file
14020 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14021 */dev/null* | *'Invalid file or object type'*)
14022 lt_cv_path_NM="$tmp_nm -B"
14026 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14028 lt_cv_path_NM="$tmp_nm -p"
14032 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14033 continue # so that we can try to find one that supports BSD flags
14042 : ${lt_cv_path_NM=no}
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14046 $as_echo "$lt_cv_path_NM" >&6; }
14047 if test "$lt_cv_path_NM" != "no"; then
14048 NM="$lt_cv_path_NM"
14050 # Didn't find any BSD compatible name lister, look for dumpbin.
14051 if test -n "$DUMPBIN"; then :
14052 # Let the user override the test.
14054 if test -n "$ac_tool_prefix"; then
14055 for ac_prog in dumpbin "link -dump"
14057 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14058 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14060 $as_echo_n "checking for $ac_word... " >&6; }
14061 if ${ac_cv_prog_DUMPBIN+:} false; then :
14062 $as_echo_n "(cached) " >&6
14064 if test -n "$DUMPBIN"; then
14065 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14068 for as_dir in $PATH
14071 test -z "$as_dir" && as_dir=.
14072 for ac_exec_ext in '' $ac_executable_extensions; do
14073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14074 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14084 DUMPBIN=$ac_cv_prog_DUMPBIN
14085 if test -n "$DUMPBIN"; then
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14087 $as_echo "$DUMPBIN" >&6; }
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14090 $as_echo "no" >&6; }
14094 test -n "$DUMPBIN" && break
14097 if test -z "$DUMPBIN"; then
14098 ac_ct_DUMPBIN=$DUMPBIN
14099 for ac_prog in dumpbin "link -dump"
14101 # Extract the first word of "$ac_prog", so it can be a program name with args.
14102 set dummy $ac_prog; ac_word=$2
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14104 $as_echo_n "checking for $ac_word... " >&6; }
14105 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
14106 $as_echo_n "(cached) " >&6
14108 if test -n "$ac_ct_DUMPBIN"; then
14109 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14112 for as_dir in $PATH
14115 test -z "$as_dir" && as_dir=.
14116 for ac_exec_ext in '' $ac_executable_extensions; do
14117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14118 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14128 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14129 if test -n "$ac_ct_DUMPBIN"; then
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14131 $as_echo "$ac_ct_DUMPBIN" >&6; }
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14134 $as_echo "no" >&6; }
14138 test -n "$ac_ct_DUMPBIN" && break
14141 if test "x$ac_ct_DUMPBIN" = x; then
14144 case $cross_compiling:$ac_tool_warned in
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14148 ac_tool_warned=yes ;;
14150 DUMPBIN=$ac_ct_DUMPBIN
14154 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
14156 DUMPBIN="$DUMPBIN -symbols"
14164 if test "$DUMPBIN" != ":"; then
14168 test -z "$NM" && NM=nm
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14176 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
14177 if ${lt_cv_nm_interface+:} false; then :
14178 $as_echo_n "(cached) " >&6
14180 lt_cv_nm_interface="BSD nm"
14181 echo "int some_variable = 0;" > conftest.$ac_ext
14182 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14183 (eval "$ac_compile" 2>conftest.err)
14184 cat conftest.err >&5
14185 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14186 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14187 cat conftest.err >&5
14188 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14189 cat conftest.out >&5
14190 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14191 lt_cv_nm_interface="MS dumpbin"
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14196 $as_echo "$lt_cv_nm_interface" >&6; }
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14199 $as_echo_n "checking whether ln -s works... " >&6; }
14201 if test "$LN_S" = "ln -s"; then
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14203 $as_echo "yes" >&6; }
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14206 $as_echo "no, using $LN_S" >&6; }
14209 # find the maximum length of command line arguments
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14211 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
14212 if ${lt_cv_sys_max_cmd_len+:} false; then :
14213 $as_echo_n "(cached) " >&6
14220 # On DJGPP, this test can blow up pretty badly due to problems in libc
14221 # (any single argument exceeding 2000 bytes causes a buffer overrun
14222 # during glob expansion). Even if it were fixed, the result of this
14223 # check would be larger than it should be.
14224 lt_cv_sys_max_cmd_len=12288; # 12K is about right
14228 # Under GNU Hurd, this test is not required because there is
14229 # no limit to the length of command line arguments.
14230 # Libtool will interpret -1 as no limit whatsoever
14231 lt_cv_sys_max_cmd_len=-1;
14234 cygwin* | mingw* | cegcc*)
14235 # On Win9x/ME, this test blows up -- it succeeds, but takes
14236 # about 5 minutes as the teststring grows exponentially.
14237 # Worse, since 9x/ME are not pre-emptively multitasking,
14238 # you end up with a "frozen" computer, even though with patience
14239 # the test eventually succeeds (with a max line length of 256k).
14240 # Instead, let's just punt: use the minimum linelength reported by
14241 # all of the supported platforms: 8192 (on NT/2K/XP).
14242 lt_cv_sys_max_cmd_len=8192;
14246 # On MiNT this can take a long time and run out of memory.
14247 lt_cv_sys_max_cmd_len=8192;
14251 # On AmigaOS with pdksh, this test takes hours, literally.
14252 # So we just punt and use a minimum line length of 8192.
14253 lt_cv_sys_max_cmd_len=8192;
14256 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14257 # This has been around since 386BSD, at least. Likely further.
14258 if test -x /sbin/sysctl; then
14259 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14260 elif test -x /usr/sbin/sysctl; then
14261 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14263 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14265 # And add a safety zone
14266 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14267 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14271 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14272 lt_cv_sys_max_cmd_len=196608
14276 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14277 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14278 # nice to cause kernel panics so lets avoid the loop below.
14279 # First set a reasonable default.
14280 lt_cv_sys_max_cmd_len=16384
14282 if test -x /sbin/sysconfig; then
14283 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14284 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14289 lt_cv_sys_max_cmd_len=102400
14291 sysv5* | sco5v6* | sysv4.2uw2*)
14292 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14293 if test -n "$kargmax"; then
14294 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14296 lt_cv_sys_max_cmd_len=32768
14300 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
14301 if test -n "$lt_cv_sys_max_cmd_len"; then
14302 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14305 # Make teststring a little bigger before we do anything with it.
14306 # a 1K string should be a reasonable start.
14307 for i in 1 2 3 4 5 6 7 8 ; do
14308 teststring=$teststring$teststring
14310 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14311 # If test is not a shell built-in, we'll probably end up computing a
14312 # maximum length that is only half of the actual maximum length, but
14314 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
14315 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
14316 test $i != 17 # 1/2 MB should be enough
14319 teststring=$teststring$teststring
14321 # Only check the string length outside the loop.
14322 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
14324 # Add a significant safety factor because C++ compilers can tack on
14325 # massive amounts of additional arguments before passing them to the
14326 # linker. It appears as though 1/2 is a usable value.
14327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14334 if test -n $lt_cv_sys_max_cmd_len ; then
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
14336 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14339 $as_echo "none" >&6; }
14341 max_cmd_len=$lt_cv_sys_max_cmd_len
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
14353 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
14354 # Try some XSI features
14356 ( _lt_dummy="a/b/c"
14357 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
14359 && eval 'test $(( 1 + 1 )) -eq 2 \
14360 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
14363 $as_echo "$xsi_shell" >&6; }
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
14367 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
14369 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
14371 && lt_shell_append=yes
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
14373 $as_echo "$lt_shell_append" >&6; }
14376 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14386 # test EBCDIC or ASCII
14387 case `echo X|tr X '\101'` in
14388 A) # ASCII based system
14389 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14390 lt_SP2NL='tr \040 \012'
14391 lt_NL2SP='tr \015\012 \040\040'
14393 *) # EBCDIC based system
14394 lt_SP2NL='tr \100 \n'
14395 lt_NL2SP='tr \r\n \100\100'
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
14408 $as_echo_n "checking for $LD option to reload object files... " >&6; }
14409 if ${lt_cv_ld_reload_flag+:} false; then :
14410 $as_echo_n "(cached) " >&6
14412 lt_cv_ld_reload_flag='-r'
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
14415 $as_echo "$lt_cv_ld_reload_flag" >&6; }
14416 reload_flag=$lt_cv_ld_reload_flag
14417 case $reload_flag in
14419 *) reload_flag=" $reload_flag" ;;
14421 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14424 if test "$GCC" = yes; then
14425 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
14427 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14440 if test -n "$ac_tool_prefix"; then
14441 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14442 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14444 $as_echo_n "checking for $ac_word... " >&6; }
14445 if ${ac_cv_prog_OBJDUMP+:} false; then :
14446 $as_echo_n "(cached) " >&6
14448 if test -n "$OBJDUMP"; then
14449 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14452 for as_dir in $PATH
14455 test -z "$as_dir" && as_dir=.
14456 for ac_exec_ext in '' $ac_executable_extensions; do
14457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14458 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14468 OBJDUMP=$ac_cv_prog_OBJDUMP
14469 if test -n "$OBJDUMP"; then
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14471 $as_echo "$OBJDUMP" >&6; }
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14474 $as_echo "no" >&6; }
14479 if test -z "$ac_cv_prog_OBJDUMP"; then
14480 ac_ct_OBJDUMP=$OBJDUMP
14481 # Extract the first word of "objdump", so it can be a program name with args.
14482 set dummy objdump; ac_word=$2
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14484 $as_echo_n "checking for $ac_word... " >&6; }
14485 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14486 $as_echo_n "(cached) " >&6
14488 if test -n "$ac_ct_OBJDUMP"; then
14489 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14492 for as_dir in $PATH
14495 test -z "$as_dir" && as_dir=.
14496 for ac_exec_ext in '' $ac_executable_extensions; do
14497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14498 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14508 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14509 if test -n "$ac_ct_OBJDUMP"; then
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14511 $as_echo "$ac_ct_OBJDUMP" >&6; }
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14514 $as_echo "no" >&6; }
14517 if test "x$ac_ct_OBJDUMP" = x; then
14520 case $cross_compiling:$ac_tool_warned in
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14524 ac_tool_warned=yes ;;
14526 OBJDUMP=$ac_ct_OBJDUMP
14529 OBJDUMP="$ac_cv_prog_OBJDUMP"
14532 test -z "$OBJDUMP" && OBJDUMP=objdump
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14543 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
14544 if ${lt_cv_deplibs_check_method+:} false; then :
14545 $as_echo_n "(cached) " >&6
14547 lt_cv_file_magic_cmd='$MAGIC_CMD'
14548 lt_cv_file_magic_test_file=
14549 lt_cv_deplibs_check_method='unknown'
14550 # Need to set the preceding variable on all platforms that support
14551 # interlibrary dependencies.
14552 # 'none' -- dependencies not supported.
14553 # `unknown' -- same as none, but documents that we really don't know.
14554 # 'pass_all' -- all dependencies passed with no checks.
14555 # 'test_compile' -- check by making test program.
14556 # 'file_magic [[regex]]' -- check by looking for files in library path
14557 # which responds to the $file_magic_cmd with a given extended regex.
14558 # If you have `file' or equivalent on your system and you're not sure
14559 # whether `pass_all' will *always* work, you probably want this one.
14563 lt_cv_deplibs_check_method=pass_all
14567 lt_cv_deplibs_check_method=pass_all
14571 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14572 lt_cv_file_magic_cmd='/usr/bin/file -L'
14573 lt_cv_file_magic_test_file=/shlib/libc.so
14577 # func_win32_libid is a shell function defined in ltmain.sh
14578 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14579 lt_cv_file_magic_cmd='func_win32_libid'
14583 # Base MSYS/MinGW do not provide the 'file' command needed by
14584 # func_win32_libid shell function, so use a weaker test based on 'objdump',
14585 # unless we find 'file', for example because we are cross-compiling.
14586 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
14587 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
14588 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14589 lt_cv_file_magic_cmd='func_win32_libid'
14591 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14592 lt_cv_file_magic_cmd='$OBJDUMP -f'
14597 # use the weaker test based on 'objdump'. See mingw*.
14598 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14599 lt_cv_file_magic_cmd='$OBJDUMP -f'
14602 darwin* | rhapsody*)
14603 lt_cv_deplibs_check_method=pass_all
14606 freebsd* | dragonfly*)
14607 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14610 # Not sure whether the presence of OpenBSD here was a mistake.
14611 # Let's accept both of them until this is cleared up.
14612 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14613 lt_cv_file_magic_cmd=/usr/bin/file
14614 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14618 lt_cv_deplibs_check_method=pass_all
14623 lt_cv_deplibs_check_method=pass_all
14627 lt_cv_deplibs_check_method=pass_all
14630 hpux10.20* | hpux11*)
14631 lt_cv_file_magic_cmd=/usr/bin/file
14634 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14635 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14638 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]'
14639 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14642 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14643 lt_cv_file_magic_test_file=/usr/lib/libc.sl
14649 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14653 irix5* | irix6* | nonstopux*)
14655 *-32|*"-32 ") libmagic=32-bit;;
14656 *-n32|*"-n32 ") libmagic=N32;;
14657 *-64|*"-64 ") libmagic=64-bit;;
14658 *) libmagic=never-match;;
14660 lt_cv_deplibs_check_method=pass_all
14663 # This must be Linux ELF.
14664 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14665 lt_cv_deplibs_check_method=pass_all
14669 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14670 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14672 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14677 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14678 lt_cv_file_magic_cmd=/usr/bin/file
14679 lt_cv_file_magic_test_file=/usr/lib/libnls.so
14683 lt_cv_deplibs_check_method=pass_all
14687 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14688 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14694 osf3* | osf4* | osf5*)
14695 lt_cv_deplibs_check_method=pass_all
14699 lt_cv_deplibs_check_method=pass_all
14703 lt_cv_deplibs_check_method=pass_all
14706 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14707 lt_cv_deplibs_check_method=pass_all
14711 case $host_vendor in
14713 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]'
14714 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14717 lt_cv_deplibs_check_method=pass_all
14720 lt_cv_file_magic_cmd='/bin/file'
14721 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14724 lt_cv_file_magic_cmd='/bin/file'
14725 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14726 lt_cv_file_magic_test_file=/lib/libc.so
14729 lt_cv_deplibs_check_method=pass_all
14732 lt_cv_deplibs_check_method=pass_all
14738 lt_cv_deplibs_check_method=pass_all
14741 # Assume VxWorks cross toolchains are built on Linux, possibly
14742 # as canadian for Windows hosts.
14743 lt_cv_deplibs_check_method=pass_all
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14749 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14750 file_magic_cmd=$lt_cv_file_magic_cmd
14751 deplibs_check_method=$lt_cv_deplibs_check_method
14752 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14765 if test -n "$ac_tool_prefix"; then
14766 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14767 set dummy ${ac_tool_prefix}ar; ac_word=$2
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14769 $as_echo_n "checking for $ac_word... " >&6; }
14770 if ${ac_cv_prog_AR+:} false; then :
14771 $as_echo_n "(cached) " >&6
14773 if test -n "$AR"; then
14774 ac_cv_prog_AR="$AR" # Let the user override the test.
14776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14777 for as_dir in $PATH
14780 test -z "$as_dir" && as_dir=.
14781 for ac_exec_ext in '' $ac_executable_extensions; do
14782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14783 ac_cv_prog_AR="${ac_tool_prefix}ar"
14784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14794 if test -n "$AR"; then
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14796 $as_echo "$AR" >&6; }
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14799 $as_echo "no" >&6; }
14804 if test -z "$ac_cv_prog_AR"; then
14806 # Extract the first word of "ar", so it can be a program name with args.
14807 set dummy ar; ac_word=$2
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14809 $as_echo_n "checking for $ac_word... " >&6; }
14810 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14811 $as_echo_n "(cached) " >&6
14813 if test -n "$ac_ct_AR"; then
14814 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14817 for as_dir in $PATH
14820 test -z "$as_dir" && as_dir=.
14821 for ac_exec_ext in '' $ac_executable_extensions; do
14822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14823 ac_cv_prog_ac_ct_AR="ar"
14824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14833 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14834 if test -n "$ac_ct_AR"; then
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14836 $as_echo "$ac_ct_AR" >&6; }
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14839 $as_echo "no" >&6; }
14842 if test "x$ac_ct_AR" = x; then
14845 case $cross_compiling:$ac_tool_warned in
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14849 ac_tool_warned=yes ;;
14854 AR="$ac_cv_prog_AR"
14857 test -z "$AR" && AR=ar
14858 test -z "$AR_FLAGS" && AR_FLAGS=cru
14870 if test -n "$ac_tool_prefix"; then
14871 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14872 set dummy ${ac_tool_prefix}strip; ac_word=$2
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14874 $as_echo_n "checking for $ac_word... " >&6; }
14875 if ${ac_cv_prog_STRIP+:} false; then :
14876 $as_echo_n "(cached) " >&6
14878 if test -n "$STRIP"; then
14879 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14882 for as_dir in $PATH
14885 test -z "$as_dir" && as_dir=.
14886 for ac_exec_ext in '' $ac_executable_extensions; do
14887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14888 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14898 STRIP=$ac_cv_prog_STRIP
14899 if test -n "$STRIP"; then
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14901 $as_echo "$STRIP" >&6; }
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14904 $as_echo "no" >&6; }
14909 if test -z "$ac_cv_prog_STRIP"; then
14911 # Extract the first word of "strip", so it can be a program name with args.
14912 set dummy strip; ac_word=$2
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14914 $as_echo_n "checking for $ac_word... " >&6; }
14915 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14916 $as_echo_n "(cached) " >&6
14918 if test -n "$ac_ct_STRIP"; then
14919 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14922 for as_dir in $PATH
14925 test -z "$as_dir" && as_dir=.
14926 for ac_exec_ext in '' $ac_executable_extensions; do
14927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14928 ac_cv_prog_ac_ct_STRIP="strip"
14929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14938 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14939 if test -n "$ac_ct_STRIP"; then
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14941 $as_echo "$ac_ct_STRIP" >&6; }
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14944 $as_echo "no" >&6; }
14947 if test "x$ac_ct_STRIP" = x; then
14950 case $cross_compiling:$ac_tool_warned in
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14954 ac_tool_warned=yes ;;
14959 STRIP="$ac_cv_prog_STRIP"
14962 test -z "$STRIP" && STRIP=:
14969 if test -n "$ac_tool_prefix"; then
14970 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14971 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14973 $as_echo_n "checking for $ac_word... " >&6; }
14974 if ${ac_cv_prog_RANLIB+:} false; then :
14975 $as_echo_n "(cached) " >&6
14977 if test -n "$RANLIB"; then
14978 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14981 for as_dir in $PATH
14984 test -z "$as_dir" && as_dir=.
14985 for ac_exec_ext in '' $ac_executable_extensions; do
14986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14987 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14997 RANLIB=$ac_cv_prog_RANLIB
14998 if test -n "$RANLIB"; then
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15000 $as_echo "$RANLIB" >&6; }
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15003 $as_echo "no" >&6; }
15008 if test -z "$ac_cv_prog_RANLIB"; then
15009 ac_ct_RANLIB=$RANLIB
15010 # Extract the first word of "ranlib", so it can be a program name with args.
15011 set dummy ranlib; ac_word=$2
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15013 $as_echo_n "checking for $ac_word... " >&6; }
15014 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15015 $as_echo_n "(cached) " >&6
15017 if test -n "$ac_ct_RANLIB"; then
15018 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15021 for as_dir in $PATH
15024 test -z "$as_dir" && as_dir=.
15025 for ac_exec_ext in '' $ac_executable_extensions; do
15026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15027 ac_cv_prog_ac_ct_RANLIB="ranlib"
15028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15037 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15038 if test -n "$ac_ct_RANLIB"; then
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15040 $as_echo "$ac_ct_RANLIB" >&6; }
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15043 $as_echo "no" >&6; }
15046 if test "x$ac_ct_RANLIB" = x; then
15049 case $cross_compiling:$ac_tool_warned in
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15053 ac_tool_warned=yes ;;
15055 RANLIB=$ac_ct_RANLIB
15058 RANLIB="$ac_cv_prog_RANLIB"
15061 test -z "$RANLIB" && RANLIB=:
15068 # Determine commands to create old-style static archives.
15069 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15070 old_postinstall_cmds='chmod 644 $oldlib'
15071 old_postuninstall_cmds=
15073 if test -n "$RANLIB"; then
15076 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15079 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15082 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15087 lock_old_archive_extraction=yes ;;
15089 lock_old_archive_extraction=no ;;
15130 # If no C compiler was specified, use CC.
15133 # If no C compiler flags were specified, use CFLAGS.
15134 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15136 # Allow CC to be a program name with arguments.
15140 # Check for command to grab the raw symbol name followed by C symbol from nm.
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
15142 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
15143 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
15144 $as_echo_n "(cached) " >&6
15147 # These are sane defaults that work on at least a few old systems.
15148 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
15150 # Character class describing NM global symbol codes.
15151 symcode='[BCDEGRST]'
15153 # Regexp to match symbols that can be accessed directly from C.
15154 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15156 # Define system-specific variables.
15161 cygwin* | mingw* | pw32* | cegcc*)
15162 symcode='[ABCDGISTW]'
15165 if test "$host_cpu" = ia64; then
15166 symcode='[ABCDEGRST]'
15169 irix* | nonstopux*)
15170 symcode='[BCDEGRST]'
15173 symcode='[BCDEGQRST]'
15184 sysv5* | sco5v6* | unixware* | OpenUNIX*)
15192 # If we're using GNU nm, then use its standard symbol codes.
15193 case `$NM -V 2>&1` in
15194 *GNU* | *'with BFD'*)
15195 symcode='[ABCDGIRSTW]' ;;
15198 # Transform an extracted symbol line into a proper C declaration.
15199 # Some systems (esp. on ia64) link data and code symbols differently,
15200 # so use this general approach.
15201 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
15203 # Transform an extracted symbol line into symbol name and symbol address
15204 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
15205 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'"
15207 # Handle CRLF in mingw tool chain
15211 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15215 # Try without a prefix underscore, then with it.
15216 for ac_symprfx in "" "_"; do
15218 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15219 symxfrm="\\1 $ac_symprfx\\2 \\2"
15221 # Write the raw and C identifiers.
15222 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15223 # Fake it for dumpbin and say T for any non-static function
15224 # and D for any global variable.
15225 # Also find C++ and __fastcall symbols from MSVC++,
15226 # which start with @ or ?.
15227 lt_cv_sys_global_symbol_pipe="$AWK '"\
15228 " {last_section=section; section=\$ 3};"\
15229 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15230 " \$ 0!~/External *\|/{next};"\
15231 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15232 " {if(hide[section]) next};"\
15233 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
15234 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
15235 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
15236 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
15237 " ' prfx=^$ac_symprfx"
15239 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15242 # Check to see that the pipe works correctly.
15246 cat > conftest.$ac_ext <<_LT_EOF
15251 void nm_test_func(void);
15252 void nm_test_func(void){}
15256 int main(){nm_test_var='a';nm_test_func();return(0);}
15259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15260 (eval $ac_compile) 2>&5
15262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15263 test $ac_status = 0; }; then
15264 # Now try to grab the symbols.
15266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
15267 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
15269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15270 test $ac_status = 0; } && test -s "$nlist"; then
15271 # Try sorting and uniquifying the output.
15272 if sort "$nlist" | uniq > "$nlist"T; then
15273 mv -f "$nlist"T "$nlist"
15278 # Make sure that we snagged all the symbols we need.
15279 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15280 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15281 cat <<_LT_EOF > conftest.$ac_ext
15287 # Now generate the symbol file.
15288 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15290 cat <<_LT_EOF >> conftest.$ac_ext
15292 /* The mapping between symbol names and symbols. */
15297 lt__PROGRAM__LTX_preloaded_symbols[] =
15299 { "@PROGRAM@", (void *) 0 },
15301 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15302 cat <<\_LT_EOF >> conftest.$ac_ext
15306 /* This works around a problem in FreeBSD linker */
15307 #ifdef FREEBSD_WORKAROUND
15308 static const void *lt_preloaded_setup() {
15309 return lt__PROGRAM__LTX_preloaded_symbols;
15317 # Now try linking the two files.
15318 mv conftest.$ac_objext conftstm.$ac_objext
15319 lt_save_LIBS="$LIBS"
15320 lt_save_CFLAGS="$CFLAGS"
15321 LIBS="conftstm.$ac_objext"
15322 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15324 (eval $ac_link) 2>&5
15326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15327 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
15330 LIBS="$lt_save_LIBS"
15331 CFLAGS="$lt_save_CFLAGS"
15333 echo "cannot find nm_test_func in $nlist" >&5
15336 echo "cannot find nm_test_var in $nlist" >&5
15339 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15342 echo "$progname: failed program was:" >&5
15343 cat conftest.$ac_ext >&5
15345 rm -rf conftest* conftst*
15347 # Do not use the global_symbol_pipe unless it works.
15348 if test "$pipe_works" = yes; then
15351 lt_cv_sys_global_symbol_pipe=
15357 if test -z "$lt_cv_sys_global_symbol_pipe"; then
15358 lt_cv_sys_global_symbol_to_cdecl=
15360 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15362 $as_echo "failed" >&6; }
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15365 $as_echo "ok" >&6; }
15389 # Check whether --enable-libtool-lock was given.
15390 if test "${enable_libtool_lock+set}" = set; then :
15391 enableval=$enable_libtool_lock;
15394 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15396 # Some flags need to be propagated to the compiler or linker for good
15400 # Find out which ABI we are using.
15401 echo 'int i;' > conftest.$ac_ext
15402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15403 (eval $ac_compile) 2>&5
15405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15406 test $ac_status = 0; }; then
15407 case `/usr/bin/file conftest.$ac_objext` in
15409 HPUX_IA64_MODE="32"
15412 HPUX_IA64_MODE="64"
15419 # Find out which ABI we are using.
15420 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15422 (eval $ac_compile) 2>&5
15424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15425 test $ac_status = 0; }; then
15426 if test "$lt_cv_prog_gnu_ld" = yes; then
15427 case `/usr/bin/file conftest.$ac_objext` in
15429 LD="${LD-ld} -melf32bsmip"
15432 LD="${LD-ld} -melf32bmipn32"
15435 LD="${LD-ld} -melf64bmip"
15439 case `/usr/bin/file conftest.$ac_objext` in
15455 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15456 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15457 # Find out which ABI we are using.
15458 echo 'int i;' > conftest.$ac_ext
15459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15460 (eval $ac_compile) 2>&5
15462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15463 test $ac_status = 0; }; then
15464 case `/usr/bin/file conftest.o` in
15467 x86_64-*kfreebsd*-gnu)
15468 LD="${LD-ld} -m elf_i386_fbsd"
15471 case `/usr/bin/file conftest.o` in
15473 LD="${LD-ld} -m elf32_x86_64"
15476 LD="${LD-ld} -m elf_i386"
15480 powerpc64le-*linux*)
15481 LD="${LD-ld} -m elf32lppclinux"
15484 LD="${LD-ld} -m elf32ppclinux"
15487 LD="${LD-ld} -m elf_s390"
15490 LD="${LD-ld} -m elf32_sparc"
15496 x86_64-*kfreebsd*-gnu)
15497 LD="${LD-ld} -m elf_x86_64_fbsd"
15500 LD="${LD-ld} -m elf_x86_64"
15503 LD="${LD-ld} -m elf64lppc"
15506 LD="${LD-ld} -m elf64ppc"
15508 s390*-*linux*|s390*-*tpf*)
15509 LD="${LD-ld} -m elf64_s390"
15512 LD="${LD-ld} -m elf64_sparc"
15522 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15523 SAVE_CFLAGS="$CFLAGS"
15524 CFLAGS="$CFLAGS -belf"
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15526 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15527 if ${lt_cv_cc_needs_belf+:} false; then :
15528 $as_echo_n "(cached) " >&6
15531 ac_cpp='$CPP $CPPFLAGS'
15532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15537 /* end confdefs.h. */
15547 if ac_fn_c_try_link "$LINENO"; then :
15548 lt_cv_cc_needs_belf=yes
15550 lt_cv_cc_needs_belf=no
15552 rm -f core conftest.err conftest.$ac_objext \
15553 conftest$ac_exeext conftest.$ac_ext
15555 ac_cpp='$CPP $CPPFLAGS'
15556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15562 $as_echo "$lt_cv_cc_needs_belf" >&6; }
15563 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15564 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15565 CFLAGS="$SAVE_CFLAGS"
15569 # Find out which ABI we are using.
15570 echo 'int i;' > conftest.$ac_ext
15571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15572 (eval $ac_compile) 2>&5
15574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15575 test $ac_status = 0; }; then
15576 case `/usr/bin/file conftest.o` in
15578 case $lt_cv_prog_gnu_ld in
15579 yes*) LD="${LD-ld} -m elf64_sparc" ;;
15581 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15593 need_locks="$enable_libtool_lock"
15597 rhapsody* | darwin*)
15598 if test -n "$ac_tool_prefix"; then
15599 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15600 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15602 $as_echo_n "checking for $ac_word... " >&6; }
15603 if ${ac_cv_prog_DSYMUTIL+:} false; then :
15604 $as_echo_n "(cached) " >&6
15606 if test -n "$DSYMUTIL"; then
15607 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15610 for as_dir in $PATH
15613 test -z "$as_dir" && as_dir=.
15614 for ac_exec_ext in '' $ac_executable_extensions; do
15615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15616 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15626 DSYMUTIL=$ac_cv_prog_DSYMUTIL
15627 if test -n "$DSYMUTIL"; then
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15629 $as_echo "$DSYMUTIL" >&6; }
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15632 $as_echo "no" >&6; }
15637 if test -z "$ac_cv_prog_DSYMUTIL"; then
15638 ac_ct_DSYMUTIL=$DSYMUTIL
15639 # Extract the first word of "dsymutil", so it can be a program name with args.
15640 set dummy dsymutil; ac_word=$2
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15642 $as_echo_n "checking for $ac_word... " >&6; }
15643 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15644 $as_echo_n "(cached) " >&6
15646 if test -n "$ac_ct_DSYMUTIL"; then
15647 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15650 for as_dir in $PATH
15653 test -z "$as_dir" && as_dir=.
15654 for ac_exec_ext in '' $ac_executable_extensions; do
15655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15656 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15666 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15667 if test -n "$ac_ct_DSYMUTIL"; then
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15669 $as_echo "$ac_ct_DSYMUTIL" >&6; }
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15672 $as_echo "no" >&6; }
15675 if test "x$ac_ct_DSYMUTIL" = x; then
15678 case $cross_compiling:$ac_tool_warned in
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15682 ac_tool_warned=yes ;;
15684 DSYMUTIL=$ac_ct_DSYMUTIL
15687 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15690 if test -n "$ac_tool_prefix"; then
15691 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15692 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15694 $as_echo_n "checking for $ac_word... " >&6; }
15695 if ${ac_cv_prog_NMEDIT+:} false; then :
15696 $as_echo_n "(cached) " >&6
15698 if test -n "$NMEDIT"; then
15699 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15702 for as_dir in $PATH
15705 test -z "$as_dir" && as_dir=.
15706 for ac_exec_ext in '' $ac_executable_extensions; do
15707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15708 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15718 NMEDIT=$ac_cv_prog_NMEDIT
15719 if test -n "$NMEDIT"; then
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15721 $as_echo "$NMEDIT" >&6; }
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15724 $as_echo "no" >&6; }
15729 if test -z "$ac_cv_prog_NMEDIT"; then
15730 ac_ct_NMEDIT=$NMEDIT
15731 # Extract the first word of "nmedit", so it can be a program name with args.
15732 set dummy nmedit; ac_word=$2
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15734 $as_echo_n "checking for $ac_word... " >&6; }
15735 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15736 $as_echo_n "(cached) " >&6
15738 if test -n "$ac_ct_NMEDIT"; then
15739 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15742 for as_dir in $PATH
15745 test -z "$as_dir" && as_dir=.
15746 for ac_exec_ext in '' $ac_executable_extensions; do
15747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15748 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15758 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15759 if test -n "$ac_ct_NMEDIT"; then
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15761 $as_echo "$ac_ct_NMEDIT" >&6; }
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15764 $as_echo "no" >&6; }
15767 if test "x$ac_ct_NMEDIT" = x; then
15770 case $cross_compiling:$ac_tool_warned in
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15774 ac_tool_warned=yes ;;
15776 NMEDIT=$ac_ct_NMEDIT
15779 NMEDIT="$ac_cv_prog_NMEDIT"
15782 if test -n "$ac_tool_prefix"; then
15783 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15784 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15786 $as_echo_n "checking for $ac_word... " >&6; }
15787 if ${ac_cv_prog_LIPO+:} false; then :
15788 $as_echo_n "(cached) " >&6
15790 if test -n "$LIPO"; then
15791 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15794 for as_dir in $PATH
15797 test -z "$as_dir" && as_dir=.
15798 for ac_exec_ext in '' $ac_executable_extensions; do
15799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15800 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15810 LIPO=$ac_cv_prog_LIPO
15811 if test -n "$LIPO"; then
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15813 $as_echo "$LIPO" >&6; }
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15816 $as_echo "no" >&6; }
15821 if test -z "$ac_cv_prog_LIPO"; then
15823 # Extract the first word of "lipo", so it can be a program name with args.
15824 set dummy lipo; ac_word=$2
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15826 $as_echo_n "checking for $ac_word... " >&6; }
15827 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15828 $as_echo_n "(cached) " >&6
15830 if test -n "$ac_ct_LIPO"; then
15831 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15834 for as_dir in $PATH
15837 test -z "$as_dir" && as_dir=.
15838 for ac_exec_ext in '' $ac_executable_extensions; do
15839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15840 ac_cv_prog_ac_ct_LIPO="lipo"
15841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15850 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15851 if test -n "$ac_ct_LIPO"; then
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15853 $as_echo "$ac_ct_LIPO" >&6; }
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15856 $as_echo "no" >&6; }
15859 if test "x$ac_ct_LIPO" = x; then
15862 case $cross_compiling:$ac_tool_warned in
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15866 ac_tool_warned=yes ;;
15871 LIPO="$ac_cv_prog_LIPO"
15874 if test -n "$ac_tool_prefix"; then
15875 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15876 set dummy ${ac_tool_prefix}otool; ac_word=$2
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15878 $as_echo_n "checking for $ac_word... " >&6; }
15879 if ${ac_cv_prog_OTOOL+:} false; then :
15880 $as_echo_n "(cached) " >&6
15882 if test -n "$OTOOL"; then
15883 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15886 for as_dir in $PATH
15889 test -z "$as_dir" && as_dir=.
15890 for ac_exec_ext in '' $ac_executable_extensions; do
15891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15892 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15902 OTOOL=$ac_cv_prog_OTOOL
15903 if test -n "$OTOOL"; then
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15905 $as_echo "$OTOOL" >&6; }
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15908 $as_echo "no" >&6; }
15913 if test -z "$ac_cv_prog_OTOOL"; then
15915 # Extract the first word of "otool", so it can be a program name with args.
15916 set dummy otool; ac_word=$2
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15918 $as_echo_n "checking for $ac_word... " >&6; }
15919 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15920 $as_echo_n "(cached) " >&6
15922 if test -n "$ac_ct_OTOOL"; then
15923 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15926 for as_dir in $PATH
15929 test -z "$as_dir" && as_dir=.
15930 for ac_exec_ext in '' $ac_executable_extensions; do
15931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15932 ac_cv_prog_ac_ct_OTOOL="otool"
15933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15942 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15943 if test -n "$ac_ct_OTOOL"; then
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15945 $as_echo "$ac_ct_OTOOL" >&6; }
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15948 $as_echo "no" >&6; }
15951 if test "x$ac_ct_OTOOL" = x; then
15954 case $cross_compiling:$ac_tool_warned in
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15958 ac_tool_warned=yes ;;
15963 OTOOL="$ac_cv_prog_OTOOL"
15966 if test -n "$ac_tool_prefix"; then
15967 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15968 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15970 $as_echo_n "checking for $ac_word... " >&6; }
15971 if ${ac_cv_prog_OTOOL64+:} false; then :
15972 $as_echo_n "(cached) " >&6
15974 if test -n "$OTOOL64"; then
15975 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15978 for as_dir in $PATH
15981 test -z "$as_dir" && as_dir=.
15982 for ac_exec_ext in '' $ac_executable_extensions; do
15983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15984 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15994 OTOOL64=$ac_cv_prog_OTOOL64
15995 if test -n "$OTOOL64"; then
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15997 $as_echo "$OTOOL64" >&6; }
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16000 $as_echo "no" >&6; }
16005 if test -z "$ac_cv_prog_OTOOL64"; then
16006 ac_ct_OTOOL64=$OTOOL64
16007 # Extract the first word of "otool64", so it can be a program name with args.
16008 set dummy otool64; ac_word=$2
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16010 $as_echo_n "checking for $ac_word... " >&6; }
16011 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16012 $as_echo_n "(cached) " >&6
16014 if test -n "$ac_ct_OTOOL64"; then
16015 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16018 for as_dir in $PATH
16021 test -z "$as_dir" && as_dir=.
16022 for ac_exec_ext in '' $ac_executable_extensions; do
16023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16024 ac_cv_prog_ac_ct_OTOOL64="otool64"
16025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16034 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16035 if test -n "$ac_ct_OTOOL64"; then
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
16037 $as_echo "$ac_ct_OTOOL64" >&6; }
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16040 $as_echo "no" >&6; }
16043 if test "x$ac_ct_OTOOL64" = x; then
16046 case $cross_compiling:$ac_tool_warned in
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16050 ac_tool_warned=yes ;;
16052 OTOOL64=$ac_ct_OTOOL64
16055 OTOOL64="$ac_cv_prog_OTOOL64"
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
16085 $as_echo_n "checking for -single_module linker flag... " >&6; }
16086 if ${lt_cv_apple_cc_single_mod+:} false; then :
16087 $as_echo_n "(cached) " >&6
16089 lt_cv_apple_cc_single_mod=no
16090 if test -z "${LT_MULTI_MODULE}"; then
16091 # By default we will add the -single_module flag. You can override
16092 # by either setting the environment variable LT_MULTI_MODULE
16093 # non-empty at configure time, or by adding -multi_module to the
16095 rm -rf libconftest.dylib*
16096 echo "int foo(void){return 1;}" > conftest.c
16097 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16098 -dynamiclib -Wl,-single_module conftest.c" >&5
16099 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16100 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16102 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
16103 lt_cv_apple_cc_single_mod=yes
16105 cat conftest.err >&5
16107 rm -rf libconftest.dylib*
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
16112 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
16114 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
16115 if ${lt_cv_ld_exported_symbols_list+:} false; then :
16116 $as_echo_n "(cached) " >&6
16118 lt_cv_ld_exported_symbols_list=no
16119 save_LDFLAGS=$LDFLAGS
16120 echo "_main" > conftest.sym
16121 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16123 /* end confdefs.h. */
16133 if ac_fn_c_try_link "$LINENO"; then :
16134 lt_cv_ld_exported_symbols_list=yes
16136 lt_cv_ld_exported_symbols_list=no
16138 rm -f core conftest.err conftest.$ac_objext \
16139 conftest$ac_exeext conftest.$ac_ext
16140 LDFLAGS="$save_LDFLAGS"
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
16144 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
16146 $as_echo_n "checking for -force_load linker flag... " >&6; }
16147 if ${lt_cv_ld_force_load+:} false; then :
16148 $as_echo_n "(cached) " >&6
16150 lt_cv_ld_force_load=no
16151 cat > conftest.c << _LT_EOF
16152 int forced_loaded() { return 2;}
16154 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
16155 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16156 echo "$AR cru libconftest.a conftest.o" >&5
16157 $AR cru libconftest.a conftest.o 2>&5
16158 cat > conftest.c << _LT_EOF
16159 int main() { return 0;}
16161 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
16162 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16164 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
16165 lt_cv_ld_force_load=yes
16167 cat conftest.err >&5
16169 rm -f conftest.err libconftest.a conftest conftest.c
16170 rm -rf conftest.dSYM
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
16174 $as_echo "$lt_cv_ld_force_load" >&6; }
16175 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
16176 # build without first building modern cctools / linker.
16177 case $host_cpu-$host_os in
16178 *-rhapsody* | *-darwin1.[012])
16179 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
16181 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
16183 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
16184 # deployment target is forced to an earlier version.
16185 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
16186 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
16189 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16196 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
16197 _lt_dar_single_mod='$single_module'
16199 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
16200 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
16202 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
16204 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
16205 _lt_dsymutil='~$DSYMUTIL $lib || :'
16213 for ac_header in dlfcn.h
16215 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
16216 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16217 cat >>confdefs.h <<_ACEOF
16218 #define HAVE_DLFCN_H 1
16235 enable_win32_dll=no
16238 # Check whether --enable-shared was given.
16239 if test "${enable_shared+set}" = set; then :
16240 enableval=$enable_shared; p=${PACKAGE-default}
16242 yes) enable_shared=yes ;;
16243 no) enable_shared=no ;;
16246 # Look at the argument we got. We use all the common list separators.
16247 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16248 for pkg in $enableval; do
16250 if test "X$pkg" = "X$p"; then
16269 # Check whether --enable-static was given.
16270 if test "${enable_static+set}" = set; then :
16271 enableval=$enable_static; p=${PACKAGE-default}
16273 yes) enable_static=yes ;;
16274 no) enable_static=no ;;
16277 # Look at the argument we got. We use all the common list separators.
16278 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16279 for pkg in $enableval; do
16281 if test "X$pkg" = "X$p"; then
16301 # Check whether --with-pic was given.
16302 if test "${with_pic+set}" = set; then :
16303 withval=$with_pic; pic_mode="$withval"
16309 test -z "$pic_mode" && pic_mode=default
16317 # Check whether --enable-fast-install was given.
16318 if test "${enable_fast_install+set}" = set; then :
16319 enableval=$enable_fast_install; p=${PACKAGE-default}
16321 yes) enable_fast_install=yes ;;
16322 no) enable_fast_install=no ;;
16324 enable_fast_install=no
16325 # Look at the argument we got. We use all the common list separators.
16326 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16327 for pkg in $enableval; do
16329 if test "X$pkg" = "X$p"; then
16330 enable_fast_install=yes
16337 enable_fast_install=yes
16350 # This can be used to rebuild libtool when needed
16351 LIBTOOL_DEPS="$ltmain"
16353 # Always use our own libtool.
16354 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16381 test -z "$LN_S" && LN_S="ln -s"
16396 if test -n "${ZSH_VERSION+set}" ; then
16397 setopt NO_GLOB_SUBST
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16401 $as_echo_n "checking for objdir... " >&6; }
16402 if ${lt_cv_objdir+:} false; then :
16403 $as_echo_n "(cached) " >&6
16405 rm -f .libs 2>/dev/null
16406 mkdir .libs 2>/dev/null
16407 if test -d .libs; then
16410 # MS-DOS does not allow filenames that begin with a dot.
16413 rmdir .libs 2>/dev/null
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16416 $as_echo "$lt_cv_objdir" >&6; }
16417 objdir=$lt_cv_objdir
16423 cat >>confdefs.h <<_ACEOF
16424 #define LT_OBJDIR "$lt_cv_objdir/"
16432 # AIX sometimes has problems with the GCC collect2 program. For some
16433 # reason, if we set the COLLECT_NAMES environment variable, the problems
16434 # vanish in a puff of smoke.
16435 if test "X${COLLECT_NAMES+set}" != Xset; then
16437 export COLLECT_NAMES
16442 # Global variables:
16444 can_build_shared=yes
16446 # All known linkers require a `.a' archive for static linking (except MSVC,
16447 # which needs '.lib').
16450 with_gnu_ld="$lt_cv_prog_gnu_ld"
16453 old_CFLAGS="$CFLAGS"
16455 # Set sane defaults for various variables
16456 test -z "$CC" && CC=cc
16457 test -z "$LTCC" && LTCC=$CC
16458 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16459 test -z "$LD" && LD=ld
16460 test -z "$ac_objext" && ac_objext=o
16462 for cc_temp in $compiler""; do
16464 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16465 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16470 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16473 # Only perform the check for file, if the check method requires it
16474 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16475 case $deplibs_check_method in
16477 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16479 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16480 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16481 $as_echo_n "(cached) " >&6
16485 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16488 lt_save_MAGIC_CMD="$MAGIC_CMD"
16489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16490 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16491 for ac_dir in $ac_dummy; do
16493 test -z "$ac_dir" && ac_dir=.
16494 if test -f $ac_dir/${ac_tool_prefix}file; then
16495 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16496 if test -n "$file_magic_test_file"; then
16497 case $deplibs_check_method in
16499 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16500 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16501 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16502 $EGREP "$file_magic_regex" > /dev/null; then
16507 *** Warning: the command libtool uses to detect shared libraries,
16508 *** $file_magic_cmd, produces output that libtool cannot recognize.
16509 *** The result is that libtool may fail to recognize shared libraries
16510 *** as such. This will affect the creation of libtool libraries that
16511 *** depend on shared libraries, but programs linked with such libtool
16512 *** libraries will work regardless of this problem. Nevertheless, you
16513 *** may want to report the problem to your system manager and/or to
16514 *** bug-libtool@gnu.org
16524 MAGIC_CMD="$lt_save_MAGIC_CMD"
16529 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16530 if test -n "$MAGIC_CMD"; then
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16532 $as_echo "$MAGIC_CMD" >&6; }
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16535 $as_echo "no" >&6; }
16542 if test -z "$lt_cv_path_MAGIC_CMD"; then
16543 if test -n "$ac_tool_prefix"; then
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16545 $as_echo_n "checking for file... " >&6; }
16546 if ${lt_cv_path_MAGIC_CMD+:} false; then :
16547 $as_echo_n "(cached) " >&6
16551 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16554 lt_save_MAGIC_CMD="$MAGIC_CMD"
16555 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16556 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16557 for ac_dir in $ac_dummy; do
16559 test -z "$ac_dir" && ac_dir=.
16560 if test -f $ac_dir/file; then
16561 lt_cv_path_MAGIC_CMD="$ac_dir/file"
16562 if test -n "$file_magic_test_file"; then
16563 case $deplibs_check_method in
16565 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16566 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16567 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16568 $EGREP "$file_magic_regex" > /dev/null; then
16573 *** Warning: the command libtool uses to detect shared libraries,
16574 *** $file_magic_cmd, produces output that libtool cannot recognize.
16575 *** The result is that libtool may fail to recognize shared libraries
16576 *** as such. This will affect the creation of libtool libraries that
16577 *** depend on shared libraries, but programs linked with such libtool
16578 *** libraries will work regardless of this problem. Nevertheless, you
16579 *** may want to report the problem to your system manager and/or to
16580 *** bug-libtool@gnu.org
16590 MAGIC_CMD="$lt_save_MAGIC_CMD"
16595 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16596 if test -n "$MAGIC_CMD"; then
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16598 $as_echo "$MAGIC_CMD" >&6; }
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16601 $as_echo "no" >&6; }
16614 # Use C for the default configuration in the libtool script
16618 ac_cpp='$CPP $CPPFLAGS'
16619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16624 # Source file extension for C test sources.
16627 # Object file extension for compiled C test sources.
16631 # Code to be used in simple compile tests
16632 lt_simple_compile_test_code="int some_variable = 0;"
16634 # Code to be used in simple link tests
16635 lt_simple_link_test_code='int main(){return(0);}'
16643 # If no C compiler was specified, use CC.
16646 # If no C compiler flags were specified, use CFLAGS.
16647 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16649 # Allow CC to be a program name with arguments.
16652 # Save the default compiler, since it gets overwritten when the other
16653 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16654 compiler_DEFAULT=$CC
16656 # save warnings/boilerplate of simple test code
16657 ac_outfile=conftest.$ac_objext
16658 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16659 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16660 _lt_compiler_boilerplate=`cat conftest.err`
16663 ac_outfile=conftest.$ac_objext
16664 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16665 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16666 _lt_linker_boilerplate=`cat conftest.err`
16671 ## There is no encapsulation within the following macros, do not change
16672 ## the running order or otherwise move them around unless you know exactly
16673 ## what you are doing...
16674 if test -n "$compiler"; then
16676 lt_prog_compiler_no_builtin_flag=
16678 if test "$GCC" = yes; then
16679 case $cc_basename in
16681 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16683 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16687 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16688 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16689 $as_echo_n "(cached) " >&6
16691 lt_cv_prog_compiler_rtti_exceptions=no
16692 ac_outfile=conftest.$ac_objext
16693 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16694 lt_compiler_flag="-fno-rtti -fno-exceptions"
16695 # Insert the option either (1) after the last *FLAGS variable, or
16696 # (2) before a word containing "conftest.", or (3) at the end.
16697 # Note that $ac_compile itself does not contain backslashes and begins
16698 # with a dollar sign (not a hyphen), so the echo should work correctly.
16699 # The option is referenced via a variable to avoid confusing sed.
16700 lt_compile=`echo "$ac_compile" | $SED \
16701 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16702 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16703 -e 's:$: $lt_compiler_flag:'`
16704 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16705 (eval "$lt_compile" 2>conftest.err)
16707 cat conftest.err >&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 if (exit $ac_status) && test -s "$ac_outfile"; then
16710 # The compiler can only warn and ignore the option if not recognized
16711 # So say no if there are warnings other than the usual output.
16712 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16713 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16714 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16715 lt_cv_prog_compiler_rtti_exceptions=yes
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16722 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16724 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16725 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16737 lt_prog_compiler_wl=
16738 lt_prog_compiler_pic=
16739 lt_prog_compiler_static=
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16742 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16744 if test "$GCC" = yes; then
16745 lt_prog_compiler_wl='-Wl,'
16746 lt_prog_compiler_static='-static'
16750 # All AIX code is PIC.
16751 if test "$host_cpu" = ia64; then
16752 # AIX 5 now supports IA64 processor
16753 lt_prog_compiler_static='-Bstatic'
16755 lt_prog_compiler_pic='-fPIC'
16761 # see comment about AmigaOS4 .so support
16762 lt_prog_compiler_pic='-fPIC'
16765 # FIXME: we need at least 68020 code to build shared libraries, but
16766 # adding the `-m68020' flag to GCC prevents building anything better,
16768 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16773 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16774 # PIC is the default for these OSes.
16777 mingw* | cygwin* | pw32* | os2* | cegcc*)
16778 # This hack is so that the source file can tell whether it is being
16779 # built for inclusion in a dll (and should export symbols for example).
16780 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16781 # (--disable-auto-import) libraries
16782 lt_prog_compiler_pic='-DDLL_EXPORT'
16785 darwin* | rhapsody*)
16786 # PIC is the default on this platform
16787 # Common symbols not allowed in MH_DYLIB files
16788 lt_prog_compiler_pic='-fno-common'
16792 # PIC is the default for Haiku.
16793 # The "-static" flag exists, but is broken.
16794 lt_prog_compiler_static=
16798 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16799 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16800 # sets the default TLS model and affects inlining.
16806 lt_prog_compiler_pic='-fPIC'
16812 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16813 # Instead, we relocate shared libraries at runtime.
16817 # Just because we use GCC doesn't mean we suddenly get shared libraries
16818 # on systems that don't support them.
16819 lt_prog_compiler_can_build_shared=no
16824 # QNX uses GNU C++, but need to define -shared option too, otherwise
16825 # it will coredump.
16826 lt_prog_compiler_pic='-fPIC -shared'
16830 if test -d /usr/nec; then
16831 lt_prog_compiler_pic=-Kconform_pic
16836 lt_prog_compiler_pic='-fPIC'
16840 case $cc_basename in
16841 nvcc*) # Cuda Compiler Driver 2.2
16842 lt_prog_compiler_wl='-Xlinker '
16843 lt_prog_compiler_pic='-Xcompiler -fPIC'
16847 # PORTME Check for flag to pass linker flags through the system compiler.
16850 lt_prog_compiler_wl='-Wl,'
16851 if test "$host_cpu" = ia64; then
16852 # AIX 5 now supports IA64 processor
16853 lt_prog_compiler_static='-Bstatic'
16855 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16859 mingw* | cygwin* | pw32* | os2* | cegcc*)
16860 # This hack is so that the source file can tell whether it is being
16861 # built for inclusion in a dll (and should export symbols for example).
16862 lt_prog_compiler_pic='-DDLL_EXPORT'
16865 hpux9* | hpux10* | hpux11*)
16866 lt_prog_compiler_wl='-Wl,'
16867 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16868 # not for PA HP-UX.
16874 lt_prog_compiler_pic='+Z'
16877 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16878 lt_prog_compiler_static='${wl}-a ${wl}archive'
16881 irix5* | irix6* | nonstopux*)
16882 lt_prog_compiler_wl='-Wl,'
16883 # PIC (with -KPIC) is the default.
16884 lt_prog_compiler_static='-non_shared'
16887 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16888 case $cc_basename in
16889 # old Intel for x86_64 which still supported -KPIC.
16891 lt_prog_compiler_wl='-Wl,'
16892 lt_prog_compiler_pic='-KPIC'
16893 lt_prog_compiler_static='-static'
16895 # icc used to be incompatible with GCC.
16896 # ICC 10 doesn't accept -KPIC any more.
16898 lt_prog_compiler_wl='-Wl,'
16899 lt_prog_compiler_pic='-fPIC'
16900 lt_prog_compiler_static='-static'
16902 # Lahey Fortran 8.1.
16904 lt_prog_compiler_wl='-Wl,'
16905 lt_prog_compiler_pic='--shared'
16906 lt_prog_compiler_static='--static'
16908 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16909 # Portland Group compilers (*not* the Pentium gcc compiler,
16910 # which looks to be a dead project)
16911 lt_prog_compiler_wl='-Wl,'
16912 lt_prog_compiler_pic='-fpic'
16913 lt_prog_compiler_static='-Bstatic'
16916 lt_prog_compiler_wl='-Wl,'
16917 # All Alpha code is PIC.
16918 lt_prog_compiler_static='-non_shared'
16920 xl* | bgxl* | bgf* | mpixl*)
16921 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16922 lt_prog_compiler_wl='-Wl,'
16923 lt_prog_compiler_pic='-qpic'
16924 lt_prog_compiler_static='-qstaticlink'
16927 case `$CC -V 2>&1 | sed 5q` in
16928 *Sun\ F* | *Sun*Fortran*)
16929 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16930 lt_prog_compiler_pic='-KPIC'
16931 lt_prog_compiler_static='-Bstatic'
16932 lt_prog_compiler_wl=''
16936 lt_prog_compiler_pic='-KPIC'
16937 lt_prog_compiler_static='-Bstatic'
16938 lt_prog_compiler_wl='-Wl,'
16946 lt_prog_compiler_pic='-KPIC'
16947 lt_prog_compiler_static='-Bstatic'
16951 # QNX uses GNU C++, but need to define -shared option too, otherwise
16952 # it will coredump.
16953 lt_prog_compiler_pic='-fPIC -shared'
16956 osf3* | osf4* | osf5*)
16957 lt_prog_compiler_wl='-Wl,'
16958 # All OSF/1 code is PIC.
16959 lt_prog_compiler_static='-non_shared'
16963 lt_prog_compiler_static='-non_shared'
16967 lt_prog_compiler_pic='-KPIC'
16968 lt_prog_compiler_static='-Bstatic'
16969 case $cc_basename in
16970 f77* | f90* | f95*)
16971 lt_prog_compiler_wl='-Qoption ld ';;
16973 lt_prog_compiler_wl='-Wl,';;
16978 lt_prog_compiler_wl='-Qoption ld '
16979 lt_prog_compiler_pic='-PIC'
16980 lt_prog_compiler_static='-Bstatic'
16983 sysv4 | sysv4.2uw2* | sysv4.3*)
16984 lt_prog_compiler_wl='-Wl,'
16985 lt_prog_compiler_pic='-KPIC'
16986 lt_prog_compiler_static='-Bstatic'
16990 if test -d /usr/nec ;then
16991 lt_prog_compiler_pic='-Kconform_pic'
16992 lt_prog_compiler_static='-Bstatic'
16996 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16997 lt_prog_compiler_wl='-Wl,'
16998 lt_prog_compiler_pic='-KPIC'
16999 lt_prog_compiler_static='-Bstatic'
17003 lt_prog_compiler_wl='-Wl,'
17004 lt_prog_compiler_can_build_shared=no
17008 lt_prog_compiler_pic='-pic'
17009 lt_prog_compiler_static='-Bstatic'
17013 lt_prog_compiler_can_build_shared=no
17019 # For platforms which do not support PIC, -DPIC is meaningless:
17021 lt_prog_compiler_pic=
17024 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
17028 $as_echo "$lt_prog_compiler_pic" >&6; }
17036 # Check to make sure the PIC flag actually works.
17038 if test -n "$lt_prog_compiler_pic"; then
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17040 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17041 if ${lt_cv_prog_compiler_pic_works+:} false; then :
17042 $as_echo_n "(cached) " >&6
17044 lt_cv_prog_compiler_pic_works=no
17045 ac_outfile=conftest.$ac_objext
17046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17047 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17048 # Insert the option either (1) after the last *FLAGS variable, or
17049 # (2) before a word containing "conftest.", or (3) at the end.
17050 # Note that $ac_compile itself does not contain backslashes and begins
17051 # with a dollar sign (not a hyphen), so the echo should work correctly.
17052 # The option is referenced via a variable to avoid confusing sed.
17053 lt_compile=`echo "$ac_compile" | $SED \
17054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17056 -e 's:$: $lt_compiler_flag:'`
17057 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17058 (eval "$lt_compile" 2>conftest.err)
17060 cat conftest.err >&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 if (exit $ac_status) && test -s "$ac_outfile"; then
17063 # The compiler can only warn and ignore the option if not recognized
17064 # So say no if there are warnings other than the usual output.
17065 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17067 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17068 lt_cv_prog_compiler_pic_works=yes
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17075 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17077 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
17078 case $lt_prog_compiler_pic in
17080 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17083 lt_prog_compiler_pic=
17084 lt_prog_compiler_can_build_shared=no
17095 # Check to make sure the static flag actually works.
17097 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17099 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17100 if ${lt_cv_prog_compiler_static_works+:} false; then :
17101 $as_echo_n "(cached) " >&6
17103 lt_cv_prog_compiler_static_works=no
17104 save_LDFLAGS="$LDFLAGS"
17105 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17106 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17107 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17108 # The linker can only warn and ignore the option if not recognized
17109 # So say no if there are warnings
17110 if test -s conftest.err; then
17111 # Append any errors to the config.log.
17112 cat conftest.err 1>&5
17113 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17115 if diff conftest.exp conftest.er2 >/dev/null; then
17116 lt_cv_prog_compiler_static_works=yes
17119 lt_cv_prog_compiler_static_works=yes
17123 LDFLAGS="$save_LDFLAGS"
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17127 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17129 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
17132 lt_prog_compiler_static=
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17142 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17143 if ${lt_cv_prog_compiler_c_o+:} false; then :
17144 $as_echo_n "(cached) " >&6
17146 lt_cv_prog_compiler_c_o=no
17147 $RM -r conftest 2>/dev/null
17151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17153 lt_compiler_flag="-o out/conftest2.$ac_objext"
17154 # Insert the option either (1) after the last *FLAGS variable, or
17155 # (2) before a word containing "conftest.", or (3) at the end.
17156 # Note that $ac_compile itself does not contain backslashes and begins
17157 # with a dollar sign (not a hyphen), so the echo should work correctly.
17158 lt_compile=`echo "$ac_compile" | $SED \
17159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17161 -e 's:$: $lt_compiler_flag:'`
17162 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17163 (eval "$lt_compile" 2>out/conftest.err)
17165 cat out/conftest.err >&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17169 # The compiler can only warn and ignore the option if not recognized
17170 # So say no if there are warnings
17171 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17172 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17173 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17174 lt_cv_prog_compiler_c_o=yes
17179 # SGI C++ compiler will create directory out/ii_files/ for
17180 # template instantiation
17181 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17182 $RM out/* && rmdir out
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17189 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17197 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17198 if ${lt_cv_prog_compiler_c_o+:} false; then :
17199 $as_echo_n "(cached) " >&6
17201 lt_cv_prog_compiler_c_o=no
17202 $RM -r conftest 2>/dev/null
17206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17208 lt_compiler_flag="-o out/conftest2.$ac_objext"
17209 # Insert the option either (1) after the last *FLAGS variable, or
17210 # (2) before a word containing "conftest.", or (3) at the end.
17211 # Note that $ac_compile itself does not contain backslashes and begins
17212 # with a dollar sign (not a hyphen), so the echo should work correctly.
17213 lt_compile=`echo "$ac_compile" | $SED \
17214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17216 -e 's:$: $lt_compiler_flag:'`
17217 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17218 (eval "$lt_compile" 2>out/conftest.err)
17220 cat out/conftest.err >&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17224 # The compiler can only warn and ignore the option if not recognized
17225 # So say no if there are warnings
17226 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17227 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17228 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17229 lt_cv_prog_compiler_c_o=yes
17234 # SGI C++ compiler will create directory out/ii_files/ for
17235 # template instantiation
17236 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17237 $RM out/* && rmdir out
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17244 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17249 hard_links="nottested"
17250 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17251 # do not overwrite the value of need_locks provided by the user
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17253 $as_echo_n "checking if we can lock with hard links... " >&6; }
17256 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17258 ln conftest.a conftest.b 2>&5 || hard_links=no
17259 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17261 $as_echo "$hard_links" >&6; }
17262 if test "$hard_links" = no; then
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17264 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17277 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17280 allow_undefined_flag=
17281 always_export_symbols=no
17283 archive_expsym_cmds=
17284 compiler_needs_object=no
17285 enable_shared_with_static_runtimes=no
17286 export_dynamic_flag_spec=
17287 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17288 hardcode_automatic=no
17290 hardcode_direct_absolute=no
17291 hardcode_libdir_flag_spec=
17292 hardcode_libdir_flag_spec_ld=
17293 hardcode_libdir_separator=
17294 hardcode_minus_L=no
17295 hardcode_shlibpath_var=unsupported
17297 link_all_deplibs=unknown
17299 module_expsym_cmds=
17300 old_archive_from_new_cmds=
17301 old_archive_from_expsyms_cmds=
17302 thread_safe_flag_spec=
17303 whole_archive_flag_spec=
17304 # include_expsyms should be a list of space-separated symbols to be *always*
17305 # included in the symbol list
17307 # exclude_expsyms can be an extended regexp of symbols to exclude
17308 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17309 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17310 # as well as any symbol that contains `d'.
17311 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17312 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17313 # platforms (ab)use it in PIC code, but their linkers get confused if
17314 # the symbol is explicitly referenced. Since portable code cannot
17315 # rely on this symbol name, it's probably fine to never include it in
17316 # preloaded symbol tables.
17317 # Exclude shared library initialization/finalization symbols.
17318 extract_expsyms_cmds=
17321 cygwin* | mingw* | pw32* | cegcc*)
17322 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17323 # When not using gcc, we currently assume that we are using
17324 # Microsoft Visual C++.
17325 if test "$GCC" != yes; then
17330 # we just hope/assume this is gcc and not c89 (= MSVC++)
17340 # On some targets, GNU ld is compatible enough with the native linker
17341 # that we're better off using the native interface for both.
17342 lt_use_gnu_ld_interface=no
17343 if test "$with_gnu_ld" = yes; then
17346 # The AIX port of GNU ld has always aspired to compatibility
17347 # with the native linker. However, as the warning in the GNU ld
17348 # block says, versions before 2.19.5* couldn't really create working
17349 # shared libraries, regardless of the interface used.
17350 case `$LD -v 2>&1` in
17351 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17352 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17353 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17355 lt_use_gnu_ld_interface=yes
17360 lt_use_gnu_ld_interface=yes
17365 if test "$lt_use_gnu_ld_interface" = yes; then
17366 # If archive_cmds runs LD, not CC, wlarc should be empty
17369 # Set some defaults for GNU ld with shared library support. These
17370 # are reset later if shared libraries are not supported. Putting them
17371 # here allows them to be overridden if necessary.
17372 runpath_var=LD_RUN_PATH
17373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17374 export_dynamic_flag_spec='${wl}--export-dynamic'
17375 # ancient GNU ld didn't support --whole-archive et. al.
17376 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17377 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17379 whole_archive_flag_spec=
17381 supports_anon_versioning=no
17382 case `$LD -v 2>&1` in
17383 *GNU\ gold*) supports_anon_versioning=yes ;;
17384 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17385 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17386 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17387 *\ 2.11.*) ;; # other 2.11 versions
17388 *) supports_anon_versioning=yes ;;
17391 # See if GNU ld supports shared libraries.
17394 # On AIX/PPC, the GNU linker is very broken
17395 if test "$host_cpu" != ia64; then
17399 *** Warning: the GNU linker, at least up to release 2.19, is reported
17400 *** to be unable to reliably create shared libraries on AIX.
17401 *** Therefore, libtool is disabling shared libraries support. If you
17402 *** really care for shared libraries, you may want to install binutils
17403 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17404 *** You will then need to restart the configuration process.
17413 # see comment about AmigaOS4 .so support
17414 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17415 archive_expsym_cmds=''
17418 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)'
17419 hardcode_libdir_flag_spec='-L$libdir'
17420 hardcode_minus_L=yes
17426 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17427 allow_undefined_flag=unsupported
17428 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17429 # support --undefined. This deserves some investigation. FIXME
17430 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17436 cygwin* | mingw* | pw32* | cegcc*)
17437 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17438 # as there is no search path for DLLs.
17439 hardcode_libdir_flag_spec='-L$libdir'
17440 export_dynamic_flag_spec='${wl}--export-all-symbols'
17441 allow_undefined_flag=unsupported
17442 always_export_symbols=no
17443 enable_shared_with_static_runtimes=yes
17444 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17446 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17448 # If the export-symbols file already is a .def file (1st line
17449 # is EXPORTS), use it as is; otherwise, prepend...
17450 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17451 cp $export_symbols $output_objdir/$soname.def;
17453 echo EXPORTS > $output_objdir/$soname.def;
17454 cat $export_symbols >> $output_objdir/$soname.def;
17456 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17464 link_all_deplibs=yes
17469 hardcode_shlibpath_var=no
17470 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17471 export_dynamic_flag_spec='${wl}-E'
17472 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17473 # Instead, shared libraries are loaded at an image base (0x10000000 by
17474 # default) and relocated if they conflict, which is a slow very memory
17475 # consuming and fragmenting process. To avoid this, we pick a random,
17476 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17477 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17478 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17479 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'
17482 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
17484 if test "$host_os" = linux-dietlibc; then
17485 case $cc_basename in
17486 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17489 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17490 && test "$tmp_diet" = no
17492 tmp_addflag=' $pic_flag'
17493 tmp_sharedflag='-shared'
17494 case $cc_basename,$host_cpu in
17495 pgcc*) # Portland Group C compiler
17496 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'
17497 tmp_addflag=' $pic_flag'
17499 pgf77* | pgf90* | pgf95* | pgfortran*)
17500 # Portland Group f77 and f90 compilers
17501 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'
17502 tmp_addflag=' $pic_flag -Mnomain' ;;
17503 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17504 tmp_addflag=' -i_dynamic' ;;
17505 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17506 tmp_addflag=' -i_dynamic -nofor_main' ;;
17507 ifc* | ifort*) # Intel Fortran compiler
17508 tmp_addflag=' -nofor_main' ;;
17509 lf95*) # Lahey Fortran 8.1
17510 whole_archive_flag_spec=
17511 tmp_sharedflag='--shared' ;;
17512 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17513 tmp_sharedflag='-qmkshrobj'
17515 nvcc*) # Cuda Compiler Driver 2.2
17516 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'
17517 compiler_needs_object=yes
17520 case `$CC -V 2>&1 | sed 5q` in
17521 *Sun\ C*) # Sun C 5.9
17522 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'
17523 compiler_needs_object=yes
17524 tmp_sharedflag='-G' ;;
17525 *Sun\ F*) # Sun Fortran 8.3
17526 tmp_sharedflag='-G' ;;
17528 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17530 if test "x$supports_anon_versioning" = xyes; then
17531 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17532 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17533 echo "local: *; };" >> $output_objdir/$libname.ver~
17534 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17537 case $cc_basename in
17538 xlf* | bgf* | bgxlf* | mpixlf*)
17539 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17540 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17541 hardcode_libdir_flag_spec=
17542 hardcode_libdir_flag_spec_ld='-rpath $libdir'
17543 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17544 if test "x$supports_anon_versioning" = xyes; then
17545 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17546 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17547 echo "local: *; };" >> $output_objdir/$libname.ver~
17548 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17558 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17559 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17562 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17563 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17568 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17572 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17573 *** create shared libraries on Solaris systems. Therefore, libtool
17574 *** is disabling shared libraries support. We urge you to upgrade GNU
17575 *** binutils to release 2.9.1 or newer. Another option is to modify
17576 *** your PATH or compiler configuration so that the native linker is
17577 *** used, and then restart.
17580 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17581 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17582 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17588 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17589 case `$LD -v 2>&1` in
17590 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17594 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17595 *** reliably create shared libraries on SCO systems. Therefore, libtool
17596 *** is disabling shared libraries support. We urge you to upgrade GNU
17597 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17598 *** your PATH or compiler configuration so that the native linker is
17599 *** used, and then restart.
17604 # For security reasons, it is highly recommended that you always
17605 # use absolute paths for naming shared libraries, and exclude the
17606 # DT_RUNPATH tag from executables and libraries. But doing so
17607 # requires that you compile everything twice, which is a pain.
17608 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17609 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17610 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17611 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17620 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17622 hardcode_direct=yes
17623 hardcode_shlibpath_var=no
17627 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17629 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17636 if test "$ld_shlibs" = no; then
17638 hardcode_libdir_flag_spec=
17639 export_dynamic_flag_spec=
17640 whole_archive_flag_spec=
17643 # PORTME fill in a description of your system's linker (not GNU ld)
17646 allow_undefined_flag=unsupported
17647 always_export_symbols=yes
17648 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'
17649 # Note: this linker hardcodes the directories in LIBPATH if there
17650 # are no directories specified by -L.
17651 hardcode_minus_L=yes
17652 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17653 # Neither direct hardcoding nor static linking is supported with a
17655 hardcode_direct=unsupported
17660 if test "$host_cpu" = ia64; then
17661 # On IA64, the linker does run time linking by default, so we don't
17662 # have to do anything special.
17663 aix_use_runtimelinking=no
17664 exp_sym_flag='-Bexport'
17667 # If we're using GNU nm, then we don't want the "-C" option.
17668 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17669 # Also, AIX nm treats weak defined symbols like other global
17670 # defined symbols, whereas GNU nm marks them as "W".
17671 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17672 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'
17674 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'
17676 aix_use_runtimelinking=no
17678 # Test if we are trying to use run time linking or normal
17679 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17680 # need to do runtime linking.
17681 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17682 for ld_flag in $LDFLAGS; do
17683 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17684 aix_use_runtimelinking=yes
17691 exp_sym_flag='-bexport'
17692 no_entry_flag='-bnoentry'
17695 # When large executables or shared objects are built, AIX ld can
17696 # have problems creating the table of contents. If linking a library
17697 # or program results in "error TOC overflow" add -mminimal-toc to
17698 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17699 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17702 hardcode_direct=yes
17703 hardcode_direct_absolute=yes
17704 hardcode_libdir_separator=':'
17705 link_all_deplibs=yes
17706 file_list_spec='${wl}-f,'
17708 if test "$GCC" = yes; then
17709 case $host_os in aix4.[012]|aix4.[012].*)
17710 # We only want to do this on AIX 4.2 and lower, the check
17711 # below for broken collect2 doesn't work under 4.3+
17712 collect2name=`${CC} -print-prog-name=collect2`
17713 if test -f "$collect2name" &&
17714 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17716 # We have reworked collect2
17719 # We have old collect2
17720 hardcode_direct=unsupported
17721 # It fails to find uninstalled libraries when the uninstalled
17722 # path is not listed in the libpath. Setting hardcode_minus_L
17723 # to unsupported forces relinking
17724 hardcode_minus_L=yes
17725 hardcode_libdir_flag_spec='-L$libdir'
17726 hardcode_libdir_separator=
17730 shared_flag='-shared'
17731 if test "$aix_use_runtimelinking" = yes; then
17732 shared_flag="$shared_flag "'${wl}-G'
17736 if test "$host_cpu" = ia64; then
17737 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17738 # chokes on -Wl,-G. The following line is correct:
17741 if test "$aix_use_runtimelinking" = yes; then
17742 shared_flag='${wl}-G'
17744 shared_flag='${wl}-bM:SRE'
17749 export_dynamic_flag_spec='${wl}-bexpall'
17750 # It seems that -bexpall does not export symbols beginning with
17751 # underscore (_), so it is better to generate a list of symbols to export.
17752 always_export_symbols=yes
17753 if test "$aix_use_runtimelinking" = yes; then
17754 # Warning - without using the other runtime loading flags (-brtl),
17755 # -berok will link without error, but may produce a broken library.
17756 allow_undefined_flag='-berok'
17757 # Determine the default libpath from the value encoded in an
17758 # empty executable.
17759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17760 /* end confdefs.h. */
17770 if ac_fn_c_try_link "$LINENO"; then :
17772 lt_aix_libpath_sed='
17773 /Import File Strings/,/^$/ {
17779 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17780 # Check for a 64-bit object if we didn't find anything.
17781 if test -z "$aix_libpath"; then
17782 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17785 rm -f core conftest.err conftest.$ac_objext \
17786 conftest$ac_exeext conftest.$ac_ext
17787 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17789 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17790 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"
17792 if test "$host_cpu" = ia64; then
17793 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17794 allow_undefined_flag="-z nodefs"
17795 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"
17797 # Determine the default libpath from the value encoded in an
17798 # empty executable.
17799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17800 /* end confdefs.h. */
17810 if ac_fn_c_try_link "$LINENO"; then :
17812 lt_aix_libpath_sed='
17813 /Import File Strings/,/^$/ {
17819 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17820 # Check for a 64-bit object if we didn't find anything.
17821 if test -z "$aix_libpath"; then
17822 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17825 rm -f core conftest.err conftest.$ac_objext \
17826 conftest$ac_exeext conftest.$ac_ext
17827 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17829 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17830 # Warning - without using the other run time loading flags,
17831 # -berok will link without error, but may produce a broken library.
17832 no_undefined_flag=' ${wl}-bernotok'
17833 allow_undefined_flag=' ${wl}-berok'
17834 if test "$with_gnu_ld" = yes; then
17835 # We only use this code for GNU lds that support --whole-archive.
17836 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17838 # Exported symbols can be pulled into shared objects from archives
17839 whole_archive_flag_spec='$convenience'
17841 archive_cmds_need_lc=yes
17842 # This is similar to how AIX traditionally builds its shared libraries.
17843 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'
17851 # see comment about AmigaOS4 .so support
17852 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17853 archive_expsym_cmds=''
17856 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)'
17857 hardcode_libdir_flag_spec='-L$libdir'
17858 hardcode_minus_L=yes
17864 export_dynamic_flag_spec=-rdynamic
17867 cygwin* | mingw* | pw32* | cegcc*)
17868 # When not using gcc, we currently assume that we are using
17869 # Microsoft Visual C++.
17870 # hardcode_libdir_flag_spec is actually meaningless, as there is
17871 # no search path for DLLs.
17872 hardcode_libdir_flag_spec=' '
17873 allow_undefined_flag=unsupported
17874 # Tell ltmain to make .lib files, not .a files.
17876 # Tell ltmain to make .dll files, not .so files.
17878 # FIXME: Setting linknames here is a bad hack.
17879 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17880 # The linker will automatically build a .lib file if we build a DLL.
17881 old_archive_from_new_cmds='true'
17882 # FIXME: Should let the user specify the lib program.
17883 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17884 fix_srcfile_path='`cygpath -w "$srcfile"`'
17885 enable_shared_with_static_runtimes=yes
17888 darwin* | rhapsody*)
17891 archive_cmds_need_lc=no
17893 hardcode_automatic=yes
17894 hardcode_shlibpath_var=unsupported
17895 if test "$lt_cv_ld_force_load" = "yes"; then
17896 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\"`'
17898 whole_archive_flag_spec=''
17900 link_all_deplibs=yes
17901 allow_undefined_flag="$_lt_dar_allow_undefined"
17902 case $cc_basename in
17903 ifort*) _lt_dar_can_shared=yes ;;
17904 *) _lt_dar_can_shared=$GCC ;;
17906 if test "$_lt_dar_can_shared" = "yes"; then
17907 output_verbose_link_cmd=func_echo_all
17908 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17909 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17910 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}"
17911 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}"
17920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17921 hardcode_libdir_flag_spec='-L$libdir'
17922 hardcode_shlibpath_var=no
17925 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17926 # support. Future versions do this automatically, but an explicit c++rt0.o
17927 # does not break anything, and helps significantly (at the cost of a little
17930 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17931 hardcode_libdir_flag_spec='-R$libdir'
17932 hardcode_direct=yes
17933 hardcode_shlibpath_var=no
17936 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17938 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17939 hardcode_direct=yes
17940 hardcode_minus_L=yes
17941 hardcode_shlibpath_var=no
17944 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17945 freebsd* | dragonfly*)
17946 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17947 hardcode_libdir_flag_spec='-R$libdir'
17948 hardcode_direct=yes
17949 hardcode_shlibpath_var=no
17953 if test "$GCC" = yes; then
17954 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'
17956 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'
17958 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17959 hardcode_libdir_separator=:
17960 hardcode_direct=yes
17962 # hardcode_minus_L: Not really in the search PATH,
17963 # but as the default location of the library.
17964 hardcode_minus_L=yes
17965 export_dynamic_flag_spec='${wl}-E'
17969 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17970 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17972 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17974 if test "$with_gnu_ld" = no; then
17975 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
17976 hardcode_libdir_flag_spec_ld='+b $libdir'
17977 hardcode_libdir_separator=:
17978 hardcode_direct=yes
17979 hardcode_direct_absolute=yes
17980 export_dynamic_flag_spec='${wl}-E'
17981 # hardcode_minus_L: Not really in the search PATH,
17982 # but as the default location of the library.
17983 hardcode_minus_L=yes
17988 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17991 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17994 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17997 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18003 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18006 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18010 # Older versions of the 11.00 compiler do not understand -b yet
18011 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18013 $as_echo_n "checking if $CC understands -b... " >&6; }
18014 if ${lt_cv_prog_compiler__b+:} false; then :
18015 $as_echo_n "(cached) " >&6
18017 lt_cv_prog_compiler__b=no
18018 save_LDFLAGS="$LDFLAGS"
18019 LDFLAGS="$LDFLAGS -b"
18020 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18021 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18022 # The linker can only warn and ignore the option if not recognized
18023 # So say no if there are warnings
18024 if test -s conftest.err; then
18025 # Append any errors to the config.log.
18026 cat conftest.err 1>&5
18027 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18029 if diff conftest.exp conftest.er2 >/dev/null; then
18030 lt_cv_prog_compiler__b=yes
18033 lt_cv_prog_compiler__b=yes
18037 LDFLAGS="$save_LDFLAGS"
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18041 $as_echo "$lt_cv_prog_compiler__b" >&6; }
18043 if test x"$lt_cv_prog_compiler__b" = xyes; then
18044 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18046 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18052 if test "$with_gnu_ld" = no; then
18053 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18054 hardcode_libdir_separator=:
18059 hardcode_shlibpath_var=no
18062 hardcode_direct=yes
18063 hardcode_direct_absolute=yes
18064 export_dynamic_flag_spec='${wl}-E'
18066 # hardcode_minus_L: Not really in the search PATH,
18067 # but as the default location of the library.
18068 hardcode_minus_L=yes
18074 irix5* | irix6* | nonstopux*)
18075 if test "$GCC" = yes; then
18076 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'
18077 # Try to use the -exported_symbol ld option, if it does not
18078 # work, assume that -exports_file does not work either and
18079 # implicitly export all symbols.
18080 save_LDFLAGS="$LDFLAGS"
18081 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18083 /* end confdefs.h. */
18086 if ac_fn_c_try_link "$LINENO"; then :
18087 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'
18090 rm -f core conftest.err conftest.$ac_objext \
18091 conftest$ac_exeext conftest.$ac_ext
18092 LDFLAGS="$save_LDFLAGS"
18094 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'
18095 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'
18097 archive_cmds_need_lc='no'
18098 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18099 hardcode_libdir_separator=:
18101 link_all_deplibs=yes
18105 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18106 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18108 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18110 hardcode_libdir_flag_spec='-R$libdir'
18111 hardcode_direct=yes
18112 hardcode_shlibpath_var=no
18116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18117 hardcode_direct=yes
18118 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18119 hardcode_libdir_separator=:
18120 hardcode_shlibpath_var=no
18127 if test -f /usr/libexec/ld.so; then
18128 hardcode_direct=yes
18129 hardcode_shlibpath_var=no
18130 hardcode_direct_absolute=yes
18131 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18132 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18133 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18134 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18135 export_dynamic_flag_spec='${wl}-E'
18138 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18139 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18140 hardcode_libdir_flag_spec='-R$libdir'
18143 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18144 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18154 hardcode_libdir_flag_spec='-L$libdir'
18155 hardcode_minus_L=yes
18156 allow_undefined_flag=unsupported
18157 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'
18158 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18162 if test "$GCC" = yes; then
18163 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18164 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'
18166 allow_undefined_flag=' -expect_unresolved \*'
18167 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'
18169 archive_cmds_need_lc='no'
18170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18171 hardcode_libdir_separator=:
18174 osf4* | osf5*) # as osf3* with the addition of -msym flag
18175 if test "$GCC" = yes; then
18176 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18177 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'
18178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18180 allow_undefined_flag=' -expect_unresolved \*'
18181 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'
18182 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~
18183 $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'
18185 # Both c and cxx compiler support -rpath directly
18186 hardcode_libdir_flag_spec='-rpath $libdir'
18188 archive_cmds_need_lc='no'
18189 hardcode_libdir_separator=:
18193 no_undefined_flag=' -z defs'
18194 if test "$GCC" = yes; then
18196 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18197 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18198 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18200 case `$CC -V 2>&1` in
18203 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18204 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18205 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18209 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18210 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18211 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18215 hardcode_libdir_flag_spec='-R$libdir'
18216 hardcode_shlibpath_var=no
18218 solaris2.[0-5] | solaris2.[0-5].*) ;;
18220 # The compiler driver will combine and reorder linker options,
18221 # but understands `-z linker_flag'. GCC discards it without `$wl',
18222 # but is careful enough not to reorder.
18223 # Supported since Solaris 2.6 (maybe 2.5.1?)
18224 if test "$GCC" = yes; then
18225 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18227 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18231 link_all_deplibs=yes
18235 if test "x$host_vendor" = xsequent; then
18236 # Use $CC to link under sequent, because it throws in some extra .o
18237 # files that make .init and .fini sections work.
18238 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18240 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18242 hardcode_libdir_flag_spec='-L$libdir'
18243 hardcode_direct=yes
18244 hardcode_minus_L=yes
18245 hardcode_shlibpath_var=no
18249 case $host_vendor in
18251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18252 hardcode_direct=yes # is this really true???
18255 ## LD is ld it makes a PLAMLIB
18256 ## CC just makes a GrossModule.
18257 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18258 reload_cmds='$CC -r -o $output$reload_objs'
18262 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18263 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18266 runpath_var='LD_RUN_PATH'
18267 hardcode_shlibpath_var=no
18271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18272 hardcode_shlibpath_var=no
18273 export_dynamic_flag_spec='-Bexport'
18277 if test -d /usr/nec; then
18278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18279 hardcode_shlibpath_var=no
18280 runpath_var=LD_RUN_PATH
18281 hardcode_runpath_var=yes
18286 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18287 no_undefined_flag='${wl}-z,text'
18288 archive_cmds_need_lc=no
18289 hardcode_shlibpath_var=no
18290 runpath_var='LD_RUN_PATH'
18292 if test "$GCC" = yes; then
18293 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18294 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18296 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18297 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18301 sysv5* | sco3.2v5* | sco5v6*)
18302 # Note: We can NOT use -z defs as we might desire, because we do not
18303 # link with -lc, and that would cause any symbols used from libc to
18304 # always be unresolved, which means just about no library would
18305 # ever link correctly. If we're not using GNU ld we use -z text
18306 # though, which does catch some bad symbols but isn't as heavy-handed
18308 no_undefined_flag='${wl}-z,text'
18309 allow_undefined_flag='${wl}-z,nodefs'
18310 archive_cmds_need_lc=no
18311 hardcode_shlibpath_var=no
18312 hardcode_libdir_flag_spec='${wl}-R,$libdir'
18313 hardcode_libdir_separator=':'
18314 link_all_deplibs=yes
18315 export_dynamic_flag_spec='${wl}-Bexport'
18316 runpath_var='LD_RUN_PATH'
18318 if test "$GCC" = yes; then
18319 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18320 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18322 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18323 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18329 hardcode_libdir_flag_spec='-L$libdir'
18330 hardcode_shlibpath_var=no
18338 if test x$host_vendor = xsni; then
18340 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18341 export_dynamic_flag_spec='${wl}-Blargedynsym'
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18348 $as_echo "$ld_shlibs" >&6; }
18349 test "$ld_shlibs" = no && can_build_shared=no
18351 with_gnu_ld=$with_gnu_ld
18368 # Do we need to explicitly link libc?
18370 case "x$archive_cmds_need_lc" in
18372 # Assume -lc should be added
18373 archive_cmds_need_lc=yes
18375 if test "$enable_shared" = yes && test "$GCC" = yes; then
18376 case $archive_cmds in
18378 # FIXME: we may have to deal with multi-command sequences.
18381 # Test whether the compiler implicitly links with -lc since on some
18382 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18383 # to ld, don't add -lc before -lgcc.
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18385 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18386 if ${lt_cv_archive_cmds_need_lc+:} false; then :
18387 $as_echo_n "(cached) " >&6
18390 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18393 (eval $ac_compile) 2>&5
18395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18396 test $ac_status = 0; } 2>conftest.err; then
18399 libobjs=conftest.$ac_objext
18401 wl=$lt_prog_compiler_wl
18402 pic_flag=$lt_prog_compiler_pic
18408 lt_save_allow_undefined_flag=$allow_undefined_flag
18409 allow_undefined_flag=
18410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18411 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18414 test $ac_status = 0; }
18416 lt_cv_archive_cmds_need_lc=no
18418 lt_cv_archive_cmds_need_lc=yes
18420 allow_undefined_flag=$lt_save_allow_undefined_flag
18422 cat conftest.err 1>&5
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18428 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18429 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18593 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18595 if test "$GCC" = yes; then
18597 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
18598 *) lt_awk_arg="/^libraries:/" ;;
18601 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
18602 *) lt_sed_strip_eq="s,=/,/,g" ;;
18604 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18605 case $lt_search_path_spec in
18607 # if the path contains ";" then we assume it to be the separator
18608 # otherwise default to the standard path separator (i.e. ":") - it is
18609 # assumed that no part of a normal pathname contains ";" but that should
18610 # okay in the real world where ";" in dirpaths is itself problematic.
18611 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18614 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18617 # Ok, now we have the path, separated by spaces, we can step through it
18618 # and add multilib dir if necessary.
18619 lt_tmp_lt_search_path_spec=
18620 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18621 for lt_sys_path in $lt_search_path_spec; do
18622 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
18623 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
18625 test -d "$lt_sys_path" && \
18626 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18629 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18630 BEGIN {RS=" "; FS="/|\n";} {
18633 for (lt_i = NF; lt_i > 0; lt_i--) {
18634 if ($lt_i != "" && $lt_i != ".") {
18635 if ($lt_i == "..") {
18638 if (lt_count == 0) {
18639 lt_foo="/" $lt_i lt_foo;
18646 if (lt_foo != "") { lt_freq[lt_foo]++; }
18647 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18649 # AWK program above erroneously prepends '/' to C:/dos/paths
18652 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18653 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
18655 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18657 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18659 library_names_spec=
18660 libname_spec='lib$name'
18664 postuninstall_cmds=
18668 shlibpath_overrides_runpath=unknown
18670 dynamic_linker="$host_os ld.so"
18671 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18672 need_lib_prefix=unknown
18673 hardcode_into_libs=no
18675 # when you set need_version to no, make sure it does not cause -set_version
18676 # flags to be left without arguments
18677 need_version=unknown
18682 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18683 shlibpath_var=LIBPATH
18685 # AIX 3 has no versioning support, so we append a major version to the name.
18686 soname_spec='${libname}${release}${shared_ext}$major'
18693 hardcode_into_libs=yes
18694 if test "$host_cpu" = ia64; then
18695 # AIX 5 supports IA64
18696 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18697 shlibpath_var=LD_LIBRARY_PATH
18699 # With GCC up to 2.95.x, collect2 would create an import file
18700 # for dependence libraries. The import file would start with
18701 # the line `#! .'. This would cause the generated library to
18702 # depend on `.', always an invalid library. This was fixed in
18703 # development snapshots of GCC prior to 3.0.
18705 aix4 | aix4.[01] | aix4.[01].*)
18706 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18708 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18711 can_build_shared=no
18715 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18716 # soname into executable. Probably we can add versioning support to
18717 # collect2, so additional links can be useful in future.
18718 if test "$aix_use_runtimelinking" = yes; then
18719 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18720 # instead of lib<name>.a to let people know that these are not
18721 # typical AIX shared libraries.
18722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18724 # We preserve .a as extension for shared libraries through AIX4.2
18725 # and later when we are not doing run time linking.
18726 library_names_spec='${libname}${release}.a $libname.a'
18727 soname_spec='${libname}${release}${shared_ext}$major'
18729 shlibpath_var=LIBPATH
18736 # Since July 2007 AmigaOS4 officially supports .so libraries.
18737 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18741 library_names_spec='$libname.ixlibrary $libname.a'
18742 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18743 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'
18749 library_names_spec='${libname}${shared_ext}'
18750 dynamic_linker="$host_os ld.so"
18751 shlibpath_var=LIBRARY_PATH
18757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18758 soname_spec='${libname}${release}${shared_ext}$major'
18759 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18760 shlibpath_var=LD_LIBRARY_PATH
18761 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18762 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18763 # the default ld.so.conf also contains /usr/contrib/lib and
18764 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18765 # libtool to hard-code these into programs
18768 cygwin* | mingw* | pw32* | cegcc*)
18769 version_type=windows
18774 case $GCC,$host_os in
18775 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18776 library_names_spec='$libname.dll.a'
18777 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18778 postinstall_cmds='base_file=`basename \${file}`~
18779 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18780 dldir=$destdir/`dirname \$dlpath`~
18781 test -d \$dldir || mkdir -p \$dldir~
18782 $install_prog $dir/$dlname \$dldir/$dlname~
18783 chmod a+x \$dldir/$dlname~
18784 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18785 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18787 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18788 dlpath=$dir/\$dldll~
18790 shlibpath_overrides_runpath=yes
18794 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18795 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18797 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18800 # MinGW DLLs use traditional 'lib' prefix
18801 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18804 # pw32 DLLs use 'pw' prefix rather than 'lib'
18805 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18811 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18814 dynamic_linker='Win32 ld.exe'
18815 # FIXME: first we should search . and the directory the executable is in
18819 darwin* | rhapsody*)
18820 dynamic_linker="$host_os dyld"
18821 version_type=darwin
18824 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18825 soname_spec='${libname}${release}${major}$shared_ext'
18826 shlibpath_overrides_runpath=yes
18827 shlibpath_var=DYLD_LIBRARY_PATH
18828 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18830 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18831 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18839 soname_spec='${libname}${release}${shared_ext}$major'
18840 shlibpath_var=LD_LIBRARY_PATH
18843 freebsd* | dragonfly*)
18844 # DragonFly does not have aout. When/if they implement a new
18845 # versioning mechanism, adjust this.
18846 if test -x /usr/bin/objformat; then
18847 objformat=`/usr/bin/objformat`
18850 freebsd[23].*) objformat=aout ;;
18851 *) objformat=elf ;;
18854 version_type=freebsd-$objformat
18855 case $version_type in
18857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18862 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18866 shlibpath_var=LD_LIBRARY_PATH
18869 shlibpath_overrides_runpath=yes
18871 freebsd3.[01]* | freebsdelf3.[01]*)
18872 shlibpath_overrides_runpath=yes
18873 hardcode_into_libs=yes
18875 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18876 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18877 shlibpath_overrides_runpath=no
18878 hardcode_into_libs=yes
18880 *) # from 4.6 on, and DragonFly
18881 shlibpath_overrides_runpath=yes
18882 hardcode_into_libs=yes
18891 dynamic_linker="$host_os runtime_loader"
18892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18893 soname_spec='${libname}${release}${shared_ext}$major'
18894 shlibpath_var=LIBRARY_PATH
18895 shlibpath_overrides_runpath=yes
18896 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18897 hardcode_into_libs=yes
18900 hpux9* | hpux10* | hpux11*)
18901 # Give a soname corresponding to the major version so that dld.sl refuses to
18902 # link against other versions.
18909 hardcode_into_libs=yes
18910 dynamic_linker="$host_os dld.so"
18911 shlibpath_var=LD_LIBRARY_PATH
18912 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18914 soname_spec='${libname}${release}${shared_ext}$major'
18915 if test "X$HPUX_IA64_MODE" = X32; then
18916 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18918 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18924 hardcode_into_libs=yes
18925 dynamic_linker="$host_os dld.sl"
18926 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18927 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18929 soname_spec='${libname}${release}${shared_ext}$major'
18930 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18931 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18935 dynamic_linker="$host_os dld.sl"
18936 shlibpath_var=SHLIB_PATH
18937 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18939 soname_spec='${libname}${release}${shared_ext}$major'
18942 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18943 postinstall_cmds='chmod 555 $lib'
18944 # or fails outright, so override atomically:
18945 install_override_mode=555
18952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18953 soname_spec='${libname}${release}${shared_ext}$major'
18954 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18955 shlibpath_var=LD_LIBRARY_PATH
18956 shlibpath_overrides_runpath=no
18957 hardcode_into_libs=yes
18960 irix5* | irix6* | nonstopux*)
18962 nonstopux*) version_type=nonstopux ;;
18964 if test "$lt_cv_prog_gnu_ld" = yes; then
18972 soname_spec='${libname}${release}${shared_ext}$major'
18973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18975 irix5* | nonstopux*)
18976 libsuff= shlibsuff=
18979 case $LD in # libtool.m4 will add one of these switches to LD
18980 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18981 libsuff= shlibsuff= libmagic=32-bit;;
18982 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18983 libsuff=32 shlibsuff=N32 libmagic=N32;;
18984 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18985 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18986 *) libsuff= shlibsuff= libmagic=never-match;;
18990 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18991 shlibpath_overrides_runpath=no
18992 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18993 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18994 hardcode_into_libs=yes
18997 # No shared lib support for Linux oldld, aout, or coff.
18998 linux*oldld* | linux*aout* | linux*coff*)
19002 # This must be Linux ELF.
19004 # uclinux* changes (here and below) have been submitted to the libtool
19005 # project, but have not yet been accepted: they are GCC-local changes
19006 # for the time being. (See
19007 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
19008 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
19012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19013 soname_spec='${libname}${release}${shared_ext}$major'
19014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19015 shlibpath_var=LD_LIBRARY_PATH
19016 shlibpath_overrides_runpath=no
19018 # Some binutils ld are patched to set DT_RUNPATH
19019 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19020 $as_echo_n "(cached) " >&6
19022 lt_cv_shlibpath_overrides_runpath=no
19023 save_LDFLAGS=$LDFLAGS
19024 save_libdir=$libdir
19025 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19026 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19028 /* end confdefs.h. */
19038 if ac_fn_c_try_link "$LINENO"; then :
19039 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19040 lt_cv_shlibpath_overrides_runpath=yes
19043 rm -f core conftest.err conftest.$ac_objext \
19044 conftest$ac_exeext conftest.$ac_ext
19045 LDFLAGS=$save_LDFLAGS
19046 libdir=$save_libdir
19050 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19052 # This implies no fast_install, which is unacceptable.
19053 # Some rework will be needed to allow for fast_install
19054 # before this can be enabled.
19055 hardcode_into_libs=yes
19057 # Append ld.so.conf contents to the search path
19058 if test -f /etc/ld.so.conf; then
19059 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' ' '`
19060 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19063 # We used to test for /lib/ld.so.1 and disable shared libraries on
19064 # powerpc, because MkLinux only supported shared libraries with the
19065 # GNU dynamic linker. Since this was broken with cross compilers,
19066 # most powerpc-linux boxes support dynamic linking these days and
19067 # people can always --disable-shared, the test was removed, and we
19068 # assume the GNU/Linux dynamic linker is in use.
19069 dynamic_linker='GNU/Linux ld.so'
19076 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19079 dynamic_linker='NetBSD (a.out) ld.so'
19081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19082 soname_spec='${libname}${release}${shared_ext}$major'
19083 dynamic_linker='NetBSD ld.elf_so'
19085 shlibpath_var=LD_LIBRARY_PATH
19086 shlibpath_overrides_runpath=yes
19087 hardcode_into_libs=yes
19092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19093 shlibpath_var=LD_LIBRARY_PATH
19094 shlibpath_overrides_runpath=yes
19101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19102 soname_spec='${libname}${release}${shared_ext}$major'
19103 shlibpath_var=LD_LIBRARY_PATH
19104 shlibpath_overrides_runpath=no
19105 hardcode_into_libs=yes
19106 dynamic_linker='ldqnx.so'
19111 sys_lib_dlsearch_path_spec="/usr/lib"
19113 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19115 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19116 *) need_version=no ;;
19118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19120 shlibpath_var=LD_LIBRARY_PATH
19121 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19123 openbsd2.[89] | openbsd2.[89].*)
19124 shlibpath_overrides_runpath=no
19127 shlibpath_overrides_runpath=yes
19131 shlibpath_overrides_runpath=yes
19136 libname_spec='$name'
19139 library_names_spec='$libname${shared_ext} $libname.a'
19140 dynamic_linker='OS/2 ld.exe'
19141 shlibpath_var=LIBPATH
19144 osf3* | osf4* | osf5*)
19148 soname_spec='${libname}${release}${shared_ext}$major'
19149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19150 shlibpath_var=LD_LIBRARY_PATH
19151 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19152 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19164 soname_spec='${libname}${release}${shared_ext}$major'
19165 shlibpath_var=LD_LIBRARY_PATH
19166 shlibpath_overrides_runpath=yes
19167 hardcode_into_libs=yes
19168 # ldd complains unless libraries are executable
19169 postinstall_cmds='chmod +x $lib'
19174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19175 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19176 shlibpath_var=LD_LIBRARY_PATH
19177 shlibpath_overrides_runpath=yes
19178 if test "$with_gnu_ld" = yes; then
19186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19187 soname_spec='${libname}${release}${shared_ext}$major'
19188 shlibpath_var=LD_LIBRARY_PATH
19189 case $host_vendor in
19191 shlibpath_overrides_runpath=no
19193 runpath_var=LD_RUN_PATH
19201 shlibpath_overrides_runpath=no
19202 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19208 if test -d /usr/nec ;then
19210 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19211 soname_spec='$libname${shared_ext}.$major'
19212 shlibpath_var=LD_LIBRARY_PATH
19216 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19217 version_type=freebsd-elf
19220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19221 soname_spec='${libname}${release}${shared_ext}$major'
19222 shlibpath_var=LD_LIBRARY_PATH
19223 shlibpath_overrides_runpath=yes
19224 hardcode_into_libs=yes
19225 if test "$with_gnu_ld" = yes; then
19226 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19228 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19231 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19235 sys_lib_dlsearch_path_spec='/usr/lib'
19239 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19244 shlibpath_var=LD_LIBRARY_PATH
19245 shlibpath_overrides_runpath=no
19246 hardcode_into_libs=yes
19251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19252 soname_spec='${libname}${release}${shared_ext}$major'
19253 shlibpath_var=LD_LIBRARY_PATH
19256 # Shared libraries for VwWorks, >= 7 only at this stage
19257 # and (fpic) still incompatible with "large" code models
19258 # in a few configurations. Only for RTP mode in any case,
19259 # and upon explicit request at configure time.
19262 case ${with_multisubdir}-${enable_shared} in
19269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19270 soname_spec='${libname}${release}${shared_ext}$major'
19271 dynamic_linker="$host_os module_loader"
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19280 $as_echo "$dynamic_linker" >&6; }
19281 test "$dynamic_linker" = no && can_build_shared=no
19283 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19284 if test "$GCC" = yes; then
19285 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19288 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19289 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19291 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19292 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19387 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19389 if test -n "$hardcode_libdir_flag_spec" ||
19390 test -n "$runpath_var" ||
19391 test "X$hardcode_automatic" = "Xyes" ; then
19393 # We can hardcode non-existent directories.
19394 if test "$hardcode_direct" != no &&
19395 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19396 # have to relink, otherwise we might link with an installed library
19397 # when we should be linking with a yet-to-be-installed one
19398 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
19399 test "$hardcode_minus_L" != no; then
19400 # Linking always hardcodes the temporary library directory.
19401 hardcode_action=relink
19403 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19404 hardcode_action=immediate
19407 # We cannot hardcode anything, or else we can only hardcode existing
19409 hardcode_action=unsupported
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19412 $as_echo "$hardcode_action" >&6; }
19414 if test "$hardcode_action" = relink ||
19415 test "$inherit_rpath" = yes; then
19416 # Fast installation is not supported
19417 enable_fast_install=no
19418 elif test "$shlibpath_overrides_runpath" = yes ||
19419 test "$enable_shared" = no; then
19420 # Fast installation is not necessary
19421 enable_fast_install=needless
19429 if test "x$enable_dlopen" != xyes; then
19430 enable_dlopen=unknown
19431 enable_dlopen_self=unknown
19432 enable_dlopen_self_static=unknown
19439 lt_cv_dlopen="load_add_on"
19441 lt_cv_dlopen_self=yes
19444 mingw* | pw32* | cegcc*)
19445 lt_cv_dlopen="LoadLibrary"
19450 lt_cv_dlopen="dlopen"
19455 # if libdl is installed we need to link against it
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19457 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19458 if ${ac_cv_lib_dl_dlopen+:} false; then :
19459 $as_echo_n "(cached) " >&6
19461 ac_check_lib_save_LIBS=$LIBS
19463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19464 /* end confdefs.h. */
19466 /* Override any GCC internal prototype to avoid an error.
19467 Use char because int might match the return type of a GCC
19468 builtin and then its argument prototype would still apply. */
19481 if ac_fn_c_try_link "$LINENO"; then :
19482 ac_cv_lib_dl_dlopen=yes
19484 ac_cv_lib_dl_dlopen=no
19486 rm -f core conftest.err conftest.$ac_objext \
19487 conftest$ac_exeext conftest.$ac_ext
19488 LIBS=$ac_check_lib_save_LIBS
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19491 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19492 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19493 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19496 lt_cv_dlopen="dyld"
19498 lt_cv_dlopen_self=yes
19505 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19506 if test "x$ac_cv_func_shl_load" = xyes; then :
19507 lt_cv_dlopen="shl_load"
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19510 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19511 if ${ac_cv_lib_dld_shl_load+:} false; then :
19512 $as_echo_n "(cached) " >&6
19514 ac_check_lib_save_LIBS=$LIBS
19516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19517 /* end confdefs.h. */
19519 /* Override any GCC internal prototype to avoid an error.
19520 Use char because int might match the return type of a GCC
19521 builtin and then its argument prototype would still apply. */
19529 return shl_load ();
19534 if ac_fn_c_try_link "$LINENO"; then :
19535 ac_cv_lib_dld_shl_load=yes
19537 ac_cv_lib_dld_shl_load=no
19539 rm -f core conftest.err conftest.$ac_objext \
19540 conftest$ac_exeext conftest.$ac_ext
19541 LIBS=$ac_check_lib_save_LIBS
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19544 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19545 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19546 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
19548 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19549 if test "x$ac_cv_func_dlopen" = xyes; then :
19550 lt_cv_dlopen="dlopen"
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19553 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19554 if ${ac_cv_lib_dl_dlopen+:} false; then :
19555 $as_echo_n "(cached) " >&6
19557 ac_check_lib_save_LIBS=$LIBS
19559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19560 /* end confdefs.h. */
19562 /* Override any GCC internal prototype to avoid an error.
19563 Use char because int might match the return type of a GCC
19564 builtin and then its argument prototype would still apply. */
19577 if ac_fn_c_try_link "$LINENO"; then :
19578 ac_cv_lib_dl_dlopen=yes
19580 ac_cv_lib_dl_dlopen=no
19582 rm -f core conftest.err conftest.$ac_objext \
19583 conftest$ac_exeext conftest.$ac_ext
19584 LIBS=$ac_check_lib_save_LIBS
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19587 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19588 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19589 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19592 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19593 if ${ac_cv_lib_svld_dlopen+:} false; then :
19594 $as_echo_n "(cached) " >&6
19596 ac_check_lib_save_LIBS=$LIBS
19597 LIBS="-lsvld $LIBS"
19598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19599 /* end confdefs.h. */
19601 /* Override any GCC internal prototype to avoid an error.
19602 Use char because int might match the return type of a GCC
19603 builtin and then its argument prototype would still apply. */
19616 if ac_fn_c_try_link "$LINENO"; then :
19617 ac_cv_lib_svld_dlopen=yes
19619 ac_cv_lib_svld_dlopen=no
19621 rm -f core conftest.err conftest.$ac_objext \
19622 conftest$ac_exeext conftest.$ac_ext
19623 LIBS=$ac_check_lib_save_LIBS
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19626 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19627 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19628 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19631 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19632 if ${ac_cv_lib_dld_dld_link+:} false; then :
19633 $as_echo_n "(cached) " >&6
19635 ac_check_lib_save_LIBS=$LIBS
19637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19638 /* end confdefs.h. */
19640 /* Override any GCC internal prototype to avoid an error.
19641 Use char because int might match the return type of a GCC
19642 builtin and then its argument prototype would still apply. */
19650 return dld_link ();
19655 if ac_fn_c_try_link "$LINENO"; then :
19656 ac_cv_lib_dld_dld_link=yes
19658 ac_cv_lib_dld_dld_link=no
19660 rm -f core conftest.err conftest.$ac_objext \
19661 conftest$ac_exeext conftest.$ac_ext
19662 LIBS=$ac_check_lib_save_LIBS
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19665 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19666 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19667 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
19688 if test "x$lt_cv_dlopen" != xno; then
19694 case $lt_cv_dlopen in
19696 save_CPPFLAGS="$CPPFLAGS"
19697 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19699 save_LDFLAGS="$LDFLAGS"
19700 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19703 LIBS="$lt_cv_dlopen_libs $LIBS"
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19706 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
19707 if ${lt_cv_dlopen_self+:} false; then :
19708 $as_echo_n "(cached) " >&6
19710 if test "$cross_compiling" = yes; then :
19711 lt_cv_dlopen_self=cross
19713 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19714 lt_status=$lt_dlunknown
19715 cat > conftest.$ac_ext <<_LT_EOF
19716 #line 19716 "configure"
19717 #include "confdefs.h"
19726 # define LT_DLGLOBAL RTLD_GLOBAL
19729 # define LT_DLGLOBAL DL_GLOBAL
19731 # define LT_DLGLOBAL 0
19735 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19736 find out it does not work in some platform. */
19737 #ifndef LT_DLLAZY_OR_NOW
19739 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19742 # define LT_DLLAZY_OR_NOW DL_LAZY
19745 # define LT_DLLAZY_OR_NOW RTLD_NOW
19748 # define LT_DLLAZY_OR_NOW DL_NOW
19750 # define LT_DLLAZY_OR_NOW 0
19757 /* When -fvisbility=hidden is used, assume the code has been annotated
19758 correspondingly for the symbols needed. */
19759 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19760 void fnord () __attribute__((visibility("default")));
19763 void fnord () { int i=42; }
19766 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19767 int status = $lt_dlunknown;
19771 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19774 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19775 else puts (dlerror ());
19777 /* dlclose (self); */
19785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19786 (eval $ac_link) 2>&5
19788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19789 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19790 (./conftest; exit; ) >&5 2>/dev/null
19792 case x$lt_status in
19793 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19794 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19795 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19798 # compilation failed
19799 lt_cv_dlopen_self=no
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19807 $as_echo "$lt_cv_dlopen_self" >&6; }
19809 if test "x$lt_cv_dlopen_self" = xyes; then
19810 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19812 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19813 if ${lt_cv_dlopen_self_static+:} false; then :
19814 $as_echo_n "(cached) " >&6
19816 if test "$cross_compiling" = yes; then :
19817 lt_cv_dlopen_self_static=cross
19819 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19820 lt_status=$lt_dlunknown
19821 cat > conftest.$ac_ext <<_LT_EOF
19822 #line 19822 "configure"
19823 #include "confdefs.h"
19832 # define LT_DLGLOBAL RTLD_GLOBAL
19835 # define LT_DLGLOBAL DL_GLOBAL
19837 # define LT_DLGLOBAL 0
19841 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19842 find out it does not work in some platform. */
19843 #ifndef LT_DLLAZY_OR_NOW
19845 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19848 # define LT_DLLAZY_OR_NOW DL_LAZY
19851 # define LT_DLLAZY_OR_NOW RTLD_NOW
19854 # define LT_DLLAZY_OR_NOW DL_NOW
19856 # define LT_DLLAZY_OR_NOW 0
19863 /* When -fvisbility=hidden is used, assume the code has been annotated
19864 correspondingly for the symbols needed. */
19865 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19866 void fnord () __attribute__((visibility("default")));
19869 void fnord () { int i=42; }
19872 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19873 int status = $lt_dlunknown;
19877 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19880 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19881 else puts (dlerror ());
19883 /* dlclose (self); */
19891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19892 (eval $ac_link) 2>&5
19894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19895 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19896 (./conftest; exit; ) >&5 2>/dev/null
19898 case x$lt_status in
19899 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19900 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19901 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19904 # compilation failed
19905 lt_cv_dlopen_self_static=no
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19913 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19916 CPPFLAGS="$save_CPPFLAGS"
19917 LDFLAGS="$save_LDFLAGS"
19922 case $lt_cv_dlopen_self in
19923 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19924 *) enable_dlopen_self=unknown ;;
19927 case $lt_cv_dlopen_self_static in
19928 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19929 *) enable_dlopen_self_static=unknown ;;
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19952 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19953 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19954 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19955 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19957 $as_echo "yes" >&6; }
19959 # FIXME - insert some real tests, host_os isn't really good enough
19962 if test -n "$STRIP" ; then
19963 striplib="$STRIP -x"
19964 old_striplib="$STRIP -S"
19965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19966 $as_echo "yes" >&6; }
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19969 $as_echo "no" >&6; }
19973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19974 $as_echo "no" >&6; }
19990 # Report which library types will actually be built
19991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19992 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19994 $as_echo "$can_build_shared" >&6; }
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19997 $as_echo_n "checking whether to build shared libraries... " >&6; }
19998 test "$can_build_shared" = "no" && enable_shared=no
20000 # On AIX, shared libraries and static libraries use the same namespace, and
20001 # are all built from PIC.
20004 test "$enable_shared" = yes && enable_static=no
20005 if test -n "$RANLIB"; then
20006 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20007 postinstall_cmds='$RANLIB $lib'
20012 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20013 test "$enable_shared" = yes && enable_static=no
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20018 $as_echo "$enable_shared" >&6; }
20020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20021 $as_echo_n "checking whether to build static libraries... " >&6; }
20022 # Make sure either enable_shared or enable_static is yes.
20023 test "$enable_shared" = yes || enable_static=yes
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20025 $as_echo "$enable_static" >&6; }
20032 ac_cpp='$CXXCPP $CPPFLAGS'
20033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20039 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20040 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20041 (test "X$CXX" != "Xg++"))) ; then
20043 ac_cpp='$CXXCPP $CPPFLAGS'
20044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20048 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20049 if test -z "$CXXCPP"; then
20050 if ${ac_cv_prog_CXXCPP+:} false; then :
20051 $as_echo_n "(cached) " >&6
20053 # Double quotes because CXXCPP needs to be expanded
20054 for CXXCPP in "$CXX -E" "/lib/cpp"
20056 ac_preproc_ok=false
20057 for ac_cxx_preproc_warn_flag in '' yes
20059 # Use a header file that comes with gcc, so configuring glibc
20060 # with a fresh cross-compiler works.
20061 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20062 # <limits.h> exists even on freestanding compilers.
20063 # On the NeXT, cc -E runs the code through the compiler's parser,
20064 # not just through cpp. "Syntax error" is here to catch this case.
20065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20066 /* end confdefs.h. */
20068 # include <limits.h>
20070 # include <assert.h>
20074 if ac_fn_cxx_try_cpp "$LINENO"; then :
20077 # Broken: fails on valid input.
20080 rm -f conftest.err conftest.i conftest.$ac_ext
20082 # OK, works on sane cases. Now check whether nonexistent headers
20083 # can be detected and how.
20084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20085 /* end confdefs.h. */
20086 #include <ac_nonexistent.h>
20088 if ac_fn_cxx_try_cpp "$LINENO"; then :
20089 # Broken: success on invalid input.
20092 # Passes both tests.
20096 rm -f conftest.err conftest.i conftest.$ac_ext
20099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20100 rm -f conftest.i conftest.err conftest.$ac_ext
20101 if $ac_preproc_ok; then :
20106 ac_cv_prog_CXXCPP=$CXXCPP
20109 CXXCPP=$ac_cv_prog_CXXCPP
20111 ac_cv_prog_CXXCPP=$CXXCPP
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20114 $as_echo "$CXXCPP" >&6; }
20115 ac_preproc_ok=false
20116 for ac_cxx_preproc_warn_flag in '' yes
20118 # Use a header file that comes with gcc, so configuring glibc
20119 # with a fresh cross-compiler works.
20120 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20121 # <limits.h> exists even on freestanding compilers.
20122 # On the NeXT, cc -E runs the code through the compiler's parser,
20123 # not just through cpp. "Syntax error" is here to catch this case.
20124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20125 /* end confdefs.h. */
20127 # include <limits.h>
20129 # include <assert.h>
20133 if ac_fn_cxx_try_cpp "$LINENO"; then :
20136 # Broken: fails on valid input.
20139 rm -f conftest.err conftest.i conftest.$ac_ext
20141 # OK, works on sane cases. Now check whether nonexistent headers
20142 # can be detected and how.
20143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20144 /* end confdefs.h. */
20145 #include <ac_nonexistent.h>
20147 if ac_fn_cxx_try_cpp "$LINENO"; then :
20148 # Broken: success on invalid input.
20151 # Passes both tests.
20155 rm -f conftest.err conftest.i conftest.$ac_ext
20158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20159 rm -f conftest.i conftest.err conftest.$ac_ext
20160 if $ac_preproc_ok; then :
20163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20165 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
20166 See \`config.log' for more details" "$LINENO" 5; }
20170 ac_cpp='$CXXCPP $CPPFLAGS'
20171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20176 _lt_caught_CXX_error=yes
20180 ac_cpp='$CXXCPP $CPPFLAGS'
20181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20185 archive_cmds_need_lc_CXX=no
20186 allow_undefined_flag_CXX=
20187 always_export_symbols_CXX=no
20188 archive_expsym_cmds_CXX=
20189 compiler_needs_object_CXX=no
20190 export_dynamic_flag_spec_CXX=
20191 hardcode_direct_CXX=no
20192 hardcode_direct_absolute_CXX=no
20193 hardcode_libdir_flag_spec_CXX=
20194 hardcode_libdir_flag_spec_ld_CXX=
20195 hardcode_libdir_separator_CXX=
20196 hardcode_minus_L_CXX=no
20197 hardcode_shlibpath_var_CXX=unsupported
20198 hardcode_automatic_CXX=no
20199 inherit_rpath_CXX=no
20201 module_expsym_cmds_CXX=
20202 link_all_deplibs_CXX=unknown
20203 old_archive_cmds_CXX=$old_archive_cmds
20204 reload_flag_CXX=$reload_flag
20205 reload_cmds_CXX=$reload_cmds
20206 no_undefined_flag_CXX=
20207 whole_archive_flag_spec_CXX=
20208 enable_shared_with_static_runtimes_CXX=no
20210 # Source file extension for C++ test sources.
20213 # Object file extension for compiled C++ test sources.
20217 # No sense in running all these tests if we already determined that
20218 # the CXX compiler isn't working. Some variables (like enable_shared)
20219 # are currently assumed to apply to all compilers on this platform,
20220 # and will be corrupted by setting them based on a non-working compiler.
20221 if test "$_lt_caught_CXX_error" != yes; then
20222 # Code to be used in simple compile tests
20223 lt_simple_compile_test_code="int some_variable = 0;"
20225 # Code to be used in simple link tests
20226 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
20228 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20235 # If no C compiler was specified, use CC.
20238 # If no C compiler flags were specified, use CFLAGS.
20239 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20241 # Allow CC to be a program name with arguments.
20245 # save warnings/boilerplate of simple test code
20246 ac_outfile=conftest.$ac_objext
20247 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20248 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20249 _lt_compiler_boilerplate=`cat conftest.err`
20252 ac_outfile=conftest.$ac_objext
20253 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20254 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20255 _lt_linker_boilerplate=`cat conftest.err`
20259 # Allow CC to be a program name with arguments.
20264 lt_save_with_gnu_ld=$with_gnu_ld
20265 lt_save_path_LD=$lt_cv_path_LD
20266 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20267 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20269 $as_unset lt_cv_prog_gnu_ld
20271 if test -n "${lt_cv_path_LDCXX+set}"; then
20272 lt_cv_path_LD=$lt_cv_path_LDCXX
20274 $as_unset lt_cv_path_LD
20276 test -z "${LDCXX+set}" || LD=$LDCXX
20280 for cc_temp in $compiler""; do
20282 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20283 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20288 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20291 if test -n "$compiler"; then
20292 # We don't want -fno-exception when compiling C++ code, so set the
20293 # no_builtin_flag separately
20294 if test "$GXX" = yes; then
20295 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20297 lt_prog_compiler_no_builtin_flag_CXX=
20300 if test "$GXX" = yes; then
20301 # Set up default GNU C++ configuration
20305 # Check whether --with-gnu-ld was given.
20306 if test "${with_gnu_ld+set}" = set; then :
20307 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20313 if test "$GCC" = yes; then
20314 # Check if gcc -print-prog-name=ld gives a path.
20315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20316 $as_echo_n "checking for ld used by $CC... " >&6; }
20319 # gcc leaves a trailing carriage return which upsets mingw
20320 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20322 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20325 # Accept absolute paths.
20327 re_direlt='/[^/][^/]*/\.\./'
20328 # Canonicalize the pathname of ld
20329 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20330 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20331 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20333 test -z "$LD" && LD="$ac_prog"
20336 # If it fails, then pretend we aren't using GCC.
20340 # If it is relative, then search for the first ld in PATH.
20341 with_gnu_ld=unknown
20344 elif test "$with_gnu_ld" = yes; then
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20346 $as_echo_n "checking for GNU ld... " >&6; }
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20349 $as_echo_n "checking for non-GNU ld... " >&6; }
20351 if ${lt_cv_path_LD+:} false; then :
20352 $as_echo_n "(cached) " >&6
20354 if test -z "$LD"; then
20355 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20356 for ac_dir in $PATH; do
20358 test -z "$ac_dir" && ac_dir=.
20359 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20360 lt_cv_path_LD="$ac_dir/$ac_prog"
20361 # Check to see if the program is GNU ld. I'd rather use --version,
20362 # but apparently some variants of GNU ld only accept -v.
20363 # Break only if it was the GNU/non-GNU ld that we prefer.
20364 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20365 *GNU* | *'with BFD'*)
20366 test "$with_gnu_ld" != no && break
20369 test "$with_gnu_ld" != yes && break
20376 lt_cv_path_LD="$LD" # Let the user override the test with a path.
20380 LD="$lt_cv_path_LD"
20381 if test -n "$LD"; then
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20383 $as_echo "$LD" >&6; }
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20386 $as_echo "no" >&6; }
20388 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20390 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20391 if ${lt_cv_prog_gnu_ld+:} false; then :
20392 $as_echo_n "(cached) " >&6
20394 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20395 case `$LD -v 2>&1 </dev/null` in
20396 *GNU* | *'with BFD'*)
20397 lt_cv_prog_gnu_ld=yes
20400 lt_cv_prog_gnu_ld=no
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20405 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
20406 with_gnu_ld=$lt_cv_prog_gnu_ld
20414 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20415 # archiving commands below assume that GNU ld is being used.
20416 if test "$with_gnu_ld" = yes; then
20417 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20418 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'
20420 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20421 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20423 # If archive_cmds runs LD, not CC, wlarc should be empty
20424 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20425 # investigate it a little bit more. (MM)
20428 # ancient GNU ld didn't support --whole-archive et. al.
20429 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20430 $GREP 'no-whole-archive' > /dev/null; then
20431 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20433 whole_archive_flag_spec_CXX=
20439 # A generic and very simple default shared library creation
20440 # command for GNU C++ for the case where it uses the native
20441 # linker, instead of GNU ld. If possible, this setting should
20442 # overridden to take advantage of the native linker features on
20443 # the platform it is being used on.
20444 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20447 # Commands to make compiler produce verbose output that lists
20448 # what "hidden" libraries, object files and flags are used when
20449 # linking a shared library.
20450 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20458 # PORTME: fill in a description of your system's C++ link characteristics
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20460 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20464 # FIXME: insert proper C++ library support
20468 if test "$host_cpu" = ia64; then
20469 # On IA64, the linker does run time linking by default, so we don't
20470 # have to do anything special.
20471 aix_use_runtimelinking=no
20472 exp_sym_flag='-Bexport'
20475 aix_use_runtimelinking=no
20477 # Test if we are trying to use run time linking or normal
20478 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20479 # need to do runtime linking.
20480 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20481 for ld_flag in $LDFLAGS; do
20484 aix_use_runtimelinking=yes
20492 exp_sym_flag='-bexport'
20493 no_entry_flag='-bnoentry'
20496 # When large executables or shared objects are built, AIX ld can
20497 # have problems creating the table of contents. If linking a library
20498 # or program results in "error TOC overflow" add -mminimal-toc to
20499 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20500 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20502 archive_cmds_CXX=''
20503 hardcode_direct_CXX=yes
20504 hardcode_direct_absolute_CXX=yes
20505 hardcode_libdir_separator_CXX=':'
20506 link_all_deplibs_CXX=yes
20507 file_list_spec_CXX='${wl}-f,'
20509 if test "$GXX" = yes; then
20510 case $host_os in aix4.[012]|aix4.[012].*)
20511 # We only want to do this on AIX 4.2 and lower, the check
20512 # below for broken collect2 doesn't work under 4.3+
20513 collect2name=`${CC} -print-prog-name=collect2`
20514 if test -f "$collect2name" &&
20515 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20517 # We have reworked collect2
20520 # We have old collect2
20521 hardcode_direct_CXX=unsupported
20522 # It fails to find uninstalled libraries when the uninstalled
20523 # path is not listed in the libpath. Setting hardcode_minus_L
20524 # to unsupported forces relinking
20525 hardcode_minus_L_CXX=yes
20526 hardcode_libdir_flag_spec_CXX='-L$libdir'
20527 hardcode_libdir_separator_CXX=
20530 shared_flag='-shared'
20531 if test "$aix_use_runtimelinking" = yes; then
20532 shared_flag="$shared_flag "'${wl}-G'
20536 if test "$host_cpu" = ia64; then
20537 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20538 # chokes on -Wl,-G. The following line is correct:
20541 if test "$aix_use_runtimelinking" = yes; then
20542 shared_flag='${wl}-G'
20544 shared_flag='${wl}-bM:SRE'
20549 export_dynamic_flag_spec_CXX='${wl}-bexpall'
20550 # It seems that -bexpall does not export symbols beginning with
20551 # underscore (_), so it is better to generate a list of symbols to
20553 always_export_symbols_CXX=yes
20554 if test "$aix_use_runtimelinking" = yes; then
20555 # Warning - without using the other runtime loading flags (-brtl),
20556 # -berok will link without error, but may produce a broken library.
20557 allow_undefined_flag_CXX='-berok'
20558 # Determine the default libpath from the value encoded in an empty
20560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20561 /* end confdefs.h. */
20571 if ac_fn_cxx_try_link "$LINENO"; then :
20573 lt_aix_libpath_sed='
20574 /Import File Strings/,/^$/ {
20580 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20581 # Check for a 64-bit object if we didn't find anything.
20582 if test -z "$aix_libpath"; then
20583 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20586 rm -f core conftest.err conftest.$ac_objext \
20587 conftest$ac_exeext conftest.$ac_ext
20588 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20590 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20592 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"
20594 if test "$host_cpu" = ia64; then
20595 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20596 allow_undefined_flag_CXX="-z nodefs"
20597 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"
20599 # Determine the default libpath from the value encoded in an
20600 # empty executable.
20601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20602 /* end confdefs.h. */
20612 if ac_fn_cxx_try_link "$LINENO"; then :
20614 lt_aix_libpath_sed='
20615 /Import File Strings/,/^$/ {
20621 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20622 # Check for a 64-bit object if we didn't find anything.
20623 if test -z "$aix_libpath"; then
20624 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20627 rm -f core conftest.err conftest.$ac_objext \
20628 conftest$ac_exeext conftest.$ac_ext
20629 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20631 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20632 # Warning - without using the other run time loading flags,
20633 # -berok will link without error, but may produce a broken library.
20634 no_undefined_flag_CXX=' ${wl}-bernotok'
20635 allow_undefined_flag_CXX=' ${wl}-berok'
20636 if test "$with_gnu_ld" = yes; then
20637 # We only use this code for GNU lds that support --whole-archive.
20638 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20640 # Exported symbols can be pulled into shared objects from archives
20641 whole_archive_flag_spec_CXX='$convenience'
20643 archive_cmds_need_lc_CXX=yes
20644 # This is similar to how AIX traditionally builds its shared
20646 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'
20652 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20653 allow_undefined_flag_CXX=unsupported
20654 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20655 # support --undefined. This deserves some investigation. FIXME
20656 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20663 case $cc_basename in
20665 # FIXME: insert proper C++ library support
20671 cygwin* | mingw* | pw32* | cegcc*)
20672 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20673 # as there is no search path for DLLs.
20674 hardcode_libdir_flag_spec_CXX='-L$libdir'
20675 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
20676 allow_undefined_flag_CXX=unsupported
20677 always_export_symbols_CXX=no
20678 enable_shared_with_static_runtimes_CXX=yes
20680 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20681 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'
20682 # If the export-symbols file already is a .def file (1st line
20683 # is EXPORTS), use it as is; otherwise, prepend...
20684 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20685 cp $export_symbols $output_objdir/$soname.def;
20687 echo EXPORTS > $output_objdir/$soname.def;
20688 cat $export_symbols >> $output_objdir/$soname.def;
20690 $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'
20695 darwin* | rhapsody*)
20698 archive_cmds_need_lc_CXX=no
20699 hardcode_direct_CXX=no
20700 hardcode_automatic_CXX=yes
20701 hardcode_shlibpath_var_CXX=unsupported
20702 if test "$lt_cv_ld_force_load" = "yes"; then
20703 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\"`'
20705 whole_archive_flag_spec_CXX=''
20707 link_all_deplibs_CXX=yes
20708 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
20709 case $cc_basename in
20710 ifort*) _lt_dar_can_shared=yes ;;
20711 *) _lt_dar_can_shared=$GCC ;;
20713 if test "$_lt_dar_can_shared" = "yes"; then
20714 output_verbose_link_cmd=func_echo_all
20715 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}"
20716 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20717 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}"
20718 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}"
20719 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
20720 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}"
20721 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}"
20731 case $cc_basename in
20733 # FIXME: insert proper C++ library support
20737 # Green Hills C++ Compiler
20738 # FIXME: insert proper C++ library support
20742 # FIXME: insert proper C++ library support
20749 # C++ shared libraries reported to be fairly broken before
20755 archive_cmds_need_lc_CXX=no
20758 freebsd* | dragonfly*)
20759 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20768 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20769 link_all_deplibs_CXX=yes
20773 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20774 hardcode_libdir_separator_CXX=:
20775 export_dynamic_flag_spec_CXX='${wl}-E'
20776 hardcode_direct_CXX=yes
20777 hardcode_minus_L_CXX=yes # Not in the search PATH,
20778 # but as the default
20779 # location of the library.
20781 case $cc_basename in
20783 # FIXME: insert proper C++ library support
20787 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'
20788 # Commands to make compiler produce verbose output that lists
20789 # what "hidden" libraries, object files and flags are used when
20790 # linking a shared library.
20792 # There doesn't appear to be a way to prevent this compiler from
20793 # explicitly linking system object files so we need to strip them
20794 # from the output so that they don't get included in the library
20796 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"'
20799 if test "$GXX" = yes; then
20800 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'
20802 # FIXME: insert proper C++ library support
20810 if test $with_gnu_ld = no; then
20811 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
20812 hardcode_libdir_separator_CXX=:
20818 export_dynamic_flag_spec_CXX='${wl}-E'
20824 hardcode_direct_CXX=no
20825 hardcode_shlibpath_var_CXX=no
20828 hardcode_direct_CXX=yes
20829 hardcode_direct_absolute_CXX=yes
20830 hardcode_minus_L_CXX=yes # Not in the search PATH,
20831 # but as the default
20832 # location of the library.
20836 case $cc_basename in
20838 # FIXME: insert proper C++ library support
20844 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20847 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20850 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20853 # Commands to make compiler produce verbose output that lists
20854 # what "hidden" libraries, object files and flags are used when
20855 # linking a shared library.
20857 # There doesn't appear to be a way to prevent this compiler from
20858 # explicitly linking system object files so we need to strip them
20859 # from the output so that they don't get included in the library
20861 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"'
20864 if test "$GXX" = yes; then
20865 if test $with_gnu_ld = no; then
20868 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20871 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20874 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'
20879 # FIXME: insert proper C++ library support
20887 hardcode_direct_CXX=no
20888 hardcode_shlibpath_var_CXX=no
20889 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20890 export_dynamic_flag_spec_CXX='${wl}-E'
20891 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20892 # Instead, shared libraries are loaded at an image base (0x10000000 by
20893 # default) and relocated if they conflict, which is a slow very memory
20894 # consuming and fragmenting process. To avoid this, we pick a random,
20895 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20896 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20897 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'
20898 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'
20901 case $cc_basename in
20904 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'
20906 # Archives containing C++ object files must be created using
20907 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20908 # necessary to make sure instantiated templates are included
20910 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20913 if test "$GXX" = yes; then
20914 if test "$with_gnu_ld" = no; then
20915 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'
20917 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'
20920 link_all_deplibs_CXX=yes
20923 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20924 hardcode_libdir_separator_CXX=:
20925 inherit_rpath_CXX=yes
20928 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20929 case $cc_basename in
20931 # Kuck and Associates, Inc. (KAI) C++ Compiler
20933 # KCC will only create a shared library if the output file
20934 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20935 # to its proper name (with version) after linking.
20936 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'
20937 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'
20938 # Commands to make compiler produce verbose output that lists
20939 # what "hidden" libraries, object files and flags are used when
20940 # linking a shared library.
20942 # There doesn't appear to be a way to prevent this compiler from
20943 # explicitly linking system object files so we need to strip them
20944 # from the output so that they don't get included in the library
20946 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"'
20948 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20949 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20951 # Archives containing C++ object files must be created using
20952 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20953 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20958 # version 8.0 and above of icpc choke on multiply defined symbols
20959 # if we add $predep_objects and $postdep_objects, however 7.1 and
20960 # earlier do not add the objects themselves.
20961 case `$CC -V 2>&1` in
20963 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20964 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'
20966 *) # Version 8.0 or newer
20969 ia64*) tmp_idyn=' -i_dynamic';;
20971 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20972 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'
20975 archive_cmds_need_lc_CXX=no
20976 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
20977 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20978 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20981 # Portland Group C++ compiler
20983 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20984 prelink_cmds_CXX='tpldir=Template.dir~
20986 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20987 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20988 old_archive_cmds_CXX='tpldir=Template.dir~
20990 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20991 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20993 archive_cmds_CXX='tpldir=Template.dir~
20995 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20996 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20997 archive_expsym_cmds_CXX='tpldir=Template.dir~
20999 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21000 $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'
21002 *) # Version 6 and above use weak symbols
21003 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21004 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'
21008 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
21009 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21010 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'
21014 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21015 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'
21017 runpath_var=LD_RUN_PATH
21018 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21019 hardcode_libdir_separator_CXX=:
21021 # Commands to make compiler produce verbose output that lists
21022 # what "hidden" libraries, object files and flags are used when
21023 # linking a shared library.
21025 # There doesn't appear to be a way to prevent this compiler from
21026 # explicitly linking system object files so we need to strip them
21027 # from the output so that they don't get included in the library
21029 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'
21031 xl* | mpixl* | bgxl*)
21032 # IBM XL 8.0 on PPC, with GNU ld
21033 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21034 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21035 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21036 if test "x$supports_anon_versioning" = xyes; then
21037 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
21038 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21039 echo "local: *; };" >> $output_objdir/$libname.ver~
21040 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21044 case `$CC -V 2>&1 | sed 5q` in
21047 no_undefined_flag_CXX=' -zdefs'
21048 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21049 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'
21050 hardcode_libdir_flag_spec_CXX='-R$libdir'
21051 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'
21052 compiler_needs_object_CXX=yes
21054 # Not sure whether something based on
21055 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21057 output_verbose_link_cmd='func_echo_all'
21059 # Archives containing C++ object files must be created using
21060 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21061 # necessary to make sure instantiated templates are included
21063 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21071 # FIXME: insert proper C++ library support
21076 # FIXME: insert proper C++ library support
21081 case $cc_basename in
21083 # FIXME: insert proper C++ library support
21087 # FIXME: insert proper C++ library support
21094 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21095 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21097 hardcode_libdir_flag_spec_CXX='-R$libdir'
21098 hardcode_direct_CXX=yes
21099 hardcode_shlibpath_var_CXX=no
21101 # Workaround some broken pre-1.5 toolchains
21102 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21110 # C++ shared libraries are fairly broken
21115 if test -f /usr/libexec/ld.so; then
21116 hardcode_direct_CXX=yes
21117 hardcode_shlibpath_var_CXX=no
21118 hardcode_direct_absolute_CXX=yes
21119 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21120 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21121 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21122 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21123 export_dynamic_flag_spec_CXX='${wl}-E'
21124 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21126 output_verbose_link_cmd=func_echo_all
21132 osf3* | osf4* | osf5*)
21133 case $cc_basename in
21135 # Kuck and Associates, Inc. (KAI) C++ Compiler
21137 # KCC will only create a shared library if the output file
21138 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21139 # to its proper name (with version) after linking.
21140 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'
21142 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21143 hardcode_libdir_separator_CXX=:
21145 # Archives containing C++ object files must be created using
21146 # the KAI C++ compiler.
21148 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
21149 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
21153 # Rational C++ 2.4.1
21154 # FIXME: insert proper C++ library support
21160 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21161 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'
21162 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21165 allow_undefined_flag_CXX=' -expect_unresolved \*'
21166 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'
21167 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21168 echo "-hidden">> $lib.exp~
21169 $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~
21171 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21175 hardcode_libdir_separator_CXX=:
21177 # Commands to make compiler produce verbose output that lists
21178 # what "hidden" libraries, object files and flags are used when
21179 # linking a shared library.
21181 # There doesn't appear to be a way to prevent this compiler from
21182 # explicitly linking system object files so we need to strip them
21183 # from the output so that they don't get included in the library
21185 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"'
21188 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21189 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21192 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'
21195 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'
21199 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21200 hardcode_libdir_separator_CXX=:
21202 # Commands to make compiler produce verbose output that lists
21203 # what "hidden" libraries, object files and flags are used when
21204 # linking a shared library.
21205 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21208 # FIXME: insert proper C++ library support
21216 # FIXME: insert proper C++ library support
21221 case $cc_basename in
21224 # FIXME: insert proper C++ library support
21229 # FIXME: insert proper C++ library support
21233 # FIXME: insert proper C++ library support
21240 case $cc_basename in
21242 # Sun C++ 4.2, 5.x and Centerline C++
21243 archive_cmds_need_lc_CXX=yes
21244 no_undefined_flag_CXX=' -zdefs'
21245 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21246 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21247 $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'
21249 hardcode_libdir_flag_spec_CXX='-R$libdir'
21250 hardcode_shlibpath_var_CXX=no
21252 solaris2.[0-5] | solaris2.[0-5].*) ;;
21254 # The compiler driver will combine and reorder linker options,
21255 # but understands `-z linker_flag'.
21256 # Supported since Solaris 2.6 (maybe 2.5.1?)
21257 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21260 link_all_deplibs_CXX=yes
21262 output_verbose_link_cmd='func_echo_all'
21264 # Archives containing C++ object files must be created using
21265 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21266 # necessary to make sure instantiated templates are included
21268 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21271 # Green Hills C++ Compiler
21272 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21274 # The C++ compiler must be used to create the archive.
21275 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21278 # GNU C++ compiler with Solaris linker
21279 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21280 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21281 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
21282 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21283 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21284 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21286 # Commands to make compiler produce verbose output that lists
21287 # what "hidden" libraries, object files and flags are used when
21288 # linking a shared library.
21289 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21291 # g++ 2.7 appears to require `-G' NOT `-shared' on this
21293 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21294 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21295 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
21297 # Commands to make compiler produce verbose output that lists
21298 # what "hidden" libraries, object files and flags are used when
21299 # linking a shared library.
21300 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21303 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21305 solaris2.[0-5] | solaris2.[0-5].*) ;;
21307 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21315 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21316 no_undefined_flag_CXX='${wl}-z,text'
21317 archive_cmds_need_lc_CXX=no
21318 hardcode_shlibpath_var_CXX=no
21319 runpath_var='LD_RUN_PATH'
21321 case $cc_basename in
21323 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21324 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21327 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21328 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21333 sysv5* | sco3.2v5* | sco5v6*)
21334 # Note: We can NOT use -z defs as we might desire, because we do not
21335 # link with -lc, and that would cause any symbols used from libc to
21336 # always be unresolved, which means just about no library would
21337 # ever link correctly. If we're not using GNU ld we use -z text
21338 # though, which does catch some bad symbols but isn't as heavy-handed
21340 no_undefined_flag_CXX='${wl}-z,text'
21341 allow_undefined_flag_CXX='${wl}-z,nodefs'
21342 archive_cmds_need_lc_CXX=no
21343 hardcode_shlibpath_var_CXX=no
21344 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
21345 hardcode_libdir_separator_CXX=':'
21346 link_all_deplibs_CXX=yes
21347 export_dynamic_flag_spec_CXX='${wl}-Bexport'
21348 runpath_var='LD_RUN_PATH'
21350 case $cc_basename in
21352 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21353 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21354 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21355 '"$old_archive_cmds_CXX"
21356 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21357 '"$reload_cmds_CXX"
21360 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21361 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21367 case $cc_basename in
21369 # NonStop-UX NCC 3.20
21370 # FIXME: insert proper C++ library support
21374 # FIXME: insert proper C++ library support
21381 # For VxWorks ports, we assume the use of a GNU linker with
21382 # standard elf conventions.
21387 # FIXME: insert proper C++ library support
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21393 $as_echo "$ld_shlibs_CXX" >&6; }
21394 test "$ld_shlibs_CXX" = no && can_build_shared=no
21400 ## There is no encapsulation within the following macros, do not change
21401 ## the running order or otherwise move them around unless you know exactly
21402 ## what you are doing...
21403 # Dependencies to place before and after the object being linked:
21404 predep_objects_CXX=
21405 postdep_objects_CXX=
21408 compiler_lib_search_path_CXX=
21410 cat > conftest.$ac_ext <<_LT_EOF
21414 Foo (void) { a = 0; }
21420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21421 (eval $ac_compile) 2>&5
21423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21424 test $ac_status = 0; }; then
21425 # Parse the compiler output and extract the necessary
21426 # objects, libraries and library flags.
21428 # Sentinel used to keep track of whether or not we are before
21429 # the conftest object file.
21430 pre_test_object_deps_done=no
21432 for p in `eval "$output_verbose_link_cmd"`; do
21436 # Some compilers place space between "-{L,R}" and the path.
21437 # Remove the space.
21438 if test $p = "-L" ||
21439 test $p = "-R"; then
21446 if test "$pre_test_object_deps_done" = no; then
21449 # Internal compiler library paths should come after those
21450 # provided the user. The postdeps already come after the
21451 # user supplied libs so there is no need to process them.
21452 if test -z "$compiler_lib_search_path_CXX"; then
21453 compiler_lib_search_path_CXX="${prev}${p}"
21455 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21458 # The "-l" case would never come before the object being
21459 # linked, so don't bother handling this case.
21462 if test -z "$postdeps_CXX"; then
21463 postdeps_CXX="${prev}${p}"
21465 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21471 # This assumes that the test object file only shows up
21472 # once in the compiler output.
21473 if test "$p" = "conftest.$objext"; then
21474 pre_test_object_deps_done=yes
21478 if test "$pre_test_object_deps_done" = no; then
21479 if test -z "$predep_objects_CXX"; then
21480 predep_objects_CXX="$p"
21482 predep_objects_CXX="$predep_objects_CXX $p"
21485 if test -z "$postdep_objects_CXX"; then
21486 postdep_objects_CXX="$p"
21488 postdep_objects_CXX="$postdep_objects_CXX $p"
21493 *) ;; # Ignore the rest.
21501 echo "libtool.m4: error: problem compiling CXX test program"
21504 $RM -f confest.$objext
21506 # PORTME: override above test on systems where it is broken
21509 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21510 # hack all around it, let's just trust "g++" to DTRT.
21511 predep_objects_CXX=
21512 postdep_objects_CXX=
21517 case `$CC -V 2>&1 | sed 5q` in
21521 # The more standards-conforming stlport4 library is
21522 # incompatible with the Cstd library. Avoid specifying
21523 # it if it's in CXXFLAGS. Ignore libCrun as
21524 # -library=stlport4 depends on it.
21525 case " $CXX $CXXFLAGS " in
21526 *" -library=stlport4 "*)
21527 solaris_use_stlport4=yes
21531 if test "$solaris_use_stlport4" != yes; then
21532 postdeps_CXX='-library=Cstd -library=Crun'
21539 case $cc_basename in
21541 # The more standards-conforming stlport4 library is
21542 # incompatible with the Cstd library. Avoid specifying
21543 # it if it's in CXXFLAGS. Ignore libCrun as
21544 # -library=stlport4 depends on it.
21545 case " $CXX $CXXFLAGS " in
21546 *" -library=stlport4 "*)
21547 solaris_use_stlport4=yes
21551 # Adding this requires a known-good setup of shared libraries for
21552 # Sun compiler versions before 5.6, else PIC objects from an old
21553 # archive will be linked into the output, leading to subtle bugs.
21554 if test "$solaris_use_stlport4" != yes; then
21555 postdeps_CXX='-library=Cstd -library=Crun'
21563 case " $postdeps_CXX " in
21564 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21566 compiler_lib_search_dirs_CXX=
21567 if test -n "${compiler_lib_search_path_CXX}"; then
21568 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
21601 lt_prog_compiler_wl_CXX=
21602 lt_prog_compiler_pic_CXX=
21603 lt_prog_compiler_static_CXX=
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21606 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21608 # C++ specific cases for pic, static, wl, etc.
21609 if test "$GXX" = yes; then
21610 lt_prog_compiler_wl_CXX='-Wl,'
21611 lt_prog_compiler_static_CXX='-static'
21615 # All AIX code is PIC.
21616 if test "$host_cpu" = ia64; then
21617 # AIX 5 now supports IA64 processor
21618 lt_prog_compiler_static_CXX='-Bstatic'
21620 lt_prog_compiler_pic_CXX='-fPIC'
21626 # see comment about AmigaOS4 .so support
21627 lt_prog_compiler_pic_CXX='-fPIC'
21630 # FIXME: we need at least 68020 code to build shared libraries, but
21631 # adding the `-m68020' flag to GCC prevents building anything better,
21633 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21638 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21639 # PIC is the default for these OSes.
21641 mingw* | cygwin* | os2* | pw32* | cegcc*)
21642 # This hack is so that the source file can tell whether it is being
21643 # built for inclusion in a dll (and should export symbols for example).
21644 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21645 # (--disable-auto-import) libraries
21646 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21648 darwin* | rhapsody*)
21649 # PIC is the default on this platform
21650 # Common symbols not allowed in MH_DYLIB files
21651 lt_prog_compiler_pic_CXX='-fno-common'
21654 # DJGPP does not support shared libraries at all
21655 lt_prog_compiler_pic_CXX=
21658 # PIC is the default for Haiku.
21659 # The "-static" flag exists, but is broken.
21660 lt_prog_compiler_static_CXX=
21663 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21664 # Instead, we relocate shared libraries at runtime.
21667 if test -d /usr/nec; then
21668 lt_prog_compiler_pic_CXX=-Kconform_pic
21672 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21673 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21674 # sets the default TLS model and affects inlining.
21679 lt_prog_compiler_pic_CXX='-fPIC'
21684 # QNX uses GNU C++, but need to define -shared option too, otherwise
21685 # it will coredump.
21686 lt_prog_compiler_pic_CXX='-fPIC -shared'
21689 lt_prog_compiler_pic_CXX='-fPIC'
21695 # All AIX code is PIC.
21696 if test "$host_cpu" = ia64; then
21697 # AIX 5 now supports IA64 processor
21698 lt_prog_compiler_static_CXX='-Bstatic'
21700 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21704 case $cc_basename in
21706 # Green Hills C++ Compiler
21707 # _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"
21712 case $cc_basename in
21714 lt_prog_compiler_pic_CXX='-KPIC'
21717 # Green Hills C++ Compiler
21718 lt_prog_compiler_pic_CXX='-pic'
21724 freebsd* | dragonfly*)
21725 # FreeBSD uses GNU C++
21727 hpux9* | hpux10* | hpux11*)
21728 case $cc_basename in
21730 lt_prog_compiler_wl_CXX='-Wl,'
21731 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21732 if test "$host_cpu" != ia64; then
21733 lt_prog_compiler_pic_CXX='+Z'
21737 lt_prog_compiler_wl_CXX='-Wl,'
21738 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21744 lt_prog_compiler_pic_CXX='+Z'
21753 # This is c89, which is MS Visual C++ (no shared libs)
21754 # Anyone wants to do a port?
21756 irix5* | irix6* | nonstopux*)
21757 case $cc_basename in
21759 lt_prog_compiler_wl_CXX='-Wl,'
21760 lt_prog_compiler_static_CXX='-non_shared'
21761 # CC pic flag -KPIC is the default.
21767 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21768 case $cc_basename in
21771 lt_prog_compiler_wl_CXX='--backend -Wl,'
21772 lt_prog_compiler_pic_CXX='-fPIC'
21775 # old Intel C++ for x86_64 which still supported -KPIC.
21776 lt_prog_compiler_wl_CXX='-Wl,'
21777 lt_prog_compiler_pic_CXX='-KPIC'
21778 lt_prog_compiler_static_CXX='-static'
21781 # Intel C++, used to be incompatible with GCC.
21782 # ICC 10 doesn't accept -KPIC any more.
21783 lt_prog_compiler_wl_CXX='-Wl,'
21784 lt_prog_compiler_pic_CXX='-fPIC'
21785 lt_prog_compiler_static_CXX='-static'
21788 # Portland Group C++ compiler
21789 lt_prog_compiler_wl_CXX='-Wl,'
21790 lt_prog_compiler_pic_CXX='-fpic'
21791 lt_prog_compiler_static_CXX='-Bstatic'
21795 # Make sure the PIC flag is empty. It appears that all Alpha
21796 # Linux and Compaq Tru64 Unix objects are PIC.
21797 lt_prog_compiler_pic_CXX=
21798 lt_prog_compiler_static_CXX='-non_shared'
21800 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21801 # IBM XL 8.0, 9.0 on PPC and BlueGene
21802 lt_prog_compiler_wl_CXX='-Wl,'
21803 lt_prog_compiler_pic_CXX='-qpic'
21804 lt_prog_compiler_static_CXX='-qstaticlink'
21807 case `$CC -V 2>&1 | sed 5q` in
21810 lt_prog_compiler_pic_CXX='-KPIC'
21811 lt_prog_compiler_static_CXX='-Bstatic'
21812 lt_prog_compiler_wl_CXX='-Qoption ld '
21823 case $cc_basename in
21825 lt_prog_compiler_pic_CXX='-W c,exportall'
21834 # QNX uses GNU C++, but need to define -shared option too, otherwise
21835 # it will coredump.
21836 lt_prog_compiler_pic_CXX='-fPIC -shared'
21838 osf3* | osf4* | osf5*)
21839 case $cc_basename in
21841 lt_prog_compiler_wl_CXX='--backend -Wl,'
21844 # Rational C++ 2.4.1
21845 lt_prog_compiler_pic_CXX='-pic'
21848 # Digital/Compaq C++
21849 lt_prog_compiler_wl_CXX='-Wl,'
21850 # Make sure the PIC flag is empty. It appears that all Alpha
21851 # Linux and Compaq Tru64 Unix objects are PIC.
21852 lt_prog_compiler_pic_CXX=
21853 lt_prog_compiler_static_CXX='-non_shared'
21862 case $cc_basename in
21864 # Sun C++ 4.2, 5.x and Centerline C++
21865 lt_prog_compiler_pic_CXX='-KPIC'
21866 lt_prog_compiler_static_CXX='-Bstatic'
21867 lt_prog_compiler_wl_CXX='-Qoption ld '
21870 # Green Hills C++ Compiler
21871 lt_prog_compiler_pic_CXX='-PIC'
21878 case $cc_basename in
21881 lt_prog_compiler_pic_CXX='-pic'
21882 lt_prog_compiler_static_CXX='-Bstatic'
21886 lt_prog_compiler_pic_CXX='-pic'
21892 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21893 case $cc_basename in
21895 lt_prog_compiler_wl_CXX='-Wl,'
21896 lt_prog_compiler_pic_CXX='-KPIC'
21897 lt_prog_compiler_static_CXX='-Bstatic'
21902 case $cc_basename in
21904 # NonStop-UX NCC 3.20
21905 lt_prog_compiler_pic_CXX='-KPIC'
21914 lt_prog_compiler_can_build_shared_CXX=no
21920 # For platforms which do not support PIC, -DPIC is meaningless:
21922 lt_prog_compiler_pic_CXX=
21925 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21929 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21934 # Check to make sure the PIC flag actually works.
21936 if test -n "$lt_prog_compiler_pic_CXX"; then
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21938 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21939 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21940 $as_echo_n "(cached) " >&6
21942 lt_cv_prog_compiler_pic_works_CXX=no
21943 ac_outfile=conftest.$ac_objext
21944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21945 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
21946 # Insert the option either (1) after the last *FLAGS variable, or
21947 # (2) before a word containing "conftest.", or (3) at the end.
21948 # Note that $ac_compile itself does not contain backslashes and begins
21949 # with a dollar sign (not a hyphen), so the echo should work correctly.
21950 # The option is referenced via a variable to avoid confusing sed.
21951 lt_compile=`echo "$ac_compile" | $SED \
21952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21954 -e 's:$: $lt_compiler_flag:'`
21955 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21956 (eval "$lt_compile" 2>conftest.err)
21958 cat conftest.err >&5
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 if (exit $ac_status) && test -s "$ac_outfile"; then
21961 # The compiler can only warn and ignore the option if not recognized
21962 # So say no if there are warnings other than the usual output.
21963 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21965 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21966 lt_cv_prog_compiler_pic_works_CXX=yes
21972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21973 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21975 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
21976 case $lt_prog_compiler_pic_CXX in
21978 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21981 lt_prog_compiler_pic_CXX=
21982 lt_prog_compiler_can_build_shared_CXX=no
21990 # Check to make sure the static flag actually works.
21992 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21994 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21995 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21996 $as_echo_n "(cached) " >&6
21998 lt_cv_prog_compiler_static_works_CXX=no
21999 save_LDFLAGS="$LDFLAGS"
22000 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22001 echo "$lt_simple_link_test_code" > conftest.$ac_ext
22002 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22003 # The linker can only warn and ignore the option if not recognized
22004 # So say no if there are warnings
22005 if test -s conftest.err; then
22006 # Append any errors to the config.log.
22007 cat conftest.err 1>&5
22008 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
22009 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22010 if diff conftest.exp conftest.er2 >/dev/null; then
22011 lt_cv_prog_compiler_static_works_CXX=yes
22014 lt_cv_prog_compiler_static_works_CXX=yes
22018 LDFLAGS="$save_LDFLAGS"
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22022 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22024 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
22027 lt_prog_compiler_static_CXX=
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22034 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22035 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22036 $as_echo_n "(cached) " >&6
22038 lt_cv_prog_compiler_c_o_CXX=no
22039 $RM -r conftest 2>/dev/null
22043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22045 lt_compiler_flag="-o out/conftest2.$ac_objext"
22046 # Insert the option either (1) after the last *FLAGS variable, or
22047 # (2) before a word containing "conftest.", or (3) at the end.
22048 # Note that $ac_compile itself does not contain backslashes and begins
22049 # with a dollar sign (not a hyphen), so the echo should work correctly.
22050 lt_compile=`echo "$ac_compile" | $SED \
22051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22053 -e 's:$: $lt_compiler_flag:'`
22054 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22055 (eval "$lt_compile" 2>out/conftest.err)
22057 cat out/conftest.err >&5
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22061 # The compiler can only warn and ignore the option if not recognized
22062 # So say no if there are warnings
22063 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22064 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22065 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22066 lt_cv_prog_compiler_c_o_CXX=yes
22071 # SGI C++ compiler will create directory out/ii_files/ for
22072 # template instantiation
22073 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22074 $RM out/* && rmdir out
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22081 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22086 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22087 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22088 $as_echo_n "(cached) " >&6
22090 lt_cv_prog_compiler_c_o_CXX=no
22091 $RM -r conftest 2>/dev/null
22095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22097 lt_compiler_flag="-o out/conftest2.$ac_objext"
22098 # Insert the option either (1) after the last *FLAGS variable, or
22099 # (2) before a word containing "conftest.", or (3) at the end.
22100 # Note that $ac_compile itself does not contain backslashes and begins
22101 # with a dollar sign (not a hyphen), so the echo should work correctly.
22102 lt_compile=`echo "$ac_compile" | $SED \
22103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22105 -e 's:$: $lt_compiler_flag:'`
22106 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22107 (eval "$lt_compile" 2>out/conftest.err)
22109 cat out/conftest.err >&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22113 # The compiler can only warn and ignore the option if not recognized
22114 # So say no if there are warnings
22115 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22116 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22117 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22118 lt_cv_prog_compiler_c_o_CXX=yes
22123 # SGI C++ compiler will create directory out/ii_files/ for
22124 # template instantiation
22125 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22126 $RM out/* && rmdir out
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22133 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22138 hard_links="nottested"
22139 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
22140 # do not overwrite the value of need_locks provided by the user
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22142 $as_echo_n "checking if we can lock with hard links... " >&6; }
22145 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22147 ln conftest.a conftest.b 2>&5 || hard_links=no
22148 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22150 $as_echo "$hard_links" >&6; }
22151 if test "$hard_links" = no; then
22152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22153 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22163 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22165 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22168 # If we're using GNU nm, then we don't want the "-C" option.
22169 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22170 # Also, AIX nm treats weak defined symbols like other global defined
22171 # symbols, whereas GNU nm marks them as "W".
22172 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22173 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'
22175 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'
22179 export_symbols_cmds_CXX="$ltdll_cmds"
22181 cygwin* | mingw* | cegcc*)
22182 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'
22185 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22188 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22191 $as_echo "$ld_shlibs_CXX" >&6; }
22192 test "$ld_shlibs_CXX" = no && can_build_shared=no
22194 with_gnu_ld_CXX=$with_gnu_ld
22202 # Do we need to explicitly link libc?
22204 case "x$archive_cmds_need_lc_CXX" in
22206 # Assume -lc should be added
22207 archive_cmds_need_lc_CXX=yes
22209 if test "$enable_shared" = yes && test "$GCC" = yes; then
22210 case $archive_cmds_CXX in
22212 # FIXME: we may have to deal with multi-command sequences.
22215 # Test whether the compiler implicitly links with -lc since on some
22216 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22217 # to ld, don't add -lc before -lgcc.
22218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22219 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22220 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
22221 $as_echo_n "(cached) " >&6
22224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22227 (eval $ac_compile) 2>&5
22229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22230 test $ac_status = 0; } 2>conftest.err; then
22233 libobjs=conftest.$ac_objext
22235 wl=$lt_prog_compiler_wl_CXX
22236 pic_flag=$lt_prog_compiler_pic_CXX
22242 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22243 allow_undefined_flag_CXX=
22244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22245 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22248 test $ac_status = 0; }
22250 lt_cv_archive_cmds_need_lc_CXX=no
22252 lt_cv_archive_cmds_need_lc_CXX=yes
22254 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22256 cat conftest.err 1>&5
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22262 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22263 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22334 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22336 library_names_spec=
22337 libname_spec='lib$name'
22341 postuninstall_cmds=
22345 shlibpath_overrides_runpath=unknown
22347 dynamic_linker="$host_os ld.so"
22348 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22349 need_lib_prefix=unknown
22350 hardcode_into_libs=no
22352 # when you set need_version to no, make sure it does not cause -set_version
22353 # flags to be left without arguments
22354 need_version=unknown
22359 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22360 shlibpath_var=LIBPATH
22362 # AIX 3 has no versioning support, so we append a major version to the name.
22363 soname_spec='${libname}${release}${shared_ext}$major'
22370 hardcode_into_libs=yes
22371 if test "$host_cpu" = ia64; then
22372 # AIX 5 supports IA64
22373 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22374 shlibpath_var=LD_LIBRARY_PATH
22376 # With GCC up to 2.95.x, collect2 would create an import file
22377 # for dependence libraries. The import file would start with
22378 # the line `#! .'. This would cause the generated library to
22379 # depend on `.', always an invalid library. This was fixed in
22380 # development snapshots of GCC prior to 3.0.
22382 aix4 | aix4.[01] | aix4.[01].*)
22383 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22385 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
22388 can_build_shared=no
22392 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22393 # soname into executable. Probably we can add versioning support to
22394 # collect2, so additional links can be useful in future.
22395 if test "$aix_use_runtimelinking" = yes; then
22396 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22397 # instead of lib<name>.a to let people know that these are not
22398 # typical AIX shared libraries.
22399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22401 # We preserve .a as extension for shared libraries through AIX4.2
22402 # and later when we are not doing run time linking.
22403 library_names_spec='${libname}${release}.a $libname.a'
22404 soname_spec='${libname}${release}${shared_ext}$major'
22406 shlibpath_var=LIBPATH
22413 # Since July 2007 AmigaOS4 officially supports .so libraries.
22414 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22418 library_names_spec='$libname.ixlibrary $libname.a'
22419 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22420 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'
22426 library_names_spec='${libname}${shared_ext}'
22427 dynamic_linker="$host_os ld.so"
22428 shlibpath_var=LIBRARY_PATH
22434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22435 soname_spec='${libname}${release}${shared_ext}$major'
22436 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22437 shlibpath_var=LD_LIBRARY_PATH
22438 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22439 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22440 # the default ld.so.conf also contains /usr/contrib/lib and
22441 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22442 # libtool to hard-code these into programs
22445 cygwin* | mingw* | pw32* | cegcc*)
22446 version_type=windows
22451 case $GCC,$host_os in
22452 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22453 library_names_spec='$libname.dll.a'
22454 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22455 postinstall_cmds='base_file=`basename \${file}`~
22456 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22457 dldir=$destdir/`dirname \$dlpath`~
22458 test -d \$dldir || mkdir -p \$dldir~
22459 $install_prog $dir/$dlname \$dldir/$dlname~
22460 chmod a+x \$dldir/$dlname~
22461 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22462 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22464 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22465 dlpath=$dir/\$dldll~
22467 shlibpath_overrides_runpath=yes
22471 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22472 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22476 # MinGW DLLs use traditional 'lib' prefix
22477 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22480 # pw32 DLLs use 'pw' prefix rather than 'lib'
22481 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22487 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22490 dynamic_linker='Win32 ld.exe'
22491 # FIXME: first we should search . and the directory the executable is in
22495 darwin* | rhapsody*)
22496 dynamic_linker="$host_os dyld"
22497 version_type=darwin
22500 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22501 soname_spec='${libname}${release}${major}$shared_ext'
22502 shlibpath_overrides_runpath=yes
22503 shlibpath_var=DYLD_LIBRARY_PATH
22504 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22506 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22514 soname_spec='${libname}${release}${shared_ext}$major'
22515 shlibpath_var=LD_LIBRARY_PATH
22518 freebsd* | dragonfly*)
22519 # DragonFly does not have aout. When/if they implement a new
22520 # versioning mechanism, adjust this.
22521 if test -x /usr/bin/objformat; then
22522 objformat=`/usr/bin/objformat`
22525 freebsd[23].*) objformat=aout ;;
22526 *) objformat=elf ;;
22529 version_type=freebsd-$objformat
22530 case $version_type in
22532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22537 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22541 shlibpath_var=LD_LIBRARY_PATH
22544 shlibpath_overrides_runpath=yes
22546 freebsd3.[01]* | freebsdelf3.[01]*)
22547 shlibpath_overrides_runpath=yes
22548 hardcode_into_libs=yes
22550 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22551 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22552 shlibpath_overrides_runpath=no
22553 hardcode_into_libs=yes
22555 *) # from 4.6 on, and DragonFly
22556 shlibpath_overrides_runpath=yes
22557 hardcode_into_libs=yes
22566 dynamic_linker="$host_os runtime_loader"
22567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22568 soname_spec='${libname}${release}${shared_ext}$major'
22569 shlibpath_var=LIBRARY_PATH
22570 shlibpath_overrides_runpath=yes
22571 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
22572 hardcode_into_libs=yes
22575 hpux9* | hpux10* | hpux11*)
22576 # Give a soname corresponding to the major version so that dld.sl refuses to
22577 # link against other versions.
22584 hardcode_into_libs=yes
22585 dynamic_linker="$host_os dld.so"
22586 shlibpath_var=LD_LIBRARY_PATH
22587 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22589 soname_spec='${libname}${release}${shared_ext}$major'
22590 if test "X$HPUX_IA64_MODE" = X32; then
22591 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22593 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22595 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22599 hardcode_into_libs=yes
22600 dynamic_linker="$host_os dld.sl"
22601 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22602 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22604 soname_spec='${libname}${release}${shared_ext}$major'
22605 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22606 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22610 dynamic_linker="$host_os dld.sl"
22611 shlibpath_var=SHLIB_PATH
22612 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22614 soname_spec='${libname}${release}${shared_ext}$major'
22617 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22618 postinstall_cmds='chmod 555 $lib'
22619 # or fails outright, so override atomically:
22620 install_override_mode=555
22627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22628 soname_spec='${libname}${release}${shared_ext}$major'
22629 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22630 shlibpath_var=LD_LIBRARY_PATH
22631 shlibpath_overrides_runpath=no
22632 hardcode_into_libs=yes
22635 irix5* | irix6* | nonstopux*)
22637 nonstopux*) version_type=nonstopux ;;
22639 if test "$lt_cv_prog_gnu_ld" = yes; then
22647 soname_spec='${libname}${release}${shared_ext}$major'
22648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22650 irix5* | nonstopux*)
22651 libsuff= shlibsuff=
22654 case $LD in # libtool.m4 will add one of these switches to LD
22655 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22656 libsuff= shlibsuff= libmagic=32-bit;;
22657 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22658 libsuff=32 shlibsuff=N32 libmagic=N32;;
22659 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22660 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22661 *) libsuff= shlibsuff= libmagic=never-match;;
22665 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22666 shlibpath_overrides_runpath=no
22667 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22668 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22669 hardcode_into_libs=yes
22672 # No shared lib support for Linux oldld, aout, or coff.
22673 linux*oldld* | linux*aout* | linux*coff*)
22677 # This must be Linux ELF.
22679 # uclinux* changes (here and below) have been submitted to the libtool
22680 # project, but have not yet been accepted: they are GCC-local changes
22681 # for the time being. (See
22682 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
22683 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
22687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22688 soname_spec='${libname}${release}${shared_ext}$major'
22689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22690 shlibpath_var=LD_LIBRARY_PATH
22691 shlibpath_overrides_runpath=no
22693 # Some binutils ld are patched to set DT_RUNPATH
22694 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22695 $as_echo_n "(cached) " >&6
22697 lt_cv_shlibpath_overrides_runpath=no
22698 save_LDFLAGS=$LDFLAGS
22699 save_libdir=$libdir
22700 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22701 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22703 /* end confdefs.h. */
22713 if ac_fn_cxx_try_link "$LINENO"; then :
22714 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22715 lt_cv_shlibpath_overrides_runpath=yes
22718 rm -f core conftest.err conftest.$ac_objext \
22719 conftest$ac_exeext conftest.$ac_ext
22720 LDFLAGS=$save_LDFLAGS
22721 libdir=$save_libdir
22725 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22727 # This implies no fast_install, which is unacceptable.
22728 # Some rework will be needed to allow for fast_install
22729 # before this can be enabled.
22730 hardcode_into_libs=yes
22732 # Append ld.so.conf contents to the search path
22733 if test -f /etc/ld.so.conf; then
22734 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' ' '`
22735 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22738 # We used to test for /lib/ld.so.1 and disable shared libraries on
22739 # powerpc, because MkLinux only supported shared libraries with the
22740 # GNU dynamic linker. Since this was broken with cross compilers,
22741 # most powerpc-linux boxes support dynamic linking these days and
22742 # people can always --disable-shared, the test was removed, and we
22743 # assume the GNU/Linux dynamic linker is in use.
22744 dynamic_linker='GNU/Linux ld.so'
22751 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22754 dynamic_linker='NetBSD (a.out) ld.so'
22756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22757 soname_spec='${libname}${release}${shared_ext}$major'
22758 dynamic_linker='NetBSD ld.elf_so'
22760 shlibpath_var=LD_LIBRARY_PATH
22761 shlibpath_overrides_runpath=yes
22762 hardcode_into_libs=yes
22767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22768 shlibpath_var=LD_LIBRARY_PATH
22769 shlibpath_overrides_runpath=yes
22776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22777 soname_spec='${libname}${release}${shared_ext}$major'
22778 shlibpath_var=LD_LIBRARY_PATH
22779 shlibpath_overrides_runpath=no
22780 hardcode_into_libs=yes
22781 dynamic_linker='ldqnx.so'
22786 sys_lib_dlsearch_path_spec="/usr/lib"
22788 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22790 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22791 *) need_version=no ;;
22793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22794 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22795 shlibpath_var=LD_LIBRARY_PATH
22796 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22798 openbsd2.[89] | openbsd2.[89].*)
22799 shlibpath_overrides_runpath=no
22802 shlibpath_overrides_runpath=yes
22806 shlibpath_overrides_runpath=yes
22811 libname_spec='$name'
22814 library_names_spec='$libname${shared_ext} $libname.a'
22815 dynamic_linker='OS/2 ld.exe'
22816 shlibpath_var=LIBPATH
22819 osf3* | osf4* | osf5*)
22823 soname_spec='${libname}${release}${shared_ext}$major'
22824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22825 shlibpath_var=LD_LIBRARY_PATH
22826 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22827 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22839 soname_spec='${libname}${release}${shared_ext}$major'
22840 shlibpath_var=LD_LIBRARY_PATH
22841 shlibpath_overrides_runpath=yes
22842 hardcode_into_libs=yes
22843 # ldd complains unless libraries are executable
22844 postinstall_cmds='chmod +x $lib'
22849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22850 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22851 shlibpath_var=LD_LIBRARY_PATH
22852 shlibpath_overrides_runpath=yes
22853 if test "$with_gnu_ld" = yes; then
22861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22862 soname_spec='${libname}${release}${shared_ext}$major'
22863 shlibpath_var=LD_LIBRARY_PATH
22864 case $host_vendor in
22866 shlibpath_overrides_runpath=no
22868 runpath_var=LD_RUN_PATH
22876 shlibpath_overrides_runpath=no
22877 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22883 if test -d /usr/nec ;then
22885 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22886 soname_spec='$libname${shared_ext}.$major'
22887 shlibpath_var=LD_LIBRARY_PATH
22891 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22892 version_type=freebsd-elf
22895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22896 soname_spec='${libname}${release}${shared_ext}$major'
22897 shlibpath_var=LD_LIBRARY_PATH
22898 shlibpath_overrides_runpath=yes
22899 hardcode_into_libs=yes
22900 if test "$with_gnu_ld" = yes; then
22901 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22903 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22906 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22910 sys_lib_dlsearch_path_spec='/usr/lib'
22914 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22919 shlibpath_var=LD_LIBRARY_PATH
22920 shlibpath_overrides_runpath=no
22921 hardcode_into_libs=yes
22926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22927 soname_spec='${libname}${release}${shared_ext}$major'
22928 shlibpath_var=LD_LIBRARY_PATH
22931 # Shared libraries for VwWorks, >= 7 only at this stage
22932 # and (fpic) still incompatible with "large" code models
22933 # in a few configurations. Only for RTP mode in any case,
22934 # and upon explicit request at configure time.
22937 case ${with_multisubdir}-${enable_shared} in
22944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22945 soname_spec='${libname}${release}${shared_ext}$major'
22946 dynamic_linker="$host_os module_loader"
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22955 $as_echo "$dynamic_linker" >&6; }
22956 test "$dynamic_linker" = no && can_build_shared=no
22958 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22959 if test "$GCC" = yes; then
22960 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22963 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22964 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22966 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22967 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23008 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23009 hardcode_action_CXX=
23010 if test -n "$hardcode_libdir_flag_spec_CXX" ||
23011 test -n "$runpath_var_CXX" ||
23012 test "X$hardcode_automatic_CXX" = "Xyes" ; then
23014 # We can hardcode non-existent directories.
23015 if test "$hardcode_direct_CXX" != no &&
23016 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23017 # have to relink, otherwise we might link with an installed library
23018 # when we should be linking with a yet-to-be-installed one
23019 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23020 test "$hardcode_minus_L_CXX" != no; then
23021 # Linking always hardcodes the temporary library directory.
23022 hardcode_action_CXX=relink
23024 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23025 hardcode_action_CXX=immediate
23028 # We cannot hardcode anything, or else we can only hardcode existing
23030 hardcode_action_CXX=unsupported
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23033 $as_echo "$hardcode_action_CXX" >&6; }
23035 if test "$hardcode_action_CXX" = relink ||
23036 test "$inherit_rpath_CXX" = yes; then
23037 # Fast installation is not supported
23038 enable_fast_install=no
23039 elif test "$shlibpath_overrides_runpath" = yes ||
23040 test "$enable_shared" = no; then
23041 # Fast installation is not necessary
23042 enable_fast_install=needless
23051 fi # test -n "$compiler"
23057 with_gnu_ld=$lt_save_with_gnu_ld
23058 lt_cv_path_LDCXX=$lt_cv_path_LD
23059 lt_cv_path_LD=$lt_save_path_LD
23060 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
23061 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
23062 fi # test "$_lt_caught_CXX_error" != yes
23065 ac_cpp='$CXXCPP $CPPFLAGS'
23066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23085 # Only expand once:
23091 # Identify the assembler which will work hand-in-glove with the newly
23092 # built GCC, so that we can examine its features. This is the assembler
23093 # which will be driven by the driver program.
23095 # If build != host, and we aren't building gas in-tree, we identify a
23096 # build->target assembler and hope that it will have the same features
23097 # as the host->target assembler we'll be using.
23098 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
23100 if ${gcc_cv_as+:} false; then :
23104 if test -x "$DEFAULT_ASSEMBLER"; then
23105 gcc_cv_as="$DEFAULT_ASSEMBLER"
23106 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
23107 && test -f ../gas/Makefile \
23108 && test x$build = x$host; then
23109 gcc_cv_as=../gas/as-new$build_exeext
23110 elif test -x as$build_exeext; then
23111 # Build using assembler in the current directory.
23112 gcc_cv_as=./as$build_exeext
23113 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
23114 gcc_cv_as="$AS_FOR_TARGET"
23116 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
23117 set dummy $AS_FOR_TARGET; ac_word=$2
23118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23119 $as_echo_n "checking for $ac_word... " >&6; }
23120 if ${ac_cv_path_gcc_cv_as+:} false; then :
23121 $as_echo_n "(cached) " >&6
23125 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
23128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23129 for as_dir in $PATH
23132 test -z "$as_dir" && as_dir=.
23133 for ac_exec_ext in '' $ac_executable_extensions; do
23134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23135 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
23136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23146 gcc_cv_as=$ac_cv_path_gcc_cv_as
23147 if test -n "$gcc_cv_as"; then
23148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
23149 $as_echo "$gcc_cv_as" >&6; }
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23152 $as_echo "no" >&6; }
23159 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
23161 case "$ORIGINAL_AS_FOR_TARGET" in
23162 ./as | ./as$build_exeext) ;;
23163 *) ac_config_files="$ac_config_files as:exec-tool.in"
23168 # Check whether --enable-ld was given.
23169 if test "${enable_ld+set}" = set; then :
23170 enableval=$enable_ld; case "${enableval}" in
23178 install_gold_as_default=no
23179 # Check whether --enable-gold was given.
23180 if test "${enable_gold+set}" = set; then :
23181 enableval=$enable_gold; case "${enableval}" in
23183 install_gold_as_default=yes
23186 if test x${default_ld} != x; then
23187 install_gold_as_default=yes
23193 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
23199 # Identify the linker which will work hand-in-glove with the newly
23200 # built GCC, so that we can examine its features. This is the linker
23201 # which will be driven by the driver program.
23203 # If build != host, and we aren't building gas in-tree, we identify a
23204 # build->target linker and hope that it will have the same features
23205 # as the host->target linker we'll be using.
23206 gcc_cv_gld_major_version=
23207 gcc_cv_gld_minor_version=
23208 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
23209 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
23210 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
23212 if ${gcc_cv_ld+:} false; then :
23216 if test -x "$DEFAULT_LINKER"; then
23217 gcc_cv_ld="$DEFAULT_LINKER"
23218 elif test $install_gold_as_default = yes \
23219 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
23220 && test -f ../gold/Makefile \
23221 && test x$build = x$host; then
23222 gcc_cv_ld=../gold/ld-new$build_exeext
23223 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
23224 && test -f ../ld/Makefile \
23225 && test x$build = x$host; then
23226 gcc_cv_ld=../ld/ld-new$build_exeext
23227 elif test -x collect-ld$build_exeext; then
23228 # Build using linker in the current directory.
23229 gcc_cv_ld=./collect-ld$build_exeext
23230 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
23231 gcc_cv_ld="$LD_FOR_TARGET"
23233 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
23234 set dummy $LD_FOR_TARGET; ac_word=$2
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23236 $as_echo_n "checking for $ac_word... " >&6; }
23237 if ${ac_cv_path_gcc_cv_ld+:} false; then :
23238 $as_echo_n "(cached) " >&6
23242 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
23245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23246 for as_dir in $PATH
23249 test -z "$as_dir" && as_dir=.
23250 for ac_exec_ext in '' $ac_executable_extensions; do
23251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23252 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
23253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23263 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
23264 if test -n "$gcc_cv_ld"; then
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23266 $as_echo "$gcc_cv_ld" >&6; }
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23269 $as_echo "no" >&6; }
23276 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
23277 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
23278 # if the PLUGIN_LD is set ld-new, just have it as ld
23279 # as that is the installed named.
23280 if test x$PLUGIN_LD_SUFFIX = xld-new \
23281 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
23282 PLUGIN_LD_SUFFIX=ld
23285 # Check whether --with-plugin-ld was given.
23286 if test "${with_plugin_ld+set}" = set; then :
23287 withval=$with_plugin_ld; if test x"$withval" != x; then
23288 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
23289 PLUGIN_LD_SUFFIX="$withval"
23295 cat >>confdefs.h <<_ACEOF
23296 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
23300 # Check to see if we are using gold instead of ld
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
23302 $as_echo_n "checking whether we are using gold... " >&6; }
23304 if test x$gcc_cv_ld != x; then
23305 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23306 | grep "GNU gold" > /dev/null; then
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
23311 $as_echo "$ld_is_gold" >&6; }
23313 # Check to see if we are using mold instead of ld
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using mold" >&5
23315 $as_echo_n "checking whether we are using mold... " >&6; }
23317 if test x$gcc_cv_ld != x; then
23318 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
23319 | grep "mold" > /dev/null; then
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_mold" >&5
23324 $as_echo "$ld_is_mold" >&6; }
23327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
23328 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
23329 # Check to see if default ld is not gold, but gold is
23330 # available and has support for split stack. If gcc was configured
23331 # with gold then no checking is done.
23333 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
23335 # For platforms other than powerpc64*, enable as appropriate.
23337 gold_non_default=no
23338 ld_gold=`which ${gcc_cv_ld}.gold`
23339 # Make sure this gold has minimal split stack support
23340 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
23341 ld_vers=`$ld_gold --version | sed 1q`
23342 gold_vers=`echo $ld_vers | sed -n \
23343 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23345 # check that the gold version contains the complete split stack support
23346 # on powerpc64 big and little endian
23348 case "$gold_vers" in
23349 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
23351 *) gold_non_default=no
23357 if test $gold_non_default = yes; then
23359 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
23364 $as_echo "$gold_non_default" >&6; }
23366 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
23368 case "$ORIGINAL_LD_FOR_TARGET" in
23369 ./collect-ld | ./collect-ld$build_exeext) ;;
23370 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
23374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
23375 $as_echo_n "checking what linker to use... " >&6; }
23376 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
23377 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
23378 # Single tree build which includes ld. We want to prefer it
23379 # over whatever linker top-level may have detected, since
23380 # we'll use what we're building after installation anyway.
23381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
23382 $as_echo "newly built ld" >&6; }
23384 in_tree_ld_is_elf=no
23385 if (grep 'EMUL = .*elf' ../ld/Makefile \
23386 || grep 'EMUL = .*linux' ../ld/Makefile \
23387 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
23388 in_tree_ld_is_elf=yes
23389 elif test "$ld_is_gold" = yes; then
23390 in_tree_ld_is_elf=yes
23392 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
23394 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
23395 if test x$gcc_cv_gld_version != x; then
23399 case $gcc_cv_gld_version in
23401 *) as_fn_error $? "cannot find version of in-tree linker" "$LINENO" 5 ;;
23403 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
23404 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
23405 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
23406 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
23408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
23409 $as_echo "$gcc_cv_ld" >&6; }
23411 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
23412 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
23413 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
23419 # Figure out what nm we will be using.
23420 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
23421 if ${gcc_cv_nm+:} false; then :
23425 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23426 && test -f ../binutils/Makefile \
23427 && test x$build = x$host; then
23428 gcc_cv_nm=../binutils/nm-new$build_exeext
23429 elif test -x nm$build_exeext; then
23430 gcc_cv_nm=./nm$build_exeext
23431 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
23432 gcc_cv_nm="$NM_FOR_TARGET"
23434 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
23435 set dummy $NM_FOR_TARGET; ac_word=$2
23436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23437 $as_echo_n "checking for $ac_word... " >&6; }
23438 if ${ac_cv_path_gcc_cv_nm+:} false; then :
23439 $as_echo_n "(cached) " >&6
23443 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
23446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23447 for as_dir in $PATH
23450 test -z "$as_dir" && as_dir=.
23451 for ac_exec_ext in '' $ac_executable_extensions; do
23452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23453 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
23454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23464 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
23465 if test -n "$gcc_cv_nm"; then
23466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23467 $as_echo "$gcc_cv_nm" >&6; }
23469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23470 $as_echo "no" >&6; }
23477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
23478 $as_echo_n "checking what nm to use... " >&6; }
23479 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
23480 # Single tree build which includes binutils.
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
23482 $as_echo "newly built nm" >&6; }
23485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
23486 $as_echo "$gcc_cv_nm" >&6; }
23490 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
23492 case "$ORIGINAL_NM_FOR_TARGET" in
23493 ./nm | ./nm$build_exeext) ;;
23494 *) ac_config_files="$ac_config_files nm:exec-tool.in"
23499 # Figure out what objdump we will be using.
23500 if ${gcc_cv_objdump+:} false; then :
23504 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23505 && test -f ../binutils/Makefile \
23506 && test x$build = x$host; then
23507 # Single tree build which includes binutils.
23508 gcc_cv_objdump=../binutils/objdump$build_exeext
23509 elif test -x objdump$build_exeext; then
23510 gcc_cv_objdump=./objdump$build_exeext
23511 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
23512 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
23514 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
23515 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
23516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23517 $as_echo_n "checking for $ac_word... " >&6; }
23518 if ${ac_cv_path_gcc_cv_objdump+:} false; then :
23519 $as_echo_n "(cached) " >&6
23521 case $gcc_cv_objdump in
23523 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
23526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23527 for as_dir in $PATH
23530 test -z "$as_dir" && as_dir=.
23531 for ac_exec_ext in '' $ac_executable_extensions; do
23532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23533 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
23534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23544 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
23545 if test -n "$gcc_cv_objdump"; then
23546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23547 $as_echo "$gcc_cv_objdump" >&6; }
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23550 $as_echo "no" >&6; }
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
23558 $as_echo_n "checking what objdump to use... " >&6; }
23559 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
23560 # Single tree build which includes binutils.
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
23562 $as_echo "newly built objdump" >&6; }
23563 elif test x$gcc_cv_objdump = x; then
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23565 $as_echo "not found" >&6; }
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
23568 $as_echo "$gcc_cv_objdump" >&6; }
23571 # Figure out what readelf we will be using.
23572 if ${gcc_cv_readelf+:} false; then :
23576 if test -f $gcc_cv_binutils_srcdir/configure.ac \
23577 && test -f ../binutils/Makefile \
23578 && test x$build = x$host; then
23579 # Single tree build which includes binutils.
23580 gcc_cv_readelf=../binutils/readelf$build_exeext
23581 elif test -x readelf$build_exeext; then
23582 gcc_cv_readelf=./readelf$build_exeext
23583 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
23584 gcc_cv_readelf="$READELF_FOR_TARGET"
23586 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
23587 set dummy $READELF_FOR_TARGET; ac_word=$2
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23589 $as_echo_n "checking for $ac_word... " >&6; }
23590 if ${ac_cv_path_gcc_cv_readelf+:} false; then :
23591 $as_echo_n "(cached) " >&6
23593 case $gcc_cv_readelf in
23595 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
23598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23599 for as_dir in $PATH
23602 test -z "$as_dir" && as_dir=.
23603 for ac_exec_ext in '' $ac_executable_extensions; do
23604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23605 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
23606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23616 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
23617 if test -n "$gcc_cv_readelf"; then
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23619 $as_echo "$gcc_cv_readelf" >&6; }
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23622 $as_echo "no" >&6; }
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
23630 $as_echo_n "checking what readelf to use... " >&6; }
23631 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
23632 # Single tree build which includes binutils.
23633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
23634 $as_echo "newly built readelf" >&6; }
23635 elif test x$gcc_cv_readelf = x; then
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23637 $as_echo "not found" >&6; }
23639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
23640 $as_echo "$gcc_cv_readelf" >&6; }
23643 # Figure out what otool we will be using.
23644 if ${gcc_cv_otool+:} false; then :
23648 if test -x otool$build_exeext; then
23649 gcc_cv_otool=./otool$build_exeext
23650 elif ( set dummy $OTOOL_FOR_TARGET; test -x $2 ); then
23651 gcc_cv_otool="$OTOOL_FOR_TARGET"
23653 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
23654 set dummy $OTOOL_FOR_TARGET; ac_word=$2
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23656 $as_echo_n "checking for $ac_word... " >&6; }
23657 if ${ac_cv_path_gcc_cv_otool+:} false; then :
23658 $as_echo_n "(cached) " >&6
23660 case $gcc_cv_otool in
23662 ac_cv_path_gcc_cv_otool="$gcc_cv_otool" # Let the user override the test with a path.
23665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23666 for as_dir in $PATH
23669 test -z "$as_dir" && as_dir=.
23670 for ac_exec_ext in '' $ac_executable_extensions; do
23671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23672 ac_cv_path_gcc_cv_otool="$as_dir/$ac_word$ac_exec_ext"
23673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23683 gcc_cv_otool=$ac_cv_path_gcc_cv_otool
23684 if test -n "$gcc_cv_otool"; then
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23686 $as_echo "$gcc_cv_otool" >&6; }
23688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23689 $as_echo "no" >&6; }
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
23697 $as_echo_n "checking what otool to use... " >&6; }
23698 if test x$gcc_cv_otool = x; then
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
23700 $as_echo "not found" >&6; }
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23703 $as_echo "$gcc_cv_otool" >&6; }
23706 # Figure out the dsymutil we will use.
23707 if ${gcc_cv_dsymutil+:} false; then :
23711 if test -x "$DEFAULT_DSYMUTIL"; then
23712 gcc_cv_dsymutil="$DEFAULT_DSYMUTIL"
23713 elif test -x dsymutil$build_exeext; then
23714 gcc_cv_dsymutil=./dsymutil$build_exeext
23715 elif ( set dummy $DSYMUTIL_FOR_TARGET; test -x $2 ); then
23716 gcc_cv_dsymutil=$DSYMUTIL_FOR_TARGET
23717 elif ( set dummy $DSYMUTIL; test -x $2 ); then
23718 gcc_cv_dsymutil=$DSYMUTIL
23720 # Extract the first word of "$DSYMUTIL_FOR_TARGET", so it can be a program name with args.
23721 set dummy $DSYMUTIL_FOR_TARGET; ac_word=$2
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23723 $as_echo_n "checking for $ac_word... " >&6; }
23724 if ${ac_cv_path_gcc_cv_dsymutil+:} false; then :
23725 $as_echo_n "(cached) " >&6
23727 case $gcc_cv_dsymutil in
23729 ac_cv_path_gcc_cv_dsymutil="$gcc_cv_dsymutil" # Let the user override the test with a path.
23732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23733 for as_dir in $PATH
23736 test -z "$as_dir" && as_dir=.
23737 for ac_exec_ext in '' $ac_executable_extensions; do
23738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23739 ac_cv_path_gcc_cv_dsymutil="$as_dir/$ac_word$ac_exec_ext"
23740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23750 gcc_cv_dsymutil=$ac_cv_path_gcc_cv_dsymutil
23751 if test -n "$gcc_cv_dsymutil"; then
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_dsymutil" >&5
23753 $as_echo "$gcc_cv_dsymutil" >&6; }
23755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23756 $as_echo "no" >&6; }
23763 ORIGINAL_DSYMUTIL_FOR_TARGET=$gcc_cv_dsymutil
23765 case "$ORIGINAL_DSYMUTIL_FOR_TARGET" in
23766 ./dsymutil | ./dsymutil$build_exeext) ;;
23767 *) ac_config_files="$ac_config_files dsymutil:exec-tool.in"
23771 # Figure out what assembler alignment features are present.
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23773 $as_echo_n "checking assembler flags... " >&6; }
23774 if ${gcc_cv_as_flags+:} false; then :
23775 $as_echo_n "(cached) " >&6
23778 i[34567]86-*-linux*)
23779 gcc_cv_as_flags=--32
23781 x86_64-*-linux-gnux32)
23782 gcc_cv_as_flags=--x32
23785 gcc_cv_as_flags=--64
23787 powerpc*-*-darwin*)
23788 gcc_cv_as_flags="-arch ppc"
23791 gcc_cv_as_flags=" "
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23796 $as_echo "$gcc_cv_as_flags" >&6; }
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23799 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23800 if ${gcc_cv_as_balign_and_p2align+:} false; then :
23801 $as_echo_n "(cached) " >&6
23803 gcc_cv_as_balign_and_p2align=no
23804 if test x$gcc_cv_as != x; then
23805 $as_echo '.balign 4
23806 .p2align 2' > conftest.s
23807 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23809 (eval $ac_try) 2>&5
23811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23812 test $ac_status = 0; }; }
23814 gcc_cv_as_balign_and_p2align=yes
23816 echo "configure: failed program was" >&5
23819 rm -f conftest.o conftest.s
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23823 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23824 if test $gcc_cv_as_balign_and_p2align = yes; then
23826 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23832 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23833 if ${gcc_cv_as_max_skip_p2align+:} false; then :
23834 $as_echo_n "(cached) " >&6
23836 gcc_cv_as_max_skip_p2align=no
23837 if test x$gcc_cv_as != x; then
23838 $as_echo '.p2align 4,,7' > conftest.s
23839 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23841 (eval $ac_try) 2>&5
23843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23844 test $ac_status = 0; }; }
23846 gcc_cv_as_max_skip_p2align=yes
23848 echo "configure: failed program was" >&5
23851 rm -f conftest.o conftest.s
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23855 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23856 if test $gcc_cv_as_max_skip_p2align = yes; then
23858 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23864 $as_echo_n "checking assembler for .literal16... " >&6; }
23865 if ${gcc_cv_as_literal16+:} false; then :
23866 $as_echo_n "(cached) " >&6
23868 gcc_cv_as_literal16=no
23869 if test x$gcc_cv_as != x; then
23870 $as_echo '.literal16' > conftest.s
23871 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23873 (eval $ac_try) 2>&5
23875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23876 test $ac_status = 0; }; }
23878 gcc_cv_as_literal16=yes
23880 echo "configure: failed program was" >&5
23883 rm -f conftest.o conftest.s
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23887 $as_echo "$gcc_cv_as_literal16" >&6; }
23888 if test $gcc_cv_as_literal16 = yes; then
23890 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23896 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23897 if ${gcc_cv_as_subsection_m1+:} false; then :
23898 $as_echo_n "(cached) " >&6
23900 gcc_cv_as_subsection_m1=no
23901 if test x$gcc_cv_as != x; then
23902 $as_echo 'conftest_label1: .word 0
23904 conftest_label2: .word 0
23905 .previous' > conftest.s
23906 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23908 (eval $ac_try) 2>&5
23910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23911 test $ac_status = 0; }; }
23913 if test x$gcc_cv_nm != x; then
23914 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
23915 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
23916 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
23918 else gcc_cv_as_subsection_m1=yes
23920 rm -f conftest.nm1 conftest.nm2
23923 echo "configure: failed program was" >&5
23926 rm -f conftest.o conftest.s
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23930 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23931 if test $gcc_cv_as_subsection_m1 = yes; then
23933 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23939 $as_echo_n "checking assembler for .weak... " >&6; }
23940 if ${gcc_cv_as_weak+:} false; then :
23941 $as_echo_n "(cached) " >&6
23944 if test x$gcc_cv_as != x; then
23945 $as_echo ' .weak foobar' > conftest.s
23946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23948 (eval $ac_try) 2>&5
23950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23951 test $ac_status = 0; }; }
23955 echo "configure: failed program was" >&5
23958 rm -f conftest.o conftest.s
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23962 $as_echo "$gcc_cv_as_weak" >&6; }
23963 if test $gcc_cv_as_weak = yes; then
23965 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23971 $as_echo_n "checking assembler for .weakref... " >&6; }
23972 if ${gcc_cv_as_weakref+:} false; then :
23973 $as_echo_n "(cached) " >&6
23975 gcc_cv_as_weakref=no
23976 if test x$gcc_cv_as != x; then
23977 $as_echo ' .weakref foobar, barfnot' > conftest.s
23978 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23980 (eval $ac_try) 2>&5
23982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23983 test $ac_status = 0; }; }
23985 gcc_cv_as_weakref=yes
23987 echo "configure: failed program was" >&5
23990 rm -f conftest.o conftest.s
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23994 $as_echo "$gcc_cv_as_weakref" >&6; }
23995 if test $gcc_cv_as_weakref = yes; then
23997 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
24003 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
24004 if ${gcc_cv_as_nsubspa_comdat+:} false; then :
24005 $as_echo_n "(cached) " >&6
24007 gcc_cv_as_nsubspa_comdat=no
24008 if test x$gcc_cv_as != x; then
24009 $as_echo ' .SPACE $TEXT$
24010 .NSUBSPA $CODE$,COMDAT' > conftest.s
24011 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24013 (eval $ac_try) 2>&5
24015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24016 test $ac_status = 0; }; }
24018 gcc_cv_as_nsubspa_comdat=yes
24020 echo "configure: failed program was" >&5
24023 rm -f conftest.o conftest.s
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
24027 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
24028 if test $gcc_cv_as_nsubspa_comdat = yes; then
24030 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
24035 # .hidden needs to be supported in both the assembler and the linker,
24036 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
24037 # This is irritatingly difficult to feature test for; we have to check the
24038 # date string after the version number. If we've got an in-tree
24039 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
24041 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
24042 case "${target}" in
24044 conftest_s=' .globl foobar,hidden'
24047 conftest_s=' .hidden foobar
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
24052 $as_echo_n "checking assembler for .hidden... " >&6; }
24053 if ${gcc_cv_as_hidden+:} false; then :
24054 $as_echo_n "(cached) " >&6
24056 gcc_cv_as_hidden=no
24057 if test x$gcc_cv_as != x; then
24058 $as_echo "$conftest_s" > conftest.s
24059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24061 (eval $ac_try) 2>&5
24063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24064 test $ac_status = 0; }; }
24066 gcc_cv_as_hidden=yes
24068 echo "configure: failed program was" >&5
24071 rm -f conftest.o conftest.s
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
24075 $as_echo "$gcc_cv_as_hidden" >&6; }
24078 case "${target}" in
24080 # Darwin as has some visibility support, though with a different syntax.
24081 gcc_cv_as_hidden=yes
24085 # gnu_indirect_function type is an extension proposed at
24086 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
24087 # selection of function implementation
24088 # Check whether --enable-gnu-indirect-function was given.
24089 if test "${enable_gnu_indirect_function+set}" = set; then :
24090 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
24092 *) as_fn_error $? "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
24093 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24096 enable_gnu_indirect_function="$default_gnu_indirect_function"
24100 case "${target}" in
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker ifunc IRELATIVE support" >&5
24103 $as_echo_n "checking linker ifunc IRELATIVE support... " >&6; }
24104 cat > conftest.s <<EOF
24106 .type foo_resolver, @function
24109 .size foo_resolver, .-foo_resolver
24112 .type foo, %gnu_indirect_function
24113 .set foo, foo_resolver
24116 .type bar, @function
24122 if test x$gcc_cv_as != x \
24123 && test x$gcc_cv_ld != x \
24124 && test x$gcc_cv_readelf != x \
24125 && $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24126 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24127 && $gcc_cv_readelf --relocs --wide conftest \
24128 | grep R_RISCV_IRELATIVE > /dev/null 2>&1; then
24129 enable_gnu_indirect_function=yes
24131 rm -f conftest conftest.o conftest.s
24132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnu_indirect_function" >&5
24133 $as_echo "$enable_gnu_indirect_function" >&6; }
24137 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
24139 cat >>confdefs.h <<_ACEOF
24140 #define HAVE_GNU_INDIRECT_FUNCTION $gif
24145 if test $in_tree_ld != yes ; then
24146 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
24147 if echo "$ld_ver" | grep GNU > /dev/null; then
24148 if test x"$ld_is_gold" = xyes; then
24149 # GNU gold --version looks like this:
24151 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
24153 # We extract the binutils version which is more familiar and specific
24154 # than the gold version.
24155 ld_vers=`echo $ld_ver | sed -n \
24156 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24158 # GNU ld --version looks like this:
24160 # GNU ld (GNU Binutils) 2.21.51.20110225
24161 ld_vers=`echo $ld_ver | sed -n \
24162 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24164 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'`
24165 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24166 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24167 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
24169 case "${target}" in
24171 # Solaris 2 ld -V output looks like this for a regular version:
24173 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
24175 # but test versions add stuff at the end:
24177 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
24179 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
24180 # numbers can be used in ld.so.1 feature checks even if a different
24181 # linker is configured.
24182 ld_ver=`$gcc_cv_ld -V 2>&1`
24183 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
24184 ld_vers=`echo $ld_ver | sed -n \
24185 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
24186 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24187 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
24195 $as_echo_n "checking linker for .hidden support... " >&6; }
24196 if ${gcc_cv_ld_hidden+:} false; then :
24197 $as_echo_n "(cached) " >&6
24199 if test $in_tree_ld = yes ; then
24200 gcc_cv_ld_hidden=no
24201 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 \
24202 && test $in_tree_ld_is_elf = yes; then
24203 gcc_cv_ld_hidden=yes
24206 gcc_cv_ld_hidden=yes
24207 if test x"$ld_is_gold" = xyes; then
24209 elif test x"$ld_is_mold" = xyes; then
24211 elif echo "$ld_ver" | grep GNU > /dev/null; then
24212 if test 0"$ld_date" -lt 20020404; then
24213 if test -n "$ld_date"; then
24214 # If there was date string, but was earlier than 2002-04-04, fail
24215 gcc_cv_ld_hidden=no
24216 elif test -z "$ld_vers"; then
24217 # If there was no date string nor ld version number, something is wrong
24218 gcc_cv_ld_hidden=no
24220 test -z "$ld_vers_patch" && ld_vers_patch=0
24221 if test "$ld_vers_major" -lt 2; then
24222 gcc_cv_ld_hidden=no
24223 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
24224 gcc_cv_ld_hidden="no"
24225 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
24226 gcc_cv_ld_hidden=no
24231 case "${target}" in
24233 gcc_cv_ld_hidden=yes
24236 # Darwin ld has some visibility support.
24237 gcc_cv_ld_hidden=yes
24239 hppa64*-*-hpux* | ia64*-*-hpux*)
24240 gcc_cv_ld_hidden=yes
24243 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
24244 # .symbolic was only added in Solaris 9 12/02.
24245 gcc_cv_ld_hidden=yes
24248 gcc_cv_ld_hidden=no
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
24255 $as_echo "$gcc_cv_ld_hidden" >&6; }
24256 libgcc_visibility=no
24259 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
24260 libgcc_visibility=yes
24262 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
24267 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
24268 gcc_cv_ld_ro_rw_mix=unknown
24269 if test $in_tree_ld = yes ; then
24270 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 \
24271 && test $in_tree_ld_is_elf = yes; then
24272 gcc_cv_ld_ro_rw_mix=read-write
24274 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24275 echo '.section myfoosect, "a"' > conftest1.s
24276 echo '.section myfoosect, "aw"' > conftest2.s
24277 echo '.byte 1' >> conftest2.s
24278 echo '.section myfoosect, "a"' > conftest3.s
24279 echo '.byte 0' >> conftest3.s
24280 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
24281 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
24282 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
24283 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
24284 conftest2.o conftest3.o > /dev/null 2>&1; then
24285 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
24286 | sed -e '/myfoosect/!d' -e N`
24287 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
24288 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
24289 gcc_cv_ld_ro_rw_mix=read-only
24291 gcc_cv_ld_ro_rw_mix=read-write
24295 rm -f conftest.* conftest[123].*
24297 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
24299 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
24303 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
24305 # Check whether --enable-initfini-array was given.
24306 if test "${enable_initfini_array+set}" = set; then :
24307 enableval=$enable_initfini_array;
24310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
24311 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
24312 if ${gcc_cv_initfini_array+:} false; then :
24313 $as_echo_n "(cached) " >&6
24315 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
24316 case "${target}" in
24318 if test "$cross_compiling" = yes; then :
24319 gcc_cv_initfini_array=no
24321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24322 /* end confdefs.h. */
24325 #error Not an ELF OS
24327 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
24328 if it can be used. */
24330 int main (void) { return x; }
24331 int foo (void) { x = 0; }
24332 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
24335 if ac_fn_cxx_try_run "$LINENO"; then :
24336 gcc_cv_initfini_array=yes
24338 gcc_cv_initfini_array=no
24340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24341 conftest.$ac_objext conftest.beam conftest.$ac_ext
24345 gcc_cv_initfini_array=no
24346 if test $in_tree_ld = yes ; then
24347 if test "$gcc_cv_gld_major_version" -eq 2 \
24348 -a "$gcc_cv_gld_minor_version" -ge 22 \
24349 -o "$gcc_cv_gld_major_version" -gt 2 \
24350 && test $in_tree_ld_is_elf = yes; then
24351 gcc_cv_initfini_array=yes
24353 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24354 case $target:$gas in
24357 sh_type='%progbits'
24359 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
24361 sh_type='@progbits'
24363 sparc*-*-solaris2*:no)
24365 sh_type='#progbits'
24369 case "$target:$gnu_ld" in
24371 cat > conftest.s <<EOF
24372 .section .dtors,$sh_flags,$sh_type
24374 .byte 'A', 'A', 'A', 'A'
24375 .section .ctors,$sh_flags,$sh_type
24377 .byte 'B', 'B', 'B', 'B'
24378 .section .fini_array.65530,$sh_flags,$sh_type
24380 .byte 'C', 'C', 'C', 'C'
24381 .section .init_array.65530,$sh_flags,$sh_type
24383 .byte 'D', 'D', 'D', 'D'
24384 .section .dtors.64528,$sh_flags,$sh_type
24386 .byte 'E', 'E', 'E', 'E'
24387 .section .ctors.64528,$sh_flags,$sh_type
24389 .byte 'F', 'F', 'F', 'F'
24390 .section .fini_array.01005,$sh_flags,$sh_type
24392 .byte 'G', 'G', 'G', 'G'
24393 .section .init_array.01005,$sh_flags,$sh_type
24395 .byte 'H', 'H', 'H', 'H'
24400 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24401 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24402 && $gcc_cv_objdump -s -j .init_array conftest \
24403 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
24404 && $gcc_cv_objdump -s -j .fini_array conftest \
24405 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
24406 gcc_cv_initfini_array=yes
24410 # When Solaris ld added constructor priority support, it was
24411 # decided to only handle .init_array.N/.fini_array.N since
24412 # there was no need for backwards compatibility with
24413 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
24414 # sections with correct execution order resp. to
24415 # .init_array/.fini_array, while gld merges them into
24416 # .init_array/.fini_array.
24417 cat > conftest.s <<EOF
24418 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
24420 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
24421 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
24423 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
24424 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
24426 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
24427 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
24429 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
24434 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
24435 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
24436 && $gcc_cv_objdump -s -j .init_array conftest \
24437 | grep HHHHHHHHDDDDDDDD > /dev/null 2>&1 \
24438 && $gcc_cv_objdump -s -j .fini_array conftest \
24439 | grep GGGGGGGGCCCCCCCC > /dev/null 2>&1; then
24440 gcc_cv_initfini_array=yes
24444 rm -f conftest conftest.*
24446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24447 /* end confdefs.h. */
24450 # error Not an ELF OS
24452 #include <stdlib.h>
24453 #if defined __GLIBC_PREREQ
24454 # if __GLIBC_PREREQ (2, 4)
24456 # error GLIBC 2.4 required
24459 # if defined __sun__ && defined __svr4__
24460 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
24462 # error The C library not known to support .init_array/.fini_array
24467 if ac_fn_cxx_try_cpp "$LINENO"; then :
24470 gcc_cv_initfini_array=no
24472 rm -f conftest.err conftest.i conftest.$ac_ext;;
24475 case "${target}" in
24476 aarch64*-linux-gnu*)
24477 # AArch64 postdates glibc support for .init_array/.fini_array,
24478 # so we don't need the preprocessor test above.
24479 gcc_cv_initfini_array=yes
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
24484 $as_echo_n "checking cross compile... guessing... " >&6; }
24485 gcc_cv_initfini_array=no
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
24491 $as_echo "$gcc_cv_initfini_array" >&6; }
24492 enable_initfini_array=$gcc_cv_initfini_array
24497 cat >>confdefs.h <<_ACEOF
24498 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
24503 # Check if we have .[us]leb128, and support symbol arithmetic with it.
24504 # Older versions of GAS and some non-GNU assemblers, have a bugs handling
24505 # these directives, even when they appear to accept them.
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
24507 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
24508 if ${gcc_cv_as_leb128+:} false; then :
24509 $as_echo_n "(cached) " >&6
24511 gcc_cv_as_leb128=no
24512 if test x$gcc_cv_as != x; then
24519 .uleb128 0x8000000000000000
24521 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24523 (eval $ac_try) 2>&5
24525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24526 test $ac_status = 0; }; }
24529 if test "x$gcc_cv_objdump" != x; then
24530 if $gcc_cv_objdump -s conftest.o 2>/dev/null \
24531 | grep '04800a8e 78808080 80808080 808001' >/dev/null; then
24532 gcc_cv_as_leb128=yes
24534 elif test "x$gcc_cv_otool" != x; then
24535 if $gcc_cv_otool -d conftest.o 2>/dev/null \
24536 | grep '04 80 0a 8e 78 80 80 80 80 80 80 80 80 80 01' >/dev/null; then
24537 gcc_cv_as_leb128=yes
24540 # play safe, assume the assembler is broken.
24545 echo "configure: failed program was" >&5
24548 rm -f conftest.o conftest.s
24551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
24552 $as_echo "$gcc_cv_as_leb128" >&6; }
24553 if test $gcc_cv_as_leb128 = yes; then
24555 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
24558 if test $gcc_cv_as_leb128 != yes; then
24560 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
24564 # Determine if an .eh_frame section is read-only.
24565 gcc_fn_eh_frame_ro () {
24566 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
24567 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
24568 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
24571 # Check if we have assembler support for unwind directives.
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
24573 $as_echo_n "checking assembler for cfi directives... " >&6; }
24574 if ${gcc_cv_as_cfi_directive+:} false; then :
24575 $as_echo_n "(cached) " >&6
24577 gcc_cv_as_cfi_directive=no
24578 if test x$gcc_cv_as != x; then
24584 .cfi_escape 1, 2, 3, 4, 5
24585 .cfi_endproc' > conftest.s
24586 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24588 (eval $ac_try) 2>&5
24590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24591 test $ac_status = 0; }; }
24595 # If the linker used on Solaris (like Sun ld) isn't capable of merging
24596 # read-only and read-write sections, we need to make sure that the
24597 # assembler used emits read-write .eh_frame sections.
24598 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
24599 gcc_cv_as_cfi_directive=yes
24600 elif test "x$gcc_cv_objdump" = x; then
24601 # No objdump, err on the side of caution.
24602 gcc_cv_as_cfi_directive=no
24604 if test x$gas = xyes; then
24612 sparc*-*-solaris2.*)
24613 # On Solaris/SPARC, .eh_frame sections should always be read-write.
24614 if gcc_fn_eh_frame_ro $as_32_opt \
24615 || gcc_fn_eh_frame_ro $as_64_opt; then
24616 gcc_cv_as_cfi_directive=no
24618 gcc_cv_as_cfi_directive=yes
24621 i?86-*-solaris2.* | x86_64-*-solaris2.*)
24622 # On Solaris/x86, make sure that GCC and assembler agree on using
24623 # read-only .eh_frame sections for 64-bit.
24624 if gcc_fn_eh_frame_ro $as_32_opt; then
24625 gcc_cv_as_cfi_directive=no
24626 elif gcc_fn_eh_frame_ro $as_64_opt; then
24627 gcc_cv_as_cfi_directive=yes
24629 gcc_cv_as_cfi_directive=no
24636 gcc_cv_as_cfi_directive=yes
24640 echo "configure: failed program was" >&5
24643 rm -f conftest.o conftest.s
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
24647 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
24650 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
24651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
24652 $as_echo_n "checking assembler for working cfi advance... " >&6; }
24653 if ${gcc_cv_as_cfi_advance_working+:} false; then :
24654 $as_echo_n "(cached) " >&6
24656 gcc_cv_as_cfi_advance_working=no
24657 if test x$gcc_cv_as != x; then
24660 .cfi_adjust_cfa_offset 64
24662 .cfi_adjust_cfa_offset 128
24663 .cfi_endproc' > conftest.s
24664 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24666 (eval $ac_try) 2>&5
24668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24669 test $ac_status = 0; }; }
24672 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
24673 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
24674 gcc_cv_as_cfi_advance_working=yes
24678 echo "configure: failed program was" >&5
24681 rm -f conftest.o conftest.s
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
24685 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
24689 # no objdump, err on the side of caution
24690 gcc_cv_as_cfi_advance_working=no
24694 cat >>confdefs.h <<_ACEOF
24695 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
24696 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
24701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
24702 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
24703 if ${gcc_cv_as_cfi_personality_directive+:} false; then :
24704 $as_echo_n "(cached) " >&6
24706 gcc_cv_as_cfi_personality_directive=no
24707 if test x$gcc_cv_as != x; then
24710 .cfi_personality 0, symbol
24711 .cfi_endproc' > conftest.s
24712 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24714 (eval $ac_try) 2>&5
24716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24717 test $ac_status = 0; }; }
24719 gcc_cv_as_cfi_personality_directive=yes
24721 echo "configure: failed program was" >&5
24724 rm -f conftest.o conftest.s
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
24728 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
24732 cat >>confdefs.h <<_ACEOF
24733 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
24737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
24738 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
24739 if ${gcc_cv_as_cfi_sections_directive+:} false; then :
24740 $as_echo_n "(cached) " >&6
24742 gcc_cv_as_cfi_sections_directive=no
24743 if test x$gcc_cv_as != x; then
24745 .cfi_sections .debug_frame, .eh_frame
24747 .cfi_endproc' > conftest.s
24748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24750 (eval $ac_try) 2>&5
24752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24753 test $ac_status = 0; }; }
24756 win32 | pe | cygwin* | mingw32*)
24757 # Need to check that we generated the correct relocation for the
24758 # .debug_frame section. This was fixed for binutils 2.21.
24759 gcc_cv_as_cfi_sections_directive=no
24760 if test "x$gcc_cv_objdump" != x; then
24761 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
24762 grep secrel > /dev/null; then
24763 gcc_cv_as_cfi_sections_directive=yes
24768 gcc_cv_as_cfi_sections_directive=yes
24772 echo "configure: failed program was" >&5
24775 rm -f conftest.o conftest.s
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24779 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24784 cat >>confdefs.h <<_ACEOF
24785 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24789 # GAS versions up to and including 2.11.0 may mis-optimize
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24792 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24793 if ${gcc_cv_as_eh_frame+:} false; then :
24794 $as_echo_n "(cached) " >&6
24796 gcc_cv_as_eh_frame=no
24797 if test x$gcc_cv_as != x; then
24804 .section .eh_frame,"aw",@progbits
24806 .4byte .LECIE1-.LSCIE1
24820 .4byte .LEFDE1-.LASFDE1
24822 .4byte .LASFDE1-__FRAME_BEGIN__
24829 .LEFDE1:' > conftest.s
24830 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24832 (eval $ac_try) 2>&5
24834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24835 test $ac_status = 0; }; }
24837 cat > conftest.lit <<EOF
24838 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24839 0010 01000000 12000000 18000000 00000000 ................
24840 0020 08000000 04080000 0044 .........D
24842 cat > conftest.big <<EOF
24843 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24844 0010 00000001 00000012 00000018 00000000 ................
24845 0020 00000008 04000000 0844 .........D
24847 # If the assembler didn't choke, and we can objdump,
24848 # and we got the correct data, then succeed.
24849 # The text in the here-document typically retains its unix-style line
24850 # endings, while the output of objdump will use host line endings.
24851 # Therefore, use diff -b for the comparisons.
24852 if test x$gcc_cv_objdump != x \
24853 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
24854 | tail -3 > conftest.got \
24855 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
24856 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
24858 gcc_cv_as_eh_frame=yes
24859 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24861 (eval $ac_try) 2>&5
24863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24864 test $ac_status = 0; }; }; then
24865 gcc_cv_as_eh_frame=buggy
24867 # Uh oh, what do we do now?
24868 gcc_cv_as_eh_frame=no
24871 echo "configure: failed program was" >&5
24874 rm -f conftest.o conftest.s
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24878 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24882 if test $gcc_cv_as_eh_frame = buggy; then
24884 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24888 # Test if the assembler supports the section flag 'e' or #exclude for
24889 # specifying an excluded section.
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24891 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24892 if ${gcc_cv_as_section_exclude_e+:} false; then :
24893 $as_echo_n "(cached) " >&6
24895 gcc_cv_as_section_exclude_e=no
24896 if test x$gcc_cv_as != x; then
24897 $as_echo '.section foo1,"e"
24898 .byte 0,0,0,0' > conftest.s
24899 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24901 (eval $ac_try) 2>&5
24903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24904 test $ac_status = 0; }; }
24906 gcc_cv_as_section_exclude_e=yes
24908 echo "configure: failed program was" >&5
24911 rm -f conftest.o conftest.s
24914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24915 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24918 if test $gcc_cv_as_section_exclude_e = no; then
24919 case "${target}" in
24920 # Solaris as uses #exclude instead.
24922 case "${target}" in
24923 sparc*-*-solaris2*)
24924 conftest_s='.section "foo1", #exclude'
24926 i?86-*-solaris2* | x86_64-*-solaris2*)
24927 conftest_s='.section foo1, #exclude'
24932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24933 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24934 if ${gcc_cv_as_section_exclude_hash+:} false; then :
24935 $as_echo_n "(cached) " >&6
24937 gcc_cv_as_section_exclude_hash=no
24938 if test x$gcc_cv_as != x; then
24939 $as_echo "$conftest_s
24940 .byte 0,0,0,0" > conftest.s
24941 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24943 (eval $ac_try) 2>&5
24945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24946 test $ac_status = 0; }; }
24948 gcc_cv_as_section_exclude_hash=yes
24950 echo "configure: failed program was" >&5
24953 rm -f conftest.o conftest.s
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24957 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24962 cat >>confdefs.h <<_ACEOF
24963 #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`
24967 # Test if the assembler supports the section flag 'R' for specifying
24968 # section with SHF_GNU_RETAIN.
24969 case "${target}" in
24970 # Solaris may use GNU assembler with Solairs ld. Even if GNU
24971 # assembler supports the section flag 'R', it doesn't mean that
24972 # Solairs ld supports it.
24974 gcc_cv_as_shf_gnu_retain=no
24977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'R' flag" >&5
24978 $as_echo_n "checking assembler for section 'R' flag... " >&6; }
24979 if ${gcc_cv_as_shf_gnu_retain+:} false; then :
24980 $as_echo_n "(cached) " >&6
24982 gcc_cv_as_shf_gnu_retain=no
24983 if test x$gcc_cv_as != x; then
24984 $as_echo '.section .foo,"awR",%progbits
24985 .byte 0' > conftest.s
24986 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24988 (eval $ac_try) 2>&5
24990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24991 test $ac_status = 0; }; }
24993 gcc_cv_as_shf_gnu_retain=yes
24995 echo "configure: failed program was" >&5
24998 rm -f conftest.o conftest.s
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_gnu_retain" >&5
25002 $as_echo "$gcc_cv_as_shf_gnu_retain" >&6; }
25008 cat >>confdefs.h <<_ACEOF
25009 #define HAVE_GAS_SHF_GNU_RETAIN `if test $gcc_cv_as_shf_gnu_retain = yes; then echo 1; else echo 0; fi`
25013 # Test if the assembler supports the section flag 'o' for specifying
25014 # section with link-order.
25015 case "${target}" in
25016 # Solaris may use GNU assembler with Solairs ld. Even if GNU
25017 # assembler supports the section flag 'o', it doesn't mean that
25018 # Solairs ld supports it.
25020 gcc_cv_as_section_link_order=no
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section 'o' flag" >&5
25024 $as_echo_n "checking assembler for section 'o' flag... " >&6; }
25025 if ${gcc_cv_as_section_link_order+:} false; then :
25026 $as_echo_n "(cached) " >&6
25028 gcc_cv_as_section_link_order=no
25029 if test x$gcc_cv_as != x; then
25030 $as_echo '.section .foo,"a"
25032 .section __patchable_function_entries,"awo",%progbits,.foo
25033 .byte 0' > conftest.s
25034 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25036 (eval $ac_try) 2>&5
25038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25039 test $ac_status = 0; }; }
25041 gcc_cv_as_section_link_order=yes
25043 echo "configure: failed program was" >&5
25046 rm -f conftest.o conftest.s
25049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_link_order" >&5
25050 $as_echo "$gcc_cv_as_section_link_order" >&6; }
25056 cat >>confdefs.h <<_ACEOF
25057 #define HAVE_GAS_SECTION_LINK_ORDER `if test $gcc_cv_as_section_link_order = yes; then echo 1; else echo 0; fi`
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25062 $as_echo_n "checking assembler for section merging support... " >&6; }
25063 if ${gcc_cv_as_shf_merge+:} false; then :
25064 $as_echo_n "(cached) " >&6
25066 gcc_cv_as_shf_merge=no
25067 if test x$gcc_cv_as != x; then
25068 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
25069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25071 (eval $ac_try) 2>&5
25073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25074 test $ac_status = 0; }; }
25076 gcc_cv_as_shf_merge=yes
25078 echo "configure: failed program was" >&5
25081 rm -f conftest.o conftest.s
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25085 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25088 if test $gcc_cv_as_shf_merge = no; then
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
25090 $as_echo_n "checking assembler for section merging support... " >&6; }
25091 if ${gcc_cv_as_shf_merge+:} false; then :
25092 $as_echo_n "(cached) " >&6
25094 gcc_cv_as_shf_merge=no
25095 if test x$gcc_cv_as != x; then
25096 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
25097 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25099 (eval $ac_try) 2>&5
25101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25102 test $ac_status = 0; }; }
25104 gcc_cv_as_shf_merge=yes
25106 echo "configure: failed program was" >&5
25109 rm -f conftest.o conftest.s
25112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
25113 $as_echo "$gcc_cv_as_shf_merge" >&6; }
25118 cat >>confdefs.h <<_ACEOF
25119 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
25123 gcc_cv_ld_aligned_shf_merge=yes
25125 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
25127 sparc*-*-solaris2.11*)
25128 if test x"$gnu_ld" = xno \
25129 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
25130 gcc_cv_ld_aligned_shf_merge=no
25135 cat >>confdefs.h <<_ACEOF
25136 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
25141 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
25142 if ${gcc_cv_as_comdat_group+:} false; then :
25143 $as_echo_n "(cached) " >&6
25145 gcc_cv_as_comdat_group=no
25146 if test x$gcc_cv_as != x; then
25147 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
25148 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25150 (eval $ac_try) 2>&5
25152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25153 test $ac_status = 0; }; }
25155 gcc_cv_as_comdat_group=yes
25157 echo "configure: failed program was" >&5
25160 rm -f conftest.o conftest.s
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
25164 $as_echo "$gcc_cv_as_comdat_group" >&6; }
25167 if test $gcc_cv_as_comdat_group = yes; then
25168 gcc_cv_as_comdat_group_percent=no
25169 gcc_cv_as_comdat_group_group=no
25171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
25172 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
25173 if ${gcc_cv_as_comdat_group_percent+:} false; then :
25174 $as_echo_n "(cached) " >&6
25176 gcc_cv_as_comdat_group_percent=no
25177 if test x$gcc_cv_as != x; then
25178 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
25179 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25181 (eval $ac_try) 2>&5
25183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25184 test $ac_status = 0; }; }
25186 gcc_cv_as_comdat_group_percent=yes
25188 echo "configure: failed program was" >&5
25191 rm -f conftest.o conftest.s
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
25195 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
25198 if test $gcc_cv_as_comdat_group_percent = yes; then
25199 gcc_cv_as_comdat_group_group=no
25201 case "${target}" in
25202 # Sun as uses a completely different syntax.
25204 case "${target}" in
25205 sparc*-*-solaris2*)
25207 .group foo,".text%foo",#comdat
25208 .section ".text%foo", #alloc,#execinstr,#progbits
25213 i?86-*-solaris2* | x86_64-*-solaris2*)
25215 .group foo,.text%foo,#comdat
25216 .section .text%foo, "ax", @progbits
25222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
25223 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
25224 if ${gcc_cv_as_comdat_group_group+:} false; then :
25225 $as_echo_n "(cached) " >&6
25227 gcc_cv_as_comdat_group_group=no
25228 if test x$gcc_cv_as != x; then
25229 $as_echo "$conftest_s" > conftest.s
25230 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25232 (eval $ac_try) 2>&5
25234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25235 test $ac_status = 0; }; }
25237 gcc_cv_as_comdat_group_group=yes
25239 echo "configure: failed program was" >&5
25242 rm -f conftest.o conftest.s
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
25246 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
25251 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
25252 gcc_cv_as_comdat_group_group=no
25256 if test x"$ld_is_gold" = xyes; then
25258 elif test x"$ld_is_mold" = xyes; then
25260 elif test $in_tree_ld = yes ; then
25262 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 \
25263 && test $in_tree_ld_is_elf = yes; then
25266 elif echo "$ld_ver" | grep GNU > /dev/null; then
25268 if test 0"$ld_date" -lt 20050308; then
25269 if test -n "$ld_date"; then
25270 # If there was date string, but was earlier than 2005-03-08, fail
25272 elif test "$ld_vers_major" -lt 2; then
25274 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
25279 case "${target}" in
25280 *-*-solaris2.1[1-9]*)
25282 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
25283 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
25286 # If using Sun as for COMDAT group as emitted by GCC, one needs at
25287 # least ld version 1.2267.
25288 if test "$ld_vers_major" -gt 1; then
25290 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
25292 elif test "$ld_vers_minor" -ge 2267; then
25297 # Assume linkers other than GNU ld don't support COMDAT group.
25302 # Allow overriding the automatic COMDAT group tests above.
25303 # Check whether --enable-comdat was given.
25304 if test "${enable_comdat+set}" = set; then :
25305 enableval=$enable_comdat; comdat_group="$enable_comdat"
25308 if test $comdat_group = no; then
25309 gcc_cv_as_comdat_group=no
25310 gcc_cv_as_comdat_group_percent=no
25311 gcc_cv_as_comdat_group_group=no
25314 cat >>confdefs.h <<_ACEOF
25315 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
25316 || test $gcc_cv_as_comdat_group_percent = yes \
25317 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
25321 # Restrict this test to Solaris/x86: other targets define this statically.
25322 case "${target}" in
25323 i?86-*-solaris2* | x86_64-*-solaris2*)
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
25325 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
25326 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
25327 hidden_linkonce=yes
25329 case "${target}" in
25330 # Full support for hidden thunks in linkonce sections only appeared in
25331 # Solaris 11/OpenSolaris.
25332 *-*-solaris2.1[1-9]*)
25333 hidden_linkonce=yes
25340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
25341 $as_echo "$hidden_linkonce" >&6; }
25343 cat >>confdefs.h <<_ACEOF
25344 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
25351 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
25352 if ${gcc_cv_as_is_stmt+:} false; then :
25353 $as_echo_n "(cached) " >&6
25355 gcc_cv_as_is_stmt=no
25356 if test x$gcc_cv_as != x; then
25359 .loc 1 1 0 is_stmt 1' > conftest.s
25360 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25362 (eval $ac_try) 2>&5
25364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25365 test $ac_status = 0; }; }
25367 gcc_cv_as_is_stmt=yes
25369 echo "configure: failed program was" >&5
25372 rm -f conftest.o conftest.s
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
25376 $as_echo "$gcc_cv_as_is_stmt" >&6; }
25377 if test $gcc_cv_as_is_stmt = yes; then
25379 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
25384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
25385 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
25386 if ${gcc_cv_as_discriminator+:} false; then :
25387 $as_echo_n "(cached) " >&6
25389 gcc_cv_as_discriminator=no
25390 if test x$gcc_cv_as != x; then
25393 .loc 1 1 0 discriminator 1' > conftest.s
25394 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25396 (eval $ac_try) 2>&5
25398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25399 test $ac_status = 0; }; }
25401 gcc_cv_as_discriminator=yes
25403 echo "configure: failed program was" >&5
25406 rm -f conftest.o conftest.s
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
25410 $as_echo "$gcc_cv_as_discriminator" >&6; }
25411 if test $gcc_cv_as_discriminator = yes; then
25413 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
25418 # Catch the newlib flag of the same name so we can gate GCC features on it.
25419 # Check whether --enable-newlib-nano-formatted-io was given.
25420 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
25421 enableval=$enable_newlib_nano_formatted_io; case "${enableval}" in
25425 as_fn_error $? "unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
25431 # Thread-local storage - the check is heavily parameterized.
25437 .section ".tdata","awT",@progbits
25440 ldq $27,__tls_get_addr($29) !literal!1
25441 lda $16,foo($29) !tlsgd!1
25442 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
25443 ldq $27,__tls_get_addr($29) !literal!2
25444 lda $16,foo($29) !tlsldm!2
25445 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
25446 ldq $1,foo($29) !gotdtprel
25447 ldah $2,foo($29) !dtprelhi
25448 lda $3,foo($2) !dtprello
25449 lda $4,foo($29) !dtprel
25450 ldq $1,foo($29) !gottprel
25451 ldah $2,foo($29) !tprelhi
25452 lda $3,foo($2) !tprello
25453 lda $4,foo($29) !tprel'
25454 tls_as_opt=--fatal-warnings
25458 add_s r0,r0, @foo@tpoff'
25460 cris-*-*|crisv32-*-*)
25462 .section ".tdata","awT",@progbits
25467 tls_as_opt=--fatal-warnings
25471 .section ".tdata","awT",@progbits
25474 call #gettlsoff(x)'
25481 .section ".tdata","awT",@progbits
25485 addil LT%foo-$tls_gdidx$,gp
25486 ldo RT%foo-$tls_gdidx$(%r1),%arg0
25489 addil LT%foo-$tls_ldidx$,gp
25491 ldo RT%foo-$tls_ldidx$(%r1),%arg0
25492 addil LR%foo-$tls_dtpoff$,%ret0
25493 ldo RR%foo-$tls_dtpoff$(%r1),%t1
25495 addil LT%foo-$tls_ieoff$,gp
25496 ldw RT%foo-$tls_ieoff$(%r1),%t2
25499 addil LR%foo-$tls_leoff$,%t1
25500 ldo RR%foo-$tls_leoff$(%r1),%t2'
25501 tls_as_opt=--fatal-warnings
25505 .section ".tdata","awT",%progbits
25508 .word foo(gottpoff)
25514 i[34567]86-*-* | x86_64-*-*)
25516 i[34567]86-*-solaris2.* | x86_64-*-solaris2.*)
25523 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25525 .section .tdata,"awt",@progbits'
25528 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
25532 .section ".tdata","awT",@progbits'
25534 tls_as_opt="--fatal-warnings"
25538 if test x$on_solaris = xyes; then
25540 yes) tls_as_opt="$tls_as_opt --32" ;;
25543 conftest_s="$conftest_s
25547 leal foo@tlsgd(,%ebx,1), %eax
25548 leal foo@tlsldm(%ebx), %eax
25549 leal foo@dtpoff(%eax), %edx
25550 movl foo@gottpoff(%ebx), %eax
25551 subl foo@gottpoff(%ebx), %eax
25552 addl foo@gotntpoff(%ebx), %eax
25553 movl foo@indntpoff, %eax
25554 movl \$foo@tpoff, %eax
25555 subl \$foo@tpoff, %eax
25556 leal foo@ntpoff(%ecx), %eax"
25559 if test x$on_solaris = xyes; then
25561 yes) tls_as_opt="$tls_as_opt --64" ;;
25562 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
25565 conftest_s="$conftest_s
25569 leaq foo@tlsgd(%rip), %rdi
25570 leaq foo@tlsld(%rip), %rdi
25571 leaq foo@dtpoff(%rax), %rdx
25572 movq foo@gottpoff(%rip), %rax
25573 movq \$foo@tpoff, %rax"
25579 .section ".tdata","awT",@progbits
25582 addl r16 = @ltoff(@dtpmod(foo#)), gp
25583 addl r17 = @ltoff(@dtprel(foo#)), gp
25584 addl r18 = @ltoff(@tprel(foo#)), gp
25585 addl r19 = @dtprel(foo#), gp
25586 adds r21 = @dtprel(foo#), r13
25587 movl r23 = @dtprel(foo#)
25588 addl r20 = @tprel(foo#), gp
25589 adds r22 = @tprel(foo#), r13
25590 movl r24 = @tprel(foo#)'
25591 tls_as_opt=--fatal-warnings
25595 .section .tdata,"awT",@progbits
25602 tls_as_opt='--fatal-warnings'
25606 .section .tdata,"awT",@progbits
25610 addik r5,r20,x@TLSGD
25611 addik r5,r20,x@TLSLDM'
25612 tls_as_opt='--fatal-warnings'
25616 .section .tdata,"awT",@progbits
25620 addiu $4, $28, %tlsgd(x)
25621 addiu $4, $28, %tlsldm(x)
25622 lui $4, %dtprel_hi(x)
25623 addiu $4, $4, %dtprel_lo(x)
25624 lw $4, %gottprel(x)($28)
25625 lui $4, %tprel_hi(x)
25626 addiu $4, $4, %tprel_lo(x)'
25627 tls_as_opt='-32 --fatal-warnings'
25631 .section .tdata,"awT",@progbits
25636 move.l x@TLSGD(%a5),%a0
25637 move.l x@TLSLDM(%a5),%a0
25638 move.l x@TLSLDO(%a5),%a0
25639 move.l x@TLSIE(%a5),%a0
25640 move.l x@TLSLE(%a5),%a0'
25641 tls_as_opt='--fatal-warnings'
25645 .section ".tdata","awT",@progbits'
25646 tls_as_opt="--fatal-warnings"
25650 .section ".tdata","awT",%progbits
25654 add x0, x0, #:tlsgd_lo12:x
25657 tls_as_opt='--fatal-warnings'
25661 .section ".tdata","awT",@progbits
25664 l.movhi r3, tpoffha(foo)
25666 l.lwz r4, tpofflo(foo)(r3)'
25667 tls_as_opt=--fatal-warnings
25671 .extern __get_tpointer
25687 .section ".tdata","awT",@progbits
25695 addi 3,2,ld0@got@tlsgd
25701 addi 3,2,x1@got@tlsld
25707 addis 9,3,x2@dtprel@ha
25708 addi 9,9,x2@dtprel@l
25711 ld 9,x3@got@dtprel(2)
25715 tls_as_opt="-a64 --fatal-warnings"
25719 .section ".tdata","awT",@progbits
25727 addi 3,31,ld0@got@tlsgd
25729 addi 3,31,x1@got@tlsld
25732 addis 9,3,x2@dtprel@ha
25733 addi 9,9,x2@dtprel@l
25734 lwz 9,x3@got@tprel(31)
25737 addis 9,2,x2@tprel@ha
25738 addi 9,9,x2@tprel@l'
25739 tls_as_opt="-a32 --fatal-warnings"
25743 .section .tdata,"awT",@progbits
25747 call __tls_get_addr'
25748 tls_as_opt='--fatal-warnings'
25752 .section ".tdata","awT",@progbits
25759 .long foo@GOTNTPOFF
25760 .long foo@INDNTPOFF
25761 l %r1,foo@GOTNTPOFF(%r12)
25762 l %r1,0(%r1):tls_load:foo
25763 bas %r14,0(%r1,%r13):tls_gdcall:foo
25764 bas %r14,0(%r1,%r13):tls_ldcall:foo'
25765 tls_as_opt="-m31 --fatal-warnings"
25769 .section ".tdata","awT",@progbits
25776 .quad foo@GOTNTPOFF
25777 lg %r1,foo@GOTNTPOFF(%r12)
25778 larl %r1,foo@INDNTPOFF
25779 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25780 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25781 tls_as_opt="-m64 -Aesame --fatal-warnings"
25783 sh-*-* | sh[123456789lbe]*-*-*)
25785 .section ".tdata","awT",@progbits
25793 tls_as_opt=--fatal-warnings
25797 sparc*-sun-solaris2.*)
25804 if test x$on_solaris = xyes && test x$gas_flag = xno; then
25806 .section ".tdata",#alloc,#write,#tls'
25809 .section ".tdata","awT",@progbits'
25810 tls_as_opt="-32 --fatal-warnings"
25812 conftest_s="$conftest_s
25815 sethi %tgd_hi22(foo), %o0
25816 add %o0, %tgd_lo10(foo), %o1
25817 add %l7, %o1, %o0, %tgd_add(foo)
25818 call __tls_get_addr, %tgd_call(foo)
25819 sethi %tldm_hi22(foo), %l1
25820 add %l1, %tldm_lo10(foo), %l2
25821 add %l7, %l2, %o0, %tldm_add(foo)
25822 call __tls_get_addr, %tldm_call(foo)
25823 sethi %tldo_hix22(foo), %l3
25824 xor %l3, %tldo_lox10(foo), %l4
25825 add %o0, %l4, %l5, %tldo_add(foo)
25826 sethi %tie_hi22(foo), %o3
25827 add %o3, %tie_lo10(foo), %o3
25828 ld [%l7 + %o3], %o2, %tie_ld(foo)
25829 add %g7, %o2, %o4, %tie_add(foo)
25830 sethi %tle_hix22(foo), %l1
25831 xor %l1, %tle_lox10(foo), %o5
25832 ld [%g7 + %o5], %o1"
25836 .section ".tdata","awT",@progbits
25839 movi a8, foo@TLSFUNC
25840 movi a10, foo@TLSARG
25841 callx8.tls a8, foo@TLSCALL'
25845 if test "x$enable_tls" = xno ; then
25846 : # TLS explicitly disabled.
25847 elif test "x$enable_tls" = xyes ; then
25848 set_have_as_tls=yes # TLS explicitly enabled.
25849 elif test -z "$conftest_s"; then
25850 : # If we don't have a check, assume no support.
25852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25853 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25854 if ${gcc_cv_as_tls+:} false; then :
25855 $as_echo_n "(cached) " >&6
25858 if test x$gcc_cv_as != x; then
25859 $as_echo "$conftest_s" > conftest.s
25860 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25862 (eval $ac_try) 2>&5
25864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25865 test $ac_status = 0; }; }
25869 echo "configure: failed program was" >&5
25872 rm -f conftest.o conftest.s
25875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25876 $as_echo "$gcc_cv_as_tls" >&6; }
25877 if test $gcc_cv_as_tls = yes; then
25878 set_have_as_tls=yes
25882 if test $set_have_as_tls = yes ; then
25884 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25888 # Target-specific assembler checks.
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25891 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25892 gcc_cv_ld_static_dynamic=no
25893 gcc_cv_ld_static_option='-Bstatic'
25894 gcc_cv_ld_dynamic_option='-Bdynamic'
25895 if test $in_tree_ld = yes ; then
25896 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
25897 gcc_cv_ld_static_dynamic=yes
25899 elif test x$gcc_cv_ld != x; then
25900 # Check if linker supports -Bstatic/-Bdynamic option
25901 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
25902 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
25903 gcc_cv_ld_static_dynamic=yes
25906 # AIX ld uses -b flags
25907 *-*-aix4.[23]* | *-*-aix[5-9]*)
25908 gcc_cv_ld_static_dynamic=yes
25909 gcc_cv_ld_static_option="-bstatic"
25910 gcc_cv_ld_dynamic_option="-bdynamic"
25912 # HP-UX ld uses -a flags to select between shared and archive.
25914 if test x"$gnu_ld" = xno; then
25915 gcc_cv_ld_static_dynamic=yes
25916 gcc_cv_ld_static_option="-aarchive_shared"
25917 gcc_cv_ld_dynamic_option="-adefault"
25920 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25922 gcc_cv_ld_static_dynamic=yes
25927 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
25929 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25932 cat >>confdefs.h <<_ACEOF
25933 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25937 cat >>confdefs.h <<_ACEOF
25938 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25943 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25946 $as_echo_n "checking linker --version-script option... " >&6; }
25947 gcc_cv_ld_version_script=no
25948 ld_version_script_option=''
25949 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25950 gcc_cv_ld_version_script=yes
25951 ld_version_script_option='--version-script'
25952 elif test x$gcc_cv_ld != x; then
25954 # Solaris 2 ld always supports -M. It also supports a subset of
25955 # --version-script since Solaris 11.4, but requires
25956 # -z gnu-version-script-compat to activate.
25958 gcc_cv_ld_version_script=yes
25959 ld_version_script_option='-M'
25963 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25965 $as_echo "$gcc_cv_ld_version_script" >&6; }
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25969 $as_echo_n "checking linker soname option... " >&6; }
25970 gcc_cv_ld_soname=no
25971 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
25972 gcc_cv_ld_soname=yes
25973 ld_soname_option='-soname'
25974 elif test x$gcc_cv_ld != x; then
25977 gcc_cv_ld_soname=yes
25978 ld_soname_option='-install_name'
25980 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25981 # ld compatiblity since some Solaris 10 update.
25983 gcc_cv_ld_soname=yes
25984 ld_soname_option='-h'
25988 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25990 $as_echo "$gcc_cv_ld_soname" >&6; }
25993 if test x"$demangler_in_ld" = xyes; then
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25995 $as_echo_n "checking linker --demangle support... " >&6; }
25996 gcc_cv_ld_demangle=no
25997 if test $in_tree_ld = yes; then
25998 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 \
25999 gcc_cv_ld_demangle=yes
26001 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
26002 # Check if the GNU linker supports --demangle option
26003 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
26004 gcc_cv_ld_demangle=yes
26007 if test x"$gcc_cv_ld_demangle" = xyes; then
26009 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
26013 $as_echo "$gcc_cv_ld_demangle" >&6; }
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
26017 $as_echo_n "checking linker plugin support... " >&6; }
26018 gcc_cv_lto_plugin=0
26019 if test -f liblto_plugin.la; then
26020 save_ld_ver="$ld_ver"
26021 save_ld_vers_major="$ld_vers_major"
26022 save_ld_vers_minor="$ld_vers_minor"
26023 save_ld_is_gold="$ld_is_gold"
26027 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
26029 # FIXME: ld_is_gold?
26030 ld_vers_major="$gcc_cv_gld_major_version"
26031 ld_vers_minor="$gcc_cv_gld_minor_version"
26033 # Determine plugin linker version.
26034 # FIXME: Partial duplicate from above, generalize.
26035 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
26036 if echo "$ld_ver" | grep GNU > /dev/null; then
26037 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
26039 ld_vers=`echo $ld_ver | sed -n \
26040 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
26042 ld_vers=`echo $ld_ver | sed -n \
26043 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
26045 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
26046 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
26050 # Determine plugin support.
26051 if echo "$ld_ver" | grep GNU > /dev/null; then
26052 # Require GNU ld or gold 2.21+ for plugin support by default.
26053 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
26054 gcc_cv_lto_plugin=2
26055 elif test "$ld_is_mold" = yes; then
26056 gcc_cv_lto_plugin=2
26057 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
26058 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
26059 gcc_cv_lto_plugin=1
26063 ld_ver="$save_ld_ver"
26064 ld_vers_major="$save_ld_vers_major"
26065 ld_vers_minor="$save_ld_vers_minor"
26066 ld_is_gold="$save_ld_is_gold"
26069 cat >>confdefs.h <<_ACEOF
26070 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
26074 $as_echo "$gcc_cv_lto_plugin" >&6; }
26076 # Target OS-specific assembler checks.
26078 case "$target_os" in
26080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
26081 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
26082 if ${gcc_cv_as_mmacosx_version_min+:} false; then :
26083 $as_echo_n "(cached) " >&6
26085 gcc_cv_as_mmacosx_version_min=no
26086 if test x$gcc_cv_as != x; then
26087 $as_echo '.text' > conftest.s
26088 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
26089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26090 (eval $ac_try) 2>&5
26092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26093 test $ac_status = 0; }; }
26095 gcc_cv_as_mmacosx_version_min=yes
26097 echo "configure: failed program was" >&5
26100 rm -f conftest.o conftest.s
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
26104 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
26105 if test $gcc_cv_as_mmacosx_version_min = yes; then
26107 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
26114 # Target CPU-specific assembler checks.
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
26119 $as_echo_n "checking assembler for -mabi option... " >&6; }
26120 if ${gcc_cv_as_aarch64_mabi+:} false; then :
26121 $as_echo_n "(cached) " >&6
26123 gcc_cv_as_aarch64_mabi=no
26124 if test x$gcc_cv_as != x; then
26125 $as_echo '.text' > conftest.s
26126 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
26127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26128 (eval $ac_try) 2>&5
26130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26131 test $ac_status = 0; }; }
26133 gcc_cv_as_aarch64_mabi=yes
26135 echo "configure: failed program was" >&5
26138 rm -f conftest.o conftest.s
26141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
26142 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
26145 if test x$gcc_cv_as_aarch64_mabi = xyes; then
26147 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
26150 if test x$with_abi = xilp32; then
26151 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26152 Upgrade the Assembler." "$LINENO" 5
26154 if test x"$with_multilib_list" = xdefault; then
26155 TM_MULTILIB_CONFIG=lp64
26157 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
26158 for aarch64_multilib in ${aarch64_multilibs}; do
26159 case ${aarch64_multilib} in
26161 as_fn_error $? "Assembler does not support -mabi=ilp32.\
26162 Upgrade the Assembler." "$LINENO" 5
26170 # Check if we have binutils support for relocations types needed by -fpic
26171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
26172 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
26173 if ${gcc_cv_as_aarch64_picreloc+:} false; then :
26174 $as_echo_n "(cached) " >&6
26176 gcc_cv_as_aarch64_picreloc=no
26177 if test x$gcc_cv_as != x; then
26180 ldr x0, [x2, #:gotpage_lo15:globalsym]
26182 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26184 (eval $ac_try) 2>&5
26186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26187 test $ac_status = 0; }; }
26189 gcc_cv_as_aarch64_picreloc=yes
26191 echo "configure: failed program was" >&5
26194 rm -f conftest.o conftest.s
26197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
26198 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
26199 if test $gcc_cv_as_aarch64_picreloc = yes; then
26201 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
26205 # Enable Branch Target Identification Mechanism and Return Address
26206 # Signing by default.
26207 # Check whether --enable-standard-branch-protection was given.
26208 if test "${enable_standard_branch_protection+set}" = set; then :
26209 enableval=$enable_standard_branch_protection;
26212 tm_defines="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
26217 as_fn_error $? "'$enableval' is an invalid value for --enable-standard-branch-protection.\
26218 Valid choices are 'yes' and 'no'." "$LINENO" 5
26224 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
26225 # Check whether --enable-fix-cortex-a53-835769 was given.
26226 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
26227 enableval=$enable_fix_cortex_a53_835769;
26230 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
26235 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
26236 Valid choices are 'yes' and 'no'." "$LINENO" 5
26243 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
26244 # Check whether --enable-fix-cortex-a53-843419 was given.
26245 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
26246 enableval=$enable_fix_cortex_a53_843419;
26249 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
26254 as_fn_error $? "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
26255 Valid choices are 'yes' and 'no'." "$LINENO" 5
26264 # All TARGET_ABI_OSF targets.
26265 alpha*-*-linux* | alpha*-*-*bsd*)
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26267 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26268 if ${gcc_cv_as_alpha_explicit_relocs+:} false; then :
26269 $as_echo_n "(cached) " >&6
26271 gcc_cv_as_alpha_explicit_relocs=no
26272 if test x$gcc_cv_as != x; then
26273 $as_echo ' .set nomacro
26275 extbl $3, $2, $3 !lituse_bytoff!1
26276 ldq $2, a($29) !literal!1
26277 ldq $4, b($29) !literal!2
26278 ldq_u $3, 0($2) !lituse_base!1
26279 ldq $27, f($29) !literal!5
26280 jsr $26, ($27), f !lituse_jsr!5
26281 ldah $29, 0($26) !gpdisp!3
26282 lda $0, c($29) !gprel
26283 ldah $1, d($29) !gprelhigh
26284 lda $1, d($1) !gprellow
26285 lda $29, 0($29) !gpdisp!3' > conftest.s
26286 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26288 (eval $ac_try) 2>&5
26290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26291 test $ac_status = 0; }; }
26293 gcc_cv_as_alpha_explicit_relocs=yes
26295 echo "configure: failed program was" >&5
26298 rm -f conftest.o conftest.s
26301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
26302 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
26303 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
26305 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
26309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
26310 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
26311 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false; then :
26312 $as_echo_n "(cached) " >&6
26314 gcc_cv_as_alpha_jsrdirect_relocs=no
26315 if test x$gcc_cv_as != x; then
26316 $as_echo ' .set nomacro
26318 ldq $27, a($29) !literal!1
26319 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
26320 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26322 (eval $ac_try) 2>&5
26324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26325 test $ac_status = 0; }; }
26327 gcc_cv_as_alpha_jsrdirect_relocs=yes
26329 echo "configure: failed program was" >&5
26332 rm -f conftest.o conftest.s
26335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
26336 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
26337 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
26339 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
26346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
26347 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
26348 if ${gcc_cv_as_avr_mlink_relax+:} false; then :
26349 $as_echo_n "(cached) " >&6
26351 gcc_cv_as_avr_mlink_relax=no
26352 if test x$gcc_cv_as != x; then
26353 $as_echo '.text' > conftest.s
26354 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
26355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26356 (eval $ac_try) 2>&5
26358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26359 test $ac_status = 0; }; }
26361 gcc_cv_as_avr_mlink_relax=yes
26363 echo "configure: failed program was" >&5
26366 rm -f conftest.o conftest.s
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
26370 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
26371 if test $gcc_cv_as_avr_mlink_relax = yes; then
26373 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
26379 $as_echo_n "checking assembler for -mrmw option... " >&6; }
26380 if ${gcc_cv_as_avr_mrmw+:} false; then :
26381 $as_echo_n "(cached) " >&6
26383 gcc_cv_as_avr_mrmw=no
26384 if test x$gcc_cv_as != x; then
26385 $as_echo '.text' > conftest.s
26386 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
26387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26388 (eval $ac_try) 2>&5
26390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26391 test $ac_status = 0; }; }
26393 gcc_cv_as_avr_mrmw=yes
26395 echo "configure: failed program was" >&5
26398 rm -f conftest.o conftest.s
26401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
26402 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
26403 if test $gcc_cv_as_avr_mrmw = yes; then
26405 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
26411 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
26412 if ${gcc_cv_as_avr_mgccisr+:} false; then :
26413 $as_echo_n "(cached) " >&6
26415 gcc_cv_as_avr_mgccisr=no
26416 if test x$gcc_cv_as != x; then
26422 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
26423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26424 (eval $ac_try) 2>&5
26426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26427 test $ac_status = 0; }; }
26429 gcc_cv_as_avr_mgccisr=yes
26431 echo "configure: failed program was" >&5
26434 rm -f conftest.o conftest.s
26437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
26438 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
26439 if test $gcc_cv_as_avr_mgccisr = yes; then
26441 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
26446 # Check how default linker description file implements .rodata for
26447 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
26448 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
26450 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
26451 cat > conftest.s <<EOF
26452 .section .rodata,"a",@progbits
26454 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
26459 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
26460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26461 (eval $ac_try) 2>&5
26463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26464 test $ac_status = 0; }; }
26465 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
26466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26467 (eval $ac_try) 2>&5
26469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26470 test $ac_status = 0; }; }
26471 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
26472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26473 (eval $ac_try) 2>&5
26475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26476 test $ac_status = 0; }; }
26477 if test -s conftest.nm
26479 if grep ' R xxvaryy' conftest.nm > /dev/null; then
26480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26481 $as_echo "yes" >&6; }
26483 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
26487 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
26488 echo "$as_me: nm output was" >&5
26489 cat conftest.nm >&5
26490 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
26491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5
26492 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
26496 $as_echo "test failed" >&6; }
26497 echo "$as_me: failed program was" >&5
26499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
26500 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
26502 rm -f conftest.s conftest.o conftest.elf conftest.nm
26506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
26507 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
26508 if ${gcc_cv_as_cris_no_mul_bug+:} false; then :
26509 $as_echo_n "(cached) " >&6
26511 gcc_cv_as_cris_no_mul_bug=no
26512 if test x$gcc_cv_as != x; then
26513 $as_echo '.text' > conftest.s
26514 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
26515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26516 (eval $ac_try) 2>&5
26518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26519 test $ac_status = 0; }; }
26521 gcc_cv_as_cris_no_mul_bug=yes
26523 echo "configure: failed program was" >&5
26526 rm -f conftest.o conftest.s
26529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
26530 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
26531 if test $gcc_cv_as_cris_no_mul_bug = yes; then
26533 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
26540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
26541 $as_echo_n "checking assembler for -relax option... " >&6; }
26542 if ${gcc_cv_as_sparc_relax+:} false; then :
26543 $as_echo_n "(cached) " >&6
26545 gcc_cv_as_sparc_relax=no
26546 if test x$gcc_cv_as != x; then
26547 $as_echo '.text' > conftest.s
26548 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
26549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26550 (eval $ac_try) 2>&5
26552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26553 test $ac_status = 0; }; }
26555 gcc_cv_as_sparc_relax=yes
26557 echo "configure: failed program was" >&5
26560 rm -f conftest.o conftest.s
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
26564 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
26565 if test $gcc_cv_as_sparc_relax = yes; then
26567 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
26572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
26573 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
26574 if ${gcc_cv_as_sparc_gotdata_op+:} false; then :
26575 $as_echo_n "(cached) " >&6
26577 gcc_cv_as_sparc_gotdata_op=no
26578 if test x$gcc_cv_as != x; then
26584 sethi %gdop_hix22(foo), %g1
26585 xor %g1, %gdop_lox10(foo), %g1
26586 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
26587 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26589 (eval $ac_try) 2>&5
26591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26592 test $ac_status = 0; }; }
26594 if test x$gcc_cv_ld != x \
26595 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26596 if test x$gcc_cv_objdump != x; then
26597 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
26598 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
26599 gcc_cv_as_sparc_gotdata_op=no
26601 gcc_cv_as_sparc_gotdata_op=yes
26607 echo "configure: failed program was" >&5
26610 rm -f conftest.o conftest.s
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
26614 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
26615 if test $gcc_cv_as_sparc_gotdata_op = yes; then
26617 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
26623 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
26624 if ${gcc_cv_as_sparc_ua_pcrel+:} false; then :
26625 $as_echo_n "(cached) " >&6
26627 gcc_cv_as_sparc_ua_pcrel=no
26628 if test x$gcc_cv_as != x; then
26635 .uaword %r_disp32(foo)' > conftest.s
26636 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26638 (eval $ac_try) 2>&5
26640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26641 test $ac_status = 0; }; }
26643 if test x$gcc_cv_ld != x \
26644 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
26645 gcc_cv_as_sparc_ua_pcrel=yes
26649 echo "configure: failed program was" >&5
26652 rm -f conftest.o conftest.s
26655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
26656 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
26657 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
26659 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
26662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
26663 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
26664 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false; then :
26665 $as_echo_n "(cached) " >&6
26667 gcc_cv_as_sparc_ua_pcrel_hidden=no
26668 if test x$gcc_cv_as != x; then
26672 .uaword %r_disp32(foo)
26673 .byte 0x32, 0x33, 0x34
26677 .skip 4' > conftest.s
26678 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
26679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26680 (eval $ac_try) 2>&5
26682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26683 test $ac_status = 0; }; }
26685 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26686 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
26687 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
26688 | grep ' 31000000 07323334' > /dev/null 2>&1; then
26689 if $gcc_cv_objdump -R conftest 2> /dev/null \
26690 | grep 'DISP32' > /dev/null 2>&1; then
26693 gcc_cv_as_sparc_ua_pcrel_hidden=yes
26698 echo "configure: failed program was" >&5
26701 rm -f conftest.o conftest.s
26704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
26705 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
26706 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
26708 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
26714 # unaligned pcrel relocs
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
26717 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
26718 if ${gcc_cv_as_sparc_offsetable_lo10+:} false; then :
26719 $as_echo_n "(cached) " >&6
26721 gcc_cv_as_sparc_offsetable_lo10=no
26722 if test x$gcc_cv_as != x; then
26724 or %g1, %lo(ab) + 12, %g1
26725 or %g1, %lo(ab + 12), %g1' > conftest.s
26726 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26728 (eval $ac_try) 2>&5
26730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26731 test $ac_status = 0; }; }
26733 if test x$gcc_cv_objdump != x \
26734 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
26735 | grep ' 82106000 82106000' > /dev/null 2>&1; then
26736 gcc_cv_as_sparc_offsetable_lo10=yes
26739 echo "configure: failed program was" >&5
26742 rm -f conftest.o conftest.s
26745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26746 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26747 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26749 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26755 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26756 if ${gcc_cv_as_sparc_fmaf+:} false; then :
26757 $as_echo_n "(cached) " >&6
26759 gcc_cv_as_sparc_fmaf=no
26760 if test x$gcc_cv_as != x; then
26762 .register %g2, #scratch
26763 .register %g3, #scratch
26765 fmaddd %f0, %f2, %f4, %f6
26766 addxccc %g1, %g2, %g3
26767 fsrl32 %f2, %f4, %f8
26768 fnaddd %f10, %f12, %f14' > conftest.s
26769 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26771 (eval $ac_try) 2>&5
26773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26774 test $ac_status = 0; }; }
26776 gcc_cv_as_sparc_fmaf=yes
26778 echo "configure: failed program was" >&5
26781 rm -f conftest.o conftest.s
26784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26785 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26786 if test $gcc_cv_as_sparc_fmaf = yes; then
26788 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26794 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26795 if ${gcc_cv_as_sparc_sparc4+:} false; then :
26796 $as_echo_n "(cached) " >&6
26798 gcc_cv_as_sparc_sparc4=no
26799 if test x$gcc_cv_as != x; then
26801 .register %g2, #scratch
26802 .register %g3, #scratch
26805 1: cwbneg %g2, %g3, 1f
26808 aes_kexpand0 %f4, %f6, %f8
26809 des_round %f38, %f40, %f42, %f44
26810 camellia_f %f54, %f56, %f58, %f60
26811 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26812 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26814 (eval $ac_try) 2>&5
26816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26817 test $ac_status = 0; }; }
26819 gcc_cv_as_sparc_sparc4=yes
26821 echo "configure: failed program was" >&5
26824 rm -f conftest.o conftest.s
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26828 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26829 if test $gcc_cv_as_sparc_sparc4 = yes; then
26831 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26837 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26838 if ${gcc_cv_as_sparc_sparc5+:} false; then :
26839 $as_echo_n "(cached) " >&6
26841 gcc_cv_as_sparc_sparc5=no
26842 if test x$gcc_cv_as != x; then
26844 .register %g2, #scratch
26845 .register %g3, #scratch
26847 subxc %g1, %g2, %g3
26848 fpadd8 %f0, %f2, %f4' > conftest.s
26849 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26851 (eval $ac_try) 2>&5
26853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26854 test $ac_status = 0; }; }
26856 gcc_cv_as_sparc_sparc5=yes
26858 echo "configure: failed program was" >&5
26861 rm -f conftest.o conftest.s
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26865 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26866 if test $gcc_cv_as_sparc_sparc5 = yes; then
26868 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26874 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26875 if ${gcc_cv_as_sparc_sparc6+:} false; then :
26876 $as_echo_n "(cached) " >&6
26878 gcc_cv_as_sparc_sparc6=no
26879 if test x$gcc_cv_as != x; then
26881 .register %g2, #scratch
26882 .register %g3, #scratch
26885 fpsll64x %f0, %f2, %f4' > conftest.s
26886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26888 (eval $ac_try) 2>&5
26890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26891 test $ac_status = 0; }; }
26893 gcc_cv_as_sparc_sparc6=yes
26895 echo "configure: failed program was" >&5
26898 rm -f conftest.o conftest.s
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26902 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26903 if test $gcc_cv_as_sparc_sparc6 = yes; then
26905 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26911 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26912 if ${gcc_cv_as_sparc_leon+:} false; then :
26913 $as_echo_n "(cached) " >&6
26915 gcc_cv_as_sparc_leon=no
26916 if test x$gcc_cv_as != x; then
26918 .register %g2, #scratch
26919 .register %g3, #scratch
26923 casa [%g2] 0xb, %g3, %g1' > conftest.s
26924 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26926 (eval $ac_try) 2>&5
26928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26929 test $ac_status = 0; }; }
26931 gcc_cv_as_sparc_leon=yes
26933 echo "configure: failed program was" >&5
26936 rm -f conftest.o conftest.s
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26940 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26941 if test $gcc_cv_as_sparc_leon = yes; then
26943 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26949 i[34567]86-*-* | x86_64-*-*)
26952 # Full C++ conformance when using a shared libstdc++-v3 requires some
26953 # support from the Cygwin DLL, which in more recent versions exports
26954 # wrappers to aid in interposing and redirecting operators new, delete,
26955 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26956 # are configuring for a version of Cygwin that exports the wrappers.
26957 if test x$host = x$target && test x$host_cpu = xi686; then
26958 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26959 if test "x$ac_cv_func___wrap__Znaj" = xyes; then :
26960 gcc_ac_cygwin_dll_wrappers=yes
26962 gcc_ac_cygwin_dll_wrappers=no
26966 # Can't check presence of libc functions during cross-compile, so
26967 # we just have to assume we're building for an up-to-date target.
26968 gcc_ac_cygwin_dll_wrappers=yes
26971 cat >>confdefs.h <<_ACEOF
26972 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26977 cygwin* | pe | mingw32*)
26978 # Recent binutils allows the three-operand form of ".comm" on PE. This
26979 # definition is used unconditionally to initialise the default state of
26980 # the target option variable that governs usage of the feature.
26981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26982 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26983 if ${gcc_cv_as_comm_has_align+:} false; then :
26984 $as_echo_n "(cached) " >&6
26986 gcc_cv_as_comm_has_align=no
26987 if test x$gcc_cv_as != x; then
26988 $as_echo '.comm foo,1,32' > conftest.s
26989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26991 (eval $ac_try) 2>&5
26993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26994 test $ac_status = 0; }; }
26996 gcc_cv_as_comm_has_align=yes
26998 echo "configure: failed program was" >&5
27001 rm -f conftest.o conftest.s
27004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
27005 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
27009 cat >>confdefs.h <<_ACEOF
27010 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
27013 # Used for DWARF 2 in PE
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
27015 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
27016 if ${gcc_cv_as_ix86_pe_secrel32+:} false; then :
27017 $as_echo_n "(cached) " >&6
27019 gcc_cv_as_ix86_pe_secrel32=no
27020 if test x$gcc_cv_as != x; then
27024 .secrel32 foo' > conftest.s
27025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27027 (eval $ac_try) 2>&5
27029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27030 test $ac_status = 0; }; }
27032 if test x$gcc_cv_ld != x \
27033 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
27034 gcc_cv_as_ix86_pe_secrel32=yes
27038 echo "configure: failed program was" >&5
27041 rm -f conftest.o conftest.s
27044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
27045 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
27046 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
27048 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
27052 # Test if the assembler supports the extended form of the .section
27053 # directive that specifies section alignment. LTO support uses this,
27054 # but normally only after installation, so we warn but don't fail the
27055 # configure if LTO is enabled but the assembler does not support it.
27056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
27057 $as_echo_n "checking assembler for .section with alignment... " >&6; }
27058 if ${gcc_cv_as_section_has_align+:} false; then :
27059 $as_echo_n "(cached) " >&6
27061 gcc_cv_as_section_has_align=no
27062 if test x$gcc_cv_as != x; then
27063 $as_echo '.section lto_test,"dr0"' > conftest.s
27064 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
27065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27066 (eval $ac_try) 2>&5
27068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27069 test $ac_status = 0; }; }
27071 gcc_cv_as_section_has_align=yes
27073 echo "configure: failed program was" >&5
27076 rm -f conftest.o conftest.s
27079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
27080 $as_echo "$gcc_cv_as_section_has_align" >&6; }
27083 if test x$gcc_cv_as_section_has_align != xyes; then
27084 case ",$enable_languages," in
27086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&5
27087 $as_echo "$as_me: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&2;}
27094 darwin2* | darwin19*)
27095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm assembler x86-pad-for-align option" >&5
27096 $as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... " >&6; }
27097 if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
27098 $as_echo_n "(cached) " >&6
27100 gcc_cv_as_mllvm_x86_pad_for_align=no
27101 if test x$gcc_cv_as != x; then
27102 $as_echo '.text' > conftest.s
27103 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false -o conftest.o conftest.s >&5'
27104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27105 (eval $ac_try) 2>&5
27107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27108 test $ac_status = 0; }; }
27110 gcc_cv_as_mllvm_x86_pad_for_align=yes
27112 echo "configure: failed program was" >&5
27115 rm -f conftest.o conftest.s
27118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mllvm_x86_pad_for_align" >&5
27119 $as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
27120 if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
27122 $as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
27130 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
27131 if ${gcc_cv_as_ix86_xbrace_comment+:} false; then :
27132 $as_echo_n "(cached) " >&6
27134 gcc_cv_as_ix86_xbrace_comment=no
27135 if test x$gcc_cv_as != x; then
27136 $as_echo '.text' > conftest.s
27137 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
27138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27139 (eval $ac_try) 2>&5
27141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27142 test $ac_status = 0; }; }
27144 gcc_cv_as_ix86_xbrace_comment=yes
27146 echo "configure: failed program was" >&5
27149 rm -f conftest.o conftest.s
27152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
27153 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
27154 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
27156 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
27161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
27162 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
27163 if ${gcc_cv_as_ix86_filds+:} false; then :
27164 $as_echo_n "(cached) " >&6
27166 gcc_cv_as_ix86_filds=no
27167 if test x$gcc_cv_as != x; then
27168 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
27169 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27171 (eval $ac_try) 2>&5
27173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27174 test $ac_status = 0; }; }
27176 gcc_cv_as_ix86_filds=yes
27178 echo "configure: failed program was" >&5
27181 rm -f conftest.o conftest.s
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
27185 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
27186 if test $gcc_cv_as_ix86_filds = yes; then
27188 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
27193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
27194 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
27195 if ${gcc_cv_as_ix86_fildq+:} false; then :
27196 $as_echo_n "(cached) " >&6
27198 gcc_cv_as_ix86_fildq=no
27199 if test x$gcc_cv_as != x; then
27200 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
27201 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27203 (eval $ac_try) 2>&5
27205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27206 test $ac_status = 0; }; }
27208 gcc_cv_as_ix86_fildq=yes
27210 echo "configure: failed program was" >&5
27213 rm -f conftest.o conftest.s
27216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
27217 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
27218 if test $gcc_cv_as_ix86_fildq = yes; then
27220 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
27225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
27226 $as_echo_n "checking assembler for cmov syntax... " >&6; }
27227 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false; then :
27228 $as_echo_n "(cached) " >&6
27230 gcc_cv_as_ix86_cmov_sun_syntax=no
27231 if test x$gcc_cv_as != x; then
27232 $as_echo 'cmovl.l %edx, %eax' > conftest.s
27233 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27235 (eval $ac_try) 2>&5
27237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27238 test $ac_status = 0; }; }
27240 gcc_cv_as_ix86_cmov_sun_syntax=yes
27242 echo "configure: failed program was" >&5
27245 rm -f conftest.o conftest.s
27248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
27249 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
27250 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
27252 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
27258 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
27259 if ${gcc_cv_as_ix86_ffreep+:} false; then :
27260 $as_echo_n "(cached) " >&6
27262 gcc_cv_as_ix86_ffreep=no
27263 if test x$gcc_cv_as != x; then
27264 $as_echo 'ffreep %st(1)' > conftest.s
27265 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27267 (eval $ac_try) 2>&5
27269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27270 test $ac_status = 0; }; }
27272 gcc_cv_as_ix86_ffreep=yes
27274 echo "configure: failed program was" >&5
27277 rm -f conftest.o conftest.s
27280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
27281 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
27282 if test $gcc_cv_as_ix86_ffreep = yes; then
27284 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
27289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
27290 $as_echo_n "checking assembler for .quad directive... " >&6; }
27291 if ${gcc_cv_as_ix86_quad+:} false; then :
27292 $as_echo_n "(cached) " >&6
27294 gcc_cv_as_ix86_quad=no
27295 if test x$gcc_cv_as != x; then
27296 $as_echo '.quad 0' > conftest.s
27297 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27299 (eval $ac_try) 2>&5
27301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27302 test $ac_status = 0; }; }
27304 gcc_cv_as_ix86_quad=yes
27306 echo "configure: failed program was" >&5
27309 rm -f conftest.o conftest.s
27312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
27313 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
27314 if test $gcc_cv_as_ix86_quad = yes; then
27316 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
27321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
27322 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
27323 if ${gcc_cv_as_ix86_sahf+:} false; then :
27324 $as_echo_n "(cached) " >&6
27326 gcc_cv_as_ix86_sahf=no
27327 if test x$gcc_cv_as != x; then
27330 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27332 (eval $ac_try) 2>&5
27334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27335 test $ac_status = 0; }; }
27337 gcc_cv_as_ix86_sahf=yes
27339 echo "configure: failed program was" >&5
27342 rm -f conftest.o conftest.s
27345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
27346 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
27347 if test $gcc_cv_as_ix86_sahf = yes; then
27349 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
27354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
27355 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
27356 if ${gcc_cv_as_ix86_interunit_movq+:} false; then :
27357 $as_echo_n "(cached) " >&6
27359 gcc_cv_as_ix86_interunit_movq=no
27360 if test x$gcc_cv_as != x; then
27363 movq %rax, %xmm0' > conftest.s
27364 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27366 (eval $ac_try) 2>&5
27368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27369 test $ac_status = 0; }; }
27371 gcc_cv_as_ix86_interunit_movq=yes
27373 echo "configure: failed program was" >&5
27376 rm -f conftest.o conftest.s
27379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
27380 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
27384 cat >>confdefs.h <<_ACEOF
27385 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
27390 $as_echo_n "checking assembler for hle prefixes... " >&6; }
27391 if ${gcc_cv_as_ix86_hle+:} false; then :
27392 $as_echo_n "(cached) " >&6
27394 gcc_cv_as_ix86_hle=no
27395 if test x$gcc_cv_as != x; then
27396 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
27397 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27399 (eval $ac_try) 2>&5
27401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27402 test $ac_status = 0; }; }
27404 gcc_cv_as_ix86_hle=yes
27406 echo "configure: failed program was" >&5
27409 rm -f conftest.o conftest.s
27412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
27413 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
27414 if test $gcc_cv_as_ix86_hle = yes; then
27416 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
27422 $as_echo_n "checking assembler for swap suffix... " >&6; }
27423 if ${gcc_cv_as_ix86_swap+:} false; then :
27424 $as_echo_n "(cached) " >&6
27426 gcc_cv_as_ix86_swap=no
27427 if test x$gcc_cv_as != x; then
27428 $as_echo 'movl.s %esp, %ebp' > conftest.s
27429 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27431 (eval $ac_try) 2>&5
27433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27434 test $ac_status = 0; }; }
27436 gcc_cv_as_ix86_swap=yes
27438 echo "configure: failed program was" >&5
27441 rm -f conftest.o conftest.s
27444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
27445 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
27446 if test $gcc_cv_as_ix86_swap = yes; then
27448 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
27453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
27454 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
27455 if ${gcc_cv_as_ix86_diff_sect_delta+:} false; then :
27456 $as_echo_n "(cached) " >&6
27458 gcc_cv_as_ix86_diff_sect_delta=no
27459 if test x$gcc_cv_as != x; then
27460 $as_echo '.section .rodata
27466 .L2: nop' > conftest.s
27467 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27469 (eval $ac_try) 2>&5
27471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27472 test $ac_status = 0; }; }
27474 gcc_cv_as_ix86_diff_sect_delta=yes
27476 echo "configure: failed program was" >&5
27479 rm -f conftest.o conftest.s
27482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
27483 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
27484 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
27486 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
27491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
27492 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
27493 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false; then :
27494 $as_echo_n "(cached) " >&6
27496 gcc_cv_as_ix86_rep_lock_prefix=no
27497 if test x$gcc_cv_as != x; then
27498 $as_echo 'rep movsl
27503 lock addl %edi, (%eax,%esi)
27504 lock orl $0, (%esp)' > conftest.s
27505 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27507 (eval $ac_try) 2>&5
27509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27510 test $ac_status = 0; }; }
27512 gcc_cv_as_ix86_rep_lock_prefix=yes
27514 echo "configure: failed program was" >&5
27517 rm -f conftest.o conftest.s
27520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
27521 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
27522 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
27524 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
27529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
27530 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
27531 if ${gcc_cv_as_ix86_ud2+:} false; then :
27532 $as_echo_n "(cached) " >&6
27534 gcc_cv_as_ix86_ud2=no
27535 if test x$gcc_cv_as != x; then
27536 $as_echo 'ud2' > conftest.s
27537 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27539 (eval $ac_try) 2>&5
27541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27542 test $ac_status = 0; }; }
27544 gcc_cv_as_ix86_ud2=yes
27546 echo "configure: failed program was" >&5
27549 rm -f conftest.o conftest.s
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
27553 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
27554 if test $gcc_cv_as_ix86_ud2 = yes; then
27556 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
27561 # Enforce 32-bit output with gas and gld.
27562 if test x$gas = xyes; then
27563 as_ix86_gas_32_opt="--32"
27565 if echo "$ld_ver" | grep GNU > /dev/null; then
27566 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
27567 ld_ix86_gld_32_opt="-melf_i386_sol2"
27569 ld_ix86_gld_32_opt="-melf_i386"
27573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
27574 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
27575 if ${gcc_cv_as_ix86_tlsgdplt+:} false; then :
27576 $as_echo_n "(cached) " >&6
27578 gcc_cv_as_ix86_tlsgdplt=no
27579 if test x$gcc_cv_as != x; then
27580 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
27581 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27583 (eval $ac_try) 2>&5
27585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27586 test $ac_status = 0; }; }
27588 if test x$gcc_cv_ld != x \
27589 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27590 gcc_cv_as_ix86_tlsgdplt=yes
27594 echo "configure: failed program was" >&5
27597 rm -f conftest.o conftest.s
27600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
27601 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
27602 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
27604 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
27610 .section .tdata,"aw'$tls_section_flag'",@progbits
27612 .section .text,"ax",@progbits
27613 call tls_ld@tlsldmplt'
27615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
27616 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
27617 if ${gcc_cv_as_ix86_tlsldmplt+:} false; then :
27618 $as_echo_n "(cached) " >&6
27620 gcc_cv_as_ix86_tlsldmplt=no
27621 if test x$gcc_cv_as != x; then
27622 $as_echo "$conftest_s" > conftest.s
27623 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27625 (eval $ac_try) 2>&5
27627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27628 test $ac_status = 0; }; }
27630 if test x$gcc_cv_ld != x \
27631 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
27632 gcc_cv_as_ix86_tlsldmplt=yes
27636 echo "configure: failed program was" >&5
27639 rm -f conftest.o conftest.s
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
27643 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
27647 cat >>confdefs.h <<_ACEOF
27648 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
27653 .section .text,"ax",@progbits
27655 .type _start, @function
27657 leal value@tlsldm(%ebx), %eax
27658 call ___tls_get_addr@plt
27660 .section .tdata,"aw'$tls_section_flag'",@progbits
27661 .type value, @object
27663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
27664 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
27665 if ${gcc_cv_as_ix86_tlsldm+:} false; then :
27666 $as_echo_n "(cached) " >&6
27668 gcc_cv_as_ix86_tlsldm=no
27669 if test x$gcc_cv_as != x; then
27670 $as_echo "$conftest_s" > conftest.s
27671 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27673 (eval $ac_try) 2>&5
27675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27676 test $ac_status = 0; }; }
27678 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27679 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
27680 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
27681 || dis conftest 2>/dev/null | grep nop > /dev/null; then
27682 gcc_cv_as_ix86_tlsldm=yes
27687 echo "configure: failed program was" >&5
27690 rm -f conftest.o conftest.s
27693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
27694 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
27698 cat >>confdefs.h <<_ACEOF
27699 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
27713 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
27714 if ${gcc_cv_as_ix86_got32x+:} false; then :
27715 $as_echo_n "(cached) " >&6
27717 gcc_cv_as_ix86_got32x=no
27718 if test x$gcc_cv_as != x; then
27719 $as_echo "$conftest_s" > conftest.s
27720 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27722 (eval $ac_try) 2>&5
27724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27725 test $ac_status = 0; }; }
27727 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
27728 && test x$gcc_cv_readelf != x \
27729 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
27730 | grep R_386_GOT32X > /dev/null 2>&1 \
27731 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27732 if $gcc_cv_objdump -dw conftest 2>&1 \
27733 | grep 0xffffff > /dev/null 2>&1; then
27734 gcc_cv_as_ix86_got32x=no
27736 gcc_cv_as_ix86_got32x=yes
27741 echo "configure: failed program was" >&5
27744 rm -f conftest.o conftest.s
27747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27748 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27752 cat >>confdefs.h <<_ACEOF
27753 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27758 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27759 if ${gcc_cv_as_ix86_gotoff_in_data+:} false; then :
27760 $as_echo_n "(cached) " >&6
27762 gcc_cv_as_ix86_gotoff_in_data=no
27763 if test x$gcc_cv_as != x; then
27768 .long .L0@GOTOFF' > conftest.s
27769 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27771 (eval $ac_try) 2>&5
27773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27774 test $ac_status = 0; }; }
27776 gcc_cv_as_ix86_gotoff_in_data=yes
27778 echo "configure: failed program was" >&5
27781 rm -f conftest.o conftest.s
27784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27785 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27789 cat >>confdefs.h <<_ACEOF
27790 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27795 .section .text,"ax",@progbits
27797 .type _start, @function
27799 leal ld@tlsldm(%ecx), %eax
27800 call *___tls_get_addr@GOT(%ecx)
27801 leal gd@tlsgd(%ecx), %eax
27802 call *___tls_get_addr@GOT(%ecx)
27804 .section .tdata,"aw'$tls_section_flag'",@progbits
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27813 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27814 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false; then :
27815 $as_echo_n "(cached) " >&6
27817 gcc_cv_as_ix86_tls_get_addr_via_got=no
27818 if test x$gcc_cv_as != x; then
27819 $as_echo "$conftest_s" > conftest.s
27820 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27822 (eval $ac_try) 2>&5
27824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27825 test $ac_status = 0; }; }
27827 if test x$gcc_cv_ld != x \
27828 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
27829 gcc_cv_as_ix86_tls_get_addr_via_got=yes
27833 echo "configure: failed program was" >&5
27836 rm -f conftest.o conftest.s
27839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27840 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27844 cat >>confdefs.h <<_ACEOF
27845 #define HAVE_AS_IX86_TLS_GET_ADDR_GOT `if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`
27851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27852 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27853 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false; then :
27854 $as_echo_n "(cached) " >&6
27856 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
27857 if test x$gcc_cv_as != x; then
27859 addl r15 = @ltoffx(x#), gp
27861 ld8.mov r16 = [r15], x#
27863 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27865 (eval $ac_try) 2>&5
27867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27868 test $ac_status = 0; }; }
27870 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
27872 echo "configure: failed program was" >&5
27875 rm -f conftest.o conftest.s
27878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27879 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27880 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27882 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27894 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27895 if ${gcc_cv_as_machine_directive+:} false; then :
27896 $as_echo_n "(cached) " >&6
27898 gcc_cv_as_machine_directive=no
27899 if test x$gcc_cv_as != x; then
27900 $as_echo ' .machine ppc7400' > conftest.s
27901 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27903 (eval $ac_try) 2>&5
27905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27906 test $ac_status = 0; }; }
27908 gcc_cv_as_machine_directive=yes
27910 echo "configure: failed program was" >&5
27913 rm -f conftest.o conftest.s
27916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27917 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27920 if test x$gcc_cv_as_machine_directive != xyes; then
27921 echo "*** This target requires an assembler supporting \".machine\"" >&2
27922 echo you can get it from: https://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
27923 test x$build = x$target && exit 1
27929 *-*-aix*) conftest_s=' .machine "pwr5"
27932 *-*-darwin*) conftest_s=' .text
27934 *) conftest_s=' .machine power4
27939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27940 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27941 if ${gcc_cv_as_powerpc_mfcrf+:} false; then :
27942 $as_echo_n "(cached) " >&6
27944 gcc_cv_as_powerpc_mfcrf=no
27945 if test x$gcc_cv_as != x; then
27946 $as_echo "$conftest_s" > conftest.s
27947 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27949 (eval $ac_try) 2>&5
27951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27952 test $ac_status = 0; }; }
27954 gcc_cv_as_powerpc_mfcrf=yes
27956 echo "configure: failed program was" >&5
27959 rm -f conftest.o conftest.s
27962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27963 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27964 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27966 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27972 *-*-aix*) conftest_s=' .csect .text[PR]
27974 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27978 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27979 *) conftest_s=' .text
27981 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27985 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27986 if ${gcc_cv_as_powerpc_rel16+:} false; then :
27987 $as_echo_n "(cached) " >&6
27989 gcc_cv_as_powerpc_rel16=no
27990 if test x$gcc_cv_as != x; then
27991 $as_echo "$conftest_s" > conftest.s
27992 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27994 (eval $ac_try) 2>&5
27996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27997 test $ac_status = 0; }; }
27999 gcc_cv_as_powerpc_rel16=yes
28001 echo "configure: failed program was" >&5
28004 rm -f conftest.o conftest.s
28007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
28008 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
28009 if test $gcc_cv_as_powerpc_rel16 = yes; then
28011 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
28017 *-*-aix*) conftest_s=' .machine "pwr7"
28020 *) conftest_s=' .machine power7
28025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
28026 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
28027 if ${gcc_cv_as_powerpc_vsx+:} false; then :
28028 $as_echo_n "(cached) " >&6
28030 gcc_cv_as_powerpc_vsx=no
28031 if test x$gcc_cv_as != x; then
28032 $as_echo "$conftest_s" > conftest.s
28033 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
28034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28035 (eval $ac_try) 2>&5
28037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28038 test $ac_status = 0; }; }
28040 gcc_cv_as_powerpc_vsx=yes
28042 echo "configure: failed program was" >&5
28045 rm -f conftest.o conftest.s
28048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
28049 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
28050 if test $gcc_cv_as_powerpc_vsx = yes; then
28052 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
28057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28058 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28059 if ${gcc_cv_as_powerpc_gnu_attribute+:} false; then :
28060 $as_echo_n "(cached) " >&6
28062 gcc_cv_as_powerpc_gnu_attribute=no
28063 if test x$gcc_cv_as != x; then
28064 $as_echo '.gnu_attribute 4,1' > conftest.s
28065 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28067 (eval $ac_try) 2>&5
28069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28070 test $ac_status = 0; }; }
28072 gcc_cv_as_powerpc_gnu_attribute=yes
28074 echo "configure: failed program was" >&5
28077 rm -f conftest.o conftest.s
28080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
28081 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
28082 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
28084 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
28090 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
28091 if ${gcc_cv_as_powerpc_entry_markers+:} false; then :
28092 $as_echo_n "(cached) " >&6
28094 gcc_cv_as_powerpc_entry_markers=no
28095 if test x$gcc_cv_as != x; then
28096 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
28097 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
28098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28099 (eval $ac_try) 2>&5
28101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28102 test $ac_status = 0; }; }
28104 gcc_cv_as_powerpc_entry_markers=yes
28106 echo "configure: failed program was" >&5
28109 rm -f conftest.o conftest.s
28112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
28113 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
28114 if test $gcc_cv_as_powerpc_entry_markers = yes; then
28116 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
28121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
28122 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
28123 if ${gcc_cv_as_powerpc_pltseq_markers+:} false; then :
28124 $as_echo_n "(cached) " >&6
28126 gcc_cv_as_powerpc_pltseq_markers=no
28127 if test x$gcc_cv_as != x; then
28128 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
28129 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
28130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28131 (eval $ac_try) 2>&5
28133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28134 test $ac_status = 0; }; }
28136 gcc_cv_as_powerpc_pltseq_markers=yes
28138 echo "configure: failed program was" >&5
28141 rm -f conftest.o conftest.s
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
28145 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
28146 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
28148 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
28155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
28156 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
28157 if ${gcc_cv_as_aix_ref+:} false; then :
28158 $as_echo_n "(cached) " >&6
28160 gcc_cv_as_aix_ref=no
28161 if test x$gcc_cv_as != x; then
28162 $as_echo ' .csect stuff[rw]
28168 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28170 (eval $ac_try) 2>&5
28172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28173 test $ac_status = 0; }; }
28175 gcc_cv_as_aix_ref=yes
28177 echo "configure: failed program was" >&5
28180 rm -f conftest.o conftest.s
28183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
28184 $as_echo "$gcc_cv_as_aix_ref" >&6; }
28185 if test $gcc_cv_as_aix_ref = yes; then
28187 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
28192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
28193 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
28194 if ${gcc_cv_as_aix_dwloc+:} false; then :
28195 $as_echo_n "(cached) " >&6
28197 gcc_cv_as_aix_dwloc=no
28198 if test x$gcc_cv_as != x; then
28199 $as_echo ' .dwsect 0xA0000
28203 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28205 (eval $ac_try) 2>&5
28207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28208 test $ac_status = 0; }; }
28210 gcc_cv_as_aix_dwloc=yes
28212 echo "configure: failed program was" >&5
28215 rm -f conftest.o conftest.s
28218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
28219 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
28220 if test $gcc_cv_as_aix_dwloc = yes; then
28222 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
28231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28232 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28233 if ${gcc_cv_as_mips_explicit_relocs+:} false; then :
28234 $as_echo_n "(cached) " >&6
28236 gcc_cv_as_mips_explicit_relocs=no
28237 if test x$gcc_cv_as != x; then
28238 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
28239 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28241 (eval $ac_try) 2>&5
28243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28244 test $ac_status = 0; }; }
28246 gcc_cv_as_mips_explicit_relocs=yes
28248 echo "configure: failed program was" >&5
28251 rm -f conftest.o conftest.s
28254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
28255 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
28256 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28257 if test x$target_cpu_default = x
28258 then target_cpu_default=MASK_EXPLICIT_RELOCS
28259 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
28264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
28265 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
28266 if ${gcc_cv_as_mips_no_shared+:} false; then :
28267 $as_echo_n "(cached) " >&6
28269 gcc_cv_as_mips_no_shared=no
28270 if test x$gcc_cv_as != x; then
28271 $as_echo 'nop' > conftest.s
28272 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
28273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28274 (eval $ac_try) 2>&5
28276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28277 test $ac_status = 0; }; }
28279 gcc_cv_as_mips_no_shared=yes
28281 echo "configure: failed program was" >&5
28284 rm -f conftest.o conftest.s
28287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
28288 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
28289 if test $gcc_cv_as_mips_no_shared = yes; then
28291 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
28296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28297 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28298 if ${gcc_cv_as_mips_gnu_attribute+:} false; then :
28299 $as_echo_n "(cached) " >&6
28301 gcc_cv_as_mips_gnu_attribute=no
28302 if test x$gcc_cv_as != x; then
28303 $as_echo '.gnu_attribute 4,1' > conftest.s
28304 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28306 (eval $ac_try) 2>&5
28308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28309 test $ac_status = 0; }; }
28311 gcc_cv_as_mips_gnu_attribute=yes
28313 echo "configure: failed program was" >&5
28316 rm -f conftest.o conftest.s
28319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
28320 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
28321 if test $gcc_cv_as_mips_gnu_attribute = yes; then
28323 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
28329 $as_echo_n "checking assembler for .module support... " >&6; }
28330 if ${gcc_cv_as_mips_dot_module+:} false; then :
28331 $as_echo_n "(cached) " >&6
28333 gcc_cv_as_mips_dot_module=no
28334 if test x$gcc_cv_as != x; then
28335 $as_echo '.module mips2
28336 .module fp=xx' > conftest.s
28337 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
28338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28339 (eval $ac_try) 2>&5
28341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28342 test $ac_status = 0; }; }
28344 gcc_cv_as_mips_dot_module=yes
28346 echo "configure: failed program was" >&5
28349 rm -f conftest.o conftest.s
28352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
28353 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
28354 if test $gcc_cv_as_mips_dot_module = yes; then
28356 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
28360 if test x$gcc_cv_as_mips_dot_module = xno \
28361 && test x$with_fp_32 != x; then
28362 as_fn_error $? "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
28365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
28366 $as_echo_n "checking assembler for .micromips support... " >&6; }
28367 if ${gcc_cv_as_micromips_support+:} false; then :
28368 $as_echo_n "(cached) " >&6
28370 gcc_cv_as_micromips_support=no
28371 if test x$gcc_cv_as != x; then
28372 $as_echo '.set micromips' > conftest.s
28373 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
28374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28375 (eval $ac_try) 2>&5
28377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28378 test $ac_status = 0; }; }
28380 gcc_cv_as_micromips_support=yes
28382 echo "configure: failed program was" >&5
28385 rm -f conftest.o conftest.s
28388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
28389 $as_echo "$gcc_cv_as_micromips_support" >&6; }
28390 if test $gcc_cv_as_micromips_support = yes; then
28392 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
28397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28398 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28399 if ${gcc_cv_as_mips_dtprelword+:} false; then :
28400 $as_echo_n "(cached) " >&6
28402 gcc_cv_as_mips_dtprelword=no
28403 if test x$gcc_cv_as != x; then
28404 $as_echo '.section .tdata,"awT",@progbits
28408 .dtprelword x+0x8000' > conftest.s
28409 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28411 (eval $ac_try) 2>&5
28413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28414 test $ac_status = 0; }; }
28416 gcc_cv_as_mips_dtprelword=yes
28418 echo "configure: failed program was" >&5
28421 rm -f conftest.o conftest.s
28424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
28425 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
28426 if test $gcc_cv_as_mips_dtprelword = yes; then
28428 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
28434 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
28435 if ${gcc_cv_as_mips_dspr1_mult+:} false; then :
28436 $as_echo_n "(cached) " >&6
28438 gcc_cv_as_mips_dspr1_mult=no
28439 if test x$gcc_cv_as != x; then
28440 $as_echo ' .set mips32r2
28448 multu $ac3,$4,$5' > conftest.s
28449 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28451 (eval $ac_try) 2>&5
28453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28454 test $ac_status = 0; }; }
28456 gcc_cv_as_mips_dspr1_mult=yes
28458 echo "configure: failed program was" >&5
28461 rm -f conftest.o conftest.s
28464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
28465 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
28466 if test $gcc_cv_as_mips_dspr1_mult = yes; then
28468 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
28473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
28474 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
28475 gcc_cv_as_ld_jalr_reloc=no
28476 if test $gcc_cv_as_mips_explicit_relocs = yes; then
28477 if test $in_tree_ld = yes ; then
28478 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 \
28479 && test $in_tree_ld_is_elf = yes; then
28480 gcc_cv_as_ld_jalr_reloc=yes
28482 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
28483 echo ' .ent x' > conftest.s
28484 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
28485 echo ' lw $25,%call16(y)($28)' >> conftest.s
28486 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
28487 echo '1: jalr $25' >> conftest.s
28488 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
28489 echo '1: jalr $25' >> conftest.s
28490 echo ' .end x' >> conftest.s
28491 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
28492 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
28493 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
28494 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
28495 gcc_cv_as_ld_jalr_reloc=yes
28501 if test $gcc_cv_as_ld_jalr_reloc = yes; then
28502 if test x$target_cpu_default = x; then
28503 target_cpu_default=MASK_RELAX_PIC_CALLS
28505 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
28508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
28509 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
28512 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
28513 if ${gcc_cv_ld_mips_personality_relaxation+:} false; then :
28514 $as_echo_n "(cached) " >&6
28516 gcc_cv_ld_mips_personality_relaxation=no
28517 if test $in_tree_ld = yes ; then
28518 if test "$gcc_cv_gld_major_version" -eq 2 \
28519 -a "$gcc_cv_gld_minor_version" -ge 21 \
28520 -o "$gcc_cv_gld_major_version" -gt 2; then
28521 gcc_cv_ld_mips_personality_relaxation=yes
28523 elif test x$gcc_cv_as != x \
28524 -a x$gcc_cv_ld != x \
28525 -a x$gcc_cv_readelf != x ; then
28526 cat > conftest.s <<EOF
28528 .cfi_personality 0x80,indirect_ptr
28535 .section .data,"aw",@progbits
28539 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
28540 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
28541 if $gcc_cv_readelf -d conftest 2>&1 \
28542 | grep TEXTREL > /dev/null 2>&1; then
28544 elif $gcc_cv_readelf --relocs conftest 2>&1 \
28545 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
28548 gcc_cv_ld_mips_personality_relaxation=yes
28552 rm -f conftest.s conftest.o conftest
28554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
28555 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
28556 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
28558 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
28562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
28563 $as_echo_n "checking assembler for -mnan= support... " >&6; }
28564 if ${gcc_cv_as_mips_nan+:} false; then :
28565 $as_echo_n "(cached) " >&6
28567 gcc_cv_as_mips_nan=no
28568 if test x$gcc_cv_as != x; then
28569 $as_echo '' > conftest.s
28570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
28571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28572 (eval $ac_try) 2>&5
28574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28575 test $ac_status = 0; }; }
28577 gcc_cv_as_mips_nan=yes
28579 echo "configure: failed program was" >&5
28582 rm -f conftest.o conftest.s
28585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
28586 $as_echo "$gcc_cv_as_mips_nan" >&6; }
28587 if test $gcc_cv_as_mips_nan = yes; then
28589 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
28593 if test x$gcc_cv_as_mips_nan = xno \
28594 && test x$with_nan != x; then
28595 as_fn_error $? "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
28599 # Earlier GAS versions generically support .gnu_attribute, but the
28600 # msp430 assembler will not do anything with it.
28601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28602 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28603 if ${gcc_cv_as_msp430_gnu_attribute+:} false; then :
28604 $as_echo_n "(cached) " >&6
28606 gcc_cv_as_msp430_gnu_attribute=no
28607 if test x$gcc_cv_as != x; then
28608 $as_echo '.gnu_attribute 4,1' > conftest.s
28609 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28611 (eval $ac_try) 2>&5
28613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28614 test $ac_status = 0; }; }
28616 gcc_cv_as_msp430_gnu_attribute=yes
28618 echo "configure: failed program was" >&5
28621 rm -f conftest.o conftest.s
28624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
28625 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
28626 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
28628 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
28633 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
28634 if ${gcc_cv_as_msp430_mspabi_attribute+:} false; then :
28635 $as_echo_n "(cached) " >&6
28637 gcc_cv_as_msp430_mspabi_attribute=no
28638 if test x$gcc_cv_as != x; then
28639 $as_echo '.mspabi_attribute 4,2' > conftest.s
28640 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28642 (eval $ac_try) 2>&5
28644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28645 test $ac_status = 0; }; }
28647 gcc_cv_as_msp430_mspabi_attribute=yes
28649 echo "configure: failed program was" >&5
28652 rm -f conftest.o conftest.s
28655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
28656 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
28657 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
28659 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
28663 if test x$enable_newlib_nano_formatted_io = xyes; then
28665 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
28670 # Versions 2.33 and earlier lacked support for the %gotoff relocation
28671 # syntax that is documented in the ABI specification.
28672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
28673 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
28674 if ${gcc_cv_as_nios2_gotoff_relocation+:} false; then :
28675 $as_echo_n "(cached) " >&6
28677 gcc_cv_as_nios2_gotoff_relocation=no
28678 if test x$gcc_cv_as != x; then
28679 $as_echo ' .extern foo
28681 .long %gotoff(foo)' > conftest.s
28682 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28684 (eval $ac_try) 2>&5
28686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28687 test $ac_status = 0; }; }
28689 gcc_cv_as_nios2_gotoff_relocation=yes
28691 echo "configure: failed program was" >&5
28694 rm -f conftest.o conftest.s
28697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28698 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28699 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28701 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28708 $as_echo_n "checking assembler for .attribute support... " >&6; }
28709 if ${gcc_cv_as_riscv_attribute+:} false; then :
28710 $as_echo_n "(cached) " >&6
28712 gcc_cv_as_riscv_attribute=no
28713 if test x$gcc_cv_as != x; then
28714 $as_echo '.attribute stack_align,4' > conftest.s
28715 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28717 (eval $ac_try) 2>&5
28719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28720 test $ac_status = 0; }; }
28722 gcc_cv_as_riscv_attribute=yes
28724 echo "configure: failed program was" >&5
28727 rm -f conftest.o conftest.s
28730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28731 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28732 if test $gcc_cv_as_riscv_attribute = yes; then
28734 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -misa-spec= support" >&5
28739 $as_echo_n "checking assembler for -misa-spec= support... " >&6; }
28740 if ${gcc_cv_as_riscv_isa_spec+:} false; then :
28741 $as_echo_n "(cached) " >&6
28743 gcc_cv_as_riscv_isa_spec=no
28744 if test x$gcc_cv_as != x; then
28745 $as_echo '' > conftest.s
28746 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -misa-spec=2.2 -o conftest.o conftest.s >&5'
28747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28748 (eval $ac_try) 2>&5
28750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28751 test $ac_status = 0; }; }
28753 gcc_cv_as_riscv_isa_spec=yes
28755 echo "configure: failed program was" >&5
28758 rm -f conftest.o conftest.s
28761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_isa_spec" >&5
28762 $as_echo "$gcc_cv_as_riscv_isa_spec" >&6; }
28763 if test $gcc_cv_as_riscv_isa_spec = yes; then
28765 $as_echo "#define HAVE_AS_MISA_SPEC 1" >>confdefs.h
28769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -march=rv32i_zifencei support" >&5
28770 $as_echo_n "checking assembler for -march=rv32i_zifencei support... " >&6; }
28771 if ${gcc_cv_as_riscv_march_zifencei+:} false; then :
28772 $as_echo_n "(cached) " >&6
28774 gcc_cv_as_riscv_march_zifencei=no
28775 if test x$gcc_cv_as != x; then
28776 $as_echo '' > conftest.s
28777 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=rv32i_zifencei2p0 -o conftest.o conftest.s >&5'
28778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28779 (eval $ac_try) 2>&5
28781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28782 test $ac_status = 0; }; }
28784 gcc_cv_as_riscv_march_zifencei=yes
28786 echo "configure: failed program was" >&5
28789 rm -f conftest.o conftest.s
28792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_march_zifencei" >&5
28793 $as_echo "$gcc_cv_as_riscv_march_zifencei" >&6; }
28794 if test $gcc_cv_as_riscv_march_zifencei = yes; then
28796 $as_echo "#define HAVE_AS_MARCH_ZIFENCEI 1" >>confdefs.h
28802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
28803 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
28804 if ${gcc_cv_as_loongarch_dtprelword+:} false; then :
28805 $as_echo_n "(cached) " >&6
28807 gcc_cv_as_loongarch_dtprelword=no
28808 if test x$gcc_cv_as != x; then
28809 $as_echo '' > conftest.s
28810 if { ac_try='$gcc_cv_as $gcc_cv_as_flags 2,18,0 -o conftest.o conftest.s >&5'
28811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28812 (eval $ac_try) 2>&5
28814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28815 test $ac_status = 0; }; }
28817 .section .tdata,"awT",@progbits
28821 .dtprelword x+0x8000
28823 echo "configure: failed program was" >&5
28826 rm -f conftest.o conftest.s
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_dtprelword" >&5
28830 $as_echo "$gcc_cv_as_loongarch_dtprelword" >&6; }
28832 if test $gcc_cv_as_loongarch_dtprelword != yes; then
28834 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
28837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
28838 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
28839 if ${gcc_cv_as_loongarch_explicit_relocs+:} false; then :
28840 $as_echo_n "(cached) " >&6
28842 gcc_cv_as_loongarch_explicit_relocs=no
28843 if test x$gcc_cv_as != x; then
28844 $as_echo 'a:pcalau12i $t0,%pc_hi20(a)' > conftest.s
28845 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28847 (eval $ac_try) 2>&5
28849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28850 test $ac_status = 0; }; }
28852 gcc_cv_as_loongarch_explicit_relocs=yes
28854 echo "configure: failed program was" >&5
28857 rm -f conftest.o conftest.s
28860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_explicit_relocs" >&5
28861 $as_echo "$gcc_cv_as_loongarch_explicit_relocs" >&6; }
28862 if test $gcc_cv_as_loongarch_explicit_relocs = yes; then
28864 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
28868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame pcrel encoding support" >&5
28869 $as_echo_n "checking assembler for eh_frame pcrel encoding support... " >&6; }
28870 if ${gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support+:} false; then :
28871 $as_echo_n "(cached) " >&6
28873 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=no
28874 if test x$gcc_cv_as != x; then
28875 $as_echo '.cfi_startproc
28876 .cfi_personality 0x9b,a
28878 .cfi_endproc' > conftest.s
28879 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28881 (eval $ac_try) 2>&5
28883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28884 test $ac_status = 0; }; }
28886 gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support=yes
28888 echo "configure: failed program was" >&5
28891 rm -f conftest.o conftest.s
28894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&5
28895 $as_echo "$gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support" >&6; }
28896 if test $gcc_cv_as_loongarch_eh_frame_pcrel_encoding_support = yes; then
28898 $as_echo "#define HAVE_AS_EH_FRAME_PCREL_ENCODING_SUPPORT 1" >>confdefs.h
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28905 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28906 if ${gcc_cv_as_s390_gnu_attribute+:} false; then :
28907 $as_echo_n "(cached) " >&6
28909 gcc_cv_as_s390_gnu_attribute=no
28910 if test x$gcc_cv_as != x; then
28911 $as_echo '.gnu_attribute 8,1' > conftest.s
28912 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28914 (eval $ac_try) 2>&5
28916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28917 test $ac_status = 0; }; }
28919 gcc_cv_as_s390_gnu_attribute=yes
28921 echo "configure: failed program was" >&5
28924 rm -f conftest.o conftest.s
28927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28928 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28929 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28931 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28936 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28937 if ${gcc_cv_as_s390_machine_machinemode+:} false; then :
28938 $as_echo_n "(cached) " >&6
28940 gcc_cv_as_s390_machine_machinemode=no
28941 if test x$gcc_cv_as != x; then
28942 $as_echo ' .machinemode push
28945 .machine pop' > conftest.s
28946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28948 (eval $ac_try) 2>&5
28950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28951 test $ac_status = 0; }; }
28953 gcc_cv_as_s390_machine_machinemode=yes
28955 echo "configure: failed program was" >&5
28958 rm -f conftest.o conftest.s
28961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28962 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28963 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28965 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28970 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28971 if ${gcc_cv_as_s390_architecture_modifiers+:} false; then :
28972 $as_echo_n "(cached) " >&6
28974 gcc_cv_as_s390_architecture_modifiers=no
28975 if test x$gcc_cv_as != x; then
28976 $as_echo ' .machine z13+vx ' > conftest.s
28977 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28979 (eval $ac_try) 2>&5
28981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28982 test $ac_status = 0; }; }
28984 gcc_cv_as_s390_architecture_modifiers=yes
28986 echo "configure: failed program was" >&5
28989 rm -f conftest.o conftest.s
28992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28993 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28994 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28996 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
29000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
29001 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
29002 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false; then :
29003 $as_echo_n "(cached) " >&6
29005 gcc_cv_as_s390_vector_loadstore_alignment_hints=no
29006 if test x$gcc_cv_as != x; then
29007 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29008 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29010 (eval $ac_try) 2>&5
29012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29013 test $ac_status = 0; }; }
29015 gcc_cv_as_s390_vector_loadstore_alignment_hints=yes
29017 echo "configure: failed program was" >&5
29020 rm -f conftest.o conftest.s
29023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
29024 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
29025 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
29027 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
29031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints on z13" >&5
29032 $as_echo_n "checking assembler for vector load/store alignment hints on z13... " >&6; }
29033 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13+:} false; then :
29034 $as_echo_n "(cached) " >&6
29036 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=no
29037 if test x$gcc_cv_as != x; then
29038 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
29039 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mzarch -march=z13 -o conftest.o conftest.s >&5'
29040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29041 (eval $ac_try) 2>&5
29043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29044 test $ac_status = 0; }; }
29046 gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13=yes
29048 echo "configure: failed program was" >&5
29051 rm -f conftest.o conftest.s
29054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&5
29055 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13" >&6; }
29056 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints_on_z13 = yes; then
29058 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13 1" >>confdefs.h
29066 # Mips, LoongArch and HP-UX need the GNU assembler.
29067 # Linux on IA64 might be able to use the Intel assembler.
29070 mips*-*-* | loongarch*-*-* | *-*-hpux* )
29071 if test x$gas_flag = xyes \
29072 || test x"$host" != x"$build" \
29073 || test ! -x "$gcc_cv_as" \
29074 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
29077 echo "*** This configuration requires the GNU assembler" >&2
29083 # AMD GCN needs the LLVM assembler and linker.
29084 # Test that LLVM is at least 13.0.1.
29087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm assembler version" >&5
29088 $as_echo_n "checking llvm assembler version... " >&6; }
29089 gcc_cv_as_version="unknown"
29090 if test x$gcc_cv_as != x; then
29091 gcc_cv_as_version=`$gcc_cv_as --version 2>&1 | sed -ne '/version/s/.* \([0-9]\)/\1/p' || echo error`
29092 case "$gcc_cv_as_version" in
29093 13.0.[1-9]*) ;; # 13.0.1+
29094 13.[1-9]*) ;; # 13.1+
29095 1[4-9]*) ;; # 14..19
29096 [2-9][0-9]*) ;; # 20..99
29097 [1-9][0-9][0-9]*) ;; # 100+
29098 error) as_fn_error $? "cannot determine LLVM version" "$LINENO" 5 ;;
29099 *) as_fn_error $? "LLVM 13.0.1 or later is required (found LLVM $gcc_cv_as_version)" "$LINENO" 5 ;;
29102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_version, ok" >&5
29103 $as_echo "$gcc_cv_as_version, ok" >&6; }
29109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembler for arm accepts context-specific architecture extensions" >&5
29110 $as_echo_n "checking assembler for assembler for arm accepts context-specific architecture extensions... " >&6; }
29111 if ${gcc_cv_as_arm_option_extensions+:} false; then :
29112 $as_echo_n "(cached) " >&6
29114 gcc_cv_as_arm_option_extensions=no
29115 if test x$gcc_cv_as != x; then
29119 vmov.f32 s0, s1' > conftest.s
29120 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -march=armv8.1-m.main+mve -o conftest.o conftest.s >&5'
29121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29122 (eval $ac_try) 2>&5
29124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29125 test $ac_status = 0; }; }
29127 gcc_cv_as_arm_option_extensions=yes
29129 echo "configure: failed program was" >&5
29132 rm -f conftest.o conftest.s
29135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_arm_option_extensions" >&5
29136 $as_echo "$gcc_cv_as_arm_option_extensions" >&6; }
29137 if test $gcc_cv_as_arm_option_extensions = yes; then
29139 $as_echo "#define HAVE_GAS_ARM_EXTENDED_ARCH 1" >>confdefs.h
29145 # ??? Not all targets support dwarf2 debug_line, even within a version
29146 # of gas. Moreover, we need to emit a valid instruction to trigger any
29147 # info to the output file. So, as supported targets are added to gas 2.11,
29148 # add some instruction here to (also) show we expect this might work.
29149 # ??? Once 2.11 is released, probably need to add first known working
29150 # version to the per-target configury.
29151 case "$cpu_type" in
29152 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | loongarch | m32c \
29153 | m68k | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
29154 | visium | xstormy16 | xtensa)
29164 if test x"$insn" != x; then
29166 .file 1 \"conftest.s\"
29169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
29170 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
29171 if ${gcc_cv_as_dwarf2_debug_line+:} false; then :
29172 $as_echo_n "(cached) " >&6
29174 gcc_cv_as_dwarf2_debug_line=no
29175 if test x$gcc_cv_as != x; then
29176 $as_echo "$conftest_s" > conftest.s
29177 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29179 (eval $ac_try) 2>&5
29181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29182 test $ac_status = 0; }; }
29184 if test x$gcc_cv_objdump != x \
29185 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
29186 | grep debug_line > /dev/null 2>&1; then
29187 gcc_cv_as_dwarf2_debug_line=yes
29188 elif test x$gcc_cv_otool != x \
29189 && $gcc_cv_otool -l conftest.o 2> /dev/null \
29190 | grep debug_line > /dev/null 2>&1; then
29191 gcc_cv_as_dwarf2_debug_line=yes
29194 echo "configure: failed program was" >&5
29197 rm -f conftest.o conftest.s
29200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
29201 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
29205 # The .debug_line file table must be in the exact order that
29206 # we specified the files, since these indices are also used
29207 # by DW_AT_decl_file. Approximate this test by testing if
29208 # the assembler bitches if the same index is assigned twice.
29209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
29210 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
29211 if ${gcc_cv_as_dwarf2_file_buggy+:} false; then :
29212 $as_echo_n "(cached) " >&6
29214 gcc_cv_as_dwarf2_file_buggy=no
29215 if test x$gcc_cv_as != x; then
29216 $as_echo ' .file 1 "foo.s"
29217 .file 1 "bar.s"' > conftest.s
29218 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29220 (eval $ac_try) 2>&5
29222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29223 test $ac_status = 0; }; }
29225 gcc_cv_as_dwarf2_file_buggy=yes
29227 echo "configure: failed program was" >&5
29230 rm -f conftest.o conftest.s
29233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
29234 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
29238 if test $gcc_cv_as_dwarf2_debug_line = yes \
29239 && test $gcc_cv_as_dwarf2_file_buggy = no; then
29241 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
29244 if test $gcc_cv_as_leb128 = yes; then
29246 .file 1 \"conftest.s\"
29247 .loc 1 3 0 view .LVU1
29253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
29254 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
29255 if ${gcc_cv_as_dwarf2_debug_view+:} false; then :
29256 $as_echo_n "(cached) " >&6
29258 gcc_cv_as_dwarf2_debug_view=no
29259 if test x$gcc_cv_as != x; then
29260 $as_echo "$conftest_s" > conftest.s
29261 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29263 (eval $ac_try) 2>&5
29265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29266 test $ac_status = 0; }; }
29268 gcc_cv_as_dwarf2_debug_view=yes
29270 echo "configure: failed program was" >&5
29273 rm -f conftest.o conftest.s
29276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
29277 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
29278 if test $gcc_cv_as_dwarf2_debug_view = yes; then
29280 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
29287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
29288 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
29289 if ${gcc_cv_as_gdwarf2_flag+:} false; then :
29290 $as_echo_n "(cached) " >&6
29292 gcc_cv_as_gdwarf2_flag=no
29293 if test x$gcc_cv_as != x; then
29294 $as_echo "$insn" > conftest.s
29295 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
29296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29297 (eval $ac_try) 2>&5
29299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29300 test $ac_status = 0; }; }
29302 gcc_cv_as_gdwarf2_flag=yes
29304 echo "configure: failed program was" >&5
29307 rm -f conftest.o conftest.s
29310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
29311 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
29312 if test $gcc_cv_as_gdwarf2_flag = yes; then
29314 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
29319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-5 option" >&5
29320 $as_echo_n "checking assembler for --gdwarf-5 option... " >&6; }
29321 if ${gcc_cv_as_gdwarf_5_flag+:} false; then :
29322 $as_echo_n "(cached) " >&6
29324 gcc_cv_as_gdwarf_5_flag=no
29325 if test x$gcc_cv_as != x; then
29326 $as_echo "$insn" > conftest.s
29327 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-5 -o conftest.o conftest.s >&5'
29328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29329 (eval $ac_try) 2>&5
29331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29332 test $ac_status = 0; }; }
29334 if test x$gcc_cv_objdump != x \
29335 && $gcc_cv_objdump -Wi conftest.o 2>&1 \
29336 | grep DW_TAG_compile_unit > /dev/null 2>&1; then
29337 gcc_cv_as_gdwarf_5_flag=yes;
29340 echo "configure: failed program was" >&5
29343 rm -f conftest.o conftest.s
29346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf_5_flag" >&5
29347 $as_echo "$gcc_cv_as_gdwarf_5_flag" >&6; }
29348 if test $gcc_cv_as_gdwarf_5_flag = yes; then
29350 $as_echo "#define HAVE_AS_GDWARF_5_DEBUG_FLAG 1" >>confdefs.h
29356 win32 | pe | cygwin* | mingw32*)
29357 section_flags=\"dr\"
29358 function_type=".def foo; .scl 2; .type 32; .endef"
29361 section_flags=\"\",%progbits
29362 function_type=".type foo, %function"
29363 function_size=".size foo, .-foo";;
29365 dwarf4_debug_info_size=0x46
29366 dwarf4_high_pc_form=7
29367 dwarf4_debug_aranges_size=0x2c
29369 for dwarf4_addr_size in 8 4; do
29385 .section .debug_info,$section_flags
29387 .4byte $dwarf4_debug_info_size
29389 .4byte .Ldebug_abbrev0
29390 .byte 0x$dwarf4_addr_size
29392 .ascii \"GNU C17\\0\"
29396 .${dwarf4_addr_size}byte .Ltext0
29397 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29398 .4byte .Ldebug_line0
29404 .${dwarf4_addr_size}byte .LFB0
29405 .${dwarf4_addr_size}byte .LFE0-.LFB0
29409 .section .debug_abbrev,$section_flags
29425 .byte 0x$dwarf4_high_pc_form
29446 .byte 0x$dwarf4_high_pc_form
29452 .section .debug_aranges,$section_flags
29453 .4byte $dwarf4_debug_aranges_size
29455 .4byte .Ldebug_info0
29460 .${dwarf4_addr_size}byte .Ltext0
29461 .${dwarf4_addr_size}byte .Letext0-.Ltext0
29462 .${dwarf4_addr_size}byte 0
29463 .${dwarf4_addr_size}byte 0
29464 .section .debug_line,$section_flags
29466 .4byte .LELT0-.LSLT0
29469 .4byte .LELTP0-.LASLTP0
29497 .byte 0x$dwarf4_line_sz
29499 .${dwarf4_addr_size}byte .LM1
29504 .byte 0x$dwarf4_line_sz
29506 .${dwarf4_addr_size}byte .LM2
29511 .byte 0x$dwarf4_line_sz
29513 .${dwarf4_addr_size}byte .Letext0
29518 .section .debug_str,$section_flags
29522 if test $dwarf4_addr_size = 4; then
29523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 32-bit .debug_line" >&5
29524 $as_echo_n "checking assembler for assembly of compiler generated 32-bit .debug_line... " >&6; }
29525 if ${gcc_cv_as_debug_line_32_flag+:} false; then :
29526 $as_echo_n "(cached) " >&6
29528 gcc_cv_as_debug_line_32_flag=no
29529 if test x$gcc_cv_as != x; then
29530 $as_echo "$conftest_s" > conftest.s
29531 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29533 (eval $ac_try) 2>&5
29535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29536 test $ac_status = 0; }; }
29538 gcc_cv_as_debug_line_32_flag=yes
29540 echo "configure: failed program was" >&5
29543 rm -f conftest.o conftest.s
29546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_32_flag" >&5
29547 $as_echo "$gcc_cv_as_debug_line_32_flag" >&6; }
29548 if test $gcc_cv_as_debug_line_32_flag = yes; then
29553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for assembly of compiler generated 64-bit .debug_line" >&5
29554 $as_echo_n "checking assembler for assembly of compiler generated 64-bit .debug_line... " >&6; }
29555 if ${gcc_cv_as_debug_line_64_flag+:} false; then :
29556 $as_echo_n "(cached) " >&6
29558 gcc_cv_as_debug_line_64_flag=no
29559 if test x$gcc_cv_as != x; then
29560 $as_echo "$conftest_s" > conftest.s
29561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29563 (eval $ac_try) 2>&5
29565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29566 test $ac_status = 0; }; }
29568 gcc_cv_as_debug_line_64_flag=yes
29570 echo "configure: failed program was" >&5
29573 rm -f conftest.o conftest.s
29576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_line_64_flag" >&5
29577 $as_echo "$gcc_cv_as_debug_line_64_flag" >&6; }
29578 if test $gcc_cv_as_debug_line_64_flag = yes; then
29583 if test $dwarf4_success = yes; then
29585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 not refusing compiler generated .debug_line" >&5
29586 $as_echo_n "checking assembler for --gdwarf-4 not refusing compiler generated .debug_line... " >&6; }
29587 if ${gcc_cv_as_dwarf_4_debug_line_flag+:} false; then :
29588 $as_echo_n "(cached) " >&6
29590 gcc_cv_as_dwarf_4_debug_line_flag=no
29591 if test x$gcc_cv_as != x; then
29592 $as_echo "$conftest_s" > conftest.s
29593 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29595 (eval $ac_try) 2>&5
29597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29598 test $ac_status = 0; }; }
29600 gcc_cv_as_dwarf_4_debug_line_flag=yes
29602 echo "configure: failed program was" >&5
29605 rm -f conftest.o conftest.s
29608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_debug_line_flag" >&5
29609 $as_echo "$gcc_cv_as_dwarf_4_debug_line_flag" >&6; }
29610 if test $gcc_cv_as_dwarf_4_debug_line_flag = yes; then
29616 dwarf4_debug_info_size=0x36
29617 dwarf4_high_pc_form=6
29618 dwarf4_debug_aranges_size=0x1c
29622 if test $dwarf4_success = yes; then
29640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf-4 with the APP marker" >&5
29641 $as_echo_n "checking assembler for --gdwarf-4 with the APP marker... " >&6; }
29642 if ${gcc_cv_as_dwarf_4_app_flag+:} false; then :
29643 $as_echo_n "(cached) " >&6
29645 gcc_cv_as_dwarf_4_app_flag=no
29646 if test x$gcc_cv_as != x; then
29647 $as_echo "$conftest_s" > conftest.s
29648 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29650 (eval $ac_try) 2>&5
29652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29653 test $ac_status = 0; }; }
29655 gcc_cv_as_dwarf_4_app_flag=yes
29657 echo "configure: failed program was" >&5
29660 rm -f conftest.o conftest.s
29663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf_4_app_flag" >&5
29664 $as_echo "$gcc_cv_as_dwarf_4_app_flag" >&6; }
29665 if test $gcc_cv_as_dwarf_4_app_flag = yes; then
29671 if test $dwarf4_success = yes; then
29681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working --gdwarf-4/--gdwarf-5 for all sources" >&5
29682 $as_echo_n "checking assembler for working --gdwarf-4/--gdwarf-5 for all sources... " >&6; }
29683 if ${gcc_cv_as_working_gdwarf_n_flag+:} false; then :
29684 $as_echo_n "(cached) " >&6
29686 gcc_cv_as_working_gdwarf_n_flag=no
29687 if test x$gcc_cv_as != x; then
29688 $as_echo "$conftest_s" > conftest.s
29689 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf-4 -o conftest.o conftest.s >&5'
29690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29691 (eval $ac_try) 2>&5
29693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29694 test $ac_status = 0; }; }
29696 if test x$gcc_cv_objdump != x \
29697 && $gcc_cv_objdump -W conftest.o 2>&1 \
29698 | grep conftest.s > /dev/null 2>&1; then
29699 gcc_cv_as_working_gdwarf_n_flag=no
29701 gcc_cv_as_working_gdwarf_n_flag=yes
29704 echo "configure: failed program was" >&5
29707 rm -f conftest.o conftest.s
29710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_working_gdwarf_n_flag" >&5
29711 $as_echo "$gcc_cv_as_working_gdwarf_n_flag" >&6; }
29714 if test $gcc_cv_as_working_gdwarf_n_flag = yes; then
29716 $as_echo "#define HAVE_AS_WORKING_DWARF_N_FLAG 1" >>confdefs.h
29721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
29722 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
29723 if ${gcc_cv_as_debug_prefix_map_flag+:} false; then :
29724 $as_echo_n "(cached) " >&6
29726 gcc_cv_as_debug_prefix_map_flag=no
29727 if test x$gcc_cv_as != x; then
29728 $as_echo "$insn" > conftest.s
29729 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
29730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29731 (eval $ac_try) 2>&5
29733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29734 test $ac_status = 0; }; }
29736 gcc_cv_as_debug_prefix_map_flag=yes
29738 echo "configure: failed program was" >&5
29741 rm -f conftest.o conftest.s
29744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
29745 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
29746 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
29748 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
29754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
29755 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
29756 if ${gcc_cv_as_compress_debug+:} false; then :
29757 $as_echo_n "(cached) " >&6
29759 gcc_cv_as_compress_debug=no
29760 if test x$gcc_cv_as != x; then
29761 $as_echo '' > conftest.s
29762 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29764 (eval $ac_try) 2>&5
29766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29767 test $ac_status = 0; }; }
29769 # gas compiled without zlib cannot compress debug sections and warns
29770 # about it, but still exits successfully. So check for this, too.
29771 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
29773 gcc_cv_as_compress_debug=0
29774 elif $gcc_cv_as --compress-debug-sections=zlib -o conftest.o conftest.s > /dev/null 2>&1
29776 gcc_cv_as_compress_debug=1
29777 gcc_cv_as_compress_debug_option="--compress-debug-sections"
29778 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
29779 # Since binutils 2.40, gas supports --compress-debug-sections=zstd.
29780 if $gcc_cv_as --compress-debug-sections=zstd -o conftest.o conftest.s > /dev/null 2>&1
29782 gcc_cv_as_compress_debug=2
29785 gcc_cv_as_compress_debug=0
29788 echo "configure: failed program was" >&5
29791 rm -f conftest.o conftest.s
29794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
29795 $as_echo "$gcc_cv_as_compress_debug" >&6; }
29799 cat >>confdefs.h <<_ACEOF
29800 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
29804 cat >>confdefs.h <<_ACEOF
29805 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
29809 cat >>confdefs.h <<_ACEOF
29810 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
29814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
29815 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
29816 if ${gcc_cv_as_lcomm_with_alignment+:} false; then :
29817 $as_echo_n "(cached) " >&6
29819 gcc_cv_as_lcomm_with_alignment=no
29820 if test x$gcc_cv_as != x; then
29821 $as_echo '.lcomm bar,4,16' > conftest.s
29822 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29824 (eval $ac_try) 2>&5
29826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29827 test $ac_status = 0; }; }
29829 gcc_cv_as_lcomm_with_alignment=yes
29831 echo "configure: failed program was" >&5
29834 rm -f conftest.o conftest.s
29837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
29838 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
29839 if test $gcc_cv_as_lcomm_with_alignment = yes; then
29841 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
29846 if test x$with_sysroot = x && test x$host = x$target \
29847 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
29848 && test "$prefix" != "NONE"; then
29850 cat >>confdefs.h <<_ACEOF
29851 #define PREFIX_INCLUDE_DIR "$prefix/include"
29856 # Determine the version of glibc, if any, used on the target.
29857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
29858 $as_echo_n "checking for target glibc version... " >&6; }
29860 # Check whether --with-glibc-version was given.
29861 if test "${with_glibc_version+set}" = set; then :
29862 withval=$with_glibc_version;
29863 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
29864 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
29865 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
29867 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
29871 glibc_version_major=0
29872 glibc_version_minor=0
29873 if test -f $target_header_dir/features.h \
29874 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
29875 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
29876 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
29877 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
29881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
29882 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
29884 cat >>confdefs.h <<_ACEOF
29885 #define TARGET_GLIBC_MAJOR $glibc_version_major
29889 cat >>confdefs.h <<_ACEOF
29890 #define TARGET_GLIBC_MINOR $glibc_version_minor
29894 # Check whether --enable-gnu-unique-object was given.
29895 if test "${enable_gnu_unique_object+set}" = set; then :
29896 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
29898 *) as_fn_error $? "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
29899 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
29902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
29903 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
29904 if ${gcc_cv_as_gnu_unique_object+:} false; then :
29905 $as_echo_n "(cached) " >&6
29907 gcc_cv_as_gnu_unique_object=no
29908 if test x$gcc_cv_as != x; then
29909 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
29910 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
29911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29912 (eval $ac_try) 2>&5
29914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29915 test $ac_status = 0; }; }
29917 gcc_cv_as_gnu_unique_object=yes
29919 echo "configure: failed program was" >&5
29922 rm -f conftest.o conftest.s
29925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
29926 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
29927 if test $gcc_cv_as_gnu_unique_object = yes; then
29928 # We need to unquote above to to use the definition from config.gcc.
29929 # Also check for ld.so support, i.e. glibc 2.11 or higher.
29931 if test $glibc_version_major -gt 2 \
29932 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
29933 enable_gnu_unique_object=yes
29940 if test x$enable_gnu_unique_object = xyes; then
29942 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
29946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
29947 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
29948 if ${gcc_cv_as_line_zero+:} false; then :
29949 $as_echo_n "(cached) " >&6
29951 gcc_cv_as_line_zero=no
29952 if test "x$gcc_cv_as" != x; then
29953 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
29954 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
29955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29956 (eval $ac_try) 2>&5
29958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29959 test $ac_status = 0; }; } &&
29960 test "x`cat conftest.out`" = x
29962 gcc_cv_as_line_zero=yes
29964 echo "configure: failed program was" >&5
29966 echo "configure: error output was" >&5
29967 cat conftest.out >&5
29969 rm -f conftest.o conftest.s conftest.out
29972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
29973 $as_echo "$gcc_cv_as_line_zero" >&6; }
29974 if test "x$gcc_cv_as_line_zero" = xyes; then
29976 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
29980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
29981 $as_echo_n "checking support for thin archives... " >&6; }
29982 thin_archive_support=no
29983 echo 'int main (void) { return 0; }' > conftest.c
29984 if ($AR --version | sed 1q | grep "GNU ar" \
29985 && $CC $CFLAGS -c conftest.c \
29986 && $AR rcT conftest.a conftest.o \
29987 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
29988 thin_archive_support=yes
29990 rm -f conftest.c conftest.o conftest.a conftest
29991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
29992 $as_echo "$thin_archive_support" >&6; }
29995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
29996 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
29997 gcc_cv_ld_eh_frame_hdr=no
29998 if test $in_tree_ld = yes ; then
29999 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 \
30000 && test $in_tree_ld_is_elf = yes; then
30001 gcc_cv_ld_eh_frame_hdr=yes
30003 elif test x$gcc_cv_ld != x; then
30004 if echo "$ld_ver" | grep GNU > /dev/null; then
30005 # Check if linker supports --eh-frame-hdr option
30006 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
30007 gcc_cv_ld_eh_frame_hdr=yes
30012 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
30013 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
30014 gcc_cv_ld_eh_frame_hdr=yes
30021 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
30023 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
30026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
30027 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
30029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
30030 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
30031 gcc_cv_ld_eh_frame_ciev3=no
30032 if test $in_tree_ld = yes ; then
30033 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 \
30034 && test $in_tree_ld_is_elf = yes; then
30035 gcc_cv_ld_eh_frame_ciev3=yes
30037 elif test x$gcc_cv_ld != x; then
30038 if echo "$ld_ver" | grep GNU > /dev/null; then
30039 gcc_cv_ld_eh_frame_ciev3=yes
30040 if test 0"$ld_date" -lt 20040513; then
30041 if test -n "$ld_date"; then
30042 # If there was date string, but was earlier than 2004-05-13, fail
30043 gcc_cv_ld_eh_frame_ciev3=no
30044 elif test "$ld_vers_major" -lt 2; then
30045 gcc_cv_ld_eh_frame_ciev3=no
30046 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
30047 gcc_cv_ld_eh_frame_ciev3=no
30053 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
30054 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
30055 gcc_cv_ld_eh_frame_ciev3=yes
30062 cat >>confdefs.h <<_ACEOF
30063 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
30066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
30067 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
30069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
30070 $as_echo_n "checking linker position independent executable support... " >&6; }
30072 if test $in_tree_ld = yes ; then
30074 # Full PIE support on Solaris was only introduced in gld 2.26.
30075 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
30076 *) gcc_gld_pie_min_version=15 ;;
30078 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 \
30079 && test $in_tree_ld_is_elf = yes; then
30082 elif test x$gcc_cv_ld != x; then
30083 # Check if linker supports -pie option
30084 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
30088 if echo "$ld_ver" | grep GNU > /dev/null \
30089 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
30096 *-*-solaris2.1[1-9]*)
30097 # Solaris 11.3 added PIE support.
30098 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
30105 if test x"$gcc_cv_ld_pie" = xyes; then
30107 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
30110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
30111 $as_echo "$gcc_cv_ld_pie" >&6; }
30113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
30114 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
30115 gcc_cv_ld_pie_copyreloc=no
30116 if test $gcc_cv_ld_pie = yes ; then
30117 if test $in_tree_ld = yes ; then
30118 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
30119 gcc_cv_ld_pie_copyreloc=yes
30121 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30122 # Check if linker supports -pie option with copy reloc
30124 i?86-*-linux* | x86_64-*-linux*)
30125 cat > conftest1.s <<EOF
30128 .type a_glob, @object
30133 cat > conftest2.s <<EOF
30136 .type main, @function
30138 movl %eax, a_glob(%rip)
30141 .section .data.rel,"aw",@progbits
30146 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30147 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
30148 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30149 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
30150 gcc_cv_ld_pie_copyreloc=yes
30152 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
30158 cat >>confdefs.h <<_ACEOF
30159 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
30162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
30163 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
30165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
30166 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
30167 gcc_cv_ld_eh_gc_sections=no
30168 if test $in_tree_ld = yes ; then
30169 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 \
30170 && test $in_tree_ld_is_elf = yes; then
30171 gcc_cv_ld_eh_gc_sections=yes
30173 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
30174 cat > conftest.s <<EOF
30177 .type _start, @function
30180 .size _start, .-_start
30181 .section .text.foo,"ax",@progbits
30182 .type foo, @function
30186 .section .gcc_except_table.foo,"a",@progbits
30189 .section .eh_frame,"a",@progbits
30192 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30193 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30194 | grep "gc-sections option ignored" > /dev/null; then
30195 gcc_cv_ld_eh_gc_sections=no
30196 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30197 | grep gcc_except_table > /dev/null; then
30198 gcc_cv_ld_eh_gc_sections=yes
30199 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
30200 if test x$gcc_cv_as_comdat_group != xyes; then
30201 gcc_cv_ld_eh_gc_sections=no
30202 cat > conftest.s <<EOF
30205 .type _start, @function
30208 .size _start, .-_start
30209 .section .gnu.linkonce.t.foo,"ax",@progbits
30210 .type foo, @function
30214 .section .gcc_except_table.foo,"a",@progbits
30217 .section .eh_frame,"a",@progbits
30220 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30221 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30222 | grep "gc-sections option ignored" > /dev/null; then
30223 gcc_cv_ld_eh_gc_sections=no
30224 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30225 | grep gcc_except_table > /dev/null; then
30226 gcc_cv_ld_eh_gc_sections=yes
30232 rm -f conftest.s conftest.o conftest
30236 # ??? This apparently exposes a binutils bug with PC-relative relocations.
30237 gcc_cv_ld_eh_gc_sections=no
30240 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
30242 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
30245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
30246 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
30248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
30249 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
30250 gcc_cv_ld_eh_gc_sections_bug=no
30251 if test $in_tree_ld = yes ; then
30252 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 \
30253 && test $in_tree_ld_is_elf = yes; then
30254 gcc_cv_ld_eh_gc_sections_bug=yes
30256 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
30257 gcc_cv_ld_eh_gc_sections_bug=yes
30258 cat > conftest.s <<EOF
30261 .type _start, @function
30264 .size _start, .-_start
30265 .section .text.startup.foo,"ax",@progbits
30266 .type foo, @function
30270 .section .gcc_except_table.foo,"a",@progbits
30273 .section .eh_frame,"a",@progbits
30276 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
30277 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
30278 | grep "gc-sections option ignored" > /dev/null; then
30280 elif $gcc_cv_objdump -h conftest 2> /dev/null \
30281 | grep gcc_except_table > /dev/null; then
30282 gcc_cv_ld_eh_gc_sections_bug=no
30285 rm -f conftest.s conftest.o conftest
30287 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
30289 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
30292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
30293 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
30295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
30296 $as_echo_n "checking linker for compressed debug sections... " >&6; }
30297 # GNU ld/gold support --compressed-debug-sections=zlib since binutils 2.26.
30298 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zlib-gabi\>' > /dev/null; then
30299 gcc_cv_ld_compress_debug=1
30300 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
30301 # Detect zstd debug section compression support
30302 if $gcc_cv_ld --help 2>&1 | grep -- '--compress-debug-sections.*\<zstd\>' > /dev/null; then
30303 gcc_cv_ld_compress_debug=2
30306 case "${target}" in
30308 # Introduced in Solaris 11.2.
30309 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
30310 gcc_cv_ld_compress_debug=1
30311 gcc_cv_ld_compress_debug_option="-z compress-sections"
30313 gcc_cv_ld_compress_debug=0
30317 # Assume linkers other than GNU ld don't support compessed debug
30319 gcc_cv_ld_compress_debug=0
30324 cat >>confdefs.h <<_ACEOF
30325 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
30329 cat >>confdefs.h <<_ACEOF
30330 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
30333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
30334 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
30336 if test x"$ld64_flag" = x"yes"; then
30338 # Set defaults for possibly untestable items.
30339 gcc_cv_ld64_export_dynamic=0
30340 gcc_cv_ld64_platform_version=0
30342 if test "$build" = "$host"; then
30348 # On Darwin, because of FAT library support, it is often possible to execute
30349 # exes from compatible archs even when the host differs from the build system.
30350 case "$build","$host" in
30351 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
30352 darwin_try_test=1;;
30356 # If the configurer specified a minimum ld64 version to be supported, then use
30357 # that to determine feature support.
30358 if test x"${gcc_cv_ld64_version}" != x; then
30359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
30360 $as_echo_n "checking ld64 specified version... " >&6; }
30361 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
30362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
30363 $as_echo "$gcc_cv_ld64_major" >&6; }
30364 if test "$gcc_cv_ld64_major" -ge 236; then
30365 gcc_cv_ld64_export_dynamic=1
30367 if test "$gcc_cv_ld64_major" -ge 512; then
30368 gcc_cv_ld64_platform_version=1
30370 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
30371 # If the version was not specified, try to find it.
30372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
30373 $as_echo_n "checking linker version... " >&6; }
30374 if test x"${gcc_cv_ld64_version}" = x; then
30375 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
30377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
30378 $as_echo "$gcc_cv_ld64_version" >&6; }
30380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
30381 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
30382 gcc_cv_ld64_export_dynamic=1
30383 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30384 gcc_cv_ld64_export_dynamic=0
30386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
30387 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
30389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -platform_version support" >&5
30390 $as_echo_n "checking linker for -platform_version support... " >&6; }
30391 gcc_cv_ld64_platform_version=1
30392 if $gcc_cv_ld -platform_version macos 10.5 0.0 < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
30393 gcc_cv_ld64_platform_version=0
30395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_platform_version" >&5
30396 $as_echo "$gcc_cv_ld64_platform_version" >&6; }
30399 if test x"${gcc_cv_ld64_version}" != x; then
30401 cat >>confdefs.h <<_ACEOF
30402 #define LD64_VERSION "${gcc_cv_ld64_version}"
30408 cat >>confdefs.h <<_ACEOF
30409 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
30414 cat >>confdefs.h <<_ACEOF
30415 #define LD64_HAS_PLATFORM_VERSION $gcc_cv_ld64_platform_version
30420 if test x"$dsymutil_flag" = x"yes"; then
30422 # If the user specified a dsymutil path, then we will already have the
30423 # version string, otherwise, pick it up.
30424 if test x"$gcc_cv_dsymutil" = x; then
30425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dsymutil is a required tool for this system, but not found" >&5
30426 $as_echo "$as_me: WARNING: dsymutil is a required tool for this system, but not found" >&2;}
30427 dsymutil_vers="tool unspecified"
30428 elif test x"$dsymutil_vers" = x; then
30429 dsymutil_vers=`$gcc_cv_dsymutil -v /dev/null 2>&1`
30432 dsymutil_temp=`echo $dsymutil_vers | sed 1q`
30433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dsymutil version \"$dsymutil_temp\"" >&5
30434 $as_echo_n "checking dsymutil version \"$dsymutil_temp\"... " >&6; }
30435 if echo $dsymutil_temp | grep dwarfutils- > /dev/null; then
30436 dsymutil_kind=DWARFUTILS
30437 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*dwarfutils-\([0-9\.]*\).*/\1/'`
30438 elif echo $dsymutil_temp | grep clang- > /dev/null; then
30439 dsymutil_kind=CLANG
30440 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*clang-\([0-9\.]*\).*/\1/'`
30441 elif echo $dsymutil_temp | grep 'LLVM version ' > /dev/null; then
30443 dsymutil_vers=`echo $dsymutil_temp | sed 's/.*LLVM\ version\ \([0-9\.]*\).*/\1/'`
30445 dsymutil_kind=UNKNOWN
30446 dsymutil_vers="0.0"
30448 dsymutil_major=`expr "$dsymutil_vers" : '\([0-9]*\)'`
30449 dsymutil_minor=`expr "$dsymutil_vers" : '[0-9]*\.\([0-9]*\)'`
30450 dsymutil_tiny=`expr "$dsymutil_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
30451 if test x"${dsymutil_minor}" = x; then
30454 if test x"${dsymutil_tiny}" = x; then
30458 cat >>confdefs.h <<_ACEOF
30459 #define DSYMUTIL_VERSION $dsymutil_kind,${dsymutil_major},${dsymutil_minor},${dsymutil_tiny}
30462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&5
30463 $as_echo "$dsymutil_vers : $dsymutil_kind ${dsymutil_major} ${dsymutil_minor} ${dsymutil_tiny} " >&6; }
30467 win32 | pe | cygwin* | mingw32*)
30468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken PE linker dwarf5 support" >&5
30469 $as_echo_n "checking broken PE linker dwarf5 support... " >&6; }
30470 gcc_cv_ld_broken_pe_dwarf5=yes
30471 if test $in_tree_ld = yes ; then
30472 if grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30473 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc \
30474 && grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30475 $gcc_cv_ld_gld_srcdir/scripttempl/pe*.sc; then
30476 gcc_cv_ld_broken_pe_dwarf5=no
30479 if $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_loclists.*BLOCK.*__section_alignment__.*NOLOAD.*:' \
30480 && $gcc_cv_ld --verbose 2>&1 | grep -q '\.debug_rnglists.*BLOCK.*__section_alignment__.*NOLOAD.*:'; then
30481 gcc_cv_ld_broken_pe_dwarf5=no
30484 if test x$gcc_cv_ld_broken_pe_dwarf5 = xyes; then
30486 $as_echo "#define HAVE_LD_BROKEN_PE_DWARF5 1" >>confdefs.h
30489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_broken_pe_dwarf5" >&5
30490 $as_echo "$gcc_cv_ld_broken_pe_dwarf5" >&6; }
30492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PE linker --disable-dynamicbase support" >&5
30493 $as_echo_n "checking PE linker --disable-dynamicbase support... " >&6; }
30494 gcc_cv_ld_disable_dynamicbase=no
30495 if test $in_tree_ld = yes; then
30496 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 \
30497 gcc_cv_ld_disable_dynamicbase=yes
30500 if $gcc_cv_ld --help 2>&1 | grep -q 'disable\-]dynamicbase' > /dev/null; then
30501 gcc_cv_ld_disable_dynamicbase=yes
30504 if test x"$gcc_cv_ld_disable_dynamicbase" = xyes; then
30506 $as_echo "#define HAVE_LD_PE_DISABLE_DYNAMICBASE 1" >>confdefs.h
30509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_disable_dynamicbase" >&5
30510 $as_echo "$gcc_cv_ld_disable_dynamicbase" >&6; }
30518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
30519 $as_echo_n "checking linker --as-needed support... " >&6; }
30520 if ${gcc_cv_ld_as_needed+:} false; then :
30521 $as_echo_n "(cached) " >&6
30523 gcc_cv_ld_as_needed=no
30524 gcc_cv_ld_as_needed_option='--as-needed'
30525 gcc_cv_ld_no_as_needed_option='--no-as-needed'
30526 if test $in_tree_ld = yes ; then
30527 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 \
30528 && test $in_tree_ld_is_elf = yes; then
30529 gcc_cv_ld_as_needed=yes
30530 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
30531 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30532 gcc_cv_ld_no_as_needed_option='--pop-state'
30535 elif test x$gcc_cv_ld != x; then
30536 # Check if linker supports --as-needed and --no-as-needed options
30537 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
30538 gcc_cv_ld_as_needed=yes
30539 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
30540 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
30541 && echo "$ld_ver" | grep GNU > /dev/null \
30542 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
30543 # Use these options only when both ld.bfd and ld.gold support
30544 # --push-state/--pop-state, which unfortunately wasn't added
30545 # at the same time.
30546 gcc_cv_ld_as_needed_option='--push-state --as-needed'
30547 gcc_cv_ld_no_as_needed_option='--pop-state'
30550 case "$target:$gnu_ld" in
30552 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
30554 gcc_cv_ld_as_needed=yes
30555 gcc_cv_ld_as_needed_option="-z ignore"
30556 gcc_cv_ld_no_as_needed_option="-z record"
30560 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
30561 # dl_iterate_phdr, i.e. since Solaris 11.
30563 *-*-solaris2.1[1-9]*)
30565 i?86-*-* | x86_64-*-*)
30566 if echo "$ld_ver" | grep GNU > /dev/null; then
30567 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
30568 gcc_cv_ld_as_needed=no
30574 gcc_cv_ld_as_needed=no
30579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
30580 $as_echo "$gcc_cv_ld_as_needed" >&6; }
30581 if test x"$gcc_cv_ld_as_needed" = xyes; then
30583 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
30586 cat >>confdefs.h <<_ACEOF
30587 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
30591 cat >>confdefs.h <<_ACEOF
30592 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
30597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
30598 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
30599 saved_LDFLAGS="$LDFLAGS"
30600 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
30601 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
30602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30603 /* end confdefs.h. */
30604 int main(void) {return 0;}
30606 if ac_fn_cxx_try_link "$LINENO"; then :
30607 gcc_cv_ld_clearcap=yes; break
30609 gcc_cv_ld_clearcap=no
30611 rm -f core conftest.err conftest.$ac_objext \
30612 conftest$ac_exeext conftest.$ac_ext
30614 LDFLAGS="$saved_LDFLAGS"
30615 if test "x$gcc_cv_ld_clearcap" = xyes; then
30617 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
30619 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
30622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
30623 $as_echo "$gcc_cv_ld_clearcap" >&6; }
30629 emul_name="-melf32lppc"
30632 emul_name="-melf32ppc"
30635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
30636 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
30637 if ${gcc_cv_ld_ppc_attr+:} false; then :
30638 $as_echo_n "(cached) " >&6
30640 gcc_cv_ld_ppc_attr=no
30641 if test x"$ld_is_gold" = xyes; then
30642 gcc_cv_ld_ppc_attr=yes
30643 elif test $in_tree_ld = yes ; then
30644 if test "$gcc_cv_gld_major_version" -eq 2 \
30645 -a "$gcc_cv_gld_minor_version" -ge 28 \
30646 -o "$gcc_cv_gld_major_version" -gt 2; then
30647 gcc_cv_ld_ppc_attr=yes
30649 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30650 # check that merging the long double .gnu_attribute doesn't warn
30651 cat > conftest1.s <<EOF
30654 cat > conftest2.s <<EOF
30657 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30658 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30659 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
30660 && test ! -s conftest.err; then
30661 gcc_cv_ld_ppc_attr=yes
30663 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
30667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
30668 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
30669 if test x$gcc_cv_ld_ppc_attr = xyes; then
30671 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
30677 case "$target:$tm_file" in
30678 powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
30681 emul_name="-melf64lppc"
30684 emul_name="-melf64ppc"
30687 emul_name="-melf64lppc_fbsd"
30690 emul_name="-melf64ppc_fbsd"
30693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
30694 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
30695 if ${gcc_cv_ld_no_dot_syms+:} false; then :
30696 $as_echo_n "(cached) " >&6
30698 gcc_cv_ld_no_dot_syms=no
30699 if test x"$ld_is_gold" = xyes; then
30700 gcc_cv_ld_no_dot_syms=yes
30701 elif test $in_tree_ld = yes ; then
30702 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
30703 gcc_cv_ld_no_dot_syms=yes
30705 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30706 cat > conftest1.s <<EOF
30710 cat > conftest2.s <<EOF
30711 .section ".opd","aw"
30714 .type foo,@function
30716 .quad .LEfoo,.TOC.@tocbase,0
30722 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
30723 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
30724 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
30725 gcc_cv_ld_no_dot_syms=yes
30727 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
30731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
30732 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
30733 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
30735 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
30739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30740 $as_echo_n "checking linker large toc support... " >&6; }
30741 if ${gcc_cv_ld_large_toc+:} false; then :
30742 $as_echo_n "(cached) " >&6
30744 gcc_cv_ld_large_toc=no
30745 if test x"$ld_is_gold" = xyes; then
30746 gcc_cv_ld_large_toc=yes
30747 elif test $in_tree_ld = yes ; then
30748 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
30749 gcc_cv_ld_large_toc=yes
30751 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
30752 cat > conftest.s <<EOF
30753 .section ".tbss","awT",@nobits
30759 addis 9,13,ie0@got@tprel@ha
30760 ld 9,ie0@got@tprel@l(9)
30762 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30763 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
30764 gcc_cv_ld_large_toc=yes
30766 rm -f conftest conftest.o conftest.s
30770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30771 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30772 if test x"$gcc_cv_ld_large_toc" = xyes; then
30774 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
30779 $as_echo_n "checking linker toc pointer alignment... " >&6; }
30780 if ${gcc_cv_ld_toc_align+:} false; then :
30781 $as_echo_n "(cached) " >&6
30783 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
30784 cat > conftest.s <<EOF
30789 .section .data.rel.ro,"aw",@progbits
30794 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
30795 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
30796 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)) }'`
30798 rm -f conftest conftest.o conftest.s
30802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
30803 $as_echo "$gcc_cv_ld_toc_align" >&6; }
30804 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
30806 cat >>confdefs.h <<_ACEOF
30807 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
30816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
30817 $as_echo_n "checking linker large toc support... " >&6; }
30818 if ${gcc_cv_ld_large_toc+:} false; then :
30819 $as_echo_n "(cached) " >&6
30821 gcc_cv_ld_large_toc=no
30822 if test x$gcc_cv_as != x ; then
30823 cat > conftest.s <<EOF
30833 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
30834 gcc_cv_ld_large_toc=yes
30836 rm -f conftest conftest.o conftest.s
30840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
30841 $as_echo "$gcc_cv_ld_large_toc" >&6; }
30842 if test x"$gcc_cv_ld_large_toc" = xyes; then
30844 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
30850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
30851 $as_echo_n "checking linker --build-id support... " >&6; }
30852 if ${gcc_cv_ld_buildid+:} false; then :
30853 $as_echo_n "(cached) " >&6
30855 gcc_cv_ld_buildid=no
30856 if test $in_tree_ld = yes ; then
30857 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30858 "$gcc_cv_gld_minor_version" -ge 18 -o \
30859 "$gcc_cv_gld_major_version" -gt 2 \
30860 && test $in_tree_ld_is_elf = yes; then
30861 gcc_cv_ld_buildid=yes
30863 elif test x$gcc_cv_ld != x; then
30864 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
30865 gcc_cv_ld_buildid=yes
30869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
30870 $as_echo "$gcc_cv_ld_buildid" >&6; }
30871 if test x"$gcc_cv_ld_buildid" = xyes; then
30873 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
30877 # Check whether --enable-linker-build-id was given.
30878 if test "${enable_linker_build_id+set}" = set; then :
30879 enableval=$enable_linker_build_id;
30881 enable_linker_build_id=no
30885 if test x"$enable_linker_build_id" = xyes; then
30886 if test x"$gcc_cv_ld_buildid" = xyes; then
30888 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
30891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
30892 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
30896 # In binutils 2.21, GNU ld gained support for new emulations fully
30897 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
30898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
30899 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
30900 if ${gcc_cv_ld_sol2_emulation+:} false; then :
30901 $as_echo_n "(cached) " >&6
30903 gcc_cv_ld_sol2_emulation=no
30904 if test $in_tree_ld = yes ; then
30905 if test "$gcc_cv_gld_major_version" -eq 2 -a \
30906 "$gcc_cv_gld_minor_version" -ge 21 -o \
30907 "$gcc_cv_gld_major_version" -gt 2 \
30908 && test $in_tree_ld_is_elf = yes; then
30909 gcc_cv_ld_sol2_emulation=yes
30911 elif test x$gcc_cv_ld != x; then
30912 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
30913 grep _sol2 > /dev/null; then
30914 gcc_cv_ld_sol2_emulation=yes
30918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
30919 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
30920 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
30922 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
30926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
30927 $as_echo_n "checking linker --sysroot support... " >&6; }
30928 if ${gcc_cv_ld_sysroot+:} false; then :
30929 $as_echo_n "(cached) " >&6
30931 gcc_cv_ld_sysroot=no
30932 if test $in_tree_ld = yes ; then
30933 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
30934 gcc_cv_ld_sysroot=yes
30936 elif test x$gcc_cv_ld != x; then
30937 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
30938 gcc_cv_ld_sysroot=yes
30942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
30943 $as_echo "$gcc_cv_ld_sysroot" >&6; }
30944 if test x"$gcc_cv_ld_sysroot" = xyes; then
30946 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
30952 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
30953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
30954 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
30955 if ${gcc_cv_solaris_crts+:} false; then :
30956 $as_echo_n "(cached) " >&6
30958 gcc_cv_solaris_crts=no
30959 if test x$host != x$target; then
30960 if test "x$with_sysroot" = xyes; then
30961 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
30963 target_sysroot="${with_sysroot}"
30966 target_libdir="$target_sysroot/usr/lib"
30967 # At the time they were added, gcrt1.o became a symlink for backwards
30968 # compatibility on x86, while crt1.o was added on sparc, so check for that.
30970 i?86-*-solaris2* | x86_64-*-solaris2*)
30971 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
30973 sparc*-*-solaris2*)
30974 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
30978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
30979 $as_echo "$gcc_cv_solaris_crts" >&6; }
30982 if test x$gcc_cv_solaris_crts = xyes; then
30984 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
30988 # Check whether --enable-libssp was given.
30989 if test "${enable_libssp+set}" = set; then :
30990 enableval=$enable_libssp; case "${enableval}" in
30994 as_fn_error $? "unknown libssp setting $enableval" "$LINENO" 5
31000 # Test for stack protector support in target C library.
31001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
31002 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
31003 if ${gcc_cv_libc_provides_ssp+:} false; then :
31004 $as_echo_n "(cached) " >&6
31006 gcc_cv_libc_provides_ssp=no
31007 if test "x$enable_libssp" = "xno"; then
31008 gcc_cv_libc_provides_ssp=yes
31009 elif test "x$enable_libssp" = "xyes"; then
31010 gcc_cv_libc_provides_ssp=no
31014 # All versions of musl provide stack protector
31015 gcc_cv_libc_provides_ssp=yes;;
31016 *-*-linux* | *-*-kfreebsd*-gnu)
31017 # glibc 2.4 and later provides __stack_chk_fail and
31018 # either __stack_chk_guard, or TLS access to stack guard canary.
31020 if test $glibc_version_major -gt 2 \
31021 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31022 gcc_cv_libc_provides_ssp=yes
31025 if test -f $target_header_dir/features.h \
31026 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
31027 $target_header_dir/features.h > /dev/null; then
31028 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
31029 $target_header_dir/features.h > /dev/null && \
31030 test -f $target_header_dir/bits/uClibc_config.h && \
31031 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
31032 $target_header_dir/bits/uClibc_config.h > /dev/null; then
31033 gcc_cv_libc_provides_ssp=yes
31035 # all versions of Bionic support stack protector
31036 elif test -f $target_header_dir/sys/cdefs.h \
31037 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
31038 $target_header_dir/sys/cdefs.h > /dev/null; then
31039 gcc_cv_libc_provides_ssp=yes
31044 # Avoid complicated tests (see
31045 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
31046 # simply assert that glibc does provide this, which is true for all
31047 # realistically usable GNU/Hurd configurations.
31048 # All supported versions of musl provide it as well
31049 gcc_cv_libc_provides_ssp=yes;;
31050 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
31051 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
31052 if test "x$ac_cv_func___stack_chk_fail" = xyes; then :
31053 gcc_cv_libc_provides_ssp=yes
31055 echo "no __stack_chk_fail on this target"
31059 *) gcc_cv_libc_provides_ssp=no ;;
31063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
31064 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
31066 if test x$gcc_cv_libc_provides_ssp = xyes; then
31068 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
31072 # Check whether --enable-default-ssp was given.
31073 # Check whether --enable-default-ssp was given.
31074 if test "${enable_default_ssp+set}" = set; then :
31075 enableval=$enable_default_ssp;
31076 if test x$gcc_cv_libc_provides_ssp = xyes; then
31078 ia64*-*-*) enable_default_ssp=no ;;
31079 *) enable_default_ssp=$enableval ;;
31082 enable_default_ssp=no
31085 enable_default_ssp=no
31088 if test x$enable_default_ssp = xyes ; then
31090 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
31095 # Test for <sys/sdt.h> on the target.
31097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
31098 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
31100 if test -f $target_header_dir/sys/sdt.h; then
31103 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
31106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
31107 $as_echo "$have_sys_sdt_h" >&6; }
31109 # Check if TFmode long double should be used by default or not.
31110 # Some glibc targets used DFmode long double, but with glibc 2.4
31111 # and later they can use TFmode.
31113 powerpc*-*-linux* | \
31114 sparc*-*-linux* | \
31118 # Check whether --with-long-double-128 was given.
31119 if test "${with_long_double_128+set}" = set; then :
31120 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
31124 s390*-*-linux-musl*)
31125 gcc_cv_target_ldbl128=yes
31127 powerpc*-*-linux-musl*)
31128 gcc_cv_target_ldbl128=no
31132 if test $glibc_version_major -gt 2 \
31133 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
31134 gcc_cv_target_ldbl128=yes
31137 gcc_cv_target_ldbl128=no
31138 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
31139 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
31140 && gcc_cv_target_ldbl128=yes
31151 if test x$gcc_cv_target_ldbl128 = xyes; then
31153 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
31157 # Check if TFmode long double target should use the IBM extended double or IEEE
31158 # 128-bit floating point formats if long doubles are 128-bits long. The long
31159 # double type can only be switched on powerpc64 bit Linux systems where VSX is
31160 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
31163 # Check whether --with-long-double-format was given.
31164 if test "${with_long_double_format+set}" = set; then :
31165 withval=$with_long_double_format;
31166 case "$target:$with_long_double_format" in
31167 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
31170 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
31171 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
31172 case "$with_cpu" in
31173 power7 | power8 | power9 | power1*)
31177 as_fn_error $? "Configuration option --with-long-double-format is only \
31178 supported if the default cpu is power7 or newer" "$LINENO" 5
31179 with_long_double_format=""
31183 powerpc64*-*-linux*:*)
31184 as_fn_error $? "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
31185 with_long_double_format=""
31188 as_fn_error $? "Configure option --with-long-double-format is only supported \
31189 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
31190 with_long_double_format=""
31196 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
31197 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
31198 gcc_cv_libc_provides_hwcap_in_tcb=no
31202 if test $glibc_version_major -gt 2 \
31203 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
31204 gcc_cv_libc_provides_hwcap_in_tcb=yes
31208 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
31210 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
31214 # Check if the target LIBC handles PT_GNU_STACK.
31215 gcc_cv_libc_gnustack=unknown
31217 mips*-*-linux-musl*)
31218 gcc_cv_libc_gnustack=yes
31222 if test $glibc_version_major -gt 2 \
31223 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
31224 gcc_cv_libc_gnustack=yes
31228 if test x$gcc_cv_libc_gnustack = xyes; then
31230 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
31234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
31235 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
31236 gcc_cv_target_dl_iterate_phdr=unknown
31239 # <link.h> needs both a dl_iterate_phdr declaration and support for
31240 # compilation with largefile support.
31241 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
31242 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
31243 gcc_cv_target_dl_iterate_phdr=yes
31245 gcc_cv_target_dl_iterate_phdr=no
31248 *-*-dragonfly* | *-*-freebsd*)
31249 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
31250 gcc_cv_target_dl_iterate_phdr=yes
31252 gcc_cv_target_dl_iterate_phdr=no
31256 gcc_cv_target_dl_iterate_phdr=yes
31260 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
31262 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
31265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
31266 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
31268 # We no longer support different GC mechanisms. Emit an error if
31269 # the user configures with --with-gc.
31271 # Check whether --with-gc was given.
31272 if test "${with_gc+set}" = set; then :
31273 withval=$with_gc; as_fn_error $? "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
31277 # Libraries to use on the host. This will normally be set by the top
31278 # level Makefile. Here we simply capture the value for our Makefile.
31279 if test -z "${HOST_LIBS+set}"; then
31284 # Use the system's zlib library.
31286 # Use the system's zlib library.
31287 zlibdir="-L\$(top_builddir)/../zlib"
31288 zlibinc="-I\$(top_srcdir)/../zlib"
31290 # Check whether --with-system-zlib was given.
31291 if test "${with_system_zlib+set}" = set; then :
31292 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
31304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
31305 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31306 # Check whether --enable-maintainer-mode was given.
31307 if test "${enable_maintainer_mode+set}" = set; then :
31308 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
31314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
31315 $as_echo "$maintainer_mode" >&6; }
31317 if test "$maintainer_mode" = "yes"; then
31323 if test -z "$CTAGS"; then
31327 if test -z "$ETAGS"; then
31331 if test -z "$CSCOPE"; then
31337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
31338 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
31339 # Check whether --enable-link-mutex was given.
31340 if test "${enable_link_mutex+set}" = set; then :
31341 enableval=$enable_link_mutex; do_link_mutex=$enableval
31346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
31347 $as_echo "$do_link_mutex" >&6; }
31349 if test "$do_link_mutex" = "yes"; then
31352 DO_LINK_MUTEX=false
31357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to serialize linking of multiple front-ends" >&5
31358 $as_echo_n "checking whether to serialize linking of multiple front-ends... " >&6; }
31359 # Check whether --enable-link-serialization was given.
31360 if test "${enable_link_serialization+set}" = set; then :
31361 enableval=$enable_link_serialization; do_link_serialization=$enableval
31363 do_link_serialization=no
31366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_serialization" >&5
31367 $as_echo "$do_link_serialization" >&6; }
31369 case "$do_link_serialization" in
31371 DO_LINK_SERIALIZATION=1;;
31372 [1-9] | [1-9][0-9] | [1-9][0-9][0-9])
31373 DO_LINK_SERIALIZATION=$do_link_serialization;;
31375 DO_LINK_SERIALIZATION=;;
31377 as_fn_error $? "bad value ${do_link_serialization} given for --enable-link-serialization" "$LINENO" 5 ;;
31385 # Make empty files to contain the specs and options for each language.
31386 # Then add #include lines to for a compiler that has specs and/or options.
31392 # These (without "all_") are set in each config-lang.in.
31393 # `language' must be a single word so is spelled singularly.
31396 all_outputs='Makefile'
31397 # List of language configure and makefile fragments.
31398 all_lang_configurefrags=
31399 all_lang_makefrags=
31400 # Additional files for gengtype
31401 all_gtfiles="$target_gtfiles"
31403 # These are the languages that are set in --enable-languages,
31404 # and are available in the GCC tree.
31405 all_selected_languages=
31407 # Add the language fragments.
31408 # Languages are added via two mechanisms. Some information must be
31409 # recorded in makefile variables, these are defined in config-lang.in.
31410 # We accumulate them and plug them into the main Makefile.
31411 # The other mechanism is a set of hooks for each of the main targets
31412 # like `clean', `install', etc.
31414 language_hooks="Make-hooks"
31416 for lang in ${srcdir}/*/config-lang.in
31418 test "$lang" = "${srcdir}/*/config-lang.in" && continue
31420 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
31421 if test "x$lang_alias" = x
31423 echo "$lang doesn't set \$language." 1>&2
31426 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
31427 subdirs="$subdirs $subdir"
31429 # $gcc_subdir is where the gcc integration files are to be found
31430 # for a language, both for internal compiler purposes (compiler
31431 # sources implementing front-end to GCC tree converters), and for
31432 # build infrastructure purposes (Make-lang.in, etc.)
31434 # This will be <subdir> (relative to $srcdir) if a line like
31435 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
31436 # is found in <langdir>/config-lang.in, and will remain <langdir>
31439 # Except for the language alias (fetched above), the regular
31440 # "config-lang.in" contents are always retrieved from $gcc_subdir,
31441 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
31442 # only this and the language alias.
31444 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
31445 if [ "$gcc_subdir" = "" ]; then
31446 gcc_subdir="$subdir"
31449 case ",$enable_languages," in
31451 all_selected_languages="$all_selected_languages $lang_alias"
31452 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
31453 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
31464 . ${srcdir}/$gcc_subdir/config-lang.in
31465 if test "x$language" = x
31467 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
31472 case ",$enable_languages," in
31473 *,$lang_alias,*) ;;
31475 for i in $subdir_requires; do
31476 test -f "${srcdir}/$i/config-lang.in" && continue
31484 all_lang_configurefrags="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
31485 if test "x$language" = xc && test -n "$all_lang_makefrags"; then
31486 # Put c/Make-lang.in fragment first to match serialization languages order.
31487 all_lang_makefrags="\$(srcdir)/$gcc_subdir/Make-lang.in $all_lang_makefrags"
31489 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
31491 if test -f $srcdir/$gcc_subdir/lang.opt; then
31492 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
31493 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
31495 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
31496 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
31498 all_languages="$all_languages $language"
31499 all_compilers="$all_compilers $compilers"
31500 all_outputs="$all_outputs $outputs"
31501 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
31502 case ",$enable_languages," in
31505 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
31515 for language in $all_selected_languages
31517 check_languages="$check_languages check-$language"
31520 selftest_languages=
31521 for language in $all_selected_languages
31523 selftest_languages="$selftest_languages selftest-$language"
31526 # We link each language in with a set of hooks, reached indirectly via
31527 # lang.${target}. Only do so for selected languages.
31531 target_list="all.cross start.encap rest.encap tags \
31532 install-common install-man install-info install-dvi install-pdf \
31533 install-html dvi pdf html uninstall info man srcextra srcman srcinfo \
31534 mostlyclean clean distclean maintainer-clean install-plugin"
31536 for t in $target_list
31539 for lang in $all_selected_languages
31543 echo "lang.$t: $x" >> Make-hooks
31546 echo "ifeq (\$(DO_LINK_SERIALIZATION),)" >> Make-hooks
31547 echo "SERIAL_LIST =" >> Make-hooks
31548 echo else >> Make-hooks
31552 serialization_languages=c
31553 for lang in $all_selected_languages
31555 test $lang = c && continue
31556 if test $lang = lto; then
31557 serialization_languages="$serialization_languages lto1 lto2"
31559 serialization_languages="$serialization_languages $lang"
31562 for lang in $serialization_languages
31564 test $lang = c && continue
31565 lang_cnt=`expr $lang_cnt + 1`
31566 lang_list=" $prev$lang_list"
31569 echo "SERIAL_LIST = \$(wordlist \$(DO_LINK_SERIALIZATION),$lang_cnt,$lang_list)" >> Make-hooks
31570 echo endif >> Make-hooks
31571 echo "SERIAL_COUNT = `expr $lang_cnt + 1`" >> Make-hooks
31572 echo "INDEX.c = 0" >> Make-hooks
31574 for lang in $serialization_languages
31576 test $lang = c && continue
31577 echo "$lang.prev = \$(if \$(word $lang_cnt,\$(SERIAL_LIST)),\$(\$(word $lang_cnt,\$(SERIAL_LIST)).serial))" >> Make-hooks
31578 echo "INDEX.$lang = $lang_idx" >> Make-hooks
31579 lang_cnt=`expr $lang_cnt - 1`
31580 lang_idx=`expr $lang_idx + 1`
31584 # Option include files
31587 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
31588 option_includes="option-includes.mk"
31597 echo "dir ." > .gdbinit
31598 echo "dir ${srcdir}" >> .gdbinit
31599 if test x$gdb_needs_out_file_path = xyes
31601 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
31603 if test "x$subdirs" != x; then
31606 echo "dir ${srcdir}/$s" >> .gdbinit
31609 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
31610 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
31612 # Put a breakpoint on __asan_report_error to help with debugging buffer
31615 *-fsanitize=address*)
31616 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
31620 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
31624 # Find a directory in which to install a shared libgcc.
31626 # Check whether --enable-version-specific-runtime-libs was given.
31627 if test "${enable_version_specific_runtime_libs+set}" = set; then :
31628 enableval=$enable_version_specific_runtime_libs;
31632 # Substitute configuration variables
31703 if test x${build} = x${host} ; then
31704 if test x${host} = x${target} ; then
31705 echo "Links are now set up to build a native compiler for ${target}." 1>&2
31707 echo "Links are now set up to build a cross-compiler" 1>&2
31708 echo " from ${host} to ${target}." 1>&2
31711 if test x${host} = x${target} ; then
31712 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
31713 echo " for ${target}." 1>&2
31715 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
31716 echo " from ${host} to ${target}." 1>&2
31725 if test "x${ISLLIBS}" != "x" ; then
31727 $as_echo "#define HAVE_isl 1" >>confdefs.h
31731 # Check for plugin support
31732 # Check whether --enable-plugin was given.
31733 if test "${enable_plugin+set}" = set; then :
31734 enableval=$enable_plugin; enable_plugin=$enableval
31736 enable_plugin=yes; default_plugin=yes
31745 # Since plugin support under MinGW is not as straightforward as on
31746 # other platforms (e.g., we have to link import library, etc), we
31747 # only enable it if explicitly requested.
31748 if test x"$default_plugin" = x"yes"; then
31750 elif test x"$enable_plugin" = x"yes"; then
31751 # Use make's target variable to derive import library name.
31752 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
31757 if test x$build = x$host; then
31758 export_sym_check="nm${exeext} -g"
31759 elif test x$host = x$target; then
31760 export_sym_check="$gcc_cv_nm -g"
31766 if test x$build = x$host; then
31767 export_sym_check="$ac_cv_prog_OBJDUMP -T"
31768 elif test x$host = x$target; then
31769 export_sym_check="$gcc_cv_objdump -T"
31776 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
31778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
31779 $as_echo_n "checking for exported symbols... " >&6; }
31780 if test "x$export_sym_check" != x; then
31781 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
31782 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31783 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31784 : # No need to use a flag
31785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31786 $as_echo "yes" >&6; }
31788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31789 $as_echo "yes" >&6; }
31790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
31791 $as_echo_n "checking for -rdynamic... " >&6; }
31792 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
31793 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
31794 plugin_rdynamic=yes
31795 pluginlibs="-rdynamic"
31800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
31801 $as_echo "$plugin_rdynamic" >&6; }
31804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
31805 $as_echo "unable to check" >&6; }
31810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
31811 $as_echo_n "checking for library containing dlopen... " >&6; }
31812 if ${ac_cv_search_dlopen+:} false; then :
31813 $as_echo_n "(cached) " >&6
31815 ac_func_search_save_LIBS=$LIBS
31816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31817 /* end confdefs.h. */
31819 /* Override any GCC internal prototype to avoid an error.
31820 Use char because int might match the return type of a GCC
31821 builtin and then its argument prototype would still apply. */
31834 for ac_lib in '' dl; do
31835 if test -z "$ac_lib"; then
31836 ac_res="none required"
31839 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31841 if ac_fn_cxx_try_link "$LINENO"; then :
31842 ac_cv_search_dlopen=$ac_res
31844 rm -f core conftest.err conftest.$ac_objext \
31846 if ${ac_cv_search_dlopen+:} false; then :
31850 if ${ac_cv_search_dlopen+:} false; then :
31853 ac_cv_search_dlopen=no
31855 rm conftest.$ac_ext
31856 LIBS=$ac_func_search_save_LIBS
31858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
31859 $as_echo "$ac_cv_search_dlopen" >&6; }
31860 ac_res=$ac_cv_search_dlopen
31861 if test "$ac_res" != no; then :
31862 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31866 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
31867 pluginlibs="$pluginlibs -ldl"
31871 # Check that we can build shared objects with -fPIC -shared
31872 saved_LDFLAGS="$LDFLAGS"
31873 saved_CFLAGS="$CFLAGS"
31874 saved_CXXFLAGS="$CXXFLAGS"
31877 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
31878 CFLAGS="$CFLAGS -fPIC"
31879 CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
31880 CXXFLAGS="$CXXFLAGS -fPIC"
31881 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
31884 CFLAGS="$CFLAGS -fPIC"
31885 CXXFLAGS="$CXXFLAGS -fPIC"
31886 LDFLAGS="$LDFLAGS -fPIC -shared"
31889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
31890 $as_echo_n "checking for -fPIC -shared... " >&6; }
31891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31892 /* end confdefs.h. */
31902 if ac_fn_cxx_try_link "$LINENO"; then :
31903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31904 $as_echo "yes" >&6; }; have_pic_shared=yes
31906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31907 $as_echo "no" >&6; }; have_pic_shared=no
31909 rm -f core conftest.err conftest.$ac_objext \
31910 conftest$ac_exeext conftest.$ac_ext
31911 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
31915 LDFLAGS="$saved_LDFLAGS"
31916 CFLAGS="$saved_CFLAGS"
31917 CXXFLAGS="$saved_CXXFLAGS"
31919 # If plugin support had been requested but not available, fail.
31920 if test x"$enable_plugin" = x"no" ; then
31921 if test x"$default_plugin" != x"yes"; then
31923 Building GCC with plugin support requires a host that supports
31924 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
31931 if test x"$enable_plugin" = x"yes"; then
31933 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
31938 # Enable --enable-host-shared
31939 # Check whether --enable-host-shared was given.
31940 if test "${enable_host_shared+set}" = set; then :
31941 enableval=$enable_host_shared; PICFLAG=-fPIC
31950 # Check whether --enable-libquadmath-support was given.
31951 if test "${enable_libquadmath_support+set}" = set; then :
31952 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
31954 ENABLE_LIBQUADMATH_SUPPORT=yes
31957 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
31959 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
31964 # Specify what hash style to use by default.
31966 # Check whether --with-linker-hash-style was given.
31967 if test "${with_linker_hash_style+set}" = set; then :
31968 withval=$with_linker_hash_style; case x"$withval" in
31970 LINKER_HASH_STYLE=sysv
31973 LINKER_HASH_STYLE=gnu
31976 LINKER_HASH_STYLE=both
31979 as_fn_error $? "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
31983 LINKER_HASH_STYLE=''
31986 if test x"${LINKER_HASH_STYLE}" != x; then
31988 cat >>confdefs.h <<_ACEOF
31989 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
31994 # Specify what should be the default of -fdiagnostics-color option.
31996 # Check whether --with-diagnostics-color was given.
31997 if test "${with_diagnostics_color+set}" = set; then :
31998 withval=$with_diagnostics_color; case x"$withval" in
32000 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
32003 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32006 DIAGNOSTICS_COLOR_DEFAULT=-1
32009 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
32012 as_fn_error $? "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
32016 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
32020 cat >>confdefs.h <<_ACEOF
32021 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
32025 # Specify what should be the default of -fdiagnostics-urls option.
32027 # Check whether --with-diagnostics-urls was given.
32028 if test "${with_diagnostics_urls+set}" = set; then :
32029 withval=$with_diagnostics_urls; case x"$withval" in
32031 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_NO
32034 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32037 DIAGNOSTICS_URLS_DEFAULT=-1
32040 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_YES
32043 as_fn_error $? "$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
32047 DIAGNOSTICS_URLS_DEFAULT=DIAGNOSTICS_URL_AUTO
32051 cat >>confdefs.h <<_ACEOF
32052 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
32056 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
32057 # of jit/jit-playback.cc.
32058 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
32059 echo "gcc_driver_version: ${gcc_driver_version}"
32060 cat > gcc-driver-name.h <<EOF
32061 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
32064 # Check whether --enable-default-pie was given.
32065 # Check whether --enable-default-pie was given.
32066 if test "${enable_default_pie+set}" = set; then :
32067 enableval=$enable_default_pie; enable_default_pie=$enableval
32069 enable_default_pie=no
32072 if test x$enable_default_pie = xyes ; then
32074 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
32079 # Check if -fno-PIE works.
32080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
32081 $as_echo_n "checking for -fno-PIE option... " >&6; }
32082 if ${gcc_cv_c_no_fpie+:} false; then :
32083 $as_echo_n "(cached) " >&6
32085 saved_CXXFLAGS="$CXXFLAGS"
32086 CXXFLAGS="$CXXFLAGS -fno-PIE"
32087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32088 /* end confdefs.h. */
32089 int main(void) {return 0;}
32091 if ac_fn_cxx_try_compile "$LINENO"; then :
32092 gcc_cv_c_no_fpie=yes
32094 gcc_cv_c_no_fpie=no
32096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32097 CXXFLAGS="$saved_CXXFLAGS"
32099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
32100 $as_echo "$gcc_cv_c_no_fpie" >&6; }
32101 if test "$gcc_cv_c_no_fpie" = "yes"; then
32102 NO_PIE_CFLAGS="-fno-PIE"
32106 # Check if -no-pie works.
32107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
32108 $as_echo_n "checking for -no-pie option... " >&6; }
32109 if ${gcc_cv_no_pie+:} false; then :
32110 $as_echo_n "(cached) " >&6
32112 saved_LDFLAGS="$LDFLAGS"
32113 LDFLAGS="$LDFLAGS -no-pie"
32114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32115 /* end confdefs.h. */
32116 int main(void) {return 0;}
32118 if ac_fn_cxx_try_link "$LINENO"; then :
32123 rm -f core conftest.err conftest.$ac_objext \
32124 conftest$ac_exeext conftest.$ac_ext
32125 LDFLAGS="$saved_LDFLAGS"
32127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
32128 $as_echo "$gcc_cv_no_pie" >&6; }
32129 if test "$gcc_cv_no_pie" = "yes"; then
32130 NO_PIE_FLAG="-no-pie"
32134 # Enable Intel CET on Intel CET enabled host if jit is enabled.
32135 # Check whether --enable-cet was given.
32136 if test "${enable_cet+set}" = set; then :
32137 enableval=$enable_cet;
32138 case "$enableval" in
32140 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
32148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
32149 $as_echo_n "checking for CET support... " >&6; }
32152 i[34567]86-*-linux* | x86_64-*-linux*)
32154 cet_save_CFLAGS="$CFLAGS"
32155 CFLAGS="$CFLAGS -fcf-protection"
32156 case "$enable_cet" in
32158 # Check if target supports multi-byte NOPs
32159 # and if compiler and assembler support CET.
32160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32161 /* end confdefs.h. */
32167 #if !defined(__SSE2__)
32168 #error target does not support multi-byte NOPs
32177 if ac_fn_cxx_try_compile "$LINENO"; then :
32182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32185 # Check if compiler and assembler support CET.
32186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32187 /* end confdefs.h. */
32197 if ac_fn_cxx_try_compile "$LINENO"; then :
32202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32203 if test $support_cet = "no"; then
32204 if test x$enable_bootstrap != xno \
32205 && test -z "${with_build_subdir}" \
32206 && (test ! -f ../stage_current \
32207 || test `cat ../stage_current` != "stage1"); then
32208 # Require CET support only for the final GCC build.
32209 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
32211 # Don't enable CET without CET support for non-bootstrap
32212 # build, in stage1 nor for build support.
32218 CFLAGS="$cet_save_CFLAGS"
32226 cet_save_CFLAGS="$CFLAGS"
32227 CFLAGS="$CFLAGS -fcf-protection=none"
32228 cet_save_LDFLAGS="$LDFLAGS"
32229 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
32230 if test x$may_have_cet = xyes; then
32231 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
32232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32233 /* end confdefs.h. */
32243 if ac_fn_cxx_try_link "$LINENO"; then :
32248 rm -f core conftest.err conftest.$ac_objext \
32249 conftest$ac_exeext conftest.$ac_ext
32252 if test x$may_have_cet = xyes; then
32253 if test x$cross_compiling = xno; then
32254 if test "$cross_compiling" = yes; then :
32255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32257 as_fn_error $? "cannot run test program while cross compiling
32258 See \`config.log' for more details" "$LINENO" 5; }
32260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32261 /* end confdefs.h. */
32271 if ac_fn_cxx_try_run "$LINENO"; then :
32272 have_multi_byte_nop=yes
32274 have_multi_byte_nop=no
32276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32277 conftest.$ac_objext conftest.beam conftest.$ac_ext
32281 if test x$have_multi_byte_nop = xyes; then
32282 if test "$cross_compiling" = yes; then :
32283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32285 as_fn_error $? "cannot run test program while cross compiling
32286 See \`config.log' for more details" "$LINENO" 5; }
32288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32289 /* end confdefs.h. */
32297 __attribute__ ((noinline, noclone))
32298 xxx (void (*f) (void))
32304 __attribute__ ((noinline, noclone))
32318 if ac_fn_cxx_try_run "$LINENO"; then :
32323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32324 conftest.$ac_objext conftest.beam conftest.$ac_ext
32328 if test x$enable_cet = xno -a x$have_cet = xyes; then
32329 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
32333 # Enable CET in cross compiler if possible so that it will run on both
32334 # CET and non-CET hosts.
32337 if test x$enable_cet = xyes; then
32338 CET_HOST_FLAGS="-fcf-protection"
32339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32340 $as_echo "yes" >&6; }
32342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32343 $as_echo "no" >&6; }
32345 CFLAGS="$cet_save_CFLAGS"
32346 LDFLAGS="$cet_save_LDFLAGS"
32348 case x$enable_languages in
32357 # Check linker supports '-z bndplt'
32358 ld_bndplt_support=no
32359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
32360 $as_echo_n "checking linker -z bndplt option... " >&6; }
32361 if test x"$ld_is_gold" = xno; then
32362 if test $in_tree_ld = yes ; then
32363 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
32364 ld_bndplt_support=yes
32366 elif test x$gcc_cv_ld != x; then
32367 # Check if linker supports -a bndplt option
32368 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
32369 ld_bndplt_support=yes
32373 if test x"$ld_bndplt_support" = xyes; then
32375 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
32378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
32379 $as_echo "$ld_bndplt_support" >&6; }
32381 # Check linker supports '--push-state'/'--pop-state'
32382 ld_pushpopstate_support=no
32383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
32384 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
32385 if test x"$ld_is_gold" = xno; then
32386 if test $in_tree_ld = yes ; then
32387 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
32388 ld_pushpopstate_support=yes
32390 elif test x$gcc_cv_ld != x; then
32391 # Check if linker supports --push-state/--pop-state options
32392 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
32393 ld_pushpopstate_support=yes
32397 if test x"$ld_pushpopstate_support" = xyes; then
32399 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
32402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
32403 $as_echo "$ld_pushpopstate_support" >&6; }
32405 # On s390, float_t has historically been statically defined as double for no
32406 # good reason. To comply with the C standard in the light of this definition,
32407 # gcc has evaluated float expressions in double precision when in
32408 # standards-compatible mode or when given -fexcess-precision=standard. To enable
32409 # a smooth transition towards the new model used by most architectures, where
32410 # gcc describes its behavior via the macro __FLT_EVAL_METHOD__ and glibc derives
32411 # float_t from that, this behavior can be configured with
32412 # --enable-s390-excess-float-precision. When given as enabled, that flag selects
32413 # the old model. When omitted, native builds and cross compiles that have target
32414 # libc headers will detect whether libc clamps float_t to double and in that
32415 # case maintain the old model. Otherwise, they will default to the new model.
32416 # Check whether --enable-s390-excess-float-precision was given.
32417 if test "${enable_s390_excess_float_precision+set}" = set; then :
32418 enableval=$enable_s390_excess_float_precision;
32420 enable_s390_excess_float_precision=auto
32426 if test x"$enable_s390_excess_float_precision" = xauto; then
32427 # Can we autodetect the behavior of the target libc?
32428 if test "$target" = "$host" -a "$host" = "$build"; then
32429 enable_s390_excess_float_precision=autodetect
32430 elif test "x$with_headers" != xno; then
32431 # cross build. are target headers available?
32432 # carefully coerce the build-system compiler to use target headers
32433 saved_CXXFLAGS="$CXXFLAGS"
32434 fixed_XGCC_FLAGS_FOR_TARGET=`echo "$XGCC_FLAGS_FOR_TARGET" | sed 's/-B/-idirafter/g'`
32435 CROSS_TEST_CXXFLAGS="-nostdinc $fixed_XGCC_FLAGS_FOR_TARGET"
32436 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32438 /* end confdefs.h. */
32443 if ac_fn_cxx_try_compile "$LINENO"; then :
32444 enable_s390_excess_float_precision=autodetect
32446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32447 CXXFLAGS="$saved_CXXFLAGS"
32450 if test x"$enable_s390_excess_float_precision" = xautodetect; then
32451 saved_CXXFLAGS="$CXXFLAGS"
32452 if ! test "$target" = "$host" -a "$host" = "$build"; then
32453 CXXFLAGS="$CROSS_TEST_CXXFLAGS"
32454 unset CROSS_TEST_CXXFLAGS
32456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc clamping float_t to double" >&5
32457 $as_echo_n "checking for glibc clamping float_t to double... " >&6; }
32458 if ${gcc_cv_float_t_clamped_to_double+:} false; then :
32459 $as_echo_n "(cached) " >&6
32462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32463 /* end confdefs.h. */
32465 #define __FLT_EVAL_METHOD__ 0
32467 int dummy[sizeof(float_t) == sizeof(double) ? 1 : -1];
32470 if ac_fn_cxx_try_compile "$LINENO"; then :
32471 gcc_cv_float_t_clamped_to_double=yes
32473 gcc_cv_float_t_clamped_to_double=no
32475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_float_t_clamped_to_double" >&5
32478 $as_echo "$gcc_cv_float_t_clamped_to_double" >&6; }
32479 CXXFLAGS="$saved_CXXFLAGS"
32480 enable_s390_excess_float_precision="$gcc_cv_float_t_clamped_to_double"
32482 # no way to detect behavior of target libc, default to new model
32483 enable_s390_excess_float_precision=no
32488 if test x"$enable_s390_excess_float_precision" = xyes; then
32490 $as_echo "#define ENABLE_S390_EXCESS_FLOAT_PRECISION 1" >>confdefs.h
32496 # Configure the subdirectories
32497 # AC_CONFIG_SUBDIRS($subdirs)
32499 # Create the Makefile
32500 # and configure language subdirectories
32501 ac_config_files="$ac_config_files $all_outputs"
32504 ac_config_commands="$ac_config_commands default"
32506 cat >confcache <<\_ACEOF
32507 # This file is a shell script that caches the results of configure
32508 # tests run on this system so they can be shared between configure
32509 # scripts and configure runs, see configure's option --config-cache.
32510 # It is not useful on other systems. If it contains results you don't
32511 # want to keep, you may remove or edit it.
32513 # config.status only pays attention to the cache file if you give it
32514 # the --recheck option to rerun configure.
32516 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32517 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32518 # following values.
32522 # The following way of writing the cache mishandles newlines in values,
32523 # but we know of no workaround that is simple, portable, and efficient.
32524 # So, we kill variables containing newlines.
32525 # Ultrix sh set writes to stderr and can't be redirected directly,
32526 # and sets the high bit in the cache file unless we assign to the vars.
32528 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32529 eval ac_val=\$$ac_var
32533 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32534 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32537 _ | IFS | as_nl) ;; #(
32538 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32539 *) { eval $ac_var=; unset $ac_var;} ;;
32545 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32546 *${as_nl}ac_space=\ *)
32547 # `set' does not quote correctly, so add quotes: double-quote
32548 # substitution turns \\\\ into \\, and sed turns \\ into \.
32551 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32554 # `set' quotes correctly as required by POSIX, so do not add quotes.
32555 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32564 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32566 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32568 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32569 if test -w "$cache_file"; then
32570 if test "x$cache_file" != "x/dev/null"; then
32571 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32572 $as_echo "$as_me: updating cache $cache_file" >&6;}
32573 if test ! -f "$cache_file" || test -h "$cache_file"; then
32574 cat confcache >"$cache_file"
32576 case $cache_file in #(
32578 mv -f confcache "$cache_file"$$ &&
32579 mv -f "$cache_file"$$ "$cache_file" ;; #(
32581 mv -f confcache "$cache_file" ;;
32586 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32587 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32592 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32593 # Let make expand exec_prefix.
32594 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32596 DEFS=-DHAVE_CONFIG_H
32601 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32602 # 1. Remove the extension, and $U if already installed.
32603 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32604 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32605 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32606 # will be set to the directory where LIBOBJS objects are built.
32607 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32608 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32610 LIBOBJS=$ac_libobjs
32612 LTLIBOBJS=$ac_ltlibobjs
32617 : "${CONFIG_STATUS=./config.status}"
32619 ac_clean_files_save=$ac_clean_files
32620 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32621 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32622 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32624 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32626 # Generated by $as_me.
32627 # Run this file to recreate the current configuration.
32628 # Compiler output produced by configure, useful for debugging
32629 # configure, is in config.log if it exists.
32632 ac_cs_recheck=false
32635 SHELL=\${CONFIG_SHELL-$SHELL}
32638 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32639 ## -------------------- ##
32640 ## M4sh Initialization. ##
32641 ## -------------------- ##
32643 # Be more Bourne compatible
32644 DUALCASE=1; export DUALCASE # for MKS sh
32645 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32648 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32649 # is contrary to our usage. Disable this feature.
32650 alias -g '${1+"$@"}'='"$@"'
32651 setopt NO_GLOB_SUBST
32653 case `(set -o) 2>/dev/null` in #(
32665 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32666 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32668 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32669 # Prefer a ksh shell builtin over an external printf program on Solaris,
32670 # but without wasting forks for bash or zsh.
32671 if test -z "$BASH_VERSION$ZSH_VERSION" \
32672 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32673 as_echo='print -r --'
32674 as_echo_n='print -rn --'
32675 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32676 as_echo='printf %s\n'
32677 as_echo_n='printf %s'
32679 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32680 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32681 as_echo_n='/usr/ucb/echo -n'
32683 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32684 as_echo_n_body='eval
32688 expr "X$arg" : "X\\(.*\\)$as_nl";
32689 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32691 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32693 export as_echo_n_body
32694 as_echo_n='sh -c $as_echo_n_body as_echo'
32696 export as_echo_body
32697 as_echo='sh -c $as_echo_body as_echo'
32700 # The user is always right.
32701 if test "${PATH_SEPARATOR+set}" != set; then
32703 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32704 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32711 # We need space, tab and new line, in precisely that order. Quoting is
32712 # there to prevent editors from complaining about space-tab.
32713 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32714 # splitting by setting IFS to empty value.)
32717 # Find who we are. Look in the path if we contain no directory separator.
32720 *[\\/]* ) as_myself=$0 ;;
32721 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32722 for as_dir in $PATH
32725 test -z "$as_dir" && as_dir=.
32726 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32732 # We did not find ourselves, most probably we were run as `sh COMMAND'
32733 # in which case we are not to be found in the path.
32734 if test "x$as_myself" = x; then
32737 if test ! -f "$as_myself"; then
32738 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32742 # Unset variables that we do not need and which cause bugs (e.g. in
32743 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
32744 # suppresses any "Segmentation fault" message there. '((' could
32745 # trigger a bug in pdksh 5.2.14.
32746 for as_var in BASH_ENV ENV MAIL MAILPATH
32747 do eval test x\${$as_var+set} = xset \
32748 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32761 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32764 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32765 # ----------------------------------------
32766 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32767 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32768 # script with STATUS, using 1 if that was 0.
32771 as_status=$1; test $as_status -eq 0 && as_status=1
32773 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32774 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32776 $as_echo "$as_me: error: $2" >&2
32777 as_fn_exit $as_status
32781 # as_fn_set_status STATUS
32782 # -----------------------
32783 # Set $? to STATUS, without forking.
32784 as_fn_set_status ()
32787 } # as_fn_set_status
32789 # as_fn_exit STATUS
32790 # -----------------
32791 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32795 as_fn_set_status $1
32801 # Portably unset VAR.
32804 { eval $1=; unset $1;}
32806 as_unset=as_fn_unset
32807 # as_fn_append VAR VALUE
32808 # ----------------------
32809 # Append the text in VALUE to the end of the definition contained in VAR. Take
32810 # advantage of any shell optimizations that allow amortized linear growth over
32811 # repeated appends, instead of the typical quadratic growth present in naive
32813 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32814 eval 'as_fn_append ()
32825 # as_fn_arith ARG...
32826 # ------------------
32827 # Perform arithmetic evaluation on the ARGs, and store the result in the
32828 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32829 # must be portable across $(()) and expr.
32830 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32831 eval 'as_fn_arith ()
32838 as_val=`expr "$@" || test $? -eq 1`
32843 if expr a : '\(a\)' >/dev/null 2>&1 &&
32844 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32850 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32851 as_basename=basename
32856 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32862 as_me=`$as_basename -- "$0" ||
32863 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32864 X"$0" : 'X\(//\)$' \| \
32865 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32867 sed '/^.*\/\([^/][^/]*\)\/*$/{
32881 # Avoid depending upon Character Ranges.
32882 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32883 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32884 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32885 as_cr_digits='0123456789'
32886 as_cr_alnum=$as_cr_Letters$as_cr_digits
32888 ECHO_C= ECHO_N= ECHO_T=
32889 case `echo -n x` in #(((((
32891 case `echo 'xy\c'` in
32892 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32894 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
32901 rm -f conf$$ conf$$.exe conf$$.file
32902 if test -d conf$$.dir; then
32903 rm -f conf$$.dir/conf$$.file
32906 mkdir conf$$.dir 2>/dev/null
32908 if (echo >conf$$.file) 2>/dev/null; then
32909 if ln -s conf$$.file conf$$ 2>/dev/null; then
32911 # ... but there are two gotchas:
32912 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32913 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32914 # In both cases, we have to default to `cp -pR'.
32915 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32917 elif ln conf$$.file conf$$ 2>/dev/null; then
32925 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32926 rmdir conf$$.dir 2>/dev/null
32931 # Create "$as_dir" as a directory, including parents if necessary.
32936 -*) as_dir=./$as_dir;;
32938 test -d "$as_dir" || eval $as_mkdir_p || {
32942 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32943 *) as_qdir=$as_dir;;
32945 as_dirs="'$as_qdir' $as_dirs"
32946 as_dir=`$as_dirname -- "$as_dir" ||
32947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32948 X"$as_dir" : 'X\(//\)[^/]' \| \
32949 X"$as_dir" : 'X\(//\)$' \| \
32950 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32951 $as_echo X"$as_dir" |
32952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32956 /^X\(\/\/\)[^/].*/{
32969 test -d "$as_dir" && break
32971 test -z "$as_dirs" || eval "mkdir $as_dirs"
32972 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32976 if mkdir -p . 2>/dev/null; then
32977 as_mkdir_p='mkdir -p "$as_dir"'
32979 test -d ./-p && rmdir ./-p
32984 # as_fn_executable_p FILE
32985 # -----------------------
32986 # Test if FILE is an executable regular file.
32987 as_fn_executable_p ()
32989 test -f "$1" && test -x "$1"
32990 } # as_fn_executable_p
32991 as_test_x='test -x'
32992 as_executable_p=as_fn_executable_p
32994 # Sed expression to map a string onto a valid CPP name.
32995 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32997 # Sed expression to map a string onto a valid variable name.
32998 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33002 ## ----------------------------------- ##
33003 ## Main body of $CONFIG_STATUS script. ##
33004 ## ----------------------------------- ##
33006 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33009 # Save the log message, to keep $0 and so on meaningful, and to
33010 # report actual input values of CONFIG_FILES etc. instead of their
33011 # values after options handling.
33013 This file was extended by $as_me, which was
33014 generated by GNU Autoconf 2.69. Invocation command line was
33016 CONFIG_FILES = $CONFIG_FILES
33017 CONFIG_HEADERS = $CONFIG_HEADERS
33018 CONFIG_LINKS = $CONFIG_LINKS
33019 CONFIG_COMMANDS = $CONFIG_COMMANDS
33022 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33027 case $ac_config_files in *"
33028 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33031 case $ac_config_headers in *"
33032 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33037 # Files that config.status was made for.
33038 config_files="$ac_config_files"
33039 config_headers="$ac_config_headers"
33040 config_links="$ac_config_links"
33041 config_commands="$ac_config_commands"
33045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33047 \`$as_me' instantiates files and other configuration actions
33048 from templates according to the current configuration. Unless the files
33049 and actions are specified as TAGs, all are instantiated by default.
33051 Usage: $0 [OPTION]... [TAG]...
33053 -h, --help print this help, then exit
33054 -V, --version print version number and configuration settings, then exit
33055 --config print configuration, then exit
33056 -q, --quiet, --silent
33057 do not print progress messages
33058 -d, --debug don't remove temporary files
33059 --recheck update $as_me by reconfiguring in the same conditions
33060 --file=FILE[:TEMPLATE]
33061 instantiate the configuration file FILE
33062 --header=FILE[:TEMPLATE]
33063 instantiate the configuration header FILE
33065 Configuration files:
33068 Configuration headers:
33071 Configuration links:
33074 Configuration commands:
33077 Report bugs to the package provider."
33080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33081 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33084 configured by $0, generated by GNU Autoconf 2.69,
33085 with options \\"\$ac_cs_config\\"
33087 Copyright (C) 2012 Free Software Foundation, Inc.
33088 This config.status script is free software; the Free Software Foundation
33089 gives unlimited permission to copy, distribute and modify it."
33094 test -n "\$AWK" || AWK=awk
33097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33098 # The default lists apply if the user does not specify any file.
33104 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33105 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33109 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33121 # Handling of the options.
33122 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33124 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33125 $as_echo "$ac_cs_version"; exit ;;
33126 --config | --confi | --conf | --con | --co | --c )
33127 $as_echo "$ac_cs_config"; exit ;;
33128 --debug | --debu | --deb | --de | --d | -d )
33130 --file | --fil | --fi | --f )
33133 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33134 '') as_fn_error $? "missing file argument" ;;
33136 as_fn_append CONFIG_FILES " '$ac_optarg'"
33137 ac_need_defaults=false;;
33138 --header | --heade | --head | --hea )
33141 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33143 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33144 ac_need_defaults=false;;
33146 # Conflict between --help and --header
33147 as_fn_error $? "ambiguous option: \`$1'
33148 Try \`$0 --help' for more information.";;
33149 --help | --hel | -h )
33150 $as_echo "$ac_cs_usage"; exit ;;
33151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33152 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33155 # This is an error.
33156 -*) as_fn_error $? "unrecognized option: \`$1'
33157 Try \`$0 --help' for more information." ;;
33159 *) as_fn_append ac_config_targets " $1"
33160 ac_need_defaults=false ;;
33166 ac_configure_extra_args=
33168 if $ac_cs_silent; then
33170 ac_configure_extra_args="$ac_configure_extra_args --silent"
33174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33175 if \$ac_cs_recheck; then
33176 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33178 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33179 CONFIG_SHELL='$SHELL'
33180 export CONFIG_SHELL
33185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33189 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33190 ## Running $as_me. ##
33196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33200 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33201 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
33206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33208 # Handling of arguments.
33209 for ac_config_target in $ac_config_targets
33211 case $ac_config_target in
33212 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
33213 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
33214 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
33215 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
33216 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
33217 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
33218 "dsymutil") CONFIG_FILES="$CONFIG_FILES dsymutil:exec-tool.in" ;;
33219 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
33220 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
33221 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33223 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33228 # If the user did not use the arguments to specify the items to instantiate,
33229 # then the envvar interface is used. Set only those that are not.
33230 # We use the long form for the default assignment because of an extremely
33231 # bizarre bug on SunOS 4.1.3.
33232 if $ac_need_defaults; then
33233 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33234 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33235 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33236 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33239 # Have a temporary directory for convenience. Make it in the build tree
33240 # simply because there is no reason against having it here, and in addition,
33241 # creating and moving files from /tmp can sometimes cause problems.
33242 # Hook for its removal unless debugging.
33243 # Note that there is a small window in which the directory will not be cleaned:
33244 # after its creation but before its name has been assigned to `$tmp'.
33248 trap 'exit_status=$?
33249 : "${ac_tmp:=$tmp}"
33250 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33252 trap 'as_fn_exit 1' 1 2 13 15
33254 # Create a (secure) tmp directory for tmp files.
33257 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33261 tmp=./conf$$-$RANDOM
33262 (umask 077 && mkdir "$tmp")
33263 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33266 # Set up the scripts for CONFIG_FILES section.
33267 # No need to generate them if there are no CONFIG_FILES.
33268 # This happens for instance with `./config.status config.h'.
33269 if test -n "$CONFIG_FILES"; then
33271 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
33272 ac_cs_awk_getline=:
33273 ac_cs_awk_pipe_init=
33274 ac_cs_awk_read_file='
33275 while ((getline aline < (F[key])) > 0)
33278 ac_cs_awk_pipe_fini=
33280 ac_cs_awk_getline=false
33281 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
33282 ac_cs_awk_read_file='
33284 print "cat " F[key] " &&"
33285 '$ac_cs_awk_pipe_init
33286 # The final `:' finishes the AND list.
33287 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
33289 ac_cr=`echo X | tr X '\015'`
33290 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33291 # But we know of no other shell where ac_cr would be empty at this
33292 # point, so we can use a bashism as a fallback.
33293 if test "x$ac_cr" = x; then
33294 eval ac_cr=\$\'\\r\'
33296 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33297 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33300 ac_cs_awk_cr=$ac_cr
33303 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33306 # Create commands to substitute file output variables.
33308 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
33309 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
33310 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
33313 } >conf$$files.sh &&
33314 . ./conf$$files.sh ||
33315 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33316 rm -f conf$$files.sh
33319 echo "cat >conf$$subs.awk <<_ACEOF" &&
33320 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33322 } >conf$$subs.sh ||
33323 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33324 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33326 for ac_last_try in false false false false false :; do
33327 . ./conf$$subs.sh ||
33328 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33330 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33331 if test $ac_delim_n = $ac_delim_num; then
33333 elif $ac_last_try; then
33334 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33336 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33339 rm -f conf$$subs.sh
33341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33342 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33346 s/^/S["/; s/!.*/"]=/
33356 s/\(.\{148\}\)..*/\1/
33358 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33363 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33370 s/\(.\{148\}\)..*/\1/
33372 s/["\\]/\\&/g; s/^/"/; s/$/"/
33376 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33381 ' <conf$$subs.awk | sed '
33386 ' >>$CONFIG_STATUS || ac_write_fail=1
33387 rm -f conf$$subs.awk
33388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33390 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33391 for (key in S) S_is_set[key] = 1
33393 \$ac_cs_awk_pipe_init
33397 nfields = split(line, field, "@")
33399 len = length(field[1])
33400 for (i = 2; i < nfields; i++) {
33402 keylen = length(key)
33403 if (S_is_set[key]) {
33405 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33406 len += length(value) + length(field[++i])
33411 if (nfields == 3 && !substed) {
33413 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
33414 \$ac_cs_awk_read_file
33420 \$ac_cs_awk_pipe_fini
33423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33424 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33425 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33428 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33429 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33432 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
33433 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
33434 # trailing colons and then remove the whole line if VPATH becomes empty
33435 # (actually we leave an empty line to preserve line numbers).
33436 if test "x$srcdir" = x.; then
33437 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
33455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33456 fi # test -n "$CONFIG_FILES"
33458 # Set up the scripts for CONFIG_HEADERS section.
33459 # No need to generate them if there are no CONFIG_HEADERS.
33460 # This happens for instance with `./config.status Makefile'.
33461 if test -n "$CONFIG_HEADERS"; then
33462 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
33466 # Transform confdefs.h into an awk script `defines.awk', embedded as
33467 # here-document in config.status, that substitutes the proper values into
33468 # config.h.in to produce config.h.
33470 # Create a delimiter string that does not exist in confdefs.h, to ease
33471 # handling of long lines.
33473 for ac_last_try in false false :; do
33474 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
33475 if test -z "$ac_tt"; then
33477 elif $ac_last_try; then
33478 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
33480 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33484 # For the awk script, D is an array of macro values keyed by name,
33485 # likewise P contains macro parameters if any. Preserve backslash
33486 # newline sequences.
33488 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33490 s/.\{148\}/&'"$ac_delim"'/g
33493 s/^[ ]*#[ ]*define[ ][ ]*/ /
33500 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33502 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
33506 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
33507 D["\1"]=" \3\\\\\\n"\\/p
33509 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33514 s/.\{148\}/&'"$ac_delim"'/g
33519 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33522 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33524 ' <confdefs.h | sed '
33525 s/'"$ac_delim"'/"\\\
33526 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33529 for (key in D) D_is_set[key] = 1
33532 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33534 split(line, arg, " ")
33535 if (arg[1] == "#") {
33539 defundef = substr(arg[1], 2)
33542 split(mac1, mac2, "(") #)
33544 prefix = substr(line, 1, index(line, defundef) - 1)
33545 if (D_is_set[macro]) {
33546 # Preserve the white space surrounding the "#".
33547 print prefix "define", macro P[macro] D[macro]
33550 # Replace #undef with comments. This is necessary, for example,
33551 # in the case of _POSIX_SOURCE, which is predefined and required
33552 # on some systems where configure will not decide to define it.
33553 if (defundef == "undef") {
33554 print "/*", prefix defundef, macro, "*/"
33562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33563 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
33564 fi # test -n "$CONFIG_HEADERS"
33567 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
33572 :[FHLC]) ac_mode=$ac_tag; continue;;
33574 case $ac_mode$ac_tag in
33576 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
33577 :[FH]-) ac_tag=-:-;;
33578 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33595 -) ac_f="$ac_tmp/stdin";;
33596 *) # Look for the file first in the build tree, then in the source tree
33597 # (if the path is not absolute). The absolute path cannot be DOS-style,
33598 # because $ac_f cannot contain `:'.
33602 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33604 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33606 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33607 as_fn_append ac_file_inputs " '$ac_f'"
33610 # Let's still pretend it is `configure' which instantiates (i.e., don't
33611 # use $as_me), people would be surprised to read:
33612 # /* config.h. Generated by config.status. */
33613 configure_input='Generated from '`
33614 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33616 if test x"$ac_file" != x-; then
33617 configure_input="$ac_file. $configure_input"
33618 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33619 $as_echo "$as_me: creating $ac_file" >&6;}
33621 # Neutralize special characters interpreted by sed in replacement strings.
33622 case $configure_input in #(
33623 *\&* | *\|* | *\\* )
33624 ac_sed_conf_input=`$as_echo "$configure_input" |
33625 sed 's/[\\\\&|]/\\\\&/g'`;; #(
33626 *) ac_sed_conf_input=$configure_input;;
33630 *:-:* | *:-) cat >"$ac_tmp/stdin" \
33631 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33636 ac_dir=`$as_dirname -- "$ac_file" ||
33637 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33638 X"$ac_file" : 'X\(//\)[^/]' \| \
33639 X"$ac_file" : 'X\(//\)$' \| \
33640 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33641 $as_echo X"$ac_file" |
33642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33646 /^X\(\/\/\)[^/].*/{
33659 as_dir="$ac_dir"; as_fn_mkdir_p
33663 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33665 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33666 # A ".." for each directory in $ac_dir_suffix.
33667 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33668 case $ac_top_builddir_sub in
33669 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33670 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33673 ac_abs_top_builddir=$ac_pwd
33674 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33675 # for backward compatibility:
33676 ac_top_builddir=$ac_top_build_prefix
33679 .) # We are building in place.
33681 ac_top_srcdir=$ac_top_builddir_sub
33682 ac_abs_top_srcdir=$ac_pwd ;;
33683 [\\/]* | ?:[\\/]* ) # Absolute name.
33684 ac_srcdir=$srcdir$ac_dir_suffix;
33685 ac_top_srcdir=$srcdir
33686 ac_abs_top_srcdir=$srcdir ;;
33687 *) # Relative name.
33688 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33689 ac_top_srcdir=$ac_top_build_prefix$srcdir
33690 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33692 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33704 # If the template does not know about datarootdir, expand it.
33705 # FIXME: This hack should be removed a few years after 2.60.
33706 ac_datarootdir_hack=; ac_datarootdir_seen=
33717 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33718 *datarootdir*) ac_datarootdir_seen=yes;;
33719 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33721 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33724 ac_datarootdir_hack='
33725 s&@datadir@&$datadir&g
33726 s&@docdir@&$docdir&g
33727 s&@infodir@&$infodir&g
33728 s&@localedir@&$localedir&g
33729 s&@mandir@&$mandir&g
33730 s&\\\${datarootdir}&$datarootdir&g' ;;
33734 # Neutralize VPATH when `$srcdir' = `.'.
33735 # Shell code in configure.ac might set extrasub.
33736 # FIXME: do we really want to maintain this feature?
33737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33738 ac_sed_extra="$ac_vpsub
33741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33743 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33744 s|@configure_input@|$ac_sed_conf_input|;t t
33745 s&@top_builddir@&$ac_top_builddir_sub&;t t
33746 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33747 s&@srcdir@&$ac_srcdir&;t t
33748 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33749 s&@top_srcdir@&$ac_top_srcdir&;t t
33750 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33751 s&@builddir@&$ac_builddir&;t t
33752 s&@abs_builddir@&$ac_abs_builddir&;t t
33753 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33754 $ac_datarootdir_hack
33756 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
33757 if $ac_cs_awk_getline; then
33758 $AWK -f "$ac_tmp/subs.awk"
33760 $AWK -f "$ac_tmp/subs.awk" | $SHELL
33762 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33764 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33765 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33766 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
33767 "$ac_tmp/out"`; test -z "$ac_out"; } &&
33768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33769 which seems to be undefined. Please make sure it is defined" >&5
33770 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33771 which seems to be undefined. Please make sure it is defined" >&2;}
33773 rm -f "$ac_tmp/stdin"
33775 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33776 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33778 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33784 if test x"$ac_file" != x-; then
33786 $as_echo "/* $configure_input */" \
33787 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33788 } >"$ac_tmp/config.h" \
33789 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33790 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33791 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33792 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33795 mv "$ac_tmp/config.h" "$ac_file" \
33796 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33799 $as_echo "/* $configure_input */" \
33800 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33801 || as_fn_error $? "could not create -" "$LINENO" 5
33809 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
33812 # Prefer the file from the source tree if names are identical.
33813 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
33814 ac_source=$srcdir/$ac_source
33817 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
33818 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
33820 if test ! -r "$ac_source"; then
33821 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
33825 # Try a relative symlink, then a hard link, then a copy.
33827 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
33828 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
33830 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
33831 ln "$ac_source" "$ac_file" 2>/dev/null ||
33832 cp -p "$ac_source" "$ac_file" ||
33833 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
33836 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33837 $as_echo "$as_me: executing $ac_file commands" >&6;}
33842 case $ac_file$ac_mode in
33843 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
33845 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
33846 for lang in $subdirs c-family common analyzer rtl-ssa
33848 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
33850 "as":F) chmod +x as ;;
33851 "collect-ld":F) chmod +x collect-ld ;;
33852 "nm":F) chmod +x nm ;;
33853 "dsymutil":F) chmod +x dsymutil ;;
33855 case ${CONFIG_HEADERS} in
33856 *auto-host.h:config.in*)
33859 # Make sure all the subdirs exist.
33860 for d in $subdirs doc build common c-family
33862 test -d $d || mkdir $d
33872 ac_clean_files=$ac_clean_files_save
33874 test $ac_write_fail = 0 ||
33875 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33878 # configure is writing to config.log, and then calls config.status.
33879 # config.status does its own redirection, appending to config.log.
33880 # Unfortunately, on DOS this fails, as config.log is still kept open
33881 # by configure, so config.status won't be able to write to it; its
33882 # output is simply discarded. So we exec the FD to /dev/null,
33883 # effectively closing config.log, so it can be properly (re)opened and
33884 # appended to by config.status. When coming back to configure, we
33885 # need to make the FD available again.
33886 if test "$no_create" != yes; then
33888 ac_config_status_args=
33889 test "$silent" = yes &&
33890 ac_config_status_args="$ac_config_status_args --quiet"
33892 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33894 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33895 # would make configure fail if this is the last instruction.
33896 $ac_cs_success || as_fn_exit 1
33898 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33900 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}