2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir=.
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir=./$as_dir;;
291 test -d "$as_dir" || eval $as_mkdir_p || {
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
360 as_val=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status=$?; test $as_status -eq 0 && as_status=1
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487 elif ln conf$$.file conf$$ 2>/dev/null; then
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
501 test -d ./-p && rmdir ./-p
505 if test -x / >/dev/null 2>&1; then
508 if ls -dL / >/dev/null 2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
556 # Identity of this package.
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars='LTLIBOBJS
627 common_out_object_file
643 gcc_gxx_include_dir_add_sysroot
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
653 TM_MULTILIB_EXCEPTIONS_CONFIG
662 build_xm_include_list
664 build_install_headers_dir
666 all_selected_languages
685 ORIGINAL_NM_FOR_TARGET
687 ORIGINAL_LD_GOLD_FOR_TARGET
688 ORIGINAL_LD_BFD_FOR_TARGET
689 ORIGINAL_LD_FOR_TARGET
690 ORIGINAL_PLUGIN_LD_FOR_TARGET
692 ORIGINAL_AS_FOR_TARGET
710 NO_PIE_FLAG_FOR_BUILD
711 NO_PIE_CFLAGS_FOR_BUILD
738 NATIVE_SYSTEM_HEADER_DIR
771 real_target_noncanonical
772 enable_as_accelerator
786 valgrind_path_defines
816 CROSS_SYSTEM_HEADER_DIR
817 TARGET_SYSTEM_ROOT_DEFINE
819 SYSROOT_CFLAGS_FOR_TARGET
864 program_transform_name
875 ac_subst_files='option_includes
878 enable_option_checking
881 with_native_system_header_dir
886 enable_generated_files_in_srcdir
893 enable_build_format_warnings
897 enable_gather_detailed_mem_stats
898 enable_valgrind_annotations
917 enable_sjlj_exceptions
919 enable_leading_mingw64_underscores
922 enable_win32_registry
930 enable_gnu_indirect_function
931 enable_initfini_array
933 enable_fix_cortex_a53_835769
934 enable_fix_cortex_a53_843419
936 enable_gnu_unique_object
937 enable_linker_build_id
942 enable_maintainer_mode
944 enable_version_specific_runtime_libs
947 enable_libquadmath_support
948 with_linker_hash_style
949 with_diagnostics_color
952 ac_precious_vars='build_alias
971 # Initialize some variables set by options.
973 ac_init_version=false
974 ac_unrecognized_opts=
976 # The variables have the same names as the options, with
977 # dashes changed to underlines.
985 program_transform_name=s,x,x,
993 # Installation directory options.
994 # These are left unexpanded so users can "make install exec_prefix=/foo"
995 # and all the variables that are supposed to be based on exec_prefix
996 # by default will actually change.
997 # Use braces instead of parens because sh, perl, etc. also accept them.
998 # (The list follows the same order as the GNU Coding Standards.)
999 bindir='${exec_prefix}/bin'
1000 sbindir='${exec_prefix}/sbin'
1001 libexecdir='${exec_prefix}/libexec'
1002 datarootdir='${prefix}/share'
1003 datadir='${datarootdir}'
1004 sysconfdir='${prefix}/etc'
1005 sharedstatedir='${prefix}/com'
1006 localstatedir='${prefix}/var'
1007 includedir='${prefix}/include'
1008 oldincludedir='/usr/include'
1009 docdir='${datarootdir}/doc/${PACKAGE}'
1010 infodir='${datarootdir}/info'
1015 libdir='${exec_prefix}/lib'
1016 localedir='${datarootdir}/locale'
1017 mandir='${datarootdir}/man'
1023 # If the previous option needs an argument, assign it.
1024 if test -n "$ac_prev"; then
1025 eval $ac_prev=\$ac_option
1031 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 # Accept the important Cygnus configure options, so we can diagnose typos.
1037 case $ac_dashdash$ac_option in
1041 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1043 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1044 bindir=$ac_optarg ;;
1046 -build | --build | --buil | --bui | --bu)
1047 ac_prev=build_alias ;;
1048 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1049 build_alias=$ac_optarg ;;
1051 -cache-file | --cache-file | --cache-fil | --cache-fi \
1052 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1053 ac_prev=cache_file ;;
1054 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1055 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1056 cache_file=$ac_optarg ;;
1058 --config-cache | -C)
1059 cache_file=config.cache ;;
1061 -datadir | --datadir | --datadi | --datad)
1063 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1064 datadir=$ac_optarg ;;
1066 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1067 | --dataroo | --dataro | --datar)
1068 ac_prev=datarootdir ;;
1069 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1070 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1071 datarootdir=$ac_optarg ;;
1073 -disable-* | --disable-*)
1074 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 as_fn_error "invalid feature name: $ac_useropt"
1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1082 "enable_$ac_useropt"
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';;
1087 eval enable_$ac_useropt=no ;;
1089 -docdir | --docdir | --docdi | --doc | --do)
1091 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1092 docdir=$ac_optarg ;;
1094 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1096 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1097 dvidir=$ac_optarg ;;
1099 -enable-* | --enable-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error "invalid feature name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1108 "enable_$ac_useropt"
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1113 eval enable_$ac_useropt=\$ac_optarg ;;
1115 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1116 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1117 | --exec | --exe | --ex)
1118 ac_prev=exec_prefix ;;
1119 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1120 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1121 | --exec=* | --exe=* | --ex=*)
1122 exec_prefix=$ac_optarg ;;
1124 -gas | --gas | --ga | --g)
1125 # Obsolete; use --with-gas.
1128 -help | --help | --hel | --he | -h)
1129 ac_init_help=long ;;
1130 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1131 ac_init_help=recursive ;;
1132 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1133 ac_init_help=short ;;
1135 -host | --host | --hos | --ho)
1136 ac_prev=host_alias ;;
1137 -host=* | --host=* | --hos=* | --ho=*)
1138 host_alias=$ac_optarg ;;
1140 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1142 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1144 htmldir=$ac_optarg ;;
1146 -includedir | --includedir | --includedi | --included | --include \
1147 | --includ | --inclu | --incl | --inc)
1148 ac_prev=includedir ;;
1149 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1150 | --includ=* | --inclu=* | --incl=* | --inc=*)
1151 includedir=$ac_optarg ;;
1153 -infodir | --infodir | --infodi | --infod | --info | --inf)
1155 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1156 infodir=$ac_optarg ;;
1158 -libdir | --libdir | --libdi | --libd)
1160 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1161 libdir=$ac_optarg ;;
1163 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1164 | --libexe | --libex | --libe)
1165 ac_prev=libexecdir ;;
1166 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1167 | --libexe=* | --libex=* | --libe=*)
1168 libexecdir=$ac_optarg ;;
1170 -localedir | --localedir | --localedi | --localed | --locale)
1171 ac_prev=localedir ;;
1172 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1173 localedir=$ac_optarg ;;
1175 -localstatedir | --localstatedir | --localstatedi | --localstated \
1176 | --localstate | --localstat | --localsta | --localst | --locals)
1177 ac_prev=localstatedir ;;
1178 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1179 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1180 localstatedir=$ac_optarg ;;
1182 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1184 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1185 mandir=$ac_optarg ;;
1187 -nfp | --nfp | --nf)
1188 # Obsolete; use --without-fp.
1191 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1192 | --no-cr | --no-c | -n)
1195 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1196 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1199 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1200 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1201 | --oldin | --oldi | --old | --ol | --o)
1202 ac_prev=oldincludedir ;;
1203 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1204 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1205 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1206 oldincludedir=$ac_optarg ;;
1208 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1210 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1211 prefix=$ac_optarg ;;
1213 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1214 | --program-pre | --program-pr | --program-p)
1215 ac_prev=program_prefix ;;
1216 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1217 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1218 program_prefix=$ac_optarg ;;
1220 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1221 | --program-suf | --program-su | --program-s)
1222 ac_prev=program_suffix ;;
1223 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1224 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1225 program_suffix=$ac_optarg ;;
1227 -program-transform-name | --program-transform-name \
1228 | --program-transform-nam | --program-transform-na \
1229 | --program-transform-n | --program-transform- \
1230 | --program-transform | --program-transfor \
1231 | --program-transfo | --program-transf \
1232 | --program-trans | --program-tran \
1233 | --progr-tra | --program-tr | --program-t)
1234 ac_prev=program_transform_name ;;
1235 -program-transform-name=* | --program-transform-name=* \
1236 | --program-transform-nam=* | --program-transform-na=* \
1237 | --program-transform-n=* | --program-transform-=* \
1238 | --program-transform=* | --program-transfor=* \
1239 | --program-transfo=* | --program-transf=* \
1240 | --program-trans=* | --program-tran=* \
1241 | --progr-tra=* | --program-tr=* | --program-t=*)
1242 program_transform_name=$ac_optarg ;;
1244 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1246 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1247 pdfdir=$ac_optarg ;;
1249 -psdir | --psdir | --psdi | --psd | --ps)
1251 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255 | -silent | --silent | --silen | --sile | --sil)
1258 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1260 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1262 sbindir=$ac_optarg ;;
1264 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1265 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1266 | --sharedst | --shareds | --shared | --share | --shar \
1268 ac_prev=sharedstatedir ;;
1269 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1270 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1271 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1273 sharedstatedir=$ac_optarg ;;
1275 -site | --site | --sit)
1277 -site=* | --site=* | --sit=*)
1280 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1282 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1283 srcdir=$ac_optarg ;;
1285 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1286 | --syscon | --sysco | --sysc | --sys | --sy)
1287 ac_prev=sysconfdir ;;
1288 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1289 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1290 sysconfdir=$ac_optarg ;;
1292 -target | --target | --targe | --targ | --tar | --ta | --t)
1293 ac_prev=target_alias ;;
1294 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1295 target_alias=$ac_optarg ;;
1297 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1300 -version | --version | --versio | --versi | --vers | -V)
1301 ac_init_version=: ;;
1304 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1305 # Reject names that are not valid shell variable names.
1306 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307 as_fn_error "invalid package name: $ac_useropt"
1308 ac_useropt_orig=$ac_useropt
1309 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310 case $ac_user_opts in
1314 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1315 ac_unrecognized_sep=', ';;
1317 eval with_$ac_useropt=\$ac_optarg ;;
1319 -without-* | --without-*)
1320 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323 as_fn_error "invalid package name: $ac_useropt"
1324 ac_useropt_orig=$ac_useropt
1325 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326 case $ac_user_opts in
1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1331 ac_unrecognized_sep=', ';;
1333 eval with_$ac_useropt=no ;;
1336 # Obsolete; use --with-x.
1339 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1340 | --x-incl | --x-inc | --x-in | --x-i)
1341 ac_prev=x_includes ;;
1342 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1343 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1344 x_includes=$ac_optarg ;;
1346 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1347 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1348 ac_prev=x_libraries ;;
1349 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1350 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1351 x_libraries=$ac_optarg ;;
1353 -*) as_fn_error "unrecognized option: \`$ac_option'
1354 Try \`$0 --help' for more information."
1358 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1359 # Reject names that are not valid shell variable names.
1360 case $ac_envvar in #(
1361 '' | [0-9]* | *[!_$as_cr_alnum]* )
1362 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1364 eval $ac_envvar=\$ac_optarg
1365 export $ac_envvar ;;
1368 # FIXME: should be removed in autoconf 3.0.
1369 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1370 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1371 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1372 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1378 if test -n "$ac_prev"; then
1379 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1380 as_fn_error "missing argument to $ac_option"
1383 if test -n "$ac_unrecognized_opts"; then
1384 case $enable_option_checking in
1386 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1387 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1391 # Check all directory arguments for consistency.
1392 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393 datadir sysconfdir sharedstatedir localstatedir includedir \
1394 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395 libdir localedir mandir
1397 eval ac_val=\$$ac_var
1398 # Remove trailing slashes.
1401 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1402 eval $ac_var=\$ac_val;;
1404 # Be sure to have absolute directory names.
1406 [\\/$]* | ?:[\\/]* ) continue;;
1407 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1409 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1412 # There might be people who depend on the old broken behavior: `$host'
1413 # used to hold the argument of --host etc.
1414 # FIXME: To remove some day.
1417 target=$target_alias
1419 # FIXME: To remove some day.
1420 if test "x$host_alias" != x; then
1421 if test "x$build_alias" = x; then
1422 cross_compiling=maybe
1423 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1424 If a cross compiler is detected then cross compile mode will be used." >&2
1425 elif test "x$build_alias" != "x$host_alias"; then
1431 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1433 test "$silent" = yes && exec 6>/dev/null
1436 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1437 ac_ls_di=`ls -di .` &&
1438 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1439 as_fn_error "working directory cannot be determined"
1440 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1441 as_fn_error "pwd does not report name of working directory"
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446 ac_srcdir_defaulted=yes
1447 # Try the directory containing this script, then the parent directory.
1448 ac_confdir=`$as_dirname -- "$as_myself" ||
1449 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450 X"$as_myself" : 'X\(//\)[^/]' \| \
1451 X"$as_myself" : 'X\(//\)$' \| \
1452 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453 $as_echo X"$as_myself" |
1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1476 ac_srcdir_defaulted=no
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1482 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1484 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1486 # When building in place, set srcdir=.
1487 if test "$ac_abs_confdir" = "$ac_pwd"; then
1490 # Remove unnecessary trailing slashes from srcdir.
1491 # Double slashes in file names in object file debugging info
1492 # mess up M-x gdb in Emacs.
1494 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1496 for ac_var in $ac_precious_vars; do
1497 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1498 eval ac_env_${ac_var}_value=\$${ac_var}
1499 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1504 # Report the --help message.
1506 if test "$ac_init_help" = "long"; then
1507 # Omit some internal or obsolete options to make the list less imposing.
1508 # This message is too long to be a string in the A/UX 3.1 sh.
1510 \`configure' configures this package to adapt to many kinds of systems.
1512 Usage: $0 [OPTION]... [VAR=VALUE]...
1514 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1515 VAR=VALUE. See below for descriptions of some of the useful variables.
1517 Defaults for the options are specified in brackets.
1520 -h, --help display this help and exit
1521 --help=short display options specific to this package
1522 --help=recursive display the short help of all the included packages
1523 -V, --version display version information and exit
1524 -q, --quiet, --silent do not print \`checking...' messages
1525 --cache-file=FILE cache test results in FILE [disabled]
1526 -C, --config-cache alias for \`--cache-file=config.cache'
1527 -n, --no-create do not create output files
1528 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1530 Installation directories:
1531 --prefix=PREFIX install architecture-independent files in PREFIX
1532 [$ac_default_prefix]
1533 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1536 By default, \`make install' will install all the files in
1537 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1538 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1539 for instance \`--prefix=\$HOME'.
1541 For better control, use the options below.
1543 Fine tuning of the installation directories:
1544 --bindir=DIR user executables [EPREFIX/bin]
1545 --sbindir=DIR system admin executables [EPREFIX/sbin]
1546 --libexecdir=DIR program executables [EPREFIX/libexec]
1547 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1548 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1549 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1550 --libdir=DIR object code libraries [EPREFIX/lib]
1551 --includedir=DIR C header files [PREFIX/include]
1552 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1553 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1554 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1555 --infodir=DIR info documentation [DATAROOTDIR/info]
1556 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1557 --mandir=DIR man documentation [DATAROOTDIR/man]
1558 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1559 --htmldir=DIR html documentation [DOCDIR]
1560 --dvidir=DIR dvi documentation [DOCDIR]
1561 --pdfdir=DIR pdf documentation [DOCDIR]
1562 --psdir=DIR ps documentation [DOCDIR]
1568 --program-prefix=PREFIX prepend PREFIX to installed program names
1569 --program-suffix=SUFFIX append SUFFIX to installed program names
1570 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1573 --build=BUILD configure for building on BUILD [guessed]
1574 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1575 --target=TARGET configure for building compilers for TARGET [HOST]
1579 if test -n "$ac_init_help"; then
1584 --disable-option-checking ignore unrecognized --enable/--with options
1585 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1586 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1587 --enable-generated-files-in-srcdir
1588 put copies of generated files in source dir intended
1589 for creating source tarballs for users without
1590 texinfo bison or flex
1591 --disable-largefile omit support for large files
1592 --disable-build-format-warnings
1593 don't use -Wformat while building GCC
1594 --enable-werror-always enable -Werror despite compiler version
1595 --enable-checking[=LIST]
1596 enable expensive run-time checks. With LIST, enable
1597 only specific categories of checks. Categories are:
1598 yes,no,all,none,release. Flags are:
1599 assert,df,fold,gc,gcac,gimple,misc,
1600 rtlflag,rtl,runtime,tree,valgrind,types
1601 --enable-coverage[=LEVEL]
1602 enable compiler's code coverage collection. Use to
1603 measure compiler performance and locate unused parts
1604 of the compiler. With LEVEL, specify optimization.
1605 Values are opt, noopt, default is noopt
1606 --enable-gather-detailed-mem-stats
1607 enable detailed memory allocation stats gathering
1608 --enable-valgrind-annotations
1609 enable valgrind runtime interaction
1610 --enable-multilib enable library support for multiple ABIs
1611 --enable-multiarch enable support for multiarch paths
1612 --enable-__cxa_atexit enable __cxa_atexit for C++
1613 --enable-decimal-float={no,yes,bid,dpd}
1614 enable decimal float extension to C. Selecting 'bid'
1615 or 'dpd' choses which decimal floating point format
1617 --enable-fixed-point enable fixed-point arithmetic extension to C
1618 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1620 --enable-tls enable or disable generation of tls code overriding
1621 the assembler check for tls support
1622 --enable-objc-gc enable the use of Boehm's garbage collector with the
1623 GNU Objective-C runtime
1624 --disable-shared don't provide a shared libgcc
1625 --enable-languages=LIST specify which front-ends to build
1626 --disable-rpath do not hardcode runtime library paths
1627 --enable-sjlj-exceptions
1628 arrange to use setjmp/longjmp exception handling
1629 --enable-secureplt enable -msecure-plt by default for PowerPC
1630 --enable-leading-mingw64-underscores
1631 enable leading underscores on 64 bit mingw targets
1632 --enable-cld enable -mcld by default for 32bit x86
1633 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1635 --disable-win32-registry
1636 disable lookup of installation paths in the Registry
1638 --enable-win32-registry enable registry lookup (default)
1639 --enable-win32-registry=KEY
1640 use KEY instead of GCC version as the last portion
1642 --enable-shared[=PKGS] build shared libraries [default=yes]
1643 --enable-static[=PKGS] build static libraries [default=yes]
1644 --enable-fast-install[=PKGS]
1645 optimize for fast installation [default=yes]
1646 --disable-libtool-lock avoid locking (might break parallel builds)
1647 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1648 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1649 --enable-gnu-indirect-function
1650 enable the use of the @gnu_indirect_function to
1652 --enable-initfini-array use .init_array/.fini_array sections
1653 --enable-comdat enable COMDAT group support
1655 --enable-fix-cortex-a53-835769
1656 enable workaround for AArch64 Cortex-A53 erratum
1658 --disable-fix-cortex-a53-835769
1659 disable workaround for AArch64 Cortex-A53 erratum
1663 --enable-fix-cortex-a53-843419
1664 enable workaround for AArch64 Cortex-A53 erratum
1666 --disable-fix-cortex-a53-843419
1667 disable workaround for AArch64 Cortex-A53 erratum
1670 --enable-gnu-unique-object
1671 enable the use of the @gnu_unique_object ELF
1672 extension on glibc systems
1673 --enable-linker-build-id
1674 compiler will always pass --build-id to linker
1675 --enable-default-ssp enable Stack Smashing Protection as default
1676 --enable-maintainer-mode
1677 enable make rules and dependencies not useful (and
1678 sometimes confusing) to the casual installer
1679 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1680 thrashing on the build machine
1681 --enable-version-specific-runtime-libs
1682 specify that runtime libraries should be installed
1683 in a compiler-specific directory
1684 --enable-plugin enable plugin support
1685 --enable-host-shared build host code as shared libraries
1686 --disable-libquadmath-support
1687 disable libquadmath support for Fortran
1688 --enable-default-pie enable Position Independent Executable as default
1691 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1692 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1693 --with-build-libsubdir=DIR Directory where to find libraries for build system
1694 --with-local-prefix=DIR specifies directory to put local include
1695 --with-native-system-header-dir=dir
1696 use dir as the directory to look for standard
1697 system header files in. Defaults to /usr/include.
1698 --with-build-sysroot=sysroot
1699 use sysroot as the system root during the build
1700 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1701 --with-gxx-include-dir=DIR
1702 specifies directory to put g++ header files
1703 --with-cpp-install-dir=DIR
1704 install the user visible C preprocessor in DIR
1705 (relative to PREFIX) as well as PREFIX/bin
1706 --with-gnu-ld arrange to work with GNU ld
1707 --with-ld arrange to use the specified ld (full pathname)
1708 --with-demangler-in-ld try to use demangler in GNU ld
1709 --with-gnu-as arrange to work with GNU as
1710 --with-as arrange to use the specified as (full pathname)
1711 --with-stabs arrange to use stabs instead of host debug format
1712 --with-dwarf2 force the default debug format to be DWARF 2
1713 --with-specs=SPECS add SPECS to driver command-line processing
1714 --with-pkgversion=PKG Use PKG in the version string in place of "Linaro
1715 GCC `cat $srcdir/LINARO-VERSION`"
1716 --with-bugurl=URL Direct users to URL to report a bug
1717 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1718 --with-gnu-ld assume the C compiler uses GNU ld default=no
1719 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1720 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1721 --with-pic try to use only PIC/non-PIC objects [default=use
1723 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1724 --with-plugin-ld=[ARG] specify the plugin linker
1725 --with-glibc-version=M.N
1726 assume GCC used with glibc version M.N or later
1727 --with-long-double-128 use 128-bit long double by default
1728 --with-gc={page,zone} this option is not supported anymore. It used to
1729 choose the garbage collection mechanism to use with
1731 --with-system-zlib use installed libz
1732 --with-linker-hash-style={sysv,gnu,both}
1733 specify the linker hash style
1734 --with-diagnostics-color={never,auto,auto-if-env,always}
1735 specify the default of -fdiagnostics-color option
1736 auto-if-env stands for -fdiagnostics-color=auto if
1737 GCC_COLOR environment variable is present and
1738 -fdiagnostics-color=never otherwise
1740 Some influential environment variables:
1741 CC C compiler command
1742 CFLAGS C compiler flags
1743 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1744 nonstandard directory <lib dir>
1745 LIBS libraries to pass to the linker, e.g. -l<library>
1746 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1747 you have headers in a nonstandard directory <include dir>
1748 CXX C++ compiler command
1749 CXXFLAGS C++ compiler flags
1750 CXXCPP C++ preprocessor
1752 GMPLIBS How to link GMP
1753 GMPINC How to find GMP include files
1754 ISLLIBS How to link isl
1755 ISLINC How to find isl include files
1757 Use these variables to override the choices made by `configure' or to help
1758 it to find libraries and programs with nonstandard names/locations.
1760 Report bugs to the package provider.
1765 if test "$ac_init_help" = "recursive"; then
1766 # If there are subdirs, report their specific --help.
1767 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1768 test -d "$ac_dir" ||
1769 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1774 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1776 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1777 # A ".." for each directory in $ac_dir_suffix.
1778 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1779 case $ac_top_builddir_sub in
1780 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1781 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1784 ac_abs_top_builddir=$ac_pwd
1785 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1786 # for backward compatibility:
1787 ac_top_builddir=$ac_top_build_prefix
1790 .) # We are building in place.
1792 ac_top_srcdir=$ac_top_builddir_sub
1793 ac_abs_top_srcdir=$ac_pwd ;;
1794 [\\/]* | ?:[\\/]* ) # Absolute name.
1795 ac_srcdir=$srcdir$ac_dir_suffix;
1796 ac_top_srcdir=$srcdir
1797 ac_abs_top_srcdir=$srcdir ;;
1799 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1800 ac_top_srcdir=$ac_top_build_prefix$srcdir
1801 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1803 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1805 cd "$ac_dir" || { ac_status=$?; continue; }
1806 # Check for guested configure.
1807 if test -f "$ac_srcdir/configure.gnu"; then
1809 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1810 elif test -f "$ac_srcdir/configure"; then
1812 $SHELL "$ac_srcdir/configure" --help=recursive
1814 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1816 cd "$ac_pwd" || { ac_status=$?; break; }
1820 test -n "$ac_init_help" && exit $ac_status
1821 if $ac_init_version; then
1824 generated by GNU Autoconf 2.64
1826 Copyright (C) 2009 Free Software Foundation, Inc.
1827 This configure script is free software; the Free Software Foundation
1828 gives unlimited permission to copy, distribute and modify it.
1833 ## ------------------------ ##
1834 ## Autoconf initialization. ##
1835 ## ------------------------ ##
1837 # ac_fn_c_try_compile LINENO
1838 # --------------------------
1839 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_c_try_compile ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 rm -f conftest.$ac_objext
1844 if { { ac_try="$ac_compile"
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_compile") 2>conftest.err
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && {
1860 test -z "$ac_c_werror_flag" ||
1861 test ! -s conftest.err
1862 } && test -s conftest.$ac_objext; then :
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1873 } # ac_fn_c_try_compile
1875 # ac_fn_cxx_try_compile LINENO
1876 # ----------------------------
1877 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1878 ac_fn_cxx_try_compile ()
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 rm -f conftest.$ac_objext
1882 if { { ac_try="$ac_compile"
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_compile") 2>conftest.err
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && {
1898 test -z "$ac_cxx_werror_flag" ||
1899 test ! -s conftest.err
1900 } && test -s conftest.$ac_objext; then :
1903 $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1908 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911 } # ac_fn_cxx_try_compile
1913 # ac_fn_cxx_try_cpp LINENO
1914 # ------------------------
1915 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1916 ac_fn_cxx_try_cpp ()
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 if { { ac_try="$ac_cpp conftest.$ac_ext"
1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922 *) ac_try_echo=$ac_try;;
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 $as_echo "$ac_try_echo"; } >&5
1926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1928 if test -s conftest.err; then
1929 grep -v '^ *+' conftest.err >conftest.er1
1930 cat conftest.er1 >&5
1931 mv -f conftest.er1 conftest.err
1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934 test $ac_status = 0; } >/dev/null && {
1935 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1936 test ! -s conftest.err
1940 $as_echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1945 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1948 } # ac_fn_cxx_try_cpp
1950 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1951 # ---------------------------------------------------------
1952 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1953 # the include files in INCLUDES and setting the cache variable VAR
1955 ac_fn_cxx_check_header_mongrel ()
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962 $as_echo_n "(cached) " >&6
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1968 # Is the header compilable?
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1970 $as_echo_n "checking $2 usability... " >&6; }
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1976 if ac_fn_cxx_try_compile "$LINENO"; then :
1977 ac_header_compiler=yes
1979 ac_header_compiler=no
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1983 $as_echo "$ac_header_compiler" >&6; }
1985 # Is the header present?
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1987 $as_echo_n "checking $2 presence... " >&6; }
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1992 if ac_fn_cxx_try_cpp "$LINENO"; then :
1993 ac_header_preproc=yes
1995 ac_header_preproc=no
1997 rm -f conftest.err conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1999 $as_echo "$ac_header_preproc" >&6; }
2001 # So? What about this header?
2002 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2005 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2007 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2011 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2013 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2015 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2017 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2019 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2025 $as_echo_n "(cached) " >&6
2027 eval "$3=\$ac_header_compiler"
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2031 $as_echo "$ac_res" >&6; }
2033 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2035 } # ac_fn_cxx_check_header_mongrel
2037 # ac_fn_cxx_try_run LINENO
2038 # ------------------------
2039 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2040 # that executables *can* be run.
2041 ac_fn_cxx_try_run ()
2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044 if { { ac_try="$ac_link"
2046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2047 *) ac_try_echo=$ac_try;;
2049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2050 $as_echo "$ac_try_echo"; } >&5
2051 (eval "$ac_link") 2>&5
2053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2054 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2055 { { case "(($ac_try" in
2056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2057 *) ac_try_echo=$ac_try;;
2059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2060 $as_echo "$ac_try_echo"; } >&5
2061 (eval "$ac_try") 2>&5
2063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2064 test $ac_status = 0; }; }; then :
2067 $as_echo "$as_me: program exited with status $ac_status" >&5
2068 $as_echo "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2071 ac_retval=$ac_status
2073 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2074 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2077 } # ac_fn_cxx_try_run
2079 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2080 # ---------------------------------------------------------
2081 # Tests whether HEADER exists and can be compiled using the include files in
2082 # INCLUDES, setting the cache variable VAR accordingly.
2083 ac_fn_cxx_check_header_compile ()
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087 $as_echo_n "checking for $2... " >&6; }
2088 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2089 $as_echo_n "(cached) " >&6
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2096 if ac_fn_cxx_try_compile "$LINENO"; then :
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105 $as_echo "$ac_res" >&6; }
2106 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2108 } # ac_fn_cxx_check_header_compile
2110 # ac_fn_c_try_cpp LINENO
2111 # ----------------------
2112 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 if { { ac_try="$ac_cpp conftest.$ac_ext"
2118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2119 *) ac_try_echo=$ac_try;;
2121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2122 $as_echo "$ac_try_echo"; } >&5
2123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2125 if test -s conftest.err; then
2126 grep -v '^ *+' conftest.err >conftest.er1
2127 cat conftest.er1 >&5
2128 mv -f conftest.er1 conftest.err
2130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2131 test $ac_status = 0; } >/dev/null && {
2132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2133 test ! -s conftest.err
2137 $as_echo "$as_me: failed program was:" >&5
2138 sed 's/^/| /' conftest.$ac_ext >&5
2142 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2147 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2148 # ----------------------------------------------
2149 # Tries to find the compile-time value of EXPR in a program that includes
2150 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2152 ac_fn_cxx_compute_int ()
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 if test "$cross_compiling" = yes; then
2156 # Depending upon the size, compute the lo and hi bounds.
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2163 static int test_array [1 - 2 * !(($2) >= 0)];
2170 if ac_fn_cxx_try_compile "$LINENO"; then :
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2179 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2186 if ac_fn_cxx_try_compile "$LINENO"; then :
2187 ac_hi=$ac_mid; break
2189 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2190 if test $ac_lo -le $ac_mid; then
2194 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2205 static int test_array [1 - 2 * !(($2) < 0)];
2212 if ac_fn_cxx_try_compile "$LINENO"; then :
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2221 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2228 if ac_fn_cxx_try_compile "$LINENO"; then :
2229 ac_lo=$ac_mid; break
2231 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2232 if test $ac_mid -le $ac_hi; then
2236 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 # Binary search between lo and hi bounds.
2247 while test "x$ac_lo" != "x$ac_hi"; do
2248 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2255 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2262 if ac_fn_cxx_try_compile "$LINENO"; then :
2265 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2277 static long int longval () { return $2; }
2278 static unsigned long int ulongval () { return $2; }
2285 FILE *f = fopen ("conftest.val", "w");
2290 long int i = longval ();
2293 fprintf (f, "%ld", i);
2297 unsigned long int i = ulongval ();
2300 fprintf (f, "%lu", i);
2302 /* Do not output a trailing newline, as this causes \r\n confusion
2303 on some platforms. */
2304 return ferror (f) || fclose (f) != 0;
2310 if ac_fn_cxx_try_run "$LINENO"; then :
2311 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2316 conftest.$ac_objext conftest.beam conftest.$ac_ext
2320 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2323 } # ac_fn_cxx_compute_int
2325 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2326 # ---------------------------------------------
2327 # Tests whether TYPE exists after having included INCLUDES, setting cache
2328 # variable VAR accordingly.
2329 ac_fn_cxx_check_type ()
2331 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2333 $as_echo_n "checking for $2... " >&6; }
2334 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2335 $as_echo_n "(cached) " >&6
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2350 if ac_fn_cxx_try_compile "$LINENO"; then :
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h. */
2363 if ac_fn_cxx_try_compile "$LINENO"; then :
2368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2374 $as_echo "$ac_res" >&6; }
2375 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2377 } # ac_fn_cxx_check_type
2379 # ac_fn_c_find_intX_t LINENO BITS VAR
2380 # -----------------------------------
2381 # Finds a signed integer type with width BITS, setting cache variable VAR
2383 ac_fn_c_find_intX_t ()
2385 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2387 $as_echo_n "checking for int$2_t... " >&6; }
2388 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2389 $as_echo_n "(cached) " >&6
2392 for ac_type in int$2_t 'int' 'long int' \
2393 'long long int' 'short int' 'signed char'; do
2394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395 /* end confdefs.h. */
2396 $ac_includes_default
2400 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2407 if ac_fn_cxx_try_compile "$LINENO"; then :
2408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2409 /* end confdefs.h. */
2410 $ac_includes_default
2414 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2415 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2422 if ac_fn_cxx_try_compile "$LINENO"; then :
2429 eval "$3=\$ac_type" ;;
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436 if test "x$as_val" = x""no; then :
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2445 $as_echo "$ac_res" >&6; }
2446 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2448 } # ac_fn_c_find_intX_t
2450 # ac_fn_cxx_try_link LINENO
2451 # -------------------------
2452 # Try to link conftest.$ac_ext, and return whether this succeeded.
2453 ac_fn_cxx_try_link ()
2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456 rm -f conftest.$ac_objext conftest$ac_exeext
2457 if { { ac_try="$ac_link"
2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 *) ac_try_echo=$ac_try;;
2462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2463 $as_echo "$ac_try_echo"; } >&5
2464 (eval "$ac_link") 2>conftest.err
2466 if test -s conftest.err; then
2467 grep -v '^ *+' conftest.err >conftest.er1
2468 cat conftest.er1 >&5
2469 mv -f conftest.er1 conftest.err
2471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2472 test $ac_status = 0; } && {
2473 test -z "$ac_cxx_werror_flag" ||
2474 test ! -s conftest.err
2475 } && test -s conftest$ac_exeext && {
2476 test "$cross_compiling" = yes ||
2477 $as_test_x conftest$ac_exeext
2481 $as_echo "$as_me: failed program was:" >&5
2482 sed 's/^/| /' conftest.$ac_ext >&5
2486 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2487 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2488 # interfere with the next link command; also delete a directory that is
2489 # left behind by Apple's compiler. We do this before executing the actions.
2490 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2491 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2494 } # ac_fn_cxx_try_link
2496 # ac_fn_c_find_uintX_t LINENO BITS VAR
2497 # ------------------------------------
2498 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2500 ac_fn_c_find_uintX_t ()
2502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2504 $as_echo_n "checking for uint$2_t... " >&6; }
2505 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2506 $as_echo_n "(cached) " >&6
2509 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2510 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512 /* end confdefs.h. */
2513 $ac_includes_default
2517 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2524 if ac_fn_cxx_try_compile "$LINENO"; then :
2529 eval "$3=\$ac_type" ;;
2532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2534 if test "x$as_val" = x""no; then :
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2543 $as_echo "$ac_res" >&6; }
2544 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2546 } # ac_fn_c_find_uintX_t
2548 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2549 # ------------------------------------------------
2550 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2551 ac_fn_cxx_check_header_preproc ()
2553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2555 $as_echo_n "checking for $2... " >&6; }
2556 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2557 $as_echo_n "(cached) " >&6
2559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2560 /* end confdefs.h. */
2563 if ac_fn_cxx_try_cpp "$LINENO"; then :
2568 rm -f conftest.err conftest.$ac_ext
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2572 $as_echo "$ac_res" >&6; }
2573 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2575 } # ac_fn_cxx_check_header_preproc
2577 # ac_fn_cxx_check_func LINENO FUNC VAR
2578 # ------------------------------------
2579 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2580 ac_fn_cxx_check_func ()
2582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2584 $as_echo_n "checking for $2... " >&6; }
2585 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2586 $as_echo_n "(cached) " >&6
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h. */
2590 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2592 #define $2 innocuous_$2
2594 /* System header to define __stub macros and hopefully few prototypes,
2595 which can conflict with char $2 (); below.
2596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2597 <limits.h> exists even on freestanding compilers. */
2600 # include <limits.h>
2602 # include <assert.h>
2607 /* Override any GCC internal prototype to avoid an error.
2608 Use char because int might match the return type of a GCC
2609 builtin and then its argument prototype would still apply. */
2614 /* The GNU C library defines this for functions which it implements
2615 to always fail with ENOSYS. Some functions are actually named
2616 something starting with __ and the normal name is an alias. */
2617 #if defined __stub_$2 || defined __stub___$2
2629 if ac_fn_cxx_try_link "$LINENO"; then :
2634 rm -f core conftest.err conftest.$ac_objext \
2635 conftest$ac_exeext conftest.$ac_ext
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2639 $as_echo "$ac_res" >&6; }
2640 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2642 } # ac_fn_cxx_check_func
2644 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2645 # --------------------------------------
2646 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2647 ac_fn_cxx_check_decl ()
2649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2650 as_decl_name=`echo $2|sed 's/ *(.*//'`
2651 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2653 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2654 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2655 $as_echo_n "(cached) " >&6
2657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2658 /* end confdefs.h. */
2663 #ifndef $as_decl_name
2665 (void) $as_decl_use;
2667 (void) $as_decl_name;
2675 if ac_fn_cxx_try_compile "$LINENO"; then :
2680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2684 $as_echo "$ac_res" >&6; }
2685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2687 } # ac_fn_cxx_check_decl
2689 # ac_fn_c_try_link LINENO
2690 # -----------------------
2691 # Try to link conftest.$ac_ext, and return whether this succeeded.
2694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2695 rm -f conftest.$ac_objext conftest$ac_exeext
2696 if { { ac_try="$ac_link"
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2702 $as_echo "$ac_try_echo"; } >&5
2703 (eval "$ac_link") 2>conftest.err
2705 if test -s conftest.err; then
2706 grep -v '^ *+' conftest.err >conftest.er1
2707 cat conftest.er1 >&5
2708 mv -f conftest.er1 conftest.err
2710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2711 test $ac_status = 0; } && {
2712 test -z "$ac_c_werror_flag" ||
2713 test ! -s conftest.err
2714 } && test -s conftest$ac_exeext && {
2715 test "$cross_compiling" = yes ||
2716 $as_test_x conftest$ac_exeext
2720 $as_echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2725 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2726 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2727 # interfere with the next link command; also delete a directory that is
2728 # left behind by Apple's compiler. We do this before executing the actions.
2729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2733 } # ac_fn_c_try_link
2735 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2736 # ----------------------------------------------
2737 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2738 ac_fn_c_check_header_preproc ()
2740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2742 $as_echo_n "checking for $2... " >&6; }
2743 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2744 $as_echo_n "(cached) " >&6
2746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2747 /* end confdefs.h. */
2750 if ac_fn_c_try_cpp "$LINENO"; then :
2755 rm -f conftest.err conftest.$ac_ext
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2759 $as_echo "$ac_res" >&6; }
2760 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2762 } # ac_fn_c_check_header_preproc
2764 # ac_fn_c_check_func LINENO FUNC VAR
2765 # ----------------------------------
2766 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2767 ac_fn_c_check_func ()
2769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2771 $as_echo_n "checking for $2... " >&6; }
2772 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2773 $as_echo_n "(cached) " >&6
2775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2776 /* end confdefs.h. */
2777 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2779 #define $2 innocuous_$2
2781 /* System header to define __stub macros and hopefully few prototypes,
2782 which can conflict with char $2 (); below.
2783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2784 <limits.h> exists even on freestanding compilers. */
2787 # include <limits.h>
2789 # include <assert.h>
2794 /* Override any GCC internal prototype to avoid an error.
2795 Use char because int might match the return type of a GCC
2796 builtin and then its argument prototype would still apply. */
2801 /* The GNU C library defines this for functions which it implements
2802 to always fail with ENOSYS. Some functions are actually named
2803 something starting with __ and the normal name is an alias. */
2804 #if defined __stub_$2 || defined __stub___$2
2816 if ac_fn_c_try_link "$LINENO"; then :
2821 rm -f core conftest.err conftest.$ac_objext \
2822 conftest$ac_exeext conftest.$ac_ext
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2826 $as_echo "$ac_res" >&6; }
2827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2829 } # ac_fn_c_check_func
2830 cat >config.log <<_ACEOF
2831 This file contains any messages produced by compilers while
2832 running configure, to aid debugging if configure makes a mistake.
2834 It was created by $as_me, which was
2835 generated by GNU Autoconf 2.64. Invocation command line was
2847 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2848 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2849 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2850 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2851 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2853 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2854 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2856 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2857 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2858 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2859 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2860 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2861 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2862 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 test -z "$as_dir" && as_dir=.
2871 $as_echo "PATH: $as_dir"
2887 # Keep a trace of the command line.
2888 # Strip out --no-create and --no-recursion so they do not pile up.
2889 # Strip out --silent because we don't want to record it for future runs.
2890 # Also quote any args containing shell meta-characters.
2891 # Make two passes to allow for proper duplicate-argument suppression.
2895 ac_must_keep_next=false
2901 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2903 | -silent | --silent | --silen | --sile | --sil)
2906 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2909 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2911 as_fn_append ac_configure_args1 " '$ac_arg'"
2912 if test $ac_must_keep_next = true; then
2913 ac_must_keep_next=false # Got value, back to normal.
2916 *=* | --config-cache | -C | -disable-* | --disable-* \
2917 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2918 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2919 | -with-* | --with-* | -without-* | --without-* | --x)
2920 case "$ac_configure_args0 " in
2921 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2924 -* ) ac_must_keep_next=true ;;
2927 as_fn_append ac_configure_args " '$ac_arg'"
2932 { ac_configure_args0=; unset ac_configure_args0;}
2933 { ac_configure_args1=; unset ac_configure_args1;}
2935 # When interrupted or exit'd, cleanup temporary files, and complete
2936 # config.log. We remove comments because anyway the quotes in there
2937 # would cause problems or look ugly.
2938 # WARNING: Use '\'' to represent an apostrophe within the trap.
2939 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2940 trap 'exit_status=$?
2941 # Save into config.log some information that might help in debugging.
2946 ## ---------------- ##
2947 ## Cache variables. ##
2948 ## ---------------- ##
2951 # The following way of writing the cache mishandles newlines in values,
2953 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2954 eval ac_val=\$$ac_var
2958 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2959 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2962 _ | IFS | as_nl) ;; #(
2963 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2964 *) { eval $ac_var=; unset $ac_var;} ;;
2969 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2970 *${as_nl}ac_space=\ *)
2972 "s/'\''/'\''\\\\'\'''\''/g;
2973 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2976 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2984 ## ----------------- ##
2985 ## Output variables. ##
2986 ## ----------------- ##
2989 for ac_var in $ac_subst_vars
2991 eval ac_val=\$$ac_var
2993 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2995 $as_echo "$ac_var='\''$ac_val'\''"
2999 if test -n "$ac_subst_files"; then
3001 ## ------------------- ##
3002 ## File substitutions. ##
3003 ## ------------------- ##
3006 for ac_var in $ac_subst_files
3008 eval ac_val=\$$ac_var
3010 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3012 $as_echo "$ac_var='\''$ac_val'\''"
3017 if test -s confdefs.h; then
3027 test "$ac_signal" != 0 &&
3028 $as_echo "$as_me: caught signal $ac_signal"
3029 $as_echo "$as_me: exit $exit_status"
3031 rm -f core *.core core.conftest.* &&
3032 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3035 for ac_signal in 1 2 13 15; do
3036 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3040 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3041 rm -f -r conftest* confdefs.h
3043 $as_echo "/* confdefs.h */" > confdefs.h
3045 # Predefined preprocessor variables.
3047 cat >>confdefs.h <<_ACEOF
3048 #define PACKAGE_NAME "$PACKAGE_NAME"
3051 cat >>confdefs.h <<_ACEOF
3052 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3055 cat >>confdefs.h <<_ACEOF
3056 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3059 cat >>confdefs.h <<_ACEOF
3060 #define PACKAGE_STRING "$PACKAGE_STRING"
3063 cat >>confdefs.h <<_ACEOF
3064 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3067 cat >>confdefs.h <<_ACEOF
3068 #define PACKAGE_URL "$PACKAGE_URL"
3072 # Let the site file select an alternate cache file if it wants to.
3073 # Prefer an explicitly selected file to automatically selected ones.
3076 if test -n "$CONFIG_SITE"; then
3077 ac_site_file1=$CONFIG_SITE
3078 elif test "x$prefix" != xNONE; then
3079 ac_site_file1=$prefix/share/config.site
3080 ac_site_file2=$prefix/etc/config.site
3082 ac_site_file1=$ac_default_prefix/share/config.site
3083 ac_site_file2=$ac_default_prefix/etc/config.site
3085 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3087 test "x$ac_site_file" = xNONE && continue
3088 if test -r "$ac_site_file"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3090 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3091 sed 's/^/| /' "$ac_site_file" >&5
3096 if test -r "$cache_file"; then
3097 # Some versions of bash will fail to source /dev/null (special
3098 # files actually), so we avoid doing that.
3099 if test -f "$cache_file"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3101 $as_echo "$as_me: loading cache $cache_file" >&6;}
3103 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3104 *) . "./$cache_file";;
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3109 $as_echo "$as_me: creating cache $cache_file" >&6;}
3113 # Check that the precious variables saved in the cache have kept the same
3115 ac_cache_corrupted=false
3116 for ac_var in $ac_precious_vars; do
3117 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3118 eval ac_new_set=\$ac_env_${ac_var}_set
3119 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3120 eval ac_new_val=\$ac_env_${ac_var}_value
3121 case $ac_old_set,$ac_new_set in
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3124 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3125 ac_cache_corrupted=: ;;
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3128 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3129 ac_cache_corrupted=: ;;
3132 if test "x$ac_old_val" != "x$ac_new_val"; then
3133 # differences in whitespace do not lead to failure.
3134 ac_old_val_w=`echo x $ac_old_val`
3135 ac_new_val_w=`echo x $ac_new_val`
3136 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3138 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3139 ac_cache_corrupted=:
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3142 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3143 eval $ac_var=\$ac_old_val
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3146 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3148 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3151 # Pass precious variables to config.status.
3152 if test "$ac_new_set" = set; then
3154 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3155 *) ac_arg=$ac_var=$ac_new_val ;;
3157 case " $ac_configure_args " in
3158 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3159 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3163 if $ac_cache_corrupted; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3167 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3168 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3170 ## -------------------- ##
3171 ## Main body of script. ##
3172 ## -------------------- ##
3175 ac_cpp='$CPP $CPPFLAGS'
3176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3185 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3188 gcc_version=`cat $srcdir/BASE-VER`
3190 # Determine the host, build, and target systems
3192 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3193 for ac_t in install-sh install.sh shtool; do
3194 if test -f "$ac_dir/$ac_t"; then
3196 ac_install_sh="$ac_aux_dir/$ac_t -c"
3201 if test -z "$ac_aux_dir"; then
3202 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3205 # These three variables are undocumented and unsupported,
3206 # and are intended to be withdrawn in a future Autoconf release.
3207 # They can cause serious problems if a builder's source tree is in a directory
3208 # whose full name contains unusual characters.
3209 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3210 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3211 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3214 # Make sure we can run config.sub.
3215 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3216 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3219 $as_echo_n "checking build system type... " >&6; }
3220 if test "${ac_cv_build+set}" = set; then :
3221 $as_echo_n "(cached) " >&6
3223 ac_build_alias=$build_alias
3224 test "x$ac_build_alias" = x &&
3225 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3226 test "x$ac_build_alias" = x &&
3227 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3228 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3229 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3233 $as_echo "$ac_cv_build" >&6; }
3234 case $ac_cv_build in
3236 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3239 ac_save_IFS=$IFS; IFS='-'
3245 # Remember, the first character of IFS is used to create $*,
3246 # except with old shells:
3249 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3253 $as_echo_n "checking host system type... " >&6; }
3254 if test "${ac_cv_host+set}" = set; then :
3255 $as_echo_n "(cached) " >&6
3257 if test "x$host_alias" = x; then
3258 ac_cv_host=$ac_cv_build
3260 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3261 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3266 $as_echo "$ac_cv_host" >&6; }
3269 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3272 ac_save_IFS=$IFS; IFS='-'
3278 # Remember, the first character of IFS is used to create $*,
3279 # except with old shells:
3282 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3286 $as_echo_n "checking target system type... " >&6; }
3287 if test "${ac_cv_target+set}" = set; then :
3288 $as_echo_n "(cached) " >&6
3290 if test "x$target_alias" = x; then
3291 ac_cv_target=$ac_cv_host
3293 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3294 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3299 $as_echo "$ac_cv_target" >&6; }
3300 case $ac_cv_target in
3302 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3304 target=$ac_cv_target
3305 ac_save_IFS=$IFS; IFS='-'
3311 # Remember, the first character of IFS is used to create $*,
3312 # except with old shells:
3315 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3318 # The aliases save the names the user supplied, while $host etc.
3319 # will get canonicalized.
3320 test -n "$target_alias" &&
3321 test "$program_prefix$program_suffix$program_transform_name" = \
3323 program_prefix=${target_alias}-
3325 # Determine the noncanonical target name, for directory use.
3326 case ${build_alias} in
3327 "") build_noncanonical=${build} ;;
3328 *) build_noncanonical=${build_alias} ;;
3331 case ${host_alias} in
3332 "") host_noncanonical=${build_noncanonical} ;;
3333 *) host_noncanonical=${host_alias} ;;
3336 case ${target_alias} in
3337 "") target_noncanonical=${host_noncanonical} ;;
3338 *) target_noncanonical=${target_alias} ;;
3344 # Used for constructing correct paths for offload compilers.
3345 real_target_noncanonical=${target_noncanonical}
3348 # Determine the target- and build-specific subdirectories
3350 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3351 # have matching libraries, they should use host libraries: Makefile.tpl
3352 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3353 # However, they still use the build modules, because the corresponding
3354 # host modules (e.g. bison) are only built for the host when bootstrap
3356 # - build_subdir is where we find build modules, and never changes.
3357 # - build_libsubdir is where we find build libraries, and can be overridden.
3359 # Prefix 'build-' so this never conflicts with target_subdir.
3360 build_subdir="build-${build_noncanonical}"
3362 # Check whether --with-build-libsubdir was given.
3363 if test "${with_build_libsubdir+set}" = set; then :
3364 withval=$with_build_libsubdir; build_libsubdir="$withval"
3366 build_libsubdir="$build_subdir"
3369 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3370 if ( test $srcdir = . && test -d gcc ) \
3371 || test -d $srcdir/../host-${host_noncanonical}; then
3372 host_subdir="host-${host_noncanonical}"
3377 target_subdir=${target_noncanonical}
3380 # Set program_transform_name
3381 test "$program_prefix" != NONE &&
3382 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3383 # Use a double $ so make ignores it.
3384 test "$program_suffix" != NONE &&
3385 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3386 # Double any \ or $.
3387 # By default was `s,x,x', remove it if useless.
3388 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3389 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3392 # Check for bogus environment variables.
3393 # Test if LIBRARY_PATH contains the notation for the current directory
3394 # since this would lead to problems installing/building glibc.
3395 # LIBRARY_PATH contains the current directory if one of the following
3397 # - one of the terminals (":" and ";") is the first or last sign
3398 # - two terminals occur directly after each other
3399 # - the path contains an element with a dot in it
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3401 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3402 case ${LIBRARY_PATH} in
3403 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3404 library_path_setting="contains current directory"
3407 library_path_setting="ok"
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3411 $as_echo "$library_path_setting" >&6; }
3412 if test "$library_path_setting" != "ok"; then
3414 *** LIBRARY_PATH shouldn't contain the current directory when
3415 *** building gcc. Please change the environment variable
3416 *** and run configure again." "$LINENO" 5
3419 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3420 # since this would lead to problems installing/building glibc.
3421 # GCC_EXEC_PREFIX contains the current directory if one of the following
3423 # - one of the terminals (":" and ";") is the first or last sign
3424 # - two terminals occur directly after each other
3425 # - the path contains an element with a dot in it
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3427 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3428 case ${GCC_EXEC_PREFIX} in
3429 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3430 gcc_exec_prefix_setting="contains current directory"
3433 gcc_exec_prefix_setting="ok"
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3437 $as_echo "$gcc_exec_prefix_setting" >&6; }
3438 if test "$gcc_exec_prefix_setting" != "ok"; then
3440 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3441 *** building gcc. Please change the environment variable
3442 *** and run configure again." "$LINENO" 5
3449 # Specify the local prefix
3452 # Check whether --with-local-prefix was given.
3453 if test "${with_local_prefix+set}" = set; then :
3454 withval=$with_local_prefix; case "${withval}" in
3455 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3457 *) local_prefix=$with_local_prefix ;;
3462 # Default local prefix if it is empty
3463 if test x$local_prefix = x; then
3464 local_prefix=/usr/local
3468 # Check whether --with-native-system-header-dir was given.
3469 if test "${with_native_system_header_dir+set}" = set; then :
3470 withval=$with_native_system_header_dir;
3471 case ${with_native_system_header_dir} in
3472 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3473 /* | [A-Za-z]:[\\/]*) ;;
3474 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3476 configured_native_system_header_dir="${withval}"
3479 configured_native_system_header_dir=
3484 # Check whether --with-build-sysroot was given.
3485 if test "${with_build_sysroot+set}" = set; then :
3486 withval=$with_build_sysroot; if test x"$withval" != x ; then
3487 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3490 SYSROOT_CFLAGS_FOR_TARGET=
3495 if test "x$prefix" = xNONE; then
3496 test_prefix=/usr/local
3500 if test "x$exec_prefix" = xNONE; then
3501 test_exec_prefix=$test_prefix
3503 test_exec_prefix=$exec_prefix
3507 # Check whether --with-sysroot was given.
3508 if test "${with_sysroot+set}" = set; then :
3509 withval=$with_sysroot;
3510 case ${with_sysroot} in
3512 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3514 case ${with_sysroot} in
3515 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3516 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3519 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3520 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3522 case ${TARGET_SYSTEM_ROOT} in
3523 "${test_prefix}"|"${test_prefix}/"*|\
3524 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3525 '${prefix}'|'${prefix}/'*|\
3526 '${exec_prefix}'|'${exec_prefix}/'*)
3527 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3528 TARGET_SYSTEM_ROOT_DEFINE="$t"
3535 TARGET_SYSTEM_ROOT_DEFINE=
3536 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3544 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3545 # passed in by the toplevel make and thus we'd get different behavior
3546 # depending on where we built the sources.
3547 gcc_gxx_include_dir=
3548 # Specify the g++ header file directory
3550 # Check whether --with-gxx-include-dir was given.
3551 if test "${with_gxx_include_dir+set}" = set; then :
3552 withval=$with_gxx_include_dir; case "${withval}" in
3553 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3555 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3560 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3561 if test x${gcc_gxx_include_dir} = x; then
3562 if test x${enable_version_specific_runtime_libs} = xyes; then
3563 gcc_gxx_include_dir='${libsubdir}/include/c++'
3565 libstdcxx_incdir='include/c++/$(version)'
3566 if test x$host != x$target; then
3567 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3569 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3573 gcc_gxx_include_dir_add_sysroot=0
3574 if test "${with_sysroot+set}" = set; then
3575 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3576 if test "${gcc_gxx_without_sysroot}"; then
3577 if test x${with_sysroot} != x/; then
3578 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3580 gcc_gxx_include_dir_add_sysroot=1
3585 # Check whether --with-cpp_install_dir was given.
3586 if test "${with_cpp_install_dir+set}" = set; then :
3587 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3588 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3589 elif test x$withval != xno; then
3590 cpp_install_dir=$withval
3595 # We would like to our source tree to be readonly. However when releases or
3596 # pre-releases are generated, the flex/bison generated files as well as the
3597 # various formats of manuals need to be included along with the rest of the
3598 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3602 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3603 # Check whether --enable-generated-files-in-srcdir was given.
3604 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3605 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3607 generated_files_in_srcdir=no
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3612 $as_echo "$generated_files_in_srcdir" >&6; }
3614 if test "$generated_files_in_srcdir" = "yes"; then
3621 # -------------------
3622 # Find default linker
3623 # -------------------
3627 # Check whether --with-gnu-ld was given.
3628 if test "${with_gnu_ld+set}" = set; then :
3629 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3636 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3640 # With pre-defined ld
3642 # Check whether --with-ld was given.
3643 if test "${with_ld+set}" = set; then :
3644 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3647 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3648 if test ! -x "$DEFAULT_LINKER"; then
3649 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3650 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3652 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3656 cat >>confdefs.h <<_ACEOF
3657 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3663 $as_echo_n "checking whether a default linker was specified... " >&6; }
3664 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3665 if test x"$gnu_ld_flag" = x"no"; then
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3667 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3670 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3677 # With demangler in GNU ld
3679 # Check whether --with-demangler-in-ld was given.
3680 if test "${with_demangler_in_ld+set}" = set; then :
3681 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3687 # ----------------------
3688 # Find default assembler
3689 # ----------------------
3693 # Check whether --with-gnu-as was given.
3694 if test "${with_gnu_as+set}" = set; then :
3695 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3702 # Check whether --with-as was given.
3703 if test "${with_as+set}" = set; then :
3704 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3707 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3708 if test ! -x "$DEFAULT_ASSEMBLER"; then
3709 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3710 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3714 cat >>confdefs.h <<_ACEOF
3715 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3721 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3722 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3723 if test x"$gas_flag" = x"no"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3725 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3728 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3739 # If a non-executable a.out is present (e.g. created by GNU as above even if
3740 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3741 # file, even when creating an executable, so an execution test fails.
3742 # Remove possible default executable files to avoid this.
3744 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3745 # Autoconf includes it.
3746 rm -f a.out a.exe b.out
3748 # Find the native compiler
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754 if test -n "$ac_tool_prefix"; then
3755 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3756 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758 $as_echo_n "checking for $ac_word... " >&6; }
3759 if test "${ac_cv_prog_CC+set}" = set; then :
3760 $as_echo_n "(cached) " >&6
3762 if test -n "$CC"; then
3763 ac_cv_prog_CC="$CC" # Let the user override the test.
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 test -z "$as_dir" && as_dir=.
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3772 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 if test -n "$CC"; then
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3785 $as_echo "$CC" >&6; }
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 $as_echo "no" >&6; }
3793 if test -z "$ac_cv_prog_CC"; then
3795 # Extract the first word of "gcc", so it can be a program name with args.
3796 set dummy gcc; ac_word=$2
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798 $as_echo_n "checking for $ac_word... " >&6; }
3799 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3800 $as_echo_n "(cached) " >&6
3802 if test -n "$ac_ct_CC"; then
3803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812 ac_cv_prog_ac_ct_CC="gcc"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3823 if test -n "$ac_ct_CC"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3825 $as_echo "$ac_ct_CC" >&6; }
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828 $as_echo "no" >&6; }
3831 if test "x$ac_ct_CC" = x; then
3834 case $cross_compiling:$ac_tool_warned in
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3838 ac_tool_warned=yes ;;
3846 if test -z "$CC"; then
3847 if test -n "$ac_tool_prefix"; then
3848 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3849 set dummy ${ac_tool_prefix}cc; ac_word=$2
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851 $as_echo_n "checking for $ac_word... " >&6; }
3852 if test "${ac_cv_prog_CC+set}" = set; then :
3853 $as_echo_n "(cached) " >&6
3855 if test -n "$CC"; then
3856 ac_cv_prog_CC="$CC" # Let the user override the test.
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 test -z "$as_dir" && as_dir=.
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3865 ac_cv_prog_CC="${ac_tool_prefix}cc"
3866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3876 if test -n "$CC"; then
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3878 $as_echo "$CC" >&6; }
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 $as_echo "no" >&6; }
3887 if test -z "$CC"; then
3888 # Extract the first word of "cc", so it can be a program name with args.
3889 set dummy cc; ac_word=$2
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3891 $as_echo_n "checking for $ac_word... " >&6; }
3892 if test "${ac_cv_prog_CC+set}" = set; then :
3893 $as_echo_n "(cached) " >&6
3895 if test -n "$CC"; then
3896 ac_cv_prog_CC="$CC" # Let the user override the test.
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 test -z "$as_dir" && as_dir=.
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3906 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3907 ac_prog_rejected=yes
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3918 if test $ac_prog_rejected = yes; then
3919 # We found a bogon in the path, so make sure we never use it.
3920 set dummy $ac_cv_prog_CC
3922 if test $# != 0; then
3923 # We chose a different compiler from the bogus one.
3924 # However, it has the same basename, so the bogon will be chosen
3925 # first if we set CC to just the basename; use the full file name.
3927 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3933 if test -n "$CC"; then
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3935 $as_echo "$CC" >&6; }
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 $as_echo "no" >&6; }
3943 if test -z "$CC"; then
3944 if test -n "$ac_tool_prefix"; then
3945 for ac_prog in cl.exe
3947 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3948 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3950 $as_echo_n "checking for $ac_word... " >&6; }
3951 if test "${ac_cv_prog_CC+set}" = set; then :
3952 $as_echo_n "(cached) " >&6
3954 if test -n "$CC"; then
3955 ac_cv_prog_CC="$CC" # Let the user override the test.
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 test -z "$as_dir" && as_dir=.
3962 for ac_exec_ext in '' $ac_executable_extensions; do
3963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3964 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 if test -n "$CC"; then
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3977 $as_echo "$CC" >&6; }
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980 $as_echo "no" >&6; }
3984 test -n "$CC" && break
3987 if test -z "$CC"; then
3989 for ac_prog in cl.exe
3991 # Extract the first word of "$ac_prog", so it can be a program name with args.
3992 set dummy $ac_prog; ac_word=$2
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3994 $as_echo_n "checking for $ac_word... " >&6; }
3995 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3996 $as_echo_n "(cached) " >&6
3998 if test -n "$ac_ct_CC"; then
3999 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008 ac_cv_prog_ac_ct_CC="$ac_prog"
4009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4019 if test -n "$ac_ct_CC"; then
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4021 $as_echo "$ac_ct_CC" >&6; }
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024 $as_echo "no" >&6; }
4028 test -n "$ac_ct_CC" && break
4031 if test "x$ac_ct_CC" = x; then
4034 case $cross_compiling:$ac_tool_warned in
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4038 ac_tool_warned=yes ;;
4047 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4049 as_fn_error "no acceptable C compiler found in \$PATH
4050 See \`config.log' for more details." "$LINENO" 5; }
4052 # Provide some information about the compiler.
4053 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4056 for ac_option in --version -v -V -qversion; do
4057 { { ac_try="$ac_compiler $ac_option >&5"
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4063 $as_echo "$ac_try_echo"; } >&5
4064 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4066 if test -s conftest.err; then
4068 ... rest of stderr output deleted ...
4069 10q' conftest.err >conftest.er1
4070 cat conftest.er1 >&5
4071 rm -f conftest.er1 conftest.err
4073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4074 test $ac_status = 0; }
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4088 ac_clean_files_save=$ac_clean_files
4089 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4090 # Try to create an executable without -o first, disregard a.out.
4091 # It will help us diagnose broken compilers, and finding out an intuition
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4094 $as_echo_n "checking for C compiler default output file name... " >&6; }
4095 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4097 # The possible output files:
4098 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4101 for ac_file in $ac_files
4104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4105 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4110 if { { ac_try="$ac_link_default"
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4116 $as_echo "$ac_try_echo"; } >&5
4117 (eval "$ac_link_default") 2>&5
4119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120 test $ac_status = 0; }; then :
4121 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4122 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4123 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4124 # so that the user can short-circuit this test for compilers unknown to
4126 for ac_file in $ac_files ''
4128 test -f "$ac_file" || continue
4130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4133 # We found the default executable, but exeext='' is most
4137 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4139 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4141 # We set ac_cv_exeext here because the later test for it is not
4142 # safe: cross compilers may not add the suffix if given an `-o'
4143 # argument, so we may need to know it at that point already.
4144 # Even if this section looks crufty: it has the advantage of
4151 test "$ac_cv_exeext" = no && ac_cv_exeext=
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4157 $as_echo "$ac_file" >&6; }
4158 if test -z "$ac_file"; then :
4159 $as_echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4164 { as_fn_set_status 77
4165 as_fn_error "C compiler cannot create executables
4166 See \`config.log' for more details." "$LINENO" 5; }; }
4168 ac_exeext=$ac_cv_exeext
4170 # Check that the compiler produces executables we can run. If not, either
4171 # the compiler is broken, or we cross compile.
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4173 $as_echo_n "checking whether the C compiler works... " >&6; }
4174 # If not cross compiling, check that we can run a simple program.
4175 if test "$cross_compiling" != yes; then
4176 if { ac_try='./$ac_file'
4177 { { case "(($ac_try" in
4178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179 *) ac_try_echo=$ac_try;;
4181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4182 $as_echo "$ac_try_echo"; } >&5
4183 (eval "$ac_try") 2>&5
4185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4186 test $ac_status = 0; }; }; then
4189 if test "$cross_compiling" = maybe; then
4192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194 as_fn_error "cannot run C compiled programs.
4195 If you meant to cross compile, use \`--host'.
4196 See \`config.log' for more details." "$LINENO" 5; }
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4201 $as_echo "yes" >&6; }
4203 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4204 ac_clean_files=$ac_clean_files_save
4205 # Check that the compiler produces executables we can run. If not, either
4206 # the compiler is broken, or we cross compile.
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4208 $as_echo_n "checking whether we are cross compiling... " >&6; }
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4210 $as_echo "$cross_compiling" >&6; }
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4213 $as_echo_n "checking for suffix of executables... " >&6; }
4214 if { { ac_try="$ac_link"
4216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217 *) ac_try_echo=$ac_try;;
4219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4220 $as_echo "$ac_try_echo"; } >&5
4221 (eval "$ac_link") 2>&5
4223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4224 test $ac_status = 0; }; then :
4225 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4226 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4227 # work properly (i.e., refer to `conftest.exe'), while it won't with
4229 for ac_file in conftest.exe conftest conftest.*; do
4230 test -f "$ac_file" || continue
4232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4233 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4241 as_fn_error "cannot compute suffix of executables: cannot compile and link
4242 See \`config.log' for more details." "$LINENO" 5; }
4244 rm -f conftest$ac_cv_exeext
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4246 $as_echo "$ac_cv_exeext" >&6; }
4248 rm -f conftest.$ac_ext
4249 EXEEXT=$ac_cv_exeext
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4252 $as_echo_n "checking for suffix of object files... " >&6; }
4253 if test "${ac_cv_objext+set}" = set; then :
4254 $as_echo_n "(cached) " >&6
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4267 rm -f conftest.o conftest.obj
4268 if { { ac_try="$ac_compile"
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4274 $as_echo "$ac_try_echo"; } >&5
4275 (eval "$ac_compile") 2>&5
4277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4278 test $ac_status = 0; }; then :
4279 for ac_file in conftest.o conftest.obj conftest.*; do
4280 test -f "$ac_file" || continue;
4282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4283 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4288 $as_echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4293 as_fn_error "cannot compute suffix of object files: cannot compile
4294 See \`config.log' for more details." "$LINENO" 5; }
4296 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4299 $as_echo "$ac_cv_objext" >&6; }
4300 OBJEXT=$ac_cv_objext
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4303 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4304 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4305 $as_echo_n "(cached) " >&6
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4321 if ac_fn_c_try_compile "$LINENO"; then :
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4331 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4332 if test $ac_compiler_gnu = yes; then
4337 ac_test_CFLAGS=${CFLAGS+set}
4338 ac_save_CFLAGS=$CFLAGS
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4340 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4341 if test "${ac_cv_prog_cc_g+set}" = set; then :
4342 $as_echo_n "(cached) " >&6
4344 ac_save_c_werror_flag=$ac_c_werror_flag
4345 ac_c_werror_flag=yes
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4359 if ac_fn_c_try_compile "$LINENO"; then :
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4374 if ac_fn_c_try_compile "$LINENO"; then :
4377 ac_c_werror_flag=$ac_save_c_werror_flag
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4390 if ac_fn_c_try_compile "$LINENO"; then :
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398 ac_c_werror_flag=$ac_save_c_werror_flag
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4401 $as_echo "$ac_cv_prog_cc_g" >&6; }
4402 if test "$ac_test_CFLAGS" = set; then
4403 CFLAGS=$ac_save_CFLAGS
4404 elif test $ac_cv_prog_cc_g = yes; then
4405 if test "$GCC" = yes; then
4411 if test "$GCC" = yes; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4418 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4419 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4420 $as_echo_n "(cached) " >&6
4422 ac_cv_prog_cc_c89=no
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4428 #include <sys/types.h>
4429 #include <sys/stat.h>
4430 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4431 struct buf { int x; };
4432 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4433 static char *e (p, i)
4439 static char *f (char * (*g) (char **, int), char **p, ...)
4444 s = g (p, va_arg (v,int));
4449 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4450 function prototypes and stuff, but not '\xHH' hex character constants.
4451 These don't provoke an error unfortunately, instead are silently treated
4452 as 'x'. The following induces an error, until -std is added to get
4453 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4454 array size at least. It's necessary to write '\x00'==0 to get something
4455 that's true only with -std. */
4456 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4458 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4459 inside strings and character constants. */
4461 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4463 int test (int i, double x);
4464 struct s1 {int (*f) (int a);};
4465 struct s2 {int (*f) (double a);};
4466 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4472 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4477 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4478 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4480 CC="$ac_save_CC $ac_arg"
4481 if ac_fn_c_try_compile "$LINENO"; then :
4482 ac_cv_prog_cc_c89=$ac_arg
4484 rm -f core conftest.err conftest.$ac_objext
4485 test "x$ac_cv_prog_cc_c89" != "xno" && break
4487 rm -f conftest.$ac_ext
4492 case "x$ac_cv_prog_cc_c89" in
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4495 $as_echo "none needed" >&6; } ;;
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4498 $as_echo "unsupported" >&6; } ;;
4500 CC="$CC $ac_cv_prog_cc_c89"
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4502 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4504 if test "x$ac_cv_prog_cc_c89" != xno; then :
4509 ac_cpp='$CPP $CPPFLAGS'
4510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4515 ac_cpp='$CXXCPP $CPPFLAGS'
4516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4519 if test -z "$CXX"; then
4520 if test -n "$CCC"; then
4523 if test -n "$ac_tool_prefix"; then
4524 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if test "${ac_cv_prog_CXX+set}" = set; then :
4531 $as_echo_n "(cached) " >&6
4533 if test -n "$CXX"; then
4534 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 if test -n "$CXX"; then
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4556 $as_echo "$CXX" >&6; }
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4563 test -n "$CXX" && break
4566 if test -z "$CXX"; then
4568 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4570 # Extract the first word of "$ac_prog", so it can be a program name with args.
4571 set dummy $ac_prog; ac_word=$2
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573 $as_echo_n "checking for $ac_word... " >&6; }
4574 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
4577 if test -n "$ac_ct_CXX"; then
4578 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587 ac_cv_prog_ac_ct_CXX="$ac_prog"
4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4598 if test -n "$ac_ct_CXX"; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4600 $as_echo "$ac_ct_CXX" >&6; }
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603 $as_echo "no" >&6; }
4607 test -n "$ac_ct_CXX" && break
4610 if test "x$ac_ct_CXX" = x; then
4613 case $cross_compiling:$ac_tool_warned in
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4617 ac_tool_warned=yes ;;
4625 # Provide some information about the compiler.
4626 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4629 for ac_option in --version -v -V -qversion; do
4630 { { ac_try="$ac_compiler $ac_option >&5"
4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4636 $as_echo "$ac_try_echo"; } >&5
4637 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4639 if test -s conftest.err; then
4641 ... rest of stderr output deleted ...
4642 10q' conftest.err >conftest.er1
4643 cat conftest.er1 >&5
4644 rm -f conftest.er1 conftest.err
4646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4647 test $ac_status = 0; }
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4651 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4652 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4669 if ac_fn_cxx_try_compile "$LINENO"; then :
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4679 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4680 if test $ac_compiler_gnu = yes; then
4685 ac_test_CXXFLAGS=${CXXFLAGS+set}
4686 ac_save_CXXFLAGS=$CXXFLAGS
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4688 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4689 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
4692 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4693 ac_cxx_werror_flag=yes
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4707 if ac_fn_cxx_try_compile "$LINENO"; then :
4708 ac_cv_prog_cxx_g=yes
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4722 if ac_fn_cxx_try_compile "$LINENO"; then :
4725 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4738 if ac_fn_cxx_try_compile "$LINENO"; then :
4739 ac_cv_prog_cxx_g=yes
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4749 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4750 if test "$ac_test_CXXFLAGS" = set; then
4751 CXXFLAGS=$ac_save_CXXFLAGS
4752 elif test $ac_cv_prog_cxx_g = yes; then
4753 if test "$GXX" = yes; then
4759 if test "$GXX" = yes; then
4766 ac_cpp='$CPP $CPPFLAGS'
4767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4774 if test -n "$ac_tool_prefix"; then
4775 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4776 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4782 if test -n "$GNATBIND"; then
4783 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 GNATBIND=$ac_cv_prog_GNATBIND
4803 if test -n "$GNATBIND"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4805 $as_echo "$GNATBIND" >&6; }
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4813 if test -z "$ac_cv_prog_GNATBIND"; then
4814 ac_ct_GNATBIND=$GNATBIND
4815 # Extract the first word of "gnatbind", so it can be a program name with args.
4816 set dummy gnatbind; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4822 if test -n "$ac_ct_GNATBIND"; then
4823 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4843 if test -n "$ac_ct_GNATBIND"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4845 $as_echo "$ac_ct_GNATBIND" >&6; }
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4851 if test "x$ac_ct_GNATBIND" = x; then
4854 case $cross_compiling:$ac_tool_warned in
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4858 ac_tool_warned=yes ;;
4860 GNATBIND=$ac_ct_GNATBIND
4863 GNATBIND="$ac_cv_prog_GNATBIND"
4866 if test -n "$ac_tool_prefix"; then
4867 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4868 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870 $as_echo_n "checking for $ac_word... " >&6; }
4871 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4872 $as_echo_n "(cached) " >&6
4874 if test -n "$GNATMAKE"; then
4875 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 GNATMAKE=$ac_cv_prog_GNATMAKE
4895 if test -n "$GNATMAKE"; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4897 $as_echo "$GNATMAKE" >&6; }
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4905 if test -z "$ac_cv_prog_GNATMAKE"; then
4906 ac_ct_GNATMAKE=$GNATMAKE
4907 # Extract the first word of "gnatmake", so it can be a program name with args.
4908 set dummy gnatmake; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4912 $as_echo_n "(cached) " >&6
4914 if test -n "$ac_ct_GNATMAKE"; then
4915 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4935 if test -n "$ac_ct_GNATMAKE"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4937 $as_echo "$ac_ct_GNATMAKE" >&6; }
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4943 if test "x$ac_ct_GNATMAKE" = x; then
4946 case $cross_compiling:$ac_tool_warned in
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4950 ac_tool_warned=yes ;;
4952 GNATMAKE=$ac_ct_GNATMAKE
4955 GNATMAKE="$ac_cv_prog_GNATMAKE"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4959 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4960 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4961 $as_echo_n "(cached) " >&6
4963 cat >conftest.adb <<EOF
4964 procedure conftest is begin null; end conftest;
4966 acx_cv_cc_gcc_supports_ada=no
4967 # There is a bug in old released versions of GCC which causes the
4968 # driver to exit successfully when the appropriate language module
4969 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4970 # Therefore we must check for the error message as well as an
4971 # unsuccessful exit.
4972 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4973 # given a .adb file, but produce no object file. So we must check
4974 # if an object file was really produced to guard against this.
4975 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4976 if test x"$errors" = x && test -f conftest.$ac_objext; then
4977 acx_cv_cc_gcc_supports_ada=yes
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4982 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4984 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4991 # Do configure tests with the C++ compiler, since that's what we build with.
4993 ac_cpp='$CXXCPP $CPPFLAGS'
4994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4999 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5000 # optimizations to be activated explicitly by the toplevel.
5002 */prev-gcc/xgcc*) ;;
5003 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5004 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5009 # Determine PICFLAG for target gnatlib.
5015 # PIC is the default on some targets or must not be used.
5017 # For darwin, common symbols are not allowed in MH_DYLIB files
5019 # If we are using a compiler supporting mdynamic-no-pic
5020 # and the option has been tested as safe to add, then cancel
5021 # it here, since the code generated is incompatible with shared
5023 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5024 *) PICFLAG_FOR_TARGET=-fno-common ;;
5028 # PIC is the default.
5031 # PIC is the default for 64-bit PA HP-UX.
5033 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5035 i[34567]86-*-mingw* | x86_64-*-mingw*)
5037 i[34567]86-*-interix[3-9]*)
5038 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5039 # Instead, we relocate shared libraries at runtime.
5041 i[34567]86-*-nto-qnx*)
5042 # QNX uses GNU C++, but need to define -shared option too, otherwise
5044 PICFLAG_FOR_TARGET='-fPIC -shared'
5046 i[34567]86-pc-msdosdjgpp*)
5047 # DJGPP does not support shared libraries at all.
5050 # On IA64 HP-UX, PIC is the default but the pic flag
5051 # sets the default TLS model and affects inlining.
5052 PICFLAG_FOR_TARGET=-fPIC
5055 # PIC is the default.
5057 rs6000-ibm-aix* | powerpc-ibm-aix*)
5058 # All AIX code is PIC.
5061 # Some targets support both -fPIC and -fpic, but prefer the latter.
5063 i[34567]86-*-* | x86_64-*-*)
5064 PICFLAG_FOR_TARGET=-fpic
5066 # FIXME: Override -fPIC default in libgcc only?
5067 sh-*-linux* | sh[2346lbe]*-*-linux*)
5068 PICFLAG_FOR_TARGET=-fpic
5070 # FIXME: Simplify to sh*-*-netbsd*?
5071 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5072 sh64-*-netbsd* | sh64l*-*-netbsd*)
5073 PICFLAG_FOR_TARGET=-fpic
5075 # Default to -fPIC unless specified otherwise.
5077 PICFLAG_FOR_TARGET=-fPIC
5081 # If the user explicitly uses -fpic/-fPIC, keep that.
5082 case "${CFLAGS_FOR_TARGET}" in
5084 PICFLAG_FOR_TARGET=-fpic
5087 PICFLAG_FOR_TARGET=-fPIC
5093 # -------------------------
5094 # Check C compiler features
5095 # -------------------------
5099 ac_cpp='$CXXCPP $CPPFLAGS'
5100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5104 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5105 if test -z "$CXXCPP"; then
5106 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5107 $as_echo_n "(cached) " >&6
5109 # Double quotes because CXXCPP needs to be expanded
5110 for CXXCPP in "$CXX -E" "/lib/cpp"
5113 for ac_cxx_preproc_warn_flag in '' yes
5115 # Use a header file that comes with gcc, so configuring glibc
5116 # with a fresh cross-compiler works.
5117 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5118 # <limits.h> exists even on freestanding compilers.
5119 # On the NeXT, cc -E runs the code through the compiler's parser,
5120 # not just through cpp. "Syntax error" is here to catch this case.
5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h. */
5124 # include <limits.h>
5126 # include <assert.h>
5130 if ac_fn_cxx_try_cpp "$LINENO"; then :
5133 # Broken: fails on valid input.
5136 rm -f conftest.err conftest.$ac_ext
5138 # OK, works on sane cases. Now check whether nonexistent headers
5139 # can be detected and how.
5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h. */
5142 #include <ac_nonexistent.h>
5144 if ac_fn_cxx_try_cpp "$LINENO"; then :
5145 # Broken: success on invalid input.
5148 # Passes both tests.
5152 rm -f conftest.err conftest.$ac_ext
5155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5156 rm -f conftest.err conftest.$ac_ext
5157 if $ac_preproc_ok; then :
5162 ac_cv_prog_CXXCPP=$CXXCPP
5165 CXXCPP=$ac_cv_prog_CXXCPP
5167 ac_cv_prog_CXXCPP=$CXXCPP
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5170 $as_echo "$CXXCPP" >&6; }
5172 for ac_cxx_preproc_warn_flag in '' yes
5174 # Use a header file that comes with gcc, so configuring glibc
5175 # with a fresh cross-compiler works.
5176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5177 # <limits.h> exists even on freestanding compilers.
5178 # On the NeXT, cc -E runs the code through the compiler's parser,
5179 # not just through cpp. "Syntax error" is here to catch this case.
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5183 # include <limits.h>
5185 # include <assert.h>
5189 if ac_fn_cxx_try_cpp "$LINENO"; then :
5192 # Broken: fails on valid input.
5195 rm -f conftest.err conftest.$ac_ext
5197 # OK, works on sane cases. Now check whether nonexistent headers
5198 # can be detected and how.
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h. */
5201 #include <ac_nonexistent.h>
5203 if ac_fn_cxx_try_cpp "$LINENO"; then :
5204 # Broken: success on invalid input.
5207 # Passes both tests.
5211 rm -f conftest.err conftest.$ac_ext
5214 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5215 rm -f conftest.err conftest.$ac_ext
5216 if $ac_preproc_ok; then :
5219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5221 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5222 See \`config.log' for more details." "$LINENO" 5; }
5226 ac_cpp='$CXXCPP $CPPFLAGS'
5227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5233 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5234 if test "${ac_cv_path_GREP+set}" = set; then :
5235 $as_echo_n "(cached) " >&6
5237 if test -z "$GREP"; then
5238 ac_path_GREP_found=false
5239 # Loop through the user's path and test for each of PROGNAME-LIST
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5244 test -z "$as_dir" && as_dir=.
5245 for ac_prog in grep ggrep; do
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5248 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5249 # Check for GNU ac_path_GREP and select it if it is found.
5250 # Check for GNU $ac_path_GREP
5251 case `"$ac_path_GREP" --version 2>&1` in
5253 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5256 $as_echo_n 0123456789 >"conftest.in"
5259 cat "conftest.in" "conftest.in" >"conftest.tmp"
5260 mv "conftest.tmp" "conftest.in"
5261 cp "conftest.in" "conftest.nl"
5262 $as_echo 'GREP' >> "conftest.nl"
5263 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5265 as_fn_arith $ac_count + 1 && ac_count=$as_val
5266 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5267 # Best one so far, save it but keep looking for a better one
5268 ac_cv_path_GREP="$ac_path_GREP"
5269 ac_path_GREP_max=$ac_count
5271 # 10*(2^10) chars as input seems more than enough
5272 test $ac_count -gt 10 && break
5274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5277 $ac_path_GREP_found && break 3
5282 if test -z "$ac_cv_path_GREP"; then
5283 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5286 ac_cv_path_GREP=$GREP
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5291 $as_echo "$ac_cv_path_GREP" >&6; }
5292 GREP="$ac_cv_path_GREP"
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5296 $as_echo_n "checking for egrep... " >&6; }
5297 if test "${ac_cv_path_EGREP+set}" = set; then :
5298 $as_echo_n "(cached) " >&6
5300 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5301 then ac_cv_path_EGREP="$GREP -E"
5303 if test -z "$EGREP"; then
5304 ac_path_EGREP_found=false
5305 # Loop through the user's path and test for each of PROGNAME-LIST
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5310 test -z "$as_dir" && as_dir=.
5311 for ac_prog in egrep; do
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5314 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5315 # Check for GNU ac_path_EGREP and select it if it is found.
5316 # Check for GNU $ac_path_EGREP
5317 case `"$ac_path_EGREP" --version 2>&1` in
5319 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5322 $as_echo_n 0123456789 >"conftest.in"
5325 cat "conftest.in" "conftest.in" >"conftest.tmp"
5326 mv "conftest.tmp" "conftest.in"
5327 cp "conftest.in" "conftest.nl"
5328 $as_echo 'EGREP' >> "conftest.nl"
5329 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5330 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5331 as_fn_arith $ac_count + 1 && ac_count=$as_val
5332 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5333 # Best one so far, save it but keep looking for a better one
5334 ac_cv_path_EGREP="$ac_path_EGREP"
5335 ac_path_EGREP_max=$ac_count
5337 # 10*(2^10) chars as input seems more than enough
5338 test $ac_count -gt 10 && break
5340 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5343 $ac_path_EGREP_found && break 3
5348 if test -z "$ac_cv_path_EGREP"; then
5349 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5352 ac_cv_path_EGREP=$EGREP
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5358 $as_echo "$ac_cv_path_EGREP" >&6; }
5359 EGREP="$ac_cv_path_EGREP"
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5363 $as_echo_n "checking for ANSI C header files... " >&6; }
5364 if test "${ac_cv_header_stdc+set}" = set; then :
5365 $as_echo_n "(cached) " >&6
5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5382 if ac_fn_cxx_try_compile "$LINENO"; then :
5383 ac_cv_header_stdc=yes
5385 ac_cv_header_stdc=no
5387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 if test $ac_cv_header_stdc = yes; then
5390 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5397 $EGREP "memchr" >/dev/null 2>&1; then :
5400 ac_cv_header_stdc=no
5406 if test $ac_cv_header_stdc = yes; then
5407 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5414 $EGREP "free" >/dev/null 2>&1; then :
5417 ac_cv_header_stdc=no
5423 if test $ac_cv_header_stdc = yes; then
5424 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5425 if test "$cross_compiling" = yes; then :
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5432 #if ((' ' & 0x0FF) == 0x020)
5433 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5434 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5436 # define ISLOWER(c) \
5437 (('a' <= (c) && (c) <= 'i') \
5438 || ('j' <= (c) && (c) <= 'r') \
5439 || ('s' <= (c) && (c) <= 'z'))
5440 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5443 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5448 for (i = 0; i < 256; i++)
5449 if (XOR (islower (i), ISLOWER (i))
5450 || toupper (i) != TOUPPER (i))
5455 if ac_fn_cxx_try_run "$LINENO"; then :
5458 ac_cv_header_stdc=no
5460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5461 conftest.$ac_objext conftest.beam conftest.$ac_ext
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5467 $as_echo "$ac_cv_header_stdc" >&6; }
5468 if test $ac_cv_header_stdc = yes; then
5470 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5474 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5475 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5476 inttypes.h stdint.h unistd.h
5478 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5479 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5481 eval as_val=\$$as_ac_Header
5482 if test "x$as_val" = x""yes; then :
5483 cat >>confdefs.h <<_ACEOF
5484 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5493 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5494 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5501 if test "$MINIX" = yes; then
5503 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5506 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5509 $as_echo "#define _MINIX 1" >>confdefs.h
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5515 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5516 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5517 $as_echo_n "(cached) " >&6
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5522 # define __EXTENSIONS__ 1
5523 $ac_includes_default
5532 if ac_fn_cxx_try_compile "$LINENO"; then :
5533 ac_cv_safe_to_define___extensions__=yes
5535 ac_cv_safe_to_define___extensions__=no
5537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5540 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5541 test $ac_cv_safe_to_define___extensions__ = yes &&
5542 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5544 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5546 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5548 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5550 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5554 ac_cpp='$CPP $CPPFLAGS'
5555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5559 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5560 # On Suns, sometimes $CPP names a directory.
5561 if test -n "$CPP" && test -d "$CPP"; then
5564 if test -z "$CPP"; then
5565 if test "${ac_cv_prog_CPP+set}" = set; then :
5566 $as_echo_n "(cached) " >&6
5568 # Double quotes because CPP needs to be expanded
5569 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5572 for ac_c_preproc_warn_flag in '' yes
5574 # Use a header file that comes with gcc, so configuring glibc
5575 # with a fresh cross-compiler works.
5576 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5577 # <limits.h> exists even on freestanding compilers.
5578 # On the NeXT, cc -E runs the code through the compiler's parser,
5579 # not just through cpp. "Syntax error" is here to catch this case.
5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5583 # include <limits.h>
5585 # include <assert.h>
5589 if ac_fn_c_try_cpp "$LINENO"; then :
5592 # Broken: fails on valid input.
5595 rm -f conftest.err conftest.$ac_ext
5597 # OK, works on sane cases. Now check whether nonexistent headers
5598 # can be detected and how.
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5601 #include <ac_nonexistent.h>
5603 if ac_fn_c_try_cpp "$LINENO"; then :
5604 # Broken: success on invalid input.
5607 # Passes both tests.
5611 rm -f conftest.err conftest.$ac_ext
5614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5615 rm -f conftest.err conftest.$ac_ext
5616 if $ac_preproc_ok; then :
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5629 $as_echo "$CPP" >&6; }
5631 for ac_c_preproc_warn_flag in '' yes
5633 # Use a header file that comes with gcc, so configuring glibc
5634 # with a fresh cross-compiler works.
5635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5636 # <limits.h> exists even on freestanding compilers.
5637 # On the NeXT, cc -E runs the code through the compiler's parser,
5638 # not just through cpp. "Syntax error" is here to catch this case.
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5642 # include <limits.h>
5644 # include <assert.h>
5648 if ac_fn_c_try_cpp "$LINENO"; then :
5651 # Broken: fails on valid input.
5654 rm -f conftest.err conftest.$ac_ext
5656 # OK, works on sane cases. Now check whether nonexistent headers
5657 # can be detected and how.
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660 #include <ac_nonexistent.h>
5662 if ac_fn_c_try_cpp "$LINENO"; then :
5663 # Broken: success on invalid input.
5666 # Passes both tests.
5670 rm -f conftest.err conftest.$ac_ext
5673 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5674 rm -f conftest.err conftest.$ac_ext
5675 if $ac_preproc_ok; then :
5678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5680 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5681 See \`config.log' for more details." "$LINENO" 5; }
5685 ac_cpp='$CXXCPP $CPPFLAGS'
5686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5691 $as_echo_n "checking for inline... " >&6; }
5692 if test "${ac_cv_c_inline+set}" = set; then :
5693 $as_echo_n "(cached) " >&6
5696 for ac_kw in inline __inline__ __inline; do
5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h. */
5701 static $ac_kw foo_t static_foo () {return 0; }
5702 $ac_kw foo_t foo () {return 0; }
5706 if ac_fn_cxx_try_compile "$LINENO"; then :
5707 ac_cv_c_inline=$ac_kw
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710 test "$ac_cv_c_inline" != no && break
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5715 $as_echo "$ac_cv_c_inline" >&6; }
5717 case $ac_cv_c_inline in
5720 case $ac_cv_c_inline in
5722 *) ac_val=$ac_cv_c_inline;;
5724 cat >>confdefs.h <<_ACEOF
5726 #define inline $ac_val
5733 # Check whether --enable-largefile was given.
5734 if test "${enable_largefile+set}" = set; then :
5735 enableval=$enable_largefile;
5738 if test "$enable_largefile" != no; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5741 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5742 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5743 $as_echo_n "(cached) " >&6
5745 ac_cv_sys_largefile_CC=no
5746 if test "$GCC" != yes; then
5749 # IRIX 6.2 and later do not support large files by default,
5750 # so use the C compiler's -n32 option if that helps.
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h. */
5753 #include <sys/types.h>
5754 /* Check that off_t can represent 2**63 - 1 correctly.
5755 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5756 since some C++ compilers masquerading as C compilers
5757 incorrectly reject 9223372036854775807. */
5758 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5759 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5760 && LARGE_OFF_T % 2147483647 == 1)
5770 if ac_fn_cxx_try_compile "$LINENO"; then :
5773 rm -f core conftest.err conftest.$ac_objext
5775 if ac_fn_cxx_try_compile "$LINENO"; then :
5776 ac_cv_sys_largefile_CC=' -n32'; break
5778 rm -f core conftest.err conftest.$ac_objext
5782 rm -f conftest.$ac_ext
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5786 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5787 if test "$ac_cv_sys_largefile_CC" != no; then
5788 CC=$CC$ac_cv_sys_largefile_CC
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5792 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5793 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5794 $as_echo_n "(cached) " >&6
5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h. */
5799 #include <sys/types.h>
5800 /* Check that off_t can represent 2**63 - 1 correctly.
5801 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5802 since some C++ compilers masquerading as C compilers
5803 incorrectly reject 9223372036854775807. */
5804 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5805 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5806 && LARGE_OFF_T % 2147483647 == 1)
5816 if ac_fn_cxx_try_compile "$LINENO"; then :
5817 ac_cv_sys_file_offset_bits=no; break
5819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5822 #define _FILE_OFFSET_BITS 64
5823 #include <sys/types.h>
5824 /* Check that off_t can represent 2**63 - 1 correctly.
5825 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5826 since some C++ compilers masquerading as C compilers
5827 incorrectly reject 9223372036854775807. */
5828 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5829 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5830 && LARGE_OFF_T % 2147483647 == 1)
5840 if ac_fn_cxx_try_compile "$LINENO"; then :
5841 ac_cv_sys_file_offset_bits=64; break
5843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5844 ac_cv_sys_file_offset_bits=unknown
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5849 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5850 case $ac_cv_sys_file_offset_bits in #(
5853 cat >>confdefs.h <<_ACEOF
5854 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5859 if test $ac_cv_sys_file_offset_bits = unknown; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5861 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5862 if test "${ac_cv_sys_large_files+set}" = set; then :
5863 $as_echo_n "(cached) " >&6
5866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h. */
5868 #include <sys/types.h>
5869 /* Check that off_t can represent 2**63 - 1 correctly.
5870 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5871 since some C++ compilers masquerading as C compilers
5872 incorrectly reject 9223372036854775807. */
5873 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5874 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5875 && LARGE_OFF_T % 2147483647 == 1)
5885 if ac_fn_cxx_try_compile "$LINENO"; then :
5886 ac_cv_sys_large_files=no; break
5888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5891 #define _LARGE_FILES 1
5892 #include <sys/types.h>
5893 /* Check that off_t can represent 2**63 - 1 correctly.
5894 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5895 since some C++ compilers masquerading as C compilers
5896 incorrectly reject 9223372036854775807. */
5897 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5898 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5899 && LARGE_OFF_T % 2147483647 == 1)
5909 if ac_fn_cxx_try_compile "$LINENO"; then :
5910 ac_cv_sys_large_files=1; break
5912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5913 ac_cv_sys_large_files=unknown
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5918 $as_echo "$ac_cv_sys_large_files" >&6; }
5919 case $ac_cv_sys_large_files in #(
5922 cat >>confdefs.h <<_ACEOF
5923 #define _LARGE_FILES $ac_cv_sys_large_files
5932 # sizeof(char) is 1 by definition.
5933 # The cast to long int works around a bug in the HP C Compiler
5934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5936 # This bug is HP SR number 8606223364.
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5938 $as_echo_n "checking size of void *... " >&6; }
5939 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5940 $as_echo_n "(cached) " >&6
5942 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5945 if test "$ac_cv_type_void_p" = yes; then
5946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5948 { as_fn_set_status 77
5949 as_fn_error "cannot compute sizeof (void *)
5950 See \`config.log' for more details." "$LINENO" 5; }; }
5952 ac_cv_sizeof_void_p=0
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5958 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5962 cat >>confdefs.h <<_ACEOF
5963 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5967 # The cast to long int works around a bug in the HP C Compiler
5968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5970 # This bug is HP SR number 8606223364.
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5972 $as_echo_n "checking size of short... " >&6; }
5973 if test "${ac_cv_sizeof_short+set}" = set; then :
5974 $as_echo_n "(cached) " >&6
5976 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5979 if test "$ac_cv_type_short" = yes; then
5980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5982 { as_fn_set_status 77
5983 as_fn_error "cannot compute sizeof (short)
5984 See \`config.log' for more details." "$LINENO" 5; }; }
5986 ac_cv_sizeof_short=0
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5992 $as_echo "$ac_cv_sizeof_short" >&6; }
5996 cat >>confdefs.h <<_ACEOF
5997 #define SIZEOF_SHORT $ac_cv_sizeof_short
6001 # The cast to long int works around a bug in the HP C Compiler
6002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6004 # This bug is HP SR number 8606223364.
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6006 $as_echo_n "checking size of int... " >&6; }
6007 if test "${ac_cv_sizeof_int+set}" = set; then :
6008 $as_echo_n "(cached) " >&6
6010 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6013 if test "$ac_cv_type_int" = yes; then
6014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6016 { as_fn_set_status 77
6017 as_fn_error "cannot compute sizeof (int)
6018 See \`config.log' for more details." "$LINENO" 5; }; }
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6026 $as_echo "$ac_cv_sizeof_int" >&6; }
6030 cat >>confdefs.h <<_ACEOF
6031 #define SIZEOF_INT $ac_cv_sizeof_int
6035 # The cast to long int works around a bug in the HP C Compiler
6036 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6037 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6038 # This bug is HP SR number 8606223364.
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6040 $as_echo_n "checking size of long... " >&6; }
6041 if test "${ac_cv_sizeof_long+set}" = set; then :
6042 $as_echo_n "(cached) " >&6
6044 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6047 if test "$ac_cv_type_long" = yes; then
6048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6050 { as_fn_set_status 77
6051 as_fn_error "cannot compute sizeof (long)
6052 See \`config.log' for more details." "$LINENO" 5; }; }
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6060 $as_echo "$ac_cv_sizeof_long" >&6; }
6064 cat >>confdefs.h <<_ACEOF
6065 #define SIZEOF_LONG $ac_cv_sizeof_long
6069 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6070 if test "x$ac_cv_type_long_long" = x""yes; then :
6072 cat >>confdefs.h <<_ACEOF
6073 #define HAVE_LONG_LONG 1
6076 # The cast to long int works around a bug in the HP C Compiler
6077 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6078 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6079 # This bug is HP SR number 8606223364.
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6081 $as_echo_n "checking size of long long... " >&6; }
6082 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6083 $as_echo_n "(cached) " >&6
6085 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6088 if test "$ac_cv_type_long_long" = yes; then
6089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6091 { as_fn_set_status 77
6092 as_fn_error "cannot compute sizeof (long long)
6093 See \`config.log' for more details." "$LINENO" 5; }; }
6095 ac_cv_sizeof_long_long=0
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6101 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6105 cat >>confdefs.h <<_ACEOF
6106 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6112 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6113 case $ac_cv_c_int8_t in #(
6117 cat >>confdefs.h <<_ACEOF
6118 #define int8_t $ac_cv_c_int8_t
6123 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6124 case $ac_cv_c_int16_t in #(
6128 cat >>confdefs.h <<_ACEOF
6129 #define int16_t $ac_cv_c_int16_t
6134 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6135 case $ac_cv_c_int32_t in #(
6139 cat >>confdefs.h <<_ACEOF
6140 #define int32_t $ac_cv_c_int32_t
6145 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6146 case $ac_cv_c_int64_t in #(
6150 cat >>confdefs.h <<_ACEOF
6151 #define int64_t $ac_cv_c_int64_t
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6158 $as_echo_n "checking for long long int... " >&6; }
6159 if test "${ac_cv_type_long_long_int+set}" = set; then :
6160 $as_echo_n "(cached) " >&6
6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h. */
6165 /* For now, do not test the preprocessor; as of 2007 there are too many
6166 implementations with broken preprocessors. Perhaps this can
6167 be revisited in 2012. In the meantime, code should not expect
6168 #if to work with literals wider than 32 bits. */
6169 /* Test literals. */
6170 long long int ll = 9223372036854775807ll;
6171 long long int nll = -9223372036854775807LL;
6172 unsigned long long int ull = 18446744073709551615ULL;
6173 /* Test constant expressions. */
6174 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6176 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6182 /* Test availability of runtime routines for shift and division. */
6183 long long int llmax = 9223372036854775807ll;
6184 unsigned long long int ullmax = 18446744073709551615ull;
6185 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6186 | (llmax / ll) | (llmax % ll)
6187 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6188 | (ullmax / ull) | (ullmax % ull));
6194 if ac_fn_cxx_try_link "$LINENO"; then :
6195 if test "$cross_compiling" = yes; then :
6196 ac_cv_type_long_long_int=yes
6198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6199 /* end confdefs.h. */
6203 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6204 # define LLONG_MAX (HALF - 1 + HALF)
6209 long long int n = 1;
6213 long long int m = n << i;
6216 if (LLONG_MAX / 2 < m)
6224 if ac_fn_cxx_try_run "$LINENO"; then :
6225 ac_cv_type_long_long_int=yes
6227 ac_cv_type_long_long_int=no
6229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6230 conftest.$ac_objext conftest.beam conftest.$ac_ext
6234 ac_cv_type_long_long_int=no
6236 rm -f core conftest.err conftest.$ac_objext \
6237 conftest$ac_exeext conftest.$ac_ext
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6240 $as_echo "$ac_cv_type_long_long_int" >&6; }
6241 if test $ac_cv_type_long_long_int = yes; then
6243 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6249 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6250 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6252 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6255 test $ac_cv_type_long_long_int = yes \
6256 && ac_type='long long int' \
6257 || ac_type='long int'
6259 cat >>confdefs.h <<_ACEOF
6260 #define intmax_t $ac_type
6267 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6268 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6270 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6273 for ac_type in 'int' 'long int' 'long long int'; do
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6276 $ac_includes_default
6280 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6287 if ac_fn_cxx_try_compile "$LINENO"; then :
6289 cat >>confdefs.h <<_ACEOF
6290 #define intptr_t $ac_type
6295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 test -z "$ac_type" && break
6301 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6302 case $ac_cv_c_uint8_t in #(
6306 $as_echo "#define _UINT8_T 1" >>confdefs.h
6309 cat >>confdefs.h <<_ACEOF
6310 #define uint8_t $ac_cv_c_uint8_t
6315 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6316 case $ac_cv_c_uint16_t in #(
6321 cat >>confdefs.h <<_ACEOF
6322 #define uint16_t $ac_cv_c_uint16_t
6327 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6328 case $ac_cv_c_uint32_t in #(
6332 $as_echo "#define _UINT32_T 1" >>confdefs.h
6335 cat >>confdefs.h <<_ACEOF
6336 #define uint32_t $ac_cv_c_uint32_t
6341 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6342 case $ac_cv_c_uint64_t in #(
6346 $as_echo "#define _UINT64_T 1" >>confdefs.h
6349 cat >>confdefs.h <<_ACEOF
6350 #define uint64_t $ac_cv_c_uint64_t
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6357 $as_echo_n "checking for unsigned long long int... " >&6; }
6358 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6359 $as_echo_n "(cached) " >&6
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6364 /* For now, do not test the preprocessor; as of 2007 there are too many
6365 implementations with broken preprocessors. Perhaps this can
6366 be revisited in 2012. In the meantime, code should not expect
6367 #if to work with literals wider than 32 bits. */
6368 /* Test literals. */
6369 long long int ll = 9223372036854775807ll;
6370 long long int nll = -9223372036854775807LL;
6371 unsigned long long int ull = 18446744073709551615ULL;
6372 /* Test constant expressions. */
6373 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6375 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6381 /* Test availability of runtime routines for shift and division. */
6382 long long int llmax = 9223372036854775807ll;
6383 unsigned long long int ullmax = 18446744073709551615ull;
6384 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6385 | (llmax / ll) | (llmax % ll)
6386 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6387 | (ullmax / ull) | (ullmax % ull));
6393 if ac_fn_cxx_try_link "$LINENO"; then :
6394 ac_cv_type_unsigned_long_long_int=yes
6396 ac_cv_type_unsigned_long_long_int=no
6398 rm -f core conftest.err conftest.$ac_objext \
6399 conftest$ac_exeext conftest.$ac_ext
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6402 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6403 if test $ac_cv_type_unsigned_long_long_int = yes; then
6405 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6411 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6412 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6414 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6417 test $ac_cv_type_unsigned_long_long_int = yes \
6418 && ac_type='unsigned long long int' \
6419 || ac_type='unsigned long int'
6421 cat >>confdefs.h <<_ACEOF
6422 #define uintmax_t $ac_type
6429 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6430 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6432 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6435 for ac_type in 'unsigned int' 'unsigned long int' \
6436 'unsigned long long int'; do
6437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h. */
6439 $ac_includes_default
6443 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6450 if ac_fn_cxx_try_compile "$LINENO"; then :
6452 cat >>confdefs.h <<_ACEOF
6453 #define uintptr_t $ac_type
6458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459 test -z "$ac_type" && break
6476 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6477 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6480 # check what underlying integer type int64_t uses
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6482 $as_echo_n "checking for int64_t underlying type... " >&6; }
6483 if test "${ac_cv_int64_t_type+set}" = set; then :
6484 $as_echo_n "(cached) " >&6
6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h. */
6490 #ifdef HAVE_STDINT_H
6493 template <typename T> struct X { };
6495 struct X<long> { typedef long t; };
6505 if ac_fn_cxx_try_compile "$LINENO"; then :
6506 ac_cv_int64_t_type=long
6508 ac_cv_int64_t_type="long long"
6510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6513 $as_echo "$ac_cv_int64_t_type" >&6; }
6514 if test "$ac_cv_int64_t_type" = "long"; then
6516 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6522 #ifdef HAVE_STDINT_H
6525 template <typename T> struct X { };
6527 struct X<long long> { typedef long long t; };
6537 if ac_fn_cxx_try_compile "$LINENO"; then :
6540 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6546 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6547 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6548 $as_echo_n "(cached) " >&6
6551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h. */
6559 int a, b; std::swap(a,b);
6564 if ac_fn_cxx_try_compile "$LINENO"; then :
6565 ac_cv_std_swap_in_utility=yes
6567 ac_cv_std_swap_in_utility=no
6569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6572 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6573 if test $ac_cv_std_swap_in_utility = yes; then
6575 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6579 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6580 # If the host compiler is affected by the bug, and we build with optimization
6581 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6582 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6583 # Since there is no reliable feature check for the presence of this bug,
6584 # we simply use a GCC version number check. (This should never trigger for
6585 # stages 2 or 3 of a native bootstrap.)
6587 if test "$GCC" = yes; then
6588 saved_CXXFLAGS="$CXXFLAGS"
6590 # The following test compilation will succeed if and only if $CXX accepts
6591 # -fno-strict-aliasing *and* is older than GCC 4.3.
6592 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6594 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6598 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6599 #error compiler not affected by placement new aliasing bug
6603 if ac_fn_cxx_try_compile "$LINENO"; then :
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6605 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 $as_echo "no" >&6; }
6610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612 CXXFLAGS="$saved_CXXFLAGS"
6618 # ---------------------
6619 # Warnings and checking
6620 # ---------------------
6622 # Check $CC warning features (if it's GCC).
6623 # We want to use -pedantic, but we don't want warnings about
6626 # * overlong strings
6627 # * C++11 narrowing conversions in { }
6628 # So, we only use -pedantic if we can disable those warnings.
6630 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6631 # Check whether --enable-build-format-warnings was given.
6632 if test "${enable_build_format_warnings+set}" = set; then :
6633 enableval=$enable_build_format_warnings;
6635 enable_build_format_warnings=yes
6638 if test $enable_build_format_warnings = no; then :
6644 ac_cpp='$CXXCPP $CPPFLAGS'
6645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6650 save_CXXFLAGS="$CXXFLAGS"
6651 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6652 # Do the check with the no- prefix removed since gcc silently
6653 # accepts any -Wno-* option on purpose
6654 case $real_option in
6655 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6656 *) option=$real_option ;;
6658 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6661 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6662 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6663 $as_echo_n "(cached) " >&6
6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6677 if ac_fn_cxx_try_compile "$LINENO"; then :
6678 eval "$as_acx_Woption=yes"
6680 eval "$as_acx_Woption=no"
6682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685 eval ac_res=\$$as_acx_Woption
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6687 $as_echo "$ac_res" >&6; }
6688 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6689 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6692 CXXFLAGS="$save_CXXFLAGS"
6694 ac_cpp='$CXXCPP $CPPFLAGS'
6695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6702 ac_cpp='$CPP $CPPFLAGS'
6703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6708 save_CFLAGS="$CFLAGS"
6709 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6710 # Do the check with the no- prefix removed since gcc silently
6711 # accepts any -Wno-* option on purpose
6712 case $real_option in
6713 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6714 *) option=$real_option ;;
6716 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6719 $as_echo_n "checking whether $CC supports $option... " >&6; }
6720 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6721 $as_echo_n "(cached) " >&6
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6735 if ac_fn_c_try_compile "$LINENO"; then :
6736 eval "$as_acx_Woption=yes"
6738 eval "$as_acx_Woption=no"
6740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6743 eval ac_res=\$$as_acx_Woption
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6745 $as_echo "$ac_res" >&6; }
6746 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6747 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6750 CFLAGS="$save_CFLAGS"
6752 ac_cpp='$CXXCPP $CPPFLAGS'
6753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6759 ac_cpp='$CXXCPP $CPPFLAGS'
6760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6765 save_CXXFLAGS="$CXXFLAGS"
6766 for real_option in -Wmissing-format-attribute; do
6767 # Do the check with the no- prefix removed since gcc silently
6768 # accepts any -Wno-* option on purpose
6769 case $real_option in
6770 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6771 *) option=$real_option ;;
6773 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6776 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6777 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6778 $as_echo_n "(cached) " >&6
6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782 /* end confdefs.h. */
6792 if ac_fn_cxx_try_compile "$LINENO"; then :
6793 eval "$as_acx_Woption=yes"
6795 eval "$as_acx_Woption=no"
6797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6800 eval ac_res=\$$as_acx_Woption
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6802 $as_echo "$ac_res" >&6; }
6803 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6804 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6807 CXXFLAGS="$save_CXXFLAGS"
6809 ac_cpp='$CXXCPP $CPPFLAGS'
6810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6816 ac_cpp='$CXXCPP $CPPFLAGS'
6817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6821 save_CXXFLAGS="$CXXFLAGS"
6822 for real_option in -Woverloaded-virtual; do
6823 # Do the check with the no- prefix removed since gcc silently
6824 # accepts any -Wno-* option on purpose
6825 case $real_option in
6826 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6827 *) option=$real_option ;;
6829 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6832 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6833 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6834 $as_echo_n "(cached) " >&6
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6848 if ac_fn_cxx_try_compile "$LINENO"; then :
6849 eval "$as_acx_Woption=yes"
6851 eval "$as_acx_Woption=no"
6853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6856 eval ac_res=\$$as_acx_Woption
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6858 $as_echo "$ac_res" >&6; }
6859 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6860 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6863 CXXFLAGS="$save_CXXFLAGS"
6865 ac_cpp='$CXXCPP $CPPFLAGS'
6866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6872 ac_cpp='$CPP $CPPFLAGS'
6873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6878 save_CFLAGS="$CFLAGS"
6879 for real_option in -Wold-style-definition -Wc++-compat; do
6880 # Do the check with the no- prefix removed since gcc silently
6881 # accepts any -Wno-* option on purpose
6882 case $real_option in
6883 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6884 *) option=$real_option ;;
6886 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6889 $as_echo_n "checking whether $CC supports $option... " >&6; }
6890 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6891 $as_echo_n "(cached) " >&6
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6905 if ac_fn_c_try_compile "$LINENO"; then :
6906 eval "$as_acx_Woption=yes"
6908 eval "$as_acx_Woption=no"
6910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6913 eval ac_res=\$$as_acx_Woption
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6915 $as_echo "$ac_res" >&6; }
6916 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6917 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6920 CFLAGS="$save_CFLAGS"
6922 ac_cpp='$CXXCPP $CPPFLAGS'
6923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6929 ac_cpp='$CXXCPP $CPPFLAGS'
6930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6934 # Do the check with the no- prefix removed from the warning options
6935 # since gcc silently accepts any -Wno-* option on purpose
6936 if test "$GXX" = yes; then :
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6938 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6939 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6940 $as_echo_n "(cached) " >&6
6942 save_CXXFLAGS="$CXXFLAGS"
6943 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945 /* end confdefs.h. */
6955 if ac_fn_cxx_try_compile "$LINENO"; then :
6956 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6958 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6961 CXXFLAGS="$save_CXXFLAGS"
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6964 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6965 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6966 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6971 ac_cpp='$CXXCPP $CPPFLAGS'
6972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6978 ac_cpp='$CXXCPP $CPPFLAGS'
6979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6983 # Check whether --enable-werror-always was given.
6984 if test "${enable_werror_always+set}" = set; then :
6985 enableval=$enable_werror_always;
6987 enable_werror_always=no
6990 if test $enable_werror_always = yes; then :
6991 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6995 ac_cpp='$CXXCPP $CPPFLAGS'
6996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7002 # The above macros do nothing if the compiler is not GCC. However, the
7003 # Makefile has more goo to add other flags, so these variables are used
7004 # to enable warnings only for GCC.
7007 if test "x$GCC" = "xyes"; then
7008 warn_cflags='$(GCC_WARN_CFLAGS)'
7009 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7014 # Disable exceptions and RTTI if building with g++
7016 ac_cpp='$CPP $CPPFLAGS'
7017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7022 save_CFLAGS="$CFLAGS"
7023 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7024 # Do the check with the no- prefix removed since gcc silently
7025 # accepts any -Wno-* option on purpose
7026 case $real_option in
7027 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7028 *) option=$real_option ;;
7030 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7033 $as_echo_n "checking whether $CC supports $option... " >&6; }
7034 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7035 $as_echo_n "(cached) " >&6
7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h. */
7049 if ac_fn_c_try_compile "$LINENO"; then :
7050 eval "$as_acx_Woption=yes"
7052 eval "$as_acx_Woption=no"
7054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7057 eval ac_res=\$$as_acx_Woption
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7059 $as_echo "$ac_res" >&6; }
7060 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7061 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7064 CFLAGS="$save_CFLAGS"
7066 ac_cpp='$CXXCPP $CPPFLAGS'
7067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7073 # Enable expensive internal checks
7075 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7079 # Check whether --enable-checking was given.
7080 if test "${enable_checking+set}" = set; then :
7081 enableval=$enable_checking; ac_checking_flags="${enableval}"
7084 # Determine the default checks.
7085 if test x$is_release = x ; then
7086 ac_checking_flags=yes
7088 ac_checking_flags=release
7092 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7093 for check in release $ac_checking_flags
7096 # these set all the flags to specific states
7097 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7098 ac_fold_checking= ; ac_gc_checking=1 ;
7099 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7100 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7101 ac_tree_checking=1 ; ac_valgrind_checking= ;
7102 ac_types_checking=1 ;;
7103 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7104 ac_fold_checking= ; ac_gc_checking= ;
7105 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7106 ac_rtlflag_checking= ; ac_runtime_checking= ;
7107 ac_tree_checking= ; ac_valgrind_checking= ;
7108 ac_types_checking= ;;
7109 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7110 ac_fold_checking=1 ; ac_gc_checking=1 ;
7111 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7112 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7113 ac_tree_checking=1 ; ac_valgrind_checking= ;
7114 ac_types_checking=1 ;;
7115 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7116 ac_fold_checking= ; ac_gc_checking= ;
7117 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7118 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7119 ac_tree_checking= ; ac_valgrind_checking= ;
7120 ac_types_checking= ;;
7121 # these enable particular checks
7122 assert) ac_assert_checking=1 ;;
7123 df) ac_df_checking=1 ;;
7124 fold) ac_fold_checking=1 ;;
7125 gc) ac_gc_checking=1 ;;
7126 gcac) ac_gc_always_collect=1 ;;
7127 gimple) ac_gimple_checking=1 ;;
7128 misc) ac_checking=1 ;;
7129 rtl) ac_rtl_checking=1 ;;
7130 rtlflag) ac_rtlflag_checking=1 ;;
7131 runtime) ac_runtime_checking=1 ;;
7132 tree) ac_tree_checking=1 ;;
7133 types) ac_types_checking=1 ;;
7134 valgrind) ac_valgrind_checking=1 ;;
7135 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7141 if test x$ac_checking != x ; then
7143 $as_echo "#define CHECKING_P 1" >>confdefs.h
7145 nocommon_flag=-fno-common
7147 $as_echo "#define CHECKING_P 0" >>confdefs.h
7151 if test x$ac_df_checking != x ; then
7153 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7156 if test x$ac_assert_checking != x ; then
7158 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7161 if test x$ac_gimple_checking != x ; then
7163 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7167 if test x$ac_runtime_checking != x ; then
7169 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7172 if test x$ac_tree_checking != x ; then
7174 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7178 if test x$ac_types_checking != x ; then
7180 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7184 if test x$ac_rtl_checking != x ; then
7186 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7189 if test x$ac_rtlflag_checking != x ; then
7191 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7194 if test x$ac_gc_checking != x ; then
7196 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7199 if test x$ac_gc_always_collect != x ; then
7201 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7204 if test x$ac_fold_checking != x ; then
7206 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7209 valgrind_path_defines=
7212 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7213 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7221 # It is certainly possible that there's valgrind but no valgrind.h.
7222 # GCC relies on making annotations so we must have both.
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7224 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7227 #include <valgrind/memcheck.h>
7228 #ifndef VALGRIND_DISCARD
7229 #error VALGRIND_DISCARD not defined
7232 if ac_fn_cxx_try_cpp "$LINENO"; then :
7233 gcc_cv_header_valgrind_memcheck_h=yes
7235 gcc_cv_header_valgrind_memcheck_h=no
7237 rm -f conftest.err conftest.$ac_ext
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7239 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7241 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h. */
7244 #include <memcheck.h>
7245 #ifndef VALGRIND_DISCARD
7246 #error VALGRIND_DISCARD not defined
7249 if ac_fn_cxx_try_cpp "$LINENO"; then :
7250 gcc_cv_header_memcheck_h=yes
7252 gcc_cv_header_memcheck_h=no
7254 rm -f conftest.err conftest.$ac_ext
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7256 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7257 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7259 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7262 if test $gcc_cv_header_memcheck_h = yes; then
7264 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7268 if test x$ac_valgrind_checking != x ; then
7270 # Prepare PATH_SEPARATOR.
7271 # The user is always right.
7272 if test "${PATH_SEPARATOR+set}" != set; then
7273 echo "#! /bin/sh" >conf$$.sh
7274 echo "exit 0" >>conf$$.sh
7276 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7284 # Find out how to test for executable files. Don't use a zero-byte file,
7285 # as systems may use methods other than mode bits to determine executability.
7286 cat >conf$$.file <<_ASEOF
7290 chmod +x conf$$.file
7291 if test -x conf$$.file >/dev/null 2>&1; then
7292 ac_executable_p="test -x"
7294 ac_executable_p="test -f"
7298 # Extract the first word of "valgrind", so it can be a program name with args.
7299 set dummy valgrind; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7303 $as_echo_n "(cached) " >&6
7305 case "$valgrind_path" in
7307 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7310 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7311 for ac_dir in $PATH; do
7313 test -z "$ac_dir" && ac_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7316 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7317 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7327 valgrind_path="$ac_cv_path_valgrind_path"
7328 if test -n "$valgrind_path"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7330 $as_echo "$valgrind_path" >&6; }
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7336 if test "x$valgrind_path" = "x" \
7337 || (test $have_valgrind_h = no \
7338 && test $gcc_cv_header_memcheck_h = no \
7339 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7340 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7342 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7343 valgrind_command="$valgrind_path -q"
7345 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7351 # Enable code coverage collection
7352 # Check whether --enable-coverage was given.
7353 if test "${enable_coverage+set}" = set; then :
7354 enableval=$enable_coverage; case "${enableval}" in
7356 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7359 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7362 # a.k.a. --disable-coverage
7366 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7375 # Check whether --enable-gather-detailed-mem-stats was given.
7376 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7377 enableval=$enable_gather_detailed_mem_stats;
7379 enable_gather_detailed_mem_stats=no
7382 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7384 cat >>confdefs.h <<_ACEOF
7385 #define GATHER_STATISTICS $gather_stats
7389 # Check whether --enable-valgrind-annotations was given.
7390 if test "${enable_valgrind_annotations+set}" = set; then :
7391 enableval=$enable_valgrind_annotations;
7393 enable_valgrind_annotations=no
7396 if test x$enable_valgrind_annotations != xno \
7397 || test x$ac_valgrind_checking != x; then
7398 if (test $have_valgrind_h = no \
7399 && test $gcc_cv_header_memcheck_h = no \
7400 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7401 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7404 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7408 # -------------------------------
7409 # Miscenalleous configure options
7410 # -------------------------------
7414 # Check whether --with-stabs was given.
7415 if test "${with_stabs+set}" = set; then :
7416 withval=$with_stabs; stabs="$with_stabs"
7422 # Determine whether or not multilibs are enabled.
7423 # Check whether --enable-multilib was given.
7424 if test "${enable_multilib+set}" = set; then :
7425 enableval=$enable_multilib;
7432 # Determine whether or not multiarch is enabled.
7433 # Check whether --enable-multiarch was given.
7434 if test "${enable_multiarch+set}" = set; then :
7435 enableval=$enable_multiarch; case "${enableval}" in
7436 yes|no|auto) enable_multiarch=$enableval;;
7437 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7440 enable_multiarch=auto
7443 if test x${enable_multiarch} = xauto; then
7444 if test x${with_native_system_header_dir} != x; then
7445 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7448 if test x$host != x$target && test "x$with_sysroot" = x; then
7449 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7454 $as_echo_n "checking for multiarch configuration... " >&6; }
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7457 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7459 # needed for setting the multiarch name for soft-float/hard-float ABIs
7463 # Enable __cxa_atexit for C++.
7464 # Check whether --enable-__cxa_atexit was given.
7465 if test "${enable___cxa_atexit+set}" = set; then :
7466 enableval=$enable___cxa_atexit;
7470 # Enable C extension for decimal float if target supports it.
7472 # Check whether --enable-decimal-float was given.
7473 if test "${enable_decimal_float+set}" = set; then :
7474 enableval=$enable_decimal_float;
7475 case $enable_decimal_float in
7476 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7477 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7478 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7484 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7485 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7486 i?86*-*-mingw* | x86_64*-*-mingw* | \
7487 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7488 enable_decimal_float=yes
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7492 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7493 enable_decimal_float=no
7500 # x86's use BID format instead of DPD
7501 case x$enable_decimal_float in
7504 i?86*-*-* | x86_64*-*-*)
7505 enable_decimal_float=bid
7508 enable_decimal_float=dpd
7511 default_decimal_float=$enable_decimal_float
7514 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7515 # dependency on libdecnumber.
7516 default_decimal_float=dpd
7523 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7525 cat >>confdefs.h <<_ACEOF
7526 #define ENABLE_DECIMAL_FLOAT $dfp
7530 # Use default_decimal_float for dependency.
7531 enable_decimal_float=$default_decimal_float
7533 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7535 cat >>confdefs.h <<_ACEOF
7536 #define ENABLE_DECIMAL_BID_FORMAT $bid
7540 # Enable C extension for fixed-point arithmetic.
7541 # Check whether --enable-fixed-point was given.
7542 if test "${enable_fixed_point+set}" = set; then :
7543 enableval=$enable_fixed_point;
7548 enable_fixed_point=yes
7552 enable_fixed_point=yes
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7556 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7557 enable_fixed_point=no
7565 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7567 cat >>confdefs.h <<_ACEOF
7568 #define ENABLE_FIXED_POINT $fixedpoint
7573 # Pass with no value to take the default
7574 # Pass with a value to specify a thread package
7575 # Check whether --enable-threads was given.
7576 if test "${enable_threads+set}" = set; then :
7577 enableval=$enable_threads;
7583 # Check whether --enable-tls was given.
7584 if test "${enable_tls+set}" = set; then :
7585 enableval=$enable_tls;
7588 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7589 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7597 # Check whether --enable-objc-gc was given.
7598 if test "${enable_objc_gc+set}" = set; then :
7599 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7610 # Check whether --with-dwarf2 was given.
7611 if test "${with_dwarf2+set}" = set; then :
7612 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7618 # Check whether --enable-shared was given.
7619 if test "${enable_shared+set}" = set; then :
7620 enableval=$enable_shared;
7621 case $enable_shared in
7625 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7626 for pkg in $enableval; do
7627 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7642 # Check whether --with-specs was given.
7643 if test "${with_specs+set}" = set; then :
7644 withval=$with_specs; CONFIGURE_SPECS=$withval
7654 # Check whether --with-pkgversion was given.
7655 if test "${with_pkgversion+set}" = set; then :
7656 withval=$with_pkgversion; case "$withval" in
7657 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7659 *) PKGVERSION="($withval) " ;;
7662 PKGVERSION="(Linaro GCC `cat $srcdir/LINARO-VERSION`) "
7670 # Check whether --with-bugurl was given.
7671 if test "${with_bugurl+set}" = set; then :
7672 withval=$with_bugurl; case "$withval" in
7673 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7676 *) BUGURL="$withval"
7680 BUGURL="http://gcc.gnu.org/bugs.html"
7690 REPORT_BUGS_TO="<$BUGURL>"
7691 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7698 # Sanity check enable_languages in case someone does not run the toplevel
7699 # configure # script.
7700 # Check whether --enable-languages was given.
7701 if test "${enable_languages+set}" = set; then :
7702 enableval=$enable_languages; case ,${enable_languages}, in
7704 # go safe -- we cannot be much sure without the toplevel
7706 # analysis of which target libs are present and usable
7710 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7715 enable_languages=c,${enable_languages}
7723 if test x"$enable_as_accelerator_for" != x; then
7725 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7727 enable_as_accelerator=yes
7730 # In this case we expect offload compiler to be built as native, so we
7731 # need to rename the driver to avoid clashes with host's drivers.
7732 program_transform_name="s&^&${target}-&" ;;
7734 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7735 program_transform_name=`echo $program_transform_name | sed $sedscript`
7736 accel_dir_suffix=/accel/${target_noncanonical}
7737 real_target_noncanonical=${enable_as_accelerator_for}
7743 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7744 tgt=`echo $tgt | sed 's/=.*//'`
7746 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7752 if test x"$offload_targets" = x; then
7753 offload_targets=$tgt
7755 offload_targets="$offload_targets,$tgt"
7759 cat >>confdefs.h <<_ACEOF
7760 #define OFFLOAD_TARGETS "$offload_targets"
7763 if test x"$enable_offloading" != x; then
7765 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7769 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7773 if test x"$enable_hsa" = x1 ; then
7775 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7780 # Check whether --with-multilib-list was given.
7781 if test "${with_multilib_list+set}" = set; then :
7782 withval=$with_multilib_list; :
7784 with_multilib_list=default
7788 # -------------------------
7789 # Checks for other programs
7790 # -------------------------
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7793 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7795 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7796 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7797 $as_echo_n "(cached) " >&6
7799 cat >conftest.make <<\_ACEOF
7802 @echo '@@@%%%=$(MAKE)=@@@%%%'
7804 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7805 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7807 eval ac_cv_prog_make_${ac_make}_set=yes;;
7809 eval ac_cv_prog_make_${ac_make}_set=no;;
7813 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7815 $as_echo "yes" >&6; }
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819 $as_echo "no" >&6; }
7820 SET_MAKE="MAKE=${MAKE-make}"
7824 # Find some useful tools
7825 for ac_prog in gawk mawk nawk awk
7827 # Extract the first word of "$ac_prog", so it can be a program name with args.
7828 set dummy $ac_prog; ac_word=$2
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830 $as_echo_n "checking for $ac_word... " >&6; }
7831 if test "${ac_cv_prog_AWK+set}" = set; then :
7832 $as_echo_n "(cached) " >&6
7834 if test -n "$AWK"; then
7835 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841 test -z "$as_dir" && as_dir=.
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7844 ac_cv_prog_AWK="$ac_prog"
7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7855 if test -n "$AWK"; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7857 $as_echo "$AWK" >&6; }
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860 $as_echo "no" >&6; }
7864 test -n "$AWK" && break
7867 # We need awk to create options.c and options.h.
7868 # Bail out if it's missing.
7870 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7874 $as_echo_n "checking whether ln -s works... " >&6; }
7875 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7876 $as_echo_n "(cached) " >&6
7878 rm -f conftestdata_t
7879 echo >conftestdata_f
7880 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7882 gcc_cv_prog_LN_S="ln -s"
7884 if ln conftestdata_f conftestdata_t 2>/dev/null
7888 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7890 gcc_cv_prog_LN_S="cp -p"
7896 rm -f conftestdata_f conftestdata_t
7899 LN_S="$gcc_cv_prog_LN_S"
7900 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7902 $as_echo "yes" >&6; }
7904 if test "$gcc_cv_prog_LN_S" = "ln"; then
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7906 $as_echo "no, using ln" >&6; }
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7909 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7914 $as_echo_n "checking whether ln works... " >&6; }
7915 if test "${acx_cv_prog_LN+set}" = set; then :
7916 $as_echo_n "(cached) " >&6
7918 rm -f conftestdata_t
7919 echo >conftestdata_f
7920 if ln conftestdata_f conftestdata_t 2>/dev/null
7926 rm -f conftestdata_f conftestdata_t
7929 if test $acx_cv_prog_LN = no; then
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7932 $as_echo "no, using $LN" >&6; }
7934 LN="$acx_cv_prog_LN"
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7936 $as_echo "yes" >&6; }
7939 if test -n "$ac_tool_prefix"; then
7940 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7941 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943 $as_echo_n "checking for $ac_word... " >&6; }
7944 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7945 $as_echo_n "(cached) " >&6
7947 if test -n "$RANLIB"; then
7948 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 test -z "$as_dir" && as_dir=.
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7957 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 RANLIB=$ac_cv_prog_RANLIB
7968 if test -n "$RANLIB"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7970 $as_echo "$RANLIB" >&6; }
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 $as_echo "no" >&6; }
7978 if test -z "$ac_cv_prog_RANLIB"; then
7979 ac_ct_RANLIB=$RANLIB
7980 # Extract the first word of "ranlib", so it can be a program name with args.
7981 set dummy ranlib; ac_word=$2
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983 $as_echo_n "checking for $ac_word... " >&6; }
7984 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7985 $as_echo_n "(cached) " >&6
7987 if test -n "$ac_ct_RANLIB"; then
7988 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994 test -z "$as_dir" && as_dir=.
7995 for ac_exec_ext in '' $ac_executable_extensions; do
7996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7997 ac_cv_prog_ac_ct_RANLIB="ranlib"
7998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8008 if test -n "$ac_ct_RANLIB"; then
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8010 $as_echo "$ac_ct_RANLIB" >&6; }
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8016 if test "x$ac_ct_RANLIB" = x; then
8019 case $cross_compiling:$ac_tool_warned in
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8023 ac_tool_warned=yes ;;
8025 RANLIB=$ac_ct_RANLIB
8028 RANLIB="$ac_cv_prog_RANLIB"
8034 # Find a good install program. We prefer a C program (faster),
8035 # so one script is as good as another. But avoid the broken or
8036 # incompatible versions:
8037 # SysV /etc/install, /usr/sbin/install
8038 # SunOS /usr/etc/install
8039 # IRIX /sbin/install
8041 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8042 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8043 # ./install, which can be erroneously created by make from ./install.sh.
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8045 $as_echo_n "checking for a BSD compatible install... " >&6; }
8046 if test -z "$INSTALL"; then
8047 if test "${ac_cv_path_install+set}" = set; then :
8048 $as_echo_n "(cached) " >&6
8050 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8051 for ac_dir in $PATH; do
8052 # Account for people who put trailing slashes in PATH elements.
8054 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8056 # OSF1 and SCO ODT 3.0 have their own names for install.
8057 for ac_prog in ginstall scoinst install; do
8058 if test -f $ac_dir/$ac_prog; then
8059 if test $ac_prog = install &&
8060 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8061 # AIX install. It has an incompatible calling convention.
8062 # OSF/1 installbsd also uses dspmsg, but is usable.
8065 ac_cv_path_install="$ac_dir/$ac_prog -c"
8076 if test "${ac_cv_path_install+set}" = set; then
8077 INSTALL="$ac_cv_path_install"
8079 # As a last resort, use the slow shell script. We don't cache a
8080 # path for INSTALL within a source directory, because that will
8081 # break other packages using the cache if that directory is
8082 # removed, or if the path is relative.
8083 INSTALL="$ac_install_sh"
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8087 $as_echo "$INSTALL" >&6; }
8089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8090 # It thinks the first close brace ends the variable substitution.
8091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8093 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8096 # See if cmp has --ignore-initial.
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8098 $as_echo_n "checking for cmp's capabilities... " >&6; }
8099 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8100 $as_echo_n "(cached) " >&6
8104 gcc_cv_prog_cmp_skip=slowcompare
8105 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8106 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8109 gcc_cv_prog_cmp_skip=gnucompare
8112 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8113 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8114 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8117 gcc_cv_prog_cmp_skip=fastcompare
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8125 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8126 make_compare_target=$gcc_cv_prog_cmp_skip
8130 # See if we have the mktemp command.
8131 # Extract the first word of "mktemp", so it can be a program name with args.
8132 set dummy mktemp; ac_word=$2
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134 $as_echo_n "checking for $ac_word... " >&6; }
8135 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8136 $as_echo_n "(cached) " >&6
8138 if test -n "$have_mktemp_command"; then
8139 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8145 test -z "$as_dir" && as_dir=.
8146 for ac_exec_ext in '' $ac_executable_extensions; do
8147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8148 ac_cv_prog_have_mktemp_command="yes"
8149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8156 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8159 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8160 if test -n "$have_mktemp_command"; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8162 $as_echo "$have_mktemp_command" >&6; }
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165 $as_echo "no" >&6; }
8170 # See if makeinfo has been installed and is modern enough
8171 # that we can use it.
8173 # Extract the first word of "makeinfo", so it can be a program name with args.
8174 set dummy makeinfo; ac_word=$2
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176 $as_echo_n "checking for $ac_word... " >&6; }
8177 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8178 $as_echo_n "(cached) " >&6
8180 if test -n "$MAKEINFO"; then
8181 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 test -z "$as_dir" && as_dir=.
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8190 ac_cv_prog_MAKEINFO="makeinfo"
8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8200 MAKEINFO=$ac_cv_prog_MAKEINFO
8201 if test -n "$MAKEINFO"; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8203 $as_echo "$MAKEINFO" >&6; }
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8210 if test -n "$MAKEINFO"; then
8211 # Found it, now check the version.
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8213 $as_echo_n "checking for modern makeinfo... " >&6; }
8214 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8215 $as_echo_n "(cached) " >&6
8217 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8218 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8220 case $ac_prog_version in
8221 '') gcc_cv_prog_makeinfo_modern=no;;
8222 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8223 *) gcc_cv_prog_makeinfo_modern=no;;
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8228 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8230 gcc_cv_prog_makeinfo_modern=no
8232 if test $gcc_cv_prog_makeinfo_modern = no; then
8233 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8236 if test $gcc_cv_prog_makeinfo_modern = no; then
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8238 *** Makeinfo is missing or too old.
8239 *** Info documentation will not be built." >&5
8240 $as_echo "$as_me: WARNING:
8241 *** Makeinfo is missing or too old.
8242 *** Info documentation will not be built." >&2;}
8249 # Is pod2man recent enough to regenerate manpages?
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8251 $as_echo_n "checking for recent Pod::Man... " >&6; }
8252 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8254 $as_echo "yes" >&6; }
8255 GENERATED_MANPAGES=generated-manpages
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 $as_echo "no" >&6; }
8263 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8268 # Extract the first word of "$ac_prog", so it can be a program name with args.
8269 set dummy $ac_prog; ac_word=$2
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271 $as_echo_n "checking for $ac_word... " >&6; }
8272 if test "${ac_cv_prog_FLEX+set}" = set; then :
8273 $as_echo_n "(cached) " >&6
8275 if test -n "$FLEX"; then
8276 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 test -z "$as_dir" && as_dir=.
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8285 ac_cv_prog_FLEX="$ac_prog"
8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 FLEX=$ac_cv_prog_FLEX
8296 if test -n "$FLEX"; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8298 $as_echo "$FLEX" >&6; }
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 $as_echo "no" >&6; }
8305 test -n "$FLEX" && break
8307 test -n "$FLEX" || FLEX="$MISSING flex"
8311 for ac_prog in bison
8313 # Extract the first word of "$ac_prog", so it can be a program name with args.
8314 set dummy $ac_prog; ac_word=$2
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316 $as_echo_n "checking for $ac_word... " >&6; }
8317 if test "${ac_cv_prog_BISON+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
8320 if test -n "$BISON"; then
8321 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 test -z "$as_dir" && as_dir=.
8328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8330 ac_cv_prog_BISON="$ac_prog"
8331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8340 BISON=$ac_cv_prog_BISON
8341 if test -n "$BISON"; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8343 $as_echo "$BISON" >&6; }
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346 $as_echo "no" >&6; }
8350 test -n "$BISON" && break
8352 test -n "$BISON" || BISON="$MISSING bison"
8355 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8356 # check for build == host before using them.
8359 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8360 && test -d ../binutils ; then
8361 NM='${objdir}/../binutils/nm-new'
8363 # Extract the first word of "nm", so it can be a program name with args.
8364 set dummy nm; ac_word=$2
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366 $as_echo_n "checking for $ac_word... " >&6; }
8367 if test "${ac_cv_prog_NM+set}" = set; then :
8368 $as_echo_n "(cached) " >&6
8370 if test -n "$NM"; then
8371 ac_cv_prog_NM="$NM" # Let the user override the test.
8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377 test -z "$as_dir" && as_dir=.
8378 for ac_exec_ext in '' $ac_executable_extensions; do
8379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8388 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8392 if test -n "$NM"; then
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8394 $as_echo "$NM" >&6; }
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397 $as_echo "no" >&6; }
8404 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8405 && test -d ../binutils ; then
8406 AR='${objdir}/../binutils/ar'
8408 # Extract the first word of "ar", so it can be a program name with args.
8409 set dummy ar; ac_word=$2
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8411 $as_echo_n "checking for $ac_word... " >&6; }
8412 if test "${ac_cv_prog_AR+set}" = set; then :
8413 $as_echo_n "(cached) " >&6
8415 if test -n "$AR"; then
8416 ac_cv_prog_AR="$AR" # Let the user override the test.
8418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422 test -z "$as_dir" && as_dir=.
8423 for ac_exec_ext in '' $ac_executable_extensions; do
8424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8433 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8437 if test -n "$AR"; then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8439 $as_echo "$AR" >&6; }
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442 $as_echo "no" >&6; }
8448 # The jit documentation looks better if built with sphinx, but can be
8449 # built with texinfo if sphinx is not available.
8450 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8451 # Extract the first word of "sphinx-build", so it can be a program name with args.
8452 set dummy sphinx-build; ac_word=$2
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454 $as_echo_n "checking for $ac_word... " >&6; }
8455 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
8458 if test -n "$doc_build_sys"; then
8459 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465 test -z "$as_dir" && as_dir=.
8466 for ac_exec_ext in '' $ac_executable_extensions; do
8467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8468 ac_cv_prog_doc_build_sys="sphinx"
8469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8476 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8479 doc_build_sys=$ac_cv_prog_doc_build_sys
8480 if test -n "$doc_build_sys"; then
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8482 $as_echo "$doc_build_sys" >&6; }
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485 $as_echo "no" >&6; }
8490 # --------------------
8491 # Checks for C headers
8492 # --------------------
8494 # Need to reject headers which give warnings, so that the -Werror bootstrap
8495 # works later. *sigh* This needs to come before all header checks.
8497 ac_c_preproc_warn_flag=yes
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8500 $as_echo_n "checking for ANSI C header files... " >&6; }
8501 if test "${ac_cv_header_stdc+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h. */
8519 if ac_fn_cxx_try_compile "$LINENO"; then :
8520 ac_cv_header_stdc=yes
8522 ac_cv_header_stdc=no
8524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8526 if test $ac_cv_header_stdc = yes; then
8527 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h. */
8533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8534 $EGREP "memchr" >/dev/null 2>&1; then :
8537 ac_cv_header_stdc=no
8543 if test $ac_cv_header_stdc = yes; then
8544 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8546 /* end confdefs.h. */
8550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8551 $EGREP "free" >/dev/null 2>&1; then :
8554 ac_cv_header_stdc=no
8560 if test $ac_cv_header_stdc = yes; then
8561 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8562 if test "$cross_compiling" = yes; then :
8565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h. */
8569 #if ((' ' & 0x0FF) == 0x020)
8570 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8571 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8573 # define ISLOWER(c) \
8574 (('a' <= (c) && (c) <= 'i') \
8575 || ('j' <= (c) && (c) <= 'r') \
8576 || ('s' <= (c) && (c) <= 'z'))
8577 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8580 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8585 for (i = 0; i < 256; i++)
8586 if (XOR (islower (i), ISLOWER (i))
8587 || toupper (i) != TOUPPER (i))
8592 if ac_fn_cxx_try_run "$LINENO"; then :
8595 ac_cv_header_stdc=no
8597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8598 conftest.$ac_objext conftest.beam conftest.$ac_ext
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8604 $as_echo "$ac_cv_header_stdc" >&6; }
8605 if test $ac_cv_header_stdc = yes; then
8607 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8612 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8613 if test "${ac_cv_header_time+set}" = set; then :
8614 $as_echo_n "(cached) " >&6
8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h. */
8618 #include <sys/types.h>
8619 #include <sys/time.h>
8625 if ((struct tm *) 0)
8631 if ac_fn_cxx_try_compile "$LINENO"; then :
8632 ac_cv_header_time=yes
8634 ac_cv_header_time=no
8636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8639 $as_echo "$ac_cv_header_time" >&6; }
8640 if test $ac_cv_header_time = yes; then
8642 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8647 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8648 if test "${gcc_cv_header_string+set}" = set; then :
8649 $as_echo_n "(cached) " >&6
8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8654 #include <strings.h>
8663 if ac_fn_cxx_try_compile "$LINENO"; then :
8664 gcc_cv_header_string=yes
8666 gcc_cv_header_string=no
8668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8671 $as_echo "$gcc_cv_header_string" >&6; }
8672 if test $gcc_cv_header_string = yes; then
8674 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8679 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8680 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8681 $as_echo_n "(cached) " >&6
8683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h. */
8685 #include <sys/types.h>
8686 #include <sys/wait.h>
8688 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8691 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8699 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8704 if ac_fn_cxx_try_compile "$LINENO"; then :
8705 ac_cv_header_sys_wait_h=yes
8707 ac_cv_header_sys_wait_h=no
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8712 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8713 if test $ac_cv_header_sys_wait_h = yes; then
8715 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8720 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8721 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8722 $as_echo_n "(cached) " >&6
8724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725 /* end confdefs.h. */
8726 #include <sys/types.h>
8727 #include <termios.h>
8733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8734 $EGREP "yes" >/dev/null 2>&1; then :
8735 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8737 ac_cv_sys_tiocgwinsz_in_termios_h=no
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8743 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8745 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8747 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8748 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8749 $as_echo_n "(cached) " >&6
8751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752 /* end confdefs.h. */
8753 #include <sys/types.h>
8754 #include <sys/ioctl.h>
8760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8761 $EGREP "yes" >/dev/null 2>&1; then :
8762 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8764 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8770 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8772 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8774 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8779 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8780 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8781 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8782 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8784 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8785 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8786 eval as_val=\$$as_ac_Header
8787 if test "x$as_val" = x""yes; then :
8788 cat >>confdefs.h <<_ACEOF
8789 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8796 # Check for thread headers.
8797 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8798 if test "x$ac_cv_header_thread_h" = x""yes; then :
8804 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8805 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8812 # These tests can't be done till we know if we have limits.h.
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8814 $as_echo_n "checking for CHAR_BIT... " >&6; }
8815 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8816 $as_echo_n "(cached) " >&6
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h. */
8820 #ifdef HAVE_LIMITS_H
8827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8828 $EGREP "found" >/dev/null 2>&1; then :
8829 gcc_cv_decl_char_bit=yes
8831 gcc_cv_decl_char_bit=no
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8838 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8839 if test $gcc_cv_decl_char_bit = no; then
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8841 $as_echo_n "checking number of bits in a byte... " >&6; }
8842 if test "${gcc_cv_c_nbby+set}" = set; then :
8843 $as_echo_n "(cached) " >&6
8847 while test $i -lt 65; do
8848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8849 /* end confdefs.h. */
8855 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8856 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8862 if ac_fn_cxx_try_compile "$LINENO"; then :
8863 gcc_cv_c_nbby=$i; break
8865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8872 $as_echo "$gcc_cv_c_nbby" >&6; }
8873 if test $gcc_cv_c_nbby = failed; then
8874 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8877 cat >>confdefs.h <<_ACEOF
8878 #define CHAR_BIT $gcc_cv_c_nbby
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8884 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8885 if test "${ac_cv_c_bigendian+set}" = set; then :
8886 $as_echo_n "(cached) " >&6
8888 ac_cv_c_bigendian=unknown
8889 # See if we're dealing with a universal compiler.
8890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891 /* end confdefs.h. */
8892 #ifndef __APPLE_CC__
8893 not a universal capable compiler
8898 if ac_fn_cxx_try_compile "$LINENO"; then :
8900 # Check for potential -arch flags. It is not universal unless
8901 # there are at least two -arch flags with different values.
8904 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8905 if test -n "$ac_prev"; then
8907 i?86 | x86_64 | ppc | ppc64)
8908 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8911 ac_cv_c_bigendian=universal
8917 elif test "x$ac_word" = "x-arch"; then
8922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8923 if test $ac_cv_c_bigendian = unknown; then
8924 # See if sys/param.h defines the BYTE_ORDER macro.
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927 #include <sys/types.h>
8928 #include <sys/param.h>
8933 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8934 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8943 if ac_fn_cxx_try_compile "$LINENO"; then :
8944 # It does; now see whether it defined to BIG_ENDIAN or not.
8945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946 /* end confdefs.h. */
8947 #include <sys/types.h>
8948 #include <sys/param.h>
8953 #if BYTE_ORDER != BIG_ENDIAN
8961 if ac_fn_cxx_try_compile "$LINENO"; then :
8962 ac_cv_c_bigendian=yes
8964 ac_cv_c_bigendian=no
8966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8970 if test $ac_cv_c_bigendian = unknown; then
8971 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973 /* end confdefs.h. */
8979 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8987 if ac_fn_cxx_try_compile "$LINENO"; then :
8988 # It does; now see whether it defined to _BIG_ENDIAN or not.
8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990 /* end confdefs.h. */
9004 if ac_fn_cxx_try_compile "$LINENO"; then :
9005 ac_cv_c_bigendian=yes
9007 ac_cv_c_bigendian=no
9009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9013 if test $ac_cv_c_bigendian = unknown; then
9014 # Compile a test program.
9015 if test "$cross_compiling" = yes; then :
9016 # Try to guess by grepping values from an object file.
9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h. */
9019 short int ascii_mm[] =
9020 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9021 short int ascii_ii[] =
9022 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9023 int use_ascii (int i) {
9024 return ascii_mm[i] + ascii_ii[i];
9026 short int ebcdic_ii[] =
9027 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9028 short int ebcdic_mm[] =
9029 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9030 int use_ebcdic (int i) {
9031 return ebcdic_mm[i] + ebcdic_ii[i];
9038 return use_ascii (foo) == use_ebcdic (foo);
9043 if ac_fn_cxx_try_compile "$LINENO"; then :
9044 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9045 ac_cv_c_bigendian=yes
9047 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9048 if test "$ac_cv_c_bigendian" = unknown; then
9049 ac_cv_c_bigendian=no
9051 # finding both strings is unlikely to happen, but who knows?
9052 ac_cv_c_bigendian=unknown
9056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9060 $ac_includes_default
9065 /* Are we little or big endian? From Harbison&Steele. */
9069 char c[sizeof (long int)];
9072 return u.c[sizeof (long int) - 1] == 1;
9078 if ac_fn_cxx_try_run "$LINENO"; then :
9079 ac_cv_c_bigendian=no
9081 ac_cv_c_bigendian=yes
9083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9084 conftest.$ac_objext conftest.beam conftest.$ac_ext
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9090 $as_echo "$ac_cv_c_bigendian" >&6; }
9091 case $ac_cv_c_bigendian in #(
9093 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9099 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9103 as_fn_error "unknown endianness
9104 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9108 # ----------------------
9109 # Checks for C++ headers
9110 # ----------------------
9113 ac_cpp='$CXXCPP $CPPFLAGS'
9114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9118 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9119 if test -z "$CXXCPP"; then
9120 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9121 $as_echo_n "(cached) " >&6
9123 # Double quotes because CXXCPP needs to be expanded
9124 for CXXCPP in "$CXX -E" "/lib/cpp"
9127 for ac_cxx_preproc_warn_flag in '' yes
9129 # Use a header file that comes with gcc, so configuring glibc
9130 # with a fresh cross-compiler works.
9131 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9132 # <limits.h> exists even on freestanding compilers.
9133 # On the NeXT, cc -E runs the code through the compiler's parser,
9134 # not just through cpp. "Syntax error" is here to catch this case.
9135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9136 /* end confdefs.h. */
9138 # include <limits.h>
9140 # include <assert.h>
9144 if ac_fn_cxx_try_cpp "$LINENO"; then :
9147 # Broken: fails on valid input.
9150 rm -f conftest.err conftest.$ac_ext
9152 # OK, works on sane cases. Now check whether nonexistent headers
9153 # can be detected and how.
9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155 /* end confdefs.h. */
9156 #include <ac_nonexistent.h>
9158 if ac_fn_cxx_try_cpp "$LINENO"; then :
9159 # Broken: success on invalid input.
9162 # Passes both tests.
9166 rm -f conftest.err conftest.$ac_ext
9169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9170 rm -f conftest.err conftest.$ac_ext
9171 if $ac_preproc_ok; then :
9176 ac_cv_prog_CXXCPP=$CXXCPP
9179 CXXCPP=$ac_cv_prog_CXXCPP
9181 ac_cv_prog_CXXCPP=$CXXCPP
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9184 $as_echo "$CXXCPP" >&6; }
9186 for ac_cxx_preproc_warn_flag in '' yes
9188 # Use a header file that comes with gcc, so configuring glibc
9189 # with a fresh cross-compiler works.
9190 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9191 # <limits.h> exists even on freestanding compilers.
9192 # On the NeXT, cc -E runs the code through the compiler's parser,
9193 # not just through cpp. "Syntax error" is here to catch this case.
9194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9195 /* end confdefs.h. */
9197 # include <limits.h>
9199 # include <assert.h>
9203 if ac_fn_cxx_try_cpp "$LINENO"; then :
9206 # Broken: fails on valid input.
9209 rm -f conftest.err conftest.$ac_ext
9211 # OK, works on sane cases. Now check whether nonexistent headers
9212 # can be detected and how.
9213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9214 /* end confdefs.h. */
9215 #include <ac_nonexistent.h>
9217 if ac_fn_cxx_try_cpp "$LINENO"; then :
9218 # Broken: success on invalid input.
9221 # Passes both tests.
9225 rm -f conftest.err conftest.$ac_ext
9228 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9229 rm -f conftest.err conftest.$ac_ext
9230 if $ac_preproc_ok; then :
9233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9236 See \`config.log' for more details." >&5
9237 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9238 See \`config.log' for more details." >&2;}; }
9242 ac_cpp='$CXXCPP $CPPFLAGS'
9243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9248 for ac_header in unordered_map
9250 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9251 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9252 cat >>confdefs.h <<_ACEOF
9253 #define HAVE_UNORDERED_MAP 1
9259 for ac_header in tr1/unordered_map
9261 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9262 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9263 cat >>confdefs.h <<_ACEOF
9264 #define HAVE_TR1_UNORDERED_MAP 1
9270 for ac_header in ext/hash_map
9272 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9273 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9274 cat >>confdefs.h <<_ACEOF
9275 #define HAVE_EXT_HASH_MAP 1
9283 # Dependency checking.
9286 rm -rf .tst 2>/dev/null
9287 mkdir .tst 2>/dev/null
9288 if test -d .tst; then
9293 rmdir .tst 2>/dev/null
9295 DEPDIR="${am__leading_dot}deps"
9297 ac_config_commands="$ac_config_commands depdir"
9300 ac_config_commands="$ac_config_commands gccdepdir"
9303 depcc="$CXX" am_compiler_list=
9305 am_depcomp=$ac_aux_dir/depcomp
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9307 $as_echo_n "checking dependency style of $depcc... " >&6; }
9308 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9309 $as_echo_n "(cached) " >&6
9311 if test -f "$am_depcomp"; then
9312 # We make a subdir and do the tests there. Otherwise we can end up
9313 # making bogus files that we don't know about and never remove. For
9314 # instance it was reported that on HP-UX the gcc test will end up
9315 # making a dummy file named `D' -- because `-MD' means `put the output
9318 # Copy depcomp to subdir because otherwise we won't find it if we're
9319 # using a relative directory.
9320 cp "$am_depcomp" conftest.dir
9322 # We will build objects and dependencies in a subdirectory because
9323 # it helps to detect inapplicable dependency modes. For instance
9324 # both Tru64's cc and ICC support -MD to output dependencies as a
9325 # side effect of compilation, but ICC will put the dependencies in
9326 # the current directory while Tru64 will put them in the object
9330 am_cv_CXX_dependencies_compiler_type=none
9331 if test "$am_compiler_list" = ""; then
9332 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9334 for depmode in $am_compiler_list; do
9335 if test $depmode = none; then break; fi
9337 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9338 # Setup a source with many dependencies, because some compilers
9339 # like to wrap large dependency lists on column 80 (with \), and
9340 # we should not choose a depcomp mode which is confused by this.
9342 # We need to recreate these files for each test, as the compiler may
9343 # overwrite some of them when testing with obscure command lines.
9344 # This happens at least with the AIX C compiler.
9346 for i in 1 2 3 4 5 6; do
9347 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9348 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9349 # Solaris 8's {/usr,}/bin/sh.
9350 touch sub/conftst$i.h
9352 echo "include sub/conftest.Po" > confmf
9354 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9355 # mode. It turns out that the SunPro C++ compiler does not properly
9356 # handle `-M -o', and we need to detect this.
9357 depcmd="depmode=$depmode \
9358 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9359 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9360 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9361 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9362 if env $depcmd > conftest.err 2>&1 &&
9363 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9364 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9365 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9366 # icc doesn't choke on unknown options, it will just issue warnings
9367 # or remarks (even with -Werror). So we grep stderr for any message
9368 # that says an option was ignored or not supported.
9369 # When given -MP, icc 7.0 and 7.1 complain thusly:
9370 # icc: Command line warning: ignoring option '-M'; no argument required
9371 # The diagnosis changed in icc 8.0:
9372 # icc: Command line remark: option '-MP' not supported
9373 if (grep 'ignoring option' conftest.err ||
9374 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9375 am_cv_CXX_dependencies_compiler_type=$depmode
9376 $as_echo "$as_me:$LINENO: success" >&5
9380 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9381 sed -e 's/^/| /' < conftest.err >&5
9387 am_cv_CXX_dependencies_compiler_type=none
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9392 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9393 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9394 then as_fn_error "no usable dependency style found" "$LINENO" 5
9395 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9405 # These libraries may be used by collect2.
9406 # We may need a special search path to get them linked.
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9408 $as_echo_n "checking for collect2 libraries... " >&6; }
9409 if test "${gcc_cv_collect2_libs+set}" = set; then :
9410 $as_echo_n "(cached) " >&6
9413 for libs in '' -lld -lmld \
9414 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9415 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9419 /* end confdefs.h. */
9421 /* Override any GCC internal prototype to avoid an error.
9422 Use char because int might match the return type of a GCC
9423 builtin and then its argument prototype would still apply. */
9436 if ac_fn_cxx_try_link "$LINENO"; then :
9437 gcc_cv_collect2_libs="$libs"; break
9439 rm -f core conftest.err conftest.$ac_objext \
9440 conftest$ac_exeext conftest.$ac_ext
9443 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9446 $as_echo "$gcc_cv_collect2_libs" >&6; }
9447 case $gcc_cv_collect2_libs in
9449 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9453 # When building Ada code on Alpha, we need exc_resume which is usually in
9454 # -lexc. So test for it.
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9458 $as_echo_n "checking for library containing exc_resume... " >&6; }
9459 if test "${ac_cv_search_exc_resume+set}" = set; then :
9460 $as_echo_n "(cached) " >&6
9462 ac_func_search_save_LIBS=$LIBS
9463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464 /* end confdefs.h. */
9466 /* Override any GCC internal prototype to avoid an error.
9467 Use char because int might match the return type of a GCC
9468 builtin and then its argument prototype would still apply. */
9476 return exc_resume ();
9481 for ac_lib in '' exc; do
9482 if test -z "$ac_lib"; then
9483 ac_res="none required"
9486 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9488 if ac_fn_cxx_try_link "$LINENO"; then :
9489 ac_cv_search_exc_resume=$ac_res
9491 rm -f core conftest.err conftest.$ac_objext \
9493 if test "${ac_cv_search_exc_resume+set}" = set; then :
9497 if test "${ac_cv_search_exc_resume+set}" = set; then :
9500 ac_cv_search_exc_resume=no
9503 LIBS=$ac_func_search_save_LIBS
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9506 $as_echo "$ac_cv_search_exc_resume" >&6; }
9507 ac_res=$ac_cv_search_exc_resume
9508 if test "$ac_res" != no; then :
9509 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9517 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9521 $as_echo_n "checking for library containing kstat_open... " >&6; }
9522 if test "${ac_cv_search_kstat_open+set}" = set; then :
9523 $as_echo_n "(cached) " >&6
9525 ac_func_search_save_LIBS=$LIBS
9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527 /* end confdefs.h. */
9529 /* Override any GCC internal prototype to avoid an error.
9530 Use char because int might match the return type of a GCC
9531 builtin and then its argument prototype would still apply. */
9539 return kstat_open ();
9544 for ac_lib in '' kstat; do
9545 if test -z "$ac_lib"; then
9546 ac_res="none required"
9549 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9551 if ac_fn_cxx_try_link "$LINENO"; then :
9552 ac_cv_search_kstat_open=$ac_res
9554 rm -f core conftest.err conftest.$ac_objext \
9556 if test "${ac_cv_search_kstat_open+set}" = set; then :
9560 if test "${ac_cv_search_kstat_open+set}" = set; then :
9563 ac_cv_search_kstat_open=no
9566 LIBS=$ac_func_search_save_LIBS
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9569 $as_echo "$ac_cv_search_kstat_open" >&6; }
9570 ac_res=$ac_cv_search_kstat_open
9571 if test "$ac_res" != no; then :
9572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9576 EXTRA_GCC_LIBS="$LIBS"
9580 # Some systems put ldexp and frexp in libm instead of libc; assume
9581 # they're both in the same place. jcf-dump needs them.
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9585 $as_echo_n "checking for library containing ldexp... " >&6; }
9586 if test "${ac_cv_search_ldexp+set}" = set; then :
9587 $as_echo_n "(cached) " >&6
9589 ac_func_search_save_LIBS=$LIBS
9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591 /* end confdefs.h. */
9593 /* Override any GCC internal prototype to avoid an error.
9594 Use char because int might match the return type of a GCC
9595 builtin and then its argument prototype would still apply. */
9608 for ac_lib in '' m; do
9609 if test -z "$ac_lib"; then
9610 ac_res="none required"
9613 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9615 if ac_fn_cxx_try_link "$LINENO"; then :
9616 ac_cv_search_ldexp=$ac_res
9618 rm -f core conftest.err conftest.$ac_objext \
9620 if test "${ac_cv_search_ldexp+set}" = set; then :
9624 if test "${ac_cv_search_ldexp+set}" = set; then :
9627 ac_cv_search_ldexp=no
9630 LIBS=$ac_func_search_save_LIBS
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9633 $as_echo "$ac_cv_search_ldexp" >&6; }
9634 ac_res=$ac_cv_search_ldexp
9635 if test "$ac_res" != no; then :
9636 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9644 # Use <inttypes.h> only if it exists,
9645 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9648 $as_echo_n "checking for inttypes.h... " >&6; }
9649 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9650 $as_echo_n "(cached) " >&6
9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9654 #define __STDC_FORMAT_MACROS
9655 #include <sys/types.h>
9656 #include <inttypes.h>
9668 if ac_fn_cxx_try_compile "$LINENO"; then :
9669 gcc_cv_header_inttypes_h=yes
9671 gcc_cv_header_inttypes_h=no
9673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9677 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9678 if test $gcc_cv_header_inttypes_h = yes; then
9680 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9686 for ac_func in times clock kill getrlimit setrlimit atoq \
9687 popen sysconf strsignal getrusage nl_langinfo \
9688 gettimeofday mbstowcs wcswidth mmap setlocale \
9689 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
9691 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9692 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9693 eval as_val=\$$as_ac_var
9694 if test "x$as_val" = x""yes; then :
9695 cat >>confdefs.h <<_ACEOF
9696 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9703 if test x$ac_cv_func_mbstowcs = xyes; then
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9705 $as_echo_n "checking whether mbstowcs works... " >&6; }
9706 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9707 $as_echo_n "(cached) " >&6
9709 if test "$cross_compiling" = yes; then :
9710 gcc_cv_func_mbstowcs_works=yes
9712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9713 /* end confdefs.h. */
9721 if ac_fn_cxx_try_run "$LINENO"; then :
9722 gcc_cv_func_mbstowcs_works=yes
9724 gcc_cv_func_mbstowcs_works=no
9726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9727 conftest.$ac_objext conftest.beam conftest.$ac_ext
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9732 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9733 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9735 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9740 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9741 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9745 cat >>confdefs.h <<_ACEOF
9751 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9752 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9756 cat >>confdefs.h <<_ACEOF
9757 #define caddr_t char *
9764 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9765 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9766 gcc_header_sys_mman_h=yes
9768 gcc_header_sys_mman_h=no
9771 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9772 if test "x$ac_cv_func_mmap" = x""yes; then :
9778 if test "$gcc_header_sys_mman_h" != yes \
9779 || test "$gcc_func_mmap" != yes; then
9780 gcc_cv_func_mmap_file=no
9781 gcc_cv_func_mmap_dev_zero=no
9782 gcc_cv_func_mmap_anon=no
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9785 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9786 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9787 $as_echo_n "(cached) " >&6
9789 # Add a system to this blacklist if
9790 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9791 # memory area containing the same data that you'd get if you applied
9792 # read() to the same fd. The only system known to have a problem here
9793 # is VMS, where text files have record structure.
9796 gcc_cv_func_mmap_file=no ;;
9798 gcc_cv_func_mmap_file=yes;;
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9802 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9804 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9805 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9806 $as_echo_n "(cached) " >&6
9808 # Add a system to this blacklist if it has mmap() but /dev/zero
9809 # does not exist, or if mmapping /dev/zero does not give anonymous
9810 # zeroed pages with both the following properties:
9811 # 1. If you map N consecutive pages in with one call, and then
9812 # unmap any subset of those pages, the pages that were not
9813 # explicitly unmapped remain accessible.
9814 # 2. If you map two adjacent blocks of memory and then unmap them
9815 # both at once, they must both go away.
9816 # Systems known to be in this category are Windows (all variants),
9819 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9820 gcc_cv_func_mmap_dev_zero=no ;;
9822 gcc_cv_func_mmap_dev_zero=yes;;
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9826 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9828 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9830 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9831 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9832 $as_echo_n "(cached) " >&6
9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9836 #include <sys/types.h>
9837 #include <sys/mman.h>
9840 #ifndef MAP_ANONYMOUS
9841 #define MAP_ANONYMOUS MAP_ANON
9847 int n = MAP_ANONYMOUS;
9852 if ac_fn_cxx_try_compile "$LINENO"; then :
9853 gcc_cv_decl_map_anon=yes
9855 gcc_cv_decl_map_anon=no
9857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9860 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9862 if test $gcc_cv_decl_map_anon = no; then
9863 gcc_cv_func_mmap_anon=no
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9866 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9867 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9868 $as_echo_n "(cached) " >&6
9870 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9871 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9872 # doesn't give anonymous zeroed pages with the same properties listed
9873 # above for use of /dev/zero.
9874 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9876 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9877 gcc_cv_func_mmap_anon=no ;;
9879 gcc_cv_func_mmap_anon=yes;;
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9883 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9887 if test $gcc_cv_func_mmap_file = yes; then
9889 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9892 if test $gcc_cv_func_mmap_dev_zero = yes; then
9894 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9897 if test $gcc_cv_func_mmap_anon = yes; then
9899 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9906 # Under VMS, vfork works very differently than on Unix. The standard test
9907 # won't work, and it isn't easily adaptable. It makes more sense to
9909 ac_cv_func_vfork_works=yes
9912 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9913 if test "x$ac_cv_type_pid_t" = x""yes; then :
9917 cat >>confdefs.h <<_ACEOF
9923 for ac_header in vfork.h
9925 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9926 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9927 cat >>confdefs.h <<_ACEOF
9928 #define HAVE_VFORK_H 1
9934 for ac_func in fork vfork
9936 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9937 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9938 eval as_val=\$$as_ac_var
9939 if test "x$as_val" = x""yes; then :
9940 cat >>confdefs.h <<_ACEOF
9941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9947 if test "x$ac_cv_func_fork" = xyes; then
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9949 $as_echo_n "checking for working fork... " >&6; }
9950 if test "${ac_cv_func_fork_works+set}" = set; then :
9951 $as_echo_n "(cached) " >&6
9953 if test "$cross_compiling" = yes; then :
9954 ac_cv_func_fork_works=cross
9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957 /* end confdefs.h. */
9958 $ac_includes_default
9963 /* By Ruediger Kuhlmann. */
9970 if ac_fn_cxx_try_run "$LINENO"; then :
9971 ac_cv_func_fork_works=yes
9973 ac_cv_func_fork_works=no
9975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9976 conftest.$ac_objext conftest.beam conftest.$ac_ext
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9981 $as_echo "$ac_cv_func_fork_works" >&6; }
9984 ac_cv_func_fork_works=$ac_cv_func_fork
9986 if test "x$ac_cv_func_fork_works" = xcross; then
9988 *-*-amigaos* | *-*-msdosdjgpp*)
9989 # Override, as these systems have only a dummy fork() stub
9990 ac_cv_func_fork_works=no
9993 ac_cv_func_fork_works=yes
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9997 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9999 ac_cv_func_vfork_works=$ac_cv_func_vfork
10000 if test "x$ac_cv_func_vfork" = xyes; then
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10002 $as_echo_n "checking for working vfork... " >&6; }
10003 if test "${ac_cv_func_vfork_works+set}" = set; then :
10004 $as_echo_n "(cached) " >&6
10006 if test "$cross_compiling" = yes; then :
10007 ac_cv_func_vfork_works=cross
10009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010 /* end confdefs.h. */
10011 /* Thanks to Paul Eggert for this test. */
10012 $ac_includes_default
10013 #include <sys/wait.h>
10014 #ifdef HAVE_VFORK_H
10015 # include <vfork.h>
10017 /* On some sparc systems, changes by the child to local and incoming
10018 argument registers are propagated back to the parent. The compiler
10019 is told about this with #include <vfork.h>, but some compilers
10020 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10021 static variable whose address is put into a register that is
10022 clobbered by the vfork. */
10025 sparc_address_test (int arg)
10027 sparc_address_test (arg) int arg;
10030 static pid_t child;
10048 pid_t parent = getpid ();
10051 sparc_address_test (0);
10056 /* Here is another test for sparc vfork register problems. This
10057 test uses lots of local variables, at least as many local
10058 variables as main has allocated so far including compiler
10059 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10060 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10061 reuse the register of parent for one of the local variables,
10062 since it will think that parent can't possibly be used any more
10063 in this routine. Assigning to the local variable will thus
10064 munge parent in the parent process. */
10066 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10067 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10068 /* Convince the compiler that p..p7 are live; otherwise, it might
10069 use the same hardware register for all 8 local variables. */
10070 if (p != p1 || p != p2 || p != p3 || p != p4
10071 || p != p5 || p != p6 || p != p7)
10074 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10075 from child file descriptors. If the child closes a descriptor
10076 before it execs or exits, this munges the parent's descriptor
10077 as well. Test for this by closing stdout in the child. */
10078 _exit(close(fileno(stdout)) != 0);
10083 while (wait(&status) != child)
10086 /* Was there some problem with vforking? */
10089 /* Did the child fail? (This shouldn't happen.) */
10092 /* Did the vfork/compiler bug occur? */
10093 || parent != getpid()
10095 /* Did the file descriptor bug occur? */
10096 || fstat(fileno(stdout), &st) != 0
10101 if ac_fn_cxx_try_run "$LINENO"; then :
10102 ac_cv_func_vfork_works=yes
10104 ac_cv_func_vfork_works=no
10106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10107 conftest.$ac_objext conftest.beam conftest.$ac_ext
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10112 $as_echo "$ac_cv_func_vfork_works" >&6; }
10115 if test "x$ac_cv_func_fork_works" = xcross; then
10116 ac_cv_func_vfork_works=$ac_cv_func_vfork
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10118 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10121 if test "x$ac_cv_func_vfork_works" = xyes; then
10123 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10127 $as_echo "#define vfork fork" >>confdefs.h
10130 if test "x$ac_cv_func_fork_works" = xyes; then
10132 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10138 if test "X$prefix" = "XNONE"; then
10139 acl_final_prefix="$ac_default_prefix"
10141 acl_final_prefix="$prefix"
10143 if test "X$exec_prefix" = "XNONE"; then
10144 acl_final_exec_prefix='${prefix}'
10146 acl_final_exec_prefix="$exec_prefix"
10148 acl_save_prefix="$prefix"
10149 prefix="$acl_final_prefix"
10150 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10151 prefix="$acl_save_prefix"
10154 # Check whether --with-gnu-ld was given.
10155 if test "${with_gnu_ld+set}" = set; then :
10156 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10161 # Prepare PATH_SEPARATOR.
10162 # The user is always right.
10163 if test "${PATH_SEPARATOR+set}" != set; then
10164 echo "#! /bin/sh" >conf$$.sh
10165 echo "exit 0" >>conf$$.sh
10167 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10175 if test "$GCC" = yes; then
10176 # Check if gcc -print-prog-name=ld gives a path.
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10178 $as_echo_n "checking for ld used by GCC... " >&6; }
10181 # gcc leaves a trailing carriage return which upsets mingw
10182 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10184 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10187 # Accept absolute paths.
10188 [\\/]* | [A-Za-z]:[\\/]*)
10189 re_direlt='/[^/][^/]*/\.\./'
10190 # Canonicalize the path of ld
10191 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10192 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10193 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10195 test -z "$LD" && LD="$ac_prog"
10198 # If it fails, then pretend we aren't using GCC.
10202 # If it is relative, then search for the first ld in PATH.
10203 with_gnu_ld=unknown
10206 elif test "$with_gnu_ld" = yes; then
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10208 $as_echo_n "checking for GNU ld... " >&6; }
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10211 $as_echo_n "checking for non-GNU ld... " >&6; }
10213 if test "${acl_cv_path_LD+set}" = set; then :
10214 $as_echo_n "(cached) " >&6
10216 if test -z "$LD"; then
10217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10218 for ac_dir in $PATH; do
10219 test -z "$ac_dir" && ac_dir=.
10220 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10221 acl_cv_path_LD="$ac_dir/$ac_prog"
10222 # Check to see if the program is GNU ld. I'd rather use --version,
10223 # but apparently some GNU ld's only accept -v.
10224 # Break only if it was the GNU/non-GNU ld that we prefer.
10225 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10226 test "$with_gnu_ld" != no && break
10228 test "$with_gnu_ld" != yes && break
10234 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10238 LD="$acl_cv_path_LD"
10239 if test -n "$LD"; then
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10241 $as_echo "$LD" >&6; }
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10244 $as_echo "no" >&6; }
10246 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10248 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10249 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10250 $as_echo_n "(cached) " >&6
10252 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10253 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10254 acl_cv_prog_gnu_ld=yes
10256 acl_cv_prog_gnu_ld=no
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10260 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10261 with_gnu_ld=$acl_cv_prog_gnu_ld
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10266 $as_echo_n "checking for shared library run path origin... " >&6; }
10267 if test "${acl_cv_rpath+set}" = set; then :
10268 $as_echo_n "(cached) " >&6
10271 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10272 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10274 rm -f ./conftest.sh
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10279 $as_echo "$acl_cv_rpath" >&6; }
10281 libext="$acl_cv_libext"
10282 shlibext="$acl_cv_shlibext"
10283 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10284 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10285 hardcode_direct="$acl_cv_hardcode_direct"
10286 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10287 # Check whether --enable-rpath was given.
10288 if test "${enable_rpath+set}" = set; then :
10289 enableval=$enable_rpath; :
10303 acl_save_prefix="$prefix"
10304 prefix="$acl_final_prefix"
10305 acl_save_exec_prefix="$exec_prefix"
10306 exec_prefix="$acl_final_exec_prefix"
10308 eval additional_includedir=\"$includedir\"
10309 eval additional_libdir=\"$libdir\"
10311 exec_prefix="$acl_save_exec_prefix"
10312 prefix="$acl_save_prefix"
10315 # Check whether --with-libiconv-prefix was given.
10316 if test "${with_libiconv_prefix+set}" = set; then :
10317 withval=$with_libiconv_prefix;
10318 if test "X$withval" = "Xno"; then
10321 if test "X$withval" = "X"; then
10323 acl_save_prefix="$prefix"
10324 prefix="$acl_final_prefix"
10325 acl_save_exec_prefix="$exec_prefix"
10326 exec_prefix="$acl_final_exec_prefix"
10328 eval additional_includedir=\"$includedir\"
10329 eval additional_libdir=\"$libdir\"
10331 exec_prefix="$acl_save_exec_prefix"
10332 prefix="$acl_save_prefix"
10335 additional_includedir="$withval/include"
10336 additional_libdir="$withval/lib"
10347 names_already_handled=
10348 names_next_round='iconv '
10349 while test -n "$names_next_round"; do
10350 names_this_round="$names_next_round"
10352 for name in $names_this_round; do
10354 for n in $names_already_handled; do
10355 if test "$n" = "$name"; then
10356 already_handled=yes
10360 if test -z "$already_handled"; then
10361 names_already_handled="$names_already_handled $name"
10362 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10363 eval value=\"\$HAVE_LIB$uppername\"
10364 if test -n "$value"; then
10365 if test "$value" = yes; then
10366 eval value=\"\$LIB$uppername\"
10367 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10368 eval value=\"\$LTLIB$uppername\"
10369 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10378 if test $use_additional = yes; then
10379 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10380 found_dir="$additional_libdir"
10381 found_so="$additional_libdir/lib$name.$shlibext"
10382 if test -f "$additional_libdir/lib$name.la"; then
10383 found_la="$additional_libdir/lib$name.la"
10386 if test -f "$additional_libdir/lib$name.$libext"; then
10387 found_dir="$additional_libdir"
10388 found_a="$additional_libdir/lib$name.$libext"
10389 if test -f "$additional_libdir/lib$name.la"; then
10390 found_la="$additional_libdir/lib$name.la"
10395 if test "X$found_dir" = "X"; then
10396 for x in $LDFLAGS $LTLIBICONV; do
10398 acl_save_prefix="$prefix"
10399 prefix="$acl_final_prefix"
10400 acl_save_exec_prefix="$exec_prefix"
10401 exec_prefix="$acl_final_exec_prefix"
10403 exec_prefix="$acl_save_exec_prefix"
10404 prefix="$acl_save_prefix"
10408 dir=`echo "X$x" | sed -e 's/^X-L//'`
10409 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10411 found_so="$dir/lib$name.$shlibext"
10412 if test -f "$dir/lib$name.la"; then
10413 found_la="$dir/lib$name.la"
10416 if test -f "$dir/lib$name.$libext"; then
10418 found_a="$dir/lib$name.$libext"
10419 if test -f "$dir/lib$name.la"; then
10420 found_la="$dir/lib$name.la"
10426 if test "X$found_dir" != "X"; then
10431 if test "X$found_dir" != "X"; then
10432 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10433 if test "X$found_so" != "X"; then
10434 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10435 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10438 for x in $ltrpathdirs; do
10439 if test "X$x" = "X$found_dir"; then
10444 if test -z "$haveit"; then
10445 ltrpathdirs="$ltrpathdirs $found_dir"
10447 if test "$hardcode_direct" = yes; then
10448 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10450 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10451 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10453 for x in $rpathdirs; do
10454 if test "X$x" = "X$found_dir"; then
10459 if test -z "$haveit"; then
10460 rpathdirs="$rpathdirs $found_dir"
10464 for x in $LDFLAGS $LIBICONV; do
10466 acl_save_prefix="$prefix"
10467 prefix="$acl_final_prefix"
10468 acl_save_exec_prefix="$exec_prefix"
10469 exec_prefix="$acl_final_exec_prefix"
10471 exec_prefix="$acl_save_exec_prefix"
10472 prefix="$acl_save_prefix"
10474 if test "X$x" = "X-L$found_dir"; then
10479 if test -z "$haveit"; then
10480 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10482 if test "$hardcode_minus_L" != no; then
10483 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10485 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10491 if test "X$found_a" != "X"; then
10492 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10494 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10497 additional_includedir=
10498 case "$found_dir" in
10500 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10501 additional_includedir="$basedir/include"
10504 if test "X$additional_includedir" != "X"; then
10505 if test "X$additional_includedir" != "X/usr/include"; then
10507 if test "X$additional_includedir" = "X/usr/local/include"; then
10508 if test -n "$GCC"; then
10510 linux*) haveit=yes;;
10514 if test -z "$haveit"; then
10515 for x in $CPPFLAGS $INCICONV; do
10517 acl_save_prefix="$prefix"
10518 prefix="$acl_final_prefix"
10519 acl_save_exec_prefix="$exec_prefix"
10520 exec_prefix="$acl_final_exec_prefix"
10522 exec_prefix="$acl_save_exec_prefix"
10523 prefix="$acl_save_prefix"
10525 if test "X$x" = "X-I$additional_includedir"; then
10530 if test -z "$haveit"; then
10531 if test -d "$additional_includedir"; then
10532 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10538 if test -n "$found_la"; then
10539 save_libdir="$libdir"
10540 case "$found_la" in
10541 */* | *\\*) . "$found_la" ;;
10542 *) . "./$found_la" ;;
10544 libdir="$save_libdir"
10545 for dep in $dependency_libs; do
10548 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10549 if test "X$additional_libdir" != "X/usr/lib"; then
10551 if test "X$additional_libdir" = "X/usr/local/lib"; then
10552 if test -n "$GCC"; then
10554 linux*) haveit=yes;;
10558 if test -z "$haveit"; then
10560 for x in $LDFLAGS $LIBICONV; do
10562 acl_save_prefix="$prefix"
10563 prefix="$acl_final_prefix"
10564 acl_save_exec_prefix="$exec_prefix"
10565 exec_prefix="$acl_final_exec_prefix"
10567 exec_prefix="$acl_save_exec_prefix"
10568 prefix="$acl_save_prefix"
10570 if test "X$x" = "X-L$additional_libdir"; then
10575 if test -z "$haveit"; then
10576 if test -d "$additional_libdir"; then
10577 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10581 for x in $LDFLAGS $LTLIBICONV; do
10583 acl_save_prefix="$prefix"
10584 prefix="$acl_final_prefix"
10585 acl_save_exec_prefix="$exec_prefix"
10586 exec_prefix="$acl_final_exec_prefix"
10588 exec_prefix="$acl_save_exec_prefix"
10589 prefix="$acl_save_prefix"
10591 if test "X$x" = "X-L$additional_libdir"; then
10596 if test -z "$haveit"; then
10597 if test -d "$additional_libdir"; then
10598 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10605 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10606 if test "$enable_rpath" != no; then
10608 for x in $rpathdirs; do
10609 if test "X$x" = "X$dir"; then
10614 if test -z "$haveit"; then
10615 rpathdirs="$rpathdirs $dir"
10618 for x in $ltrpathdirs; do
10619 if test "X$x" = "X$dir"; then
10624 if test -z "$haveit"; then
10625 ltrpathdirs="$ltrpathdirs $dir"
10630 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10633 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10636 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10637 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10643 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10644 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10650 if test "X$rpathdirs" != "X"; then
10651 if test -n "$hardcode_libdir_separator"; then
10653 for found_dir in $rpathdirs; do
10654 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10656 acl_save_libdir="$libdir"
10658 eval flag=\"$hardcode_libdir_flag_spec\"
10659 libdir="$acl_save_libdir"
10660 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10662 for found_dir in $rpathdirs; do
10663 acl_save_libdir="$libdir"
10664 libdir="$found_dir"
10665 eval flag=\"$hardcode_libdir_flag_spec\"
10666 libdir="$acl_save_libdir"
10667 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10671 if test "X$ltrpathdirs" != "X"; then
10672 for found_dir in $ltrpathdirs; do
10673 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10684 $as_echo_n "checking for iconv... " >&6; }
10685 if test "${am_cv_func_iconv+set}" = set; then :
10686 $as_echo_n "(cached) " >&6
10689 am_cv_func_iconv="no, consider installing GNU libiconv"
10691 am_save_CPPFLAGS="$CPPFLAGS"
10692 CPPFLAGS="$CPPFLAGS $INCICONV"
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10695 #include <stdlib.h>
10700 iconv_t cd = iconv_open("","");
10701 iconv(cd,NULL,NULL,NULL,NULL);
10707 if ac_fn_cxx_try_link "$LINENO"; then :
10708 am_cv_func_iconv=yes
10710 rm -f core conftest.err conftest.$ac_objext \
10711 conftest$ac_exeext conftest.$ac_ext
10712 CPPFLAGS="$am_save_CPPFLAGS"
10714 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10715 for _libs in .libs _libs; do
10716 am_save_CPPFLAGS="$CPPFLAGS"
10717 am_save_LIBS="$LIBS"
10718 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10719 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10722 #include <stdlib.h>
10727 iconv_t cd = iconv_open("","");
10728 iconv(cd,NULL,NULL,NULL,NULL);
10734 if ac_fn_cxx_try_link "$LINENO"; then :
10735 INCICONV="-I../libiconv/include"
10736 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10737 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10738 am_cv_lib_iconv=yes
10739 am_cv_func_iconv=yes
10741 rm -f core conftest.err conftest.$ac_objext \
10742 conftest$ac_exeext conftest.$ac_ext
10743 CPPFLAGS="$am_save_CPPFLAGS"
10744 LIBS="$am_save_LIBS"
10745 if test "$am_cv_func_iconv" = "yes"; then
10751 if test "$am_cv_func_iconv" != yes; then
10752 am_save_CPPFLAGS="$CPPFLAGS"
10753 am_save_LIBS="$LIBS"
10754 CPPFLAGS="$LIBS $INCICONV"
10755 LIBS="$LIBS $LIBICONV"
10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h. */
10758 #include <stdlib.h>
10763 iconv_t cd = iconv_open("","");
10764 iconv(cd,NULL,NULL,NULL,NULL);
10770 if ac_fn_cxx_try_link "$LINENO"; then :
10771 am_cv_lib_iconv=yes
10772 am_cv_func_iconv=yes
10774 rm -f core conftest.err conftest.$ac_objext \
10775 conftest$ac_exeext conftest.$ac_ext
10776 CPPFLAGS="$am_save_CPPFLAGS"
10777 LIBS="$am_save_LIBS"
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10782 $as_echo "$am_cv_func_iconv" >&6; }
10783 if test "$am_cv_func_iconv" = yes; then
10785 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10788 if test "$am_cv_lib_iconv" = yes; then
10790 for element in $INCICONV; do
10792 for x in $CPPFLAGS; do
10794 acl_save_prefix="$prefix"
10795 prefix="$acl_final_prefix"
10796 acl_save_exec_prefix="$exec_prefix"
10797 exec_prefix="$acl_final_exec_prefix"
10799 exec_prefix="$acl_save_exec_prefix"
10800 prefix="$acl_save_prefix"
10802 if test "X$x" = "X$element"; then
10807 if test -z "$haveit"; then
10808 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10813 $as_echo_n "checking how to link with libiconv... " >&6; }
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10815 $as_echo "$LIBICONV" >&6; }
10823 if test "$am_cv_func_iconv" = yes; then
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10825 $as_echo_n "checking for iconv declaration... " >&6; }
10826 if test "${am_cv_proto_iconv+set}" = set; then :
10827 $as_echo_n "(cached) " >&6
10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h. */
10833 #include <stdlib.h>
10839 #if defined(__STDC__) || defined(__cplusplus)
10840 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10853 if ac_fn_cxx_try_compile "$LINENO"; then :
10854 am_cv_proto_iconv_arg1=""
10856 am_cv_proto_iconv_arg1="const"
10858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10859 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);"
10862 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10864 }$am_cv_proto_iconv" >&5
10866 }$am_cv_proto_iconv" >&6; }
10868 cat >>confdefs.h <<_ACEOF
10869 #define ICONV_CONST $am_cv_proto_iconv_arg1
10875 # Until we have in-tree GNU iconv:
10877 if test -f "$LTLIBICONV"; then
10878 LIBICONV_DEP=$LTLIBICONV
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10884 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10885 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10886 $as_echo_n "(cached) " >&6
10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h. */
10890 #include <locale.h>
10899 if ac_fn_cxx_try_link "$LINENO"; then :
10900 am_cv_val_LC_MESSAGES=yes
10902 am_cv_val_LC_MESSAGES=no
10904 rm -f core conftest.err conftest.$ac_objext \
10905 conftest$ac_exeext conftest.$ac_ext
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10908 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10909 if test $am_cv_val_LC_MESSAGES = yes; then
10911 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10918 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10919 if test "${am_cv_langinfo_codeset+set}" = set; then :
10920 $as_echo_n "(cached) " >&6
10922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h. */
10924 #include <langinfo.h>
10928 char* cs = nl_langinfo(CODESET);
10933 if ac_fn_cxx_try_link "$LINENO"; then :
10934 am_cv_langinfo_codeset=yes
10936 am_cv_langinfo_codeset=no
10938 rm -f core conftest.err conftest.$ac_objext \
10939 conftest$ac_exeext conftest.$ac_ext
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10943 $as_echo "$am_cv_langinfo_codeset" >&6; }
10944 if test $am_cv_langinfo_codeset = yes; then
10946 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10951 # We will need to find libiberty.h and ansidecl.h
10952 saved_CFLAGS="$CFLAGS"
10953 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10954 saved_CXXFLAGS="$CXXFLAGS"
10955 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10957 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10958 # normal autoconf function for these. But force definition of
10959 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10960 # basename handling in libiberty.h.
10961 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10962 #undef HAVE_DECL_BASENAME
10963 #define HAVE_DECL_BASENAME 1
10964 #include \"ansidecl.h\"
10965 #include \"system.h\"
10967 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10973 cat >>confdefs.h <<_ACEOF
10974 #define HAVE_DECL_BASENAME $ac_have_decl
10976 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10977 #undef HAVE_DECL_BASENAME
10978 #define HAVE_DECL_BASENAME 1
10979 #include \"ansidecl.h\"
10980 #include \"system.h\"
10982 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10988 cat >>confdefs.h <<_ACEOF
10989 #define HAVE_DECL_STRSTR $ac_have_decl
10993 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10994 madvise stpcpy strnlen strsignal strverscmp \
10995 strtol strtoul strtoll strtoull setenv unsetenv \
10996 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10997 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
10999 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11001 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11002 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11003 $as_echo_n "(cached) " >&6
11005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006 /* end confdefs.h. */
11008 #define $ac_tr_decl 1
11010 #include "ansidecl.h"
11011 #include "system.h"
11017 char *(*pfn) = (char *(*)) $ac_func ;
11023 if ac_fn_cxx_try_compile "$LINENO"; then :
11024 eval "gcc_cv_have_decl_$ac_func=yes"
11026 eval "gcc_cv_have_decl_$ac_func=no"
11028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11031 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11033 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11034 #define $ac_tr_decl 1
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11040 #define $ac_tr_decl 0
11048 for ac_func in getrlimit setrlimit getrusage
11050 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11052 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11053 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11054 $as_echo_n "(cached) " >&6
11056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h. */
11059 #define $ac_tr_decl 1
11061 #include "ansidecl.h"
11062 #include "system.h"
11063 #ifdef HAVE_SYS_RESOURCE_H
11064 #include <sys/resource.h>
11072 char *(*pfn) = (char *(*)) $ac_func ;
11078 if ac_fn_cxx_try_compile "$LINENO"; then :
11079 eval "gcc_cv_have_decl_$ac_func=yes"
11081 eval "gcc_cv_have_decl_$ac_func=no"
11083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11086 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11088 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11089 #define $ac_tr_decl 1
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11095 #define $ac_tr_decl 0
11103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11104 /* end confdefs.h. */
11106 #include "ansidecl.h"
11107 #include "system.h"
11108 #ifdef HAVE_SYS_RESOURCE_H
11109 #include <sys/resource.h>
11120 if ac_fn_cxx_try_compile "$LINENO"; then :
11124 $as_echo "#define rlim_t long" >>confdefs.h
11127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11129 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11130 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11131 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11132 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11133 for ac_func in ldgetname
11135 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11137 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11138 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11139 $as_echo_n "(cached) " >&6
11141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11142 /* end confdefs.h. */
11144 #define $ac_tr_decl 1
11146 #include "ansidecl.h"
11147 #include "system.h"
11148 #ifdef HAVE_LDFCN_H
11159 char *(*pfn) = (char *(*)) $ac_func ;
11165 if ac_fn_cxx_try_compile "$LINENO"; then :
11166 eval "gcc_cv_have_decl_$ac_func=yes"
11168 eval "gcc_cv_have_decl_$ac_func=no"
11170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11173 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11175 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11176 #define $ac_tr_decl 1
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11182 #define $ac_tr_decl 0
11190 for ac_func in times
11192 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11194 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11195 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11196 $as_echo_n "(cached) " >&6
11198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199 /* end confdefs.h. */
11201 #define $ac_tr_decl 1
11203 #include "ansidecl.h"
11204 #include "system.h"
11205 #ifdef HAVE_SYS_TIMES_H
11206 #include <sys/times.h>
11214 char *(*pfn) = (char *(*)) $ac_func ;
11220 if ac_fn_cxx_try_compile "$LINENO"; then :
11221 eval "gcc_cv_have_decl_$ac_func=yes"
11223 eval "gcc_cv_have_decl_$ac_func=no"
11225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11228 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11230 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11231 #define $ac_tr_decl 1
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11236 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11237 #define $ac_tr_decl 0
11245 for ac_func in sigaltstack
11247 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11249 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11250 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11251 $as_echo_n "(cached) " >&6
11253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h. */
11256 #define $ac_tr_decl 1
11258 #include "ansidecl.h"
11259 #include "system.h"
11260 #include <signal.h>
11267 char *(*pfn) = (char *(*)) $ac_func ;
11273 if ac_fn_cxx_try_compile "$LINENO"; then :
11274 eval "gcc_cv_have_decl_$ac_func=yes"
11276 eval "gcc_cv_have_decl_$ac_func=no"
11278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11281 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11283 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11284 #define $ac_tr_decl 1
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11289 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11290 #define $ac_tr_decl 0
11298 # More time-related stuff.
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11300 $as_echo_n "checking for struct tms... " >&6; }
11301 if test "${ac_cv_struct_tms+set}" = set; then :
11302 $as_echo_n "(cached) " >&6
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h. */
11308 #include "ansidecl.h"
11309 #include "system.h"
11310 #ifdef HAVE_SYS_TIMES_H
11311 #include <sys/times.h>
11322 if ac_fn_cxx_try_compile "$LINENO"; then :
11323 ac_cv_struct_tms=yes
11325 ac_cv_struct_tms=no
11327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11330 $as_echo "$ac_cv_struct_tms" >&6; }
11331 if test $ac_cv_struct_tms = yes; then
11333 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11337 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11338 # revisit after autoconf 2.50.
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11340 $as_echo_n "checking for clock_t... " >&6; }
11341 if test "${gcc_cv_type_clock_t+set}" = set; then :
11342 $as_echo_n "(cached) " >&6
11345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11346 /* end confdefs.h. */
11348 #include "ansidecl.h"
11349 #include "system.h"
11359 if ac_fn_cxx_try_compile "$LINENO"; then :
11360 gcc_cv_type_clock_t=yes
11362 gcc_cv_type_clock_t=no
11364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11367 $as_echo "$gcc_cv_type_clock_t" >&6; }
11368 if test $gcc_cv_type_clock_t = yes; then
11370 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11374 # Check if F_SETLKW is supported by fcntl.
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11376 $as_echo_n "checking for F_SETLKW... " >&6; }
11377 if test "${ac_cv_f_setlkw+set}" = set; then :
11378 $as_echo_n "(cached) " >&6
11381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11382 /* end confdefs.h. */
11394 return fcntl (1, F_SETLKW, &fl);
11399 if ac_fn_cxx_try_compile "$LINENO"; then :
11404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11407 $as_echo "$ac_cv_f_setlkw" >&6; }
11408 if test $ac_cv_f_setlkw = yes; then
11410 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11414 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11415 CFLAGS="$saved_CFLAGS"
11416 CXXFLAGS="$saved_CXXFLAGS"
11418 # mkdir takes a single argument on some systems.
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11420 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11421 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11422 $as_echo_n "(cached) " >&6
11424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11425 /* end confdefs.h. */
11427 #include <sys/types.h>
11428 #ifdef HAVE_SYS_STAT_H
11429 # include <sys/stat.h>
11431 #ifdef HAVE_UNISTD_H
11432 # include <unistd.h>
11434 #ifdef HAVE_DIRECT_H
11435 # include <direct.h>
11445 if ac_fn_cxx_try_compile "$LINENO"; then :
11446 gcc_cv_mkdir_takes_one_arg=no
11448 gcc_cv_mkdir_takes_one_arg=yes
11450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11453 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11454 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11456 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11467 # With Setjmp/Longjmp based exception handling.
11468 # Check whether --enable-sjlj-exceptions was given.
11469 if test "${enable_sjlj_exceptions+set}" = set; then :
11470 enableval=$enable_sjlj_exceptions; case $target in
11472 if test $enableval != yes; then
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11474 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11479 force_sjlj_exceptions=yes
11483 force_sjlj_exceptions=yes
11487 force_sjlj_exceptions=yes
11491 force_sjlj_exceptions=no
11496 if test $force_sjlj_exceptions = yes; then
11497 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11499 cat >>confdefs.h <<_ACEOF
11500 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11505 # --------------------------------------------------------
11506 # Build, host, and target specific configuration fragments
11507 # --------------------------------------------------------
11509 # Collect build-machine-specific information.
11510 . ${srcdir}/config.build
11512 # Collect host-machine-specific information.
11513 . ${srcdir}/config.host
11517 # Collect target-machine-specific information.
11518 . ${srcdir}/config.gcc
11520 extra_objs="${host_extra_objs} ${extra_objs}"
11521 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11523 # Default the target-machine variables that were not explicitly set.
11524 if test x"$tm_file" = x
11525 then tm_file=$cpu_type/$cpu_type.h; fi
11527 if test x"$extra_headers" = x
11528 then extra_headers=; fi
11530 if test x$md_file = x
11531 then md_file=$cpu_type/$cpu_type.md; fi
11533 if test x$out_file = x
11534 then out_file=$cpu_type/$cpu_type.c; fi
11536 if test x"$tmake_file" = x
11537 then tmake_file=$cpu_type/t-$cpu_type
11540 # Support --enable-initfini-array.
11541 if test x$enable_initfini_array != xno; then
11542 tm_file="${tm_file} initfini-array.h"
11545 if test x"$dwarf2" = xyes
11546 then tm_file="$tm_file tm-dwarf2.h"
11549 # Say what files are being used for the output code and MD file.
11550 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11551 echo "Using \`$srcdir/config/$md_file' as machine description file."
11553 # If any of the xm_file variables contain nonexistent files, warn
11554 # about them and drop them.
11557 for x in $build_xm_file; do
11558 if test -f $srcdir/config/$x
11560 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11561 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11564 build_xm_file="$bx"
11567 for x in $host_xm_file; do
11568 if test -f $srcdir/config/$x
11570 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11571 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11577 for x in $xm_file; do
11578 if test -f $srcdir/config/$x
11580 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11581 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11587 for f in $tm_file; do
11590 if test $count = ax; then
11591 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11593 echo "Using the following target machine macro files:"
11594 for f in $tm_file; do
11595 echo " $srcdir/config/$f"
11599 if test x$use_long_long_for_widest_fast_int = xyes; then
11601 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11605 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11607 cat >>confdefs.h <<_ACEOF
11608 #define HAVE_GNU_LD $gnu_ld_bool
11612 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11614 cat >>confdefs.h <<_ACEOF
11615 #define HAVE_GNU_AS $gnu_as_bool
11620 for f in $host_xm_file; do
11623 if test $count = a; then
11625 elif test $count = ax; then
11626 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11628 echo "Using the following host machine macro files:"
11629 for f in $host_xm_file; do
11630 echo " $srcdir/config/$f"
11633 echo "Using ${out_host_hook_obj} for host machine hooks."
11635 if test "$host_xm_file" != "$build_xm_file"; then
11637 for f in $build_xm_file; do
11640 if test $count = a; then
11642 elif test $count = ax; then
11643 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11645 echo "Using the following build machine macro files:"
11646 for f in $build_xm_file; do
11647 echo " $srcdir/config/$f"
11652 if test -n "$configured_native_system_header_dir"; then
11653 native_system_header_dir=$configured_native_system_header_dir
11655 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11659 powerpc*-*-darwin*)
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11661 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11662 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11663 $as_echo_n "(cached) " >&6
11665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666 /* end confdefs.h. */
11668 #include <sys/cdefs.h>
11669 #include <sys/signal.h>
11670 #include <ucontext.h>
11671 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11674 if ac_fn_cxx_try_compile "$LINENO"; then :
11675 gcc_cv_mcontext_underscores=no
11677 gcc_cv_mcontext_underscores=yes
11679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11682 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11683 if test $gcc_cv_mcontext_underscores = yes; then
11685 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11695 # Check if a valid thread package
11696 case ${enable_threads} in
11699 target_thread_file='single'
11703 target_thread_file='single'
11705 aix | dce | lynx | mipssde | posix | rtems | \
11706 single | tpf | vxworks | win32)
11707 target_thread_file=${enable_threads}
11710 echo "${enable_threads} is an unknown thread package" 1>&2
11715 if test x${thread_file} = x; then
11716 # No thread file set by target-specific clauses in config.gcc,
11717 # so use file chosen by default logic above
11718 thread_file=${target_thread_file}
11726 if test x$enable___cxa_atexit = xyes || \
11727 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11728 if test x$host = x$target; then
11730 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11731 # keyed to flag_use_cxa_atexit
11739 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11740 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11743 echo "__cxa_atexit can't be enabled on this target"
11749 # We can't check for __cxa_atexit when building a cross, so assume
11753 if test x$use_cxa_atexit = xyes; then
11755 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11760 # Look for a file containing extra machine modes.
11761 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11762 extra_modes_file='$(srcdir)'/config/${extra_modes}
11765 cat >>confdefs.h <<_ACEOF
11766 #define EXTRA_MODES_FILE "config/$extra_modes"
11771 # Convert extra_options into a form suitable for Makefile use.
11774 for f in $extra_options; do
11775 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11776 all_opt_files="$all_opt_files $srcdir/config/$f"
11780 # auto-host.h is the file containing items generated by autoconf and is
11781 # the first file included by config.h.
11782 # If host=build, it is correct to have bconfig include auto-host.h
11783 # as well. If host!=build, we are in error and need to do more
11784 # work to find out the build config parameters.
11785 if test x$host = x$build
11787 build_auto=auto-host.h
11789 # We create a subdir, then run autoconf in the subdir.
11790 # To prevent recursion we set host and build for the new
11791 # invocation of configure to the build for this invocation
11798 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11799 *) realsrcdir=../${srcdir};;
11801 # Clearing GMPINC is necessary to prevent host headers being
11802 # used by the build compiler. Defining GENERATOR_FILE stops
11803 # system.h from including gmp.h.
11804 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11805 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11806 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11807 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11808 ${realsrcdir}/configure \
11809 --enable-languages=${enable_languages-all} \
11810 --target=$target_alias --host=$build_alias --build=$build_alias
11812 # We just finished tests for the build machine, so rename
11813 # the file auto-build.h in the gcc directory.
11814 mv auto-host.h ../auto-build.h
11817 build_auto=auto-build.h
11821 tm_file="${tm_file} defaults.h"
11822 tm_p_file="${tm_p_file} tm-preds.h"
11823 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11824 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11825 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11826 # put this back in temporarily.
11827 xm_file="auto-host.h ansidecl.h ${xm_file}"
11833 # Compile in configure arguments.
11834 if test -f configargs.h ; then
11835 # Being re-configured.
11836 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11837 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11839 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11842 # Double all backslashes and backslash all quotes to turn
11843 # gcc_config_arguments into a C string.
11844 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11845 $gcc_config_arguments
11847 gcc_config_arguments_str=`cat conftest.out`
11850 cat > configargs.h <<EOF
11851 /* Generated automatically. */
11852 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11853 static const char thread_model[] = "$thread_file";
11855 static const struct {
11856 const char *name, *value;
11857 } configure_default_options[] = $configure_default_options;
11860 gcc_BASEVER=`cat $srcdir/BASE-VER`
11861 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11862 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11863 if test -f $srcdir/REVISION ; then
11864 gcc_REVISION=`cat $srcdir/REVISION`
11868 cat > plugin-version.h <<EOF
11869 #include "configargs.h"
11871 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11872 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11873 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11874 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11876 static char basever[] = "$gcc_BASEVER";
11877 static char datestamp[] = "$gcc_DATESTAMP";
11878 static char devphase[] = "$gcc_DEVPHASE";
11879 static char revision[] = "$gcc_REVISION";
11881 /* FIXME plugins: We should make the version information more precise.
11882 One way to do is to add a checksum. */
11884 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11885 devphase, revision,
11886 configuration_arguments};
11889 # Internationalization
11890 # If we haven't got the data from the intl directory,
11891 # assume NLS is disabled.
11900 if test -f ../intl/config.intl; then
11901 . ../intl/config.intl
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11904 $as_echo_n "checking whether NLS is requested... " >&6; }
11905 if test x"$USE_NLS" != xyes; then
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11907 $as_echo "no" >&6; }
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11910 $as_echo "yes" >&6; }
11912 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11916 $as_echo_n "checking for catalogs to be installed... " >&6; }
11917 # Look for .po and .gmo files in the source directory.
11920 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11921 # If there aren't any .gmo files the shell will give us the
11922 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11924 case "$cat" in *\**)
11927 # The quadruple backslash is collapsed to a double backslash
11928 # by the backticks, then collapsed again by the double quotes,
11929 # leaving us with one backslash in the sed expression (right
11930 # before the dot that mustn't act as a wildcard).
11931 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11932 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11933 # The user is allowed to set LINGUAS to a list of languages to
11934 # install catalogs for. If it's empty that means "all of them."
11935 if test "x$LINGUAS" = x; then
11936 CATALOGS="$CATALOGS $cat"
11937 XLINGUAS="$XLINGUAS $lang"
11939 case "$LINGUAS" in *$lang*)
11940 CATALOGS="$CATALOGS $cat"
11941 XLINGUAS="$XLINGUAS $lang"
11946 LINGUAS="$XLINGUAS"
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11948 $as_echo "$LINGUAS" >&6; }
11961 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11962 # -liconv on the link line twice.
11963 case "$LIBINTL" in *$LIBICONV*)
11967 # Check whether --enable-secureplt was given.
11968 if test "${enable_secureplt+set}" = set; then :
11969 enableval=$enable_secureplt;
11973 # Check whether --enable-leading-mingw64-underscores was given.
11974 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11975 enableval=$enable_leading_mingw64_underscores;
11978 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11980 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11984 # Check whether --enable-cld was given.
11985 if test "${enable_cld+set}" = set; then :
11986 enableval=$enable_cld;
11992 # Check whether --enable-frame-pointer was given.
11993 if test "${enable_frame_pointer+set}" = set; then :
11994 enableval=$enable_frame_pointer;
11998 linux* | darwin[8912]*)
11999 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12001 enable_frame_pointer=no
12004 enable_frame_pointer=yes
12011 # Windows32 Registry support for specifying GCC installation paths.
12012 # Check whether --enable-win32-registry was given.
12013 if test "${enable_win32_registry+set}" = set; then :
12014 enableval=$enable_win32_registry;
12019 win32 | pe | cygwin* | mingw32*)
12020 if test "x$enable_win32_registry" != xno; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12022 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12023 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12024 $as_echo_n "(cached) " >&6
12026 ac_func_search_save_LIBS=$LIBS
12027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028 /* end confdefs.h. */
12030 /* Override any GCC internal prototype to avoid an error.
12031 Use char because int might match the return type of a GCC
12032 builtin and then its argument prototype would still apply. */
12036 char RegOpenKeyExA ();
12040 return RegOpenKeyExA ();
12045 for ac_lib in '' advapi32; do
12046 if test -z "$ac_lib"; then
12047 ac_res="none required"
12050 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12052 if ac_fn_cxx_try_link "$LINENO"; then :
12053 ac_cv_search_RegOpenKeyExA=$ac_res
12055 rm -f core conftest.err conftest.$ac_objext \
12057 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12061 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12064 ac_cv_search_RegOpenKeyExA=no
12066 rm conftest.$ac_ext
12067 LIBS=$ac_func_search_save_LIBS
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12070 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12071 ac_res=$ac_cv_search_RegOpenKeyExA
12072 if test "$ac_res" != no; then :
12073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12076 enable_win32_registry=no
12081 if test "x$enable_win32_registry" != xno; then
12083 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12086 if test "x$enable_win32_registry" != xyes \
12087 && test "x$enable_win32_registry" != x; then
12089 cat >>confdefs.h <<_ACEOF
12090 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12098 # Get an absolute path to the GCC top-level source directory
12099 holddir=`${PWDCMD-pwd}`
12101 topdir=`${PWDCMD-pwd}`
12104 # Conditionalize the makefile for this host machine.
12106 for f in ${host_xmake_file}
12108 if test -f ${srcdir}/config/$f
12110 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12114 # Conditionalize the makefile for this target machine.
12116 for f in ${tmake_file}
12118 if test -f ${srcdir}/config/$f
12120 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12123 tmake_file="${tmake_file_}"
12125 out_object_file=`basename $out_file .c`.o
12126 common_out_object_file=`basename $common_out_file .c`.o
12128 tm_file_list="options.h"
12129 tm_include_list="options.h insn-constants.h"
12130 for f in $tm_file; do
12133 f=`echo $f | sed 's/^..//'`
12134 tm_file_list="${tm_file_list} $f"
12135 tm_include_list="${tm_include_list} $f"
12138 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12139 tm_include_list="${tm_include_list} $f"
12142 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12143 tm_include_list="${tm_include_list} config/$f"
12150 for f in $tm_p_file; do
12153 tm_p_file_list="${tm_p_file_list} $f"
12154 tm_p_include_list="${tm_p_include_list} $f"
12157 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12158 tm_p_include_list="${tm_p_include_list} config/$f"
12164 for f in $xm_file; do
12167 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12168 xm_include_list="${xm_include_list} $f"
12171 xm_file_list="${xm_file_list} $f"
12172 xm_include_list="${xm_include_list} $f"
12175 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12176 xm_include_list="${xm_include_list} config/$f"
12182 host_xm_include_list=
12183 for f in $host_xm_file; do
12186 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12187 host_xm_include_list="${host_xm_include_list} $f"
12190 host_xm_file_list="${host_xm_file_list} $f"
12191 host_xm_include_list="${host_xm_include_list} $f"
12194 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12195 host_xm_include_list="${host_xm_include_list} config/$f"
12200 build_xm_file_list=
12201 for f in $build_xm_file; do
12204 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12205 build_xm_include_list="${build_xm_include_list} $f"
12207 auto-build.h | auto-host.h )
12208 build_xm_file_list="${build_xm_file_list} $f"
12209 build_xm_include_list="${build_xm_include_list} $f"
12212 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12213 build_xm_include_list="${build_xm_include_list} config/$f"
12218 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12219 # cross-compiler which does not use the native headers and libraries.
12220 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12223 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12225 if test "x$with_build_sysroot" != x; then
12226 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12228 # This value is used, even on a native system, because
12229 # CROSS_SYSTEM_HEADER_DIR is just
12230 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12231 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12234 if test x$host != x$target
12236 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12238 SYSTEM_HEADER_DIR=$build_system_header_dir
12239 case "$host","$target" in
12240 # Darwin crosses can use the host system's libraries and headers,
12241 # because of the fat library support. Of course, it must be the
12242 # same version of Darwin on both sides. Allow the user to
12243 # just say --target=foo-darwin without a version number to mean
12244 # "the version on this system".
12245 *-*-darwin*,*-*-darwin*)
12246 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12247 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12248 if test $hostos = $targetos -o $targetos = darwin ; then
12250 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12255 i?86-*-*,x86_64-*-* \
12256 | powerpc*-*-*,powerpc64*-*-*)
12257 CROSS="$CROSS -DNATIVE_CROSS" ;;
12262 if test "x$with_headers" = x; then
12269 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12270 SYSTEM_HEADER_DIR=$build_system_header_dir
12273 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12274 if test "x$with_headers" != x; then
12275 target_header_dir=$with_headers
12276 elif test "x$with_sysroot" = x; then
12277 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12278 elif test "x$with_build_sysroot" != "x"; then
12279 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12280 elif test "x$with_sysroot" = xyes; then
12281 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12283 target_header_dir="${with_sysroot}${native_system_header_dir}"
12286 target_header_dir=${native_system_header_dir}
12289 # If this is a cross-compiler that does not
12290 # have its own set of headers then define
12293 # If this is using newlib, without having the headers available now,
12294 # then define inhibit_libc in LIBGCC2_CFLAGS.
12295 # This prevents libgcc2 from containing any code which requires libc
12297 : ${inhibit_libc=false}
12298 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12299 test x$with_newlib = xyes ; } &&
12300 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12305 # When building gcc with a cross-compiler, we need to adjust things so
12306 # that the generator programs are still built with the native compiler.
12307 # Also, we cannot run fixincludes.
12309 # These are the normal (build=host) settings:
12310 CC_FOR_BUILD='$(CC)'
12311 CXX_FOR_BUILD='$(CXX)'
12312 BUILD_CFLAGS='$(ALL_CFLAGS)'
12313 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12314 BUILD_LDFLAGS='$(LDFLAGS)'
12315 STMP_FIXINC=stmp-fixinc
12317 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12318 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12320 # And these apply if build != host, or we are generating coverage data
12321 if test x$build != x$host || test "x$coverage_flags" != x
12323 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12324 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12325 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12327 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12328 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12329 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12330 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12335 # Expand extra_headers to include complete path.
12336 # This substitutes for lots of t-* files.
12337 extra_headers_list=
12338 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12339 for file in ${extra_headers} ; do
12340 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12343 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12344 if test x"$use_gcc_tgmath" = xyes
12345 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12348 # Define collect2 in Makefile.
12349 case $host_can_use_collect2 in
12351 *) collect2='collect2$(exeext)' ;;
12355 # Add a definition of USE_COLLECT2 if system wants one.
12356 case $use_collect2 in
12357 no) use_collect2= ;;
12360 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12361 xm_defines="${xm_defines} USE_COLLECT2"
12362 case $host_can_use_collect2 in
12364 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12371 cat >>confdefs.h <<_ACEOF
12372 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12376 # ---------------------------
12377 # Assembler & linker features
12378 # ---------------------------
12380 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12381 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12382 # However when ld-new is first executed from the build tree, libtool will
12383 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12384 # to the build tree. While doing this we need to use the previous-stage
12385 # linker, or we have an infinite loop. The presence of a shell script as
12386 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12387 # the gcc/collect-ld script. So we need to know how libtool works, or
12388 # exec-tool will fail.
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12394 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12399 macro_version='2.2.7a'
12400 macro_revision='1.3134'
12414 ltmain="$ac_aux_dir/ltmain.sh"
12416 # Backslashify metacharacters that are still active within
12417 # double-quoted strings.
12418 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12420 # Same as above, but do not quote variable references.
12421 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12423 # Sed substitution to delay expansion of an escaped shell variable in a
12424 # double_quote_subst'ed string.
12425 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12427 # Sed substitution to delay expansion of an escaped single quote.
12428 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12430 # Sed substitution to avoid accidental globbing in evaled expressions
12431 no_glob_subst='s/\*/\\\*/g'
12433 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12434 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12435 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12438 $as_echo_n "checking how to print strings... " >&6; }
12439 # Test print first, because it will be a builtin if present.
12440 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12441 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12443 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12446 # Use this function as a fallback that always works.
12447 func_fallback_echo ()
12449 eval 'cat <<_LTECHO_EOF
12453 ECHO='func_fallback_echo'
12456 # func_echo_all arg...
12457 # Invoke $ECHO with all args, space-separated.
12464 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12465 $as_echo "printf" >&6; } ;;
12466 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12467 $as_echo "print -r" >&6; } ;;
12468 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12469 $as_echo "cat" >&6; } ;;
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12486 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12487 if test "${ac_cv_path_SED+set}" = set; then :
12488 $as_echo_n "(cached) " >&6
12490 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12491 for ac_i in 1 2 3 4 5 6 7; do
12492 ac_script="$ac_script$as_nl$ac_script"
12494 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12495 { ac_script=; unset ac_script;}
12496 if test -z "$SED"; then
12497 ac_path_SED_found=false
12498 # Loop through the user's path and test for each of PROGNAME-LIST
12499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12500 for as_dir in $PATH
12503 test -z "$as_dir" && as_dir=.
12504 for ac_prog in sed gsed; do
12505 for ac_exec_ext in '' $ac_executable_extensions; do
12506 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12507 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12508 # Check for GNU ac_path_SED and select it if it is found.
12509 # Check for GNU $ac_path_SED
12510 case `"$ac_path_SED" --version 2>&1` in
12512 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12515 $as_echo_n 0123456789 >"conftest.in"
12518 cat "conftest.in" "conftest.in" >"conftest.tmp"
12519 mv "conftest.tmp" "conftest.in"
12520 cp "conftest.in" "conftest.nl"
12521 $as_echo '' >> "conftest.nl"
12522 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12523 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12524 as_fn_arith $ac_count + 1 && ac_count=$as_val
12525 if test $ac_count -gt ${ac_path_SED_max-0}; then
12526 # Best one so far, save it but keep looking for a better one
12527 ac_cv_path_SED="$ac_path_SED"
12528 ac_path_SED_max=$ac_count
12530 # 10*(2^10) chars as input seems more than enough
12531 test $ac_count -gt 10 && break
12533 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12536 $ac_path_SED_found && break 3
12541 if test -z "$ac_cv_path_SED"; then
12542 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12545 ac_cv_path_SED=$SED
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12550 $as_echo "$ac_cv_path_SED" >&6; }
12551 SED="$ac_cv_path_SED"
12554 test -z "$SED" && SED=sed
12555 Xsed="$SED -e 1s/^X//"
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12568 $as_echo_n "checking for fgrep... " >&6; }
12569 if test "${ac_cv_path_FGREP+set}" = set; then :
12570 $as_echo_n "(cached) " >&6
12572 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12573 then ac_cv_path_FGREP="$GREP -F"
12575 if test -z "$FGREP"; then
12576 ac_path_FGREP_found=false
12577 # Loop through the user's path and test for each of PROGNAME-LIST
12578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12579 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12582 test -z "$as_dir" && as_dir=.
12583 for ac_prog in fgrep; do
12584 for ac_exec_ext in '' $ac_executable_extensions; do
12585 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12586 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12587 # Check for GNU ac_path_FGREP and select it if it is found.
12588 # Check for GNU $ac_path_FGREP
12589 case `"$ac_path_FGREP" --version 2>&1` in
12591 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12594 $as_echo_n 0123456789 >"conftest.in"
12597 cat "conftest.in" "conftest.in" >"conftest.tmp"
12598 mv "conftest.tmp" "conftest.in"
12599 cp "conftest.in" "conftest.nl"
12600 $as_echo 'FGREP' >> "conftest.nl"
12601 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12603 as_fn_arith $ac_count + 1 && ac_count=$as_val
12604 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12605 # Best one so far, save it but keep looking for a better one
12606 ac_cv_path_FGREP="$ac_path_FGREP"
12607 ac_path_FGREP_max=$ac_count
12609 # 10*(2^10) chars as input seems more than enough
12610 test $ac_count -gt 10 && break
12612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12615 $ac_path_FGREP_found && break 3
12620 if test -z "$ac_cv_path_FGREP"; then
12621 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12624 ac_cv_path_FGREP=$FGREP
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12630 $as_echo "$ac_cv_path_FGREP" >&6; }
12631 FGREP="$ac_cv_path_FGREP"
12634 test -z "$GREP" && GREP=grep
12654 # Check whether --with-gnu-ld was given.
12655 if test "${with_gnu_ld+set}" = set; then :
12656 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12662 if test "$GCC" = yes; then
12663 # Check if gcc -print-prog-name=ld gives a path.
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12665 $as_echo_n "checking for ld used by $CC... " >&6; }
12668 # gcc leaves a trailing carriage return which upsets mingw
12669 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12671 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12674 # Accept absolute paths.
12676 re_direlt='/[^/][^/]*/\.\./'
12677 # Canonicalize the pathname of ld
12678 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12679 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12680 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12682 test -z "$LD" && LD="$ac_prog"
12685 # If it fails, then pretend we aren't using GCC.
12689 # If it is relative, then search for the first ld in PATH.
12690 with_gnu_ld=unknown
12693 elif test "$with_gnu_ld" = yes; then
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12695 $as_echo_n "checking for GNU ld... " >&6; }
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12698 $as_echo_n "checking for non-GNU ld... " >&6; }
12700 if test "${lt_cv_path_LD+set}" = set; then :
12701 $as_echo_n "(cached) " >&6
12703 if test -z "$LD"; then
12704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12705 for ac_dir in $PATH; do
12707 test -z "$ac_dir" && ac_dir=.
12708 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12709 lt_cv_path_LD="$ac_dir/$ac_prog"
12710 # Check to see if the program is GNU ld. I'd rather use --version,
12711 # but apparently some variants of GNU ld only accept -v.
12712 # Break only if it was the GNU/non-GNU ld that we prefer.
12713 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12714 *GNU* | *'with BFD'*)
12715 test "$with_gnu_ld" != no && break
12718 test "$with_gnu_ld" != yes && break
12725 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12729 LD="$lt_cv_path_LD"
12730 if test -n "$LD"; then
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12732 $as_echo "$LD" >&6; }
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12735 $as_echo "no" >&6; }
12737 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12739 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12740 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12741 $as_echo_n "(cached) " >&6
12743 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12744 case `$LD -v 2>&1 </dev/null` in
12745 *GNU* | *'with BFD'*)
12746 lt_cv_prog_gnu_ld=yes
12749 lt_cv_prog_gnu_ld=no
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12754 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12755 with_gnu_ld=$lt_cv_prog_gnu_ld
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12766 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12767 if test "${lt_cv_path_NM+set}" = set; then :
12768 $as_echo_n "(cached) " >&6
12770 if test -n "$NM"; then
12771 # Let the user override the test.
12772 lt_cv_path_NM="$NM"
12774 lt_nm_to_check="${ac_tool_prefix}nm"
12775 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12776 lt_nm_to_check="$lt_nm_to_check nm"
12778 for lt_tmp_nm in $lt_nm_to_check; do
12779 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12780 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12782 test -z "$ac_dir" && ac_dir=.
12783 tmp_nm="$ac_dir/$lt_tmp_nm"
12784 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12785 # Check to see if the nm accepts a BSD-compat flag.
12786 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12787 # nm: unknown option "B" ignored
12788 # Tru64's nm complains that /dev/null is an invalid object file
12789 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12790 */dev/null* | *'Invalid file or object type'*)
12791 lt_cv_path_NM="$tmp_nm -B"
12795 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12797 lt_cv_path_NM="$tmp_nm -p"
12801 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12802 continue # so that we can try to find one that supports BSD flags
12811 : ${lt_cv_path_NM=no}
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12815 $as_echo "$lt_cv_path_NM" >&6; }
12816 if test "$lt_cv_path_NM" != "no"; then
12817 NM="$lt_cv_path_NM"
12819 # Didn't find any BSD compatible name lister, look for dumpbin.
12820 if test -n "$DUMPBIN"; then :
12821 # Let the user override the test.
12823 if test -n "$ac_tool_prefix"; then
12824 for ac_prog in dumpbin "link -dump"
12826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12829 $as_echo_n "checking for $ac_word... " >&6; }
12830 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12831 $as_echo_n "(cached) " >&6
12833 if test -n "$DUMPBIN"; then
12834 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12837 for as_dir in $PATH
12840 test -z "$as_dir" && as_dir=.
12841 for ac_exec_ext in '' $ac_executable_extensions; do
12842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12843 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12853 DUMPBIN=$ac_cv_prog_DUMPBIN
12854 if test -n "$DUMPBIN"; then
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12856 $as_echo "$DUMPBIN" >&6; }
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12859 $as_echo "no" >&6; }
12863 test -n "$DUMPBIN" && break
12866 if test -z "$DUMPBIN"; then
12867 ac_ct_DUMPBIN=$DUMPBIN
12868 for ac_prog in dumpbin "link -dump"
12870 # Extract the first word of "$ac_prog", so it can be a program name with args.
12871 set dummy $ac_prog; ac_word=$2
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12873 $as_echo_n "checking for $ac_word... " >&6; }
12874 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12875 $as_echo_n "(cached) " >&6
12877 if test -n "$ac_ct_DUMPBIN"; then
12878 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881 for as_dir in $PATH
12884 test -z "$as_dir" && as_dir=.
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12887 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12897 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12898 if test -n "$ac_ct_DUMPBIN"; then
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12900 $as_echo "$ac_ct_DUMPBIN" >&6; }
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903 $as_echo "no" >&6; }
12907 test -n "$ac_ct_DUMPBIN" && break
12910 if test "x$ac_ct_DUMPBIN" = x; then
12913 case $cross_compiling:$ac_tool_warned in
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12917 ac_tool_warned=yes ;;
12919 DUMPBIN=$ac_ct_DUMPBIN
12923 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12925 DUMPBIN="$DUMPBIN -symbols"
12933 if test "$DUMPBIN" != ":"; then
12937 test -z "$NM" && NM=nm
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12945 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12946 if test "${lt_cv_nm_interface+set}" = set; then :
12947 $as_echo_n "(cached) " >&6
12949 lt_cv_nm_interface="BSD nm"
12950 echo "int some_variable = 0;" > conftest.$ac_ext
12951 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12952 (eval "$ac_compile" 2>conftest.err)
12953 cat conftest.err >&5
12954 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12955 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12956 cat conftest.err >&5
12957 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12958 cat conftest.out >&5
12959 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12960 lt_cv_nm_interface="MS dumpbin"
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12965 $as_echo "$lt_cv_nm_interface" >&6; }
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12968 $as_echo_n "checking whether ln -s works... " >&6; }
12970 if test "$LN_S" = "ln -s"; then
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12972 $as_echo "yes" >&6; }
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12975 $as_echo "no, using $LN_S" >&6; }
12978 # find the maximum length of command line arguments
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12980 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12981 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12982 $as_echo_n "(cached) " >&6
12989 # On DJGPP, this test can blow up pretty badly due to problems in libc
12990 # (any single argument exceeding 2000 bytes causes a buffer overrun
12991 # during glob expansion). Even if it were fixed, the result of this
12992 # check would be larger than it should be.
12993 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12997 # Under GNU Hurd, this test is not required because there is
12998 # no limit to the length of command line arguments.
12999 # Libtool will interpret -1 as no limit whatsoever
13000 lt_cv_sys_max_cmd_len=-1;
13003 cygwin* | mingw* | cegcc*)
13004 # On Win9x/ME, this test blows up -- it succeeds, but takes
13005 # about 5 minutes as the teststring grows exponentially.
13006 # Worse, since 9x/ME are not pre-emptively multitasking,
13007 # you end up with a "frozen" computer, even though with patience
13008 # the test eventually succeeds (with a max line length of 256k).
13009 # Instead, let's just punt: use the minimum linelength reported by
13010 # all of the supported platforms: 8192 (on NT/2K/XP).
13011 lt_cv_sys_max_cmd_len=8192;
13015 # On MiNT this can take a long time and run out of memory.
13016 lt_cv_sys_max_cmd_len=8192;
13020 # On AmigaOS with pdksh, this test takes hours, literally.
13021 # So we just punt and use a minimum line length of 8192.
13022 lt_cv_sys_max_cmd_len=8192;
13025 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13026 # This has been around since 386BSD, at least. Likely further.
13027 if test -x /sbin/sysctl; then
13028 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13029 elif test -x /usr/sbin/sysctl; then
13030 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13032 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13034 # And add a safety zone
13035 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13036 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13040 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13041 lt_cv_sys_max_cmd_len=196608
13045 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13046 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13047 # nice to cause kernel panics so lets avoid the loop below.
13048 # First set a reasonable default.
13049 lt_cv_sys_max_cmd_len=16384
13051 if test -x /sbin/sysconfig; then
13052 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13053 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13058 lt_cv_sys_max_cmd_len=102400
13060 sysv5* | sco5v6* | sysv4.2uw2*)
13061 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13062 if test -n "$kargmax"; then
13063 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13065 lt_cv_sys_max_cmd_len=32768
13069 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13070 if test -n "$lt_cv_sys_max_cmd_len"; then
13071 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13072 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13074 # Make teststring a little bigger before we do anything with it.
13075 # a 1K string should be a reasonable start.
13076 for i in 1 2 3 4 5 6 7 8 ; do
13077 teststring=$teststring$teststring
13079 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13080 # If test is not a shell built-in, we'll probably end up computing a
13081 # maximum length that is only half of the actual maximum length, but
13083 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13084 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13085 test $i != 17 # 1/2 MB should be enough
13088 teststring=$teststring$teststring
13090 # Only check the string length outside the loop.
13091 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13093 # Add a significant safety factor because C++ compilers can tack on
13094 # massive amounts of additional arguments before passing them to the
13095 # linker. It appears as though 1/2 is a usable value.
13096 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13103 if test -n $lt_cv_sys_max_cmd_len ; then
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13105 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13108 $as_echo "none" >&6; }
13110 max_cmd_len=$lt_cv_sys_max_cmd_len
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13122 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13123 # Try some XSI features
13125 ( _lt_dummy="a/b/c"
13126 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13128 && eval 'test $(( 1 + 1 )) -eq 2 \
13129 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13132 $as_echo "$xsi_shell" >&6; }
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13136 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13138 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13140 && lt_shell_append=yes
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13142 $as_echo "$lt_shell_append" >&6; }
13145 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13155 # test EBCDIC or ASCII
13156 case `echo X|tr X '\101'` in
13157 A) # ASCII based system
13158 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13159 lt_SP2NL='tr \040 \012'
13160 lt_NL2SP='tr \015\012 \040\040'
13162 *) # EBCDIC based system
13163 lt_SP2NL='tr \100 \n'
13164 lt_NL2SP='tr \r\n \100\100'
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13177 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13178 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13179 $as_echo_n "(cached) " >&6
13181 lt_cv_ld_reload_flag='-r'
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13184 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13185 reload_flag=$lt_cv_ld_reload_flag
13186 case $reload_flag in
13188 *) reload_flag=" $reload_flag" ;;
13190 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13193 if test "$GCC" = yes; then
13194 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13196 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13209 if test -n "$ac_tool_prefix"; then
13210 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13211 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13213 $as_echo_n "checking for $ac_word... " >&6; }
13214 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13215 $as_echo_n "(cached) " >&6
13217 if test -n "$OBJDUMP"; then
13218 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13221 for as_dir in $PATH
13224 test -z "$as_dir" && as_dir=.
13225 for ac_exec_ext in '' $ac_executable_extensions; do
13226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13227 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13237 OBJDUMP=$ac_cv_prog_OBJDUMP
13238 if test -n "$OBJDUMP"; then
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13240 $as_echo "$OBJDUMP" >&6; }
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13243 $as_echo "no" >&6; }
13248 if test -z "$ac_cv_prog_OBJDUMP"; then
13249 ac_ct_OBJDUMP=$OBJDUMP
13250 # Extract the first word of "objdump", so it can be a program name with args.
13251 set dummy objdump; ac_word=$2
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13253 $as_echo_n "checking for $ac_word... " >&6; }
13254 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13255 $as_echo_n "(cached) " >&6
13257 if test -n "$ac_ct_OBJDUMP"; then
13258 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13261 for as_dir in $PATH
13264 test -z "$as_dir" && as_dir=.
13265 for ac_exec_ext in '' $ac_executable_extensions; do
13266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13267 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13277 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13278 if test -n "$ac_ct_OBJDUMP"; then
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13280 $as_echo "$ac_ct_OBJDUMP" >&6; }
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283 $as_echo "no" >&6; }
13286 if test "x$ac_ct_OBJDUMP" = x; then
13289 case $cross_compiling:$ac_tool_warned in
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13293 ac_tool_warned=yes ;;
13295 OBJDUMP=$ac_ct_OBJDUMP
13298 OBJDUMP="$ac_cv_prog_OBJDUMP"
13301 test -z "$OBJDUMP" && OBJDUMP=objdump
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13312 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13313 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13314 $as_echo_n "(cached) " >&6
13316 lt_cv_file_magic_cmd='$MAGIC_CMD'
13317 lt_cv_file_magic_test_file=
13318 lt_cv_deplibs_check_method='unknown'
13319 # Need to set the preceding variable on all platforms that support
13320 # interlibrary dependencies.
13321 # 'none' -- dependencies not supported.
13322 # `unknown' -- same as none, but documents that we really don't know.
13323 # 'pass_all' -- all dependencies passed with no checks.
13324 # 'test_compile' -- check by making test program.
13325 # 'file_magic [[regex]]' -- check by looking for files in library path
13326 # which responds to the $file_magic_cmd with a given extended regex.
13327 # If you have `file' or equivalent on your system and you're not sure
13328 # whether `pass_all' will *always* work, you probably want this one.
13332 lt_cv_deplibs_check_method=pass_all
13336 lt_cv_deplibs_check_method=pass_all
13340 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13341 lt_cv_file_magic_cmd='/usr/bin/file -L'
13342 lt_cv_file_magic_test_file=/shlib/libc.so
13346 # func_win32_libid is a shell function defined in ltmain.sh
13347 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13348 lt_cv_file_magic_cmd='func_win32_libid'
13352 # Base MSYS/MinGW do not provide the 'file' command needed by
13353 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13354 # unless we find 'file', for example because we are cross-compiling.
13355 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13356 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13357 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13358 lt_cv_file_magic_cmd='func_win32_libid'
13360 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13361 lt_cv_file_magic_cmd='$OBJDUMP -f'
13366 # use the weaker test based on 'objdump'. See mingw*.
13367 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13368 lt_cv_file_magic_cmd='$OBJDUMP -f'
13371 darwin* | rhapsody*)
13372 lt_cv_deplibs_check_method=pass_all
13375 freebsd* | dragonfly*)
13376 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13379 # Not sure whether the presence of OpenBSD here was a mistake.
13380 # Let's accept both of them until this is cleared up.
13381 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13382 lt_cv_file_magic_cmd=/usr/bin/file
13383 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13387 lt_cv_deplibs_check_method=pass_all
13392 lt_cv_deplibs_check_method=pass_all
13396 lt_cv_deplibs_check_method=pass_all
13399 hpux10.20* | hpux11*)
13400 lt_cv_file_magic_cmd=/usr/bin/file
13403 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13404 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13407 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]'
13408 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13411 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13412 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13418 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13422 irix5* | irix6* | nonstopux*)
13424 *-32|*"-32 ") libmagic=32-bit;;
13425 *-n32|*"-n32 ") libmagic=N32;;
13426 *-64|*"-64 ") libmagic=64-bit;;
13427 *) libmagic=never-match;;
13429 lt_cv_deplibs_check_method=pass_all
13432 # This must be Linux ELF.
13433 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13434 lt_cv_deplibs_check_method=pass_all
13438 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13441 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13446 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13447 lt_cv_file_magic_cmd=/usr/bin/file
13448 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13452 lt_cv_deplibs_check_method=pass_all
13456 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13463 osf3* | osf4* | osf5*)
13464 lt_cv_deplibs_check_method=pass_all
13468 lt_cv_deplibs_check_method=pass_all
13472 lt_cv_deplibs_check_method=pass_all
13475 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13476 lt_cv_deplibs_check_method=pass_all
13480 case $host_vendor in
13482 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]'
13483 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13486 lt_cv_deplibs_check_method=pass_all
13489 lt_cv_file_magic_cmd='/bin/file'
13490 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13493 lt_cv_file_magic_cmd='/bin/file'
13494 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13495 lt_cv_file_magic_test_file=/lib/libc.so
13498 lt_cv_deplibs_check_method=pass_all
13501 lt_cv_deplibs_check_method=pass_all
13507 lt_cv_deplibs_check_method=pass_all
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13513 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13514 file_magic_cmd=$lt_cv_file_magic_cmd
13515 deplibs_check_method=$lt_cv_deplibs_check_method
13516 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13529 if test -n "$ac_tool_prefix"; then
13530 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13531 set dummy ${ac_tool_prefix}ar; ac_word=$2
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13533 $as_echo_n "checking for $ac_word... " >&6; }
13534 if test "${ac_cv_prog_AR+set}" = set; then :
13535 $as_echo_n "(cached) " >&6
13537 if test -n "$AR"; then
13538 ac_cv_prog_AR="$AR" # Let the user override the test.
13540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13541 for as_dir in $PATH
13544 test -z "$as_dir" && as_dir=.
13545 for ac_exec_ext in '' $ac_executable_extensions; do
13546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13547 ac_cv_prog_AR="${ac_tool_prefix}ar"
13548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13558 if test -n "$AR"; then
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13560 $as_echo "$AR" >&6; }
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13563 $as_echo "no" >&6; }
13568 if test -z "$ac_cv_prog_AR"; then
13570 # Extract the first word of "ar", so it can be a program name with args.
13571 set dummy ar; ac_word=$2
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13573 $as_echo_n "checking for $ac_word... " >&6; }
13574 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13575 $as_echo_n "(cached) " >&6
13577 if test -n "$ac_ct_AR"; then
13578 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13581 for as_dir in $PATH
13584 test -z "$as_dir" && as_dir=.
13585 for ac_exec_ext in '' $ac_executable_extensions; do
13586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13587 ac_cv_prog_ac_ct_AR="ar"
13588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13597 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13598 if test -n "$ac_ct_AR"; then
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13600 $as_echo "$ac_ct_AR" >&6; }
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13603 $as_echo "no" >&6; }
13606 if test "x$ac_ct_AR" = x; then
13609 case $cross_compiling:$ac_tool_warned in
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13613 ac_tool_warned=yes ;;
13618 AR="$ac_cv_prog_AR"
13621 test -z "$AR" && AR=ar
13622 test -z "$AR_FLAGS" && AR_FLAGS=cru
13634 if test -n "$ac_tool_prefix"; then
13635 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13636 set dummy ${ac_tool_prefix}strip; ac_word=$2
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13638 $as_echo_n "checking for $ac_word... " >&6; }
13639 if test "${ac_cv_prog_STRIP+set}" = set; then :
13640 $as_echo_n "(cached) " >&6
13642 if test -n "$STRIP"; then
13643 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13646 for as_dir in $PATH
13649 test -z "$as_dir" && as_dir=.
13650 for ac_exec_ext in '' $ac_executable_extensions; do
13651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13652 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13662 STRIP=$ac_cv_prog_STRIP
13663 if test -n "$STRIP"; then
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13665 $as_echo "$STRIP" >&6; }
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13668 $as_echo "no" >&6; }
13673 if test -z "$ac_cv_prog_STRIP"; then
13675 # Extract the first word of "strip", so it can be a program name with args.
13676 set dummy strip; ac_word=$2
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13678 $as_echo_n "checking for $ac_word... " >&6; }
13679 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13680 $as_echo_n "(cached) " >&6
13682 if test -n "$ac_ct_STRIP"; then
13683 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13686 for as_dir in $PATH
13689 test -z "$as_dir" && as_dir=.
13690 for ac_exec_ext in '' $ac_executable_extensions; do
13691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13692 ac_cv_prog_ac_ct_STRIP="strip"
13693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13702 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13703 if test -n "$ac_ct_STRIP"; then
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13705 $as_echo "$ac_ct_STRIP" >&6; }
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13708 $as_echo "no" >&6; }
13711 if test "x$ac_ct_STRIP" = x; then
13714 case $cross_compiling:$ac_tool_warned in
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13718 ac_tool_warned=yes ;;
13723 STRIP="$ac_cv_prog_STRIP"
13726 test -z "$STRIP" && STRIP=:
13733 if test -n "$ac_tool_prefix"; then
13734 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13735 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13737 $as_echo_n "checking for $ac_word... " >&6; }
13738 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13739 $as_echo_n "(cached) " >&6
13741 if test -n "$RANLIB"; then
13742 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13745 for as_dir in $PATH
13748 test -z "$as_dir" && as_dir=.
13749 for ac_exec_ext in '' $ac_executable_extensions; do
13750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13751 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13761 RANLIB=$ac_cv_prog_RANLIB
13762 if test -n "$RANLIB"; then
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13764 $as_echo "$RANLIB" >&6; }
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767 $as_echo "no" >&6; }
13772 if test -z "$ac_cv_prog_RANLIB"; then
13773 ac_ct_RANLIB=$RANLIB
13774 # Extract the first word of "ranlib", so it can be a program name with args.
13775 set dummy ranlib; ac_word=$2
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13777 $as_echo_n "checking for $ac_word... " >&6; }
13778 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13779 $as_echo_n "(cached) " >&6
13781 if test -n "$ac_ct_RANLIB"; then
13782 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13785 for as_dir in $PATH
13788 test -z "$as_dir" && as_dir=.
13789 for ac_exec_ext in '' $ac_executable_extensions; do
13790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13791 ac_cv_prog_ac_ct_RANLIB="ranlib"
13792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13801 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13802 if test -n "$ac_ct_RANLIB"; then
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13804 $as_echo "$ac_ct_RANLIB" >&6; }
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13807 $as_echo "no" >&6; }
13810 if test "x$ac_ct_RANLIB" = x; then
13813 case $cross_compiling:$ac_tool_warned in
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13817 ac_tool_warned=yes ;;
13819 RANLIB=$ac_ct_RANLIB
13822 RANLIB="$ac_cv_prog_RANLIB"
13825 test -z "$RANLIB" && RANLIB=:
13832 # Determine commands to create old-style static archives.
13833 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13834 old_postinstall_cmds='chmod 644 $oldlib'
13835 old_postuninstall_cmds=
13837 if test -n "$RANLIB"; then
13840 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13843 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13846 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13851 lock_old_archive_extraction=yes ;;
13853 lock_old_archive_extraction=no ;;
13894 # If no C compiler was specified, use CC.
13897 # If no C compiler flags were specified, use CFLAGS.
13898 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13900 # Allow CC to be a program name with arguments.
13904 # Check for command to grab the raw symbol name followed by C symbol from nm.
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13906 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13907 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13908 $as_echo_n "(cached) " >&6
13911 # These are sane defaults that work on at least a few old systems.
13912 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13914 # Character class describing NM global symbol codes.
13915 symcode='[BCDEGRST]'
13917 # Regexp to match symbols that can be accessed directly from C.
13918 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13920 # Define system-specific variables.
13925 cygwin* | mingw* | pw32* | cegcc*)
13926 symcode='[ABCDGISTW]'
13929 if test "$host_cpu" = ia64; then
13930 symcode='[ABCDEGRST]'
13933 irix* | nonstopux*)
13934 symcode='[BCDEGRST]'
13937 symcode='[BCDEGQRST]'
13948 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13956 # If we're using GNU nm, then use its standard symbol codes.
13957 case `$NM -V 2>&1` in
13958 *GNU* | *'with BFD'*)
13959 symcode='[ABCDGIRSTW]' ;;
13962 # Transform an extracted symbol line into a proper C declaration.
13963 # Some systems (esp. on ia64) link data and code symbols differently,
13964 # so use this general approach.
13965 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13967 # Transform an extracted symbol line into symbol name and symbol address
13968 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13969 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'"
13971 # Handle CRLF in mingw tool chain
13975 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13979 # Try without a prefix underscore, then with it.
13980 for ac_symprfx in "" "_"; do
13982 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13983 symxfrm="\\1 $ac_symprfx\\2 \\2"
13985 # Write the raw and C identifiers.
13986 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13987 # Fake it for dumpbin and say T for any non-static function
13988 # and D for any global variable.
13989 # Also find C++ and __fastcall symbols from MSVC++,
13990 # which start with @ or ?.
13991 lt_cv_sys_global_symbol_pipe="$AWK '"\
13992 " {last_section=section; section=\$ 3};"\
13993 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13994 " \$ 0!~/External *\|/{next};"\
13995 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13996 " {if(hide[section]) next};"\
13997 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13998 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13999 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14000 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14001 " ' prfx=^$ac_symprfx"
14003 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14006 # Check to see that the pipe works correctly.
14010 cat > conftest.$ac_ext <<_LT_EOF
14015 void nm_test_func(void);
14016 void nm_test_func(void){}
14020 int main(){nm_test_var='a';nm_test_func();return(0);}
14023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14024 (eval $ac_compile) 2>&5
14026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14027 test $ac_status = 0; }; then
14028 # Now try to grab the symbols.
14030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14031 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14034 test $ac_status = 0; } && test -s "$nlist"; then
14035 # Try sorting and uniquifying the output.
14036 if sort "$nlist" | uniq > "$nlist"T; then
14037 mv -f "$nlist"T "$nlist"
14042 # Make sure that we snagged all the symbols we need.
14043 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14044 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14045 cat <<_LT_EOF > conftest.$ac_ext
14051 # Now generate the symbol file.
14052 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14054 cat <<_LT_EOF >> conftest.$ac_ext
14056 /* The mapping between symbol names and symbols. */
14061 lt__PROGRAM__LTX_preloaded_symbols[] =
14063 { "@PROGRAM@", (void *) 0 },
14065 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14066 cat <<\_LT_EOF >> conftest.$ac_ext
14070 /* This works around a problem in FreeBSD linker */
14071 #ifdef FREEBSD_WORKAROUND
14072 static const void *lt_preloaded_setup() {
14073 return lt__PROGRAM__LTX_preloaded_symbols;
14081 # Now try linking the two files.
14082 mv conftest.$ac_objext conftstm.$ac_objext
14083 lt_save_LIBS="$LIBS"
14084 lt_save_CFLAGS="$CFLAGS"
14085 LIBS="conftstm.$ac_objext"
14086 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14088 (eval $ac_link) 2>&5
14090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14091 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14094 LIBS="$lt_save_LIBS"
14095 CFLAGS="$lt_save_CFLAGS"
14097 echo "cannot find nm_test_func in $nlist" >&5
14100 echo "cannot find nm_test_var in $nlist" >&5
14103 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14106 echo "$progname: failed program was:" >&5
14107 cat conftest.$ac_ext >&5
14109 rm -rf conftest* conftst*
14111 # Do not use the global_symbol_pipe unless it works.
14112 if test "$pipe_works" = yes; then
14115 lt_cv_sys_global_symbol_pipe=
14121 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14122 lt_cv_sys_global_symbol_to_cdecl=
14124 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14126 $as_echo "failed" >&6; }
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14129 $as_echo "ok" >&6; }
14153 # Check whether --enable-libtool-lock was given.
14154 if test "${enable_libtool_lock+set}" = set; then :
14155 enableval=$enable_libtool_lock;
14158 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14160 # Some flags need to be propagated to the compiler or linker for good
14164 # Find out which ABI we are using.
14165 echo 'int i;' > conftest.$ac_ext
14166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14167 (eval $ac_compile) 2>&5
14169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14170 test $ac_status = 0; }; then
14171 case `/usr/bin/file conftest.$ac_objext` in
14173 HPUX_IA64_MODE="32"
14176 HPUX_IA64_MODE="64"
14183 # Find out which ABI we are using.
14184 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14186 (eval $ac_compile) 2>&5
14188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14189 test $ac_status = 0; }; then
14190 if test "$lt_cv_prog_gnu_ld" = yes; then
14191 case `/usr/bin/file conftest.$ac_objext` in
14193 LD="${LD-ld} -melf32bsmip"
14196 LD="${LD-ld} -melf32bmipn32"
14199 LD="${LD-ld} -melf64bmip"
14203 case `/usr/bin/file conftest.$ac_objext` in
14219 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14220 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14221 # Find out which ABI we are using.
14222 echo 'int i;' > conftest.$ac_ext
14223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14224 (eval $ac_compile) 2>&5
14226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14227 test $ac_status = 0; }; then
14228 case `/usr/bin/file conftest.o` in
14231 x86_64-*kfreebsd*-gnu)
14232 LD="${LD-ld} -m elf_i386_fbsd"
14235 case `/usr/bin/file conftest.o` in
14237 LD="${LD-ld} -m elf32_x86_64"
14240 LD="${LD-ld} -m elf_i386"
14244 powerpc64le-*linux*)
14245 LD="${LD-ld} -m elf32lppclinux"
14248 LD="${LD-ld} -m elf32ppclinux"
14251 LD="${LD-ld} -m elf_s390"
14254 LD="${LD-ld} -m elf32_sparc"
14260 x86_64-*kfreebsd*-gnu)
14261 LD="${LD-ld} -m elf_x86_64_fbsd"
14264 LD="${LD-ld} -m elf_x86_64"
14267 LD="${LD-ld} -m elf64lppc"
14270 LD="${LD-ld} -m elf64ppc"
14272 s390*-*linux*|s390*-*tpf*)
14273 LD="${LD-ld} -m elf64_s390"
14276 LD="${LD-ld} -m elf64_sparc"
14286 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14287 SAVE_CFLAGS="$CFLAGS"
14288 CFLAGS="$CFLAGS -belf"
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14290 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14291 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14292 $as_echo_n "(cached) " >&6
14295 ac_cpp='$CPP $CPPFLAGS'
14296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301 /* end confdefs.h. */
14311 if ac_fn_c_try_link "$LINENO"; then :
14312 lt_cv_cc_needs_belf=yes
14314 lt_cv_cc_needs_belf=no
14316 rm -f core conftest.err conftest.$ac_objext \
14317 conftest$ac_exeext conftest.$ac_ext
14319 ac_cpp='$CPP $CPPFLAGS'
14320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14326 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14327 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14328 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14329 CFLAGS="$SAVE_CFLAGS"
14333 # Find out which ABI we are using.
14334 echo 'int i;' > conftest.$ac_ext
14335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14336 (eval $ac_compile) 2>&5
14338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14339 test $ac_status = 0; }; then
14340 case `/usr/bin/file conftest.o` in
14342 case $lt_cv_prog_gnu_ld in
14343 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14345 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14357 need_locks="$enable_libtool_lock"
14361 rhapsody* | darwin*)
14362 if test -n "$ac_tool_prefix"; then
14363 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14364 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14366 $as_echo_n "checking for $ac_word... " >&6; }
14367 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14368 $as_echo_n "(cached) " >&6
14370 if test -n "$DSYMUTIL"; then
14371 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14374 for as_dir in $PATH
14377 test -z "$as_dir" && as_dir=.
14378 for ac_exec_ext in '' $ac_executable_extensions; do
14379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14380 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14390 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14391 if test -n "$DSYMUTIL"; then
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14393 $as_echo "$DSYMUTIL" >&6; }
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14396 $as_echo "no" >&6; }
14401 if test -z "$ac_cv_prog_DSYMUTIL"; then
14402 ac_ct_DSYMUTIL=$DSYMUTIL
14403 # Extract the first word of "dsymutil", so it can be a program name with args.
14404 set dummy dsymutil; ac_word=$2
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14406 $as_echo_n "checking for $ac_word... " >&6; }
14407 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14408 $as_echo_n "(cached) " >&6
14410 if test -n "$ac_ct_DSYMUTIL"; then
14411 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14414 for as_dir in $PATH
14417 test -z "$as_dir" && as_dir=.
14418 for ac_exec_ext in '' $ac_executable_extensions; do
14419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14420 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14430 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14431 if test -n "$ac_ct_DSYMUTIL"; then
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14433 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14436 $as_echo "no" >&6; }
14439 if test "x$ac_ct_DSYMUTIL" = x; then
14442 case $cross_compiling:$ac_tool_warned in
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14446 ac_tool_warned=yes ;;
14448 DSYMUTIL=$ac_ct_DSYMUTIL
14451 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14454 if test -n "$ac_tool_prefix"; then
14455 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14456 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14458 $as_echo_n "checking for $ac_word... " >&6; }
14459 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14460 $as_echo_n "(cached) " >&6
14462 if test -n "$NMEDIT"; then
14463 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14466 for as_dir in $PATH
14469 test -z "$as_dir" && as_dir=.
14470 for ac_exec_ext in '' $ac_executable_extensions; do
14471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14472 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14482 NMEDIT=$ac_cv_prog_NMEDIT
14483 if test -n "$NMEDIT"; then
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14485 $as_echo "$NMEDIT" >&6; }
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14488 $as_echo "no" >&6; }
14493 if test -z "$ac_cv_prog_NMEDIT"; then
14494 ac_ct_NMEDIT=$NMEDIT
14495 # Extract the first word of "nmedit", so it can be a program name with args.
14496 set dummy nmedit; ac_word=$2
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14498 $as_echo_n "checking for $ac_word... " >&6; }
14499 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14500 $as_echo_n "(cached) " >&6
14502 if test -n "$ac_ct_NMEDIT"; then
14503 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14506 for as_dir in $PATH
14509 test -z "$as_dir" && as_dir=.
14510 for ac_exec_ext in '' $ac_executable_extensions; do
14511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14512 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14522 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14523 if test -n "$ac_ct_NMEDIT"; then
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14525 $as_echo "$ac_ct_NMEDIT" >&6; }
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14528 $as_echo "no" >&6; }
14531 if test "x$ac_ct_NMEDIT" = x; then
14534 case $cross_compiling:$ac_tool_warned in
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14538 ac_tool_warned=yes ;;
14540 NMEDIT=$ac_ct_NMEDIT
14543 NMEDIT="$ac_cv_prog_NMEDIT"
14546 if test -n "$ac_tool_prefix"; then
14547 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14548 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14550 $as_echo_n "checking for $ac_word... " >&6; }
14551 if test "${ac_cv_prog_LIPO+set}" = set; then :
14552 $as_echo_n "(cached) " >&6
14554 if test -n "$LIPO"; then
14555 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14558 for as_dir in $PATH
14561 test -z "$as_dir" && as_dir=.
14562 for ac_exec_ext in '' $ac_executable_extensions; do
14563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14564 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14574 LIPO=$ac_cv_prog_LIPO
14575 if test -n "$LIPO"; then
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14577 $as_echo "$LIPO" >&6; }
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14580 $as_echo "no" >&6; }
14585 if test -z "$ac_cv_prog_LIPO"; then
14587 # Extract the first word of "lipo", so it can be a program name with args.
14588 set dummy lipo; ac_word=$2
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14590 $as_echo_n "checking for $ac_word... " >&6; }
14591 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14592 $as_echo_n "(cached) " >&6
14594 if test -n "$ac_ct_LIPO"; then
14595 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14598 for as_dir in $PATH
14601 test -z "$as_dir" && as_dir=.
14602 for ac_exec_ext in '' $ac_executable_extensions; do
14603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14604 ac_cv_prog_ac_ct_LIPO="lipo"
14605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14614 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14615 if test -n "$ac_ct_LIPO"; then
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14617 $as_echo "$ac_ct_LIPO" >&6; }
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14620 $as_echo "no" >&6; }
14623 if test "x$ac_ct_LIPO" = x; then
14626 case $cross_compiling:$ac_tool_warned in
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14630 ac_tool_warned=yes ;;
14635 LIPO="$ac_cv_prog_LIPO"
14638 if test -n "$ac_tool_prefix"; then
14639 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14640 set dummy ${ac_tool_prefix}otool; ac_word=$2
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14642 $as_echo_n "checking for $ac_word... " >&6; }
14643 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14644 $as_echo_n "(cached) " >&6
14646 if test -n "$OTOOL"; then
14647 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14650 for as_dir in $PATH
14653 test -z "$as_dir" && as_dir=.
14654 for ac_exec_ext in '' $ac_executable_extensions; do
14655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14656 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14666 OTOOL=$ac_cv_prog_OTOOL
14667 if test -n "$OTOOL"; then
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14669 $as_echo "$OTOOL" >&6; }
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14672 $as_echo "no" >&6; }
14677 if test -z "$ac_cv_prog_OTOOL"; then
14679 # Extract the first word of "otool", so it can be a program name with args.
14680 set dummy otool; ac_word=$2
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14682 $as_echo_n "checking for $ac_word... " >&6; }
14683 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14684 $as_echo_n "(cached) " >&6
14686 if test -n "$ac_ct_OTOOL"; then
14687 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14690 for as_dir in $PATH
14693 test -z "$as_dir" && as_dir=.
14694 for ac_exec_ext in '' $ac_executable_extensions; do
14695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14696 ac_cv_prog_ac_ct_OTOOL="otool"
14697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14706 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14707 if test -n "$ac_ct_OTOOL"; then
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14709 $as_echo "$ac_ct_OTOOL" >&6; }
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14712 $as_echo "no" >&6; }
14715 if test "x$ac_ct_OTOOL" = x; then
14718 case $cross_compiling:$ac_tool_warned in
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14722 ac_tool_warned=yes ;;
14727 OTOOL="$ac_cv_prog_OTOOL"
14730 if test -n "$ac_tool_prefix"; then
14731 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14732 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14734 $as_echo_n "checking for $ac_word... " >&6; }
14735 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14736 $as_echo_n "(cached) " >&6
14738 if test -n "$OTOOL64"; then
14739 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14742 for as_dir in $PATH
14745 test -z "$as_dir" && as_dir=.
14746 for ac_exec_ext in '' $ac_executable_extensions; do
14747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14748 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14758 OTOOL64=$ac_cv_prog_OTOOL64
14759 if test -n "$OTOOL64"; then
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14761 $as_echo "$OTOOL64" >&6; }
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14764 $as_echo "no" >&6; }
14769 if test -z "$ac_cv_prog_OTOOL64"; then
14770 ac_ct_OTOOL64=$OTOOL64
14771 # Extract the first word of "otool64", so it can be a program name with args.
14772 set dummy otool64; ac_word=$2
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14774 $as_echo_n "checking for $ac_word... " >&6; }
14775 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14776 $as_echo_n "(cached) " >&6
14778 if test -n "$ac_ct_OTOOL64"; then
14779 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14782 for as_dir in $PATH
14785 test -z "$as_dir" && as_dir=.
14786 for ac_exec_ext in '' $ac_executable_extensions; do
14787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14788 ac_cv_prog_ac_ct_OTOOL64="otool64"
14789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14798 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14799 if test -n "$ac_ct_OTOOL64"; then
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14801 $as_echo "$ac_ct_OTOOL64" >&6; }
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14804 $as_echo "no" >&6; }
14807 if test "x$ac_ct_OTOOL64" = x; then
14810 case $cross_compiling:$ac_tool_warned in
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14814 ac_tool_warned=yes ;;
14816 OTOOL64=$ac_ct_OTOOL64
14819 OTOOL64="$ac_cv_prog_OTOOL64"
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14849 $as_echo_n "checking for -single_module linker flag... " >&6; }
14850 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14851 $as_echo_n "(cached) " >&6
14853 lt_cv_apple_cc_single_mod=no
14854 if test -z "${LT_MULTI_MODULE}"; then
14855 # By default we will add the -single_module flag. You can override
14856 # by either setting the environment variable LT_MULTI_MODULE
14857 # non-empty at configure time, or by adding -multi_module to the
14859 rm -rf libconftest.dylib*
14860 echo "int foo(void){return 1;}" > conftest.c
14861 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14862 -dynamiclib -Wl,-single_module conftest.c" >&5
14863 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14864 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14866 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14867 lt_cv_apple_cc_single_mod=yes
14869 cat conftest.err >&5
14871 rm -rf libconftest.dylib*
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14876 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14878 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14879 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14880 $as_echo_n "(cached) " >&6
14882 lt_cv_ld_exported_symbols_list=no
14883 save_LDFLAGS=$LDFLAGS
14884 echo "_main" > conftest.sym
14885 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14887 /* end confdefs.h. */
14897 if ac_fn_c_try_link "$LINENO"; then :
14898 lt_cv_ld_exported_symbols_list=yes
14900 lt_cv_ld_exported_symbols_list=no
14902 rm -f core conftest.err conftest.$ac_objext \
14903 conftest$ac_exeext conftest.$ac_ext
14904 LDFLAGS="$save_LDFLAGS"
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14908 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14910 $as_echo_n "checking for -force_load linker flag... " >&6; }
14911 if test "${lt_cv_ld_force_load+set}" = set; then :
14912 $as_echo_n "(cached) " >&6
14914 lt_cv_ld_force_load=no
14915 cat > conftest.c << _LT_EOF
14916 int forced_loaded() { return 2;}
14918 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14919 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14920 echo "$AR cru libconftest.a conftest.o" >&5
14921 $AR cru libconftest.a conftest.o 2>&5
14922 cat > conftest.c << _LT_EOF
14923 int main() { return 0;}
14925 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14926 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14928 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14929 lt_cv_ld_force_load=yes
14931 cat conftest.err >&5
14933 rm -f conftest.err libconftest.a conftest conftest.c
14934 rm -rf conftest.dSYM
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14938 $as_echo "$lt_cv_ld_force_load" >&6; }
14940 rhapsody* | darwin1.[012])
14941 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14943 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14944 darwin*) # darwin 5.x on
14945 # if running on 10.5 or later, the deployment target defaults
14946 # to the OS version, if on x86, and 10.4, the deployment
14947 # target defaults to 10.4. Don't you love it?
14948 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14949 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14950 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14952 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14954 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14958 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14959 _lt_dar_single_mod='$single_module'
14961 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14962 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14964 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14966 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14967 _lt_dsymutil='~$DSYMUTIL $lib || :'
14975 for ac_header in dlfcn.h
14977 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14978 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14979 cat >>confdefs.h <<_ACEOF
14980 #define HAVE_DLFCN_H 1
14997 enable_win32_dll=no
15000 # Check whether --enable-shared was given.
15001 if test "${enable_shared+set}" = set; then :
15002 enableval=$enable_shared; p=${PACKAGE-default}
15004 yes) enable_shared=yes ;;
15005 no) enable_shared=no ;;
15008 # Look at the argument we got. We use all the common list separators.
15009 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15010 for pkg in $enableval; do
15012 if test "X$pkg" = "X$p"; then
15031 # Check whether --enable-static was given.
15032 if test "${enable_static+set}" = set; then :
15033 enableval=$enable_static; p=${PACKAGE-default}
15035 yes) enable_static=yes ;;
15036 no) enable_static=no ;;
15039 # Look at the argument we got. We use all the common list separators.
15040 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15041 for pkg in $enableval; do
15043 if test "X$pkg" = "X$p"; then
15063 # Check whether --with-pic was given.
15064 if test "${with_pic+set}" = set; then :
15065 withval=$with_pic; pic_mode="$withval"
15071 test -z "$pic_mode" && pic_mode=default
15079 # Check whether --enable-fast-install was given.
15080 if test "${enable_fast_install+set}" = set; then :
15081 enableval=$enable_fast_install; p=${PACKAGE-default}
15083 yes) enable_fast_install=yes ;;
15084 no) enable_fast_install=no ;;
15086 enable_fast_install=no
15087 # Look at the argument we got. We use all the common list separators.
15088 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15089 for pkg in $enableval; do
15091 if test "X$pkg" = "X$p"; then
15092 enable_fast_install=yes
15099 enable_fast_install=yes
15112 # This can be used to rebuild libtool when needed
15113 LIBTOOL_DEPS="$ltmain"
15115 # Always use our own libtool.
15116 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15143 test -z "$LN_S" && LN_S="ln -s"
15158 if test -n "${ZSH_VERSION+set}" ; then
15159 setopt NO_GLOB_SUBST
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15163 $as_echo_n "checking for objdir... " >&6; }
15164 if test "${lt_cv_objdir+set}" = set; then :
15165 $as_echo_n "(cached) " >&6
15167 rm -f .libs 2>/dev/null
15168 mkdir .libs 2>/dev/null
15169 if test -d .libs; then
15172 # MS-DOS does not allow filenames that begin with a dot.
15175 rmdir .libs 2>/dev/null
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15178 $as_echo "$lt_cv_objdir" >&6; }
15179 objdir=$lt_cv_objdir
15185 cat >>confdefs.h <<_ACEOF
15186 #define LT_OBJDIR "$lt_cv_objdir/"
15194 # AIX sometimes has problems with the GCC collect2 program. For some
15195 # reason, if we set the COLLECT_NAMES environment variable, the problems
15196 # vanish in a puff of smoke.
15197 if test "X${COLLECT_NAMES+set}" != Xset; then
15199 export COLLECT_NAMES
15204 # Global variables:
15206 can_build_shared=yes
15208 # All known linkers require a `.a' archive for static linking (except MSVC,
15209 # which needs '.lib').
15212 with_gnu_ld="$lt_cv_prog_gnu_ld"
15215 old_CFLAGS="$CFLAGS"
15217 # Set sane defaults for various variables
15218 test -z "$CC" && CC=cc
15219 test -z "$LTCC" && LTCC=$CC
15220 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15221 test -z "$LD" && LD=ld
15222 test -z "$ac_objext" && ac_objext=o
15224 for cc_temp in $compiler""; do
15226 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15227 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15232 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15235 # Only perform the check for file, if the check method requires it
15236 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15237 case $deplibs_check_method in
15239 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15241 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15242 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15243 $as_echo_n "(cached) " >&6
15247 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15250 lt_save_MAGIC_CMD="$MAGIC_CMD"
15251 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15252 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15253 for ac_dir in $ac_dummy; do
15255 test -z "$ac_dir" && ac_dir=.
15256 if test -f $ac_dir/${ac_tool_prefix}file; then
15257 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15258 if test -n "$file_magic_test_file"; then
15259 case $deplibs_check_method in
15261 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15262 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15263 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15264 $EGREP "$file_magic_regex" > /dev/null; then
15269 *** Warning: the command libtool uses to detect shared libraries,
15270 *** $file_magic_cmd, produces output that libtool cannot recognize.
15271 *** The result is that libtool may fail to recognize shared libraries
15272 *** as such. This will affect the creation of libtool libraries that
15273 *** depend on shared libraries, but programs linked with such libtool
15274 *** libraries will work regardless of this problem. Nevertheless, you
15275 *** may want to report the problem to your system manager and/or to
15276 *** bug-libtool@gnu.org
15286 MAGIC_CMD="$lt_save_MAGIC_CMD"
15291 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15292 if test -n "$MAGIC_CMD"; then
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15294 $as_echo "$MAGIC_CMD" >&6; }
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15297 $as_echo "no" >&6; }
15304 if test -z "$lt_cv_path_MAGIC_CMD"; then
15305 if test -n "$ac_tool_prefix"; then
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15307 $as_echo_n "checking for file... " >&6; }
15308 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15309 $as_echo_n "(cached) " >&6
15313 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15316 lt_save_MAGIC_CMD="$MAGIC_CMD"
15317 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15318 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15319 for ac_dir in $ac_dummy; do
15321 test -z "$ac_dir" && ac_dir=.
15322 if test -f $ac_dir/file; then
15323 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15324 if test -n "$file_magic_test_file"; then
15325 case $deplibs_check_method in
15327 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15328 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15329 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15330 $EGREP "$file_magic_regex" > /dev/null; then
15335 *** Warning: the command libtool uses to detect shared libraries,
15336 *** $file_magic_cmd, produces output that libtool cannot recognize.
15337 *** The result is that libtool may fail to recognize shared libraries
15338 *** as such. This will affect the creation of libtool libraries that
15339 *** depend on shared libraries, but programs linked with such libtool
15340 *** libraries will work regardless of this problem. Nevertheless, you
15341 *** may want to report the problem to your system manager and/or to
15342 *** bug-libtool@gnu.org
15352 MAGIC_CMD="$lt_save_MAGIC_CMD"
15357 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15358 if test -n "$MAGIC_CMD"; then
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15360 $as_echo "$MAGIC_CMD" >&6; }
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15363 $as_echo "no" >&6; }
15376 # Use C for the default configuration in the libtool script
15380 ac_cpp='$CPP $CPPFLAGS'
15381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15386 # Source file extension for C test sources.
15389 # Object file extension for compiled C test sources.
15393 # Code to be used in simple compile tests
15394 lt_simple_compile_test_code="int some_variable = 0;"
15396 # Code to be used in simple link tests
15397 lt_simple_link_test_code='int main(){return(0);}'
15405 # If no C compiler was specified, use CC.
15408 # If no C compiler flags were specified, use CFLAGS.
15409 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15411 # Allow CC to be a program name with arguments.
15414 # Save the default compiler, since it gets overwritten when the other
15415 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15416 compiler_DEFAULT=$CC
15418 # save warnings/boilerplate of simple test code
15419 ac_outfile=conftest.$ac_objext
15420 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15421 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15422 _lt_compiler_boilerplate=`cat conftest.err`
15425 ac_outfile=conftest.$ac_objext
15426 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15427 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15428 _lt_linker_boilerplate=`cat conftest.err`
15433 ## There is no encapsulation within the following macros, do not change
15434 ## the running order or otherwise move them around unless you know exactly
15435 ## what you are doing...
15436 if test -n "$compiler"; then
15438 lt_prog_compiler_no_builtin_flag=
15440 if test "$GCC" = yes; then
15441 case $cc_basename in
15443 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15445 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15449 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15450 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15451 $as_echo_n "(cached) " >&6
15453 lt_cv_prog_compiler_rtti_exceptions=no
15454 ac_outfile=conftest.$ac_objext
15455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15456 lt_compiler_flag="-fno-rtti -fno-exceptions"
15457 # Insert the option either (1) after the last *FLAGS variable, or
15458 # (2) before a word containing "conftest.", or (3) at the end.
15459 # Note that $ac_compile itself does not contain backslashes and begins
15460 # with a dollar sign (not a hyphen), so the echo should work correctly.
15461 # The option is referenced via a variable to avoid confusing sed.
15462 lt_compile=`echo "$ac_compile" | $SED \
15463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15465 -e 's:$: $lt_compiler_flag:'`
15466 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15467 (eval "$lt_compile" 2>conftest.err)
15469 cat conftest.err >&5
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 if (exit $ac_status) && test -s "$ac_outfile"; then
15472 # The compiler can only warn and ignore the option if not recognized
15473 # So say no if there are warnings other than the usual output.
15474 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15476 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15477 lt_cv_prog_compiler_rtti_exceptions=yes
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15484 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15486 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15487 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15499 lt_prog_compiler_wl=
15500 lt_prog_compiler_pic=
15501 lt_prog_compiler_static=
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15504 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15506 if test "$GCC" = yes; then
15507 lt_prog_compiler_wl='-Wl,'
15508 lt_prog_compiler_static='-static'
15512 # All AIX code is PIC.
15513 if test "$host_cpu" = ia64; then
15514 # AIX 5 now supports IA64 processor
15515 lt_prog_compiler_static='-Bstatic'
15517 lt_prog_compiler_pic='-fPIC'
15523 # see comment about AmigaOS4 .so support
15524 lt_prog_compiler_pic='-fPIC'
15527 # FIXME: we need at least 68020 code to build shared libraries, but
15528 # adding the `-m68020' flag to GCC prevents building anything better,
15530 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15535 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15536 # PIC is the default for these OSes.
15539 mingw* | cygwin* | pw32* | os2* | cegcc*)
15540 # This hack is so that the source file can tell whether it is being
15541 # built for inclusion in a dll (and should export symbols for example).
15542 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15543 # (--disable-auto-import) libraries
15544 lt_prog_compiler_pic='-DDLL_EXPORT'
15547 darwin* | rhapsody*)
15548 # PIC is the default on this platform
15549 # Common symbols not allowed in MH_DYLIB files
15550 lt_prog_compiler_pic='-fno-common'
15554 # PIC is the default for Haiku.
15555 # The "-static" flag exists, but is broken.
15556 lt_prog_compiler_static=
15560 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15561 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15562 # sets the default TLS model and affects inlining.
15568 lt_prog_compiler_pic='-fPIC'
15574 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15575 # Instead, we relocate shared libraries at runtime.
15579 # Just because we use GCC doesn't mean we suddenly get shared libraries
15580 # on systems that don't support them.
15581 lt_prog_compiler_can_build_shared=no
15586 # QNX uses GNU C++, but need to define -shared option too, otherwise
15587 # it will coredump.
15588 lt_prog_compiler_pic='-fPIC -shared'
15592 if test -d /usr/nec; then
15593 lt_prog_compiler_pic=-Kconform_pic
15598 lt_prog_compiler_pic='-fPIC'
15602 case $cc_basename in
15603 nvcc*) # Cuda Compiler Driver 2.2
15604 lt_prog_compiler_wl='-Xlinker '
15605 lt_prog_compiler_pic='-Xcompiler -fPIC'
15609 # PORTME Check for flag to pass linker flags through the system compiler.
15612 lt_prog_compiler_wl='-Wl,'
15613 if test "$host_cpu" = ia64; then
15614 # AIX 5 now supports IA64 processor
15615 lt_prog_compiler_static='-Bstatic'
15617 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15621 mingw* | cygwin* | pw32* | os2* | cegcc*)
15622 # This hack is so that the source file can tell whether it is being
15623 # built for inclusion in a dll (and should export symbols for example).
15624 lt_prog_compiler_pic='-DDLL_EXPORT'
15627 hpux9* | hpux10* | hpux11*)
15628 lt_prog_compiler_wl='-Wl,'
15629 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15630 # not for PA HP-UX.
15636 lt_prog_compiler_pic='+Z'
15639 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15640 lt_prog_compiler_static='${wl}-a ${wl}archive'
15643 irix5* | irix6* | nonstopux*)
15644 lt_prog_compiler_wl='-Wl,'
15645 # PIC (with -KPIC) is the default.
15646 lt_prog_compiler_static='-non_shared'
15649 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15650 case $cc_basename in
15651 # old Intel for x86_64 which still supported -KPIC.
15653 lt_prog_compiler_wl='-Wl,'
15654 lt_prog_compiler_pic='-KPIC'
15655 lt_prog_compiler_static='-static'
15657 # icc used to be incompatible with GCC.
15658 # ICC 10 doesn't accept -KPIC any more.
15660 lt_prog_compiler_wl='-Wl,'
15661 lt_prog_compiler_pic='-fPIC'
15662 lt_prog_compiler_static='-static'
15664 # Lahey Fortran 8.1.
15666 lt_prog_compiler_wl='-Wl,'
15667 lt_prog_compiler_pic='--shared'
15668 lt_prog_compiler_static='--static'
15670 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15671 # Portland Group compilers (*not* the Pentium gcc compiler,
15672 # which looks to be a dead project)
15673 lt_prog_compiler_wl='-Wl,'
15674 lt_prog_compiler_pic='-fpic'
15675 lt_prog_compiler_static='-Bstatic'
15678 lt_prog_compiler_wl='-Wl,'
15679 # All Alpha code is PIC.
15680 lt_prog_compiler_static='-non_shared'
15682 xl* | bgxl* | bgf* | mpixl*)
15683 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15684 lt_prog_compiler_wl='-Wl,'
15685 lt_prog_compiler_pic='-qpic'
15686 lt_prog_compiler_static='-qstaticlink'
15689 case `$CC -V 2>&1 | sed 5q` in
15690 *Sun\ F* | *Sun*Fortran*)
15691 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15692 lt_prog_compiler_pic='-KPIC'
15693 lt_prog_compiler_static='-Bstatic'
15694 lt_prog_compiler_wl=''
15698 lt_prog_compiler_pic='-KPIC'
15699 lt_prog_compiler_static='-Bstatic'
15700 lt_prog_compiler_wl='-Wl,'
15708 lt_prog_compiler_pic='-KPIC'
15709 lt_prog_compiler_static='-Bstatic'
15713 # QNX uses GNU C++, but need to define -shared option too, otherwise
15714 # it will coredump.
15715 lt_prog_compiler_pic='-fPIC -shared'
15718 osf3* | osf4* | osf5*)
15719 lt_prog_compiler_wl='-Wl,'
15720 # All OSF/1 code is PIC.
15721 lt_prog_compiler_static='-non_shared'
15725 lt_prog_compiler_static='-non_shared'
15729 lt_prog_compiler_pic='-KPIC'
15730 lt_prog_compiler_static='-Bstatic'
15731 case $cc_basename in
15732 f77* | f90* | f95*)
15733 lt_prog_compiler_wl='-Qoption ld ';;
15735 lt_prog_compiler_wl='-Wl,';;
15740 lt_prog_compiler_wl='-Qoption ld '
15741 lt_prog_compiler_pic='-PIC'
15742 lt_prog_compiler_static='-Bstatic'
15745 sysv4 | sysv4.2uw2* | sysv4.3*)
15746 lt_prog_compiler_wl='-Wl,'
15747 lt_prog_compiler_pic='-KPIC'
15748 lt_prog_compiler_static='-Bstatic'
15752 if test -d /usr/nec ;then
15753 lt_prog_compiler_pic='-Kconform_pic'
15754 lt_prog_compiler_static='-Bstatic'
15758 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15759 lt_prog_compiler_wl='-Wl,'
15760 lt_prog_compiler_pic='-KPIC'
15761 lt_prog_compiler_static='-Bstatic'
15765 lt_prog_compiler_wl='-Wl,'
15766 lt_prog_compiler_can_build_shared=no
15770 lt_prog_compiler_pic='-pic'
15771 lt_prog_compiler_static='-Bstatic'
15775 lt_prog_compiler_can_build_shared=no
15781 # For platforms which do not support PIC, -DPIC is meaningless:
15783 lt_prog_compiler_pic=
15786 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15790 $as_echo "$lt_prog_compiler_pic" >&6; }
15798 # Check to make sure the PIC flag actually works.
15800 if test -n "$lt_prog_compiler_pic"; then
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15802 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15803 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15804 $as_echo_n "(cached) " >&6
15806 lt_cv_prog_compiler_pic_works=no
15807 ac_outfile=conftest.$ac_objext
15808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15809 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15810 # Insert the option either (1) after the last *FLAGS variable, or
15811 # (2) before a word containing "conftest.", or (3) at the end.
15812 # Note that $ac_compile itself does not contain backslashes and begins
15813 # with a dollar sign (not a hyphen), so the echo should work correctly.
15814 # The option is referenced via a variable to avoid confusing sed.
15815 lt_compile=`echo "$ac_compile" | $SED \
15816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15818 -e 's:$: $lt_compiler_flag:'`
15819 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15820 (eval "$lt_compile" 2>conftest.err)
15822 cat conftest.err >&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 if (exit $ac_status) && test -s "$ac_outfile"; then
15825 # The compiler can only warn and ignore the option if not recognized
15826 # So say no if there are warnings other than the usual output.
15827 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15829 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15830 lt_cv_prog_compiler_pic_works=yes
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15837 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15839 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15840 case $lt_prog_compiler_pic in
15842 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15845 lt_prog_compiler_pic=
15846 lt_prog_compiler_can_build_shared=no
15857 # Check to make sure the static flag actually works.
15859 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15861 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15862 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15863 $as_echo_n "(cached) " >&6
15865 lt_cv_prog_compiler_static_works=no
15866 save_LDFLAGS="$LDFLAGS"
15867 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15868 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15869 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15870 # The linker can only warn and ignore the option if not recognized
15871 # So say no if there are warnings
15872 if test -s conftest.err; then
15873 # Append any errors to the config.log.
15874 cat conftest.err 1>&5
15875 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15877 if diff conftest.exp conftest.er2 >/dev/null; then
15878 lt_cv_prog_compiler_static_works=yes
15881 lt_cv_prog_compiler_static_works=yes
15885 LDFLAGS="$save_LDFLAGS"
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15889 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15891 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15894 lt_prog_compiler_static=
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15904 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15905 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15906 $as_echo_n "(cached) " >&6
15908 lt_cv_prog_compiler_c_o=no
15909 $RM -r conftest 2>/dev/null
15913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15915 lt_compiler_flag="-o out/conftest2.$ac_objext"
15916 # Insert the option either (1) after the last *FLAGS variable, or
15917 # (2) before a word containing "conftest.", or (3) at the end.
15918 # Note that $ac_compile itself does not contain backslashes and begins
15919 # with a dollar sign (not a hyphen), so the echo should work correctly.
15920 lt_compile=`echo "$ac_compile" | $SED \
15921 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15922 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15923 -e 's:$: $lt_compiler_flag:'`
15924 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15925 (eval "$lt_compile" 2>out/conftest.err)
15927 cat out/conftest.err >&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15931 # The compiler can only warn and ignore the option if not recognized
15932 # So say no if there are warnings
15933 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15934 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15935 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15936 lt_cv_prog_compiler_c_o=yes
15941 # SGI C++ compiler will create directory out/ii_files/ for
15942 # template instantiation
15943 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15944 $RM out/* && rmdir out
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15951 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15959 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15960 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15961 $as_echo_n "(cached) " >&6
15963 lt_cv_prog_compiler_c_o=no
15964 $RM -r conftest 2>/dev/null
15968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15970 lt_compiler_flag="-o out/conftest2.$ac_objext"
15971 # Insert the option either (1) after the last *FLAGS variable, or
15972 # (2) before a word containing "conftest.", or (3) at the end.
15973 # Note that $ac_compile itself does not contain backslashes and begins
15974 # with a dollar sign (not a hyphen), so the echo should work correctly.
15975 lt_compile=`echo "$ac_compile" | $SED \
15976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15978 -e 's:$: $lt_compiler_flag:'`
15979 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15980 (eval "$lt_compile" 2>out/conftest.err)
15982 cat out/conftest.err >&5
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15986 # The compiler can only warn and ignore the option if not recognized
15987 # So say no if there are warnings
15988 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15989 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15990 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15991 lt_cv_prog_compiler_c_o=yes
15996 # SGI C++ compiler will create directory out/ii_files/ for
15997 # template instantiation
15998 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15999 $RM out/* && rmdir out
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16006 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16011 hard_links="nottested"
16012 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16013 # do not overwrite the value of need_locks provided by the user
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16015 $as_echo_n "checking if we can lock with hard links... " >&6; }
16018 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16020 ln conftest.a conftest.b 2>&5 || hard_links=no
16021 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16023 $as_echo "$hard_links" >&6; }
16024 if test "$hard_links" = no; then
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16026 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16039 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16042 allow_undefined_flag=
16043 always_export_symbols=no
16045 archive_expsym_cmds=
16046 compiler_needs_object=no
16047 enable_shared_with_static_runtimes=no
16048 export_dynamic_flag_spec=
16049 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16050 hardcode_automatic=no
16052 hardcode_direct_absolute=no
16053 hardcode_libdir_flag_spec=
16054 hardcode_libdir_flag_spec_ld=
16055 hardcode_libdir_separator=
16056 hardcode_minus_L=no
16057 hardcode_shlibpath_var=unsupported
16059 link_all_deplibs=unknown
16061 module_expsym_cmds=
16062 old_archive_from_new_cmds=
16063 old_archive_from_expsyms_cmds=
16064 thread_safe_flag_spec=
16065 whole_archive_flag_spec=
16066 # include_expsyms should be a list of space-separated symbols to be *always*
16067 # included in the symbol list
16069 # exclude_expsyms can be an extended regexp of symbols to exclude
16070 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16071 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16072 # as well as any symbol that contains `d'.
16073 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16074 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16075 # platforms (ab)use it in PIC code, but their linkers get confused if
16076 # the symbol is explicitly referenced. Since portable code cannot
16077 # rely on this symbol name, it's probably fine to never include it in
16078 # preloaded symbol tables.
16079 # Exclude shared library initialization/finalization symbols.
16080 extract_expsyms_cmds=
16083 cygwin* | mingw* | pw32* | cegcc*)
16084 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16085 # When not using gcc, we currently assume that we are using
16086 # Microsoft Visual C++.
16087 if test "$GCC" != yes; then
16092 # we just hope/assume this is gcc and not c89 (= MSVC++)
16102 # On some targets, GNU ld is compatible enough with the native linker
16103 # that we're better off using the native interface for both.
16104 lt_use_gnu_ld_interface=no
16105 if test "$with_gnu_ld" = yes; then
16108 # The AIX port of GNU ld has always aspired to compatibility
16109 # with the native linker. However, as the warning in the GNU ld
16110 # block says, versions before 2.19.5* couldn't really create working
16111 # shared libraries, regardless of the interface used.
16112 case `$LD -v 2>&1` in
16113 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16114 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16115 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16117 lt_use_gnu_ld_interface=yes
16122 lt_use_gnu_ld_interface=yes
16127 if test "$lt_use_gnu_ld_interface" = yes; then
16128 # If archive_cmds runs LD, not CC, wlarc should be empty
16131 # Set some defaults for GNU ld with shared library support. These
16132 # are reset later if shared libraries are not supported. Putting them
16133 # here allows them to be overridden if necessary.
16134 runpath_var=LD_RUN_PATH
16135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16136 export_dynamic_flag_spec='${wl}--export-dynamic'
16137 # ancient GNU ld didn't support --whole-archive et. al.
16138 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16139 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16141 whole_archive_flag_spec=
16143 supports_anon_versioning=no
16144 case `$LD -v 2>&1` in
16145 *GNU\ gold*) supports_anon_versioning=yes ;;
16146 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16147 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16148 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16149 *\ 2.11.*) ;; # other 2.11 versions
16150 *) supports_anon_versioning=yes ;;
16153 # See if GNU ld supports shared libraries.
16156 # On AIX/PPC, the GNU linker is very broken
16157 if test "$host_cpu" != ia64; then
16161 *** Warning: the GNU linker, at least up to release 2.19, is reported
16162 *** to be unable to reliably create shared libraries on AIX.
16163 *** Therefore, libtool is disabling shared libraries support. If you
16164 *** really care for shared libraries, you may want to install binutils
16165 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16166 *** You will then need to restart the configuration process.
16175 # see comment about AmigaOS4 .so support
16176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16177 archive_expsym_cmds=''
16180 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)'
16181 hardcode_libdir_flag_spec='-L$libdir'
16182 hardcode_minus_L=yes
16188 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16189 allow_undefined_flag=unsupported
16190 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16191 # support --undefined. This deserves some investigation. FIXME
16192 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16198 cygwin* | mingw* | pw32* | cegcc*)
16199 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16200 # as there is no search path for DLLs.
16201 hardcode_libdir_flag_spec='-L$libdir'
16202 export_dynamic_flag_spec='${wl}--export-all-symbols'
16203 allow_undefined_flag=unsupported
16204 always_export_symbols=no
16205 enable_shared_with_static_runtimes=yes
16206 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16208 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16209 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16210 # If the export-symbols file already is a .def file (1st line
16211 # is EXPORTS), use it as is; otherwise, prepend...
16212 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16213 cp $export_symbols $output_objdir/$soname.def;
16215 echo EXPORTS > $output_objdir/$soname.def;
16216 cat $export_symbols >> $output_objdir/$soname.def;
16218 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16226 link_all_deplibs=yes
16231 hardcode_shlibpath_var=no
16232 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16233 export_dynamic_flag_spec='${wl}-E'
16234 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16235 # Instead, shared libraries are loaded at an image base (0x10000000 by
16236 # default) and relocated if they conflict, which is a slow very memory
16237 # consuming and fragmenting process. To avoid this, we pick a random,
16238 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16239 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16240 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16241 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'
16244 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16246 if test "$host_os" = linux-dietlibc; then
16247 case $cc_basename in
16248 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16251 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16252 && test "$tmp_diet" = no
16254 tmp_addflag=' $pic_flag'
16255 tmp_sharedflag='-shared'
16256 case $cc_basename,$host_cpu in
16257 pgcc*) # Portland Group C compiler
16258 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'
16259 tmp_addflag=' $pic_flag'
16261 pgf77* | pgf90* | pgf95* | pgfortran*)
16262 # Portland Group f77 and f90 compilers
16263 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'
16264 tmp_addflag=' $pic_flag -Mnomain' ;;
16265 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16266 tmp_addflag=' -i_dynamic' ;;
16267 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16268 tmp_addflag=' -i_dynamic -nofor_main' ;;
16269 ifc* | ifort*) # Intel Fortran compiler
16270 tmp_addflag=' -nofor_main' ;;
16271 lf95*) # Lahey Fortran 8.1
16272 whole_archive_flag_spec=
16273 tmp_sharedflag='--shared' ;;
16274 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16275 tmp_sharedflag='-qmkshrobj'
16277 nvcc*) # Cuda Compiler Driver 2.2
16278 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'
16279 compiler_needs_object=yes
16282 case `$CC -V 2>&1 | sed 5q` in
16283 *Sun\ C*) # Sun C 5.9
16284 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'
16285 compiler_needs_object=yes
16286 tmp_sharedflag='-G' ;;
16287 *Sun\ F*) # Sun Fortran 8.3
16288 tmp_sharedflag='-G' ;;
16290 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16292 if test "x$supports_anon_versioning" = xyes; then
16293 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16294 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16295 echo "local: *; };" >> $output_objdir/$libname.ver~
16296 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16299 case $cc_basename in
16300 xlf* | bgf* | bgxlf* | mpixlf*)
16301 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16302 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16303 hardcode_libdir_flag_spec=
16304 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16305 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16306 if test "x$supports_anon_versioning" = xyes; then
16307 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16308 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16309 echo "local: *; };" >> $output_objdir/$libname.ver~
16310 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16320 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16321 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16325 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16330 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16334 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16335 *** create shared libraries on Solaris systems. Therefore, libtool
16336 *** is disabling shared libraries support. We urge you to upgrade GNU
16337 *** binutils to release 2.9.1 or newer. Another option is to modify
16338 *** your PATH or compiler configuration so that the native linker is
16339 *** used, and then restart.
16342 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16343 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16344 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16350 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16351 case `$LD -v 2>&1` in
16352 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16356 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16357 *** reliably create shared libraries on SCO systems. Therefore, libtool
16358 *** is disabling shared libraries support. We urge you to upgrade GNU
16359 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16360 *** your PATH or compiler configuration so that the native linker is
16361 *** used, and then restart.
16366 # For security reasons, it is highly recommended that you always
16367 # use absolute paths for naming shared libraries, and exclude the
16368 # DT_RUNPATH tag from executables and libraries. But doing so
16369 # requires that you compile everything twice, which is a pain.
16370 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16371 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16373 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16382 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16384 hardcode_direct=yes
16385 hardcode_shlibpath_var=no
16389 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16391 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16398 if test "$ld_shlibs" = no; then
16400 hardcode_libdir_flag_spec=
16401 export_dynamic_flag_spec=
16402 whole_archive_flag_spec=
16405 # PORTME fill in a description of your system's linker (not GNU ld)
16408 allow_undefined_flag=unsupported
16409 always_export_symbols=yes
16410 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'
16411 # Note: this linker hardcodes the directories in LIBPATH if there
16412 # are no directories specified by -L.
16413 hardcode_minus_L=yes
16414 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16415 # Neither direct hardcoding nor static linking is supported with a
16417 hardcode_direct=unsupported
16422 if test "$host_cpu" = ia64; then
16423 # On IA64, the linker does run time linking by default, so we don't
16424 # have to do anything special.
16425 aix_use_runtimelinking=no
16426 exp_sym_flag='-Bexport'
16429 # If we're using GNU nm, then we don't want the "-C" option.
16430 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16431 # Also, AIX nm treats weak defined symbols like other global
16432 # defined symbols, whereas GNU nm marks them as "W".
16433 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16434 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'
16436 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'
16438 aix_use_runtimelinking=no
16440 # Test if we are trying to use run time linking or normal
16441 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16442 # need to do runtime linking.
16443 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16444 for ld_flag in $LDFLAGS; do
16445 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16446 aix_use_runtimelinking=yes
16453 exp_sym_flag='-bexport'
16454 no_entry_flag='-bnoentry'
16457 # When large executables or shared objects are built, AIX ld can
16458 # have problems creating the table of contents. If linking a library
16459 # or program results in "error TOC overflow" add -mminimal-toc to
16460 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16461 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16464 hardcode_direct=yes
16465 hardcode_direct_absolute=yes
16466 hardcode_libdir_separator=':'
16467 link_all_deplibs=yes
16468 file_list_spec='${wl}-f,'
16470 if test "$GCC" = yes; then
16471 case $host_os in aix4.[012]|aix4.[012].*)
16472 # We only want to do this on AIX 4.2 and lower, the check
16473 # below for broken collect2 doesn't work under 4.3+
16474 collect2name=`${CC} -print-prog-name=collect2`
16475 if test -f "$collect2name" &&
16476 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16478 # We have reworked collect2
16481 # We have old collect2
16482 hardcode_direct=unsupported
16483 # It fails to find uninstalled libraries when the uninstalled
16484 # path is not listed in the libpath. Setting hardcode_minus_L
16485 # to unsupported forces relinking
16486 hardcode_minus_L=yes
16487 hardcode_libdir_flag_spec='-L$libdir'
16488 hardcode_libdir_separator=
16492 shared_flag='-shared'
16493 if test "$aix_use_runtimelinking" = yes; then
16494 shared_flag="$shared_flag "'${wl}-G'
16498 if test "$host_cpu" = ia64; then
16499 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16500 # chokes on -Wl,-G. The following line is correct:
16503 if test "$aix_use_runtimelinking" = yes; then
16504 shared_flag='${wl}-G'
16506 shared_flag='${wl}-bM:SRE'
16511 export_dynamic_flag_spec='${wl}-bexpall'
16512 # It seems that -bexpall does not export symbols beginning with
16513 # underscore (_), so it is better to generate a list of symbols to export.
16514 always_export_symbols=yes
16515 if test "$aix_use_runtimelinking" = yes; then
16516 # Warning - without using the other runtime loading flags (-brtl),
16517 # -berok will link without error, but may produce a broken library.
16518 allow_undefined_flag='-berok'
16519 # Determine the default libpath from the value encoded in an
16520 # empty executable.
16521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16522 /* end confdefs.h. */
16532 if ac_fn_c_try_link "$LINENO"; then :
16534 lt_aix_libpath_sed='
16535 /Import File Strings/,/^$/ {
16541 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16542 # Check for a 64-bit object if we didn't find anything.
16543 if test -z "$aix_libpath"; then
16544 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16547 rm -f core conftest.err conftest.$ac_objext \
16548 conftest$ac_exeext conftest.$ac_ext
16549 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16551 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16552 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"
16554 if test "$host_cpu" = ia64; then
16555 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16556 allow_undefined_flag="-z nodefs"
16557 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"
16559 # Determine the default libpath from the value encoded in an
16560 # empty executable.
16561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16562 /* end confdefs.h. */
16572 if ac_fn_c_try_link "$LINENO"; then :
16574 lt_aix_libpath_sed='
16575 /Import File Strings/,/^$/ {
16581 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16582 # Check for a 64-bit object if we didn't find anything.
16583 if test -z "$aix_libpath"; then
16584 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16587 rm -f core conftest.err conftest.$ac_objext \
16588 conftest$ac_exeext conftest.$ac_ext
16589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16591 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16592 # Warning - without using the other run time loading flags,
16593 # -berok will link without error, but may produce a broken library.
16594 no_undefined_flag=' ${wl}-bernotok'
16595 allow_undefined_flag=' ${wl}-berok'
16596 if test "$with_gnu_ld" = yes; then
16597 # We only use this code for GNU lds that support --whole-archive.
16598 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16600 # Exported symbols can be pulled into shared objects from archives
16601 whole_archive_flag_spec='$convenience'
16603 archive_cmds_need_lc=yes
16604 # This is similar to how AIX traditionally builds its shared libraries.
16605 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'
16613 # see comment about AmigaOS4 .so support
16614 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16615 archive_expsym_cmds=''
16618 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)'
16619 hardcode_libdir_flag_spec='-L$libdir'
16620 hardcode_minus_L=yes
16626 export_dynamic_flag_spec=-rdynamic
16629 cygwin* | mingw* | pw32* | cegcc*)
16630 # When not using gcc, we currently assume that we are using
16631 # Microsoft Visual C++.
16632 # hardcode_libdir_flag_spec is actually meaningless, as there is
16633 # no search path for DLLs.
16634 hardcode_libdir_flag_spec=' '
16635 allow_undefined_flag=unsupported
16636 # Tell ltmain to make .lib files, not .a files.
16638 # Tell ltmain to make .dll files, not .so files.
16640 # FIXME: Setting linknames here is a bad hack.
16641 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16642 # The linker will automatically build a .lib file if we build a DLL.
16643 old_archive_from_new_cmds='true'
16644 # FIXME: Should let the user specify the lib program.
16645 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16646 fix_srcfile_path='`cygpath -w "$srcfile"`'
16647 enable_shared_with_static_runtimes=yes
16650 darwin* | rhapsody*)
16653 archive_cmds_need_lc=no
16655 hardcode_automatic=yes
16656 hardcode_shlibpath_var=unsupported
16657 if test "$lt_cv_ld_force_load" = "yes"; then
16658 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\"`'
16660 whole_archive_flag_spec=''
16662 link_all_deplibs=yes
16663 allow_undefined_flag="$_lt_dar_allow_undefined"
16664 case $cc_basename in
16665 ifort*) _lt_dar_can_shared=yes ;;
16666 *) _lt_dar_can_shared=$GCC ;;
16668 if test "$_lt_dar_can_shared" = "yes"; then
16669 output_verbose_link_cmd=func_echo_all
16670 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16671 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16672 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}"
16673 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}"
16682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16683 hardcode_libdir_flag_spec='-L$libdir'
16684 hardcode_shlibpath_var=no
16687 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16688 # support. Future versions do this automatically, but an explicit c++rt0.o
16689 # does not break anything, and helps significantly (at the cost of a little
16692 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16693 hardcode_libdir_flag_spec='-R$libdir'
16694 hardcode_direct=yes
16695 hardcode_shlibpath_var=no
16698 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16700 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16701 hardcode_direct=yes
16702 hardcode_minus_L=yes
16703 hardcode_shlibpath_var=no
16706 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16707 freebsd* | dragonfly*)
16708 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16709 hardcode_libdir_flag_spec='-R$libdir'
16710 hardcode_direct=yes
16711 hardcode_shlibpath_var=no
16715 if test "$GCC" = yes; then
16716 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'
16718 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'
16720 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16721 hardcode_libdir_separator=:
16722 hardcode_direct=yes
16724 # hardcode_minus_L: Not really in the search PATH,
16725 # but as the default location of the library.
16726 hardcode_minus_L=yes
16727 export_dynamic_flag_spec='${wl}-E'
16731 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16732 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16734 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16736 if test "$with_gnu_ld" = no; then
16737 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16738 hardcode_libdir_flag_spec_ld='+b $libdir'
16739 hardcode_libdir_separator=:
16740 hardcode_direct=yes
16741 hardcode_direct_absolute=yes
16742 export_dynamic_flag_spec='${wl}-E'
16743 # hardcode_minus_L: Not really in the search PATH,
16744 # but as the default location of the library.
16745 hardcode_minus_L=yes
16750 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16753 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16756 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16759 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16765 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16768 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16772 # Older versions of the 11.00 compiler do not understand -b yet
16773 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16775 $as_echo_n "checking if $CC understands -b... " >&6; }
16776 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16777 $as_echo_n "(cached) " >&6
16779 lt_cv_prog_compiler__b=no
16780 save_LDFLAGS="$LDFLAGS"
16781 LDFLAGS="$LDFLAGS -b"
16782 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16783 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16784 # The linker can only warn and ignore the option if not recognized
16785 # So say no if there are warnings
16786 if test -s conftest.err; then
16787 # Append any errors to the config.log.
16788 cat conftest.err 1>&5
16789 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16791 if diff conftest.exp conftest.er2 >/dev/null; then
16792 lt_cv_prog_compiler__b=yes
16795 lt_cv_prog_compiler__b=yes
16799 LDFLAGS="$save_LDFLAGS"
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16803 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16805 if test x"$lt_cv_prog_compiler__b" = xyes; then
16806 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16808 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16814 if test "$with_gnu_ld" = no; then
16815 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16816 hardcode_libdir_separator=:
16821 hardcode_shlibpath_var=no
16824 hardcode_direct=yes
16825 hardcode_direct_absolute=yes
16826 export_dynamic_flag_spec='${wl}-E'
16828 # hardcode_minus_L: Not really in the search PATH,
16829 # but as the default location of the library.
16830 hardcode_minus_L=yes
16836 irix5* | irix6* | nonstopux*)
16837 if test "$GCC" = yes; then
16838 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'
16839 # Try to use the -exported_symbol ld option, if it does not
16840 # work, assume that -exports_file does not work either and
16841 # implicitly export all symbols.
16842 save_LDFLAGS="$LDFLAGS"
16843 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16845 /* end confdefs.h. */
16848 if ac_fn_c_try_link "$LINENO"; then :
16849 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'
16852 rm -f core conftest.err conftest.$ac_objext \
16853 conftest$ac_exeext conftest.$ac_ext
16854 LDFLAGS="$save_LDFLAGS"
16856 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'
16857 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'
16859 archive_cmds_need_lc='no'
16860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16861 hardcode_libdir_separator=:
16863 link_all_deplibs=yes
16867 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16868 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16870 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16872 hardcode_libdir_flag_spec='-R$libdir'
16873 hardcode_direct=yes
16874 hardcode_shlibpath_var=no
16878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16879 hardcode_direct=yes
16880 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16881 hardcode_libdir_separator=:
16882 hardcode_shlibpath_var=no
16889 if test -f /usr/libexec/ld.so; then
16890 hardcode_direct=yes
16891 hardcode_shlibpath_var=no
16892 hardcode_direct_absolute=yes
16893 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16894 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16895 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16896 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16897 export_dynamic_flag_spec='${wl}-E'
16900 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16902 hardcode_libdir_flag_spec='-R$libdir'
16905 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16906 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16916 hardcode_libdir_flag_spec='-L$libdir'
16917 hardcode_minus_L=yes
16918 allow_undefined_flag=unsupported
16919 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'
16920 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16924 if test "$GCC" = yes; then
16925 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16926 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'
16928 allow_undefined_flag=' -expect_unresolved \*'
16929 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'
16931 archive_cmds_need_lc='no'
16932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16933 hardcode_libdir_separator=:
16936 osf4* | osf5*) # as osf3* with the addition of -msym flag
16937 if test "$GCC" = yes; then
16938 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16939 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'
16940 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16942 allow_undefined_flag=' -expect_unresolved \*'
16943 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'
16944 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~
16945 $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'
16947 # Both c and cxx compiler support -rpath directly
16948 hardcode_libdir_flag_spec='-rpath $libdir'
16950 archive_cmds_need_lc='no'
16951 hardcode_libdir_separator=:
16955 no_undefined_flag=' -z defs'
16956 if test "$GCC" = yes; then
16958 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16959 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16960 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16962 case `$CC -V 2>&1` in
16965 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16966 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16967 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16971 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16972 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16973 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16977 hardcode_libdir_flag_spec='-R$libdir'
16978 hardcode_shlibpath_var=no
16980 solaris2.[0-5] | solaris2.[0-5].*) ;;
16982 # The compiler driver will combine and reorder linker options,
16983 # but understands `-z linker_flag'. GCC discards it without `$wl',
16984 # but is careful enough not to reorder.
16985 # Supported since Solaris 2.6 (maybe 2.5.1?)
16986 if test "$GCC" = yes; then
16987 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16989 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16993 link_all_deplibs=yes
16997 if test "x$host_vendor" = xsequent; then
16998 # Use $CC to link under sequent, because it throws in some extra .o
16999 # files that make .init and .fini sections work.
17000 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17002 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17004 hardcode_libdir_flag_spec='-L$libdir'
17005 hardcode_direct=yes
17006 hardcode_minus_L=yes
17007 hardcode_shlibpath_var=no
17011 case $host_vendor in
17013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17014 hardcode_direct=yes # is this really true???
17017 ## LD is ld it makes a PLAMLIB
17018 ## CC just makes a GrossModule.
17019 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17020 reload_cmds='$CC -r -o $output$reload_objs'
17024 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17025 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17028 runpath_var='LD_RUN_PATH'
17029 hardcode_shlibpath_var=no
17033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17034 hardcode_shlibpath_var=no
17035 export_dynamic_flag_spec='-Bexport'
17039 if test -d /usr/nec; then
17040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17041 hardcode_shlibpath_var=no
17042 runpath_var=LD_RUN_PATH
17043 hardcode_runpath_var=yes
17048 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17049 no_undefined_flag='${wl}-z,text'
17050 archive_cmds_need_lc=no
17051 hardcode_shlibpath_var=no
17052 runpath_var='LD_RUN_PATH'
17054 if test "$GCC" = yes; then
17055 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17056 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17058 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17059 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17063 sysv5* | sco3.2v5* | sco5v6*)
17064 # Note: We can NOT use -z defs as we might desire, because we do not
17065 # link with -lc, and that would cause any symbols used from libc to
17066 # always be unresolved, which means just about no library would
17067 # ever link correctly. If we're not using GNU ld we use -z text
17068 # though, which does catch some bad symbols but isn't as heavy-handed
17070 no_undefined_flag='${wl}-z,text'
17071 allow_undefined_flag='${wl}-z,nodefs'
17072 archive_cmds_need_lc=no
17073 hardcode_shlibpath_var=no
17074 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17075 hardcode_libdir_separator=':'
17076 link_all_deplibs=yes
17077 export_dynamic_flag_spec='${wl}-Bexport'
17078 runpath_var='LD_RUN_PATH'
17080 if test "$GCC" = yes; then
17081 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17082 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17084 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17085 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17091 hardcode_libdir_flag_spec='-L$libdir'
17092 hardcode_shlibpath_var=no
17100 if test x$host_vendor = xsni; then
17102 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17103 export_dynamic_flag_spec='${wl}-Blargedynsym'
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17110 $as_echo "$ld_shlibs" >&6; }
17111 test "$ld_shlibs" = no && can_build_shared=no
17113 with_gnu_ld=$with_gnu_ld
17130 # Do we need to explicitly link libc?
17132 case "x$archive_cmds_need_lc" in
17134 # Assume -lc should be added
17135 archive_cmds_need_lc=yes
17137 if test "$enable_shared" = yes && test "$GCC" = yes; then
17138 case $archive_cmds in
17140 # FIXME: we may have to deal with multi-command sequences.
17143 # Test whether the compiler implicitly links with -lc since on some
17144 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17145 # to ld, don't add -lc before -lgcc.
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17147 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17148 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17149 $as_echo_n "(cached) " >&6
17152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17155 (eval $ac_compile) 2>&5
17157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17158 test $ac_status = 0; } 2>conftest.err; then
17161 libobjs=conftest.$ac_objext
17163 wl=$lt_prog_compiler_wl
17164 pic_flag=$lt_prog_compiler_pic
17170 lt_save_allow_undefined_flag=$allow_undefined_flag
17171 allow_undefined_flag=
17172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17173 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17176 test $ac_status = 0; }
17178 lt_cv_archive_cmds_need_lc=no
17180 lt_cv_archive_cmds_need_lc=yes
17182 allow_undefined_flag=$lt_save_allow_undefined_flag
17184 cat conftest.err 1>&5
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17190 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17191 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17355 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17357 if test "$GCC" = yes; then
17359 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17360 *) lt_awk_arg="/^libraries:/" ;;
17363 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17364 *) lt_sed_strip_eq="s,=/,/,g" ;;
17366 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17367 case $lt_search_path_spec in
17369 # if the path contains ";" then we assume it to be the separator
17370 # otherwise default to the standard path separator (i.e. ":") - it is
17371 # assumed that no part of a normal pathname contains ";" but that should
17372 # okay in the real world where ";" in dirpaths is itself problematic.
17373 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17376 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17379 # Ok, now we have the path, separated by spaces, we can step through it
17380 # and add multilib dir if necessary.
17381 lt_tmp_lt_search_path_spec=
17382 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17383 for lt_sys_path in $lt_search_path_spec; do
17384 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17385 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17387 test -d "$lt_sys_path" && \
17388 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17391 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17392 BEGIN {RS=" "; FS="/|\n";} {
17395 for (lt_i = NF; lt_i > 0; lt_i--) {
17396 if ($lt_i != "" && $lt_i != ".") {
17397 if ($lt_i == "..") {
17400 if (lt_count == 0) {
17401 lt_foo="/" $lt_i lt_foo;
17408 if (lt_foo != "") { lt_freq[lt_foo]++; }
17409 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17411 # AWK program above erroneously prepends '/' to C:/dos/paths
17414 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17415 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17417 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17419 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17421 library_names_spec=
17422 libname_spec='lib$name'
17426 postuninstall_cmds=
17430 shlibpath_overrides_runpath=unknown
17432 dynamic_linker="$host_os ld.so"
17433 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17434 need_lib_prefix=unknown
17435 hardcode_into_libs=no
17437 # when you set need_version to no, make sure it does not cause -set_version
17438 # flags to be left without arguments
17439 need_version=unknown
17444 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17445 shlibpath_var=LIBPATH
17447 # AIX 3 has no versioning support, so we append a major version to the name.
17448 soname_spec='${libname}${release}${shared_ext}$major'
17455 hardcode_into_libs=yes
17456 if test "$host_cpu" = ia64; then
17457 # AIX 5 supports IA64
17458 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17459 shlibpath_var=LD_LIBRARY_PATH
17461 # With GCC up to 2.95.x, collect2 would create an import file
17462 # for dependence libraries. The import file would start with
17463 # the line `#! .'. This would cause the generated library to
17464 # depend on `.', always an invalid library. This was fixed in
17465 # development snapshots of GCC prior to 3.0.
17467 aix4 | aix4.[01] | aix4.[01].*)
17468 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17470 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17473 can_build_shared=no
17477 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17478 # soname into executable. Probably we can add versioning support to
17479 # collect2, so additional links can be useful in future.
17480 if test "$aix_use_runtimelinking" = yes; then
17481 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17482 # instead of lib<name>.a to let people know that these are not
17483 # typical AIX shared libraries.
17484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17486 # We preserve .a as extension for shared libraries through AIX4.2
17487 # and later when we are not doing run time linking.
17488 library_names_spec='${libname}${release}.a $libname.a'
17489 soname_spec='${libname}${release}${shared_ext}$major'
17491 shlibpath_var=LIBPATH
17498 # Since July 2007 AmigaOS4 officially supports .so libraries.
17499 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17503 library_names_spec='$libname.ixlibrary $libname.a'
17504 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17505 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'
17511 library_names_spec='${libname}${shared_ext}'
17512 dynamic_linker="$host_os ld.so"
17513 shlibpath_var=LIBRARY_PATH
17519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17520 soname_spec='${libname}${release}${shared_ext}$major'
17521 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17522 shlibpath_var=LD_LIBRARY_PATH
17523 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17524 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17525 # the default ld.so.conf also contains /usr/contrib/lib and
17526 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17527 # libtool to hard-code these into programs
17530 cygwin* | mingw* | pw32* | cegcc*)
17531 version_type=windows
17536 case $GCC,$host_os in
17537 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17538 library_names_spec='$libname.dll.a'
17539 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17540 postinstall_cmds='base_file=`basename \${file}`~
17541 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17542 dldir=$destdir/`dirname \$dlpath`~
17543 test -d \$dldir || mkdir -p \$dldir~
17544 $install_prog $dir/$dlname \$dldir/$dlname~
17545 chmod a+x \$dldir/$dlname~
17546 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17547 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17549 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17550 dlpath=$dir/\$dldll~
17552 shlibpath_overrides_runpath=yes
17556 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17557 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17559 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17562 # MinGW DLLs use traditional 'lib' prefix
17563 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17566 # pw32 DLLs use 'pw' prefix rather than 'lib'
17567 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17573 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17576 dynamic_linker='Win32 ld.exe'
17577 # FIXME: first we should search . and the directory the executable is in
17581 darwin* | rhapsody*)
17582 dynamic_linker="$host_os dyld"
17583 version_type=darwin
17586 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17587 soname_spec='${libname}${release}${major}$shared_ext'
17588 shlibpath_overrides_runpath=yes
17589 shlibpath_var=DYLD_LIBRARY_PATH
17590 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17592 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17593 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17601 soname_spec='${libname}${release}${shared_ext}$major'
17602 shlibpath_var=LD_LIBRARY_PATH
17605 freebsd* | dragonfly*)
17606 # DragonFly does not have aout. When/if they implement a new
17607 # versioning mechanism, adjust this.
17608 if test -x /usr/bin/objformat; then
17609 objformat=`/usr/bin/objformat`
17612 freebsd[23].*) objformat=aout ;;
17613 *) objformat=elf ;;
17616 version_type=freebsd-$objformat
17617 case $version_type in
17619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17624 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17628 shlibpath_var=LD_LIBRARY_PATH
17631 shlibpath_overrides_runpath=yes
17633 freebsd3.[01]* | freebsdelf3.[01]*)
17634 shlibpath_overrides_runpath=yes
17635 hardcode_into_libs=yes
17637 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17638 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17639 shlibpath_overrides_runpath=no
17640 hardcode_into_libs=yes
17642 *) # from 4.6 on, and DragonFly
17643 shlibpath_overrides_runpath=yes
17644 hardcode_into_libs=yes
17653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17654 soname_spec='${libname}${release}${shared_ext}$major'
17655 shlibpath_var=LD_LIBRARY_PATH
17656 hardcode_into_libs=yes
17663 dynamic_linker="$host_os runtime_loader"
17664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17665 soname_spec='${libname}${release}${shared_ext}$major'
17666 shlibpath_var=LIBRARY_PATH
17667 shlibpath_overrides_runpath=yes
17668 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17669 hardcode_into_libs=yes
17672 hpux9* | hpux10* | hpux11*)
17673 # Give a soname corresponding to the major version so that dld.sl refuses to
17674 # link against other versions.
17681 hardcode_into_libs=yes
17682 dynamic_linker="$host_os dld.so"
17683 shlibpath_var=LD_LIBRARY_PATH
17684 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17686 soname_spec='${libname}${release}${shared_ext}$major'
17687 if test "X$HPUX_IA64_MODE" = X32; then
17688 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17690 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17692 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17696 hardcode_into_libs=yes
17697 dynamic_linker="$host_os dld.sl"
17698 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17699 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17701 soname_spec='${libname}${release}${shared_ext}$major'
17702 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17703 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17707 dynamic_linker="$host_os dld.sl"
17708 shlibpath_var=SHLIB_PATH
17709 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17711 soname_spec='${libname}${release}${shared_ext}$major'
17714 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17715 postinstall_cmds='chmod 555 $lib'
17716 # or fails outright, so override atomically:
17717 install_override_mode=555
17724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17725 soname_spec='${libname}${release}${shared_ext}$major'
17726 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17727 shlibpath_var=LD_LIBRARY_PATH
17728 shlibpath_overrides_runpath=no
17729 hardcode_into_libs=yes
17732 irix5* | irix6* | nonstopux*)
17734 nonstopux*) version_type=nonstopux ;;
17736 if test "$lt_cv_prog_gnu_ld" = yes; then
17744 soname_spec='${libname}${release}${shared_ext}$major'
17745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17747 irix5* | nonstopux*)
17748 libsuff= shlibsuff=
17751 case $LD in # libtool.m4 will add one of these switches to LD
17752 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17753 libsuff= shlibsuff= libmagic=32-bit;;
17754 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17755 libsuff=32 shlibsuff=N32 libmagic=N32;;
17756 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17757 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17758 *) libsuff= shlibsuff= libmagic=never-match;;
17762 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17763 shlibpath_overrides_runpath=no
17764 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17765 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17766 hardcode_into_libs=yes
17769 # No shared lib support for Linux oldld, aout, or coff.
17770 linux*oldld* | linux*aout* | linux*coff*)
17774 # This must be Linux ELF.
17775 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17780 soname_spec='${libname}${release}${shared_ext}$major'
17781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17782 shlibpath_var=LD_LIBRARY_PATH
17783 shlibpath_overrides_runpath=no
17785 # Some binutils ld are patched to set DT_RUNPATH
17786 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17787 $as_echo_n "(cached) " >&6
17789 lt_cv_shlibpath_overrides_runpath=no
17790 save_LDFLAGS=$LDFLAGS
17791 save_libdir=$libdir
17792 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17793 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17795 /* end confdefs.h. */
17805 if ac_fn_c_try_link "$LINENO"; then :
17806 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17807 lt_cv_shlibpath_overrides_runpath=yes
17810 rm -f core conftest.err conftest.$ac_objext \
17811 conftest$ac_exeext conftest.$ac_ext
17812 LDFLAGS=$save_LDFLAGS
17813 libdir=$save_libdir
17817 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17819 # This implies no fast_install, which is unacceptable.
17820 # Some rework will be needed to allow for fast_install
17821 # before this can be enabled.
17822 hardcode_into_libs=yes
17824 # Append ld.so.conf contents to the search path
17825 if test -f /etc/ld.so.conf; then
17826 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' ' '`
17827 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17830 # We used to test for /lib/ld.so.1 and disable shared libraries on
17831 # powerpc, because MkLinux only supported shared libraries with the
17832 # GNU dynamic linker. Since this was broken with cross compilers,
17833 # most powerpc-linux boxes support dynamic linking these days and
17834 # people can always --disable-shared, the test was removed, and we
17835 # assume the GNU/Linux dynamic linker is in use.
17836 dynamic_linker='GNU/Linux ld.so'
17843 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17846 dynamic_linker='NetBSD (a.out) ld.so'
17848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17849 soname_spec='${libname}${release}${shared_ext}$major'
17850 dynamic_linker='NetBSD ld.elf_so'
17852 shlibpath_var=LD_LIBRARY_PATH
17853 shlibpath_overrides_runpath=yes
17854 hardcode_into_libs=yes
17859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17860 shlibpath_var=LD_LIBRARY_PATH
17861 shlibpath_overrides_runpath=yes
17868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17869 soname_spec='${libname}${release}${shared_ext}$major'
17870 shlibpath_var=LD_LIBRARY_PATH
17871 shlibpath_overrides_runpath=no
17872 hardcode_into_libs=yes
17873 dynamic_linker='ldqnx.so'
17878 sys_lib_dlsearch_path_spec="/usr/lib"
17880 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17882 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17883 *) need_version=no ;;
17885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17887 shlibpath_var=LD_LIBRARY_PATH
17888 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17890 openbsd2.[89] | openbsd2.[89].*)
17891 shlibpath_overrides_runpath=no
17894 shlibpath_overrides_runpath=yes
17898 shlibpath_overrides_runpath=yes
17903 libname_spec='$name'
17906 library_names_spec='$libname${shared_ext} $libname.a'
17907 dynamic_linker='OS/2 ld.exe'
17908 shlibpath_var=LIBPATH
17911 osf3* | osf4* | osf5*)
17915 soname_spec='${libname}${release}${shared_ext}$major'
17916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17917 shlibpath_var=LD_LIBRARY_PATH
17918 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17919 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17931 soname_spec='${libname}${release}${shared_ext}$major'
17932 shlibpath_var=LD_LIBRARY_PATH
17933 shlibpath_overrides_runpath=yes
17934 hardcode_into_libs=yes
17935 # ldd complains unless libraries are executable
17936 postinstall_cmds='chmod +x $lib'
17941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17942 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17943 shlibpath_var=LD_LIBRARY_PATH
17944 shlibpath_overrides_runpath=yes
17945 if test "$with_gnu_ld" = yes; then
17953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17954 soname_spec='${libname}${release}${shared_ext}$major'
17955 shlibpath_var=LD_LIBRARY_PATH
17956 case $host_vendor in
17958 shlibpath_overrides_runpath=no
17960 runpath_var=LD_RUN_PATH
17968 shlibpath_overrides_runpath=no
17969 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17975 if test -d /usr/nec ;then
17977 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17978 soname_spec='$libname${shared_ext}.$major'
17979 shlibpath_var=LD_LIBRARY_PATH
17983 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17984 version_type=freebsd-elf
17987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17988 soname_spec='${libname}${release}${shared_ext}$major'
17989 shlibpath_var=LD_LIBRARY_PATH
17990 shlibpath_overrides_runpath=yes
17991 hardcode_into_libs=yes
17992 if test "$with_gnu_ld" = yes; then
17993 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17995 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17998 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18002 sys_lib_dlsearch_path_spec='/usr/lib'
18006 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18011 shlibpath_var=LD_LIBRARY_PATH
18012 shlibpath_overrides_runpath=no
18013 hardcode_into_libs=yes
18018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18019 soname_spec='${libname}${release}${shared_ext}$major'
18020 shlibpath_var=LD_LIBRARY_PATH
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18028 $as_echo "$dynamic_linker" >&6; }
18029 test "$dynamic_linker" = no && can_build_shared=no
18031 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18032 if test "$GCC" = yes; then
18033 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18036 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18037 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18039 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18040 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18135 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18137 if test -n "$hardcode_libdir_flag_spec" ||
18138 test -n "$runpath_var" ||
18139 test "X$hardcode_automatic" = "Xyes" ; then
18141 # We can hardcode non-existent directories.
18142 if test "$hardcode_direct" != no &&
18143 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18144 # have to relink, otherwise we might link with an installed library
18145 # when we should be linking with a yet-to-be-installed one
18146 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18147 test "$hardcode_minus_L" != no; then
18148 # Linking always hardcodes the temporary library directory.
18149 hardcode_action=relink
18151 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18152 hardcode_action=immediate
18155 # We cannot hardcode anything, or else we can only hardcode existing
18157 hardcode_action=unsupported
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18160 $as_echo "$hardcode_action" >&6; }
18162 if test "$hardcode_action" = relink ||
18163 test "$inherit_rpath" = yes; then
18164 # Fast installation is not supported
18165 enable_fast_install=no
18166 elif test "$shlibpath_overrides_runpath" = yes ||
18167 test "$enable_shared" = no; then
18168 # Fast installation is not necessary
18169 enable_fast_install=needless
18177 if test "x$enable_dlopen" != xyes; then
18178 enable_dlopen=unknown
18179 enable_dlopen_self=unknown
18180 enable_dlopen_self_static=unknown
18187 lt_cv_dlopen="load_add_on"
18189 lt_cv_dlopen_self=yes
18192 mingw* | pw32* | cegcc*)
18193 lt_cv_dlopen="LoadLibrary"
18198 lt_cv_dlopen="dlopen"
18203 # if libdl is installed we need to link against it
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18205 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18206 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18207 $as_echo_n "(cached) " >&6
18209 ac_check_lib_save_LIBS=$LIBS
18211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18212 /* end confdefs.h. */
18214 /* Override any GCC internal prototype to avoid an error.
18215 Use char because int might match the return type of a GCC
18216 builtin and then its argument prototype would still apply. */
18229 if ac_fn_c_try_link "$LINENO"; then :
18230 ac_cv_lib_dl_dlopen=yes
18232 ac_cv_lib_dl_dlopen=no
18234 rm -f core conftest.err conftest.$ac_objext \
18235 conftest$ac_exeext conftest.$ac_ext
18236 LIBS=$ac_check_lib_save_LIBS
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18239 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18240 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18241 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18244 lt_cv_dlopen="dyld"
18246 lt_cv_dlopen_self=yes
18253 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18254 if test "x$ac_cv_func_shl_load" = x""yes; then :
18255 lt_cv_dlopen="shl_load"
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18258 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18259 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18260 $as_echo_n "(cached) " >&6
18262 ac_check_lib_save_LIBS=$LIBS
18264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18265 /* end confdefs.h. */
18267 /* Override any GCC internal prototype to avoid an error.
18268 Use char because int might match the return type of a GCC
18269 builtin and then its argument prototype would still apply. */
18277 return shl_load ();
18282 if ac_fn_c_try_link "$LINENO"; then :
18283 ac_cv_lib_dld_shl_load=yes
18285 ac_cv_lib_dld_shl_load=no
18287 rm -f core conftest.err conftest.$ac_objext \
18288 conftest$ac_exeext conftest.$ac_ext
18289 LIBS=$ac_check_lib_save_LIBS
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18292 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18293 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18294 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18296 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18297 if test "x$ac_cv_func_dlopen" = x""yes; then :
18298 lt_cv_dlopen="dlopen"
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18301 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18302 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18303 $as_echo_n "(cached) " >&6
18305 ac_check_lib_save_LIBS=$LIBS
18307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18308 /* end confdefs.h. */
18310 /* Override any GCC internal prototype to avoid an error.
18311 Use char because int might match the return type of a GCC
18312 builtin and then its argument prototype would still apply. */
18325 if ac_fn_c_try_link "$LINENO"; then :
18326 ac_cv_lib_dl_dlopen=yes
18328 ac_cv_lib_dl_dlopen=no
18330 rm -f core conftest.err conftest.$ac_objext \
18331 conftest$ac_exeext conftest.$ac_ext
18332 LIBS=$ac_check_lib_save_LIBS
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18335 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18336 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18337 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18340 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18341 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18342 $as_echo_n "(cached) " >&6
18344 ac_check_lib_save_LIBS=$LIBS
18345 LIBS="-lsvld $LIBS"
18346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18347 /* end confdefs.h. */
18349 /* Override any GCC internal prototype to avoid an error.
18350 Use char because int might match the return type of a GCC
18351 builtin and then its argument prototype would still apply. */
18364 if ac_fn_c_try_link "$LINENO"; then :
18365 ac_cv_lib_svld_dlopen=yes
18367 ac_cv_lib_svld_dlopen=no
18369 rm -f core conftest.err conftest.$ac_objext \
18370 conftest$ac_exeext conftest.$ac_ext
18371 LIBS=$ac_check_lib_save_LIBS
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18374 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18375 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18376 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18379 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18380 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18381 $as_echo_n "(cached) " >&6
18383 ac_check_lib_save_LIBS=$LIBS
18385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18386 /* end confdefs.h. */
18388 /* Override any GCC internal prototype to avoid an error.
18389 Use char because int might match the return type of a GCC
18390 builtin and then its argument prototype would still apply. */
18398 return dld_link ();
18403 if ac_fn_c_try_link "$LINENO"; then :
18404 ac_cv_lib_dld_dld_link=yes
18406 ac_cv_lib_dld_dld_link=no
18408 rm -f core conftest.err conftest.$ac_objext \
18409 conftest$ac_exeext conftest.$ac_ext
18410 LIBS=$ac_check_lib_save_LIBS
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18413 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18414 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18415 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18436 if test "x$lt_cv_dlopen" != xno; then
18442 case $lt_cv_dlopen in
18444 save_CPPFLAGS="$CPPFLAGS"
18445 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18447 save_LDFLAGS="$LDFLAGS"
18448 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18451 LIBS="$lt_cv_dlopen_libs $LIBS"
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18454 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18455 if test "${lt_cv_dlopen_self+set}" = set; then :
18456 $as_echo_n "(cached) " >&6
18458 if test "$cross_compiling" = yes; then :
18459 lt_cv_dlopen_self=cross
18461 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18462 lt_status=$lt_dlunknown
18463 cat > conftest.$ac_ext <<_LT_EOF
18464 #line 18464 "configure"
18465 #include "confdefs.h"
18474 # define LT_DLGLOBAL RTLD_GLOBAL
18477 # define LT_DLGLOBAL DL_GLOBAL
18479 # define LT_DLGLOBAL 0
18483 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18484 find out it does not work in some platform. */
18485 #ifndef LT_DLLAZY_OR_NOW
18487 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18490 # define LT_DLLAZY_OR_NOW DL_LAZY
18493 # define LT_DLLAZY_OR_NOW RTLD_NOW
18496 # define LT_DLLAZY_OR_NOW DL_NOW
18498 # define LT_DLLAZY_OR_NOW 0
18505 /* When -fvisbility=hidden is used, assume the code has been annotated
18506 correspondingly for the symbols needed. */
18507 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18508 void fnord () __attribute__((visibility("default")));
18511 void fnord () { int i=42; }
18514 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18515 int status = $lt_dlunknown;
18519 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18522 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18523 else puts (dlerror ());
18525 /* dlclose (self); */
18533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18534 (eval $ac_link) 2>&5
18536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18537 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18538 (./conftest; exit; ) >&5 2>/dev/null
18540 case x$lt_status in
18541 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18542 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18543 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18546 # compilation failed
18547 lt_cv_dlopen_self=no
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18555 $as_echo "$lt_cv_dlopen_self" >&6; }
18557 if test "x$lt_cv_dlopen_self" = xyes; then
18558 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18560 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18561 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18562 $as_echo_n "(cached) " >&6
18564 if test "$cross_compiling" = yes; then :
18565 lt_cv_dlopen_self_static=cross
18567 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18568 lt_status=$lt_dlunknown
18569 cat > conftest.$ac_ext <<_LT_EOF
18570 #line 18570 "configure"
18571 #include "confdefs.h"
18580 # define LT_DLGLOBAL RTLD_GLOBAL
18583 # define LT_DLGLOBAL DL_GLOBAL
18585 # define LT_DLGLOBAL 0
18589 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18590 find out it does not work in some platform. */
18591 #ifndef LT_DLLAZY_OR_NOW
18593 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18596 # define LT_DLLAZY_OR_NOW DL_LAZY
18599 # define LT_DLLAZY_OR_NOW RTLD_NOW
18602 # define LT_DLLAZY_OR_NOW DL_NOW
18604 # define LT_DLLAZY_OR_NOW 0
18611 /* When -fvisbility=hidden is used, assume the code has been annotated
18612 correspondingly for the symbols needed. */
18613 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18614 void fnord () __attribute__((visibility("default")));
18617 void fnord () { int i=42; }
18620 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18621 int status = $lt_dlunknown;
18625 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18628 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18629 else puts (dlerror ());
18631 /* dlclose (self); */
18639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18640 (eval $ac_link) 2>&5
18642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18643 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18644 (./conftest; exit; ) >&5 2>/dev/null
18646 case x$lt_status in
18647 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18648 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18649 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18652 # compilation failed
18653 lt_cv_dlopen_self_static=no
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18661 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18664 CPPFLAGS="$save_CPPFLAGS"
18665 LDFLAGS="$save_LDFLAGS"
18670 case $lt_cv_dlopen_self in
18671 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18672 *) enable_dlopen_self=unknown ;;
18675 case $lt_cv_dlopen_self_static in
18676 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18677 *) enable_dlopen_self_static=unknown ;;
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18700 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18701 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18702 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18703 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18705 $as_echo "yes" >&6; }
18707 # FIXME - insert some real tests, host_os isn't really good enough
18710 if test -n "$STRIP" ; then
18711 striplib="$STRIP -x"
18712 old_striplib="$STRIP -S"
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18714 $as_echo "yes" >&6; }
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18717 $as_echo "no" >&6; }
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18722 $as_echo "no" >&6; }
18738 # Report which library types will actually be built
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18740 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18742 $as_echo "$can_build_shared" >&6; }
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18745 $as_echo_n "checking whether to build shared libraries... " >&6; }
18746 test "$can_build_shared" = "no" && enable_shared=no
18748 # On AIX, shared libraries and static libraries use the same namespace, and
18749 # are all built from PIC.
18752 test "$enable_shared" = yes && enable_static=no
18753 if test -n "$RANLIB"; then
18754 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18755 postinstall_cmds='$RANLIB $lib'
18760 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18761 test "$enable_shared" = yes && enable_static=no
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18766 $as_echo "$enable_shared" >&6; }
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18769 $as_echo_n "checking whether to build static libraries... " >&6; }
18770 # Make sure either enable_shared or enable_static is yes.
18771 test "$enable_shared" = yes || enable_static=yes
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18773 $as_echo "$enable_static" >&6; }
18780 ac_cpp='$CXXCPP $CPPFLAGS'
18781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18787 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18788 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18789 (test "X$CXX" != "Xg++"))) ; then
18791 ac_cpp='$CXXCPP $CPPFLAGS'
18792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18796 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18797 if test -z "$CXXCPP"; then
18798 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18799 $as_echo_n "(cached) " >&6
18801 # Double quotes because CXXCPP needs to be expanded
18802 for CXXCPP in "$CXX -E" "/lib/cpp"
18804 ac_preproc_ok=false
18805 for ac_cxx_preproc_warn_flag in '' yes
18807 # Use a header file that comes with gcc, so configuring glibc
18808 # with a fresh cross-compiler works.
18809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18810 # <limits.h> exists even on freestanding compilers.
18811 # On the NeXT, cc -E runs the code through the compiler's parser,
18812 # not just through cpp. "Syntax error" is here to catch this case.
18813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18814 /* end confdefs.h. */
18816 # include <limits.h>
18818 # include <assert.h>
18822 if ac_fn_cxx_try_cpp "$LINENO"; then :
18825 # Broken: fails on valid input.
18828 rm -f conftest.err conftest.$ac_ext
18830 # OK, works on sane cases. Now check whether nonexistent headers
18831 # can be detected and how.
18832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18833 /* end confdefs.h. */
18834 #include <ac_nonexistent.h>
18836 if ac_fn_cxx_try_cpp "$LINENO"; then :
18837 # Broken: success on invalid input.
18840 # Passes both tests.
18844 rm -f conftest.err conftest.$ac_ext
18847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18848 rm -f conftest.err conftest.$ac_ext
18849 if $ac_preproc_ok; then :
18854 ac_cv_prog_CXXCPP=$CXXCPP
18857 CXXCPP=$ac_cv_prog_CXXCPP
18859 ac_cv_prog_CXXCPP=$CXXCPP
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18862 $as_echo "$CXXCPP" >&6; }
18863 ac_preproc_ok=false
18864 for ac_cxx_preproc_warn_flag in '' yes
18866 # Use a header file that comes with gcc, so configuring glibc
18867 # with a fresh cross-compiler works.
18868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18869 # <limits.h> exists even on freestanding compilers.
18870 # On the NeXT, cc -E runs the code through the compiler's parser,
18871 # not just through cpp. "Syntax error" is here to catch this case.
18872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18873 /* end confdefs.h. */
18875 # include <limits.h>
18877 # include <assert.h>
18881 if ac_fn_cxx_try_cpp "$LINENO"; then :
18884 # Broken: fails on valid input.
18887 rm -f conftest.err conftest.$ac_ext
18889 # OK, works on sane cases. Now check whether nonexistent headers
18890 # can be detected and how.
18891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18892 /* end confdefs.h. */
18893 #include <ac_nonexistent.h>
18895 if ac_fn_cxx_try_cpp "$LINENO"; then :
18896 # Broken: success on invalid input.
18899 # Passes both tests.
18903 rm -f conftest.err conftest.$ac_ext
18906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18907 rm -f conftest.err conftest.$ac_ext
18908 if $ac_preproc_ok; then :
18911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18913 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18914 See \`config.log' for more details." "$LINENO" 5; }
18918 ac_cpp='$CXXCPP $CPPFLAGS'
18919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18924 _lt_caught_CXX_error=yes
18928 ac_cpp='$CXXCPP $CPPFLAGS'
18929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18933 archive_cmds_need_lc_CXX=no
18934 allow_undefined_flag_CXX=
18935 always_export_symbols_CXX=no
18936 archive_expsym_cmds_CXX=
18937 compiler_needs_object_CXX=no
18938 export_dynamic_flag_spec_CXX=
18939 hardcode_direct_CXX=no
18940 hardcode_direct_absolute_CXX=no
18941 hardcode_libdir_flag_spec_CXX=
18942 hardcode_libdir_flag_spec_ld_CXX=
18943 hardcode_libdir_separator_CXX=
18944 hardcode_minus_L_CXX=no
18945 hardcode_shlibpath_var_CXX=unsupported
18946 hardcode_automatic_CXX=no
18947 inherit_rpath_CXX=no
18949 module_expsym_cmds_CXX=
18950 link_all_deplibs_CXX=unknown
18951 old_archive_cmds_CXX=$old_archive_cmds
18952 reload_flag_CXX=$reload_flag
18953 reload_cmds_CXX=$reload_cmds
18954 no_undefined_flag_CXX=
18955 whole_archive_flag_spec_CXX=
18956 enable_shared_with_static_runtimes_CXX=no
18958 # Source file extension for C++ test sources.
18961 # Object file extension for compiled C++ test sources.
18965 # No sense in running all these tests if we already determined that
18966 # the CXX compiler isn't working. Some variables (like enable_shared)
18967 # are currently assumed to apply to all compilers on this platform,
18968 # and will be corrupted by setting them based on a non-working compiler.
18969 if test "$_lt_caught_CXX_error" != yes; then
18970 # Code to be used in simple compile tests
18971 lt_simple_compile_test_code="int some_variable = 0;"
18973 # Code to be used in simple link tests
18974 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18976 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18983 # If no C compiler was specified, use CC.
18986 # If no C compiler flags were specified, use CFLAGS.
18987 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18989 # Allow CC to be a program name with arguments.
18993 # save warnings/boilerplate of simple test code
18994 ac_outfile=conftest.$ac_objext
18995 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18996 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18997 _lt_compiler_boilerplate=`cat conftest.err`
19000 ac_outfile=conftest.$ac_objext
19001 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19002 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19003 _lt_linker_boilerplate=`cat conftest.err`
19007 # Allow CC to be a program name with arguments.
19012 lt_save_with_gnu_ld=$with_gnu_ld
19013 lt_save_path_LD=$lt_cv_path_LD
19014 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19015 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19017 $as_unset lt_cv_prog_gnu_ld
19019 if test -n "${lt_cv_path_LDCXX+set}"; then
19020 lt_cv_path_LD=$lt_cv_path_LDCXX
19022 $as_unset lt_cv_path_LD
19024 test -z "${LDCXX+set}" || LD=$LDCXX
19028 for cc_temp in $compiler""; do
19030 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19031 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19036 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19039 if test -n "$compiler"; then
19040 # We don't want -fno-exception when compiling C++ code, so set the
19041 # no_builtin_flag separately
19042 if test "$GXX" = yes; then
19043 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19045 lt_prog_compiler_no_builtin_flag_CXX=
19048 if test "$GXX" = yes; then
19049 # Set up default GNU C++ configuration
19053 # Check whether --with-gnu-ld was given.
19054 if test "${with_gnu_ld+set}" = set; then :
19055 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19061 if test "$GCC" = yes; then
19062 # Check if gcc -print-prog-name=ld gives a path.
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19064 $as_echo_n "checking for ld used by $CC... " >&6; }
19067 # gcc leaves a trailing carriage return which upsets mingw
19068 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19070 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19073 # Accept absolute paths.
19075 re_direlt='/[^/][^/]*/\.\./'
19076 # Canonicalize the pathname of ld
19077 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19078 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19079 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19081 test -z "$LD" && LD="$ac_prog"
19084 # If it fails, then pretend we aren't using GCC.
19088 # If it is relative, then search for the first ld in PATH.
19089 with_gnu_ld=unknown
19092 elif test "$with_gnu_ld" = yes; then
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19094 $as_echo_n "checking for GNU ld... " >&6; }
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19097 $as_echo_n "checking for non-GNU ld... " >&6; }
19099 if test "${lt_cv_path_LD+set}" = set; then :
19100 $as_echo_n "(cached) " >&6
19102 if test -z "$LD"; then
19103 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19104 for ac_dir in $PATH; do
19106 test -z "$ac_dir" && ac_dir=.
19107 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19108 lt_cv_path_LD="$ac_dir/$ac_prog"
19109 # Check to see if the program is GNU ld. I'd rather use --version,
19110 # but apparently some variants of GNU ld only accept -v.
19111 # Break only if it was the GNU/non-GNU ld that we prefer.
19112 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19113 *GNU* | *'with BFD'*)
19114 test "$with_gnu_ld" != no && break
19117 test "$with_gnu_ld" != yes && break
19124 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19128 LD="$lt_cv_path_LD"
19129 if test -n "$LD"; then
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19131 $as_echo "$LD" >&6; }
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19134 $as_echo "no" >&6; }
19136 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19138 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19139 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19140 $as_echo_n "(cached) " >&6
19142 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19143 case `$LD -v 2>&1 </dev/null` in
19144 *GNU* | *'with BFD'*)
19145 lt_cv_prog_gnu_ld=yes
19148 lt_cv_prog_gnu_ld=no
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19153 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19154 with_gnu_ld=$lt_cv_prog_gnu_ld
19162 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19163 # archiving commands below assume that GNU ld is being used.
19164 if test "$with_gnu_ld" = yes; then
19165 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19166 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'
19168 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19169 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19171 # If archive_cmds runs LD, not CC, wlarc should be empty
19172 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19173 # investigate it a little bit more. (MM)
19176 # ancient GNU ld didn't support --whole-archive et. al.
19177 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19178 $GREP 'no-whole-archive' > /dev/null; then
19179 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19181 whole_archive_flag_spec_CXX=
19187 # A generic and very simple default shared library creation
19188 # command for GNU C++ for the case where it uses the native
19189 # linker, instead of GNU ld. If possible, this setting should
19190 # overridden to take advantage of the native linker features on
19191 # the platform it is being used on.
19192 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19195 # Commands to make compiler produce verbose output that lists
19196 # what "hidden" libraries, object files and flags are used when
19197 # linking a shared library.
19198 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19206 # PORTME: fill in a description of your system's C++ link characteristics
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19208 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19212 # FIXME: insert proper C++ library support
19216 if test "$host_cpu" = ia64; then
19217 # On IA64, the linker does run time linking by default, so we don't
19218 # have to do anything special.
19219 aix_use_runtimelinking=no
19220 exp_sym_flag='-Bexport'
19223 aix_use_runtimelinking=no
19225 # Test if we are trying to use run time linking or normal
19226 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19227 # need to do runtime linking.
19228 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19229 for ld_flag in $LDFLAGS; do
19232 aix_use_runtimelinking=yes
19240 exp_sym_flag='-bexport'
19241 no_entry_flag='-bnoentry'
19244 # When large executables or shared objects are built, AIX ld can
19245 # have problems creating the table of contents. If linking a library
19246 # or program results in "error TOC overflow" add -mminimal-toc to
19247 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19248 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19250 archive_cmds_CXX=''
19251 hardcode_direct_CXX=yes
19252 hardcode_direct_absolute_CXX=yes
19253 hardcode_libdir_separator_CXX=':'
19254 link_all_deplibs_CXX=yes
19255 file_list_spec_CXX='${wl}-f,'
19257 if test "$GXX" = yes; then
19258 case $host_os in aix4.[012]|aix4.[012].*)
19259 # We only want to do this on AIX 4.2 and lower, the check
19260 # below for broken collect2 doesn't work under 4.3+
19261 collect2name=`${CC} -print-prog-name=collect2`
19262 if test -f "$collect2name" &&
19263 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19265 # We have reworked collect2
19268 # We have old collect2
19269 hardcode_direct_CXX=unsupported
19270 # It fails to find uninstalled libraries when the uninstalled
19271 # path is not listed in the libpath. Setting hardcode_minus_L
19272 # to unsupported forces relinking
19273 hardcode_minus_L_CXX=yes
19274 hardcode_libdir_flag_spec_CXX='-L$libdir'
19275 hardcode_libdir_separator_CXX=
19278 shared_flag='-shared'
19279 if test "$aix_use_runtimelinking" = yes; then
19280 shared_flag="$shared_flag "'${wl}-G'
19284 if test "$host_cpu" = ia64; then
19285 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19286 # chokes on -Wl,-G. The following line is correct:
19289 if test "$aix_use_runtimelinking" = yes; then
19290 shared_flag='${wl}-G'
19292 shared_flag='${wl}-bM:SRE'
19297 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19298 # It seems that -bexpall does not export symbols beginning with
19299 # underscore (_), so it is better to generate a list of symbols to
19301 always_export_symbols_CXX=yes
19302 if test "$aix_use_runtimelinking" = yes; then
19303 # Warning - without using the other runtime loading flags (-brtl),
19304 # -berok will link without error, but may produce a broken library.
19305 allow_undefined_flag_CXX='-berok'
19306 # Determine the default libpath from the value encoded in an empty
19308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19309 /* end confdefs.h. */
19319 if ac_fn_cxx_try_link "$LINENO"; then :
19321 lt_aix_libpath_sed='
19322 /Import File Strings/,/^$/ {
19328 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19329 # Check for a 64-bit object if we didn't find anything.
19330 if test -z "$aix_libpath"; then
19331 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19334 rm -f core conftest.err conftest.$ac_objext \
19335 conftest$ac_exeext conftest.$ac_ext
19336 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19338 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19340 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"
19342 if test "$host_cpu" = ia64; then
19343 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19344 allow_undefined_flag_CXX="-z nodefs"
19345 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"
19347 # Determine the default libpath from the value encoded in an
19348 # empty executable.
19349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19350 /* end confdefs.h. */
19360 if ac_fn_cxx_try_link "$LINENO"; then :
19362 lt_aix_libpath_sed='
19363 /Import File Strings/,/^$/ {
19369 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19370 # Check for a 64-bit object if we didn't find anything.
19371 if test -z "$aix_libpath"; then
19372 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19375 rm -f core conftest.err conftest.$ac_objext \
19376 conftest$ac_exeext conftest.$ac_ext
19377 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19379 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19380 # Warning - without using the other run time loading flags,
19381 # -berok will link without error, but may produce a broken library.
19382 no_undefined_flag_CXX=' ${wl}-bernotok'
19383 allow_undefined_flag_CXX=' ${wl}-berok'
19384 if test "$with_gnu_ld" = yes; then
19385 # We only use this code for GNU lds that support --whole-archive.
19386 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19388 # Exported symbols can be pulled into shared objects from archives
19389 whole_archive_flag_spec_CXX='$convenience'
19391 archive_cmds_need_lc_CXX=yes
19392 # This is similar to how AIX traditionally builds its shared
19394 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'
19400 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19401 allow_undefined_flag_CXX=unsupported
19402 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19403 # support --undefined. This deserves some investigation. FIXME
19404 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19411 case $cc_basename in
19413 # FIXME: insert proper C++ library support
19419 cygwin* | mingw* | pw32* | cegcc*)
19420 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19421 # as there is no search path for DLLs.
19422 hardcode_libdir_flag_spec_CXX='-L$libdir'
19423 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19424 allow_undefined_flag_CXX=unsupported
19425 always_export_symbols_CXX=no
19426 enable_shared_with_static_runtimes_CXX=yes
19428 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19429 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'
19430 # If the export-symbols file already is a .def file (1st line
19431 # is EXPORTS), use it as is; otherwise, prepend...
19432 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19433 cp $export_symbols $output_objdir/$soname.def;
19435 echo EXPORTS > $output_objdir/$soname.def;
19436 cat $export_symbols >> $output_objdir/$soname.def;
19438 $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'
19443 darwin* | rhapsody*)
19446 archive_cmds_need_lc_CXX=no
19447 hardcode_direct_CXX=no
19448 hardcode_automatic_CXX=yes
19449 hardcode_shlibpath_var_CXX=unsupported
19450 if test "$lt_cv_ld_force_load" = "yes"; then
19451 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\"`'
19453 whole_archive_flag_spec_CXX=''
19455 link_all_deplibs_CXX=yes
19456 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19457 case $cc_basename in
19458 ifort*) _lt_dar_can_shared=yes ;;
19459 *) _lt_dar_can_shared=$GCC ;;
19461 if test "$_lt_dar_can_shared" = "yes"; then
19462 output_verbose_link_cmd=func_echo_all
19463 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}"
19464 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19465 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}"
19466 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}"
19467 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19468 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}"
19469 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}"
19479 case $cc_basename in
19481 # FIXME: insert proper C++ library support
19485 # Green Hills C++ Compiler
19486 # FIXME: insert proper C++ library support
19490 # FIXME: insert proper C++ library support
19497 # C++ shared libraries reported to be fairly broken before
19503 archive_cmds_need_lc_CXX=no
19506 freebsd* | dragonfly*)
19507 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19516 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19517 link_all_deplibs_CXX=yes
19521 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19522 hardcode_libdir_separator_CXX=:
19523 export_dynamic_flag_spec_CXX='${wl}-E'
19524 hardcode_direct_CXX=yes
19525 hardcode_minus_L_CXX=yes # Not in the search PATH,
19526 # but as the default
19527 # location of the library.
19529 case $cc_basename in
19531 # FIXME: insert proper C++ library support
19535 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'
19536 # Commands to make compiler produce verbose output that lists
19537 # what "hidden" libraries, object files and flags are used when
19538 # linking a shared library.
19540 # There doesn't appear to be a way to prevent this compiler from
19541 # explicitly linking system object files so we need to strip them
19542 # from the output so that they don't get included in the library
19544 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"'
19547 if test "$GXX" = yes; then
19548 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'
19550 # FIXME: insert proper C++ library support
19558 if test $with_gnu_ld = no; then
19559 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19560 hardcode_libdir_separator_CXX=:
19566 export_dynamic_flag_spec_CXX='${wl}-E'
19572 hardcode_direct_CXX=no
19573 hardcode_shlibpath_var_CXX=no
19576 hardcode_direct_CXX=yes
19577 hardcode_direct_absolute_CXX=yes
19578 hardcode_minus_L_CXX=yes # Not in the search PATH,
19579 # but as the default
19580 # location of the library.
19584 case $cc_basename in
19586 # FIXME: insert proper C++ library support
19592 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19595 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19598 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19601 # Commands to make compiler produce verbose output that lists
19602 # what "hidden" libraries, object files and flags are used when
19603 # linking a shared library.
19605 # There doesn't appear to be a way to prevent this compiler from
19606 # explicitly linking system object files so we need to strip them
19607 # from the output so that they don't get included in the library
19609 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"'
19612 if test "$GXX" = yes; then
19613 if test $with_gnu_ld = no; then
19616 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19619 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19622 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'
19627 # FIXME: insert proper C++ library support
19635 hardcode_direct_CXX=no
19636 hardcode_shlibpath_var_CXX=no
19637 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19638 export_dynamic_flag_spec_CXX='${wl}-E'
19639 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19640 # Instead, shared libraries are loaded at an image base (0x10000000 by
19641 # default) and relocated if they conflict, which is a slow very memory
19642 # consuming and fragmenting process. To avoid this, we pick a random,
19643 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19644 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19645 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'
19646 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'
19649 case $cc_basename in
19652 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'
19654 # Archives containing C++ object files must be created using
19655 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19656 # necessary to make sure instantiated templates are included
19658 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19661 if test "$GXX" = yes; then
19662 if test "$with_gnu_ld" = no; then
19663 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'
19665 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'
19668 link_all_deplibs_CXX=yes
19671 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19672 hardcode_libdir_separator_CXX=:
19673 inherit_rpath_CXX=yes
19676 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19677 case $cc_basename in
19679 # Kuck and Associates, Inc. (KAI) C++ Compiler
19681 # KCC will only create a shared library if the output file
19682 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19683 # to its proper name (with version) after linking.
19684 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'
19685 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'
19686 # Commands to make compiler produce verbose output that lists
19687 # what "hidden" libraries, object files and flags are used when
19688 # linking a shared library.
19690 # There doesn't appear to be a way to prevent this compiler from
19691 # explicitly linking system object files so we need to strip them
19692 # from the output so that they don't get included in the library
19694 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"'
19696 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19697 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19699 # Archives containing C++ object files must be created using
19700 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19701 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19706 # version 8.0 and above of icpc choke on multiply defined symbols
19707 # if we add $predep_objects and $postdep_objects, however 7.1 and
19708 # earlier do not add the objects themselves.
19709 case `$CC -V 2>&1` in
19711 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19712 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'
19714 *) # Version 8.0 or newer
19717 ia64*) tmp_idyn=' -i_dynamic';;
19719 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19720 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'
19723 archive_cmds_need_lc_CXX=no
19724 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19725 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19726 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19729 # Portland Group C++ compiler
19731 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19732 prelink_cmds_CXX='tpldir=Template.dir~
19734 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19735 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19736 old_archive_cmds_CXX='tpldir=Template.dir~
19738 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19739 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19741 archive_cmds_CXX='tpldir=Template.dir~
19743 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19744 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19745 archive_expsym_cmds_CXX='tpldir=Template.dir~
19747 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19748 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19750 *) # Version 6 and above use weak symbols
19751 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19752 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'
19756 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19757 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19758 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'
19762 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19763 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'
19765 runpath_var=LD_RUN_PATH
19766 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19767 hardcode_libdir_separator_CXX=:
19769 # Commands to make compiler produce verbose output that lists
19770 # what "hidden" libraries, object files and flags are used when
19771 # linking a shared library.
19773 # There doesn't appear to be a way to prevent this compiler from
19774 # explicitly linking system object files so we need to strip them
19775 # from the output so that they don't get included in the library
19777 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'
19779 xl* | mpixl* | bgxl*)
19780 # IBM XL 8.0 on PPC, with GNU ld
19781 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19782 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19783 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19784 if test "x$supports_anon_versioning" = xyes; then
19785 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19786 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19787 echo "local: *; };" >> $output_objdir/$libname.ver~
19788 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19792 case `$CC -V 2>&1 | sed 5q` in
19795 no_undefined_flag_CXX=' -zdefs'
19796 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19797 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'
19798 hardcode_libdir_flag_spec_CXX='-R$libdir'
19799 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'
19800 compiler_needs_object_CXX=yes
19802 # Not sure whether something based on
19803 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19805 output_verbose_link_cmd='func_echo_all'
19807 # Archives containing C++ object files must be created using
19808 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19809 # necessary to make sure instantiated templates are included
19811 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19819 # FIXME: insert proper C++ library support
19824 # FIXME: insert proper C++ library support
19829 case $cc_basename in
19831 # FIXME: insert proper C++ library support
19835 # FIXME: insert proper C++ library support
19842 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19843 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19845 hardcode_libdir_flag_spec_CXX='-R$libdir'
19846 hardcode_direct_CXX=yes
19847 hardcode_shlibpath_var_CXX=no
19849 # Workaround some broken pre-1.5 toolchains
19850 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19858 # C++ shared libraries are fairly broken
19863 if test -f /usr/libexec/ld.so; then
19864 hardcode_direct_CXX=yes
19865 hardcode_shlibpath_var_CXX=no
19866 hardcode_direct_absolute_CXX=yes
19867 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19868 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19869 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19870 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19871 export_dynamic_flag_spec_CXX='${wl}-E'
19872 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19874 output_verbose_link_cmd=func_echo_all
19880 osf3* | osf4* | osf5*)
19881 case $cc_basename in
19883 # Kuck and Associates, Inc. (KAI) C++ Compiler
19885 # KCC will only create a shared library if the output file
19886 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19887 # to its proper name (with version) after linking.
19888 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'
19890 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19891 hardcode_libdir_separator_CXX=:
19893 # Archives containing C++ object files must be created using
19894 # the KAI C++ compiler.
19896 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19897 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19901 # Rational C++ 2.4.1
19902 # FIXME: insert proper C++ library support
19908 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19909 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'
19910 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19913 allow_undefined_flag_CXX=' -expect_unresolved \*'
19914 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'
19915 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19916 echo "-hidden">> $lib.exp~
19917 $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~
19919 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19923 hardcode_libdir_separator_CXX=:
19925 # Commands to make compiler produce verbose output that lists
19926 # what "hidden" libraries, object files and flags are used when
19927 # linking a shared library.
19929 # There doesn't appear to be a way to prevent this compiler from
19930 # explicitly linking system object files so we need to strip them
19931 # from the output so that they don't get included in the library
19933 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"'
19936 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19937 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19940 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'
19943 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'
19947 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19948 hardcode_libdir_separator_CXX=:
19950 # Commands to make compiler produce verbose output that lists
19951 # what "hidden" libraries, object files and flags are used when
19952 # linking a shared library.
19953 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19956 # FIXME: insert proper C++ library support
19964 # FIXME: insert proper C++ library support
19969 case $cc_basename in
19972 # FIXME: insert proper C++ library support
19977 # FIXME: insert proper C++ library support
19981 # FIXME: insert proper C++ library support
19988 case $cc_basename in
19990 # Sun C++ 4.2, 5.x and Centerline C++
19991 archive_cmds_need_lc_CXX=yes
19992 no_undefined_flag_CXX=' -zdefs'
19993 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19994 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19995 $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'
19997 hardcode_libdir_flag_spec_CXX='-R$libdir'
19998 hardcode_shlibpath_var_CXX=no
20000 solaris2.[0-5] | solaris2.[0-5].*) ;;
20002 # The compiler driver will combine and reorder linker options,
20003 # but understands `-z linker_flag'.
20004 # Supported since Solaris 2.6 (maybe 2.5.1?)
20005 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20008 link_all_deplibs_CXX=yes
20010 output_verbose_link_cmd='func_echo_all'
20012 # Archives containing C++ object files must be created using
20013 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20014 # necessary to make sure instantiated templates are included
20016 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20019 # Green Hills C++ Compiler
20020 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20022 # The C++ compiler must be used to create the archive.
20023 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20026 # GNU C++ compiler with Solaris linker
20027 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20028 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20029 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20030 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20031 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20032 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20034 # Commands to make compiler produce verbose output that lists
20035 # what "hidden" libraries, object files and flags are used when
20036 # linking a shared library.
20037 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20039 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20041 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20042 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20043 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20045 # Commands to make compiler produce verbose output that lists
20046 # what "hidden" libraries, object files and flags are used when
20047 # linking a shared library.
20048 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20051 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20053 solaris2.[0-5] | solaris2.[0-5].*) ;;
20055 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20063 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20064 no_undefined_flag_CXX='${wl}-z,text'
20065 archive_cmds_need_lc_CXX=no
20066 hardcode_shlibpath_var_CXX=no
20067 runpath_var='LD_RUN_PATH'
20069 case $cc_basename in
20071 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20072 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20075 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20076 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20081 sysv5* | sco3.2v5* | sco5v6*)
20082 # Note: We can NOT use -z defs as we might desire, because we do not
20083 # link with -lc, and that would cause any symbols used from libc to
20084 # always be unresolved, which means just about no library would
20085 # ever link correctly. If we're not using GNU ld we use -z text
20086 # though, which does catch some bad symbols but isn't as heavy-handed
20088 no_undefined_flag_CXX='${wl}-z,text'
20089 allow_undefined_flag_CXX='${wl}-z,nodefs'
20090 archive_cmds_need_lc_CXX=no
20091 hardcode_shlibpath_var_CXX=no
20092 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20093 hardcode_libdir_separator_CXX=':'
20094 link_all_deplibs_CXX=yes
20095 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20096 runpath_var='LD_RUN_PATH'
20098 case $cc_basename in
20100 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20101 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20102 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20103 '"$old_archive_cmds_CXX"
20104 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20105 '"$reload_cmds_CXX"
20108 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20109 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20115 case $cc_basename in
20117 # NonStop-UX NCC 3.20
20118 # FIXME: insert proper C++ library support
20122 # FIXME: insert proper C++ library support
20129 # FIXME: insert proper C++ library support
20134 # FIXME: insert proper C++ library support
20139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20140 $as_echo "$ld_shlibs_CXX" >&6; }
20141 test "$ld_shlibs_CXX" = no && can_build_shared=no
20147 ## There is no encapsulation within the following macros, do not change
20148 ## the running order or otherwise move them around unless you know exactly
20149 ## what you are doing...
20150 # Dependencies to place before and after the object being linked:
20151 predep_objects_CXX=
20152 postdep_objects_CXX=
20155 compiler_lib_search_path_CXX=
20157 cat > conftest.$ac_ext <<_LT_EOF
20161 Foo (void) { a = 0; }
20167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20168 (eval $ac_compile) 2>&5
20170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20171 test $ac_status = 0; }; then
20172 # Parse the compiler output and extract the necessary
20173 # objects, libraries and library flags.
20175 # Sentinel used to keep track of whether or not we are before
20176 # the conftest object file.
20177 pre_test_object_deps_done=no
20179 for p in `eval "$output_verbose_link_cmd"`; do
20183 # Some compilers place space between "-{L,R}" and the path.
20184 # Remove the space.
20185 if test $p = "-L" ||
20186 test $p = "-R"; then
20193 if test "$pre_test_object_deps_done" = no; then
20196 # Internal compiler library paths should come after those
20197 # provided the user. The postdeps already come after the
20198 # user supplied libs so there is no need to process them.
20199 if test -z "$compiler_lib_search_path_CXX"; then
20200 compiler_lib_search_path_CXX="${prev}${p}"
20202 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20205 # The "-l" case would never come before the object being
20206 # linked, so don't bother handling this case.
20209 if test -z "$postdeps_CXX"; then
20210 postdeps_CXX="${prev}${p}"
20212 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20218 # This assumes that the test object file only shows up
20219 # once in the compiler output.
20220 if test "$p" = "conftest.$objext"; then
20221 pre_test_object_deps_done=yes
20225 if test "$pre_test_object_deps_done" = no; then
20226 if test -z "$predep_objects_CXX"; then
20227 predep_objects_CXX="$p"
20229 predep_objects_CXX="$predep_objects_CXX $p"
20232 if test -z "$postdep_objects_CXX"; then
20233 postdep_objects_CXX="$p"
20235 postdep_objects_CXX="$postdep_objects_CXX $p"
20240 *) ;; # Ignore the rest.
20248 echo "libtool.m4: error: problem compiling CXX test program"
20251 $RM -f confest.$objext
20253 # PORTME: override above test on systems where it is broken
20256 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20257 # hack all around it, let's just trust "g++" to DTRT.
20258 predep_objects_CXX=
20259 postdep_objects_CXX=
20264 case `$CC -V 2>&1 | sed 5q` in
20268 # The more standards-conforming stlport4 library is
20269 # incompatible with the Cstd library. Avoid specifying
20270 # it if it's in CXXFLAGS. Ignore libCrun as
20271 # -library=stlport4 depends on it.
20272 case " $CXX $CXXFLAGS " in
20273 *" -library=stlport4 "*)
20274 solaris_use_stlport4=yes
20278 if test "$solaris_use_stlport4" != yes; then
20279 postdeps_CXX='-library=Cstd -library=Crun'
20286 case $cc_basename in
20288 # The more standards-conforming stlport4 library is
20289 # incompatible with the Cstd library. Avoid specifying
20290 # it if it's in CXXFLAGS. Ignore libCrun as
20291 # -library=stlport4 depends on it.
20292 case " $CXX $CXXFLAGS " in
20293 *" -library=stlport4 "*)
20294 solaris_use_stlport4=yes
20298 # Adding this requires a known-good setup of shared libraries for
20299 # Sun compiler versions before 5.6, else PIC objects from an old
20300 # archive will be linked into the output, leading to subtle bugs.
20301 if test "$solaris_use_stlport4" != yes; then
20302 postdeps_CXX='-library=Cstd -library=Crun'
20310 case " $postdeps_CXX " in
20311 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20313 compiler_lib_search_dirs_CXX=
20314 if test -n "${compiler_lib_search_path_CXX}"; then
20315 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20348 lt_prog_compiler_wl_CXX=
20349 lt_prog_compiler_pic_CXX=
20350 lt_prog_compiler_static_CXX=
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20353 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20355 # C++ specific cases for pic, static, wl, etc.
20356 if test "$GXX" = yes; then
20357 lt_prog_compiler_wl_CXX='-Wl,'
20358 lt_prog_compiler_static_CXX='-static'
20362 # All AIX code is PIC.
20363 if test "$host_cpu" = ia64; then
20364 # AIX 5 now supports IA64 processor
20365 lt_prog_compiler_static_CXX='-Bstatic'
20367 lt_prog_compiler_pic_CXX='-fPIC'
20373 # see comment about AmigaOS4 .so support
20374 lt_prog_compiler_pic_CXX='-fPIC'
20377 # FIXME: we need at least 68020 code to build shared libraries, but
20378 # adding the `-m68020' flag to GCC prevents building anything better,
20380 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20385 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20386 # PIC is the default for these OSes.
20388 mingw* | cygwin* | os2* | pw32* | cegcc*)
20389 # This hack is so that the source file can tell whether it is being
20390 # built for inclusion in a dll (and should export symbols for example).
20391 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20392 # (--disable-auto-import) libraries
20393 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20395 darwin* | rhapsody*)
20396 # PIC is the default on this platform
20397 # Common symbols not allowed in MH_DYLIB files
20398 lt_prog_compiler_pic_CXX='-fno-common'
20401 # DJGPP does not support shared libraries at all
20402 lt_prog_compiler_pic_CXX=
20405 # PIC is the default for Haiku.
20406 # The "-static" flag exists, but is broken.
20407 lt_prog_compiler_static_CXX=
20410 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20411 # Instead, we relocate shared libraries at runtime.
20414 if test -d /usr/nec; then
20415 lt_prog_compiler_pic_CXX=-Kconform_pic
20419 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20420 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20421 # sets the default TLS model and affects inlining.
20426 lt_prog_compiler_pic_CXX='-fPIC'
20431 # QNX uses GNU C++, but need to define -shared option too, otherwise
20432 # it will coredump.
20433 lt_prog_compiler_pic_CXX='-fPIC -shared'
20436 lt_prog_compiler_pic_CXX='-fPIC'
20442 # All AIX code is PIC.
20443 if test "$host_cpu" = ia64; then
20444 # AIX 5 now supports IA64 processor
20445 lt_prog_compiler_static_CXX='-Bstatic'
20447 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20451 case $cc_basename in
20453 # Green Hills C++ Compiler
20454 # _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"
20459 case $cc_basename in
20461 lt_prog_compiler_pic_CXX='-KPIC'
20464 # Green Hills C++ Compiler
20465 lt_prog_compiler_pic_CXX='-pic'
20471 freebsd* | dragonfly*)
20472 # FreeBSD uses GNU C++
20474 hpux9* | hpux10* | hpux11*)
20475 case $cc_basename in
20477 lt_prog_compiler_wl_CXX='-Wl,'
20478 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20479 if test "$host_cpu" != ia64; then
20480 lt_prog_compiler_pic_CXX='+Z'
20484 lt_prog_compiler_wl_CXX='-Wl,'
20485 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20491 lt_prog_compiler_pic_CXX='+Z'
20500 # This is c89, which is MS Visual C++ (no shared libs)
20501 # Anyone wants to do a port?
20503 irix5* | irix6* | nonstopux*)
20504 case $cc_basename in
20506 lt_prog_compiler_wl_CXX='-Wl,'
20507 lt_prog_compiler_static_CXX='-non_shared'
20508 # CC pic flag -KPIC is the default.
20514 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20515 case $cc_basename in
20518 lt_prog_compiler_wl_CXX='--backend -Wl,'
20519 lt_prog_compiler_pic_CXX='-fPIC'
20522 # old Intel C++ for x86_64 which still supported -KPIC.
20523 lt_prog_compiler_wl_CXX='-Wl,'
20524 lt_prog_compiler_pic_CXX='-KPIC'
20525 lt_prog_compiler_static_CXX='-static'
20528 # Intel C++, used to be incompatible with GCC.
20529 # ICC 10 doesn't accept -KPIC any more.
20530 lt_prog_compiler_wl_CXX='-Wl,'
20531 lt_prog_compiler_pic_CXX='-fPIC'
20532 lt_prog_compiler_static_CXX='-static'
20535 # Portland Group C++ compiler
20536 lt_prog_compiler_wl_CXX='-Wl,'
20537 lt_prog_compiler_pic_CXX='-fpic'
20538 lt_prog_compiler_static_CXX='-Bstatic'
20542 # Make sure the PIC flag is empty. It appears that all Alpha
20543 # Linux and Compaq Tru64 Unix objects are PIC.
20544 lt_prog_compiler_pic_CXX=
20545 lt_prog_compiler_static_CXX='-non_shared'
20547 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20548 # IBM XL 8.0, 9.0 on PPC and BlueGene
20549 lt_prog_compiler_wl_CXX='-Wl,'
20550 lt_prog_compiler_pic_CXX='-qpic'
20551 lt_prog_compiler_static_CXX='-qstaticlink'
20554 case `$CC -V 2>&1 | sed 5q` in
20557 lt_prog_compiler_pic_CXX='-KPIC'
20558 lt_prog_compiler_static_CXX='-Bstatic'
20559 lt_prog_compiler_wl_CXX='-Qoption ld '
20570 case $cc_basename in
20572 lt_prog_compiler_pic_CXX='-W c,exportall'
20581 # QNX uses GNU C++, but need to define -shared option too, otherwise
20582 # it will coredump.
20583 lt_prog_compiler_pic_CXX='-fPIC -shared'
20585 osf3* | osf4* | osf5*)
20586 case $cc_basename in
20588 lt_prog_compiler_wl_CXX='--backend -Wl,'
20591 # Rational C++ 2.4.1
20592 lt_prog_compiler_pic_CXX='-pic'
20595 # Digital/Compaq C++
20596 lt_prog_compiler_wl_CXX='-Wl,'
20597 # Make sure the PIC flag is empty. It appears that all Alpha
20598 # Linux and Compaq Tru64 Unix objects are PIC.
20599 lt_prog_compiler_pic_CXX=
20600 lt_prog_compiler_static_CXX='-non_shared'
20609 case $cc_basename in
20611 # Sun C++ 4.2, 5.x and Centerline C++
20612 lt_prog_compiler_pic_CXX='-KPIC'
20613 lt_prog_compiler_static_CXX='-Bstatic'
20614 lt_prog_compiler_wl_CXX='-Qoption ld '
20617 # Green Hills C++ Compiler
20618 lt_prog_compiler_pic_CXX='-PIC'
20625 case $cc_basename in
20628 lt_prog_compiler_pic_CXX='-pic'
20629 lt_prog_compiler_static_CXX='-Bstatic'
20633 lt_prog_compiler_pic_CXX='-pic'
20639 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20640 case $cc_basename in
20642 lt_prog_compiler_wl_CXX='-Wl,'
20643 lt_prog_compiler_pic_CXX='-KPIC'
20644 lt_prog_compiler_static_CXX='-Bstatic'
20649 case $cc_basename in
20651 # NonStop-UX NCC 3.20
20652 lt_prog_compiler_pic_CXX='-KPIC'
20661 lt_prog_compiler_can_build_shared_CXX=no
20667 # For platforms which do not support PIC, -DPIC is meaningless:
20669 lt_prog_compiler_pic_CXX=
20672 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20676 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20681 # Check to make sure the PIC flag actually works.
20683 if test -n "$lt_prog_compiler_pic_CXX"; then
20684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20685 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20686 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20687 $as_echo_n "(cached) " >&6
20689 lt_cv_prog_compiler_pic_works_CXX=no
20690 ac_outfile=conftest.$ac_objext
20691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20692 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20693 # Insert the option either (1) after the last *FLAGS variable, or
20694 # (2) before a word containing "conftest.", or (3) at the end.
20695 # Note that $ac_compile itself does not contain backslashes and begins
20696 # with a dollar sign (not a hyphen), so the echo should work correctly.
20697 # The option is referenced via a variable to avoid confusing sed.
20698 lt_compile=`echo "$ac_compile" | $SED \
20699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20701 -e 's:$: $lt_compiler_flag:'`
20702 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20703 (eval "$lt_compile" 2>conftest.err)
20705 cat conftest.err >&5
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 if (exit $ac_status) && test -s "$ac_outfile"; then
20708 # The compiler can only warn and ignore the option if not recognized
20709 # So say no if there are warnings other than the usual output.
20710 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20713 lt_cv_prog_compiler_pic_works_CXX=yes
20719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20720 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20722 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20723 case $lt_prog_compiler_pic_CXX in
20725 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20728 lt_prog_compiler_pic_CXX=
20729 lt_prog_compiler_can_build_shared_CXX=no
20737 # Check to make sure the static flag actually works.
20739 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20741 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20742 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20743 $as_echo_n "(cached) " >&6
20745 lt_cv_prog_compiler_static_works_CXX=no
20746 save_LDFLAGS="$LDFLAGS"
20747 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20748 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20750 # The linker can only warn and ignore the option if not recognized
20751 # So say no if there are warnings
20752 if test -s conftest.err; then
20753 # Append any errors to the config.log.
20754 cat conftest.err 1>&5
20755 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20757 if diff conftest.exp conftest.er2 >/dev/null; then
20758 lt_cv_prog_compiler_static_works_CXX=yes
20761 lt_cv_prog_compiler_static_works_CXX=yes
20765 LDFLAGS="$save_LDFLAGS"
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20769 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20771 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20774 lt_prog_compiler_static_CXX=
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20781 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20782 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20783 $as_echo_n "(cached) " >&6
20785 lt_cv_prog_compiler_c_o_CXX=no
20786 $RM -r conftest 2>/dev/null
20790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20792 lt_compiler_flag="-o out/conftest2.$ac_objext"
20793 # Insert the option either (1) after the last *FLAGS variable, or
20794 # (2) before a word containing "conftest.", or (3) at the end.
20795 # Note that $ac_compile itself does not contain backslashes and begins
20796 # with a dollar sign (not a hyphen), so the echo should work correctly.
20797 lt_compile=`echo "$ac_compile" | $SED \
20798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20800 -e 's:$: $lt_compiler_flag:'`
20801 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20802 (eval "$lt_compile" 2>out/conftest.err)
20804 cat out/conftest.err >&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20808 # The compiler can only warn and ignore the option if not recognized
20809 # So say no if there are warnings
20810 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20811 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20812 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20813 lt_cv_prog_compiler_c_o_CXX=yes
20818 # SGI C++ compiler will create directory out/ii_files/ for
20819 # template instantiation
20820 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20821 $RM out/* && rmdir out
20827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20828 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20833 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20834 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20835 $as_echo_n "(cached) " >&6
20837 lt_cv_prog_compiler_c_o_CXX=no
20838 $RM -r conftest 2>/dev/null
20842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20844 lt_compiler_flag="-o out/conftest2.$ac_objext"
20845 # Insert the option either (1) after the last *FLAGS variable, or
20846 # (2) before a word containing "conftest.", or (3) at the end.
20847 # Note that $ac_compile itself does not contain backslashes and begins
20848 # with a dollar sign (not a hyphen), so the echo should work correctly.
20849 lt_compile=`echo "$ac_compile" | $SED \
20850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20852 -e 's:$: $lt_compiler_flag:'`
20853 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20854 (eval "$lt_compile" 2>out/conftest.err)
20856 cat out/conftest.err >&5
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20860 # The compiler can only warn and ignore the option if not recognized
20861 # So say no if there are warnings
20862 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20863 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20864 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20865 lt_cv_prog_compiler_c_o_CXX=yes
20870 # SGI C++ compiler will create directory out/ii_files/ for
20871 # template instantiation
20872 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20873 $RM out/* && rmdir out
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20880 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20885 hard_links="nottested"
20886 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20887 # do not overwrite the value of need_locks provided by the user
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20889 $as_echo_n "checking if we can lock with hard links... " >&6; }
20892 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20894 ln conftest.a conftest.b 2>&5 || hard_links=no
20895 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20897 $as_echo "$hard_links" >&6; }
20898 if test "$hard_links" = no; then
20899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20900 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20910 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20912 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20915 # If we're using GNU nm, then we don't want the "-C" option.
20916 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20917 # Also, AIX nm treats weak defined symbols like other global defined
20918 # symbols, whereas GNU nm marks them as "W".
20919 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20920 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'
20922 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'
20926 export_symbols_cmds_CXX="$ltdll_cmds"
20928 cygwin* | mingw* | cegcc*)
20929 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'
20932 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20935 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20938 $as_echo "$ld_shlibs_CXX" >&6; }
20939 test "$ld_shlibs_CXX" = no && can_build_shared=no
20941 with_gnu_ld_CXX=$with_gnu_ld
20949 # Do we need to explicitly link libc?
20951 case "x$archive_cmds_need_lc_CXX" in
20953 # Assume -lc should be added
20954 archive_cmds_need_lc_CXX=yes
20956 if test "$enable_shared" = yes && test "$GCC" = yes; then
20957 case $archive_cmds_CXX in
20959 # FIXME: we may have to deal with multi-command sequences.
20962 # Test whether the compiler implicitly links with -lc since on some
20963 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20964 # to ld, don't add -lc before -lgcc.
20965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20966 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20967 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20968 $as_echo_n "(cached) " >&6
20971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20974 (eval $ac_compile) 2>&5
20976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20977 test $ac_status = 0; } 2>conftest.err; then
20980 libobjs=conftest.$ac_objext
20982 wl=$lt_prog_compiler_wl_CXX
20983 pic_flag=$lt_prog_compiler_pic_CXX
20989 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20990 allow_undefined_flag_CXX=
20991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20992 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20995 test $ac_status = 0; }
20997 lt_cv_archive_cmds_need_lc_CXX=no
20999 lt_cv_archive_cmds_need_lc_CXX=yes
21001 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21003 cat conftest.err 1>&5
21008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21009 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21010 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21081 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21083 library_names_spec=
21084 libname_spec='lib$name'
21088 postuninstall_cmds=
21092 shlibpath_overrides_runpath=unknown
21094 dynamic_linker="$host_os ld.so"
21095 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21096 need_lib_prefix=unknown
21097 hardcode_into_libs=no
21099 # when you set need_version to no, make sure it does not cause -set_version
21100 # flags to be left without arguments
21101 need_version=unknown
21106 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21107 shlibpath_var=LIBPATH
21109 # AIX 3 has no versioning support, so we append a major version to the name.
21110 soname_spec='${libname}${release}${shared_ext}$major'
21117 hardcode_into_libs=yes
21118 if test "$host_cpu" = ia64; then
21119 # AIX 5 supports IA64
21120 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21121 shlibpath_var=LD_LIBRARY_PATH
21123 # With GCC up to 2.95.x, collect2 would create an import file
21124 # for dependence libraries. The import file would start with
21125 # the line `#! .'. This would cause the generated library to
21126 # depend on `.', always an invalid library. This was fixed in
21127 # development snapshots of GCC prior to 3.0.
21129 aix4 | aix4.[01] | aix4.[01].*)
21130 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21132 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21135 can_build_shared=no
21139 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21140 # soname into executable. Probably we can add versioning support to
21141 # collect2, so additional links can be useful in future.
21142 if test "$aix_use_runtimelinking" = yes; then
21143 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21144 # instead of lib<name>.a to let people know that these are not
21145 # typical AIX shared libraries.
21146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21148 # We preserve .a as extension for shared libraries through AIX4.2
21149 # and later when we are not doing run time linking.
21150 library_names_spec='${libname}${release}.a $libname.a'
21151 soname_spec='${libname}${release}${shared_ext}$major'
21153 shlibpath_var=LIBPATH
21160 # Since July 2007 AmigaOS4 officially supports .so libraries.
21161 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21165 library_names_spec='$libname.ixlibrary $libname.a'
21166 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21167 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'
21173 library_names_spec='${libname}${shared_ext}'
21174 dynamic_linker="$host_os ld.so"
21175 shlibpath_var=LIBRARY_PATH
21181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21182 soname_spec='${libname}${release}${shared_ext}$major'
21183 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21184 shlibpath_var=LD_LIBRARY_PATH
21185 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21186 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21187 # the default ld.so.conf also contains /usr/contrib/lib and
21188 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21189 # libtool to hard-code these into programs
21192 cygwin* | mingw* | pw32* | cegcc*)
21193 version_type=windows
21198 case $GCC,$host_os in
21199 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21200 library_names_spec='$libname.dll.a'
21201 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21202 postinstall_cmds='base_file=`basename \${file}`~
21203 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21204 dldir=$destdir/`dirname \$dlpath`~
21205 test -d \$dldir || mkdir -p \$dldir~
21206 $install_prog $dir/$dlname \$dldir/$dlname~
21207 chmod a+x \$dldir/$dlname~
21208 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21209 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21211 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21212 dlpath=$dir/\$dldll~
21214 shlibpath_overrides_runpath=yes
21218 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21219 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21223 # MinGW DLLs use traditional 'lib' prefix
21224 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21227 # pw32 DLLs use 'pw' prefix rather than 'lib'
21228 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21234 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21237 dynamic_linker='Win32 ld.exe'
21238 # FIXME: first we should search . and the directory the executable is in
21242 darwin* | rhapsody*)
21243 dynamic_linker="$host_os dyld"
21244 version_type=darwin
21247 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21248 soname_spec='${libname}${release}${major}$shared_ext'
21249 shlibpath_overrides_runpath=yes
21250 shlibpath_var=DYLD_LIBRARY_PATH
21251 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21253 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21261 soname_spec='${libname}${release}${shared_ext}$major'
21262 shlibpath_var=LD_LIBRARY_PATH
21265 freebsd* | dragonfly*)
21266 # DragonFly does not have aout. When/if they implement a new
21267 # versioning mechanism, adjust this.
21268 if test -x /usr/bin/objformat; then
21269 objformat=`/usr/bin/objformat`
21272 freebsd[23].*) objformat=aout ;;
21273 *) objformat=elf ;;
21276 version_type=freebsd-$objformat
21277 case $version_type in
21279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21288 shlibpath_var=LD_LIBRARY_PATH
21291 shlibpath_overrides_runpath=yes
21293 freebsd3.[01]* | freebsdelf3.[01]*)
21294 shlibpath_overrides_runpath=yes
21295 hardcode_into_libs=yes
21297 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21298 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21299 shlibpath_overrides_runpath=no
21300 hardcode_into_libs=yes
21302 *) # from 4.6 on, and DragonFly
21303 shlibpath_overrides_runpath=yes
21304 hardcode_into_libs=yes
21313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21314 soname_spec='${libname}${release}${shared_ext}$major'
21315 shlibpath_var=LD_LIBRARY_PATH
21316 hardcode_into_libs=yes
21323 dynamic_linker="$host_os runtime_loader"
21324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21325 soname_spec='${libname}${release}${shared_ext}$major'
21326 shlibpath_var=LIBRARY_PATH
21327 shlibpath_overrides_runpath=yes
21328 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21329 hardcode_into_libs=yes
21332 hpux9* | hpux10* | hpux11*)
21333 # Give a soname corresponding to the major version so that dld.sl refuses to
21334 # link against other versions.
21341 hardcode_into_libs=yes
21342 dynamic_linker="$host_os dld.so"
21343 shlibpath_var=LD_LIBRARY_PATH
21344 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21346 soname_spec='${libname}${release}${shared_ext}$major'
21347 if test "X$HPUX_IA64_MODE" = X32; then
21348 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21350 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21352 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21356 hardcode_into_libs=yes
21357 dynamic_linker="$host_os dld.sl"
21358 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21359 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21361 soname_spec='${libname}${release}${shared_ext}$major'
21362 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21363 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21367 dynamic_linker="$host_os dld.sl"
21368 shlibpath_var=SHLIB_PATH
21369 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21371 soname_spec='${libname}${release}${shared_ext}$major'
21374 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21375 postinstall_cmds='chmod 555 $lib'
21376 # or fails outright, so override atomically:
21377 install_override_mode=555
21384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21385 soname_spec='${libname}${release}${shared_ext}$major'
21386 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21387 shlibpath_var=LD_LIBRARY_PATH
21388 shlibpath_overrides_runpath=no
21389 hardcode_into_libs=yes
21392 irix5* | irix6* | nonstopux*)
21394 nonstopux*) version_type=nonstopux ;;
21396 if test "$lt_cv_prog_gnu_ld" = yes; then
21404 soname_spec='${libname}${release}${shared_ext}$major'
21405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21407 irix5* | nonstopux*)
21408 libsuff= shlibsuff=
21411 case $LD in # libtool.m4 will add one of these switches to LD
21412 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21413 libsuff= shlibsuff= libmagic=32-bit;;
21414 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21415 libsuff=32 shlibsuff=N32 libmagic=N32;;
21416 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21417 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21418 *) libsuff= shlibsuff= libmagic=never-match;;
21422 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21423 shlibpath_overrides_runpath=no
21424 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21425 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21426 hardcode_into_libs=yes
21429 # No shared lib support for Linux oldld, aout, or coff.
21430 linux*oldld* | linux*aout* | linux*coff*)
21434 # This must be Linux ELF.
21435 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21440 soname_spec='${libname}${release}${shared_ext}$major'
21441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21442 shlibpath_var=LD_LIBRARY_PATH
21443 shlibpath_overrides_runpath=no
21445 # Some binutils ld are patched to set DT_RUNPATH
21446 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21447 $as_echo_n "(cached) " >&6
21449 lt_cv_shlibpath_overrides_runpath=no
21450 save_LDFLAGS=$LDFLAGS
21451 save_libdir=$libdir
21452 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21453 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21455 /* end confdefs.h. */
21465 if ac_fn_cxx_try_link "$LINENO"; then :
21466 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21467 lt_cv_shlibpath_overrides_runpath=yes
21470 rm -f core conftest.err conftest.$ac_objext \
21471 conftest$ac_exeext conftest.$ac_ext
21472 LDFLAGS=$save_LDFLAGS
21473 libdir=$save_libdir
21477 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21479 # This implies no fast_install, which is unacceptable.
21480 # Some rework will be needed to allow for fast_install
21481 # before this can be enabled.
21482 hardcode_into_libs=yes
21484 # Append ld.so.conf contents to the search path
21485 if test -f /etc/ld.so.conf; then
21486 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' ' '`
21487 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21490 # We used to test for /lib/ld.so.1 and disable shared libraries on
21491 # powerpc, because MkLinux only supported shared libraries with the
21492 # GNU dynamic linker. Since this was broken with cross compilers,
21493 # most powerpc-linux boxes support dynamic linking these days and
21494 # people can always --disable-shared, the test was removed, and we
21495 # assume the GNU/Linux dynamic linker is in use.
21496 dynamic_linker='GNU/Linux ld.so'
21503 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21506 dynamic_linker='NetBSD (a.out) ld.so'
21508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21509 soname_spec='${libname}${release}${shared_ext}$major'
21510 dynamic_linker='NetBSD ld.elf_so'
21512 shlibpath_var=LD_LIBRARY_PATH
21513 shlibpath_overrides_runpath=yes
21514 hardcode_into_libs=yes
21519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21520 shlibpath_var=LD_LIBRARY_PATH
21521 shlibpath_overrides_runpath=yes
21528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21529 soname_spec='${libname}${release}${shared_ext}$major'
21530 shlibpath_var=LD_LIBRARY_PATH
21531 shlibpath_overrides_runpath=no
21532 hardcode_into_libs=yes
21533 dynamic_linker='ldqnx.so'
21538 sys_lib_dlsearch_path_spec="/usr/lib"
21540 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21542 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21543 *) need_version=no ;;
21545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21547 shlibpath_var=LD_LIBRARY_PATH
21548 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21550 openbsd2.[89] | openbsd2.[89].*)
21551 shlibpath_overrides_runpath=no
21554 shlibpath_overrides_runpath=yes
21558 shlibpath_overrides_runpath=yes
21563 libname_spec='$name'
21566 library_names_spec='$libname${shared_ext} $libname.a'
21567 dynamic_linker='OS/2 ld.exe'
21568 shlibpath_var=LIBPATH
21571 osf3* | osf4* | osf5*)
21575 soname_spec='${libname}${release}${shared_ext}$major'
21576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21577 shlibpath_var=LD_LIBRARY_PATH
21578 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21579 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21591 soname_spec='${libname}${release}${shared_ext}$major'
21592 shlibpath_var=LD_LIBRARY_PATH
21593 shlibpath_overrides_runpath=yes
21594 hardcode_into_libs=yes
21595 # ldd complains unless libraries are executable
21596 postinstall_cmds='chmod +x $lib'
21601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21602 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21603 shlibpath_var=LD_LIBRARY_PATH
21604 shlibpath_overrides_runpath=yes
21605 if test "$with_gnu_ld" = yes; then
21613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21614 soname_spec='${libname}${release}${shared_ext}$major'
21615 shlibpath_var=LD_LIBRARY_PATH
21616 case $host_vendor in
21618 shlibpath_overrides_runpath=no
21620 runpath_var=LD_RUN_PATH
21628 shlibpath_overrides_runpath=no
21629 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21635 if test -d /usr/nec ;then
21637 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21638 soname_spec='$libname${shared_ext}.$major'
21639 shlibpath_var=LD_LIBRARY_PATH
21643 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21644 version_type=freebsd-elf
21647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21648 soname_spec='${libname}${release}${shared_ext}$major'
21649 shlibpath_var=LD_LIBRARY_PATH
21650 shlibpath_overrides_runpath=yes
21651 hardcode_into_libs=yes
21652 if test "$with_gnu_ld" = yes; then
21653 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21655 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21658 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21662 sys_lib_dlsearch_path_spec='/usr/lib'
21666 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21671 shlibpath_var=LD_LIBRARY_PATH
21672 shlibpath_overrides_runpath=no
21673 hardcode_into_libs=yes
21678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21679 soname_spec='${libname}${release}${shared_ext}$major'
21680 shlibpath_var=LD_LIBRARY_PATH
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21688 $as_echo "$dynamic_linker" >&6; }
21689 test "$dynamic_linker" = no && can_build_shared=no
21691 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21692 if test "$GCC" = yes; then
21693 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21696 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21697 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21699 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21700 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21741 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21742 hardcode_action_CXX=
21743 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21744 test -n "$runpath_var_CXX" ||
21745 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21747 # We can hardcode non-existent directories.
21748 if test "$hardcode_direct_CXX" != no &&
21749 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21750 # have to relink, otherwise we might link with an installed library
21751 # when we should be linking with a yet-to-be-installed one
21752 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21753 test "$hardcode_minus_L_CXX" != no; then
21754 # Linking always hardcodes the temporary library directory.
21755 hardcode_action_CXX=relink
21757 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21758 hardcode_action_CXX=immediate
21761 # We cannot hardcode anything, or else we can only hardcode existing
21763 hardcode_action_CXX=unsupported
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21766 $as_echo "$hardcode_action_CXX" >&6; }
21768 if test "$hardcode_action_CXX" = relink ||
21769 test "$inherit_rpath_CXX" = yes; then
21770 # Fast installation is not supported
21771 enable_fast_install=no
21772 elif test "$shlibpath_overrides_runpath" = yes ||
21773 test "$enable_shared" = no; then
21774 # Fast installation is not necessary
21775 enable_fast_install=needless
21784 fi # test -n "$compiler"
21790 with_gnu_ld=$lt_save_with_gnu_ld
21791 lt_cv_path_LDCXX=$lt_cv_path_LD
21792 lt_cv_path_LD=$lt_save_path_LD
21793 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21794 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21795 fi # test "$_lt_caught_CXX_error" != yes
21798 ac_cpp='$CXXCPP $CPPFLAGS'
21799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21818 # Only expand once:
21824 # Identify the assembler which will work hand-in-glove with the newly
21825 # built GCC, so that we can examine its features. This is the assembler
21826 # which will be driven by the driver program.
21828 # If build != host, and we aren't building gas in-tree, we identify a
21829 # build->target assembler and hope that it will have the same features
21830 # as the host->target assembler we'll be using.
21831 gcc_cv_gas_major_version=
21832 gcc_cv_gas_minor_version=
21833 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21835 if test "${gcc_cv_as+set}" = set; then :
21839 if test -x "$DEFAULT_ASSEMBLER"; then
21840 gcc_cv_as="$DEFAULT_ASSEMBLER"
21841 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21842 && test -f ../gas/Makefile \
21843 && test x$build = x$host; then
21844 gcc_cv_as=../gas/as-new$build_exeext
21845 elif test -x as$build_exeext; then
21846 # Build using assembler in the current directory.
21847 gcc_cv_as=./as$build_exeext
21848 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21849 gcc_cv_as="$AS_FOR_TARGET"
21851 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21852 set dummy $AS_FOR_TARGET; ac_word=$2
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21854 $as_echo_n "checking for $ac_word... " >&6; }
21855 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21856 $as_echo_n "(cached) " >&6
21860 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21864 for as_dir in $PATH
21867 test -z "$as_dir" && as_dir=.
21868 for ac_exec_ext in '' $ac_executable_extensions; do
21869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21870 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21881 gcc_cv_as=$ac_cv_path_gcc_cv_as
21882 if test -n "$gcc_cv_as"; then
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21884 $as_echo "$gcc_cv_as" >&6; }
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21887 $as_echo "no" >&6; }
21894 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21896 case "$ORIGINAL_AS_FOR_TARGET" in
21897 ./as | ./as$build_exeext) ;;
21898 *) ac_config_files="$ac_config_files as:exec-tool.in"
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21903 $as_echo_n "checking what assembler to use... " >&6; }
21904 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21905 # Single tree build which includes gas. We want to prefer it
21906 # over whatever linker top-level may have detected, since
21907 # we'll use what we're building after installation anyway.
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21909 $as_echo "newly built gas" >&6; }
21911 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21912 for f in $gcc_cv_as_bfd_srcdir/configure \
21913 $gcc_cv_as_gas_srcdir/configure \
21914 $gcc_cv_as_gas_srcdir/configure.ac \
21915 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21916 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21917 if test x$gcc_cv_gas_version != x; then
21921 case $gcc_cv_gas_version in
21923 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21925 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21926 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21927 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21928 case $gcc_cv_gas_patch_version in
21929 "") gcc_cv_gas_patch_version="0" ;;
21931 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21932 + $gcc_cv_gas_minor_version \) \* 1000 \
21933 + $gcc_cv_gas_patch_version`
21935 in_tree_gas_is_elf=no
21936 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21937 || (grep 'obj_format = multi' ../gas/Makefile \
21938 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21940 in_tree_gas_is_elf=yes
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21944 $as_echo "$gcc_cv_as" >&6; }
21949 # Check whether --enable-ld was given.
21950 if test "${enable_ld+set}" = set; then :
21951 enableval=$enable_ld; case "${enableval}" in
21959 install_gold_as_default=no
21960 # Check whether --enable-gold was given.
21961 if test "${enable_gold+set}" = set; then :
21962 enableval=$enable_gold; case "${enableval}" in
21964 install_gold_as_default=yes
21967 if test x${default_ld} != x; then
21968 install_gold_as_default=yes
21974 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21980 # Identify the linker which will work hand-in-glove with the newly
21981 # built GCC, so that we can examine its features. This is the linker
21982 # which will be driven by the driver program.
21984 # If build != host, and we aren't building gas in-tree, we identify a
21985 # build->target linker and hope that it will have the same features
21986 # as the host->target linker we'll be using.
21987 gcc_cv_gld_major_version=
21988 gcc_cv_gld_minor_version=
21989 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21990 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21991 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21993 if test "${gcc_cv_ld+set}" = set; then :
21997 if test -x "$DEFAULT_LINKER"; then
21998 gcc_cv_ld="$DEFAULT_LINKER"
21999 elif test $install_gold_as_default = yes \
22000 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22001 && test -f ../gold/Makefile \
22002 && test x$build = x$host; then
22003 gcc_cv_ld=../gold/ld-new$build_exeext
22004 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22005 && test -f ../ld/Makefile \
22006 && test x$build = x$host; then
22007 gcc_cv_ld=../ld/ld-new$build_exeext
22008 elif test -x collect-ld$build_exeext; then
22009 # Build using linker in the current directory.
22010 gcc_cv_ld=./collect-ld$build_exeext
22011 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22012 gcc_cv_ld="$LD_FOR_TARGET"
22014 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22015 set dummy $LD_FOR_TARGET; ac_word=$2
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22017 $as_echo_n "checking for $ac_word... " >&6; }
22018 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22019 $as_echo_n "(cached) " >&6
22023 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22027 for as_dir in $PATH
22030 test -z "$as_dir" && as_dir=.
22031 for ac_exec_ext in '' $ac_executable_extensions; do
22032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22033 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22044 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22045 if test -n "$gcc_cv_ld"; then
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22047 $as_echo "$gcc_cv_ld" >&6; }
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22050 $as_echo "no" >&6; }
22057 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22058 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22059 # if the PLUGIN_LD is set ld-new, just have it as ld
22060 # as that is the installed named.
22061 if test x$PLUGIN_LD_SUFFIX = xld-new \
22062 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22063 PLUGIN_LD_SUFFIX=ld
22066 # Check whether --with-plugin-ld was given.
22067 if test "${with_plugin_ld+set}" = set; then :
22068 withval=$with_plugin_ld; if test x"$withval" != x; then
22069 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22070 PLUGIN_LD_SUFFIX="$withval"
22076 cat >>confdefs.h <<_ACEOF
22077 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22081 # Check to see if we are using gold instead of ld
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22083 $as_echo_n "checking whether we are using gold... " >&6; }
22085 if test x$gcc_cv_ld != x; then
22086 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22087 | grep "GNU gold" > /dev/null; then
22091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22092 $as_echo "$ld_is_gold" >&6; }
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22095 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22096 # Check to see if default ld is not gold, but gold is
22097 # available and has support for split stack. If gcc was configured
22098 # with gold then no checking is done.
22100 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22102 # For platforms other than powerpc64*, enable as appropriate.
22104 gold_non_default=no
22105 ld_gold=`which ${gcc_cv_ld}.gold`
22106 # Make sure this gold has minimal split stack support
22107 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22108 ld_vers=`$ld_gold --version | sed 1q`
22109 gold_vers=`echo $ld_vers | sed -n \
22110 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22112 # check that the gold version contains the complete split stack support
22113 # on powerpc64 big and little endian
22115 case "$gold_vers" in
22116 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22118 *) gold_non_default=no
22124 if test $gold_non_default = yes; then
22126 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22131 $as_echo "$gold_non_default" >&6; }
22133 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22135 case "$ORIGINAL_LD_FOR_TARGET" in
22136 ./collect-ld | ./collect-ld$build_exeext) ;;
22137 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22142 $as_echo_n "checking what linker to use... " >&6; }
22143 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22144 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22145 # Single tree build which includes ld. We want to prefer it
22146 # over whatever linker top-level may have detected, since
22147 # we'll use what we're building after installation anyway.
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22149 $as_echo "newly built ld" >&6; }
22151 in_tree_ld_is_elf=no
22152 if (grep 'EMUL = .*elf' ../ld/Makefile \
22153 || grep 'EMUL = .*linux' ../ld/Makefile \
22154 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22155 in_tree_ld_is_elf=yes
22156 elif test "$ld_is_gold" = yes; then
22157 in_tree_ld_is_elf=yes
22159 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
22161 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22162 if test x$gcc_cv_gld_version != x; then
22166 case $gcc_cv_gld_version in
22168 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22170 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22171 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22172 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22173 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22176 $as_echo "$gcc_cv_ld" >&6; }
22178 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22179 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22180 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22186 # Figure out what nm we will be using.
22187 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22188 if test "${gcc_cv_nm+set}" = set; then :
22192 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22193 && test -f ../binutils/Makefile \
22194 && test x$build = x$host; then
22195 gcc_cv_nm=../binutils/nm-new$build_exeext
22196 elif test -x nm$build_exeext; then
22197 gcc_cv_nm=./nm$build_exeext
22198 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22199 gcc_cv_nm="$NM_FOR_TARGET"
22201 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22202 set dummy $NM_FOR_TARGET; ac_word=$2
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22204 $as_echo_n "checking for $ac_word... " >&6; }
22205 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22206 $as_echo_n "(cached) " >&6
22210 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22214 for as_dir in $PATH
22217 test -z "$as_dir" && as_dir=.
22218 for ac_exec_ext in '' $ac_executable_extensions; do
22219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22220 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22231 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22232 if test -n "$gcc_cv_nm"; then
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22234 $as_echo "$gcc_cv_nm" >&6; }
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22237 $as_echo "no" >&6; }
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22245 $as_echo_n "checking what nm to use... " >&6; }
22246 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22247 # Single tree build which includes binutils.
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22249 $as_echo "newly built nm" >&6; }
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22253 $as_echo "$gcc_cv_nm" >&6; }
22257 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22259 case "$ORIGINAL_NM_FOR_TARGET" in
22260 ./nm | ./nm$build_exeext) ;;
22261 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22266 # Figure out what objdump we will be using.
22267 if test "${gcc_cv_objdump+set}" = set; then :
22271 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22272 && test -f ../binutils/Makefile \
22273 && test x$build = x$host; then
22274 # Single tree build which includes binutils.
22275 gcc_cv_objdump=../binutils/objdump$build_exeext
22276 elif test -x objdump$build_exeext; then
22277 gcc_cv_objdump=./objdump$build_exeext
22278 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22279 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22281 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22282 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22284 $as_echo_n "checking for $ac_word... " >&6; }
22285 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22286 $as_echo_n "(cached) " >&6
22288 case $gcc_cv_objdump in
22290 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22294 for as_dir in $PATH
22297 test -z "$as_dir" && as_dir=.
22298 for ac_exec_ext in '' $ac_executable_extensions; do
22299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22300 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22311 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22312 if test -n "$gcc_cv_objdump"; then
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22314 $as_echo "$gcc_cv_objdump" >&6; }
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22317 $as_echo "no" >&6; }
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22325 $as_echo_n "checking what objdump to use... " >&6; }
22326 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22327 # Single tree build which includes binutils.
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22329 $as_echo "newly built objdump" >&6; }
22330 elif test x$gcc_cv_objdump = x; then
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22332 $as_echo "not found" >&6; }
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22335 $as_echo "$gcc_cv_objdump" >&6; }
22338 # Figure out what readelf we will be using.
22339 if test "${gcc_cv_readelf+set}" = set; then :
22343 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22344 && test -f ../binutils/Makefile \
22345 && test x$build = x$host; then
22346 # Single tree build which includes binutils.
22347 gcc_cv_readelf=../binutils/readelf$build_exeext
22348 elif test -x readelf$build_exeext; then
22349 gcc_cv_readelf=./readelf$build_exeext
22350 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22351 gcc_cv_readelf="$READELF_FOR_TARGET"
22353 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22354 set dummy $READELF_FOR_TARGET; ac_word=$2
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22356 $as_echo_n "checking for $ac_word... " >&6; }
22357 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22358 $as_echo_n "(cached) " >&6
22360 case $gcc_cv_readelf in
22362 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22366 for as_dir in $PATH
22369 test -z "$as_dir" && as_dir=.
22370 for ac_exec_ext in '' $ac_executable_extensions; do
22371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22372 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22383 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22384 if test -n "$gcc_cv_readelf"; then
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22386 $as_echo "$gcc_cv_readelf" >&6; }
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22389 $as_echo "no" >&6; }
22396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22397 $as_echo_n "checking what readelf to use... " >&6; }
22398 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22399 # Single tree build which includes binutils.
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22401 $as_echo "newly built readelf" >&6; }
22402 elif test x$gcc_cv_readelf = x; then
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22404 $as_echo "not found" >&6; }
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22407 $as_echo "$gcc_cv_readelf" >&6; }
22410 # Figure out what assembler alignment features are present.
22411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22412 $as_echo_n "checking assembler flags... " >&6; }
22413 if test "${gcc_cv_as_flags+set}" = set; then :
22414 $as_echo_n "(cached) " >&6
22417 i[34567]86-*-linux*)
22418 gcc_cv_as_flags=--32
22420 x86_64-*-linux-gnux32)
22421 gcc_cv_as_flags=--x32
22424 gcc_cv_as_flags=--64
22426 powerpc*-*-darwin*)
22427 gcc_cv_as_flags="-arch ppc"
22430 gcc_cv_as_flags=" "
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22435 $as_echo "$gcc_cv_as_flags" >&6; }
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22438 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22439 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22440 $as_echo_n "(cached) " >&6
22442 gcc_cv_as_balign_and_p2align=no
22443 if test $in_tree_gas = yes; then
22444 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22445 then gcc_cv_as_balign_and_p2align=yes
22447 elif test x$gcc_cv_as != x; then
22448 $as_echo '.balign 4
22449 .p2align 2' > conftest.s
22450 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22452 (eval $ac_try) 2>&5
22454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22455 test $ac_status = 0; }; }
22457 gcc_cv_as_balign_and_p2align=yes
22459 echo "configure: failed program was" >&5
22462 rm -f conftest.o conftest.s
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22466 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22467 if test $gcc_cv_as_balign_and_p2align = yes; then
22469 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22474 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22475 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22476 $as_echo_n "(cached) " >&6
22478 gcc_cv_as_max_skip_p2align=no
22479 if test $in_tree_gas = yes; then
22480 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22481 then gcc_cv_as_max_skip_p2align=yes
22483 elif test x$gcc_cv_as != x; then
22484 $as_echo '.p2align 4,,7' > conftest.s
22485 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22487 (eval $ac_try) 2>&5
22489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22490 test $ac_status = 0; }; }
22492 gcc_cv_as_max_skip_p2align=yes
22494 echo "configure: failed program was" >&5
22497 rm -f conftest.o conftest.s
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22501 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22502 if test $gcc_cv_as_max_skip_p2align = yes; then
22504 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22509 $as_echo_n "checking assembler for .literal16... " >&6; }
22510 if test "${gcc_cv_as_literal16+set}" = set; then :
22511 $as_echo_n "(cached) " >&6
22513 gcc_cv_as_literal16=no
22514 if test $in_tree_gas = yes; then
22515 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22516 then gcc_cv_as_literal16=yes
22518 elif test x$gcc_cv_as != x; then
22519 $as_echo '.literal16' > conftest.s
22520 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22522 (eval $ac_try) 2>&5
22524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22525 test $ac_status = 0; }; }
22527 gcc_cv_as_literal16=yes
22529 echo "configure: failed program was" >&5
22532 rm -f conftest.o conftest.s
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22536 $as_echo "$gcc_cv_as_literal16" >&6; }
22537 if test $gcc_cv_as_literal16 = yes; then
22539 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22544 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22545 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22546 $as_echo_n "(cached) " >&6
22548 gcc_cv_as_subsection_m1=no
22549 if test $in_tree_gas = yes; then
22550 if test $in_tree_gas_is_elf = yes \
22551 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22552 then gcc_cv_as_subsection_m1=yes
22554 elif test x$gcc_cv_as != x; then
22555 $as_echo 'conftest_label1: .word 0
22557 conftest_label2: .word 0
22558 .previous' > conftest.s
22559 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22561 (eval $ac_try) 2>&5
22563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22564 test $ac_status = 0; }; }
22566 if test x$gcc_cv_nm != x; then
22567 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22568 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22569 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22571 else gcc_cv_as_subsection_m1=yes
22573 rm -f conftest.nm1 conftest.nm2
22576 echo "configure: failed program was" >&5
22579 rm -f conftest.o conftest.s
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22583 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22584 if test $gcc_cv_as_subsection_m1 = yes; then
22586 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22591 $as_echo_n "checking assembler for .weak... " >&6; }
22592 if test "${gcc_cv_as_weak+set}" = set; then :
22593 $as_echo_n "(cached) " >&6
22596 if test $in_tree_gas = yes; then
22597 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22598 then gcc_cv_as_weak=yes
22600 elif test x$gcc_cv_as != x; then
22601 $as_echo ' .weak foobar' > conftest.s
22602 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22604 (eval $ac_try) 2>&5
22606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22607 test $ac_status = 0; }; }
22611 echo "configure: failed program was" >&5
22614 rm -f conftest.o conftest.s
22617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22618 $as_echo "$gcc_cv_as_weak" >&6; }
22619 if test $gcc_cv_as_weak = yes; then
22621 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22626 $as_echo_n "checking assembler for .weakref... " >&6; }
22627 if test "${gcc_cv_as_weakref+set}" = set; then :
22628 $as_echo_n "(cached) " >&6
22630 gcc_cv_as_weakref=no
22631 if test $in_tree_gas = yes; then
22632 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22633 then gcc_cv_as_weakref=yes
22635 elif test x$gcc_cv_as != x; then
22636 $as_echo ' .weakref foobar, barfnot' > conftest.s
22637 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22639 (eval $ac_try) 2>&5
22641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22642 test $ac_status = 0; }; }
22644 gcc_cv_as_weakref=yes
22646 echo "configure: failed program was" >&5
22649 rm -f conftest.o conftest.s
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22653 $as_echo "$gcc_cv_as_weakref" >&6; }
22654 if test $gcc_cv_as_weakref = yes; then
22656 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22661 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22662 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22663 $as_echo_n "(cached) " >&6
22665 gcc_cv_as_nsubspa_comdat=no
22666 if test $in_tree_gas = yes; then
22667 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22668 then gcc_cv_as_nsubspa_comdat=yes
22670 elif test x$gcc_cv_as != x; then
22671 $as_echo ' .SPACE $TEXT$
22672 .NSUBSPA $CODE$,COMDAT' > conftest.s
22673 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22675 (eval $ac_try) 2>&5
22677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22678 test $ac_status = 0; }; }
22680 gcc_cv_as_nsubspa_comdat=yes
22682 echo "configure: failed program was" >&5
22685 rm -f conftest.o conftest.s
22688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22689 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22690 if test $gcc_cv_as_nsubspa_comdat = yes; then
22692 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22696 # .hidden needs to be supported in both the assembler and the linker,
22697 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22698 # This is irritatingly difficult to feature test for; we have to check the
22699 # date string after the version number. If we've got an in-tree
22700 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22702 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22704 $as_echo_n "checking assembler for .hidden... " >&6; }
22705 if test "${gcc_cv_as_hidden+set}" = set; then :
22706 $as_echo_n "(cached) " >&6
22708 gcc_cv_as_hidden=no
22709 if test $in_tree_gas = yes; then
22710 if test $in_tree_gas_is_elf = yes \
22711 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22712 then gcc_cv_as_hidden=yes
22714 elif test x$gcc_cv_as != x; then
22715 $as_echo ' .hidden foobar
22716 foobar:' > conftest.s
22717 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22719 (eval $ac_try) 2>&5
22721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22722 test $ac_status = 0; }; }
22724 gcc_cv_as_hidden=yes
22726 echo "configure: failed program was" >&5
22729 rm -f conftest.o conftest.s
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22733 $as_echo "$gcc_cv_as_hidden" >&6; }
22735 case "${target}" in
22737 # Darwin as has some visibility support, though with a different syntax.
22738 gcc_cv_as_hidden=yes
22742 # gnu_indirect_function type is an extension proposed at
22743 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22744 # selection of function implementation
22745 # Check whether --enable-gnu-indirect-function was given.
22746 if test "${enable_gnu_indirect_function+set}" = set; then :
22747 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22749 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22750 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22753 enable_gnu_indirect_function="$default_gnu_indirect_function"
22757 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22759 cat >>confdefs.h <<_ACEOF
22760 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22765 if test $in_tree_ld != yes ; then
22766 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22767 if echo "$ld_ver" | grep GNU > /dev/null; then
22768 if test x"$ld_is_gold" = xyes; then
22769 # GNU gold --version looks like this:
22771 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22773 # We extract the binutils version which is more familiar and specific
22774 # than the gold version.
22775 ld_vers=`echo $ld_ver | sed -n \
22776 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22778 # GNU ld --version looks like this:
22780 # GNU ld (GNU Binutils) 2.21.51.20110225
22781 ld_vers=`echo $ld_ver | sed -n \
22782 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22784 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
22785 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22786 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22787 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22789 case "${target}" in
22791 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22794 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22795 # /usr/ccs/bin/ld has been configured.
22796 ld_ver=`$gcc_cv_ld -V 2>&1`
22797 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22798 ld_vers=`echo $ld_ver | sed -n \
22799 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22800 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22801 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22809 $as_echo_n "checking linker for .hidden support... " >&6; }
22810 if test "${gcc_cv_ld_hidden+set}" = set; then :
22811 $as_echo_n "(cached) " >&6
22813 if test $in_tree_ld = yes ; then
22814 gcc_cv_ld_hidden=no
22815 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 \
22816 && test $in_tree_ld_is_elf = yes; then
22817 gcc_cv_ld_hidden=yes
22820 gcc_cv_ld_hidden=yes
22821 if test x"$ld_is_gold" = xyes; then
22823 elif echo "$ld_ver" | grep GNU > /dev/null; then
22824 case "${target}" in
22825 mmix-knuth-mmixware)
22826 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22827 gcc_cv_ld_hidden=no
22830 if test 0"$ld_date" -lt 20020404; then
22831 if test -n "$ld_date"; then
22832 # If there was date string, but was earlier than 2002-04-04, fail
22833 gcc_cv_ld_hidden=no
22834 elif test -z "$ld_vers"; then
22835 # If there was no date string nor ld version number, something is wrong
22836 gcc_cv_ld_hidden=no
22838 test -z "$ld_vers_patch" && ld_vers_patch=0
22839 if test "$ld_vers_major" -lt 2; then
22840 gcc_cv_ld_hidden=no
22841 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22842 gcc_cv_ld_hidden="no"
22843 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22844 gcc_cv_ld_hidden=no
22849 case "${target}" in
22851 # Darwin ld has some visibility support.
22852 gcc_cv_ld_hidden=yes
22854 hppa64*-*-hpux* | ia64*-*-hpux*)
22855 gcc_cv_ld_hidden=yes
22857 *-*-solaris2.1[0-9]*)
22858 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22859 # .symbolic was only added in Solaris 9 12/02.
22860 gcc_cv_ld_hidden=yes
22863 gcc_cv_ld_hidden=no
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22870 $as_echo "$gcc_cv_ld_hidden" >&6; }
22871 libgcc_visibility=no
22874 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22875 libgcc_visibility=yes
22877 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22882 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22883 gcc_cv_ld_ro_rw_mix=unknown
22884 if test $in_tree_ld = yes ; then
22885 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 \
22886 && test $in_tree_ld_is_elf = yes; then
22887 gcc_cv_ld_ro_rw_mix=read-write
22889 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22890 echo '.section myfoosect, "a"' > conftest1.s
22891 echo '.section myfoosect, "aw"' > conftest2.s
22892 echo '.byte 1' >> conftest2.s
22893 echo '.section myfoosect, "a"' > conftest3.s
22894 echo '.byte 0' >> conftest3.s
22895 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22896 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22897 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22898 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22899 conftest2.o conftest3.o > /dev/null 2>&1; then
22900 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22901 | sed -e '/myfoosect/!d' -e N`
22902 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22903 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22904 gcc_cv_ld_ro_rw_mix=read-only
22906 gcc_cv_ld_ro_rw_mix=read-write
22910 rm -f conftest.* conftest[123].*
22912 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22914 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22918 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22920 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22921 case "${target}" in
22924 # Solaris 2 ld -V output looks like this for a regular version:
22926 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22928 # but test versions add stuff at the end:
22930 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22932 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22933 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22934 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22935 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22936 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22937 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22943 # Check whether --enable-initfini-array was given.
22944 if test "${enable_initfini_array+set}" = set; then :
22945 enableval=$enable_initfini_array;
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22949 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22950 if test "${gcc_cv_initfini_array+set}" = set; then :
22951 $as_echo_n "(cached) " >&6
22953 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22954 case "${target}" in
22956 if test "$cross_compiling" = yes; then :
22957 gcc_cv_initfini_array=no
22959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22960 /* end confdefs.h. */
22963 #error Not an ELF OS
22965 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22966 if it can be used. */
22968 int main (void) { return x; }
22969 int foo (void) { x = 0; }
22970 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22973 if ac_fn_cxx_try_run "$LINENO"; then :
22974 gcc_cv_initfini_array=yes
22976 gcc_cv_initfini_array=no
22978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22979 conftest.$ac_objext conftest.beam conftest.$ac_ext
22983 gcc_cv_initfini_array=no
22984 if test $in_tree_ld = yes ; then
22985 if test "$gcc_cv_gld_major_version" -eq 2 \
22986 -a "$gcc_cv_gld_minor_version" -ge 22 \
22987 -o "$gcc_cv_gld_major_version" -gt 2 \
22988 && test $in_tree_ld_is_elf = yes; then
22989 gcc_cv_initfini_array=yes
22991 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22992 case $target:$gas in
22995 sh_type='%progbits'
22997 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
22999 sh_type='@progbits'
23001 sparc*-*-solaris2*:no)
23003 sh_type='#progbits'
23007 case "$target:$gnu_ld" in
23009 cat > conftest.s <<EOF
23010 .section .dtors,$sh_flags,$sh_type
23012 .byte 'A', 'A', 'A', 'A'
23013 .section .ctors,$sh_flags,$sh_type
23015 .byte 'B', 'B', 'B', 'B'
23016 .section .fini_array.65530,$sh_flags,$sh_type
23018 .byte 'C', 'C', 'C', 'C'
23019 .section .init_array.65530,$sh_flags,$sh_type
23021 .byte 'D', 'D', 'D', 'D'
23022 .section .dtors.64528,$sh_flags,$sh_type
23024 .byte 'E', 'E', 'E', 'E'
23025 .section .ctors.64528,$sh_flags,$sh_type
23027 .byte 'F', 'F', 'F', 'F'
23028 .section .fini_array.01005,$sh_flags,$sh_type
23030 .byte 'G', 'G', 'G', 'G'
23031 .section .init_array.01005,$sh_flags,$sh_type
23033 .byte 'H', 'H', 'H', 'H'
23038 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23039 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23040 && $gcc_cv_objdump -s -j .init_array conftest \
23041 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23042 && $gcc_cv_objdump -s -j .fini_array conftest \
23043 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23044 gcc_cv_initfini_array=yes
23048 # When Solaris ld added constructor priority support, it was
23049 # decided to only handle .init_array.N/.fini_array.N since
23050 # there was no need for backwards compatibility with
23051 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23052 # sections with correct execution order resp. to
23053 # .init_array/.fini_array, while gld merges them into
23054 # .init_array/.fini_array.
23055 cat > conftest.s <<EOF
23056 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23058 .byte 'C', 'C', 'C', 'C'
23059 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23061 .byte 'D', 'D', 'D', 'D'
23062 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23064 .byte 'G', 'G', 'G', 'G'
23065 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23067 .byte 'H', 'H', 'H', 'H'
23072 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23073 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23074 && $gcc_cv_objdump -s -j .init_array conftest \
23075 | grep HHHHDDDD > /dev/null 2>&1 \
23076 && $gcc_cv_objdump -s -j .fini_array conftest \
23077 | grep GGGGCCCC > /dev/null 2>&1; then
23078 gcc_cv_initfini_array=yes
23082 rm -f conftest conftest.*
23084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23085 /* end confdefs.h. */
23088 # error Not an ELF OS
23090 #include <stdlib.h>
23091 #if defined __GLIBC_PREREQ
23092 # if __GLIBC_PREREQ (2, 4)
23094 # error GLIBC 2.4 required
23097 # if defined __sun__ && defined __svr4__
23098 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23100 # error The C library not known to support .init_array/.fini_array
23105 if ac_fn_cxx_try_cpp "$LINENO"; then :
23108 gcc_cv_initfini_array=no
23110 rm -f conftest.err conftest.$ac_ext;;
23113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23114 $as_echo_n "checking cross compile... guessing... " >&6; }
23115 gcc_cv_initfini_array=no
23118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23119 $as_echo "$gcc_cv_initfini_array" >&6; }
23120 enable_initfini_array=$gcc_cv_initfini_array
23125 cat >>confdefs.h <<_ACEOF
23126 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23131 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23133 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23134 if test "${gcc_cv_as_leb128+set}" = set; then :
23135 $as_echo_n "(cached) " >&6
23137 gcc_cv_as_leb128=no
23138 if test $in_tree_gas = yes; then
23139 if test $in_tree_gas_is_elf = yes \
23140 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23141 then gcc_cv_as_leb128=yes
23143 elif test x$gcc_cv_as != x; then
23150 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23152 (eval $ac_try) 2>&5
23154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23155 test $ac_status = 0; }; }
23157 # GAS versions before 2.11 do not support uleb128,
23158 # despite appearing to.
23159 # ??? There exists an elf-specific test that will crash
23160 # the assembler. Perhaps it's better to figure out whether
23161 # arbitrary sections are supported and try the test.
23162 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23163 if echo "$as_ver" | grep GNU > /dev/null; then
23164 as_vers=`echo $as_ver | sed -n \
23165 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23166 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23167 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23168 if test $as_major -eq 2 && test $as_minor -lt 11
23170 else gcc_cv_as_leb128=yes
23174 echo "configure: failed program was" >&5
23177 rm -f conftest.o conftest.s
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23181 $as_echo "$gcc_cv_as_leb128" >&6; }
23182 if test $gcc_cv_as_leb128 = yes; then
23184 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23188 # Check if we have assembler support for unwind directives.
23189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23190 $as_echo_n "checking assembler for cfi directives... " >&6; }
23191 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23192 $as_echo_n "(cached) " >&6
23194 gcc_cv_as_cfi_directive=no
23195 if test x$gcc_cv_as != x; then
23201 .cfi_escape 1, 2, 3, 4, 5
23202 .cfi_endproc' > conftest.s
23203 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23205 (eval $ac_try) 2>&5
23207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23208 test $ac_status = 0; }; }
23212 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23213 # read-only and read-write sections, we need to make sure that the
23214 # assembler used emits read-write .eh_frame sections.
23215 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23216 if test "x$gcc_cv_objdump" != x; then
23217 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23218 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23219 gcc_cv_as_cfi_directive=no
23222 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23223 # On Solaris/x86, make sure that GCC and assembler agree on using
23224 # read-only .eh_frame sections for 64-bit.
23225 if test x$gas = xyes; then
23226 as_ix86_64_opt="--64"
23228 as_ix86_64_opt="-xarch=amd64"
23230 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23231 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23232 sed -e /.eh_frame/!d -e N | \
23233 grep READONLY > /dev/null; then
23234 gcc_cv_as_cfi_directive=yes
23236 gcc_cv_as_cfi_directive=no
23240 gcc_cv_as_cfi_directive=yes
23245 # no objdump, err on the side of caution
23246 gcc_cv_as_cfi_directive=no
23249 gcc_cv_as_cfi_directive=yes
23253 gcc_cv_as_cfi_directive=yes
23257 echo "configure: failed program was" >&5
23260 rm -f conftest.o conftest.s
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23264 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23266 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23268 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23269 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23270 $as_echo_n "(cached) " >&6
23272 gcc_cv_as_cfi_advance_working=no
23273 if test x$gcc_cv_as != x; then
23276 .cfi_adjust_cfa_offset 64
23278 .cfi_adjust_cfa_offset 128
23279 .cfi_endproc' > conftest.s
23280 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23282 (eval $ac_try) 2>&5
23284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23285 test $ac_status = 0; }; }
23288 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23289 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23290 gcc_cv_as_cfi_advance_working=yes
23294 echo "configure: failed program was" >&5
23297 rm -f conftest.o conftest.s
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23301 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23304 # no objdump, err on the side of caution
23305 gcc_cv_as_cfi_advance_working=no
23309 cat >>confdefs.h <<_ACEOF
23310 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23311 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23317 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23318 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23319 $as_echo_n "(cached) " >&6
23321 gcc_cv_as_cfi_personality_directive=no
23322 if test x$gcc_cv_as != x; then
23325 .cfi_personality 0, symbol
23326 .cfi_endproc' > conftest.s
23327 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23329 (eval $ac_try) 2>&5
23331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23332 test $ac_status = 0; }; }
23334 gcc_cv_as_cfi_personality_directive=yes
23336 echo "configure: failed program was" >&5
23339 rm -f conftest.o conftest.s
23342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23343 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23346 cat >>confdefs.h <<_ACEOF
23347 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23348 then echo 1; else echo 0; fi`
23352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23353 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23354 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23355 $as_echo_n "(cached) " >&6
23357 gcc_cv_as_cfi_sections_directive=no
23358 if test x$gcc_cv_as != x; then
23360 .cfi_sections .debug_frame, .eh_frame
23362 .cfi_endproc' > conftest.s
23363 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23365 (eval $ac_try) 2>&5
23367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23368 test $ac_status = 0; }; }
23371 win32 | pe | cygwin* | mingw32*)
23372 # Need to check that we generated the correct relocation for the
23373 # .debug_frame section. This was fixed for binutils 2.21.
23374 gcc_cv_as_cfi_sections_directive=no
23375 if test "x$gcc_cv_objdump" != x; then
23376 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23377 grep secrel > /dev/null; then
23378 gcc_cv_as_cfi_sections_directive=yes
23383 gcc_cv_as_cfi_sections_directive=yes
23387 echo "configure: failed program was" >&5
23390 rm -f conftest.o conftest.s
23393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23394 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23398 cat >>confdefs.h <<_ACEOF
23399 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23400 then echo 1; else echo 0; fi`
23404 # GAS versions up to and including 2.11.0 may mis-optimize
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23407 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23408 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23409 $as_echo_n "(cached) " >&6
23411 gcc_cv_as_eh_frame=no
23412 if test $in_tree_gas = yes; then
23413 if test $in_tree_gas_is_elf = yes \
23414 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23415 then gcc_cv_as_eh_frame=yes
23417 elif test x$gcc_cv_as != x; then
23424 .section .eh_frame,"aw",@progbits
23426 .4byte .LECIE1-.LSCIE1
23440 .4byte .LEFDE1-.LASFDE1
23442 .4byte .LASFDE1-__FRAME_BEGIN__
23449 .LEFDE1:' > conftest.s
23450 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23452 (eval $ac_try) 2>&5
23454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23455 test $ac_status = 0; }; }
23457 cat > conftest.lit <<EOF
23458 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23459 0010 01000000 12000000 18000000 00000000 ................
23460 0020 08000000 04080000 0044 .........D
23462 cat > conftest.big <<EOF
23463 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23464 0010 00000001 00000012 00000018 00000000 ................
23465 0020 00000008 04000000 0844 .........D
23467 # If the assembler didn't choke, and we can objdump,
23468 # and we got the correct data, then succeed.
23469 # The text in the here-document typically retains its unix-style line
23470 # endings, while the output of objdump will use host line endings.
23471 # Therefore, use diff -b for the comparisons.
23472 if test x$gcc_cv_objdump != x \
23473 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23474 | tail -3 > conftest.got \
23475 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23476 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23478 gcc_cv_as_eh_frame=yes
23479 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23481 (eval $ac_try) 2>&5
23483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23484 test $ac_status = 0; }; }; then
23485 gcc_cv_as_eh_frame=buggy
23487 # Uh oh, what do we do now?
23488 gcc_cv_as_eh_frame=no
23491 echo "configure: failed program was" >&5
23494 rm -f conftest.o conftest.s
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23498 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23501 if test $gcc_cv_as_eh_frame = buggy; then
23503 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23508 $as_echo_n "checking assembler for section merging support... " >&6; }
23509 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23510 $as_echo_n "(cached) " >&6
23512 gcc_cv_as_shf_merge=no
23513 if test $in_tree_gas = yes; then
23514 if test $in_tree_gas_is_elf = yes \
23515 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23516 then gcc_cv_as_shf_merge=yes
23518 elif test x$gcc_cv_as != x; then
23519 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23520 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23522 (eval $ac_try) 2>&5
23524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23525 test $ac_status = 0; }; }
23527 gcc_cv_as_shf_merge=yes
23529 echo "configure: failed program was" >&5
23532 rm -f conftest.o conftest.s
23535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23536 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23538 if test $gcc_cv_as_shf_merge = no; then
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23540 $as_echo_n "checking assembler for section merging support... " >&6; }
23541 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23542 $as_echo_n "(cached) " >&6
23544 gcc_cv_as_shf_merge=no
23545 if test $in_tree_gas = yes; then
23546 if test $in_tree_gas_is_elf = yes \
23547 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23548 then gcc_cv_as_shf_merge=yes
23550 elif test x$gcc_cv_as != x; then
23551 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23552 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23554 (eval $ac_try) 2>&5
23556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23557 test $ac_status = 0; }; }
23559 gcc_cv_as_shf_merge=yes
23561 echo "configure: failed program was" >&5
23564 rm -f conftest.o conftest.s
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23568 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23572 cat >>confdefs.h <<_ACEOF
23573 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23578 $as_echo_n "checking assembler for stabs directive... " >&6; }
23579 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23580 $as_echo_n "(cached) " >&6
23582 gcc_cv_as_stabs_directive=no
23583 if test x$gcc_cv_as != x; then
23584 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23585 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23587 (eval $ac_try) 2>&5
23589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23590 test $ac_status = 0; }; }
23592 gcc_cv_as_stabs_directive=yes
23594 echo "configure: failed program was" >&5
23597 rm -f conftest.o conftest.s
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23601 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23602 if test $gcc_cv_as_stabs_directive = yes; then
23604 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23609 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23610 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23611 $as_echo_n "(cached) " >&6
23613 gcc_cv_as_comdat_group=no
23614 if test $in_tree_gas = yes; then
23615 if test $in_tree_gas_is_elf = yes \
23616 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23617 then gcc_cv_as_comdat_group=yes
23619 elif test x$gcc_cv_as != x; then
23620 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23621 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23623 (eval $ac_try) 2>&5
23625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23626 test $ac_status = 0; }; }
23628 gcc_cv_as_comdat_group=yes
23630 echo "configure: failed program was" >&5
23633 rm -f conftest.o conftest.s
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23637 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23639 if test $gcc_cv_as_comdat_group = yes; then
23640 gcc_cv_as_comdat_group_percent=no
23641 gcc_cv_as_comdat_group_group=no
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23644 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23645 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23646 $as_echo_n "(cached) " >&6
23648 gcc_cv_as_comdat_group_percent=no
23649 if test $in_tree_gas = yes; then
23650 if test $in_tree_gas_is_elf = yes \
23651 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23652 then gcc_cv_as_comdat_group_percent=yes
23654 elif test x$gcc_cv_as != x; then
23655 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23656 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23658 (eval $ac_try) 2>&5
23660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23661 test $ac_status = 0; }; }
23663 gcc_cv_as_comdat_group_percent=yes
23665 echo "configure: failed program was" >&5
23668 rm -f conftest.o conftest.s
23671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23672 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23674 if test $gcc_cv_as_comdat_group_percent = yes; then
23675 gcc_cv_as_comdat_group_group=no
23677 case "${target}" in
23678 # Sun as uses a completely different syntax.
23680 case "${target}" in
23681 sparc*-*-solaris2*)
23683 .group foo,".text%foo",#comdat
23684 .section ".text%foo", #alloc,#execinstr,#progbits
23689 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23691 .group foo,.text%foo,#comdat
23692 .section .text%foo, "ax", @progbits
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23699 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23700 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23701 $as_echo_n "(cached) " >&6
23703 gcc_cv_as_comdat_group_group=no
23704 if test x$gcc_cv_as != x; then
23705 $as_echo "$conftest_s" > conftest.s
23706 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23708 (eval $ac_try) 2>&5
23710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23711 test $ac_status = 0; }; }
23713 gcc_cv_as_comdat_group_group=yes
23715 echo "configure: failed program was" >&5
23718 rm -f conftest.o conftest.s
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23722 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23726 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23727 gcc_cv_as_comdat_group_group=no
23731 if test x"$ld_is_gold" = xyes; then
23733 elif test $in_tree_ld = yes ; then
23735 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 \
23736 && test $in_tree_ld_is_elf = yes; then
23739 elif echo "$ld_ver" | grep GNU > /dev/null; then
23741 if test 0"$ld_date" -lt 20050308; then
23742 if test -n "$ld_date"; then
23743 # If there was date string, but was earlier than 2005-03-08, fail
23745 elif test "$ld_vers_major" -lt 2; then
23747 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23752 case "${target}" in
23753 *-*-solaris2.1[1-9]*)
23755 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23756 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23759 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23760 # least ld version 1.2267.
23761 if test "$ld_vers_major" -gt 1; then
23763 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23765 elif test "$ld_vers_minor" -ge 2267; then
23770 # Assume linkers other than GNU ld don't support COMDAT group.
23775 # Allow overriding the automatic COMDAT group tests above.
23776 # Check whether --enable-comdat was given.
23777 if test "${enable_comdat+set}" = set; then :
23778 enableval=$enable_comdat; comdat_group="$enable_comdat"
23781 if test $comdat_group = no; then
23782 gcc_cv_as_comdat_group=no
23783 gcc_cv_as_comdat_group_percent=no
23784 gcc_cv_as_comdat_group_group=no
23787 cat >>confdefs.h <<_ACEOF
23788 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23789 || test $gcc_cv_as_comdat_group_percent = yes \
23790 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23795 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23796 if test "${gcc_cv_as_discriminator+set}" = set; then :
23797 $as_echo_n "(cached) " >&6
23799 gcc_cv_as_discriminator=no
23800 if test $in_tree_gas = yes; then
23801 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23802 then gcc_cv_as_discriminator=yes
23804 elif test x$gcc_cv_as != x; then
23807 .loc 1 1 0 discriminator 1' > conftest.s
23808 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23810 (eval $ac_try) 2>&5
23812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23813 test $ac_status = 0; }; }
23815 gcc_cv_as_discriminator=yes
23817 echo "configure: failed program was" >&5
23820 rm -f conftest.o conftest.s
23823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23824 $as_echo "$gcc_cv_as_discriminator" >&6; }
23825 if test $gcc_cv_as_discriminator = yes; then
23827 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23831 # Thread-local storage - the check is heavily parameterized.
23839 .section ".tdata","awT",@progbits
23842 ldq $27,__tls_get_addr($29) !literal!1
23843 lda $16,foo($29) !tlsgd!1
23844 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23845 ldq $27,__tls_get_addr($29) !literal!2
23846 lda $16,foo($29) !tlsldm!2
23847 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23848 ldq $1,foo($29) !gotdtprel
23849 ldah $2,foo($29) !dtprelhi
23850 lda $3,foo($2) !dtprello
23851 lda $4,foo($29) !dtprel
23852 ldq $1,foo($29) !gottprel
23853 ldah $2,foo($29) !tprelhi
23854 lda $3,foo($2) !tprello
23855 lda $4,foo($29) !tprel'
23858 tls_as_opt=--fatal-warnings
23860 cris-*-*|crisv32-*-*)
23862 .section ".tdata","awT",@progbits
23869 tls_as_opt=--fatal-warnings
23873 .section ".tdata","awT",@progbits
23876 call #gettlsoff(x)'
23885 .section ".tdata","awT",@progbits
23889 addil LT%foo-$tls_gdidx$,gp
23890 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23893 addil LT%foo-$tls_ldidx$,gp
23895 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23896 addil LR%foo-$tls_dtpoff$,%ret0
23897 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23899 addil LT%foo-$tls_ieoff$,gp
23900 ldw RT%foo-$tls_ieoff$(%r1),%t2
23903 addil LR%foo-$tls_leoff$,%t1
23904 ldo RR%foo-$tls_leoff$(%r1),%t2'
23907 tls_as_opt=--fatal-warnings
23911 .section ".tdata","awT",%progbits
23914 .word foo(gottpoff)
23922 i[34567]86-*-* | x86_64-*-*)
23924 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23931 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23933 .section .tdata,"awt",@progbits'
23938 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23942 .section ".tdata","awT",@progbits'
23946 tls_as_opt="--fatal-warnings"
23950 conftest_s="$conftest_s
23954 leal foo@tlsgd(,%ebx,1), %eax
23955 leal foo@tlsldm(%ebx), %eax
23956 leal foo@dtpoff(%eax), %edx
23957 movl foo@gottpoff(%ebx), %eax
23958 subl foo@gottpoff(%ebx), %eax
23959 addl foo@gotntpoff(%ebx), %eax
23960 movl foo@indntpoff, %eax
23961 movl \$foo@tpoff, %eax
23962 subl \$foo@tpoff, %eax
23963 leal foo@ntpoff(%ecx), %eax"
23966 if test x$on_solaris = xyes; then
23968 yes) tls_as_opt="$tls_as_opt --64" ;;
23969 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23972 conftest_s="$conftest_s
23976 leaq foo@tlsgd(%rip), %rdi
23977 leaq foo@tlsld(%rip), %rdi
23978 leaq foo@dtpoff(%rax), %rdx
23979 movq foo@gottpoff(%rip), %rax
23980 movq \$foo@tpoff, %rax"
23986 .section ".tdata","awT",@progbits
23989 addl r16 = @ltoff(@dtpmod(foo#)), gp
23990 addl r17 = @ltoff(@dtprel(foo#)), gp
23991 addl r18 = @ltoff(@tprel(foo#)), gp
23992 addl r19 = @dtprel(foo#), gp
23993 adds r21 = @dtprel(foo#), r13
23994 movl r23 = @dtprel(foo#)
23995 addl r20 = @tprel(foo#), gp
23996 adds r22 = @tprel(foo#), r13
23997 movl r24 = @tprel(foo#)'
24000 tls_as_opt=--fatal-warnings
24004 .section .tdata,"awT",@progbits
24008 addik r5,r20,x@TLSGD
24009 addik r5,r20,x@TLSLDM'
24012 tls_as_opt='--fatal-warnings'
24016 .section .tdata,"awT",@progbits
24020 addiu $4, $28, %tlsgd(x)
24021 addiu $4, $28, %tlsldm(x)
24022 lui $4, %dtprel_hi(x)
24023 addiu $4, $4, %dtprel_lo(x)
24024 lw $4, %gottprel(x)($28)
24025 lui $4, %tprel_hi(x)
24026 addiu $4, $4, %tprel_lo(x)'
24029 tls_as_opt='-32 --fatal-warnings'
24033 .section .tdata,"awT",@progbits
24038 move.l x@TLSGD(%a5),%a0
24039 move.l x@TLSLDM(%a5),%a0
24040 move.l x@TLSLDO(%a5),%a0
24041 move.l x@TLSIE(%a5),%a0
24042 move.l x@TLSLE(%a5),%a0'
24045 tls_as_opt='--fatal-warnings'
24049 .section ".tdata","awT",@progbits'
24052 tls_as_opt="--fatal-warnings"
24056 .section ".tdata","awT",%progbits
24060 add x0, x0, #:tlsgd_lo12:x
24065 tls_as_opt='--fatal-warnings'
24069 .extern __get_tpointer
24087 .section ".tdata","awT",@progbits
24095 addi 3,2,ld0@got@tlsgd
24101 addi 3,2,x1@got@tlsld
24107 addis 9,3,x2@dtprel@ha
24108 addi 9,9,x2@dtprel@l
24111 ld 9,x3@got@dtprel(2)
24117 tls_as_opt="-a64 --fatal-warnings"
24121 .section ".tdata","awT",@progbits
24129 addi 3,31,ld0@got@tlsgd
24131 addi 3,31,x1@got@tlsld
24134 addis 9,3,x2@dtprel@ha
24135 addi 9,9,x2@dtprel@l
24136 lwz 9,x3@got@tprel(31)
24139 addis 9,2,x2@tprel@ha
24140 addi 9,9,x2@tprel@l'
24143 tls_as_opt="-a32 --fatal-warnings"
24147 .section ".tdata","awT",@progbits
24154 .long foo@GOTNTPOFF
24155 .long foo@INDNTPOFF
24156 l %r1,foo@GOTNTPOFF(%r12)
24157 l %r1,0(%r1):tls_load:foo
24158 bas %r14,0(%r1,%r13):tls_gdcall:foo
24159 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24162 tls_as_opt="-m31 --fatal-warnings"
24166 .section ".tdata","awT",@progbits
24173 .quad foo@GOTNTPOFF
24174 lg %r1,foo@GOTNTPOFF(%r12)
24175 larl %r1,foo@INDNTPOFF
24176 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24177 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24180 tls_as_opt="-m64 -Aesame --fatal-warnings"
24182 sh-*-* | sh[123456789lbe]*-*-*)
24184 .section ".tdata","awT",@progbits
24194 tls_as_opt=--fatal-warnings
24198 sparc*-sun-solaris2.*)
24205 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24207 .section ".tdata",#alloc,#write,#tls'
24212 .section ".tdata","awT",@progbits'
24215 tls_as_opt="-32 --fatal-warnings"
24217 conftest_s="$conftest_s
24220 sethi %tgd_hi22(foo), %o0
24221 add %o0, %tgd_lo10(foo), %o1
24222 add %l7, %o1, %o0, %tgd_add(foo)
24223 call __tls_get_addr, %tgd_call(foo)
24224 sethi %tldm_hi22(foo), %l1
24225 add %l1, %tldm_lo10(foo), %l2
24226 add %l7, %l2, %o0, %tldm_add(foo)
24227 call __tls_get_addr, %tldm_call(foo)
24228 sethi %tldo_hix22(foo), %l3
24229 xor %l3, %tldo_lox10(foo), %l4
24230 add %o0, %l4, %l5, %tldo_add(foo)
24231 sethi %tie_hi22(foo), %o3
24232 add %o3, %tie_lo10(foo), %o3
24233 ld [%l7 + %o3], %o2, %tie_ld(foo)
24234 add %g7, %o2, %o4, %tie_add(foo)
24235 sethi %tle_hix22(foo), %l1
24236 xor %l1, %tle_lox10(foo), %o5
24237 ld [%g7 + %o5], %o1"
24241 .section ".tdata","awT",@progbits
24244 addli r0, zero, tls_gd(foo)
24245 auli r0, zero, tls_gd_ha16(foo)
24246 addli r0, r0, tls_gd_lo16(foo)
24248 addli r0, zero, tls_ie(foo)
24249 auli r0, r0, tls_ie_ha16(foo)
24250 addli r0, r0, tls_ie_lo16(foo)'
24253 tls_as_opt="--fatal-warnings"
24257 .section ".tdata","awT",@progbits
24260 shl16insli r0, zero, hw0_last_tls_gd(foo)
24261 shl16insli r0, zero, hw1_last_tls_gd(foo)
24262 shl16insli r0, r0, hw0_tls_gd(foo)
24264 shl16insli r0, zero, hw1_last_tls_ie(foo)
24265 shl16insli r0, r0, hw0_tls_ie(foo)'
24268 tls_as_opt="--fatal-warnings"
24272 .section ".tdata","awT",@progbits
24275 movi a8, foo@TLSFUNC
24276 movi a10, foo@TLSARG
24277 callx8.tls a8, foo@TLSCALL'
24283 if test "x$enable_tls" = xno ; then
24284 : # TLS explicitly disabled.
24285 elif test "x$enable_tls" = xyes ; then
24286 set_have_as_tls=yes # TLS explicitly enabled.
24287 elif test -z "$tls_first_major"; then
24288 : # If we don't have a check, assume no support.
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24291 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24292 if test "${gcc_cv_as_tls+set}" = set; then :
24293 $as_echo_n "(cached) " >&6
24296 if test $in_tree_gas = yes; then
24297 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24298 then gcc_cv_as_tls=yes
24300 elif test x$gcc_cv_as != x; then
24301 $as_echo "$conftest_s" > conftest.s
24302 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24304 (eval $ac_try) 2>&5
24306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24307 test $ac_status = 0; }; }
24311 echo "configure: failed program was" >&5
24314 rm -f conftest.o conftest.s
24317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24318 $as_echo "$gcc_cv_as_tls" >&6; }
24319 if test $gcc_cv_as_tls = yes; then
24320 set_have_as_tls=yes
24323 if test $set_have_as_tls = yes ; then
24325 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24329 # Target-specific assembler checks.
24331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24332 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24333 gcc_cv_ld_static_dynamic=no
24334 gcc_cv_ld_static_option='-Bstatic'
24335 gcc_cv_ld_dynamic_option='-Bdynamic'
24336 if test $in_tree_ld = yes ; then
24337 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
24338 gcc_cv_ld_static_dynamic=yes
24340 elif test x$gcc_cv_ld != x; then
24341 # Check if linker supports -Bstatic/-Bdynamic option
24342 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24343 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24344 gcc_cv_ld_static_dynamic=yes
24347 # AIX ld uses -b flags
24348 *-*-aix4.[23]* | *-*-aix[5-9]*)
24349 gcc_cv_ld_static_dynamic=yes
24350 gcc_cv_ld_static_option="-bstatic"
24351 gcc_cv_ld_dynamic_option="-bdynamic"
24353 # HP-UX ld uses -a flags to select between shared and archive.
24355 if test x"$gnu_ld" = xno; then
24356 gcc_cv_ld_static_dynamic=yes
24357 gcc_cv_ld_static_option="-aarchive_shared"
24358 gcc_cv_ld_dynamic_option="-adefault"
24361 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24363 gcc_cv_ld_static_dynamic=yes
24368 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24370 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24373 cat >>confdefs.h <<_ACEOF
24374 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24378 cat >>confdefs.h <<_ACEOF
24379 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24384 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24386 if test x"$demangler_in_ld" = xyes; then
24387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24388 $as_echo_n "checking linker --demangle support... " >&6; }
24389 gcc_cv_ld_demangle=no
24390 if test $in_tree_ld = yes; then
24391 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 \
24392 gcc_cv_ld_demangle=yes
24394 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24395 # Check if the GNU linker supports --demangle option
24396 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24397 gcc_cv_ld_demangle=yes
24400 if test x"$gcc_cv_ld_demangle" = xyes; then
24402 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24406 $as_echo "$gcc_cv_ld_demangle" >&6; }
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24410 $as_echo_n "checking linker plugin support... " >&6; }
24411 gcc_cv_lto_plugin=0
24412 if test -f liblto_plugin.la; then
24413 save_ld_ver="$ld_ver"
24414 save_ld_vers_major="$ld_vers_major"
24415 save_ld_vers_minor="$ld_vers_minor"
24416 save_ld_is_gold="$ld_is_gold"
24420 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24422 # FIXME: ld_is_gold?
24423 ld_vers_major="$gcc_cv_gld_major_version"
24424 ld_vers_minor="$gcc_cv_gld_minor_version"
24426 # Determine plugin linker version.
24427 # FIXME: Partial duplicate from above, generalize.
24428 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24429 if echo "$ld_ver" | grep GNU > /dev/null; then
24430 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24432 ld_vers=`echo $ld_ver | sed -n \
24433 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24435 ld_vers=`echo $ld_ver | sed -n \
24436 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24438 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24439 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24443 # Determine plugin support.
24444 if echo "$ld_ver" | grep GNU > /dev/null; then
24445 # Require GNU ld or gold 2.21+ for plugin support by default.
24446 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24447 gcc_cv_lto_plugin=2
24448 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24449 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24450 gcc_cv_lto_plugin=1
24454 ld_ver="$save_ld_ver"
24455 ld_vers_major="$save_ld_vers_major"
24456 ld_vers_minor="$save_ld_vers_minor"
24457 ld_is_gold="$save_ld_is_gold"
24460 cat >>confdefs.h <<_ACEOF
24461 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24465 $as_echo "$gcc_cv_lto_plugin" >&6; }
24467 # Target OS-specific assembler checks.
24469 case "$target_os" in
24471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24472 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24473 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24474 $as_echo_n "(cached) " >&6
24476 gcc_cv_as_mmacosx_version_min=no
24477 if test x$gcc_cv_as != x; then
24478 $as_echo '.text' > conftest.s
24479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24481 (eval $ac_try) 2>&5
24483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24484 test $ac_status = 0; }; }
24486 gcc_cv_as_mmacosx_version_min=yes
24488 echo "configure: failed program was" >&5
24491 rm -f conftest.o conftest.s
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24495 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24496 if test $gcc_cv_as_mmacosx_version_min = yes; then
24498 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24504 # Target CPU-specific assembler checks.
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24509 $as_echo_n "checking assembler for -mabi option... " >&6; }
24510 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24511 $as_echo_n "(cached) " >&6
24513 gcc_cv_as_aarch64_mabi=no
24514 if test x$gcc_cv_as != x; then
24515 $as_echo '.text' > conftest.s
24516 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24518 (eval $ac_try) 2>&5
24520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24521 test $ac_status = 0; }; }
24523 gcc_cv_as_aarch64_mabi=yes
24525 echo "configure: failed program was" >&5
24528 rm -f conftest.o conftest.s
24531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24532 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24534 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24536 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24539 if test x$with_abi = xilp32; then
24540 as_fn_error "Assembler does not support -mabi=ilp32.\
24541 Upgrade the Assembler." "$LINENO" 5
24543 if test x"$with_multilib_list" = xdefault; then
24544 TM_MULTILIB_CONFIG=lp64
24546 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24547 for aarch64_multilib in ${aarch64_multilibs}; do
24548 case ${aarch64_multilib} in
24550 as_fn_error "Assembler does not support -mabi=ilp32.\
24551 Upgrade the Assembler." "$LINENO" 5
24559 # Check if we have binutils support for relocations types needed by -fpic
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24561 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24562 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24563 $as_echo_n "(cached) " >&6
24565 gcc_cv_as_aarch64_picreloc=no
24566 if test x$gcc_cv_as != x; then
24569 ldr x0, [x2, #:gotpage_lo15:globalsym]
24571 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24573 (eval $ac_try) 2>&5
24575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24576 test $ac_status = 0; }; }
24578 gcc_cv_as_aarch64_picreloc=yes
24580 echo "configure: failed program was" >&5
24583 rm -f conftest.o conftest.s
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24587 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24588 if test $gcc_cv_as_aarch64_picreloc = yes; then
24590 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24593 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24594 # Check whether --enable-fix-cortex-a53-835769 was given.
24595 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24596 enableval=$enable_fix_cortex_a53_835769;
24599 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24604 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24605 Valid choices are 'yes' and 'no'." "$LINENO" 5
24612 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24613 # Check whether --enable-fix-cortex-a53-843419 was given.
24614 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24615 enableval=$enable_fix_cortex_a53_843419;
24618 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24623 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24624 Valid choices are 'yes' and 'no'." "$LINENO" 5
24633 # All TARGET_ABI_OSF targets.
24634 alpha*-*-linux* | alpha*-*-*bsd*)
24635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24636 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24637 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24638 $as_echo_n "(cached) " >&6
24640 gcc_cv_as_alpha_explicit_relocs=no
24641 if test $in_tree_gas = yes; then
24642 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24643 then gcc_cv_as_alpha_explicit_relocs=yes
24645 elif test x$gcc_cv_as != x; then
24646 $as_echo ' .set nomacro
24648 extbl $3, $2, $3 !lituse_bytoff!1
24649 ldq $2, a($29) !literal!1
24650 ldq $4, b($29) !literal!2
24651 ldq_u $3, 0($2) !lituse_base!1
24652 ldq $27, f($29) !literal!5
24653 jsr $26, ($27), f !lituse_jsr!5
24654 ldah $29, 0($26) !gpdisp!3
24655 lda $0, c($29) !gprel
24656 ldah $1, d($29) !gprelhigh
24657 lda $1, d($1) !gprellow
24658 lda $29, 0($29) !gpdisp!3' > conftest.s
24659 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24661 (eval $ac_try) 2>&5
24663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24664 test $ac_status = 0; }; }
24666 gcc_cv_as_alpha_explicit_relocs=yes
24668 echo "configure: failed program was" >&5
24671 rm -f conftest.o conftest.s
24674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24675 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24676 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24678 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24682 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24683 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24684 $as_echo_n "(cached) " >&6
24686 gcc_cv_as_alpha_jsrdirect_relocs=no
24687 if test $in_tree_gas = yes; then
24688 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24689 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24691 elif test x$gcc_cv_as != x; then
24692 $as_echo ' .set nomacro
24694 ldq $27, a($29) !literal!1
24695 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24696 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24698 (eval $ac_try) 2>&5
24700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24701 test $ac_status = 0; }; }
24703 gcc_cv_as_alpha_jsrdirect_relocs=yes
24705 echo "configure: failed program was" >&5
24708 rm -f conftest.o conftest.s
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24712 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24713 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24715 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24722 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24723 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24724 $as_echo_n "(cached) " >&6
24726 gcc_cv_as_avr_mlink_relax=no
24727 if test x$gcc_cv_as != x; then
24728 $as_echo '.text' > conftest.s
24729 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24731 (eval $ac_try) 2>&5
24733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24734 test $ac_status = 0; }; }
24736 gcc_cv_as_avr_mlink_relax=yes
24738 echo "configure: failed program was" >&5
24741 rm -f conftest.o conftest.s
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24745 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24746 if test $gcc_cv_as_avr_mlink_relax = yes; then
24748 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24753 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24754 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24755 $as_echo_n "(cached) " >&6
24757 gcc_cv_as_avr_mrmw=no
24758 if test x$gcc_cv_as != x; then
24759 $as_echo '.text' > conftest.s
24760 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24762 (eval $ac_try) 2>&5
24764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24765 test $ac_status = 0; }; }
24767 gcc_cv_as_avr_mrmw=yes
24769 echo "configure: failed program was" >&5
24772 rm -f conftest.o conftest.s
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24776 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24777 if test $gcc_cv_as_avr_mrmw = yes; then
24779 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24786 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24787 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24788 $as_echo_n "(cached) " >&6
24790 gcc_cv_as_cris_no_mul_bug=no
24791 if test $in_tree_gas = yes; then
24792 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24793 then gcc_cv_as_cris_no_mul_bug=yes
24795 elif test x$gcc_cv_as != x; then
24796 $as_echo '.text' > conftest.s
24797 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24799 (eval $ac_try) 2>&5
24801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24802 test $ac_status = 0; }; }
24804 gcc_cv_as_cris_no_mul_bug=yes
24806 echo "configure: failed program was" >&5
24809 rm -f conftest.o conftest.s
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24813 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24814 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24816 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24823 $as_echo_n "checking assembler for .register... " >&6; }
24824 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24825 $as_echo_n "(cached) " >&6
24827 gcc_cv_as_sparc_register_op=no
24828 if test x$gcc_cv_as != x; then
24829 $as_echo '.register %g2, #scratch' > 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 gcc_cv_as_sparc_register_op=yes
24839 echo "configure: failed program was" >&5
24842 rm -f conftest.o conftest.s
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24846 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24847 if test $gcc_cv_as_sparc_register_op = yes; then
24849 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24854 $as_echo_n "checking assembler for -relax option... " >&6; }
24855 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24856 $as_echo_n "(cached) " >&6
24858 gcc_cv_as_sparc_relax=no
24859 if test x$gcc_cv_as != x; then
24860 $as_echo '.text' > conftest.s
24861 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24863 (eval $ac_try) 2>&5
24865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24866 test $ac_status = 0; }; }
24868 gcc_cv_as_sparc_relax=yes
24870 echo "configure: failed program was" >&5
24873 rm -f conftest.o conftest.s
24876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24877 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24878 if test $gcc_cv_as_sparc_relax = yes; then
24880 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24885 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24886 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24887 $as_echo_n "(cached) " >&6
24889 gcc_cv_as_sparc_gotdata_op=no
24890 if test x$gcc_cv_as != x; then
24896 sethi %gdop_hix22(foo), %g1
24897 xor %g1, %gdop_lox10(foo), %g1
24898 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24899 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -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 if test x$gcc_cv_ld != x \
24907 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24908 if test x$gcc_cv_objdump != x; then
24909 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24910 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24911 gcc_cv_as_sparc_gotdata_op=no
24913 gcc_cv_as_sparc_gotdata_op=yes
24919 echo "configure: failed program was" >&5
24922 rm -f conftest.o conftest.s
24925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24926 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24927 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24929 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24934 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24935 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24936 $as_echo_n "(cached) " >&6
24938 gcc_cv_as_sparc_ua_pcrel=no
24939 if test x$gcc_cv_as != x; then
24946 .uaword %r_disp32(foo)' > conftest.s
24947 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24949 (eval $ac_try) 2>&5
24951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24952 test $ac_status = 0; }; }
24954 if test x$gcc_cv_ld != x \
24955 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24956 gcc_cv_as_sparc_ua_pcrel=yes
24960 echo "configure: failed program was" >&5
24963 rm -f conftest.o conftest.s
24966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24967 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24968 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24970 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24974 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24975 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24976 $as_echo_n "(cached) " >&6
24978 gcc_cv_as_sparc_ua_pcrel_hidden=no
24979 if test x$gcc_cv_as != x; then
24983 .uaword %r_disp32(foo)
24984 .byte 0x32, 0x33, 0x34
24988 .skip 4' > conftest.s
24989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24991 (eval $ac_try) 2>&5
24993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24994 test $ac_status = 0; }; }
24996 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24997 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24998 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24999 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25000 if $gcc_cv_objdump -R conftest 2> /dev/null \
25001 | grep 'DISP32' > /dev/null 2>&1; then
25004 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25009 echo "configure: failed program was" >&5
25012 rm -f conftest.o conftest.s
25015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25016 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25017 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25019 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25023 fi # unaligned pcrel relocs
25025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25026 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25027 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25028 $as_echo_n "(cached) " >&6
25030 gcc_cv_as_sparc_offsetable_lo10=no
25031 if test x$gcc_cv_as != x; then
25033 or %g1, %lo(ab) + 12, %g1
25034 or %g1, %lo(ab + 12), %g1' > conftest.s
25035 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25037 (eval $ac_try) 2>&5
25039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25040 test $ac_status = 0; }; }
25042 if test x$gcc_cv_objdump != x \
25043 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25044 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25045 gcc_cv_as_sparc_offsetable_lo10=yes
25048 echo "configure: failed program was" >&5
25051 rm -f conftest.o conftest.s
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25055 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25056 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25058 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25063 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25064 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25065 $as_echo_n "(cached) " >&6
25067 gcc_cv_as_sparc_fmaf=no
25068 if test x$gcc_cv_as != x; then
25070 .register %g2, #scratch
25071 .register %g3, #scratch
25073 fmaddd %f0, %f2, %f4, %f6
25074 addxccc %g1, %g2, %g3
25075 fsrl32 %f2, %f4, %f8
25076 fnaddd %f10, %f12, %f14' > conftest.s
25077 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25079 (eval $ac_try) 2>&5
25081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25082 test $ac_status = 0; }; }
25084 gcc_cv_as_sparc_fmaf=yes
25086 echo "configure: failed program was" >&5
25089 rm -f conftest.o conftest.s
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25093 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25094 if test $gcc_cv_as_sparc_fmaf = yes; then
25096 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25101 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25102 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25103 $as_echo_n "(cached) " >&6
25105 gcc_cv_as_sparc_sparc4=no
25106 if test x$gcc_cv_as != x; then
25108 .register %g2, #scratch
25109 .register %g3, #scratch
25112 1: cwbneg %g2, %g3, 1f
25115 aes_kexpand0 %f4, %f6, %f8
25116 des_round %f38, %f40, %f42, %f44
25117 camellia_f %f54, %f56, %f58, %f60
25118 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25119 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25121 (eval $ac_try) 2>&5
25123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25124 test $ac_status = 0; }; }
25126 gcc_cv_as_sparc_sparc4=yes
25128 echo "configure: failed program was" >&5
25131 rm -f conftest.o conftest.s
25134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25135 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25136 if test $gcc_cv_as_sparc_sparc4 = yes; then
25138 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25143 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25144 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25145 $as_echo_n "(cached) " >&6
25147 gcc_cv_as_sparc_sparc5=no
25148 if test x$gcc_cv_as != x; then
25150 .register %g2, #scratch
25151 .register %g3, #scratch
25153 subxc %g1, %g2, %g3
25154 fpadd8 %f0, %f2, %f4' > conftest.s
25155 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25157 (eval $ac_try) 2>&5
25159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25160 test $ac_status = 0; }; }
25162 gcc_cv_as_sparc_sparc5=yes
25164 echo "configure: failed program was" >&5
25167 rm -f conftest.o conftest.s
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25171 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25172 if test $gcc_cv_as_sparc_sparc5 = yes; then
25174 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25179 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25180 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25181 $as_echo_n "(cached) " >&6
25183 gcc_cv_as_sparc_leon=no
25184 if test x$gcc_cv_as != x; then
25186 .register %g2, #scratch
25187 .register %g3, #scratch
25191 casa [%g2] 0xb, %g3, %g1' > conftest.s
25192 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25194 (eval $ac_try) 2>&5
25196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25197 test $ac_status = 0; }; }
25199 gcc_cv_as_sparc_leon=yes
25201 echo "configure: failed program was" >&5
25204 rm -f conftest.o conftest.s
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25208 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25209 if test $gcc_cv_as_sparc_leon = yes; then
25211 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25216 i[34567]86-*-* | x86_64-*-*)
25219 # Full C++ conformance when using a shared libstdc++-v3 requires some
25220 # support from the Cygwin DLL, which in more recent versions exports
25221 # wrappers to aid in interposing and redirecting operators new, delete,
25222 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25223 # are configuring for a version of Cygwin that exports the wrappers.
25224 if test x$host = x$target && test x$host_cpu = xi686; then
25225 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25226 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25227 gcc_ac_cygwin_dll_wrappers=yes
25229 gcc_ac_cygwin_dll_wrappers=no
25233 # Can't check presence of libc functions during cross-compile, so
25234 # we just have to assume we're building for an up-to-date target.
25235 gcc_ac_cygwin_dll_wrappers=yes
25238 cat >>confdefs.h <<_ACEOF
25239 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25244 cygwin* | pe | mingw32* | interix*)
25245 # Recent binutils allows the three-operand form of ".comm" on PE. This
25246 # definition is used unconditionally to initialise the default state of
25247 # the target option variable that governs usage of the feature.
25248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25249 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25250 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25251 $as_echo_n "(cached) " >&6
25253 gcc_cv_as_comm_has_align=no
25254 if test $in_tree_gas = yes; then
25255 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25256 then gcc_cv_as_comm_has_align=yes
25258 elif test x$gcc_cv_as != x; then
25259 $as_echo '.comm foo,1,32' > conftest.s
25260 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25262 (eval $ac_try) 2>&5
25264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25265 test $ac_status = 0; }; }
25267 gcc_cv_as_comm_has_align=yes
25269 echo "configure: failed program was" >&5
25272 rm -f conftest.o conftest.s
25275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25276 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25279 cat >>confdefs.h <<_ACEOF
25280 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25283 # Used for DWARF 2 in PE
25284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25285 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25286 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25287 $as_echo_n "(cached) " >&6
25289 gcc_cv_as_ix86_pe_secrel32=no
25290 if test $in_tree_gas = yes; then
25291 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25292 then gcc_cv_as_ix86_pe_secrel32=yes
25294 elif test x$gcc_cv_as != x; then
25298 .secrel32 foo' > conftest.s
25299 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25301 (eval $ac_try) 2>&5
25303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25304 test $ac_status = 0; }; }
25306 if test x$gcc_cv_ld != x \
25307 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25308 gcc_cv_as_ix86_pe_secrel32=yes
25312 echo "configure: failed program was" >&5
25315 rm -f conftest.o conftest.s
25318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25319 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25320 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25322 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25325 # Test if the assembler supports the extended form of the .section
25326 # directive that specifies section alignment. LTO support uses this,
25327 # but normally only after installation, so we warn but don't fail the
25328 # configure if LTO is enabled but the assembler does not support it.
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25330 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25331 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25332 $as_echo_n "(cached) " >&6
25334 gcc_cv_as_section_has_align=no
25335 if test $in_tree_gas = yes; then
25336 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25337 then gcc_cv_as_section_has_align=yes
25339 elif test x$gcc_cv_as != x; then
25340 $as_echo '.section lto_test,"dr0"' > conftest.s
25341 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25343 (eval $ac_try) 2>&5
25345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25346 test $ac_status = 0; }; }
25348 gcc_cv_as_section_has_align=yes
25350 echo "configure: failed program was" >&5
25353 rm -f conftest.o conftest.s
25356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25357 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25359 if test x$gcc_cv_as_section_has_align != xyes; then
25360 case ",$enable_languages," in
25362 { $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
25363 $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;}
25370 # Test if the assembler supports the section flag 'e' for specifying
25371 # an excluded section.
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25373 $as_echo_n "checking assembler for .section with e... " >&6; }
25374 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25375 $as_echo_n "(cached) " >&6
25377 gcc_cv_as_section_has_e=no
25378 if test $in_tree_gas = yes; then
25379 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25380 then gcc_cv_as_section_has_e=yes
25382 elif test x$gcc_cv_as != x; then
25383 $as_echo '.section foo1,"e"
25384 .byte 0,0,0,0' > conftest.s
25385 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25387 (eval $ac_try) 2>&5
25389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25390 test $ac_status = 0; }; }
25392 gcc_cv_as_section_has_e=yes
25394 echo "configure: failed program was" >&5
25397 rm -f conftest.o conftest.s
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25401 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25404 cat >>confdefs.h <<_ACEOF
25405 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25410 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25411 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25412 $as_echo_n "(cached) " >&6
25414 gcc_cv_as_ix86_filds=no
25415 if test x$gcc_cv_as != x; then
25416 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25417 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25419 (eval $ac_try) 2>&5
25421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25422 test $ac_status = 0; }; }
25424 gcc_cv_as_ix86_filds=yes
25426 echo "configure: failed program was" >&5
25429 rm -f conftest.o conftest.s
25432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25433 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25434 if test $gcc_cv_as_ix86_filds = yes; then
25436 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25441 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25442 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25443 $as_echo_n "(cached) " >&6
25445 gcc_cv_as_ix86_fildq=no
25446 if test x$gcc_cv_as != x; then
25447 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25448 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25450 (eval $ac_try) 2>&5
25452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25453 test $ac_status = 0; }; }
25455 gcc_cv_as_ix86_fildq=yes
25457 echo "configure: failed program was" >&5
25460 rm -f conftest.o conftest.s
25463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25464 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25465 if test $gcc_cv_as_ix86_fildq = yes; then
25467 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25472 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25473 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25474 $as_echo_n "(cached) " >&6
25476 gcc_cv_as_ix86_cmov_sun_syntax=no
25477 if test x$gcc_cv_as != x; then
25478 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25481 (eval $ac_try) 2>&5
25483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25484 test $ac_status = 0; }; }
25486 gcc_cv_as_ix86_cmov_sun_syntax=yes
25488 echo "configure: failed program was" >&5
25491 rm -f conftest.o conftest.s
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25495 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25496 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25498 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25503 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25504 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25505 $as_echo_n "(cached) " >&6
25507 gcc_cv_as_ix86_ffreep=no
25508 if test x$gcc_cv_as != x; then
25509 $as_echo 'ffreep %st(1)' > conftest.s
25510 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25512 (eval $ac_try) 2>&5
25514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25515 test $ac_status = 0; }; }
25517 gcc_cv_as_ix86_ffreep=yes
25519 echo "configure: failed program was" >&5
25522 rm -f conftest.o conftest.s
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25526 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25527 if test $gcc_cv_as_ix86_ffreep = yes; then
25529 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25534 $as_echo_n "checking assembler for .quad directive... " >&6; }
25535 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25536 $as_echo_n "(cached) " >&6
25538 gcc_cv_as_ix86_quad=no
25539 if test x$gcc_cv_as != x; then
25540 $as_echo '.quad 0' > conftest.s
25541 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25543 (eval $ac_try) 2>&5
25545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25546 test $ac_status = 0; }; }
25548 gcc_cv_as_ix86_quad=yes
25550 echo "configure: failed program was" >&5
25553 rm -f conftest.o conftest.s
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25557 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25558 if test $gcc_cv_as_ix86_quad = yes; then
25560 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25565 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25566 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25567 $as_echo_n "(cached) " >&6
25569 gcc_cv_as_ix86_sahf=no
25570 if test x$gcc_cv_as != x; then
25573 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25575 (eval $ac_try) 2>&5
25577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25578 test $ac_status = 0; }; }
25580 gcc_cv_as_ix86_sahf=yes
25582 echo "configure: failed program was" >&5
25585 rm -f conftest.o conftest.s
25588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25589 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25590 if test $gcc_cv_as_ix86_sahf = yes; then
25592 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25597 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25598 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25599 $as_echo_n "(cached) " >&6
25601 gcc_cv_as_ix86_interunit_movq=no
25602 if test x$gcc_cv_as != x; then
25605 movq %rax, %xmm0' > conftest.s
25606 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25608 (eval $ac_try) 2>&5
25610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25611 test $ac_status = 0; }; }
25613 gcc_cv_as_ix86_interunit_movq=yes
25615 echo "configure: failed program was" >&5
25618 rm -f conftest.o conftest.s
25621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25622 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25625 cat >>confdefs.h <<_ACEOF
25626 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25631 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25632 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25633 $as_echo_n "(cached) " >&6
25635 gcc_cv_as_ix86_hle=no
25636 if test x$gcc_cv_as != x; then
25637 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25638 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25640 (eval $ac_try) 2>&5
25642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25643 test $ac_status = 0; }; }
25645 gcc_cv_as_ix86_hle=yes
25647 echo "configure: failed program was" >&5
25650 rm -f conftest.o conftest.s
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25654 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25655 if test $gcc_cv_as_ix86_hle = yes; then
25657 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25662 $as_echo_n "checking assembler for swap suffix... " >&6; }
25663 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25664 $as_echo_n "(cached) " >&6
25666 gcc_cv_as_ix86_swap=no
25667 if test x$gcc_cv_as != x; then
25668 $as_echo 'movl.s %esp, %ebp' > conftest.s
25669 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25671 (eval $ac_try) 2>&5
25673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25674 test $ac_status = 0; }; }
25676 gcc_cv_as_ix86_swap=yes
25678 echo "configure: failed program was" >&5
25681 rm -f conftest.o conftest.s
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25685 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25686 if test $gcc_cv_as_ix86_swap = yes; then
25688 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25693 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25694 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25695 $as_echo_n "(cached) " >&6
25697 gcc_cv_as_ix86_diff_sect_delta=no
25698 if test x$gcc_cv_as != x; then
25699 $as_echo '.section .rodata
25705 .L2: nop' > conftest.s
25706 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25708 (eval $ac_try) 2>&5
25710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25711 test $ac_status = 0; }; }
25713 gcc_cv_as_ix86_diff_sect_delta=yes
25715 echo "configure: failed program was" >&5
25718 rm -f conftest.o conftest.s
25721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25722 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25723 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25725 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25729 # These two are used unconditionally by i386.[ch]; it is to be defined
25730 # to 1 if the feature is present, 0 otherwise.
25731 as_ix86_gotoff_in_data_opt=
25732 if test x$gas = xyes; then
25733 as_ix86_gotoff_in_data_opt="--32"
25735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25736 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25737 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25738 $as_echo_n "(cached) " >&6
25740 gcc_cv_as_ix86_gotoff_in_data=no
25741 if test $in_tree_gas = yes; then
25742 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25743 then gcc_cv_as_ix86_gotoff_in_data=yes
25745 elif test x$gcc_cv_as != x; then
25750 .long .L0@GOTOFF' > conftest.s
25751 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25753 (eval $ac_try) 2>&5
25755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25756 test $ac_status = 0; }; }
25758 gcc_cv_as_ix86_gotoff_in_data=yes
25760 echo "configure: failed program was" >&5
25763 rm -f conftest.o conftest.s
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25767 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25770 cat >>confdefs.h <<_ACEOF
25771 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25776 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25777 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25778 $as_echo_n "(cached) " >&6
25780 gcc_cv_as_ix86_rep_lock_prefix=no
25781 if test x$gcc_cv_as != x; then
25782 $as_echo 'rep movsl
25787 lock addl %edi, (%eax,%esi)
25788 lock orl $0, (%esp)' > conftest.s
25789 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25791 (eval $ac_try) 2>&5
25793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25794 test $ac_status = 0; }; }
25796 gcc_cv_as_ix86_rep_lock_prefix=yes
25798 echo "configure: failed program was" >&5
25801 rm -f conftest.o conftest.s
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25805 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25806 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25808 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25813 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25814 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25815 $as_echo_n "(cached) " >&6
25817 gcc_cv_as_ix86_ud2=no
25818 if test x$gcc_cv_as != x; then
25819 $as_echo 'ud2' > conftest.s
25820 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25822 (eval $ac_try) 2>&5
25824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25825 test $ac_status = 0; }; }
25827 gcc_cv_as_ix86_ud2=yes
25829 echo "configure: failed program was" >&5
25832 rm -f conftest.o conftest.s
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25836 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25837 if test $gcc_cv_as_ix86_ud2 = yes; then
25839 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25844 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25845 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25846 $as_echo_n "(cached) " >&6
25848 gcc_cv_as_ix86_tlsgdplt=no
25849 if test x$gcc_cv_as != x; then
25850 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25851 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25853 (eval $ac_try) 2>&5
25855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25856 test $ac_status = 0; }; }
25858 if test x$gcc_cv_ld != x \
25859 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25860 gcc_cv_as_ix86_tlsgdplt=yes
25864 echo "configure: failed program was" >&5
25867 rm -f conftest.o conftest.s
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25871 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25872 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25874 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25879 .section .tdata,"aw'$tls_section_flag'",@progbits
25881 .section .text,"ax",@progbits
25882 call tls_ld@tlsldmplt'
25883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25884 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25885 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25886 $as_echo_n "(cached) " >&6
25888 gcc_cv_as_ix86_tlsldmplt=no
25889 if test x$gcc_cv_as != x; then
25890 $as_echo "$conftest_s" > conftest.s
25891 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25893 (eval $ac_try) 2>&5
25895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25896 test $ac_status = 0; }; }
25898 if test x$gcc_cv_ld != x \
25899 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25900 gcc_cv_as_ix86_tlsldmplt=yes
25904 echo "configure: failed program was" >&5
25907 rm -f conftest.o conftest.s
25910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25911 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25914 cat >>confdefs.h <<_ACEOF
25915 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25919 # Enforce 32-bit output with gas and gld.
25920 if test x$gas = xyes; then
25921 as_ix86_tls_ldm_opt="--32"
25923 if echo "$ld_ver" | grep GNU > /dev/null; then
25924 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25925 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25927 ld_ix86_tls_ldm_opt="-melf_i386"
25931 .section .text,"ax",@progbits
25933 .type _start, @function
25935 leal value@tlsldm(%ebx), %eax
25936 call ___tls_get_addr@plt
25938 .section .tdata,"aw'$tls_section_flag'",@progbits
25939 .type value, @object
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25942 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25943 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25944 $as_echo_n "(cached) " >&6
25946 gcc_cv_as_ix86_tlsldm=no
25947 if test x$gcc_cv_as != x; then
25948 $as_echo "$conftest_s" > conftest.s
25949 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25951 (eval $ac_try) 2>&5
25953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25954 test $ac_status = 0; }; }
25956 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25957 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25958 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25959 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25960 gcc_cv_as_ix86_tlsldm=yes
25965 echo "configure: failed program was" >&5
25968 rm -f conftest.o conftest.s
25971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25972 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25975 cat >>confdefs.h <<_ACEOF
25976 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25984 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25985 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25986 $as_echo_n "(cached) " >&6
25988 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25989 if test $in_tree_gas = yes; then
25990 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25991 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25993 elif test x$gcc_cv_as != x; then
25995 addl r15 = @ltoffx(x#), gp
25997 ld8.mov r16 = [r15], x#' > conftest.s
25998 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26000 (eval $ac_try) 2>&5
26002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26003 test $ac_status = 0; }; }
26005 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26007 echo "configure: failed program was" >&5
26010 rm -f conftest.o conftest.s
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26014 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26015 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26017 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26028 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26029 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26030 $as_echo_n "(cached) " >&6
26032 gcc_cv_as_machine_directive=no
26033 if test x$gcc_cv_as != x; then
26034 $as_echo ' .machine ppc7400' > conftest.s
26035 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26037 (eval $ac_try) 2>&5
26039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26040 test $ac_status = 0; }; }
26042 gcc_cv_as_machine_directive=yes
26044 echo "configure: failed program was" >&5
26047 rm -f conftest.o conftest.s
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26051 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26053 if test x$gcc_cv_as_machine_directive != xyes; then
26054 echo "*** This target requires an assembler supporting \".machine\"" >&2
26055 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26056 test x$build = x$target && exit 1
26062 *-*-aix*) conftest_s=' .machine "pwr5"
26065 *-*-darwin*) conftest_s=' .text
26067 *) conftest_s=' .machine power4
26072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26073 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26074 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26075 $as_echo_n "(cached) " >&6
26077 gcc_cv_as_powerpc_mfcrf=no
26078 if test $in_tree_gas = yes; then
26079 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26080 then gcc_cv_as_powerpc_mfcrf=yes
26082 elif test x$gcc_cv_as != x; then
26083 $as_echo "$conftest_s" > conftest.s
26084 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26086 (eval $ac_try) 2>&5
26088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26089 test $ac_status = 0; }; }
26091 gcc_cv_as_powerpc_mfcrf=yes
26093 echo "configure: failed program was" >&5
26096 rm -f conftest.o conftest.s
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26100 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26101 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26103 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26108 *-*-aix*) conftest_s=' .machine "pwr5"
26111 *) conftest_s=' .machine power5
26116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26117 $as_echo_n "checking assembler for popcntb support... " >&6; }
26118 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26119 $as_echo_n "(cached) " >&6
26121 gcc_cv_as_powerpc_popcntb=no
26122 if test $in_tree_gas = yes; then
26123 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26124 then gcc_cv_as_powerpc_popcntb=yes
26126 elif test x$gcc_cv_as != x; then
26127 $as_echo "$conftest_s" > conftest.s
26128 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26130 (eval $ac_try) 2>&5
26132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26133 test $ac_status = 0; }; }
26135 gcc_cv_as_powerpc_popcntb=yes
26137 echo "configure: failed program was" >&5
26140 rm -f conftest.o conftest.s
26143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26144 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26145 if test $gcc_cv_as_powerpc_popcntb = yes; then
26147 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26152 *-*-aix*) conftest_s=' .machine "pwr5x"
26155 *) conftest_s=' .machine power5
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26161 $as_echo_n "checking assembler for fp round support... " >&6; }
26162 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26163 $as_echo_n "(cached) " >&6
26165 gcc_cv_as_powerpc_fprnd=no
26166 if test $in_tree_gas = yes; then
26167 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26168 then gcc_cv_as_powerpc_fprnd=yes
26170 elif test x$gcc_cv_as != x; then
26171 $as_echo "$conftest_s" > conftest.s
26172 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26174 (eval $ac_try) 2>&5
26176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26177 test $ac_status = 0; }; }
26179 gcc_cv_as_powerpc_fprnd=yes
26181 echo "configure: failed program was" >&5
26184 rm -f conftest.o conftest.s
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26188 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26189 if test $gcc_cv_as_powerpc_fprnd = yes; then
26191 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26196 *-*-aix*) conftest_s=' .machine "pwr6"
26199 *) conftest_s=' .machine power6
26204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26205 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26206 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26207 $as_echo_n "(cached) " >&6
26209 gcc_cv_as_powerpc_mfpgpr=no
26210 if test $in_tree_gas = yes; then
26211 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26212 then gcc_cv_as_powerpc_mfpgpr=yes
26214 elif test x$gcc_cv_as != x; then
26215 $as_echo "$conftest_s" > conftest.s
26216 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26218 (eval $ac_try) 2>&5
26220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26221 test $ac_status = 0; }; }
26223 gcc_cv_as_powerpc_mfpgpr=yes
26225 echo "configure: failed program was" >&5
26228 rm -f conftest.o conftest.s
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26232 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26233 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26235 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26240 *-*-aix*) conftest_s=' .csect .text[PR]
26242 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26246 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26247 *) conftest_s=' .text
26249 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26253 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26254 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26255 $as_echo_n "(cached) " >&6
26257 gcc_cv_as_powerpc_rel16=no
26258 if test $in_tree_gas = yes; then
26259 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26260 then gcc_cv_as_powerpc_rel16=yes
26262 elif test x$gcc_cv_as != x; then
26263 $as_echo "$conftest_s" > conftest.s
26264 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26266 (eval $ac_try) 2>&5
26268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26269 test $ac_status = 0; }; }
26271 gcc_cv_as_powerpc_rel16=yes
26273 echo "configure: failed program was" >&5
26276 rm -f conftest.o conftest.s
26279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26280 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26281 if test $gcc_cv_as_powerpc_rel16 = yes; then
26283 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26288 *-*-aix*) conftest_s=' .machine "pwr6"
26291 *) conftest_s=' .machine power6
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26297 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26298 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26299 $as_echo_n "(cached) " >&6
26301 gcc_cv_as_powerpc_cmpb=no
26302 if test $in_tree_gas = yes; then
26303 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26304 then gcc_cv_as_powerpc_cmpb=yes
26306 elif test x$gcc_cv_as != x; then
26307 $as_echo "$conftest_s" > conftest.s
26308 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26310 (eval $ac_try) 2>&5
26312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26313 test $ac_status = 0; }; }
26315 gcc_cv_as_powerpc_cmpb=yes
26317 echo "configure: failed program was" >&5
26320 rm -f conftest.o conftest.s
26323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26324 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26325 if test $gcc_cv_as_powerpc_cmpb = yes; then
26327 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26332 *-*-aix*) conftest_s=' .machine "pwr6"
26335 *) conftest_s=' .machine power6
26340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26341 $as_echo_n "checking assembler for decimal float support... " >&6; }
26342 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26343 $as_echo_n "(cached) " >&6
26345 gcc_cv_as_powerpc_dfp=no
26346 if test $in_tree_gas = yes; then
26347 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26348 then gcc_cv_as_powerpc_dfp=yes
26350 elif test x$gcc_cv_as != x; then
26351 $as_echo "$conftest_s" > conftest.s
26352 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26353 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26354 (eval $ac_try) 2>&5
26356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26357 test $ac_status = 0; }; }
26359 gcc_cv_as_powerpc_dfp=yes
26361 echo "configure: failed program was" >&5
26364 rm -f conftest.o conftest.s
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26368 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26369 if test $gcc_cv_as_powerpc_dfp = yes; then
26371 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26376 *-*-aix*) conftest_s=' .machine "pwr7"
26379 *) conftest_s=' .machine power7
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26385 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26386 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26387 $as_echo_n "(cached) " >&6
26389 gcc_cv_as_powerpc_vsx=no
26390 if test $in_tree_gas = yes; then
26391 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26392 then gcc_cv_as_powerpc_vsx=yes
26394 elif test x$gcc_cv_as != x; then
26395 $as_echo "$conftest_s" > conftest.s
26396 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26398 (eval $ac_try) 2>&5
26400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26401 test $ac_status = 0; }; }
26403 gcc_cv_as_powerpc_vsx=yes
26405 echo "configure: failed program was" >&5
26408 rm -f conftest.o conftest.s
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26412 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26413 if test $gcc_cv_as_powerpc_vsx = yes; then
26415 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26420 *-*-aix*) conftest_s=' .machine "pwr7"
26423 *) conftest_s=' .machine power7
26428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26429 $as_echo_n "checking assembler for popcntd support... " >&6; }
26430 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26431 $as_echo_n "(cached) " >&6
26433 gcc_cv_as_powerpc_popcntd=no
26434 if test $in_tree_gas = yes; then
26435 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26436 then gcc_cv_as_powerpc_popcntd=yes
26438 elif test x$gcc_cv_as != x; then
26439 $as_echo "$conftest_s" > conftest.s
26440 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26442 (eval $ac_try) 2>&5
26444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26445 test $ac_status = 0; }; }
26447 gcc_cv_as_powerpc_popcntd=yes
26449 echo "configure: failed program was" >&5
26452 rm -f conftest.o conftest.s
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26456 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26457 if test $gcc_cv_as_powerpc_popcntd = yes; then
26459 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26464 *-*-aix*) conftest_s=' .machine "pwr8"
26465 .csect .text[PR]';;
26466 *) conftest_s=' .machine power8
26470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26471 $as_echo_n "checking assembler for power8 support... " >&6; }
26472 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26473 $as_echo_n "(cached) " >&6
26475 gcc_cv_as_powerpc_power8=no
26476 if test $in_tree_gas = yes; then
26477 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26478 then gcc_cv_as_powerpc_power8=yes
26480 elif test x$gcc_cv_as != x; then
26481 $as_echo "$conftest_s" > conftest.s
26482 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26484 (eval $ac_try) 2>&5
26486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26487 test $ac_status = 0; }; }
26489 gcc_cv_as_powerpc_power8=yes
26491 echo "configure: failed program was" >&5
26494 rm -f conftest.o conftest.s
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26498 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26499 if test $gcc_cv_as_powerpc_power8 = yes; then
26501 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26506 *-*-aix*) conftest_s=' .machine "pwr9"
26507 .csect .text[PR]';;
26508 *) conftest_s=' .machine power9
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26513 $as_echo_n "checking assembler for power9 support... " >&6; }
26514 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26515 $as_echo_n "(cached) " >&6
26517 gcc_cv_as_powerpc_power9=no
26518 if test $in_tree_gas = yes; then
26519 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26520 then gcc_cv_as_powerpc_power9=yes
26522 elif test x$gcc_cv_as != x; then
26523 $as_echo "$conftest_s" > conftest.s
26524 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26526 (eval $ac_try) 2>&5
26528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26529 test $ac_status = 0; }; }
26531 gcc_cv_as_powerpc_power9=yes
26533 echo "configure: failed program was" >&5
26536 rm -f conftest.o conftest.s
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26540 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26541 if test $gcc_cv_as_powerpc_power9 = yes; then
26543 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26548 *-*-aix*) conftest_s=' .csect .text[PR]
26550 *) conftest_s=' .text
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26555 $as_echo_n "checking assembler for lwsync support... " >&6; }
26556 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26557 $as_echo_n "(cached) " >&6
26559 gcc_cv_as_powerpc_lwsync=no
26560 if test $in_tree_gas = yes; then
26561 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26562 then gcc_cv_as_powerpc_lwsync=yes
26564 elif test x$gcc_cv_as != x; then
26565 $as_echo "$conftest_s" > conftest.s
26566 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26568 (eval $ac_try) 2>&5
26570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26571 test $ac_status = 0; }; }
26573 gcc_cv_as_powerpc_lwsync=yes
26575 echo "configure: failed program was" >&5
26578 rm -f conftest.o conftest.s
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26582 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26583 if test $gcc_cv_as_powerpc_lwsync = yes; then
26585 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26590 *-*-aix*) conftest_s=' .machine "476"
26593 *) conftest_s=' .machine "476"
26598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26599 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26600 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26601 $as_echo_n "(cached) " >&6
26603 gcc_cv_as_powerpc_dci=no
26604 if test $in_tree_gas = yes; then
26605 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26606 then gcc_cv_as_powerpc_dci=yes
26608 elif test x$gcc_cv_as != x; then
26609 $as_echo "$conftest_s" > conftest.s
26610 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26611 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26612 (eval $ac_try) 2>&5
26614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26615 test $ac_status = 0; }; }
26617 gcc_cv_as_powerpc_dci=yes
26619 echo "configure: failed program was" >&5
26622 rm -f conftest.o conftest.s
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26626 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26627 if test $gcc_cv_as_powerpc_dci = yes; then
26629 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26634 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26635 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26636 $as_echo_n "(cached) " >&6
26638 gcc_cv_as_powerpc_gnu_attribute=no
26639 if test $in_tree_gas = yes; then
26640 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26641 then gcc_cv_as_powerpc_gnu_attribute=yes
26643 elif test x$gcc_cv_as != x; then
26644 $as_echo '.gnu_attribute 4,1' > conftest.s
26645 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26647 (eval $ac_try) 2>&5
26649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26650 test $ac_status = 0; }; }
26652 gcc_cv_as_powerpc_gnu_attribute=yes
26654 echo "configure: failed program was" >&5
26657 rm -f conftest.o conftest.s
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26661 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26662 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26664 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26669 $as_echo_n "checking assembler for tls marker support... " >&6; }
26670 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26671 $as_echo_n "(cached) " >&6
26673 gcc_cv_as_powerpc_tls_markers=no
26674 if test $in_tree_gas = yes; then
26675 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26676 then gcc_cv_as_powerpc_tls_markers=yes
26678 elif test x$gcc_cv_as != x; then
26679 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26680 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26682 (eval $ac_try) 2>&5
26684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26685 test $ac_status = 0; }; }
26687 gcc_cv_as_powerpc_tls_markers=yes
26689 echo "configure: failed program was" >&5
26692 rm -f conftest.o conftest.s
26695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26696 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26697 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26699 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26704 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26705 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26706 $as_echo_n "(cached) " >&6
26708 gcc_cv_as_powerpc_entry_markers=no
26709 if test $in_tree_gas = yes; then
26710 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26711 then gcc_cv_as_powerpc_entry_markers=yes
26713 elif test x$gcc_cv_as != x; then
26714 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26715 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26717 (eval $ac_try) 2>&5
26719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26720 test $ac_status = 0; }; }
26722 gcc_cv_as_powerpc_entry_markers=yes
26724 echo "configure: failed program was" >&5
26727 rm -f conftest.o conftest.s
26730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26731 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26732 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26734 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26741 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26742 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26743 $as_echo_n "(cached) " >&6
26745 gcc_cv_as_aix_ref=no
26746 if test $in_tree_gas = yes; then
26747 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26748 then gcc_cv_as_aix_ref=yes
26750 elif test x$gcc_cv_as != x; then
26751 $as_echo ' .csect stuff[rw]
26757 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26759 (eval $ac_try) 2>&5
26761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26762 test $ac_status = 0; }; }
26764 gcc_cv_as_aix_ref=yes
26766 echo "configure: failed program was" >&5
26769 rm -f conftest.o conftest.s
26772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26773 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26774 if test $gcc_cv_as_aix_ref = yes; then
26776 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26781 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26782 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26783 $as_echo_n "(cached) " >&6
26785 gcc_cv_as_aix_dwloc=no
26786 if test $in_tree_gas = yes; then
26787 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26788 then gcc_cv_as_aix_dwloc=yes
26790 elif test x$gcc_cv_as != x; then
26791 $as_echo ' .dwsect 0xA0000
26795 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26797 (eval $ac_try) 2>&5
26799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26800 test $ac_status = 0; }; }
26802 gcc_cv_as_aix_dwloc=yes
26804 echo "configure: failed program was" >&5
26807 rm -f conftest.o conftest.s
26810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26811 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26812 if test $gcc_cv_as_aix_dwloc = yes; then
26814 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26823 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26824 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26825 $as_echo_n "(cached) " >&6
26827 gcc_cv_as_mips_explicit_relocs=no
26828 if test $in_tree_gas = yes; then
26829 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26830 then gcc_cv_as_mips_explicit_relocs=yes
26832 elif test x$gcc_cv_as != x; then
26833 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26834 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26836 (eval $ac_try) 2>&5
26838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26839 test $ac_status = 0; }; }
26841 gcc_cv_as_mips_explicit_relocs=yes
26843 echo "configure: failed program was" >&5
26846 rm -f conftest.o conftest.s
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26850 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26851 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26852 if test x$target_cpu_default = x
26853 then target_cpu_default=MASK_EXPLICIT_RELOCS
26854 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26859 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26860 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26861 $as_echo_n "(cached) " >&6
26863 gcc_cv_as_mips_no_shared=no
26864 if test $in_tree_gas = yes; then
26865 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26866 then gcc_cv_as_mips_no_shared=yes
26868 elif test x$gcc_cv_as != x; then
26869 $as_echo 'nop' > conftest.s
26870 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26872 (eval $ac_try) 2>&5
26874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26875 test $ac_status = 0; }; }
26877 gcc_cv_as_mips_no_shared=yes
26879 echo "configure: failed program was" >&5
26882 rm -f conftest.o conftest.s
26885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26886 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26887 if test $gcc_cv_as_mips_no_shared = yes; then
26889 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26894 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26895 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26896 $as_echo_n "(cached) " >&6
26898 gcc_cv_as_mips_gnu_attribute=no
26899 if test $in_tree_gas = yes; then
26900 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26901 then gcc_cv_as_mips_gnu_attribute=yes
26903 elif test x$gcc_cv_as != x; then
26904 $as_echo '.gnu_attribute 4,1' > conftest.s
26905 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26907 (eval $ac_try) 2>&5
26909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26910 test $ac_status = 0; }; }
26912 gcc_cv_as_mips_gnu_attribute=yes
26914 echo "configure: failed program was" >&5
26917 rm -f conftest.o conftest.s
26920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26921 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26922 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26924 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26929 $as_echo_n "checking assembler for .module support... " >&6; }
26930 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26931 $as_echo_n "(cached) " >&6
26933 gcc_cv_as_mips_dot_module=no
26934 if test x$gcc_cv_as != x; then
26935 $as_echo '.module mips2
26936 .module fp=xx' > conftest.s
26937 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26939 (eval $ac_try) 2>&5
26941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26942 test $ac_status = 0; }; }
26944 gcc_cv_as_mips_dot_module=yes
26946 echo "configure: failed program was" >&5
26949 rm -f conftest.o conftest.s
26952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26953 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26954 if test $gcc_cv_as_mips_dot_module = yes; then
26956 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26959 if test x$gcc_cv_as_mips_dot_module = xno \
26960 && test x$with_fp_32 != x; then
26961 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26965 $as_echo_n "checking assembler for .micromips support... " >&6; }
26966 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26967 $as_echo_n "(cached) " >&6
26969 gcc_cv_as_micromips_support=no
26970 if test x$gcc_cv_as != x; then
26971 $as_echo '.set micromips' > conftest.s
26972 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26974 (eval $ac_try) 2>&5
26976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26977 test $ac_status = 0; }; }
26979 gcc_cv_as_micromips_support=yes
26981 echo "configure: failed program was" >&5
26984 rm -f conftest.o conftest.s
26987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26988 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26989 if test $gcc_cv_as_micromips_support = yes; then
26991 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26996 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26997 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26998 $as_echo_n "(cached) " >&6
27000 gcc_cv_as_mips_dtprelword=no
27001 if test $in_tree_gas = yes; then
27002 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27003 then gcc_cv_as_mips_dtprelword=yes
27005 elif test x$gcc_cv_as != x; then
27006 $as_echo '.section .tdata,"awT",@progbits
27010 .dtprelword x+0x8000' > conftest.s
27011 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27013 (eval $ac_try) 2>&5
27015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27016 test $ac_status = 0; }; }
27018 gcc_cv_as_mips_dtprelword=yes
27020 echo "configure: failed program was" >&5
27023 rm -f conftest.o conftest.s
27026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27027 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27028 if test $gcc_cv_as_mips_dtprelword = yes; then
27030 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27035 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27036 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27037 $as_echo_n "(cached) " >&6
27039 gcc_cv_as_mips_dspr1_mult=no
27040 if test x$gcc_cv_as != x; then
27041 $as_echo ' .set mips32r2
27049 multu $ac3,$4,$5' > conftest.s
27050 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27052 (eval $ac_try) 2>&5
27054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27055 test $ac_status = 0; }; }
27057 gcc_cv_as_mips_dspr1_mult=yes
27059 echo "configure: failed program was" >&5
27062 rm -f conftest.o conftest.s
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27066 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27067 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27069 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27074 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27075 gcc_cv_as_ld_jalr_reloc=no
27076 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27077 if test $in_tree_ld = yes ; then
27078 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 \
27079 && test $in_tree_ld_is_elf = yes; then
27080 gcc_cv_as_ld_jalr_reloc=yes
27082 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27083 echo ' .ent x' > conftest.s
27084 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27085 echo ' lw $25,%call16(y)($28)' >> conftest.s
27086 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27087 echo '1: jalr $25' >> conftest.s
27088 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27089 echo '1: jalr $25' >> conftest.s
27090 echo ' .end x' >> conftest.s
27091 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27092 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27093 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27094 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27095 gcc_cv_as_ld_jalr_reloc=yes
27101 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27102 if test x$target_cpu_default = x; then
27103 target_cpu_default=MASK_RELAX_PIC_CALLS
27105 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27109 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27112 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27113 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27114 $as_echo_n "(cached) " >&6
27116 gcc_cv_ld_mips_personality_relaxation=no
27117 if test $in_tree_ld = yes ; then
27118 if test "$gcc_cv_gld_major_version" -eq 2 \
27119 -a "$gcc_cv_gld_minor_version" -ge 21 \
27120 -o "$gcc_cv_gld_major_version" -gt 2; then
27121 gcc_cv_ld_mips_personality_relaxation=yes
27123 elif test x$gcc_cv_as != x \
27124 -a x$gcc_cv_ld != x \
27125 -a x$gcc_cv_readelf != x ; then
27126 cat > conftest.s <<EOF
27128 .cfi_personality 0x80,indirect_ptr
27135 .section .data,"aw",@progbits
27139 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27140 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27141 if $gcc_cv_readelf -d conftest 2>&1 \
27142 | grep TEXTREL > /dev/null 2>&1; then
27144 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27145 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27148 gcc_cv_ld_mips_personality_relaxation=yes
27152 rm -f conftest.s conftest.o conftest
27154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27155 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27156 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27158 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27163 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27164 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27165 $as_echo_n "(cached) " >&6
27167 gcc_cv_as_mips_nan=no
27168 if test x$gcc_cv_as != x; then
27169 $as_echo '' > conftest.s
27170 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27172 (eval $ac_try) 2>&5
27174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27175 test $ac_status = 0; }; }
27177 gcc_cv_as_mips_nan=yes
27179 echo "configure: failed program was" >&5
27182 rm -f conftest.o conftest.s
27185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27186 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27187 if test $gcc_cv_as_mips_nan = yes; then
27189 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27192 if test x$gcc_cv_as_mips_nan = xno \
27193 && test x$with_nan != x; then
27194 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27199 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27200 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27201 $as_echo_n "(cached) " >&6
27203 gcc_cv_as_s390_gnu_attribute=no
27204 if test $in_tree_gas = yes; then
27205 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27206 then gcc_cv_as_s390_gnu_attribute=yes
27208 elif test x$gcc_cv_as != x; then
27209 $as_echo '.gnu_attribute 8,1' > conftest.s
27210 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27212 (eval $ac_try) 2>&5
27214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27215 test $ac_status = 0; }; }
27217 gcc_cv_as_s390_gnu_attribute=yes
27219 echo "configure: failed program was" >&5
27222 rm -f conftest.o conftest.s
27225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27226 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27227 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27229 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27233 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27234 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27235 $as_echo_n "(cached) " >&6
27237 gcc_cv_as_s390_machine_machinemode=no
27238 if test $in_tree_gas = yes; then
27239 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27240 then gcc_cv_as_s390_machine_machinemode=yes
27242 elif test x$gcc_cv_as != x; then
27243 $as_echo ' .machinemode push
27246 .machine pop' > conftest.s
27247 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27249 (eval $ac_try) 2>&5
27251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27252 test $ac_status = 0; }; }
27254 gcc_cv_as_s390_machine_machinemode=yes
27256 echo "configure: failed program was" >&5
27259 rm -f conftest.o conftest.s
27262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27263 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27264 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27266 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27270 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27271 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27272 $as_echo_n "(cached) " >&6
27274 gcc_cv_as_s390_architecture_modifiers=no
27275 if test $in_tree_gas = yes; then
27276 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27277 then gcc_cv_as_s390_architecture_modifiers=yes
27279 elif test x$gcc_cv_as != x; then
27280 $as_echo ' .machine z13+vx ' > conftest.s
27281 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27283 (eval $ac_try) 2>&5
27285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27286 test $ac_status = 0; }; }
27288 gcc_cv_as_s390_architecture_modifiers=yes
27290 echo "configure: failed program was" >&5
27293 rm -f conftest.o conftest.s
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27297 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27298 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27300 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27306 # Mips and HP-UX need the GNU assembler.
27307 # Linux on IA64 might be able to use the Intel assembler.
27310 mips*-*-* | *-*-hpux* )
27311 if test x$gas_flag = xyes \
27312 || test x"$host" != x"$build" \
27313 || test ! -x "$gcc_cv_as" \
27314 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27317 echo "*** This configuration requires the GNU assembler" >&2
27323 # ??? Not all targets support dwarf2 debug_line, even within a version
27324 # of gas. Moreover, we need to emit a valid instruction to trigger any
27325 # info to the output file. So, as supported targets are added to gas 2.11,
27326 # add some instruction here to (also) show we expect this might work.
27327 # ??? Once 2.11 is released, probably need to add first known working
27328 # version to the per-target configury.
27329 case "$cpu_type" in
27330 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27331 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
27332 | visium | xstormy16 | xtensa)
27342 if test x"$insn" != x; then
27344 .file 1 \"conftest.s\"
27347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27348 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27349 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27350 $as_echo_n "(cached) " >&6
27352 gcc_cv_as_dwarf2_debug_line=no
27353 if test $in_tree_gas = yes; then
27354 if test $in_tree_gas_is_elf = yes \
27355 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27356 then gcc_cv_as_dwarf2_debug_line=yes
27358 elif test x$gcc_cv_as != x; then
27359 $as_echo "$conftest_s" > conftest.s
27360 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27362 (eval $ac_try) 2>&5
27364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27365 test $ac_status = 0; }; }
27367 if test x$gcc_cv_objdump != x \
27368 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27369 | grep debug_line > /dev/null 2>&1; then
27370 gcc_cv_as_dwarf2_debug_line=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_dwarf2_debug_line" >&5
27380 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27383 # The .debug_line file table must be in the exact order that
27384 # we specified the files, since these indices are also used
27385 # by DW_AT_decl_file. Approximate this test by testing if
27386 # the assembler bitches if the same index is assigned twice.
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27388 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27389 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27390 $as_echo_n "(cached) " >&6
27392 gcc_cv_as_dwarf2_file_buggy=no
27393 if test x$gcc_cv_as != x; then
27394 $as_echo ' .file 1 "foo.s"
27395 .file 1 "bar.s"' > conftest.s
27396 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27398 (eval $ac_try) 2>&5
27400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27401 test $ac_status = 0; }; }
27403 gcc_cv_as_dwarf2_file_buggy=yes
27405 echo "configure: failed program was" >&5
27408 rm -f conftest.o conftest.s
27411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27412 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27415 if test $gcc_cv_as_dwarf2_debug_line = yes \
27416 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27418 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27423 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27424 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27425 $as_echo_n "(cached) " >&6
27427 gcc_cv_as_gdwarf2_flag=no
27428 if test $in_tree_gas = yes; then
27429 if test $in_tree_gas_is_elf = yes \
27430 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27431 then gcc_cv_as_gdwarf2_flag=yes
27433 elif test x$gcc_cv_as != x; then
27434 $as_echo "$insn" > conftest.s
27435 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27437 (eval $ac_try) 2>&5
27439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27440 test $ac_status = 0; }; }
27442 gcc_cv_as_gdwarf2_flag=yes
27444 echo "configure: failed program was" >&5
27447 rm -f conftest.o conftest.s
27450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27451 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27452 if test $gcc_cv_as_gdwarf2_flag = yes; then
27454 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27459 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27460 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27461 $as_echo_n "(cached) " >&6
27463 gcc_cv_as_gstabs_flag=no
27464 if test $in_tree_gas = yes; then
27465 if test $in_tree_gas_is_elf = yes \
27466 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27467 then gcc_cv_as_gstabs_flag=yes
27469 elif test x$gcc_cv_as != x; then
27470 $as_echo "$insn" > conftest.s
27471 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27473 (eval $ac_try) 2>&5
27475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27476 test $ac_status = 0; }; }
27478 gcc_cv_as_gstabs_flag=yes
27480 echo "configure: failed program was" >&5
27483 rm -f conftest.o conftest.s
27486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27487 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27488 if test $gcc_cv_as_gstabs_flag = yes; then
27490 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27495 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27496 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27497 $as_echo_n "(cached) " >&6
27499 gcc_cv_as_debug_prefix_map_flag=no
27500 if test $in_tree_gas = yes; then
27501 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27502 then gcc_cv_as_debug_prefix_map_flag=yes
27504 elif test x$gcc_cv_as != x; then
27505 $as_echo "$insn" > conftest.s
27506 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27508 (eval $ac_try) 2>&5
27510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27511 test $ac_status = 0; }; }
27513 gcc_cv_as_debug_prefix_map_flag=yes
27515 echo "configure: failed program was" >&5
27518 rm -f conftest.o conftest.s
27521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27522 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27523 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27525 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27531 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27532 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27533 $as_echo_n "(cached) " >&6
27535 gcc_cv_as_compress_debug=no
27536 if test x$gcc_cv_as != x; then
27537 $as_echo '' > conftest.s
27538 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27540 (eval $ac_try) 2>&5
27542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27543 test $ac_status = 0; }; }
27545 # gas compiled without zlib cannot compress debug sections and warns
27546 # about it, but still exits successfully. So check for this, too.
27547 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27549 gcc_cv_as_compress_debug=0
27550 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27552 gcc_cv_as_compress_debug=1
27553 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27554 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27556 gcc_cv_as_compress_debug=0
27557 # FIXME: Future gas versions will support ELF gABI style via
27558 # --compress-debug-sections[=type].
27561 echo "configure: failed program was" >&5
27564 rm -f conftest.o conftest.s
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27568 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27571 cat >>confdefs.h <<_ACEOF
27572 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27576 cat >>confdefs.h <<_ACEOF
27577 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27581 cat >>confdefs.h <<_ACEOF
27582 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27587 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27588 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27589 $as_echo_n "(cached) " >&6
27591 gcc_cv_as_lcomm_with_alignment=no
27592 if test x$gcc_cv_as != x; then
27593 $as_echo '.lcomm bar,4,16' > conftest.s
27594 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27596 (eval $ac_try) 2>&5
27598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27599 test $ac_status = 0; }; }
27601 gcc_cv_as_lcomm_with_alignment=yes
27603 echo "configure: failed program was" >&5
27606 rm -f conftest.o conftest.s
27609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27610 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27611 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27613 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27617 if test x$with_sysroot = x && test x$host = x$target \
27618 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27619 && test "$prefix" != "NONE"; then
27621 cat >>confdefs.h <<_ACEOF
27622 #define PREFIX_INCLUDE_DIR "$prefix/include"
27627 # Determine the version of glibc, if any, used on the target.
27628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27629 $as_echo_n "checking for target glibc version... " >&6; }
27631 # Check whether --with-glibc-version was given.
27632 if test "${with_glibc_version+set}" = set; then :
27633 withval=$with_glibc_version;
27634 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27635 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27636 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27638 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27642 glibc_version_major=0
27643 glibc_version_minor=0
27644 if test -f $target_header_dir/features.h \
27645 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27646 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27647 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27648 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27653 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27655 cat >>confdefs.h <<_ACEOF
27656 #define TARGET_GLIBC_MAJOR $glibc_version_major
27660 cat >>confdefs.h <<_ACEOF
27661 #define TARGET_GLIBC_MINOR $glibc_version_minor
27665 # Check whether --enable-gnu-unique-object was given.
27666 if test "${enable_gnu_unique_object+set}" = set; then :
27667 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27669 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27670 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27674 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27675 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27676 $as_echo_n "(cached) " >&6
27678 gcc_cv_as_gnu_unique_object=no
27679 if test $in_tree_gas = yes; then
27680 if test $in_tree_gas_is_elf = yes \
27681 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27682 then gcc_cv_as_gnu_unique_object=yes
27684 elif test x$gcc_cv_as != x; then
27685 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27686 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27688 (eval $ac_try) 2>&5
27690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27691 test $ac_status = 0; }; }
27693 gcc_cv_as_gnu_unique_object=yes
27695 echo "configure: failed program was" >&5
27698 rm -f conftest.o conftest.s
27701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27702 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27703 if test $gcc_cv_as_gnu_unique_object = yes; then
27704 # We need to unquote above to to use the definition from config.gcc.
27705 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27707 if test $glibc_version_major -gt 2 \
27708 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27709 enable_gnu_unique_object=yes
27715 if test x$enable_gnu_unique_object = xyes; then
27717 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27722 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27723 if test "${gcc_cv_as_line_zero+set}" = set; then :
27724 $as_echo_n "(cached) " >&6
27726 gcc_cv_as_line_zero=no
27727 if test $in_tree_gas = yes; then
27728 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27729 then gcc_cv_as_line_zero=yes
27731 elif test "x$gcc_cv_as" != x; then
27732 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27733 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27735 (eval $ac_try) 2>&5
27737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27738 test $ac_status = 0; }; } &&
27739 test "x`cat conftest.out`" = x
27741 gcc_cv_as_line_zero=yes
27743 echo "configure: failed program was" >&5
27745 echo "configure: error output was" >&5
27746 cat conftest.out >&5
27748 rm -f conftest.o conftest.s conftest.out
27751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27752 $as_echo "$gcc_cv_as_line_zero" >&6; }
27753 if test "x$gcc_cv_as_line_zero" = xyes; then
27755 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27760 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27761 gcc_cv_ld_eh_frame_hdr=no
27762 if test $in_tree_ld = yes ; then
27763 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 \
27764 && test $in_tree_ld_is_elf = yes; then
27765 gcc_cv_ld_eh_frame_hdr=yes
27767 elif test x$gcc_cv_ld != x; then
27768 if echo "$ld_ver" | grep GNU > /dev/null; then
27769 # Check if linker supports --eh-frame-hdr option
27770 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27771 gcc_cv_ld_eh_frame_hdr=yes
27776 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27777 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27778 gcc_cv_ld_eh_frame_hdr=yes
27785 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27787 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27791 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27794 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27795 gcc_cv_ld_eh_frame_ciev3=no
27796 if test $in_tree_ld = yes ; then
27797 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 \
27798 && test $in_tree_ld_is_elf = yes; then
27799 gcc_cv_ld_eh_frame_ciev3=yes
27801 elif test x$gcc_cv_ld != x; then
27802 if echo "$ld_ver" | grep GNU > /dev/null; then
27803 gcc_cv_ld_eh_frame_ciev3=yes
27804 if test 0"$ld_date" -lt 20040513; then
27805 if test -n "$ld_date"; then
27806 # If there was date string, but was earlier than 2004-05-13, fail
27807 gcc_cv_ld_eh_frame_ciev3=no
27808 elif test "$ld_vers_major" -lt 2; then
27809 gcc_cv_ld_eh_frame_ciev3=no
27810 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27811 gcc_cv_ld_eh_frame_ciev3=no
27817 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27818 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27819 gcc_cv_ld_eh_frame_ciev3=yes
27826 cat >>confdefs.h <<_ACEOF
27827 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27831 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27834 $as_echo_n "checking linker position independent executable support... " >&6; }
27836 if test $in_tree_ld = yes ; then
27838 # Full PIE support on Solaris was only introduced in gld 2.26.
27839 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
27840 *) gcc_gld_pie_min_version=15 ;;
27842 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 \
27843 && test $in_tree_ld_is_elf = yes; then
27846 elif test x$gcc_cv_ld != x; then
27847 # Check if linker supports -pie option
27848 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27852 if echo "$ld_ver" | grep GNU > /dev/null \
27853 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27860 *-*-solaris2.1[1-9]*)
27861 # Solaris 11.x and Solaris 12 added PIE support.
27862 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
27869 if test x"$gcc_cv_ld_pie" = xyes; then
27871 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27875 $as_echo "$gcc_cv_ld_pie" >&6; }
27877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27878 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27879 gcc_cv_ld_pie_copyreloc=no
27880 if test $gcc_cv_ld_pie = yes ; then
27881 if test $in_tree_ld = yes ; then
27882 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
27883 gcc_cv_ld_pie_copyreloc=yes
27885 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27886 # Check if linker supports -pie option with copy reloc
27888 i?86-*-linux* | x86_64-*-linux*)
27889 cat > conftest1.s <<EOF
27892 .type a_glob, @object
27897 cat > conftest2.s <<EOF
27900 .type main, @function
27902 movl %eax, a_glob(%rip)
27905 .section .data.rel,"aw",@progbits
27910 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27911 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27912 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27913 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27914 gcc_cv_ld_pie_copyreloc=yes
27916 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27922 cat >>confdefs.h <<_ACEOF
27923 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27927 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27930 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27931 gcc_cv_ld_eh_gc_sections=no
27932 if test $in_tree_ld = yes ; then
27933 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 \
27934 && test $in_tree_ld_is_elf = yes; then
27935 gcc_cv_ld_eh_gc_sections=yes
27937 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27938 cat > conftest.s <<EOF
27941 .type _start, @function
27944 .size _start, .-_start
27945 .section .text.foo,"ax",@progbits
27946 .type foo, @function
27950 .section .gcc_except_table.foo,"a",@progbits
27953 .section .eh_frame,"a",@progbits
27956 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27957 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27958 | grep "gc-sections option ignored" > /dev/null; then
27959 gcc_cv_ld_eh_gc_sections=no
27960 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27961 | grep gcc_except_table > /dev/null; then
27962 gcc_cv_ld_eh_gc_sections=yes
27963 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27964 if test x$gcc_cv_as_comdat_group != xyes; then
27965 gcc_cv_ld_eh_gc_sections=no
27966 cat > conftest.s <<EOF
27969 .type _start, @function
27972 .size _start, .-_start
27973 .section .gnu.linkonce.t.foo,"ax",@progbits
27974 .type foo, @function
27978 .section .gcc_except_table.foo,"a",@progbits
27981 .section .eh_frame,"a",@progbits
27984 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27985 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27986 | grep "gc-sections option ignored" > /dev/null; then
27987 gcc_cv_ld_eh_gc_sections=no
27988 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27989 | grep gcc_except_table > /dev/null; then
27990 gcc_cv_ld_eh_gc_sections=yes
27996 rm -f conftest.s conftest.o conftest
28000 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28001 gcc_cv_ld_eh_gc_sections=no
28004 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28006 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28010 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28013 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28014 gcc_cv_ld_eh_gc_sections_bug=no
28015 if test $in_tree_ld = yes ; then
28016 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 \
28017 && test $in_tree_ld_is_elf = yes; then
28018 gcc_cv_ld_eh_gc_sections_bug=yes
28020 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
28021 gcc_cv_ld_eh_gc_sections_bug=yes
28022 cat > conftest.s <<EOF
28025 .type _start, @function
28028 .size _start, .-_start
28029 .section .text.startup.foo,"ax",@progbits
28030 .type foo, @function
28034 .section .gcc_except_table.foo,"a",@progbits
28037 .section .eh_frame,"a",@progbits
28040 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28041 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28042 | grep "gc-sections option ignored" > /dev/null; then
28044 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28045 | grep gcc_except_table > /dev/null; then
28046 gcc_cv_ld_eh_gc_sections_bug=no
28049 rm -f conftest.s conftest.o conftest
28051 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28053 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28057 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28060 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28061 # gold/gld support compressed debug sections since binutils 2.19/2.21
28062 if test $in_tree_ld = yes ; then
28063 gcc_cv_ld_compress_debug=0
28064 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
28065 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28066 gcc_cv_ld_compress_debug=2
28067 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28068 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
28069 && test $in_tree_ld_is_elf = yes; then
28070 gcc_cv_ld_compress_debug=1
28072 elif echo "$ld_ver" | grep GNU > /dev/null; then
28073 gcc_cv_ld_compress_debug=1
28074 if test 0"$ld_date" -lt 20050308; then
28075 if test -n "$ld_date"; then
28076 # If there was date string, but was earlier than 2005-03-08, fail
28077 gcc_cv_ld_compress_debug=0
28078 elif test "$ld_vers_major" -lt 2; then
28079 gcc_cv_ld_compress_debug=0
28080 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28081 gcc_cv_ld_compress_debug=0
28084 if test $ld_is_gold = yes; then
28085 gcc_cv_ld_compress_debug=2
28086 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28089 case "${target}" in
28091 # Introduced in Solaris 11.2.
28092 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28093 gcc_cv_ld_compress_debug=3
28094 gcc_cv_ld_compress_debug_option="-z compress-sections"
28096 gcc_cv_ld_compress_debug=0
28100 # Assume linkers other than GNU ld don't support compessed debug
28102 gcc_cv_ld_compress_debug=0
28107 cat >>confdefs.h <<_ACEOF
28108 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28112 cat >>confdefs.h <<_ACEOF
28113 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28117 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28119 if test x"$ld64_flag" = x"yes"; then
28121 # Set defaults for possibly untestable items.
28122 gcc_cv_ld64_export_dynamic=0
28124 if test "$build" = "$host"; then
28130 # On Darwin, because of FAT library support, it is often possible to execute
28131 # exes from compatible archs even when the host differs from the build system.
28132 case "$build","$host" in
28133 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28134 darwin_try_test=1;;
28138 # If the configurer specified a minimum ld64 version to be supported, then use
28139 # that to determine feature support.
28140 if test x"${gcc_cv_ld64_version}" != x; then
28141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28142 $as_echo_n "checking ld64 specified version... " >&6; }
28143 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28145 $as_echo "$gcc_cv_ld64_major" >&6; }
28146 if test "$gcc_cv_ld64_major" -ge 236; then
28147 gcc_cv_ld64_export_dynamic=1
28149 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28150 # If the version was not specified, try to find it.
28151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28152 $as_echo_n "checking linker version... " >&6; }
28153 if test x"${gcc_cv_ld64_version}" = x; then
28154 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28157 $as_echo "$gcc_cv_ld64_version" >&6; }
28159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28160 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28161 gcc_cv_ld64_export_dynamic=1
28162 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28163 gcc_cv_ld64_export_dynamic=0
28165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28166 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28169 if test x"${gcc_cv_ld64_version}" != x; then
28171 cat >>confdefs.h <<_ACEOF
28172 #define LD64_VERSION "${gcc_cv_ld64_version}"
28178 cat >>confdefs.h <<_ACEOF
28179 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28189 $as_echo_n "checking linker --as-needed support... " >&6; }
28190 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28191 $as_echo_n "(cached) " >&6
28193 gcc_cv_ld_as_needed=no
28194 gcc_cv_ld_as_needed_option='--as-needed'
28195 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28196 if test $in_tree_ld = yes ; then
28197 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 \
28198 && test $in_tree_ld_is_elf = yes; then
28199 gcc_cv_ld_as_needed=yes
28201 elif test x$gcc_cv_ld != x; then
28202 # Check if linker supports --as-needed and --no-as-needed options
28203 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
28204 gcc_cv_ld_as_needed=yes
28207 # Solaris 2 ld always supports -z ignore/-z record.
28209 gcc_cv_ld_as_needed=yes
28210 gcc_cv_ld_as_needed_option="-z ignore"
28211 gcc_cv_ld_no_as_needed_option="-z record"
28216 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28217 # dl_iterate_phdr, i.e. since Solaris 11.
28219 *-*-solaris2.1[1-9]*)
28221 i?86-*-* | x86_64-*-*)
28222 if echo "$ld_ver" | grep GNU > /dev/null; then
28223 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28224 gcc_cv_ld_as_needed=no
28230 gcc_cv_ld_as_needed=no
28235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28236 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28237 if test x"$gcc_cv_ld_as_needed" = xyes; then
28239 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28242 cat >>confdefs.h <<_ACEOF
28243 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28247 cat >>confdefs.h <<_ACEOF
28248 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28254 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28255 saved_LDFLAGS="$LDFLAGS"
28256 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28257 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28259 /* end confdefs.h. */
28260 int main(void) {return 0;}
28262 if ac_fn_cxx_try_link "$LINENO"; then :
28263 gcc_cv_ld_clearcap=yes; break
28265 gcc_cv_ld_clearcap=no
28267 rm -f core conftest.err conftest.$ac_objext \
28268 conftest$ac_exeext conftest.$ac_ext
28270 LDFLAGS="$saved_LDFLAGS"
28271 if test "x$gcc_cv_ld_clearcap" = xyes; then
28273 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28275 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28279 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28281 case "$target:$tm_file" in
28282 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28285 emul_name="-melf64lppc"
28288 emul_name="-melf64ppc"
28291 emul_name="-melf64ppc_fbsd"
28294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28295 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28296 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28297 $as_echo_n "(cached) " >&6
28299 gcc_cv_ld_no_dot_syms=no
28300 if test x"$ld_is_gold" = xyes; then
28301 gcc_cv_ld_no_dot_syms=yes
28302 elif test $in_tree_ld = yes ; then
28303 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
28304 gcc_cv_ld_no_dot_syms=yes
28306 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28307 cat > conftest1.s <<EOF
28311 cat > conftest2.s <<EOF
28312 .section ".opd","aw"
28315 .type foo,@function
28317 .quad .LEfoo,.TOC.@tocbase,0
28323 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28324 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28325 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28326 gcc_cv_ld_no_dot_syms=yes
28328 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28333 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28334 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28336 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28341 $as_echo_n "checking linker large toc support... " >&6; }
28342 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28343 $as_echo_n "(cached) " >&6
28345 gcc_cv_ld_large_toc=no
28346 if test x"$ld_is_gold" = xyes; then
28347 gcc_cv_ld_large_toc=yes
28348 elif test $in_tree_ld = yes ; then
28349 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
28350 gcc_cv_ld_large_toc=yes
28352 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28353 cat > conftest.s <<EOF
28354 .section ".tbss","awT",@nobits
28360 addis 9,13,ie0@got@tprel@ha
28361 ld 9,ie0@got@tprel@l(9)
28363 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28364 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28365 gcc_cv_ld_large_toc=yes
28367 rm -f conftest conftest.o conftest.s
28371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28372 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28373 if test x"$gcc_cv_ld_large_toc" = xyes; then
28375 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28380 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28381 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28382 $as_echo_n "(cached) " >&6
28384 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28385 cat > conftest.s <<EOF
28390 .section .data.rel.ro,"aw",@progbits
28395 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28396 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28397 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)) }'`
28399 rm -f conftest conftest.o conftest.s
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28404 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28405 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28407 cat >>confdefs.h <<_ACEOF
28408 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28418 $as_echo_n "checking linker large toc support... " >&6; }
28419 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28420 $as_echo_n "(cached) " >&6
28422 gcc_cv_ld_large_toc=no
28423 if test x$gcc_cv_as != x ; then
28424 cat > conftest.s <<EOF
28434 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28435 gcc_cv_ld_large_toc=yes
28437 rm -f conftest conftest.o conftest.s
28441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28442 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28443 if test x"$gcc_cv_ld_large_toc" = xyes; then
28445 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28452 $as_echo_n "checking linker --build-id support... " >&6; }
28453 if test "${gcc_cv_ld_buildid+set}" = set; then :
28454 $as_echo_n "(cached) " >&6
28456 gcc_cv_ld_buildid=no
28457 if test $in_tree_ld = yes ; then
28458 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28459 "$gcc_cv_gld_minor_version" -ge 18 -o \
28460 "$gcc_cv_gld_major_version" -gt 2 \
28461 && test $in_tree_ld_is_elf = yes; then
28462 gcc_cv_ld_buildid=yes
28464 elif test x$gcc_cv_ld != x; then
28465 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
28466 gcc_cv_ld_buildid=yes
28470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28471 $as_echo "$gcc_cv_ld_buildid" >&6; }
28472 if test x"$gcc_cv_ld_buildid" = xyes; then
28474 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28478 # Check whether --enable-linker-build-id was given.
28479 if test "${enable_linker_build_id+set}" = set; then :
28480 enableval=$enable_linker_build_id;
28482 enable_linker_build_id=no
28486 if test x"$enable_linker_build_id" = xyes; then
28487 if test x"$gcc_cv_ld_buildid" = xyes; then
28489 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28493 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28497 # In binutils 2.21, GNU ld gained support for new emulations fully
28498 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28500 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28501 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28502 $as_echo_n "(cached) " >&6
28504 gcc_cv_ld_sol2_emulation=no
28505 if test $in_tree_ld = yes ; then
28506 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28507 "$gcc_cv_gld_minor_version" -ge 21 -o \
28508 "$gcc_cv_gld_major_version" -gt 2 \
28509 && test $in_tree_ld_is_elf = yes; then
28510 gcc_cv_ld_sol2_emulation=yes
28512 elif test x$gcc_cv_ld != x; then
28513 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28514 grep _sol2 > /dev/null; then
28515 gcc_cv_ld_sol2_emulation=yes
28519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28520 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28521 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28523 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28528 $as_echo_n "checking linker --sysroot support... " >&6; }
28529 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28530 $as_echo_n "(cached) " >&6
28532 gcc_cv_ld_sysroot=no
28533 if test $in_tree_ld = yes ; then
28534 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
28535 gcc_cv_ld_sysroot=yes
28537 elif test x$gcc_cv_ld != x; then
28538 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
28539 gcc_cv_ld_sysroot=yes
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28544 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28545 if test x"$gcc_cv_ld_sysroot" = xyes; then
28547 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28553 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28555 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28556 if test "${gcc_cv_solaris_crts+set}" = set; then :
28557 $as_echo_n "(cached) " >&6
28559 gcc_cv_solaris_crts=no
28560 if test x$host != x$target; then
28561 if test "x$with_sysroot" = xyes; then
28562 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28564 target_sysroot="${with_sysroot}"
28567 target_libdir="$target_sysroot/usr/lib"
28568 # At the time they were added, gcrt1.o became a symlink for backwards
28569 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28571 i?86-*-solaris2* | x86_64-*-solaris2*)
28572 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28574 sparc*-*-solaris2*)
28575 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28580 $as_echo "$gcc_cv_solaris_crts" >&6; }
28583 if test x$gcc_cv_solaris_crts = xyes; then
28585 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28589 # Test for stack protector support in target C library.
28590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28591 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28592 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28593 $as_echo_n "(cached) " >&6
28595 gcc_cv_libc_provides_ssp=no
28598 # All versions of musl provide stack protector
28599 gcc_cv_libc_provides_ssp=yes;;
28600 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
28601 # glibc 2.4 and later provides __stack_chk_fail and
28602 # either __stack_chk_guard, or TLS access to stack guard canary.
28604 if test $glibc_version_major -gt 2 \
28605 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28606 gcc_cv_libc_provides_ssp=yes
28609 if test -f $target_header_dir/features.h \
28610 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28611 $target_header_dir/features.h > /dev/null; then
28612 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28613 $target_header_dir/features.h > /dev/null && \
28614 test -f $target_header_dir/bits/uClibc_config.h && \
28615 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28616 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28617 gcc_cv_libc_provides_ssp=yes
28619 # all versions of Bionic support stack protector
28620 elif test -f $target_header_dir/sys/cdefs.h \
28621 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28622 $target_header_dir/sys/cdefs.h > /dev/null; then
28623 gcc_cv_libc_provides_ssp=yes
28628 # Avoid complicated tests (see
28629 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28630 # simply assert that glibc does provide this, which is true for all
28631 # realistically usable GNU/Hurd configurations.
28632 # All supported versions of musl provide it as well
28633 gcc_cv_libc_provides_ssp=yes;;
28634 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
28635 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28636 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28637 gcc_cv_libc_provides_ssp=yes
28639 echo "no __stack_chk_fail on this target"
28643 *) gcc_cv_libc_provides_ssp=no ;;
28646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28647 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28649 if test x$gcc_cv_libc_provides_ssp = xyes; then
28651 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28655 # Check whether --enable-default-ssp was given.
28656 # Check whether --enable-default-ssp was given.
28657 if test "${enable_default_ssp+set}" = set; then :
28658 enableval=$enable_default_ssp;
28659 if test x$gcc_cv_libc_provides_ssp = xyes; then
28661 ia64*-*-*) enable_default_ssp=no ;;
28662 *) enable_default_ssp=$enableval ;;
28665 enable_default_ssp=no
28668 enable_default_ssp=no
28671 if test x$enable_default_ssp = xyes ; then
28673 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28678 # Test for <sys/sdt.h> on the target.
28680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28681 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28683 if test -f $target_header_dir/sys/sdt.h; then
28686 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28690 $as_echo "$have_sys_sdt_h" >&6; }
28692 # Check if TFmode long double should be used by default or not.
28693 # Some glibc targets used DFmode long double, but with glibc 2.4
28694 # and later they can use TFmode.
28696 powerpc*-*-linux* | \
28697 sparc*-*-linux* | \
28701 # Check whether --with-long-double-128 was given.
28702 if test "${with_long_double_128+set}" = set; then :
28703 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28706 if test $glibc_version_major -gt 2 \
28707 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28708 gcc_cv_target_ldbl128=yes
28711 gcc_cv_target_ldbl128=no
28712 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28713 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28714 && gcc_cv_target_ldbl128=yes
28721 if test x$gcc_cv_target_ldbl128 = xyes; then
28723 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28727 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
28728 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
28729 gcc_cv_libc_provides_hwcap_in_tcb=no
28733 if test $glibc_version_major -gt 2 \
28734 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
28735 gcc_cv_libc_provides_hwcap_in_tcb=yes
28739 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
28741 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
28745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28746 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28747 gcc_cv_target_dl_iterate_phdr=unknown
28749 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28750 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28751 # libdl there, both complicating its use and breaking compatibility
28752 # between Solaris 10 updates.
28753 *-*-solaris2.1[1-9]*)
28754 # <link.h> needs both a dl_iterate_phdr declaration and support for
28755 # compilation with largefile support.
28756 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
28757 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
28758 gcc_cv_target_dl_iterate_phdr=yes
28760 gcc_cv_target_dl_iterate_phdr=no
28763 *-*-dragonfly* | *-*-freebsd*)
28764 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
28765 gcc_cv_target_dl_iterate_phdr=yes
28767 gcc_cv_target_dl_iterate_phdr=no
28771 gcc_cv_target_dl_iterate_phdr=yes
28775 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
28777 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28781 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28783 # We no longer support different GC mechanisms. Emit an error if
28784 # the user configures with --with-gc.
28786 # Check whether --with-gc was given.
28787 if test "${with_gc+set}" = set; then :
28788 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28792 # Libraries to use on the host. This will normally be set by the top
28793 # level Makefile. Here we simply capture the value for our Makefile.
28794 if test -z "${HOST_LIBS+set}"; then
28799 # Use the system's zlib library.
28801 # Use the system's zlib library.
28802 zlibdir="-L\$(top_builddir)/../zlib"
28803 zlibinc="-I\$(top_srcdir)/../zlib"
28805 # Check whether --with-system-zlib was given.
28806 if test "${with_system_zlib+set}" = set; then :
28807 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
28819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28820 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28821 # Check whether --enable-maintainer-mode was given.
28822 if test "${enable_maintainer_mode+set}" = set; then :
28823 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28830 $as_echo "$maintainer_mode" >&6; }
28832 if test "$maintainer_mode" = "yes"; then
28839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28840 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28841 # Check whether --enable-link-mutex was given.
28842 if test "${enable_link_mutex+set}" = set; then :
28843 enableval=$enable_link_mutex; do_link_mutex=$enableval
28848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28849 $as_echo "$do_link_mutex" >&6; }
28851 if test "$do_link_mutex" = "yes"; then
28854 DO_LINK_MUTEX=false
28862 # Make empty files to contain the specs and options for each language.
28863 # Then add #include lines to for a compiler that has specs and/or options.
28869 # These (without "all_") are set in each config-lang.in.
28870 # `language' must be a single word so is spelled singularly.
28873 all_outputs='Makefile'
28874 # List of language makefile fragments.
28875 all_lang_makefrags=
28876 # Additional files for gengtype
28877 all_gtfiles="$target_gtfiles"
28879 # These are the languages that are set in --enable-languages,
28880 # and are available in the GCC tree.
28881 all_selected_languages=
28883 # Add the language fragments.
28884 # Languages are added via two mechanisms. Some information must be
28885 # recorded in makefile variables, these are defined in config-lang.in.
28886 # We accumulate them and plug them into the main Makefile.
28887 # The other mechanism is a set of hooks for each of the main targets
28888 # like `clean', `install', etc.
28890 language_hooks="Make-hooks"
28892 for lang in ${srcdir}/*/config-lang.in
28894 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28896 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28897 if test "x$lang_alias" = x
28899 echo "$lang doesn't set \$language." 1>&2
28902 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28903 subdirs="$subdirs $subdir"
28905 # $gcc_subdir is where the gcc integration files are to be found
28906 # for a language, both for internal compiler purposes (compiler
28907 # sources implementing front-end to GCC tree converters), and for
28908 # build infrastructure purposes (Make-lang.in, etc.)
28910 # This will be <subdir> (relative to $srcdir) if a line like
28911 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28912 # is found in <langdir>/config-lang.in, and will remain <langdir>
28915 # Except for the language alias (fetched above), the regular
28916 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28917 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28918 # only this and the language alias.
28920 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28921 if [ "$gcc_subdir" = "" ]; then
28922 gcc_subdir="$subdir"
28925 case ",$enable_languages," in
28927 all_selected_languages="$all_selected_languages $lang_alias"
28928 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28929 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28940 . ${srcdir}/$gcc_subdir/config-lang.in
28941 if test "x$language" = x
28943 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28948 case ",$enable_languages," in
28949 *,$lang_alias,*) ;;
28951 for i in $subdir_requires; do
28952 test -f "${srcdir}/$i/config-lang.in" && continue
28960 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28961 if test -f $srcdir/$gcc_subdir/lang.opt; then
28962 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28963 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28965 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28966 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28968 all_languages="$all_languages $language"
28969 all_compilers="$all_compilers $compilers"
28970 all_outputs="$all_outputs $outputs"
28971 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28972 case ",$enable_languages," in
28975 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28985 for language in $all_selected_languages
28987 check_languages="$check_languages check-$language"
28990 # We link each language in with a set of hooks, reached indirectly via
28991 # lang.${target}. Only do so for selected languages.
28995 target_list="all.cross start.encap rest.encap tags \
28996 install-common install-man install-info install-pdf install-html dvi \
28997 pdf html uninstall info man srcextra srcman srcinfo \
28998 mostlyclean clean distclean maintainer-clean install-plugin"
29000 for t in $target_list
29003 for lang in $all_selected_languages
29007 echo "lang.$t: $x" >> Make-hooks
29011 # Option include files
29014 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29015 option_includes="option-includes.mk"
29024 echo "dir ." > .gdbinit
29025 echo "dir ${srcdir}" >> .gdbinit
29026 if test x$gdb_needs_out_file_path = xyes
29028 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29030 if test "x$subdirs" != x; then
29033 echo "dir ${srcdir}/$s" >> .gdbinit
29036 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29037 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29039 # Put a breakpoint on __asan_report_error to help with debugging buffer
29042 *-fsanitize=address*)
29043 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29047 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29051 # Find a directory in which to install a shared libgcc.
29053 # Check whether --enable-version-specific-runtime-libs was given.
29054 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29055 enableval=$enable_version_specific_runtime_libs;
29059 # Substitute configuration variables
29123 if test x${build} = x${host} ; then
29124 if test x${host} = x${target} ; then
29125 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29127 echo "Links are now set up to build a cross-compiler" 1>&2
29128 echo " from ${host} to ${target}." 1>&2
29131 if test x${host} = x${target} ; then
29132 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29133 echo " for ${target}." 1>&2
29135 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29136 echo " from ${host} to ${target}." 1>&2
29145 if test "x${ISLLIBS}" != "x" ; then
29147 $as_echo "#define HAVE_isl 1" >>confdefs.h
29151 # Check whether isl_options_set_schedule_serialize_sccs is available;
29152 # it's new in isl 0.15.
29153 if test "x${ISLLIBS}" != "x" ; then
29154 saved_CXXFLAGS="$CXXFLAGS"
29155 CXXFLAGS="$CXXFLAGS $ISLINC $GMPINC"
29157 LIBS="$LIBS $ISLLIBS $GMPLIBS"
29159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
29160 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
29161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29162 /* end confdefs.h. */
29163 #include <isl/schedule.h>
29167 isl_options_set_schedule_serialize_sccs (NULL, 0);
29172 if ac_fn_cxx_try_link "$LINENO"; then :
29173 ac_has_isl_options_set_schedule_serialize_sccs=yes
29175 ac_has_isl_options_set_schedule_serialize_sccs=no
29177 rm -f core conftest.err conftest.$ac_objext \
29178 conftest$ac_exeext conftest.$ac_ext
29179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
29180 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
29183 CXXFLAGS="$saved_CXXFLAGS"
29185 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
29187 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
29192 # Check for plugin support
29193 # Check whether --enable-plugin was given.
29194 if test "${enable_plugin+set}" = set; then :
29195 enableval=$enable_plugin; enable_plugin=$enableval
29197 enable_plugin=yes; default_plugin=yes
29205 if test x$build = x$host; then
29206 export_sym_check="nm${exeext} -g"
29207 elif test x$host = x$target; then
29208 export_sym_check="$gcc_cv_nm -g"
29214 if test x$build = x$host; then
29215 export_sym_check="objdump${exeext} -T"
29216 elif test x$host = x$target; then
29217 export_sym_check="$gcc_cv_objdump -T"
29224 if test x"$enable_plugin" = x"yes"; then
29226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29227 $as_echo_n "checking for exported symbols... " >&6; }
29228 if test "x$export_sym_check" != x; then
29229 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29230 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29231 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29232 : # No need to use a flag
29233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29234 $as_echo "yes" >&6; }
29236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29237 $as_echo "yes" >&6; }
29238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29239 $as_echo_n "checking for -rdynamic... " >&6; }
29240 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29241 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29242 plugin_rdynamic=yes
29243 pluginlibs="-rdynamic"
29248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29249 $as_echo "$plugin_rdynamic" >&6; }
29252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29253 $as_echo "unable to check" >&6; }
29258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29259 $as_echo_n "checking for library containing dlopen... " >&6; }
29260 if test "${ac_cv_search_dlopen+set}" = set; then :
29261 $as_echo_n "(cached) " >&6
29263 ac_func_search_save_LIBS=$LIBS
29264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29265 /* end confdefs.h. */
29267 /* Override any GCC internal prototype to avoid an error.
29268 Use char because int might match the return type of a GCC
29269 builtin and then its argument prototype would still apply. */
29282 for ac_lib in '' dl; do
29283 if test -z "$ac_lib"; then
29284 ac_res="none required"
29287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29289 if ac_fn_cxx_try_link "$LINENO"; then :
29290 ac_cv_search_dlopen=$ac_res
29292 rm -f core conftest.err conftest.$ac_objext \
29294 if test "${ac_cv_search_dlopen+set}" = set; then :
29298 if test "${ac_cv_search_dlopen+set}" = set; then :
29301 ac_cv_search_dlopen=no
29303 rm conftest.$ac_ext
29304 LIBS=$ac_func_search_save_LIBS
29306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29307 $as_echo "$ac_cv_search_dlopen" >&6; }
29308 ac_res=$ac_cv_search_dlopen
29309 if test "$ac_res" != no; then :
29310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29314 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29315 pluginlibs="$pluginlibs -ldl"
29319 # Check that we can build shared objects with -fPIC -shared
29320 saved_LDFLAGS="$LDFLAGS"
29321 saved_CFLAGS="$CFLAGS"
29324 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29325 CFLAGS="$CFLAGS -fPIC"
29326 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29329 CFLAGS="$CFLAGS -fPIC"
29330 LDFLAGS="$LDFLAGS -fPIC -shared"
29333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29334 $as_echo_n "checking for -fPIC -shared... " >&6; }
29335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29336 /* end confdefs.h. */
29346 if ac_fn_cxx_try_link "$LINENO"; then :
29347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29348 $as_echo "yes" >&6; }; have_pic_shared=yes
29350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29351 $as_echo "no" >&6; }; have_pic_shared=no
29353 rm -f core conftest.err conftest.$ac_objext \
29354 conftest$ac_exeext conftest.$ac_ext
29355 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29359 LDFLAGS="$saved_LDFLAGS"
29360 CFLAGS="$saved_CFLAGS"
29362 # If plugin support had been requested but not available, fail.
29363 if test x"$enable_plugin" = x"no" ; then
29364 if test x"$default_plugin" != x"yes"; then
29366 Building GCC with plugin support requires a host that supports
29367 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29374 if test x"$enable_plugin" = x"yes"; then
29376 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29381 # Enable --enable-host-shared
29382 # Check whether --enable-host-shared was given.
29383 if test "${enable_host_shared+set}" = set; then :
29384 enableval=$enable_host_shared; PICFLAG=-fPIC
29393 # Check whether --enable-libquadmath-support was given.
29394 if test "${enable_libquadmath_support+set}" = set; then :
29395 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29397 ENABLE_LIBQUADMATH_SUPPORT=yes
29400 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29402 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29407 # Specify what hash style to use by default.
29409 # Check whether --with-linker-hash-style was given.
29410 if test "${with_linker_hash_style+set}" = set; then :
29411 withval=$with_linker_hash_style; case x"$withval" in
29413 LINKER_HASH_STYLE=sysv
29416 LINKER_HASH_STYLE=gnu
29419 LINKER_HASH_STYLE=both
29422 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29426 LINKER_HASH_STYLE=''
29429 if test x"${LINKER_HASH_STYLE}" != x; then
29431 cat >>confdefs.h <<_ACEOF
29432 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29437 # Specify what should be the default of -fdiagnostics-color option.
29439 # Check whether --with-diagnostics-color was given.
29440 if test "${with_diagnostics_color+set}" = set; then :
29441 withval=$with_diagnostics_color; case x"$withval" in
29443 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29446 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29449 DIAGNOSTICS_COLOR_DEFAULT=-1
29452 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29455 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29459 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29463 cat >>confdefs.h <<_ACEOF
29464 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29468 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29469 # of jit/jit-playback.c.
29470 cat > gcc-driver-name.h <<EOF
29471 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29474 # Check whether --enable-default-pie was given.
29475 # Check whether --enable-default-pie was given.
29476 if test "${enable_default_pie+set}" = set; then :
29477 enableval=$enable_default_pie; enable_default_pie=$enableval
29479 enable_default_pie=no
29482 if test x$enable_default_pie = xyes ; then
29484 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29489 # Check if -fno-PIE works.
29490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29491 $as_echo_n "checking for -fno-PIE option... " >&6; }
29492 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29493 $as_echo_n "(cached) " >&6
29495 saved_CXXFLAGS="$CXXFLAGS"
29496 CXXFLAGS="$CXXFLAGS -fno-PIE"
29497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29498 /* end confdefs.h. */
29499 int main(void) {return 0;}
29501 if ac_fn_cxx_try_compile "$LINENO"; then :
29502 gcc_cv_c_no_fpie=yes
29504 gcc_cv_c_no_fpie=no
29506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29507 CXXFLAGS="$saved_CXXFLAGS"
29509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29510 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29511 if test "$gcc_cv_c_no_fpie" = "yes"; then
29512 NO_PIE_CFLAGS="-fno-PIE"
29516 # Check if -no-pie works.
29517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29518 $as_echo_n "checking for -no-pie option... " >&6; }
29519 if test "${gcc_cv_no_pie+set}" = set; then :
29520 $as_echo_n "(cached) " >&6
29522 saved_LDFLAGS="$LDFLAGS"
29523 LDFLAGS="$LDFLAGS -no-pie"
29524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29525 /* end confdefs.h. */
29526 int main(void) {return 0;}
29528 if ac_fn_cxx_try_link "$LINENO"; then :
29533 rm -f core conftest.err conftest.$ac_objext \
29534 conftest$ac_exeext conftest.$ac_ext
29535 LDFLAGS="$saved_LDFLAGS"
29537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29538 $as_echo "$gcc_cv_no_pie" >&6; }
29539 if test "$gcc_cv_no_pie" = "yes"; then
29540 NO_PIE_FLAG="-no-pie"
29544 # Check linker supports '-z bndplt'
29545 ld_bndplt_support=no
29546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29547 $as_echo_n "checking linker -z bndplt option... " >&6; }
29548 if test x"$ld_is_gold" = xno; then
29549 if test $in_tree_ld = yes ; then
29550 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
29551 ld_bndplt_support=yes
29553 elif test x$gcc_cv_ld != x; then
29554 # Check if linker supports -a bndplt option
29555 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
29556 ld_bndplt_support=yes
29560 if test x"$ld_bndplt_support" = xyes; then
29562 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29566 $as_echo "$ld_bndplt_support" >&6; }
29568 # Configure the subdirectories
29569 # AC_CONFIG_SUBDIRS($subdirs)
29571 # Create the Makefile
29572 # and configure language subdirectories
29573 ac_config_files="$ac_config_files $all_outputs"
29576 ac_config_commands="$ac_config_commands default"
29578 cat >confcache <<\_ACEOF
29579 # This file is a shell script that caches the results of configure
29580 # tests run on this system so they can be shared between configure
29581 # scripts and configure runs, see configure's option --config-cache.
29582 # It is not useful on other systems. If it contains results you don't
29583 # want to keep, you may remove or edit it.
29585 # config.status only pays attention to the cache file if you give it
29586 # the --recheck option to rerun configure.
29588 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29589 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29590 # following values.
29594 # The following way of writing the cache mishandles newlines in values,
29595 # but we know of no workaround that is simple, portable, and efficient.
29596 # So, we kill variables containing newlines.
29597 # Ultrix sh set writes to stderr and can't be redirected directly,
29598 # and sets the high bit in the cache file unless we assign to the vars.
29600 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29601 eval ac_val=\$$ac_var
29605 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29606 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29609 _ | IFS | as_nl) ;; #(
29610 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29611 *) { eval $ac_var=; unset $ac_var;} ;;
29617 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29618 *${as_nl}ac_space=\ *)
29619 # `set' does not quote correctly, so add quotes: double-quote
29620 # substitution turns \\\\ into \\, and sed turns \\ into \.
29623 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29626 # `set' quotes correctly as required by POSIX, so do not add quotes.
29627 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29636 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29638 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29640 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29641 if test -w "$cache_file"; then
29642 test "x$cache_file" != "x/dev/null" &&
29643 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29644 $as_echo "$as_me: updating cache $cache_file" >&6;}
29645 cat confcache >$cache_file
29647 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29648 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29653 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29654 # Let make expand exec_prefix.
29655 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29657 DEFS=-DHAVE_CONFIG_H
29661 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29662 # 1. Remove the extension, and $U if already installed.
29663 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29664 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29665 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29666 # will be set to the directory where LIBOBJS objects are built.
29667 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29668 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29670 LIBOBJS=$ac_libobjs
29672 LTLIBOBJS=$ac_ltlibobjs
29677 : ${CONFIG_STATUS=./config.status}
29679 ac_clean_files_save=$ac_clean_files
29680 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29681 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29682 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29684 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29686 # Generated by $as_me.
29687 # Run this file to recreate the current configuration.
29688 # Compiler output produced by configure, useful for debugging
29689 # configure, is in config.log if it exists.
29692 ac_cs_recheck=false
29695 SHELL=\${CONFIG_SHELL-$SHELL}
29698 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29699 ## -------------------- ##
29700 ## M4sh Initialization. ##
29701 ## -------------------- ##
29703 # Be more Bourne compatible
29704 DUALCASE=1; export DUALCASE # for MKS sh
29705 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29708 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29709 # is contrary to our usage. Disable this feature.
29710 alias -g '${1+"$@"}'='"$@"'
29711 setopt NO_GLOB_SUBST
29713 case `(set -o) 2>/dev/null` in #(
29725 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29726 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29727 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29728 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29729 # Prefer a ksh shell builtin over an external printf program on Solaris,
29730 # but without wasting forks for bash or zsh.
29731 if test -z "$BASH_VERSION$ZSH_VERSION" \
29732 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29733 as_echo='print -r --'
29734 as_echo_n='print -rn --'
29735 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29736 as_echo='printf %s\n'
29737 as_echo_n='printf %s'
29739 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29740 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29741 as_echo_n='/usr/ucb/echo -n'
29743 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29744 as_echo_n_body='eval
29748 expr "X$arg" : "X\\(.*\\)$as_nl";
29749 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29751 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29753 export as_echo_n_body
29754 as_echo_n='sh -c $as_echo_n_body as_echo'
29756 export as_echo_body
29757 as_echo='sh -c $as_echo_body as_echo'
29760 # The user is always right.
29761 if test "${PATH_SEPARATOR+set}" != set; then
29763 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29764 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29771 # We need space, tab and new line, in precisely that order. Quoting is
29772 # there to prevent editors from complaining about space-tab.
29773 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29774 # splitting by setting IFS to empty value.)
29777 # Find who we are. Look in the path if we contain no directory separator.
29779 *[\\/]* ) as_myself=$0 ;;
29780 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29781 for as_dir in $PATH
29784 test -z "$as_dir" && as_dir=.
29785 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29791 # We did not find ourselves, most probably we were run as `sh COMMAND'
29792 # in which case we are not to be found in the path.
29793 if test "x$as_myself" = x; then
29796 if test ! -f "$as_myself"; then
29797 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29801 # Unset variables that we do not need and which cause bugs (e.g. in
29802 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29803 # suppresses any "Segmentation fault" message there. '((' could
29804 # trigger a bug in pdksh 5.2.14.
29805 for as_var in BASH_ENV ENV MAIL MAILPATH
29806 do eval test x\${$as_var+set} = xset \
29807 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29820 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29823 # as_fn_error ERROR [LINENO LOG_FD]
29824 # ---------------------------------
29825 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29826 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29827 # script with status $?, using 1 if that was 0.
29830 as_status=$?; test $as_status -eq 0 && as_status=1
29832 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29833 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29835 $as_echo "$as_me: error: $1" >&2
29836 as_fn_exit $as_status
29840 # as_fn_set_status STATUS
29841 # -----------------------
29842 # Set $? to STATUS, without forking.
29843 as_fn_set_status ()
29846 } # as_fn_set_status
29848 # as_fn_exit STATUS
29849 # -----------------
29850 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29854 as_fn_set_status $1
29860 # Portably unset VAR.
29863 { eval $1=; unset $1;}
29865 as_unset=as_fn_unset
29866 # as_fn_append VAR VALUE
29867 # ----------------------
29868 # Append the text in VALUE to the end of the definition contained in VAR. Take
29869 # advantage of any shell optimizations that allow amortized linear growth over
29870 # repeated appends, instead of the typical quadratic growth present in naive
29872 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29873 eval 'as_fn_append ()
29884 # as_fn_arith ARG...
29885 # ------------------
29886 # Perform arithmetic evaluation on the ARGs, and store the result in the
29887 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29888 # must be portable across $(()) and expr.
29889 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29890 eval 'as_fn_arith ()
29897 as_val=`expr "$@" || test $? -eq 1`
29902 if expr a : '\(a\)' >/dev/null 2>&1 &&
29903 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29909 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29910 as_basename=basename
29915 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29921 as_me=`$as_basename -- "$0" ||
29922 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29923 X"$0" : 'X\(//\)$' \| \
29924 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29926 sed '/^.*\/\([^/][^/]*\)\/*$/{
29940 # Avoid depending upon Character Ranges.
29941 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29942 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29943 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29944 as_cr_digits='0123456789'
29945 as_cr_alnum=$as_cr_Letters$as_cr_digits
29947 ECHO_C= ECHO_N= ECHO_T=
29948 case `echo -n x` in #(((((
29950 case `echo 'xy\c'` in
29951 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29953 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29960 rm -f conf$$ conf$$.exe conf$$.file
29961 if test -d conf$$.dir; then
29962 rm -f conf$$.dir/conf$$.file
29965 mkdir conf$$.dir 2>/dev/null
29967 if (echo >conf$$.file) 2>/dev/null; then
29968 if ln -s conf$$.file conf$$ 2>/dev/null; then
29970 # ... but there are two gotchas:
29971 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29972 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29973 # In both cases, we have to default to `cp -p'.
29974 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29976 elif ln conf$$.file conf$$ 2>/dev/null; then
29984 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29985 rmdir conf$$.dir 2>/dev/null
29990 # Create "$as_dir" as a directory, including parents if necessary.
29995 -*) as_dir=./$as_dir;;
29997 test -d "$as_dir" || eval $as_mkdir_p || {
30001 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30002 *) as_qdir=$as_dir;;
30004 as_dirs="'$as_qdir' $as_dirs"
30005 as_dir=`$as_dirname -- "$as_dir" ||
30006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30007 X"$as_dir" : 'X\(//\)[^/]' \| \
30008 X"$as_dir" : 'X\(//\)$' \| \
30009 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30010 $as_echo X"$as_dir" |
30011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30015 /^X\(\/\/\)[^/].*/{
30028 test -d "$as_dir" && break
30030 test -z "$as_dirs" || eval "mkdir $as_dirs"
30031 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30035 if mkdir -p . 2>/dev/null; then
30036 as_mkdir_p='mkdir -p "$as_dir"'
30038 test -d ./-p && rmdir ./-p
30042 if test -x / >/dev/null 2>&1; then
30043 as_test_x='test -x'
30045 if ls -dL / >/dev/null 2>&1; then
30052 if test -d "$1"; then
30058 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30059 ???[sx]*):;;*)false;;esac;fi
30063 as_executable_p=$as_test_x
30065 # Sed expression to map a string onto a valid CPP name.
30066 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30068 # Sed expression to map a string onto a valid variable name.
30069 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30073 ## ----------------------------------- ##
30074 ## Main body of $CONFIG_STATUS script. ##
30075 ## ----------------------------------- ##
30077 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30080 # Save the log message, to keep $0 and so on meaningful, and to
30081 # report actual input values of CONFIG_FILES etc. instead of their
30082 # values after options handling.
30084 This file was extended by $as_me, which was
30085 generated by GNU Autoconf 2.64. Invocation command line was
30087 CONFIG_FILES = $CONFIG_FILES
30088 CONFIG_HEADERS = $CONFIG_HEADERS
30089 CONFIG_LINKS = $CONFIG_LINKS
30090 CONFIG_COMMANDS = $CONFIG_COMMANDS
30093 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30098 case $ac_config_files in *"
30099 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30102 case $ac_config_headers in *"
30103 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30108 # Files that config.status was made for.
30109 config_files="$ac_config_files"
30110 config_headers="$ac_config_headers"
30111 config_links="$ac_config_links"
30112 config_commands="$ac_config_commands"
30116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30118 \`$as_me' instantiates files and other configuration actions
30119 from templates according to the current configuration. Unless the files
30120 and actions are specified as TAGs, all are instantiated by default.
30122 Usage: $0 [OPTION]... [TAG]...
30124 -h, --help print this help, then exit
30125 -V, --version print version number and configuration settings, then exit
30126 -q, --quiet, --silent
30127 do not print progress messages
30128 -d, --debug don't remove temporary files
30129 --recheck update $as_me by reconfiguring in the same conditions
30130 --file=FILE[:TEMPLATE]
30131 instantiate the configuration file FILE
30132 --header=FILE[:TEMPLATE]
30133 instantiate the configuration header FILE
30135 Configuration files:
30138 Configuration headers:
30141 Configuration links:
30144 Configuration commands:
30147 Report bugs to the package provider."
30150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30153 configured by $0, generated by GNU Autoconf 2.64,
30154 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30156 Copyright (C) 2009 Free Software Foundation, Inc.
30157 This config.status script is free software; the Free Software Foundation
30158 gives unlimited permission to copy, distribute and modify it."
30163 test -n "\$AWK" || AWK=awk
30166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30167 # The default lists apply if the user does not specify any file.
30173 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30174 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30185 # Handling of the options.
30186 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30188 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30189 $as_echo "$ac_cs_version"; exit ;;
30190 --debug | --debu | --deb | --de | --d | -d )
30192 --file | --fil | --fi | --f )
30195 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30197 as_fn_append CONFIG_FILES " '$ac_optarg'"
30198 ac_need_defaults=false;;
30199 --header | --heade | --head | --hea )
30202 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30204 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30205 ac_need_defaults=false;;
30207 # Conflict between --help and --header
30208 as_fn_error "ambiguous option: \`$1'
30209 Try \`$0 --help' for more information.";;
30210 --help | --hel | -h )
30211 $as_echo "$ac_cs_usage"; exit ;;
30212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30213 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30216 # This is an error.
30217 -*) as_fn_error "unrecognized option: \`$1'
30218 Try \`$0 --help' for more information." ;;
30220 *) as_fn_append ac_config_targets " $1"
30221 ac_need_defaults=false ;;
30227 ac_configure_extra_args=
30229 if $ac_cs_silent; then
30231 ac_configure_extra_args="$ac_configure_extra_args --silent"
30235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30236 if \$ac_cs_recheck; then
30237 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30239 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30240 CONFIG_SHELL='$SHELL'
30241 export CONFIG_SHELL
30246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30250 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30251 ## Running $as_me. ##
30257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30261 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30262 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30269 # Handling of arguments.
30270 for ac_config_target in $ac_config_targets
30272 case $ac_config_target in
30273 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30274 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30275 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30276 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30277 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30278 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30279 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30280 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30281 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30283 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30288 # If the user did not use the arguments to specify the items to instantiate,
30289 # then the envvar interface is used. Set only those that are not.
30290 # We use the long form for the default assignment because of an extremely
30291 # bizarre bug on SunOS 4.1.3.
30292 if $ac_need_defaults; then
30293 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30294 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30295 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30296 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30299 # Have a temporary directory for convenience. Make it in the build tree
30300 # simply because there is no reason against having it here, and in addition,
30301 # creating and moving files from /tmp can sometimes cause problems.
30302 # Hook for its removal unless debugging.
30303 # Note that there is a small window in which the directory will not be cleaned:
30304 # after its creation but before its name has been assigned to `$tmp'.
30308 trap 'exit_status=$?
30309 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30311 trap 'as_fn_exit 1' 1 2 13 15
30313 # Create a (secure) tmp directory for tmp files.
30316 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30317 test -n "$tmp" && test -d "$tmp"
30320 tmp=./conf$$-$RANDOM
30321 (umask 077 && mkdir "$tmp")
30322 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30324 # Set up the scripts for CONFIG_FILES section.
30325 # No need to generate them if there are no CONFIG_FILES.
30326 # This happens for instance with `./config.status config.h'.
30327 if test -n "$CONFIG_FILES"; then
30329 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30330 ac_cs_awk_getline=:
30331 ac_cs_awk_pipe_init=
30332 ac_cs_awk_read_file='
30333 while ((getline aline < (F[key])) > 0)
30336 ac_cs_awk_pipe_fini=
30338 ac_cs_awk_getline=false
30339 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30340 ac_cs_awk_read_file='
30342 print "cat " F[key] " &&"
30343 '$ac_cs_awk_pipe_init
30344 # The final `:' finishes the AND list.
30345 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30347 ac_cr=`echo X | tr X '\015'`
30348 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30349 # But we know of no other shell where ac_cr would be empty at this
30350 # point, so we can use a bashism as a fallback.
30351 if test "x$ac_cr" = x; then
30352 eval ac_cr=\$\'\\r\'
30354 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30355 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30358 ac_cs_awk_cr=$ac_cr
30361 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30364 # Create commands to substitute file output variables.
30366 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30367 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30368 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30371 } >conf$$files.sh &&
30372 . ./conf$$files.sh ||
30373 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30374 rm -f conf$$files.sh
30377 echo "cat >conf$$subs.awk <<_ACEOF" &&
30378 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30380 } >conf$$subs.sh ||
30381 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30382 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30384 for ac_last_try in false false false false false :; do
30385 . ./conf$$subs.sh ||
30386 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30388 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30389 if test $ac_delim_n = $ac_delim_num; then
30391 elif $ac_last_try; then
30392 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30394 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30397 rm -f conf$$subs.sh
30399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30400 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30404 s/^/S["/; s/!.*/"]=/
30414 s/\(.\{148\}\).*/\1/
30416 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30421 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30428 s/\(.\{148\}\).*/\1/
30430 s/["\\]/\\&/g; s/^/"/; s/$/"/
30434 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30439 ' <conf$$subs.awk | sed '
30444 ' >>$CONFIG_STATUS || ac_write_fail=1
30445 rm -f conf$$subs.awk
30446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30448 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30449 for (key in S) S_is_set[key] = 1
30451 \$ac_cs_awk_pipe_init
30455 nfields = split(line, field, "@")
30457 len = length(field[1])
30458 for (i = 2; i < nfields; i++) {
30460 keylen = length(key)
30461 if (S_is_set[key]) {
30463 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30464 len += length(value) + length(field[++i])
30469 if (nfields == 3 && !substed) {
30471 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30472 \$ac_cs_awk_read_file
30478 \$ac_cs_awk_pipe_fini
30481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30482 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30483 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30486 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30487 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30490 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30491 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30492 # trailing colons and then remove the whole line if VPATH becomes empty
30493 # (actually we leave an empty line to preserve line numbers).
30494 if test "x$srcdir" = x.; then
30495 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30496 s/:*\$(srcdir):*/:/
30497 s/:*\${srcdir}:*/:/
30499 s/^\([^=]*=[ ]*\):*/\1/
30505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30506 fi # test -n "$CONFIG_FILES"
30508 # Set up the scripts for CONFIG_HEADERS section.
30509 # No need to generate them if there are no CONFIG_HEADERS.
30510 # This happens for instance with `./config.status Makefile'.
30511 if test -n "$CONFIG_HEADERS"; then
30512 cat >"$tmp/defines.awk" <<\_ACAWK ||
30516 # Transform confdefs.h into an awk script `defines.awk', embedded as
30517 # here-document in config.status, that substitutes the proper values into
30518 # config.h.in to produce config.h.
30520 # Create a delimiter string that does not exist in confdefs.h, to ease
30521 # handling of long lines.
30523 for ac_last_try in false false :; do
30524 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30525 if test -z "$ac_t"; then
30527 elif $ac_last_try; then
30528 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30530 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30534 # For the awk script, D is an array of macro values keyed by name,
30535 # likewise P contains macro parameters if any. Preserve backslash
30536 # newline sequences.
30538 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30540 s/.\{148\}/&'"$ac_delim"'/g
30543 s/^[ ]*#[ ]*define[ ][ ]*/ /
30550 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30552 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30556 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30557 D["\1"]=" \3\\\\\\n"\\/p
30559 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30564 s/.\{148\}/&'"$ac_delim"'/g
30569 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30572 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30574 ' <confdefs.h | sed '
30575 s/'"$ac_delim"'/"\\\
30576 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30579 for (key in D) D_is_set[key] = 1
30582 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30584 split(line, arg, " ")
30585 if (arg[1] == "#") {
30589 defundef = substr(arg[1], 2)
30592 split(mac1, mac2, "(") #)
30594 prefix = substr(line, 1, index(line, defundef) - 1)
30595 if (D_is_set[macro]) {
30596 # Preserve the white space surrounding the "#".
30597 print prefix "define", macro P[macro] D[macro]
30600 # Replace #undef with comments. This is necessary, for example,
30601 # in the case of _POSIX_SOURCE, which is predefined and required
30602 # on some systems where configure will not decide to define it.
30603 if (defundef == "undef") {
30604 print "/*", prefix defundef, macro, "*/"
30612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30613 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30614 fi # test -n "$CONFIG_HEADERS"
30617 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30622 :[FHLC]) ac_mode=$ac_tag; continue;;
30624 case $ac_mode$ac_tag in
30626 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30627 :[FH]-) ac_tag=-:-;;
30628 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30645 -) ac_f="$tmp/stdin";;
30646 *) # Look for the file first in the build tree, then in the source tree
30647 # (if the path is not absolute). The absolute path cannot be DOS-style,
30648 # because $ac_f cannot contain `:'.
30652 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30654 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30656 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30657 as_fn_append ac_file_inputs " '$ac_f'"
30660 # Let's still pretend it is `configure' which instantiates (i.e., don't
30661 # use $as_me), people would be surprised to read:
30662 # /* config.h. Generated by config.status. */
30663 configure_input='Generated from '`
30664 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30666 if test x"$ac_file" != x-; then
30667 configure_input="$ac_file. $configure_input"
30668 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30669 $as_echo "$as_me: creating $ac_file" >&6;}
30671 # Neutralize special characters interpreted by sed in replacement strings.
30672 case $configure_input in #(
30673 *\&* | *\|* | *\\* )
30674 ac_sed_conf_input=`$as_echo "$configure_input" |
30675 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30676 *) ac_sed_conf_input=$configure_input;;
30680 *:-:* | *:-) cat >"$tmp/stdin" \
30681 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30686 ac_dir=`$as_dirname -- "$ac_file" ||
30687 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30688 X"$ac_file" : 'X\(//\)[^/]' \| \
30689 X"$ac_file" : 'X\(//\)$' \| \
30690 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30691 $as_echo X"$ac_file" |
30692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30696 /^X\(\/\/\)[^/].*/{
30709 as_dir="$ac_dir"; as_fn_mkdir_p
30713 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30715 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30716 # A ".." for each directory in $ac_dir_suffix.
30717 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30718 case $ac_top_builddir_sub in
30719 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30720 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30723 ac_abs_top_builddir=$ac_pwd
30724 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30725 # for backward compatibility:
30726 ac_top_builddir=$ac_top_build_prefix
30729 .) # We are building in place.
30731 ac_top_srcdir=$ac_top_builddir_sub
30732 ac_abs_top_srcdir=$ac_pwd ;;
30733 [\\/]* | ?:[\\/]* ) # Absolute name.
30734 ac_srcdir=$srcdir$ac_dir_suffix;
30735 ac_top_srcdir=$srcdir
30736 ac_abs_top_srcdir=$srcdir ;;
30737 *) # Relative name.
30738 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30739 ac_top_srcdir=$ac_top_build_prefix$srcdir
30740 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30742 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30754 # If the template does not know about datarootdir, expand it.
30755 # FIXME: This hack should be removed a few years after 2.60.
30756 ac_datarootdir_hack=; ac_datarootdir_seen=
30767 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30768 *datarootdir*) ac_datarootdir_seen=yes;;
30769 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30771 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30774 ac_datarootdir_hack='
30775 s&@datadir@&$datadir&g
30776 s&@docdir@&$docdir&g
30777 s&@infodir@&$infodir&g
30778 s&@localedir@&$localedir&g
30779 s&@mandir@&$mandir&g
30780 s&\\\${datarootdir}&$datarootdir&g' ;;
30784 # Neutralize VPATH when `$srcdir' = `.'.
30785 # Shell code in configure.ac might set extrasub.
30786 # FIXME: do we really want to maintain this feature?
30787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30788 ac_sed_extra="$ac_vpsub
30791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30793 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30794 s|@configure_input@|$ac_sed_conf_input|;t t
30795 s&@top_builddir@&$ac_top_builddir_sub&;t t
30796 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30797 s&@srcdir@&$ac_srcdir&;t t
30798 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30799 s&@top_srcdir@&$ac_top_srcdir&;t t
30800 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30801 s&@builddir@&$ac_builddir&;t t
30802 s&@abs_builddir@&$ac_abs_builddir&;t t
30803 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30804 $ac_datarootdir_hack
30806 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30807 if $ac_cs_awk_getline; then
30808 $AWK -f "$tmp/subs.awk"
30810 $AWK -f "$tmp/subs.awk" | $SHELL
30812 || as_fn_error "could not create $ac_file" "$LINENO" 5
30814 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30815 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30816 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30818 which seems to be undefined. Please make sure it is defined." >&5
30819 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30820 which seems to be undefined. Please make sure it is defined." >&2;}
30824 -) cat "$tmp/out" && rm -f "$tmp/out";;
30825 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30827 || as_fn_error "could not create $ac_file" "$LINENO" 5
30833 if test x"$ac_file" != x-; then
30835 $as_echo "/* $configure_input */" \
30836 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30837 } >"$tmp/config.h" \
30838 || as_fn_error "could not create $ac_file" "$LINENO" 5
30839 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30840 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30841 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30844 mv "$tmp/config.h" "$ac_file" \
30845 || as_fn_error "could not create $ac_file" "$LINENO" 5
30848 $as_echo "/* $configure_input */" \
30849 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30850 || as_fn_error "could not create -" "$LINENO" 5
30858 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30861 # Prefer the file from the source tree if names are identical.
30862 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30863 ac_source=$srcdir/$ac_source
30866 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30867 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30869 if test ! -r "$ac_source"; then
30870 as_fn_error "$ac_source: file not found" "$LINENO" 5
30874 # Try a relative symlink, then a hard link, then a copy.
30876 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30877 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30879 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30880 ln "$ac_source" "$ac_file" 2>/dev/null ||
30881 cp -p "$ac_source" "$ac_file" ||
30882 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30885 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30886 $as_echo "$as_me: executing $ac_file commands" >&6;}
30891 case $ac_file$ac_mode in
30892 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30894 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30895 for lang in $subdirs c-family common
30897 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30899 "as":F) chmod +x as ;;
30900 "collect-ld":F) chmod +x collect-ld ;;
30901 "nm":F) chmod +x nm ;;
30903 case ${CONFIG_HEADERS} in
30904 *auto-host.h:config.in*)
30907 # Make sure all the subdirs exist.
30908 for d in $subdirs doc build common c-family
30910 test -d $d || mkdir $d
30920 ac_clean_files=$ac_clean_files_save
30922 test $ac_write_fail = 0 ||
30923 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30926 # configure is writing to config.log, and then calls config.status.
30927 # config.status does its own redirection, appending to config.log.
30928 # Unfortunately, on DOS this fails, as config.log is still kept open
30929 # by configure, so config.status won't be able to write to it; its
30930 # output is simply discarded. So we exec the FD to /dev/null,
30931 # effectively closing config.log, so it can be properly (re)opened and
30932 # appended to by config.status. When coming back to configure, we
30933 # need to make the FD available again.
30934 if test "$no_create" != yes; then
30936 ac_config_status_args=
30937 test "$silent" = yes &&
30938 ac_config_status_args="$ac_config_status_args --quiet"
30940 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30942 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30943 # would make configure fail if this is the last instruction.
30944 $ac_cs_success || as_fn_exit $?
30946 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30948 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}