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
626 common_out_object_file
642 gcc_gxx_include_dir_add_sysroot
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
652 TM_MULTILIB_EXCEPTIONS_CONFIG
661 build_xm_include_list
663 build_install_headers_dir
665 all_selected_languages
683 ORIGINAL_NM_FOR_TARGET
685 ORIGINAL_LD_GOLD_FOR_TARGET
686 ORIGINAL_LD_BFD_FOR_TARGET
687 ORIGINAL_LD_FOR_TARGET
688 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 ORIGINAL_AS_FOR_TARGET
732 NATIVE_SYSTEM_HEADER_DIR
769 CROSS_SYSTEM_HEADER_DIR
770 TARGET_SYSTEM_ROOT_DEFINE
772 SYSROOT_CFLAGS_FOR_TARGET
782 valgrind_path_defines
855 program_transform_name
866 ac_subst_files
='option_includes
869 enable_option_checking
874 enable_generated_files_in_srcdir
881 enable_build_format_warnings
885 enable_gather_detailed_mem_stats
886 enable_valgrind_annotations
898 with_native_system_header_dir
908 enable_sjlj_exceptions
910 enable_leading_mingw64_underscores
913 enable_win32_registry
921 enable_gnu_indirect_function
922 enable_initfini_array
924 enable_fix_cortex_a53_835769
926 enable_gnu_unique_object
927 enable_linker_build_id
931 enable_maintainer_mode
933 enable_version_specific_runtime_libs
936 enable_libquadmath_support
937 with_linker_hash_style
939 ac_precious_vars
='build_alias
960 # Initialize some variables set by options.
962 ac_init_version
=false
963 ac_unrecognized_opts
=
965 # The variables have the same names as the options, with
966 # dashes changed to underlines.
974 program_transform_name
=s
,x
,x
,
982 # Installation directory options.
983 # These are left unexpanded so users can "make install exec_prefix=/foo"
984 # and all the variables that are supposed to be based on exec_prefix
985 # by default will actually change.
986 # Use braces instead of parens because sh, perl, etc. also accept them.
987 # (The list follows the same order as the GNU Coding Standards.)
988 bindir
='${exec_prefix}/bin'
989 sbindir
='${exec_prefix}/sbin'
990 libexecdir
='${exec_prefix}/libexec'
991 datarootdir
='${prefix}/share'
992 datadir
='${datarootdir}'
993 sysconfdir
='${prefix}/etc'
994 sharedstatedir
='${prefix}/com'
995 localstatedir
='${prefix}/var'
996 includedir
='${prefix}/include'
997 oldincludedir
='/usr/include'
998 docdir
='${datarootdir}/doc/${PACKAGE}'
999 infodir
='${datarootdir}/info'
1004 libdir
='${exec_prefix}/lib'
1005 localedir
='${datarootdir}/locale'
1006 mandir
='${datarootdir}/man'
1012 # If the previous option needs an argument, assign it.
1013 if test -n "$ac_prev"; then
1014 eval $ac_prev=\
$ac_option
1020 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024 # Accept the important Cygnus configure options, so we can diagnose typos.
1026 case $ac_dashdash$ac_option in
1030 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1032 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1033 bindir
=$ac_optarg ;;
1035 -build |
--build |
--buil |
--bui |
--bu)
1036 ac_prev
=build_alias
;;
1037 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1038 build_alias
=$ac_optarg ;;
1040 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1041 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1042 ac_prev
=cache_file
;;
1043 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1044 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1045 cache_file
=$ac_optarg ;;
1047 --config-cache |
-C)
1048 cache_file
=config.cache
;;
1050 -datadir |
--datadir |
--datadi |
--datad)
1052 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1053 datadir
=$ac_optarg ;;
1055 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1056 |
--dataroo |
--dataro |
--datar)
1057 ac_prev
=datarootdir
;;
1058 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1059 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1060 datarootdir
=$ac_optarg ;;
1062 -disable-* |
--disable-*)
1063 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1066 as_fn_error
"invalid feature name: $ac_useropt"
1067 ac_useropt_orig
=$ac_useropt
1068 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1071 "enable_
$ac_useropt"
1073 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1074 ac_unrecognized_sep
=', ';;
1076 eval enable_
$ac_useropt=no
;;
1078 -docdir |
--docdir |
--docdi |
--doc |
--do)
1080 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1081 docdir
=$ac_optarg ;;
1083 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1085 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1086 dvidir
=$ac_optarg ;;
1088 -enable-* |
--enable-*)
1089 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1092 as_fn_error
"invalid feature name: $ac_useropt"
1093 ac_useropt_orig
=$ac_useropt
1094 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1097 "enable_
$ac_useropt"
1099 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1100 ac_unrecognized_sep
=', ';;
1102 eval enable_
$ac_useropt=\
$ac_optarg ;;
1104 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1105 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1106 |
--exec |
--exe |
--ex)
1107 ac_prev
=exec_prefix
;;
1108 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1109 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1110 |
--exec=* |
--exe=* |
--ex=*)
1111 exec_prefix
=$ac_optarg ;;
1113 -gas |
--gas |
--ga |
--g)
1114 # Obsolete; use --with-gas.
1117 -help |
--help |
--hel |
--he |
-h)
1118 ac_init_help
=long
;;
1119 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1120 ac_init_help
=recursive
;;
1121 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1122 ac_init_help
=short
;;
1124 -host |
--host |
--hos |
--ho)
1125 ac_prev
=host_alias
;;
1126 -host=* |
--host=* |
--hos=* |
--ho=*)
1127 host_alias
=$ac_optarg ;;
1129 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1131 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1133 htmldir
=$ac_optarg ;;
1135 -includedir |
--includedir |
--includedi |
--included |
--include \
1136 |
--includ |
--inclu |
--incl |
--inc)
1137 ac_prev
=includedir
;;
1138 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1139 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1140 includedir
=$ac_optarg ;;
1142 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1144 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1145 infodir
=$ac_optarg ;;
1147 -libdir |
--libdir |
--libdi |
--libd)
1149 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1150 libdir
=$ac_optarg ;;
1152 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1153 |
--libexe |
--libex |
--libe)
1154 ac_prev
=libexecdir
;;
1155 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1156 |
--libexe=* |
--libex=* |
--libe=*)
1157 libexecdir
=$ac_optarg ;;
1159 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1160 ac_prev
=localedir
;;
1161 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1162 localedir
=$ac_optarg ;;
1164 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1165 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1166 ac_prev
=localstatedir
;;
1167 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1168 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1169 localstatedir
=$ac_optarg ;;
1171 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1173 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1174 mandir
=$ac_optarg ;;
1176 -nfp |
--nfp |
--nf)
1177 # Obsolete; use --without-fp.
1180 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1181 |
--no-cr |
--no-c |
-n)
1184 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1185 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1188 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1189 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1190 |
--oldin |
--oldi |
--old |
--ol |
--o)
1191 ac_prev
=oldincludedir
;;
1192 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1193 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1194 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1195 oldincludedir
=$ac_optarg ;;
1197 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1199 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1200 prefix
=$ac_optarg ;;
1202 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1203 |
--program-pre |
--program-pr |
--program-p)
1204 ac_prev
=program_prefix
;;
1205 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1206 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1207 program_prefix
=$ac_optarg ;;
1209 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1210 |
--program-suf |
--program-su |
--program-s)
1211 ac_prev
=program_suffix
;;
1212 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1213 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1214 program_suffix
=$ac_optarg ;;
1216 -program-transform-name |
--program-transform-name \
1217 |
--program-transform-nam |
--program-transform-na \
1218 |
--program-transform-n |
--program-transform- \
1219 |
--program-transform |
--program-transfor \
1220 |
--program-transfo |
--program-transf \
1221 |
--program-trans |
--program-tran \
1222 |
--progr-tra |
--program-tr |
--program-t)
1223 ac_prev
=program_transform_name
;;
1224 -program-transform-name=* |
--program-transform-name=* \
1225 |
--program-transform-nam=* |
--program-transform-na=* \
1226 |
--program-transform-n=* |
--program-transform-=* \
1227 |
--program-transform=* |
--program-transfor=* \
1228 |
--program-transfo=* |
--program-transf=* \
1229 |
--program-trans=* |
--program-tran=* \
1230 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1231 program_transform_name
=$ac_optarg ;;
1233 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1235 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1236 pdfdir
=$ac_optarg ;;
1238 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1240 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1243 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1244 |
-silent |
--silent |
--silen |
--sile |
--sil)
1247 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1249 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1251 sbindir
=$ac_optarg ;;
1253 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1254 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1255 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1257 ac_prev
=sharedstatedir
;;
1258 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1259 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1260 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1262 sharedstatedir
=$ac_optarg ;;
1264 -site |
--site |
--sit)
1266 -site=* |
--site=* |
--sit=*)
1269 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1271 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1272 srcdir
=$ac_optarg ;;
1274 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1275 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1276 ac_prev
=sysconfdir
;;
1277 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1278 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1279 sysconfdir
=$ac_optarg ;;
1281 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1282 ac_prev
=target_alias
;;
1283 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1284 target_alias
=$ac_optarg ;;
1286 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1289 -version |
--version |
--versio |
--versi |
--vers |
-V)
1290 ac_init_version
=: ;;
1293 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1296 as_fn_error
"invalid package name: $ac_useropt"
1297 ac_useropt_orig
=$ac_useropt
1298 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1303 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1304 ac_unrecognized_sep
=', ';;
1306 eval with_
$ac_useropt=\
$ac_optarg ;;
1308 -without-* |
--without-*)
1309 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1312 as_fn_error
"invalid package name: $ac_useropt"
1313 ac_useropt_orig
=$ac_useropt
1314 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1319 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1320 ac_unrecognized_sep
=', ';;
1322 eval with_
$ac_useropt=no
;;
1325 # Obsolete; use --with-x.
1328 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1329 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1330 ac_prev
=x_includes
;;
1331 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1332 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1333 x_includes
=$ac_optarg ;;
1335 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1336 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1337 ac_prev
=x_libraries
;;
1338 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1339 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1340 x_libraries
=$ac_optarg ;;
1342 -*) as_fn_error
"unrecognized option: \`$ac_option'
1343 Try \`$0 --help' for more information."
1347 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1348 # Reject names that are not valid shell variable names.
1349 case $ac_envvar in #(
1350 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1351 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1353 eval $ac_envvar=\
$ac_optarg
1354 export $ac_envvar ;;
1357 # FIXME: should be removed in autoconf 3.0.
1358 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1359 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1360 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1361 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1367 if test -n "$ac_prev"; then
1368 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1369 as_fn_error
"missing argument to $ac_option"
1372 if test -n "$ac_unrecognized_opts"; then
1373 case $enable_option_checking in
1375 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1376 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1380 # Check all directory arguments for consistency.
1381 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1382 datadir sysconfdir sharedstatedir localstatedir includedir \
1383 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1384 libdir localedir mandir
1386 eval ac_val
=\$
$ac_var
1387 # Remove trailing slashes.
1390 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1391 eval $ac_var=\
$ac_val;;
1393 # Be sure to have absolute directory names.
1395 [\\/$
]* | ?
:[\\/]* ) continue;;
1396 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1398 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1401 # There might be people who depend on the old broken behavior: `$host'
1402 # used to hold the argument of --host etc.
1403 # FIXME: To remove some day.
1406 target
=$target_alias
1408 # FIXME: To remove some day.
1409 if test "x$host_alias" != x
; then
1410 if test "x$build_alias" = x
; then
1411 cross_compiling
=maybe
1412 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1413 If a cross compiler is detected then cross compile mode will be used." >&2
1414 elif test "x$build_alias" != "x$host_alias"; then
1420 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1422 test "$silent" = yes && exec 6>/dev
/null
1425 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1426 ac_ls_di
=`ls -di .` &&
1427 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1428 as_fn_error
"working directory cannot be determined"
1429 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1430 as_fn_error
"pwd does not report name of working directory"
1433 # Find the source files, if location was not specified.
1434 if test -z "$srcdir"; then
1435 ac_srcdir_defaulted
=yes
1436 # Try the directory containing this script, then the parent directory.
1437 ac_confdir
=`$as_dirname -- "$as_myself" ||
1438 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1439 X"$as_myself" : 'X\(//\)[^/]' \| \
1440 X"$as_myself" : 'X\(//\)$' \| \
1441 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1442 $as_echo X"$as_myself" |
1443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1461 if test ! -r "$srcdir/$ac_unique_file"; then
1465 ac_srcdir_defaulted
=no
1467 if test ! -r "$srcdir/$ac_unique_file"; then
1468 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1469 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1471 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1473 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1475 # When building in place, set srcdir=.
1476 if test "$ac_abs_confdir" = "$ac_pwd"; then
1479 # Remove unnecessary trailing slashes from srcdir.
1480 # Double slashes in file names in object file debugging info
1481 # mess up M-x gdb in Emacs.
1483 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1485 for ac_var
in $ac_precious_vars; do
1486 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1487 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1488 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1489 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1493 # Report the --help message.
1495 if test "$ac_init_help" = "long"; then
1496 # Omit some internal or obsolete options to make the list less imposing.
1497 # This message is too long to be a string in the A/UX 3.1 sh.
1499 \`configure' configures this package to adapt to many kinds of systems.
1501 Usage: $0 [OPTION]... [VAR=VALUE]...
1503 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504 VAR=VALUE. See below for descriptions of some of the useful variables.
1506 Defaults for the options are specified in brackets.
1509 -h, --help display this help and exit
1510 --help=short display options specific to this package
1511 --help=recursive display the short help of all the included packages
1512 -V, --version display version information and exit
1513 -q, --quiet, --silent do not print \`checking...' messages
1514 --cache-file=FILE cache test results in FILE [disabled]
1515 -C, --config-cache alias for \`--cache-file=config.cache'
1516 -n, --no-create do not create output files
1517 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1519 Installation directories:
1520 --prefix=PREFIX install architecture-independent files in PREFIX
1521 [$ac_default_prefix]
1522 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1525 By default, \`make install' will install all the files in
1526 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1527 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528 for instance \`--prefix=\$HOME'.
1530 For better control, use the options below.
1532 Fine tuning of the installation directories:
1533 --bindir=DIR user executables [EPREFIX/bin]
1534 --sbindir=DIR system admin executables [EPREFIX/sbin]
1535 --libexecdir=DIR program executables [EPREFIX/libexec]
1536 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1537 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1538 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1539 --libdir=DIR object code libraries [EPREFIX/lib]
1540 --includedir=DIR C header files [PREFIX/include]
1541 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1542 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1543 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1544 --infodir=DIR info documentation [DATAROOTDIR/info]
1545 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1546 --mandir=DIR man documentation [DATAROOTDIR/man]
1547 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1548 --htmldir=DIR html documentation [DOCDIR]
1549 --dvidir=DIR dvi documentation [DOCDIR]
1550 --pdfdir=DIR pdf documentation [DOCDIR]
1551 --psdir=DIR ps documentation [DOCDIR]
1557 --program-prefix=PREFIX prepend PREFIX to installed program names
1558 --program-suffix=SUFFIX append SUFFIX to installed program names
1559 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1562 --build=BUILD configure
for building on BUILD
[guessed
]
1563 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1564 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1568 if test -n "$ac_init_help"; then
1573 --disable-option-checking ignore unrecognized
--enable/--with options
1574 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1575 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1576 --enable-generated-files-in-srcdir
1577 put copies of generated files
in source dir intended
1578 for creating
source tarballs
for users without
1579 texinfo bison or flex
1580 --disable-largefile omit support
for large files
1581 --disable-build-format-warnings
1582 don
't use -Wformat while building GCC
1583 --enable-werror-always enable -Werror despite compiler version
1584 --enable-checking[=LIST]
1585 enable expensive run-time checks. With LIST, enable
1586 only specific categories of checks. Categories are:
1587 yes,no,all,none,release. Flags are:
1588 assert,df,fold,gc,gcac,gimple,misc,
1589 rtlflag,rtl,runtime,tree,valgrind,types
1590 --enable-coverage[=LEVEL]
1591 enable compiler's code coverage collection. Use to
1592 measure compiler performance and
locate unused parts
1593 of the compiler. With LEVEL
, specify optimization.
1594 Values are opt
, noopt
, default is noopt
1595 --enable-gather-detailed-mem-stats
1596 enable detailed memory allocation stats gathering
1597 --enable-valgrind-annotations
1598 enable valgrind runtime interaction
1599 --enable-multilib enable library support
for multiple ABIs
1600 --enable-multiarch enable support
for multiarch paths
1601 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1602 --enable-decimal-float={no
,yes,bid
,dpd
}
1603 enable decimal float extension to C. Selecting
'bid'
1604 or
'dpd' choses
which decimal floating point format
1606 --enable-fixed-point enable fixed-point arithmetic extension to C
1607 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1609 --enable-tls enable or disable generation of tls code overriding
1610 the assembler check
for tls support
1611 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1612 GNU Objective-C runtime
1613 --disable-shared don't provide a shared libgcc
1614 --enable-languages=LIST specify
which front-ends to build
1615 --disable-rpath do not hardcode runtime library paths
1616 --enable-sjlj-exceptions
1617 arrange to use setjmp
/longjmp exception handling
1618 --enable-secureplt enable -msecure-plt by default
for PowerPC
1619 --enable-leading-mingw64-underscores
1620 enable leading underscores on
64 bit mingw targets
1621 --enable-cld enable -mcld by default
for 32bit x86
1622 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1624 --disable-win32-registry
1625 disable lookup of installation paths
in the Registry
1627 --enable-win32-registry enable registry lookup
(default
)
1628 --enable-win32-registry=KEY
1629 use KEY instead of GCC version as the last portion
1631 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1632 --enable-static[=PKGS
] build static libraries
[default
=yes]
1633 --enable-fast-install[=PKGS
]
1634 optimize
for fast installation
[default
=yes]
1635 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1636 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1637 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1638 --enable-gnu-indirect-function
1639 enable the use of the @gnu_indirect_function to
1641 --enable-initfini-array use .init_array
/.fini_array sections
1642 --enable-comdat enable COMDAT group support
1644 --enable-fix-cortex-a53-835769
1645 enable workaround
for AArch64 Cortex-A53 erratum
1647 --disable-fix-cortex-a53-835769
1648 disable workaround
for AArch64 Cortex-A53 erratum
1651 --enable-gnu-unique-object
1652 enable the use of the @gnu_unique_object ELF
1653 extension on glibc systems
1654 --enable-linker-build-id
1655 compiler will always pass
--build-id to linker
1656 --enable-maintainer-mode
1657 enable make rules and dependencies not useful
(and
1658 sometimes confusing
) to the casual installer
1659 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1660 thrashing on the build machine
1661 --enable-version-specific-runtime-libs
1662 specify that runtime libraries should be installed
1663 in a compiler-specific directory
1664 --enable-plugin enable plugin support
1665 --enable-host-shared build
host code as shared libraries
1666 --disable-libquadmath-support
1667 disable libquadmath support
for Fortran
1670 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1671 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1672 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1673 --with-local-prefix=DIR specifies directory to put
local include
1674 --with-gxx-include-dir=DIR
1675 specifies directory to put g
++ header files
1676 --with-cpp-install-dir=DIR
1677 install the user visible C preprocessor
in DIR
1678 (relative to PREFIX
) as well as PREFIX
/bin
1679 --with-gnu-ld arrange to work with GNU ld
1680 --with-ld arrange to use the specified ld
(full pathname
)
1681 --with-demangler-in-ld try to use demangler
in GNU ld
1682 --with-gnu-as arrange to work with GNU as
1683 --with-as arrange to use the specified as
(full pathname
)
1684 --with-stabs arrange to use stabs instead of
host debug format
1685 --with-dwarf2 force the default debug format to be DWARF
2
1686 --with-native-system-header-dir=dir
1687 use dir as the directory to
look for standard
1688 system header files
in. Defaults to
/usr
/include.
1689 --with-build-sysroot=sysroot
1690 use sysroot as the system root during the build
1691 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1692 --with-specs=SPECS add SPECS to driver command-line processing
1693 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1694 --with-bugurl=URL Direct users to URL to report a bug
1695 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1696 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1697 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1698 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1699 --with-pic try to use only PIC/non-PIC objects [default=use
1701 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1702 --with-plugin-ld=[ARG] specify the plugin linker
1703 --with-glibc-version=M.N
1704 assume GCC used with glibc version M.N or later
1705 --with-long-double-128 use 128-bit long double by default
1706 --with-gc={page,zone} this option is not supported anymore. It used to
1707 choose the garbage collection mechanism to use with
1709 --with-system-zlib use installed libz
1710 --with-linker-hash-style={sysv,gnu,both}
1711 specify the linker hash style
1713 Some influential environment variables:
1714 CC C compiler command
1715 CFLAGS C compiler flags
1716 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1717 nonstandard directory <lib dir>
1718 LIBS libraries to pass to the linker, e.g. -l<library>
1719 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1720 you have headers in a nonstandard directory <include dir>
1721 CXX C++ compiler command
1722 CXXFLAGS C++ compiler flags
1724 CXXCPP C++ preprocessor
1725 GMPLIBS How to link GMP
1726 GMPINC How to find GMP include files
1727 ISLLIBS How to link ISL
1728 ISLINC How to find ISL include files
1729 CLOOGLIBS How to link CLOOG
1730 CLOOGINC How to find CLOOG include files
1732 Use these variables to override the choices made by `configure' or to
help
1733 it to
find libraries and programs with nonstandard names
/locations.
1735 Report bugs to the package provider.
1740 if test "$ac_init_help" = "recursive"; then
1741 # If there are subdirs, report their specific --help.
1742 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1743 test -d "$ac_dir" ||
1744 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1749 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1751 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1752 # A ".." for each directory in $ac_dir_suffix.
1753 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1754 case $ac_top_builddir_sub in
1755 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1756 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1759 ac_abs_top_builddir
=$ac_pwd
1760 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1761 # for backward compatibility:
1762 ac_top_builddir
=$ac_top_build_prefix
1765 .
) # We are building in place.
1767 ac_top_srcdir
=$ac_top_builddir_sub
1768 ac_abs_top_srcdir
=$ac_pwd ;;
1769 [\\/]* | ?
:[\\/]* ) # Absolute name.
1770 ac_srcdir
=$srcdir$ac_dir_suffix;
1771 ac_top_srcdir
=$srcdir
1772 ac_abs_top_srcdir
=$srcdir ;;
1774 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1775 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1776 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1778 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1780 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1781 # Check for guested configure.
1782 if test -f "$ac_srcdir/configure.gnu"; then
1784 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1785 elif test -f "$ac_srcdir/configure"; then
1787 $SHELL "$ac_srcdir/configure" --help=recursive
1789 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1791 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1795 test -n "$ac_init_help" && exit $ac_status
1796 if $ac_init_version; then
1799 generated by GNU Autoconf
2.64
1801 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1802 This configure
script is free software
; the Free Software Foundation
1803 gives unlimited permission to copy
, distribute and modify it.
1808 ## ------------------------ ##
1809 ## Autoconf initialization. ##
1810 ## ------------------------ ##
1812 # ac_fn_c_try_compile LINENO
1813 # --------------------------
1814 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_c_try_compile
()
1817 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1818 rm -f conftest.
$ac_objext
1819 if { { ac_try
="$ac_compile"
1821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_compile") 2>conftest.err
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_c_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest.$ac_objext; then :
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848 } # ac_fn_c_try_compile
1850 # ac_fn_cxx_try_compile LINENO
1851 # ----------------------------
1852 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_cxx_try_compile ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 rm -f conftest.$ac_objext
1857 if { { ac_try="$ac_compile"
1859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1860 *) ac_try_echo
=$ac_try;;
1862 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_compile") 2>conftest.err
1866 if test -s conftest.err
; then
1867 grep -v '^ *+' conftest.err
>conftest.er1
1868 cat conftest.er1
>&5
1869 mv -f conftest.er1 conftest.err
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && {
1873 test -z "$ac_cxx_werror_flag" ||
1874 test ! -s conftest.err
1875 } && test -s conftest.
$ac_objext; then :
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.
$ac_ext >&5
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1886 } # ac_fn_cxx_try_compile
1888 # ac_fn_c_try_cpp LINENO
1889 # ----------------------
1890 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1893 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1894 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1903 if test -s conftest.err; then
1904 grep -v '^ *+' conftest.err >conftest.er1
1905 cat conftest.er1 >&5
1906 mv -f conftest.er1 conftest.err
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } >/dev/null && {
1910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1911 test ! -s conftest.err
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1920 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1926 # -------------------------------------------------------
1927 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1928 # the include files in INCLUDES and setting the cache variable VAR
1930 ac_fn_c_check_header_mongrel ()
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1937 $as_echo_n "(cached) " >&6
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1943 # Is the header compilable?
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1945 $as_echo_n "checking $2 usability... " >&6; }
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952 ac_header_compiler=yes
1954 ac_header_compiler=no
1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1958 $as_echo "$ac_header_compiler" >&6; }
1960 # Is the header present?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1962 $as_echo_n "checking $2 presence... " >&6; }
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1967 if ac_fn_c_try_cpp "$LINENO"; then :
1968 ac_header_preproc=yes
1970 ac_header_preproc=no
1972 rm -f conftest.err conftest.$ac_ext
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1974 $as_echo "$ac_header_preproc" >&6; }
1976 # So? What about this header?
1977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1980 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1986 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1988 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1990 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1992 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1994 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998 $as_echo_n "checking for $2... " >&6; }
1999 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2000 $as_echo_n "(cached) " >&6
2002 eval "$3=\$ac_header_compiler"
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2010 } # ac_fn_c_check_header_mongrel
2012 # ac_fn_c_try_run LINENO
2013 # ----------------------
2014 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2015 # that executables *can* be run.
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 if { { ac_try="$ac_link"
2021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2022 *) ac_try_echo
=$ac_try;;
2024 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_link") 2>&5
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2030 { { case "(($ac_try" in
2031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2032 *) ac_try_echo=$ac_try;;
2034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035 $as_echo "$ac_try_echo"; } >&5
2036 (eval "$ac_try") 2>&5
2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; }; }; then :
2042 $as_echo "$as_me: program exited with status $ac_status" >&5
2043 $as_echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2046 ac_retval=$ac_status
2048 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2049 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2055 # -------------------------------------------------------
2056 # Tests whether HEADER exists and can be compiled using the include files in
2057 # INCLUDES, setting the cache variable VAR accordingly.
2058 ac_fn_c_check_header_compile ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062 $as_echo_n "checking for $2... " >&6; }
2063 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2064 $as_echo_n "(cached) " >&6
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2071 if ac_fn_c_try_compile "$LINENO"; then :
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080 $as_echo "$ac_res" >&6; }
2081 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2083 } # ac_fn_c_check_header_compile
2085 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2086 # --------------------------------------------
2087 # Tries to find the compile-time value of EXPR in a program that includes
2088 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2090 ac_fn_c_compute_int ()
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 if test "$cross_compiling" = yes; then
2094 # Depending upon the size, compute the lo and hi bounds.
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2101 static int test_array [1 - 2 * !(($2) >= 0)];
2108 if ac_fn_c_try_compile "$LINENO"; then :
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2117 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2124 if ac_fn_c_try_compile "$LINENO"; then :
2125 ac_hi=$ac_mid; break
2127 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2128 if test $ac_lo -le $ac_mid; then
2132 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2143 static int test_array [1 - 2 * !(($2) < 0)];
2150 if ac_fn_c_try_compile "$LINENO"; then :
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h. */
2159 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2166 if ac_fn_c_try_compile "$LINENO"; then :
2167 ac_lo=$ac_mid; break
2169 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2170 if test $ac_mid -le $ac_hi; then
2174 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 # Binary search between lo and hi bounds.
2185 while test "x$ac_lo" != "x$ac_hi"; do
2186 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2193 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2200 if ac_fn_c_try_compile "$LINENO"; then :
2203 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2215 static long int longval () { return $2; }
2216 static unsigned long int ulongval () { return $2; }
2223 FILE *f = fopen ("conftest.val", "w");
2228 long int i = longval ();
2231 fprintf (f, "%ld", i);
2235 unsigned long int i = ulongval ();
2238 fprintf (f, "%lu", i);
2240 /* Do not output a trailing newline, as this causes \r\n confusion
2241 on some platforms. */
2242 return ferror (f) || fclose (f) != 0;
2248 if ac_fn_c_try_run "$LINENO"; then :
2249 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2254 conftest.$ac_objext conftest.beam conftest.$ac_ext
2258 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2261 } # ac_fn_c_compute_int
2263 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2264 # -------------------------------------------
2265 # Tests whether TYPE exists after having included INCLUDES, setting cache
2266 # variable VAR accordingly.
2267 ac_fn_c_check_type ()
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2271 $as_echo_n "checking for $2... " >&6; }
2272 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2273 $as_echo_n "(cached) " >&6
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2288 if ac_fn_c_try_compile "$LINENO"; then :
2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h. */
2301 if ac_fn_c_try_compile "$LINENO"; then :
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2312 $as_echo "$ac_res" >&6; }
2313 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2315 } # ac_fn_c_check_type
2317 # ac_fn_c_find_intX_t LINENO BITS VAR
2318 # -----------------------------------
2319 # Finds a signed integer type with width BITS, setting cache variable VAR
2321 ac_fn_c_find_intX_t ()
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2325 $as_echo_n "checking for int$2_t... " >&6; }
2326 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2327 $as_echo_n "(cached) " >&6
2330 for ac_type in int$2_t 'int' 'long int' \
2331 'long long int' 'short int' 'signed char'; do
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2334 $ac_includes_default
2338 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2345 if ac_fn_c_try_compile "$LINENO"; then :
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2348 $ac_includes_default
2352 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2353 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2360 if ac_fn_c_try_compile "$LINENO"; then :
2367 eval "$3=\$ac_type" ;;
2370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2374 if test "x$as_val" = x""no; then :
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2383 $as_echo "$ac_res" >&6; }
2384 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2386 } # ac_fn_c_find_intX_t
2388 # ac_fn_c_try_link LINENO
2389 # -----------------------
2390 # Try to link conftest.$ac_ext, and return whether this succeeded.
2393 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2394 rm -f conftest.$ac_objext conftest$ac_exeext
2395 if { { ac_try="$ac_link"
2397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2398 *) ac_try_echo
=$ac_try;;
2400 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2401 $as_echo "$ac_try_echo"; } >&5
2402 (eval "$ac_link") 2>conftest.err
2404 if test -s conftest.err
; then
2405 grep -v '^ *+' conftest.err
>conftest.er1
2406 cat conftest.er1
>&5
2407 mv -f conftest.er1 conftest.err
2409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2410 test $ac_status = 0; } && {
2411 test -z "$ac_c_werror_flag" ||
2412 test ! -s conftest.err
2413 } && test -s conftest
$ac_exeext && {
2414 test "$cross_compiling" = yes ||
2415 $as_test_x conftest
$ac_exeext
2419 $as_echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.
$ac_ext >&5
2424 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2425 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2426 # interfere with the next link command; also delete a directory that is
2427 # left behind by Apple's compiler. We do this before executing the actions.
2428 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2429 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2432 } # ac_fn_c_try_link
2434 # ac_fn_c_find_uintX_t LINENO BITS VAR
2435 # ------------------------------------
2436 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2438 ac_fn_c_find_uintX_t
()
2440 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2442 $as_echo_n "checking for uint$2_t... " >&6; }
2443 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2444 $as_echo_n "(cached) " >&6
2447 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2448 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2450 /* end confdefs.h. */
2451 $ac_includes_default
2455 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2462 if ac_fn_c_try_compile
"$LINENO"; then :
2467 eval "$3=\$ac_type" ;;
2470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2472 if test "x$as_val" = x
""no
; then :
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2481 $as_echo "$ac_res" >&6; }
2482 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2484 } # ac_fn_c_find_uintX_t
2486 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2487 # ----------------------------------------------
2488 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2489 ac_fn_c_check_header_preproc
()
2491 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2493 $as_echo_n "checking for $2... " >&6; }
2494 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2495 $as_echo_n "(cached) " >&6
2497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2498 /* end confdefs.h. */
2501 if ac_fn_c_try_cpp
"$LINENO"; then :
2506 rm -f conftest.err conftest.
$ac_ext
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2510 $as_echo "$ac_res" >&6; }
2511 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2513 } # ac_fn_c_check_header_preproc
2515 # ac_fn_cxx_try_cpp LINENO
2516 # ------------------------
2517 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2518 ac_fn_cxx_try_cpp
()
2520 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2521 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2527 $as_echo "$ac_try_echo"; } >&5
2528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2530 if test -s conftest.err; then
2531 grep -v '^ *+' conftest.err >conftest.er1
2532 cat conftest.er1 >&5
2533 mv -f conftest.er1 conftest.err
2535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2536 test $ac_status = 0; } >/dev/null && {
2537 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2538 test ! -s conftest.err
2542 $as_echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2547 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2550 } # ac_fn_cxx_try_cpp
2552 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2553 # ------------------------------------------------
2554 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2555 ac_fn_cxx_check_header_preproc ()
2557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2559 $as_echo_n "checking for $2... " >&6; }
2560 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2561 $as_echo_n "(cached) " >&6
2563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2564 /* end confdefs.h. */
2567 if ac_fn_cxx_try_cpp "$LINENO"; then :
2572 rm -f conftest.err conftest.$ac_ext
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2576 $as_echo "$ac_res" >&6; }
2577 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2579 } # ac_fn_cxx_check_header_preproc
2581 # ac_fn_c_check_func LINENO FUNC VAR
2582 # ----------------------------------
2583 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2584 ac_fn_c_check_func ()
2586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2588 $as_echo_n "checking for $2... " >&6; }
2589 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2590 $as_echo_n "(cached) " >&6
2592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2593 /* end confdefs.h. */
2594 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2596 #define $2 innocuous_$2
2598 /* System header to define __stub macros and hopefully few prototypes,
2599 which can conflict with char $2 (); below.
2600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2601 <limits.h> exists even on freestanding compilers. */
2604 # include <limits.h>
2606 # include <assert.h>
2611 /* Override any GCC internal prototype to avoid an error.
2612 Use char because int might match the return type of a GCC
2613 builtin and then its argument prototype would still apply. */
2618 /* The GNU C library defines this for functions which it implements
2619 to always fail with ENOSYS. Some functions are actually named
2620 something starting with __ and the normal name is an alias. */
2621 #if defined __stub_$2 || defined __stub___$2
2633 if ac_fn_c_try_link "$LINENO"; then :
2638 rm -f core conftest.err conftest.$ac_objext \
2639 conftest$ac_exeext conftest.$ac_ext
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2643 $as_echo "$ac_res" >&6; }
2644 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2646 } # ac_fn_c_check_func
2648 # ac_fn_cxx_try_link LINENO
2649 # -------------------------
2650 # Try to link conftest.$ac_ext, and return whether this succeeded.
2651 ac_fn_cxx_try_link ()
2653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2654 rm -f conftest.$ac_objext conftest$ac_exeext
2655 if { { ac_try="$ac_link"
2657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2658 *) ac_try_echo
=$ac_try;;
2660 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2661 $as_echo "$ac_try_echo"; } >&5
2662 (eval "$ac_link") 2>conftest.err
2664 if test -s conftest.err
; then
2665 grep -v '^ *+' conftest.err
>conftest.er1
2666 cat conftest.er1
>&5
2667 mv -f conftest.er1 conftest.err
2669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2670 test $ac_status = 0; } && {
2671 test -z "$ac_cxx_werror_flag" ||
2672 test ! -s conftest.err
2673 } && test -s conftest
$ac_exeext && {
2674 test "$cross_compiling" = yes ||
2675 $as_test_x conftest
$ac_exeext
2679 $as_echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.
$ac_ext >&5
2684 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2685 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2686 # interfere with the next link command; also delete a directory that is
2687 # left behind by Apple's compiler. We do this before executing the actions.
2688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2689 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2692 } # ac_fn_cxx_try_link
2693 cat >config.log
<<_ACEOF
2694 This file contains any messages produced by compilers while
2695 running configure, to aid debugging if configure makes a mistake.
2697 It was created by $as_me, which was
2698 generated by GNU Autoconf 2.64. Invocation command line was
2710 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2711 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2712 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2713 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2714 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2716 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2717 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2719 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2720 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2721 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2722 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2723 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2724 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2725 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2733 test -z "$as_dir" && as_dir
=.
2734 $as_echo "PATH: $as_dir"
2750 # Keep a trace of the command line.
2751 # Strip out --no-create and --no-recursion so they do not pile up.
2752 # Strip out --silent because we don't want to record it for future runs.
2753 # Also quote any args containing shell meta-characters.
2754 # Make two passes to allow for proper duplicate-argument suppression.
2758 ac_must_keep_next
=false
2764 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2765 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2766 |
-silent |
--silent |
--silen |
--sile |
--sil)
2769 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2772 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2774 as_fn_append ac_configure_args1
" '$ac_arg'"
2775 if test $ac_must_keep_next = true
; then
2776 ac_must_keep_next
=false
# Got value, back to normal.
2779 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2780 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2781 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2782 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2783 case "$ac_configure_args0 " in
2784 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2787 -* ) ac_must_keep_next
=true
;;
2790 as_fn_append ac_configure_args
" '$ac_arg'"
2795 { ac_configure_args0
=; unset ac_configure_args0
;}
2796 { ac_configure_args1
=; unset ac_configure_args1
;}
2798 # When interrupted or exit'd, cleanup temporary files, and complete
2799 # config.log. We remove comments because anyway the quotes in there
2800 # would cause problems or look ugly.
2801 # WARNING: Use '\'' to represent an apostrophe within the trap.
2802 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2803 trap 'exit_status=$?
2804 # Save into config.log some information that might help in debugging.
2809 ## ---------------- ##
2810 ## Cache variables. ##
2811 ## ---------------- ##
2814 # The following way of writing the cache mishandles newlines in values,
2816 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2817 eval ac_val=\$$ac_var
2821 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2822 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2825 _ | IFS | as_nl) ;; #(
2826 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2827 *) { eval $ac_var=; unset $ac_var;} ;;
2832 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2833 *${as_nl}ac_space=\ *)
2835 "s/'\''/'\''\\\\'\'''\''/g;
2836 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2839 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2847 ## ----------------- ##
2848 ## Output variables. ##
2849 ## ----------------- ##
2852 for ac_var in $ac_subst_vars
2854 eval ac_val=\$$ac_var
2856 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2858 $as_echo "$ac_var='\''$ac_val'\''"
2862 if test -n "$ac_subst_files"; then
2864 ## ------------------- ##
2865 ## File substitutions. ##
2866 ## ------------------- ##
2869 for ac_var
in $ac_subst_files
2871 eval ac_val
=\$
$ac_var
2873 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2875 $as_echo "$ac_var='\''$ac_val'\''"
2880 if test -s confdefs.h; then
2890 test "$ac_signal" != 0 &&
2891 $as_echo "$as_me: caught signal $ac_signal"
2892 $as_echo "$as_me: exit $exit_status"
2894 rm -f core *.core core.conftest.* &&
2895 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2898 for ac_signal
in 1 2 13 15; do
2899 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2903 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2904 rm -f -r conftest
* confdefs.h
2906 $as_echo "/* confdefs.h */" > confdefs.h
2908 # Predefined preprocessor variables.
2910 cat >>confdefs.h
<<_ACEOF
2911 #define PACKAGE_NAME "$PACKAGE_NAME"
2914 cat >>confdefs.h
<<_ACEOF
2915 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2918 cat >>confdefs.h
<<_ACEOF
2919 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2922 cat >>confdefs.h
<<_ACEOF
2923 #define PACKAGE_STRING "$PACKAGE_STRING"
2926 cat >>confdefs.h
<<_ACEOF
2927 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2930 cat >>confdefs.h
<<_ACEOF
2931 #define PACKAGE_URL "$PACKAGE_URL"
2935 # Let the site file select an alternate cache file if it wants to.
2936 # Prefer an explicitly selected file to automatically selected ones.
2939 if test -n "$CONFIG_SITE"; then
2940 ac_site_file1
=$CONFIG_SITE
2941 elif test "x$prefix" != xNONE
; then
2942 ac_site_file1
=$prefix/share
/config.site
2943 ac_site_file2
=$prefix/etc
/config.site
2945 ac_site_file1
=$ac_default_prefix/share
/config.site
2946 ac_site_file2
=$ac_default_prefix/etc
/config.site
2948 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2950 test "x$ac_site_file" = xNONE
&& continue
2951 if test -r "$ac_site_file"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2953 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2954 sed 's/^/| /' "$ac_site_file" >&5
2959 if test -r "$cache_file"; then
2960 # Some versions of bash will fail to source /dev/null (special
2961 # files actually), so we avoid doing that.
2962 if test -f "$cache_file"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2964 $as_echo "$as_me: loading cache $cache_file" >&6;}
2966 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2967 *) .
"./$cache_file";;
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2972 $as_echo "$as_me: creating cache $cache_file" >&6;}
2976 # Check that the precious variables saved in the cache have kept the same
2978 ac_cache_corrupted
=false
2979 for ac_var
in $ac_precious_vars; do
2980 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2981 eval ac_new_set
=\
$ac_env_${ac_var}_set
2982 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2983 eval ac_new_val
=\
$ac_env_${ac_var}_value
2984 case $ac_old_set,$ac_new_set in
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2987 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2988 ac_cache_corrupted
=: ;;
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2991 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2992 ac_cache_corrupted
=: ;;
2995 if test "x$ac_old_val" != "x$ac_new_val"; then
2996 # differences in whitespace do not lead to failure.
2997 ac_old_val_w
=`echo x $ac_old_val`
2998 ac_new_val_w
=`echo x $ac_new_val`
2999 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3001 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3002 ac_cache_corrupted
=:
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3005 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3006 eval $ac_var=\
$ac_old_val
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3009 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3011 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3014 # Pass precious variables to config.status.
3015 if test "$ac_new_set" = set; then
3017 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3018 *) ac_arg
=$ac_var=$ac_new_val ;;
3020 case " $ac_configure_args " in
3021 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3022 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3026 if $ac_cache_corrupted; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3030 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3031 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3033 ## -------------------- ##
3034 ## Main body of script. ##
3035 ## -------------------- ##
3038 ac_cpp
='$CPP $CPPFLAGS'
3039 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3040 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3041 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3048 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3051 gcc_version
=`cat $srcdir/BASE-VER`
3053 # Determine the host, build, and target systems
3055 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3056 for ac_t
in install-sh
install.sh shtool
; do
3057 if test -f "$ac_dir/$ac_t"; then
3059 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3064 if test -z "$ac_aux_dir"; then
3065 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3068 # These three variables are undocumented and unsupported,
3069 # and are intended to be withdrawn in a future Autoconf release.
3070 # They can cause serious problems if a builder's source tree is in a directory
3071 # whose full name contains unusual characters.
3072 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3073 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3074 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3077 # Make sure we can run config.sub.
3078 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3079 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3082 $as_echo_n "checking build system type... " >&6; }
3083 if test "${ac_cv_build+set}" = set; then :
3084 $as_echo_n "(cached) " >&6
3086 ac_build_alias
=$build_alias
3087 test "x$ac_build_alias" = x
&&
3088 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3089 test "x$ac_build_alias" = x
&&
3090 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3091 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3092 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3096 $as_echo "$ac_cv_build" >&6; }
3097 case $ac_cv_build in
3099 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3102 ac_save_IFS
=$IFS; IFS
='-'
3108 # Remember, the first character of IFS is used to create $*,
3109 # except with old shells:
3112 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3116 $as_echo_n "checking host system type... " >&6; }
3117 if test "${ac_cv_host+set}" = set; then :
3118 $as_echo_n "(cached) " >&6
3120 if test "x$host_alias" = x
; then
3121 ac_cv_host
=$ac_cv_build
3123 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3124 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3129 $as_echo "$ac_cv_host" >&6; }
3132 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3135 ac_save_IFS
=$IFS; IFS
='-'
3141 # Remember, the first character of IFS is used to create $*,
3142 # except with old shells:
3145 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3149 $as_echo_n "checking target system type... " >&6; }
3150 if test "${ac_cv_target+set}" = set; then :
3151 $as_echo_n "(cached) " >&6
3153 if test "x$target_alias" = x
; then
3154 ac_cv_target
=$ac_cv_host
3156 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3157 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3162 $as_echo "$ac_cv_target" >&6; }
3163 case $ac_cv_target in
3165 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3167 target
=$ac_cv_target
3168 ac_save_IFS
=$IFS; IFS
='-'
3174 # Remember, the first character of IFS is used to create $*,
3175 # except with old shells:
3178 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3181 # The aliases save the names the user supplied, while $host etc.
3182 # will get canonicalized.
3183 test -n "$target_alias" &&
3184 test "$program_prefix$program_suffix$program_transform_name" = \
3186 program_prefix
=${target_alias}-
3188 # Determine the noncanonical target name, for directory use.
3189 case ${build_alias} in
3190 "") build_noncanonical
=${build} ;;
3191 *) build_noncanonical
=${build_alias} ;;
3194 case ${host_alias} in
3195 "") host_noncanonical
=${build_noncanonical} ;;
3196 *) host_noncanonical
=${host_alias} ;;
3199 case ${target_alias} in
3200 "") target_noncanonical
=${host_noncanonical} ;;
3201 *) target_noncanonical
=${target_alias} ;;
3207 # Determine the target- and build-specific subdirectories
3209 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3210 # have matching libraries, they should use host libraries: Makefile.tpl
3211 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3212 # However, they still use the build modules, because the corresponding
3213 # host modules (e.g. bison) are only built for the host when bootstrap
3215 # - build_subdir is where we find build modules, and never changes.
3216 # - build_libsubdir is where we find build libraries, and can be overridden.
3218 # Prefix 'build-' so this never conflicts with target_subdir.
3219 build_subdir
="build-${build_noncanonical}"
3221 # Check whether --with-build-libsubdir was given.
3222 if test "${with_build_libsubdir+set}" = set; then :
3223 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3225 build_libsubdir
="$build_subdir"
3228 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3229 if ( test $srcdir = .
&& test -d gcc
) \
3230 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3231 host_subdir
="host-${host_noncanonical}"
3236 target_subdir
=${target_noncanonical}
3239 # Set program_transform_name
3240 test "$program_prefix" != NONE
&&
3241 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3242 # Use a double $ so make ignores it.
3243 test "$program_suffix" != NONE
&&
3244 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3245 # Double any \ or $.
3246 # By default was `s,x,x', remove it if useless.
3247 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3248 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3251 # Check for bogus environment variables.
3252 # Test if LIBRARY_PATH contains the notation for the current directory
3253 # since this would lead to problems installing/building glibc.
3254 # LIBRARY_PATH contains the current directory if one of the following
3256 # - one of the terminals (":" and ";") is the first or last sign
3257 # - two terminals occur directly after each other
3258 # - the path contains an element with a dot in it
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3260 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3261 case ${LIBRARY_PATH} in
3262 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3263 library_path_setting
="contains current directory"
3266 library_path_setting
="ok"
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3270 $as_echo "$library_path_setting" >&6; }
3271 if test "$library_path_setting" != "ok"; then
3273 *** LIBRARY_PATH shouldn't contain the current directory when
3274 *** building gcc. Please change the environment variable
3275 *** and run configure again." "$LINENO" 5
3278 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3279 # since this would lead to problems installing/building glibc.
3280 # GCC_EXEC_PREFIX contains the current directory if one of the following
3282 # - one of the terminals (":" and ";") is the first or last sign
3283 # - two terminals occur directly after each other
3284 # - the path contains an element with a dot in it
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3286 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3287 case ${GCC_EXEC_PREFIX} in
3288 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3289 gcc_exec_prefix_setting
="contains current directory"
3292 gcc_exec_prefix_setting
="ok"
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3296 $as_echo "$gcc_exec_prefix_setting" >&6; }
3297 if test "$gcc_exec_prefix_setting" != "ok"; then
3299 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3300 *** building gcc. Please change the environment variable
3301 *** and run configure again." "$LINENO" 5
3308 # Specify the local prefix
3311 # Check whether --with-local-prefix was given.
3312 if test "${with_local_prefix+set}" = set; then :
3313 withval
=$with_local_prefix; case "${withval}" in
3314 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3316 *) local_prefix
=$with_local_prefix ;;
3321 # Default local prefix if it is empty
3322 if test x
$local_prefix = x
; then
3323 local_prefix
=/usr
/local
3326 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3327 # passed in by the toplevel make and thus we'd get different behavior
3328 # depending on where we built the sources.
3329 gcc_gxx_include_dir
=
3330 # Specify the g++ header file directory
3332 # Check whether --with-gxx-include-dir was given.
3333 if test "${with_gxx_include_dir+set}" = set; then :
3334 withval
=$with_gxx_include_dir; case "${withval}" in
3335 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3337 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3342 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3343 if test x
${gcc_gxx_include_dir} = x
; then
3344 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3345 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3347 libstdcxx_incdir
='include/c++/$(version)'
3348 if test x
$host != x
$target; then
3349 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3351 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3355 gcc_gxx_include_dir_add_sysroot
=0
3356 if test "${with_sysroot+set}" = set; then
3357 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3358 if test "${gcc_gxx_without_sysroot}"; then
3359 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3360 gcc_gxx_include_dir_add_sysroot
=1
3365 # Check whether --with-cpp_install_dir was given.
3366 if test "${with_cpp_install_dir+set}" = set; then :
3367 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3368 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3369 elif test x
$withval != xno
; then
3370 cpp_install_dir
=$withval
3375 # We would like to our source tree to be readonly. However when releases or
3376 # pre-releases are generated, the flex/bison generated files as well as the
3377 # various formats of manuals need to be included along with the rest of the
3378 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3382 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3383 # Check whether --enable-generated-files-in-srcdir was given.
3384 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3385 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3387 generated_files_in_srcdir
=no
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3392 $as_echo "$generated_files_in_srcdir" >&6; }
3394 if test "$generated_files_in_srcdir" = "yes"; then
3401 # -------------------
3402 # Find default linker
3403 # -------------------
3407 # Check whether --with-gnu-ld was given.
3408 if test "${with_gnu_ld+set}" = set; then :
3409 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3415 # With pre-defined ld
3417 # Check whether --with-ld was given.
3418 if test "${with_ld+set}" = set; then :
3419 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3422 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3423 if test ! -x "$DEFAULT_LINKER"; then
3424 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3425 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3429 cat >>confdefs.h
<<_ACEOF
3430 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3436 $as_echo_n "checking whether a default linker was specified... " >&6; }
3437 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3438 if test x
"$gnu_ld_flag" = x
"no"; then
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3440 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3443 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3450 # With demangler in GNU ld
3452 # Check whether --with-demangler-in-ld was given.
3453 if test "${with_demangler_in_ld+set}" = set; then :
3454 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3460 # ----------------------
3461 # Find default assembler
3462 # ----------------------
3466 # Check whether --with-gnu-as was given.
3467 if test "${with_gnu_as+set}" = set; then :
3468 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3475 # Check whether --with-as was given.
3476 if test "${with_as+set}" = set; then :
3477 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3480 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3481 if test ! -x "$DEFAULT_ASSEMBLER"; then
3482 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3483 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3487 cat >>confdefs.h
<<_ACEOF
3488 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3494 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3495 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3496 if test x
"$gas_flag" = x
"no"; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3498 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3501 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3512 # If a non-executable a.out is present (e.g. created by GNU as above even if
3513 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3514 # file, even when creating an executable, so an execution test fails.
3515 # Remove possible default executable files to avoid this.
3517 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3518 # Autoconf includes it.
3519 rm -f a.out a.exe b.out
3521 # Find the native compiler
3523 ac_cpp
='$CPP $CPPFLAGS'
3524 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3527 if test -n "$ac_tool_prefix"; then
3528 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3529 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if test "${ac_cv_prog_CC+set}" = set; then :
3533 $as_echo_n "(cached) " >&6
3535 if test -n "$CC"; then
3536 ac_cv_prog_CC
="$CC" # Let the user override the test.
3538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3542 test -z "$as_dir" && as_dir
=.
3543 for ac_exec_ext
in '' $ac_executable_extensions; do
3544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3545 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3556 if test -n "$CC"; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3558 $as_echo "$CC" >&6; }
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3566 if test -z "$ac_cv_prog_CC"; then
3568 # Extract the first word of "gcc", so it can be a program name with args.
3569 set dummy gcc
; ac_word
=$2
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571 $as_echo_n "checking for $ac_word... " >&6; }
3572 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3573 $as_echo_n "(cached) " >&6
3575 if test -n "$ac_ct_CC"; then
3576 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3578 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3582 test -z "$as_dir" && as_dir
=.
3583 for ac_exec_ext
in '' $ac_executable_extensions; do
3584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3585 ac_cv_prog_ac_ct_CC
="gcc"
3586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3596 if test -n "$ac_ct_CC"; then
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3598 $as_echo "$ac_ct_CC" >&6; }
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 $as_echo "no" >&6; }
3604 if test "x$ac_ct_CC" = x
; then
3607 case $cross_compiling:$ac_tool_warned in
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3611 ac_tool_warned
=yes ;;
3619 if test -z "$CC"; then
3620 if test -n "$ac_tool_prefix"; then
3621 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3622 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624 $as_echo_n "checking for $ac_word... " >&6; }
3625 if test "${ac_cv_prog_CC+set}" = set; then :
3626 $as_echo_n "(cached) " >&6
3628 if test -n "$CC"; then
3629 ac_cv_prog_CC
="$CC" # Let the user override the test.
3631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3635 test -z "$as_dir" && as_dir
=.
3636 for ac_exec_ext
in '' $ac_executable_extensions; do
3637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3638 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3649 if test -n "$CC"; then
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3651 $as_echo "$CC" >&6; }
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3654 $as_echo "no" >&6; }
3660 if test -z "$CC"; then
3661 # Extract the first word of "cc", so it can be a program name with args.
3662 set dummy cc
; ac_word
=$2
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664 $as_echo_n "checking for $ac_word... " >&6; }
3665 if test "${ac_cv_prog_CC+set}" = set; then :
3666 $as_echo_n "(cached) " >&6
3668 if test -n "$CC"; then
3669 ac_cv_prog_CC
="$CC" # Let the user override the test.
3672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3676 test -z "$as_dir" && as_dir
=.
3677 for ac_exec_ext
in '' $ac_executable_extensions; do
3678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3679 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3680 ac_prog_rejected
=yes
3684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 if test $ac_prog_rejected = yes; then
3692 # We found a bogon in the path, so make sure we never use it.
3693 set dummy
$ac_cv_prog_CC
3695 if test $# != 0; then
3696 # We chose a different compiler from the bogus one.
3697 # However, it has the same basename, so the bogon will be chosen
3698 # first if we set CC to just the basename; use the full file name.
3700 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3706 if test -n "$CC"; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3708 $as_echo "$CC" >&6; }
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3716 if test -z "$CC"; then
3717 if test -n "$ac_tool_prefix"; then
3718 for ac_prog
in cl.exe
3720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3721 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3723 $as_echo_n "checking for $ac_word... " >&6; }
3724 if test "${ac_cv_prog_CC+set}" = set; then :
3725 $as_echo_n "(cached) " >&6
3727 if test -n "$CC"; then
3728 ac_cv_prog_CC
="$CC" # Let the user override the test.
3730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3734 test -z "$as_dir" && as_dir
=.
3735 for ac_exec_ext
in '' $ac_executable_extensions; do
3736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3737 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3748 if test -n "$CC"; then
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3750 $as_echo "$CC" >&6; }
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753 $as_echo "no" >&6; }
3757 test -n "$CC" && break
3760 if test -z "$CC"; then
3762 for ac_prog
in cl.exe
3764 # Extract the first word of "$ac_prog", so it can be a program name with args.
3765 set dummy
$ac_prog; ac_word
=$2
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3767 $as_echo_n "checking for $ac_word... " >&6; }
3768 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3769 $as_echo_n "(cached) " >&6
3771 if test -n "$ac_ct_CC"; then
3772 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3778 test -z "$as_dir" && as_dir
=.
3779 for ac_exec_ext
in '' $ac_executable_extensions; do
3780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3781 ac_cv_prog_ac_ct_CC
="$ac_prog"
3782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3791 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3792 if test -n "$ac_ct_CC"; then
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3794 $as_echo "$ac_ct_CC" >&6; }
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3797 $as_echo "no" >&6; }
3801 test -n "$ac_ct_CC" && break
3804 if test "x$ac_ct_CC" = x
; then
3807 case $cross_compiling:$ac_tool_warned in
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3811 ac_tool_warned
=yes ;;
3820 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3822 as_fn_error
"no acceptable C compiler found in \$PATH
3823 See \`config.log' for more details." "$LINENO" 5; }
3825 # Provide some information about the compiler.
3826 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3829 for ac_option
in --version -v -V -qversion; do
3830 { { ac_try
="$ac_compiler $ac_option >&5"
3832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3836 $as_echo "$ac_try_echo"; } >&5
3837 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3839 if test -s conftest.err; then
3841 ... rest of stderr output deleted ...
3842 10q' conftest.err >conftest.er1
3843 cat conftest.er1 >&5
3844 rm -f conftest.er1 conftest.err
3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847 test $ac_status = 0; }
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3861 ac_clean_files_save=$ac_clean_files
3862 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3863 # Try to create an executable without -o first, disregard a.out.
3864 # It will help us diagnose broken compilers, and finding out an intuition
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3867 $as_echo_n "checking for C compiler default output file name... " >&6; }
3868 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3870 # The possible output files:
3871 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3874 for ac_file in $ac_files
3877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3878 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3883 if { { ac_try="$ac_link_default"
3885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3886 *) ac_try_echo
=$ac_try;;
3888 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889 $as_echo "$ac_try_echo"; } >&5
3890 (eval "$ac_link_default") 2>&5
3892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }; then :
3894 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3895 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3896 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3897 # so that the user can short-circuit this test for compilers unknown to
3899 for ac_file
in $ac_files ''
3901 test -f "$ac_file" ||
continue
3903 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3906 # We found the default executable, but exeext='' is most
3910 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3912 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3914 # We set ac_cv_exeext here because the later test for it is not
3915 # safe: cross compilers may not add the suffix if given an `-o'
3916 # argument, so we may need to know it at that point already.
3917 # Even if this section looks crufty: it has the advantage of
3924 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3930 $as_echo "$ac_file" >&6; }
3931 if test -z "$ac_file"; then :
3932 $as_echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.
$ac_ext >&5
3935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3937 { as_fn_set_status
77
3938 as_fn_error
"C compiler cannot create executables
3939 See \`config.log' for more details." "$LINENO" 5; }; }
3941 ac_exeext
=$ac_cv_exeext
3943 # Check that the compiler produces executables we can run. If not, either
3944 # the compiler is broken, or we cross compile.
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3946 $as_echo_n "checking whether the C compiler works... " >&6; }
3947 # If not cross compiling, check that we can run a simple program.
3948 if test "$cross_compiling" != yes; then
3949 if { ac_try
='./$ac_file'
3950 { { case "(($ac_try" in
3951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3955 $as_echo "$ac_try_echo"; } >&5
3956 (eval "$ac_try") 2>&5
3958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3959 test $ac_status = 0; }; }; then
3962 if test "$cross_compiling" = maybe; then
3965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3967 as_fn_error "cannot run C compiled programs.
3968 If you meant to cross compile
, use \
`--host'.
3969 See \`config.log
' for more details." "$LINENO" 5; }
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3974 $as_echo "yes" >&6; }
3976 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3977 ac_clean_files=$ac_clean_files_save
3978 # Check that the compiler produces executables we can run. If not, either
3979 # the compiler is broken, or we cross compile.
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3981 $as_echo_n "checking whether we are cross compiling... " >&6; }
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3983 $as_echo "$cross_compiling" >&6; }
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3986 $as_echo_n "checking for suffix of executables... " >&6; }
3987 if { { ac_try="$ac_link"
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3993 $as_echo "$ac_try_echo"; } >&5
3994 (eval "$ac_link") 2>&5
3996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3997 test $ac_status = 0; }; then :
3998 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3999 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4000 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4002 for ac_file
in conftest.exe conftest conftest.
*; do
4003 test -f "$ac_file" ||
continue
4005 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4006 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4014 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4015 See \`config.log' for more details." "$LINENO" 5; }
4017 rm -f conftest
$ac_cv_exeext
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4019 $as_echo "$ac_cv_exeext" >&6; }
4021 rm -f conftest.
$ac_ext
4022 EXEEXT
=$ac_cv_exeext
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4025 $as_echo_n "checking for suffix of object files... " >&6; }
4026 if test "${ac_cv_objext+set}" = set; then :
4027 $as_echo_n "(cached) " >&6
4029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4040 rm -f conftest.o conftest.obj
4041 if { { ac_try
="$ac_compile"
4043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4047 $as_echo "$ac_try_echo"; } >&5
4048 (eval "$ac_compile") 2>&5
4050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4051 test $ac_status = 0; }; then :
4052 for ac_file in conftest.o conftest.obj conftest.*; do
4053 test -f "$ac_file" || continue;
4055 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4056 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4061 $as_echo "$as_me: failed program was:" >&5
4062 sed 's/^/| /' conftest.$ac_ext >&5
4064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4066 as_fn_error "cannot compute suffix of object files
: cannot compile
4067 See \
`config.log' for more details." "$LINENO" 5; }
4069 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4072 $as_echo "$ac_cv_objext" >&6; }
4073 OBJEXT=$ac_cv_objext
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4076 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4077 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4078 $as_echo_n "(cached) " >&6
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4094 if ac_fn_c_try_compile "$LINENO"; then :
4099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4104 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4105 if test $ac_compiler_gnu = yes; then
4110 ac_test_CFLAGS=${CFLAGS+set}
4111 ac_save_CFLAGS=$CFLAGS
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4113 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4114 if test "${ac_cv_prog_cc_g+set}" = set; then :
4115 $as_echo_n "(cached) " >&6
4117 ac_save_c_werror_flag=$ac_c_werror_flag
4118 ac_c_werror_flag=yes
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4132 if ac_fn_c_try_compile "$LINENO"; then :
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4147 if ac_fn_c_try_compile "$LINENO"; then :
4150 ac_c_werror_flag=$ac_save_c_werror_flag
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4163 if ac_fn_c_try_compile "$LINENO"; then :
4166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171 ac_c_werror_flag=$ac_save_c_werror_flag
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4174 $as_echo "$ac_cv_prog_cc_g" >&6; }
4175 if test "$ac_test_CFLAGS" = set; then
4176 CFLAGS=$ac_save_CFLAGS
4177 elif test $ac_cv_prog_cc_g = yes; then
4178 if test "$GCC" = yes; then
4184 if test "$GCC" = yes; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4191 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4192 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4193 $as_echo_n "(cached) " >&6
4195 ac_cv_prog_cc_c89=no
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4201 #include <sys/types.h>
4202 #include <sys/stat.h>
4203 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4204 struct buf { int x; };
4205 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4206 static char *e (p, i)
4212 static char *f (char * (*g) (char **, int), char **p, ...)
4217 s = g (p, va_arg (v,int));
4222 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4223 function prototypes and stuff, but not '\xHH' hex character constants.
4224 These don't provoke an error unfortunately, instead are silently treated
4225 as 'x'. The following induces an error, until -std is added to get
4226 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4227 array size at least. It's necessary to write '\x00'==0 to get something
4228 that's true only with -std. */
4229 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4231 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4232 inside strings and character constants. */
4234 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4236 int test (int i, double x);
4237 struct s1 {int (*f) (int a);};
4238 struct s2 {int (*f) (double a);};
4239 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4245 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4250 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4251 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4253 CC="$ac_save_CC $ac_arg"
4254 if ac_fn_c_try_compile "$LINENO"; then :
4255 ac_cv_prog_cc_c89=$ac_arg
4257 rm -f core conftest.err conftest.$ac_objext
4258 test "x$ac_cv_prog_cc_c89" != "xno" && break
4260 rm -f conftest.$ac_ext
4265 case "x$ac_cv_prog_cc_c89" in
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4268 $as_echo "none needed" >&6; } ;;
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4271 $as_echo "unsupported" >&6; } ;;
4273 CC="$CC $ac_cv_prog_cc_c89"
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4275 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4277 if test "x$ac_cv_prog_cc_c89" != xno; then :
4282 ac_cpp='$CPP $CPPFLAGS'
4283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4288 ac_cpp='$CXXCPP $CPPFLAGS'
4289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4292 if test -z "$CXX"; then
4293 if test -n "$CCC"; then
4296 if test -n "$ac_tool_prefix"; then
4297 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4299 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4300 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302 $as_echo_n "checking for $ac_word... " >&6; }
4303 if test "${ac_cv_prog_CXX+set}" = set; then :
4304 $as_echo_n "(cached) " >&6
4306 if test -n "$CXX"; then
4307 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4316 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 if test -n "$CXX"; then
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4329 $as_echo "$CXX" >&6; }
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332 $as_echo "no" >&6; }
4336 test -n "$CXX" && break
4339 if test -z "$CXX"; then
4341 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4343 # Extract the first word of "$ac_prog", so it can be a program name with args.
4344 set dummy $ac_prog; ac_word=$2
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346 $as_echo_n "checking for $ac_word... " >&6; }
4347 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4348 $as_echo_n "(cached) " >&6
4350 if test -n "$ac_ct_CXX"; then
4351 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 test -z "$as_dir" && as_dir=.
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4360 ac_cv_prog_ac_ct_CXX="$ac_prog"
4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4371 if test -n "$ac_ct_CXX"; then
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4373 $as_echo "$ac_ct_CXX" >&6; }
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376 $as_echo "no" >&6; }
4380 test -n "$ac_ct_CXX" && break
4383 if test "x$ac_ct_CXX" = x; then
4386 case $cross_compiling:$ac_tool_warned in
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4390 ac_tool_warned=yes ;;
4398 # Provide some information about the compiler.
4399 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4402 for ac_option in --version -v -V -qversion; do
4403 { { ac_try="$ac_compiler $ac_option >&5"
4405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4406 *) ac_try_echo
=$ac_try;;
4408 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4409 $as_echo "$ac_try_echo"; } >&5
4410 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4412 if test -s conftest.err
; then
4414 ... rest of stderr output deleted ...
4415 10q' conftest.err
>conftest.er1
4416 cat conftest.er1
>&5
4417 rm -f conftest.er1 conftest.err
4419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4420 test $ac_status = 0; }
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4424 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4425 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4426 $as_echo_n "(cached) " >&6
4428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4442 if ac_fn_cxx_try_compile
"$LINENO"; then :
4447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4448 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4452 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4453 if test $ac_compiler_gnu = yes; then
4458 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4459 ac_save_CXXFLAGS
=$CXXFLAGS
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4461 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4462 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4463 $as_echo_n "(cached) " >&6
4465 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4466 ac_cxx_werror_flag
=yes
4469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h. */
4480 if ac_fn_cxx_try_compile
"$LINENO"; then :
4481 ac_cv_prog_cxx_g
=yes
4484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4495 if ac_fn_cxx_try_compile
"$LINENO"; then :
4498 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h. */
4511 if ac_fn_cxx_try_compile
"$LINENO"; then :
4512 ac_cv_prog_cxx_g
=yes
4514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4519 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4522 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4523 if test "$ac_test_CXXFLAGS" = set; then
4524 CXXFLAGS
=$ac_save_CXXFLAGS
4525 elif test $ac_cv_prog_cxx_g = yes; then
4526 if test "$GXX" = yes; then
4532 if test "$GXX" = yes; then
4539 ac_cpp
='$CPP $CPPFLAGS'
4540 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4547 if test -n "$ac_tool_prefix"; then
4548 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4549 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4551 $as_echo_n "checking for $ac_word... " >&6; }
4552 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4553 $as_echo_n "(cached) " >&6
4555 if test -n "$GNATBIND"; then
4556 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4562 test -z "$as_dir" && as_dir
=.
4563 for ac_exec_ext
in '' $ac_executable_extensions; do
4564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4565 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 GNATBIND
=$ac_cv_prog_GNATBIND
4576 if test -n "$GNATBIND"; then
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4578 $as_echo "$GNATBIND" >&6; }
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581 $as_echo "no" >&6; }
4586 if test -z "$ac_cv_prog_GNATBIND"; then
4587 ac_ct_GNATBIND
=$GNATBIND
4588 # Extract the first word of "gnatbind", so it can be a program name with args.
4589 set dummy gnatbind
; ac_word
=$2
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4591 $as_echo_n "checking for $ac_word... " >&6; }
4592 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4593 $as_echo_n "(cached) " >&6
4595 if test -n "$ac_ct_GNATBIND"; then
4596 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4602 test -z "$as_dir" && as_dir
=.
4603 for ac_exec_ext
in '' $ac_executable_extensions; do
4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4605 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4616 if test -n "$ac_ct_GNATBIND"; then
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4618 $as_echo "$ac_ct_GNATBIND" >&6; }
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621 $as_echo "no" >&6; }
4624 if test "x$ac_ct_GNATBIND" = x
; then
4627 case $cross_compiling:$ac_tool_warned in
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4631 ac_tool_warned
=yes ;;
4633 GNATBIND
=$ac_ct_GNATBIND
4636 GNATBIND
="$ac_cv_prog_GNATBIND"
4639 if test -n "$ac_tool_prefix"; then
4640 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4641 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4645 $as_echo_n "(cached) " >&6
4647 if test -n "$GNATMAKE"; then
4648 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4650 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4654 test -z "$as_dir" && as_dir
=.
4655 for ac_exec_ext
in '' $ac_executable_extensions; do
4656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4657 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 GNATMAKE
=$ac_cv_prog_GNATMAKE
4668 if test -n "$GNATMAKE"; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4670 $as_echo "$GNATMAKE" >&6; }
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673 $as_echo "no" >&6; }
4678 if test -z "$ac_cv_prog_GNATMAKE"; then
4679 ac_ct_GNATMAKE
=$GNATMAKE
4680 # Extract the first word of "gnatmake", so it can be a program name with args.
4681 set dummy gnatmake
; ac_word
=$2
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683 $as_echo_n "checking for $ac_word... " >&6; }
4684 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4685 $as_echo_n "(cached) " >&6
4687 if test -n "$ac_ct_GNATMAKE"; then
4688 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4694 test -z "$as_dir" && as_dir
=.
4695 for ac_exec_ext
in '' $ac_executable_extensions; do
4696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4697 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4708 if test -n "$ac_ct_GNATMAKE"; then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4710 $as_echo "$ac_ct_GNATMAKE" >&6; }
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713 $as_echo "no" >&6; }
4716 if test "x$ac_ct_GNATMAKE" = x
; then
4719 case $cross_compiling:$ac_tool_warned in
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4723 ac_tool_warned
=yes ;;
4725 GNATMAKE
=$ac_ct_GNATMAKE
4728 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4732 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4733 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4734 $as_echo_n "(cached) " >&6
4736 cat >conftest.adb
<<EOF
4737 procedure conftest is begin null; end conftest;
4739 acx_cv_cc_gcc_supports_ada
=no
4740 # There is a bug in old released versions of GCC which causes the
4741 # driver to exit successfully when the appropriate language module
4742 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4743 # Therefore we must check for the error message as well as an
4744 # unsuccessful exit.
4745 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4746 # given a .adb file, but produce no object file. So we must check
4747 # if an object file was really produced to guard against this.
4748 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4749 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4750 acx_cv_cc_gcc_supports_ada
=yes
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4755 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4757 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4764 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4765 # optimizations to be activated explicitly by the toplevel.
4767 */prev-gcc
/xgcc
*) ;;
4768 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4769 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4774 # Determine PICFLAG for target gnatlib.
4780 # PIC is the default on some targets or must not be used.
4782 # PIC is the default on this platform
4783 # Common symbols not allowed in MH_DYLIB files
4784 PICFLAG_FOR_TARGET
=-fno-common
4787 # PIC is the default.
4790 # PIC is the default for 64-bit PA HP-UX.
4792 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
4794 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
4796 i
[34567]86-*-interix[3-9]*)
4797 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4798 # Instead, we relocate shared libraries at runtime.
4800 i
[34567]86-*-nto-qnx*)
4801 # QNX uses GNU C++, but need to define -shared option too, otherwise
4803 PICFLAG_FOR_TARGET
='-fPIC -shared'
4805 i
[34567]86-pc-msdosdjgpp*)
4806 # DJGPP does not support shared libraries at all.
4809 # On IA64 HP-UX, PIC is the default but the pic flag
4810 # sets the default TLS model and affects inlining.
4811 PICFLAG_FOR_TARGET
=-fPIC
4814 # PIC is the default.
4816 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
4817 # All AIX code is PIC.
4820 # Some targets support both -fPIC and -fpic, but prefer the latter.
4822 i
[34567]86-*-* | x86_64-
*-*)
4823 PICFLAG_FOR_TARGET
=-fpic
4825 # FIXME: Override -fPIC default in libgcc only?
4826 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
4827 PICFLAG_FOR_TARGET
=-fpic
4829 # FIXME: Simplify to sh*-*-netbsd*?
4830 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
4831 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
4832 PICFLAG_FOR_TARGET
=-fpic
4834 # Default to -fPIC unless specified otherwise.
4836 PICFLAG_FOR_TARGET
=-fPIC
4840 # If the user explicitly uses -fpic/-fPIC, keep that.
4841 case "${CFLAGS_FOR_TARGET}" in
4843 PICFLAG_FOR_TARGET
=-fpic
4846 PICFLAG_FOR_TARGET
=-fPIC
4852 # -------------------------
4853 # Check C compiler features
4854 # -------------------------
4858 ac_cpp
='$CPP $CPPFLAGS'
4859 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4863 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4864 # On Suns, sometimes $CPP names a directory.
4865 if test -n "$CPP" && test -d "$CPP"; then
4868 if test -z "$CPP"; then
4869 if test "${ac_cv_prog_CPP+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
4872 # Double quotes because CPP needs to be expanded
4873 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4876 for ac_c_preproc_warn_flag
in '' yes
4878 # Use a header file that comes with gcc, so configuring glibc
4879 # with a fresh cross-compiler works.
4880 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4881 # <limits.h> exists even on freestanding compilers.
4882 # On the NeXT, cc -E runs the code through the compiler's parser,
4883 # not just through cpp. "Syntax error" is here to catch this case.
4884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4887 # include <limits.h>
4889 # include <assert.h>
4893 if ac_fn_c_try_cpp
"$LINENO"; then :
4896 # Broken: fails on valid input.
4899 rm -f conftest.err conftest.
$ac_ext
4901 # OK, works on sane cases. Now check whether nonexistent headers
4902 # can be detected and how.
4903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4905 #include <ac_nonexistent.h>
4907 if ac_fn_c_try_cpp
"$LINENO"; then :
4908 # Broken: success on invalid input.
4911 # Passes both tests.
4915 rm -f conftest.err conftest.
$ac_ext
4918 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4919 rm -f conftest.err conftest.
$ac_ext
4920 if $ac_preproc_ok; then :
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4933 $as_echo "$CPP" >&6; }
4935 for ac_c_preproc_warn_flag
in '' yes
4937 # Use a header file that comes with gcc, so configuring glibc
4938 # with a fresh cross-compiler works.
4939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4940 # <limits.h> exists even on freestanding compilers.
4941 # On the NeXT, cc -E runs the code through the compiler's parser,
4942 # not just through cpp. "Syntax error" is here to catch this case.
4943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4946 # include <limits.h>
4948 # include <assert.h>
4952 if ac_fn_c_try_cpp
"$LINENO"; then :
4955 # Broken: fails on valid input.
4958 rm -f conftest.err conftest.
$ac_ext
4960 # OK, works on sane cases. Now check whether nonexistent headers
4961 # can be detected and how.
4962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4964 #include <ac_nonexistent.h>
4966 if ac_fn_c_try_cpp
"$LINENO"; then :
4967 # Broken: success on invalid input.
4970 # Passes both tests.
4974 rm -f conftest.err conftest.
$ac_ext
4977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4978 rm -f conftest.err conftest.
$ac_ext
4979 if $ac_preproc_ok; then :
4982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4984 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4985 See \`config.log' for more details." "$LINENO" 5; }
4989 ac_cpp
='$CPP $CPPFLAGS'
4990 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4991 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4992 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4996 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4997 if test "${ac_cv_path_GREP+set}" = set; then :
4998 $as_echo_n "(cached) " >&6
5000 if test -z "$GREP"; then
5001 ac_path_GREP_found
=false
5002 # Loop through the user's path and test for each of PROGNAME-LIST
5003 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5004 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5007 test -z "$as_dir" && as_dir
=.
5008 for ac_prog
in grep ggrep
; do
5009 for ac_exec_ext
in '' $ac_executable_extensions; do
5010 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5011 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5012 # Check for GNU ac_path_GREP and select it if it is found.
5013 # Check for GNU $ac_path_GREP
5014 case `"$ac_path_GREP" --version 2>&1` in
5016 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5019 $as_echo_n 0123456789 >"conftest.in"
5022 cat "conftest.in" "conftest.in" >"conftest.tmp"
5023 mv "conftest.tmp" "conftest.in"
5024 cp "conftest.in" "conftest.nl"
5025 $as_echo 'GREP' >> "conftest.nl"
5026 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5027 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5028 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5029 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5030 # Best one so far, save it but keep looking for a better one
5031 ac_cv_path_GREP
="$ac_path_GREP"
5032 ac_path_GREP_max
=$ac_count
5034 # 10*(2^10) chars as input seems more than enough
5035 test $ac_count -gt 10 && break
5037 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5040 $ac_path_GREP_found && break 3
5045 if test -z "$ac_cv_path_GREP"; then
5046 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5049 ac_cv_path_GREP
=$GREP
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5054 $as_echo "$ac_cv_path_GREP" >&6; }
5055 GREP
="$ac_cv_path_GREP"
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5059 $as_echo_n "checking for egrep... " >&6; }
5060 if test "${ac_cv_path_EGREP+set}" = set; then :
5061 $as_echo_n "(cached) " >&6
5063 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5064 then ac_cv_path_EGREP
="$GREP -E"
5066 if test -z "$EGREP"; then
5067 ac_path_EGREP_found
=false
5068 # Loop through the user's path and test for each of PROGNAME-LIST
5069 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5070 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5073 test -z "$as_dir" && as_dir
=.
5074 for ac_prog
in egrep; do
5075 for ac_exec_ext
in '' $ac_executable_extensions; do
5076 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5077 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5078 # Check for GNU ac_path_EGREP and select it if it is found.
5079 # Check for GNU $ac_path_EGREP
5080 case `"$ac_path_EGREP" --version 2>&1` in
5082 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5085 $as_echo_n 0123456789 >"conftest.in"
5088 cat "conftest.in" "conftest.in" >"conftest.tmp"
5089 mv "conftest.tmp" "conftest.in"
5090 cp "conftest.in" "conftest.nl"
5091 $as_echo 'EGREP' >> "conftest.nl"
5092 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5093 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5094 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5095 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5096 # Best one so far, save it but keep looking for a better one
5097 ac_cv_path_EGREP
="$ac_path_EGREP"
5098 ac_path_EGREP_max
=$ac_count
5100 # 10*(2^10) chars as input seems more than enough
5101 test $ac_count -gt 10 && break
5103 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5106 $ac_path_EGREP_found && break 3
5111 if test -z "$ac_cv_path_EGREP"; then
5112 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5115 ac_cv_path_EGREP
=$EGREP
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5121 $as_echo "$ac_cv_path_EGREP" >&6; }
5122 EGREP
="$ac_cv_path_EGREP"
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5126 $as_echo_n "checking for ANSI C header files... " >&6; }
5127 if test "${ac_cv_header_stdc+set}" = set; then :
5128 $as_echo_n "(cached) " >&6
5130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h. */
5145 if ac_fn_c_try_compile
"$LINENO"; then :
5146 ac_cv_header_stdc
=yes
5148 ac_cv_header_stdc
=no
5150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5152 if test $ac_cv_header_stdc = yes; then
5153 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h. */
5159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5160 $EGREP "memchr" >/dev
/null
2>&1; then :
5163 ac_cv_header_stdc
=no
5169 if test $ac_cv_header_stdc = yes; then
5170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5177 $EGREP "free" >/dev
/null
2>&1; then :
5180 ac_cv_header_stdc
=no
5186 if test $ac_cv_header_stdc = yes; then
5187 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5188 if test "$cross_compiling" = yes; then :
5191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5195 #if ((' ' & 0x0FF) == 0x020)
5196 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5197 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5199 # define ISLOWER(c) \
5200 (('a' <= (c) && (c) <= 'i') \
5201 || ('j' <= (c) && (c) <= 'r') \
5202 || ('s' <= (c) && (c) <= 'z'))
5203 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5206 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5211 for (i = 0; i < 256; i++)
5212 if (XOR (islower (i), ISLOWER (i))
5213 || toupper (i) != TOUPPER (i))
5218 if ac_fn_c_try_run
"$LINENO"; then :
5221 ac_cv_header_stdc
=no
5223 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5224 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5230 $as_echo "$ac_cv_header_stdc" >&6; }
5231 if test $ac_cv_header_stdc = yes; then
5233 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5237 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5238 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5239 inttypes.h stdint.h unistd.h
5241 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5242 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5244 eval as_val
=\$
$as_ac_Header
5245 if test "x$as_val" = x
""yes; then :
5246 cat >>confdefs.h
<<_ACEOF
5247 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5256 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5257 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5264 if test "$MINIX" = yes; then
5266 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5269 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5272 $as_echo "#define _MINIX 1" >>confdefs.h
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5278 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5279 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
5282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5285 # define __EXTENSIONS__ 1
5286 $ac_includes_default
5295 if ac_fn_c_try_compile
"$LINENO"; then :
5296 ac_cv_safe_to_define___extensions__
=yes
5298 ac_cv_safe_to_define___extensions__
=no
5300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5303 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5304 test $ac_cv_safe_to_define___extensions__ = yes &&
5305 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5307 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5309 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5311 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5313 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5317 ac_cpp
='$CPP $CPPFLAGS'
5318 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5319 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5320 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5322 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5323 # On Suns, sometimes $CPP names a directory.
5324 if test -n "$CPP" && test -d "$CPP"; then
5327 if test -z "$CPP"; then
5328 if test "${ac_cv_prog_CPP+set}" = set; then :
5329 $as_echo_n "(cached) " >&6
5331 # Double quotes because CPP needs to be expanded
5332 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5335 for ac_c_preproc_warn_flag
in '' yes
5337 # Use a header file that comes with gcc, so configuring glibc
5338 # with a fresh cross-compiler works.
5339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5340 # <limits.h> exists even on freestanding compilers.
5341 # On the NeXT, cc -E runs the code through the compiler's parser,
5342 # not just through cpp. "Syntax error" is here to catch this case.
5343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5346 # include <limits.h>
5348 # include <assert.h>
5352 if ac_fn_c_try_cpp
"$LINENO"; then :
5355 # Broken: fails on valid input.
5358 rm -f conftest.err conftest.
$ac_ext
5360 # OK, works on sane cases. Now check whether nonexistent headers
5361 # can be detected and how.
5362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5364 #include <ac_nonexistent.h>
5366 if ac_fn_c_try_cpp
"$LINENO"; then :
5367 # Broken: success on invalid input.
5370 # Passes both tests.
5374 rm -f conftest.err conftest.
$ac_ext
5377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5378 rm -f conftest.err conftest.
$ac_ext
5379 if $ac_preproc_ok; then :
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5392 $as_echo "$CPP" >&6; }
5394 for ac_c_preproc_warn_flag
in '' yes
5396 # Use a header file that comes with gcc, so configuring glibc
5397 # with a fresh cross-compiler works.
5398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5399 # <limits.h> exists even on freestanding compilers.
5400 # On the NeXT, cc -E runs the code through the compiler's parser,
5401 # not just through cpp. "Syntax error" is here to catch this case.
5402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5405 # include <limits.h>
5407 # include <assert.h>
5411 if ac_fn_c_try_cpp
"$LINENO"; then :
5414 # Broken: fails on valid input.
5417 rm -f conftest.err conftest.
$ac_ext
5419 # OK, works on sane cases. Now check whether nonexistent headers
5420 # can be detected and how.
5421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5423 #include <ac_nonexistent.h>
5425 if ac_fn_c_try_cpp
"$LINENO"; then :
5426 # Broken: success on invalid input.
5429 # Passes both tests.
5433 rm -f conftest.err conftest.
$ac_ext
5436 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5437 rm -f conftest.err conftest.
$ac_ext
5438 if $ac_preproc_ok; then :
5441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5443 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5444 See \`config.log' for more details." "$LINENO" 5; }
5448 ac_cpp
='$CPP $CPPFLAGS'
5449 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5450 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5451 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5454 $as_echo_n "checking for inline... " >&6; }
5455 if test "${ac_cv_c_inline+set}" = set; then :
5456 $as_echo_n "(cached) " >&6
5459 for ac_kw
in inline __inline__ __inline
; do
5460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5464 static $ac_kw foo_t static_foo () {return 0; }
5465 $ac_kw foo_t foo () {return 0; }
5469 if ac_fn_c_try_compile
"$LINENO"; then :
5470 ac_cv_c_inline
=$ac_kw
5472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5473 test "$ac_cv_c_inline" != no
&& break
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5478 $as_echo "$ac_cv_c_inline" >&6; }
5480 case $ac_cv_c_inline in
5483 case $ac_cv_c_inline in
5485 *) ac_val
=$ac_cv_c_inline;;
5487 cat >>confdefs.h
<<_ACEOF
5489 #define inline $ac_val
5496 # Check whether --enable-largefile was given.
5497 if test "${enable_largefile+set}" = set; then :
5498 enableval
=$enable_largefile;
5501 if test "$enable_largefile" != no
; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5504 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5505 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5506 $as_echo_n "(cached) " >&6
5508 ac_cv_sys_largefile_CC
=no
5509 if test "$GCC" != yes; then
5512 # IRIX 6.2 and later do not support large files by default,
5513 # so use the C compiler's -n32 option if that helps.
5514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5516 #include <sys/types.h>
5517 /* Check that off_t can represent 2**63 - 1 correctly.
5518 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5519 since some C++ compilers masquerading as C compilers
5520 incorrectly reject 9223372036854775807. */
5521 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5522 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5523 && LARGE_OFF_T % 2147483647 == 1)
5533 if ac_fn_c_try_compile
"$LINENO"; then :
5536 rm -f core conftest.err conftest.
$ac_objext
5538 if ac_fn_c_try_compile
"$LINENO"; then :
5539 ac_cv_sys_largefile_CC
=' -n32'; break
5541 rm -f core conftest.err conftest.
$ac_objext
5545 rm -f conftest.
$ac_ext
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5549 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5550 if test "$ac_cv_sys_largefile_CC" != no
; then
5551 CC
=$CC$ac_cv_sys_largefile_CC
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5555 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5556 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5557 $as_echo_n "(cached) " >&6
5560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5562 #include <sys/types.h>
5563 /* Check that off_t can represent 2**63 - 1 correctly.
5564 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5565 since some C++ compilers masquerading as C compilers
5566 incorrectly reject 9223372036854775807. */
5567 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5568 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5569 && LARGE_OFF_T % 2147483647 == 1)
5579 if ac_fn_c_try_compile
"$LINENO"; then :
5580 ac_cv_sys_file_offset_bits
=no
; break
5582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h. */
5585 #define _FILE_OFFSET_BITS 64
5586 #include <sys/types.h>
5587 /* Check that off_t can represent 2**63 - 1 correctly.
5588 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5589 since some C++ compilers masquerading as C compilers
5590 incorrectly reject 9223372036854775807. */
5591 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5592 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5593 && LARGE_OFF_T % 2147483647 == 1)
5603 if ac_fn_c_try_compile
"$LINENO"; then :
5604 ac_cv_sys_file_offset_bits
=64; break
5606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5607 ac_cv_sys_file_offset_bits
=unknown
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5612 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5613 case $ac_cv_sys_file_offset_bits in #(
5616 cat >>confdefs.h
<<_ACEOF
5617 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5622 if test $ac_cv_sys_file_offset_bits = unknown
; then
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5624 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5625 if test "${ac_cv_sys_large_files+set}" = set; then :
5626 $as_echo_n "(cached) " >&6
5629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5631 #include <sys/types.h>
5632 /* Check that off_t can represent 2**63 - 1 correctly.
5633 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5634 since some C++ compilers masquerading as C compilers
5635 incorrectly reject 9223372036854775807. */
5636 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5637 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5638 && LARGE_OFF_T % 2147483647 == 1)
5648 if ac_fn_c_try_compile
"$LINENO"; then :
5649 ac_cv_sys_large_files
=no
; break
5651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5654 #define _LARGE_FILES 1
5655 #include <sys/types.h>
5656 /* Check that off_t can represent 2**63 - 1 correctly.
5657 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5658 since some C++ compilers masquerading as C compilers
5659 incorrectly reject 9223372036854775807. */
5660 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5661 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5662 && LARGE_OFF_T % 2147483647 == 1)
5672 if ac_fn_c_try_compile
"$LINENO"; then :
5673 ac_cv_sys_large_files
=1; break
5675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5676 ac_cv_sys_large_files
=unknown
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5681 $as_echo "$ac_cv_sys_large_files" >&6; }
5682 case $ac_cv_sys_large_files in #(
5685 cat >>confdefs.h
<<_ACEOF
5686 #define _LARGE_FILES $ac_cv_sys_large_files
5695 # sizeof(char) is 1 by definition.
5696 # The cast to long int works around a bug in the HP C Compiler
5697 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5698 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5699 # This bug is HP SR number 8606223364.
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5701 $as_echo_n "checking size of void *... " >&6; }
5702 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5703 $as_echo_n "(cached) " >&6
5705 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5708 if test "$ac_cv_type_void_p" = yes; then
5709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5711 { as_fn_set_status
77
5712 as_fn_error
"cannot compute sizeof (void *)
5713 See \`config.log' for more details." "$LINENO" 5; }; }
5715 ac_cv_sizeof_void_p
=0
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5721 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5725 cat >>confdefs.h
<<_ACEOF
5726 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5730 # The cast to long int works around a bug in the HP C Compiler
5731 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5732 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5733 # This bug is HP SR number 8606223364.
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5735 $as_echo_n "checking size of short... " >&6; }
5736 if test "${ac_cv_sizeof_short+set}" = set; then :
5737 $as_echo_n "(cached) " >&6
5739 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5742 if test "$ac_cv_type_short" = yes; then
5743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5745 { as_fn_set_status
77
5746 as_fn_error
"cannot compute sizeof (short)
5747 See \`config.log' for more details." "$LINENO" 5; }; }
5749 ac_cv_sizeof_short
=0
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5755 $as_echo "$ac_cv_sizeof_short" >&6; }
5759 cat >>confdefs.h
<<_ACEOF
5760 #define SIZEOF_SHORT $ac_cv_sizeof_short
5764 # The cast to long int works around a bug in the HP C Compiler
5765 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5766 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5767 # This bug is HP SR number 8606223364.
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5769 $as_echo_n "checking size of int... " >&6; }
5770 if test "${ac_cv_sizeof_int+set}" = set; then :
5771 $as_echo_n "(cached) " >&6
5773 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5776 if test "$ac_cv_type_int" = yes; then
5777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5779 { as_fn_set_status
77
5780 as_fn_error
"cannot compute sizeof (int)
5781 See \`config.log' for more details." "$LINENO" 5; }; }
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5789 $as_echo "$ac_cv_sizeof_int" >&6; }
5793 cat >>confdefs.h
<<_ACEOF
5794 #define SIZEOF_INT $ac_cv_sizeof_int
5798 # The cast to long int works around a bug in the HP C Compiler
5799 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5800 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5801 # This bug is HP SR number 8606223364.
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5803 $as_echo_n "checking size of long... " >&6; }
5804 if test "${ac_cv_sizeof_long+set}" = set; then :
5805 $as_echo_n "(cached) " >&6
5807 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5810 if test "$ac_cv_type_long" = yes; then
5811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5813 { as_fn_set_status
77
5814 as_fn_error
"cannot compute sizeof (long)
5815 See \`config.log' for more details." "$LINENO" 5; }; }
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5823 $as_echo "$ac_cv_sizeof_long" >&6; }
5827 cat >>confdefs.h
<<_ACEOF
5828 #define SIZEOF_LONG $ac_cv_sizeof_long
5832 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5833 if test "x$ac_cv_type_long_long" = x
""yes; then :
5835 cat >>confdefs.h
<<_ACEOF
5836 #define HAVE_LONG_LONG 1
5839 # The cast to long int works around a bug in the HP C Compiler
5840 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5841 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5842 # This bug is HP SR number 8606223364.
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5844 $as_echo_n "checking size of long long... " >&6; }
5845 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5846 $as_echo_n "(cached) " >&6
5848 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5851 if test "$ac_cv_type_long_long" = yes; then
5852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5854 { as_fn_set_status
77
5855 as_fn_error
"cannot compute sizeof (long long)
5856 See \`config.log' for more details." "$LINENO" 5; }; }
5858 ac_cv_sizeof_long_long
=0
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5864 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5868 cat >>confdefs.h
<<_ACEOF
5869 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5875 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5876 case $ac_cv_c_int8_t in #(
5880 cat >>confdefs.h
<<_ACEOF
5881 #define int8_t $ac_cv_c_int8_t
5886 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5887 case $ac_cv_c_int16_t in #(
5891 cat >>confdefs.h
<<_ACEOF
5892 #define int16_t $ac_cv_c_int16_t
5897 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5898 case $ac_cv_c_int32_t in #(
5902 cat >>confdefs.h
<<_ACEOF
5903 #define int32_t $ac_cv_c_int32_t
5908 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5909 case $ac_cv_c_int64_t in #(
5913 cat >>confdefs.h
<<_ACEOF
5914 #define int64_t $ac_cv_c_int64_t
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5921 $as_echo_n "checking for long long int... " >&6; }
5922 if test "${ac_cv_type_long_long_int+set}" = set; then :
5923 $as_echo_n "(cached) " >&6
5925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5928 /* For now, do not test the preprocessor; as of 2007 there are too many
5929 implementations with broken preprocessors. Perhaps this can
5930 be revisited in 2012. In the meantime, code should not expect
5931 #if to work with literals wider than 32 bits. */
5932 /* Test literals. */
5933 long long int ll = 9223372036854775807ll;
5934 long long int nll = -9223372036854775807LL;
5935 unsigned long long int ull = 18446744073709551615ULL;
5936 /* Test constant expressions. */
5937 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5939 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5945 /* Test availability of runtime routines for shift and division. */
5946 long long int llmax = 9223372036854775807ll;
5947 unsigned long long int ullmax = 18446744073709551615ull;
5948 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5949 | (llmax / ll) | (llmax % ll)
5950 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5951 | (ullmax / ull) | (ullmax % ull));
5957 if ac_fn_c_try_link
"$LINENO"; then :
5958 if test "$cross_compiling" = yes; then :
5959 ac_cv_type_long_long_int
=yes
5961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5966 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5967 # define LLONG_MAX (HALF - 1 + HALF)
5972 long long int n = 1;
5976 long long int m = n << i;
5979 if (LLONG_MAX / 2 < m)
5987 if ac_fn_c_try_run
"$LINENO"; then :
5988 ac_cv_type_long_long_int
=yes
5990 ac_cv_type_long_long_int
=no
5992 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5993 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5997 ac_cv_type_long_long_int
=no
5999 rm -f core conftest.err conftest.
$ac_objext \
6000 conftest
$ac_exeext conftest.
$ac_ext
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6003 $as_echo "$ac_cv_type_long_long_int" >&6; }
6004 if test $ac_cv_type_long_long_int = yes; then
6006 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6012 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6013 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6015 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6018 test $ac_cv_type_long_long_int = yes \
6019 && ac_type
='long long int' \
6020 || ac_type
='long int'
6022 cat >>confdefs.h
<<_ACEOF
6023 #define intmax_t $ac_type
6030 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6031 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6033 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6036 for ac_type
in 'int' 'long int' 'long long int'; do
6037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6039 $ac_includes_default
6043 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6050 if ac_fn_c_try_compile
"$LINENO"; then :
6052 cat >>confdefs.h
<<_ACEOF
6053 #define intptr_t $ac_type
6058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6059 test -z "$ac_type" && break
6064 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6065 case $ac_cv_c_uint8_t in #(
6069 $as_echo "#define _UINT8_T 1" >>confdefs.h
6072 cat >>confdefs.h
<<_ACEOF
6073 #define uint8_t $ac_cv_c_uint8_t
6078 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6079 case $ac_cv_c_uint16_t in #(
6084 cat >>confdefs.h
<<_ACEOF
6085 #define uint16_t $ac_cv_c_uint16_t
6090 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6091 case $ac_cv_c_uint32_t in #(
6095 $as_echo "#define _UINT32_T 1" >>confdefs.h
6098 cat >>confdefs.h
<<_ACEOF
6099 #define uint32_t $ac_cv_c_uint32_t
6104 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6105 case $ac_cv_c_uint64_t in #(
6109 $as_echo "#define _UINT64_T 1" >>confdefs.h
6112 cat >>confdefs.h
<<_ACEOF
6113 #define uint64_t $ac_cv_c_uint64_t
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6120 $as_echo_n "checking for unsigned long long int... " >&6; }
6121 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6122 $as_echo_n "(cached) " >&6
6124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6127 /* For now, do not test the preprocessor; as of 2007 there are too many
6128 implementations with broken preprocessors. Perhaps this can
6129 be revisited in 2012. In the meantime, code should not expect
6130 #if to work with literals wider than 32 bits. */
6131 /* Test literals. */
6132 long long int ll = 9223372036854775807ll;
6133 long long int nll = -9223372036854775807LL;
6134 unsigned long long int ull = 18446744073709551615ULL;
6135 /* Test constant expressions. */
6136 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6138 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6144 /* Test availability of runtime routines for shift and division. */
6145 long long int llmax = 9223372036854775807ll;
6146 unsigned long long int ullmax = 18446744073709551615ull;
6147 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6148 | (llmax / ll) | (llmax % ll)
6149 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6150 | (ullmax / ull) | (ullmax % ull));
6156 if ac_fn_c_try_link
"$LINENO"; then :
6157 ac_cv_type_unsigned_long_long_int
=yes
6159 ac_cv_type_unsigned_long_long_int
=no
6161 rm -f core conftest.err conftest.
$ac_objext \
6162 conftest
$ac_exeext conftest.
$ac_ext
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6165 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6166 if test $ac_cv_type_unsigned_long_long_int = yes; then
6168 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6174 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6175 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6177 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6180 test $ac_cv_type_unsigned_long_long_int = yes \
6181 && ac_type
='unsigned long long int' \
6182 || ac_type
='unsigned long int'
6184 cat >>confdefs.h
<<_ACEOF
6185 #define uintmax_t $ac_type
6192 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6193 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6195 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6198 for ac_type
in 'unsigned int' 'unsigned long int' \
6199 'unsigned long long int'; do
6200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6202 $ac_includes_default
6206 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6213 if ac_fn_c_try_compile
"$LINENO"; then :
6215 cat >>confdefs.h
<<_ACEOF
6216 #define uintptr_t $ac_type
6221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6222 test -z "$ac_type" && break
6239 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6240 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6243 # check what underlying integer type int64_t uses
6245 ac_cpp
='$CXXCPP $CPPFLAGS'
6246 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6247 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6248 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6252 $as_echo_n "checking for int64_t underlying type... " >&6; }
6253 if test "${ac_cv_int64_t_type+set}" = set; then :
6254 $as_echo_n "(cached) " >&6
6257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6258 /* end confdefs.h. */
6260 #ifdef HAVE_STDINT_H
6263 template <typename T> struct X { };
6265 struct X<long> { typedef long t; };
6275 if ac_fn_cxx_try_compile
"$LINENO"; then :
6276 ac_cv_int64_t_type
=long
6278 ac_cv_int64_t_type
="long long"
6280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6283 $as_echo "$ac_cv_int64_t_type" >&6; }
6284 if test "$ac_cv_int64_t_type" = "long"; then
6286 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h. */
6292 #ifdef HAVE_STDINT_H
6295 template <typename T> struct X { };
6297 struct X<long long> { typedef long long t; };
6307 if ac_fn_cxx_try_compile
"$LINENO"; then :
6310 as_fn_error
"error verifying int64_t uses long long" "$LINENO" 5
6312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6315 ac_cpp
='$CPP $CPPFLAGS'
6316 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6317 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6318 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6324 # ---------------------
6325 # Warnings and checking
6326 # ---------------------
6328 # Check $CC warning features (if it's GCC).
6329 # We want to use -pedantic, but we don't want warnings about
6332 # * overlong strings
6333 # * C++11 narrowing conversions in { }
6334 # So, we only use -pedantic if we can disable those warnings.
6336 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6337 # Check whether --enable-build-format-warnings was given.
6338 if test "${enable_build_format_warnings+set}" = set; then :
6339 enableval
=$enable_build_format_warnings;
6341 enable_build_format_warnings
=yes
6344 if test $enable_build_format_warnings = no
; then :
6350 save_CFLAGS
="$CFLAGS"
6351 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6352 # Do the check with the no- prefix removed since gcc silently
6353 # accepts any -Wno-* option on purpose
6354 case $real_option in
6355 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6356 *) option
=$real_option ;;
6358 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6361 $as_echo_n "checking whether $CC supports $option... " >&6; }
6362 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6363 $as_echo_n "(cached) " >&6
6366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6377 if ac_fn_c_try_compile
"$LINENO"; then :
6378 eval "$as_acx_Woption=yes"
6380 eval "$as_acx_Woption=no"
6382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6385 eval ac_res
=\$
$as_acx_Woption
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6387 $as_echo "$ac_res" >&6; }
6388 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6389 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6392 CFLAGS
="$save_CFLAGS"
6395 save_CFLAGS
="$CFLAGS"
6396 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6397 # Do the check with the no- prefix removed since gcc silently
6398 # accepts any -Wno-* option on purpose
6399 case $real_option in
6400 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6401 *) option
=$real_option ;;
6403 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6406 $as_echo_n "checking whether $CC supports $option... " >&6; }
6407 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6408 $as_echo_n "(cached) " >&6
6411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6422 if ac_fn_c_try_compile
"$LINENO"; then :
6423 eval "$as_acx_Woption=yes"
6425 eval "$as_acx_Woption=no"
6427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6430 eval ac_res
=\$
$as_acx_Woption
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6432 $as_echo "$ac_res" >&6; }
6433 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6434 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6437 CFLAGS
="$save_CFLAGS"
6440 save_CFLAGS
="$CFLAGS"
6441 for real_option
in -Wmissing-format-attribute; do
6442 # Do the check with the no- prefix removed since gcc silently
6443 # accepts any -Wno-* option on purpose
6444 case $real_option in
6445 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6446 *) option
=$real_option ;;
6448 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6451 $as_echo_n "checking whether $CC supports $option... " >&6; }
6452 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6453 $as_echo_n "(cached) " >&6
6456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6467 if ac_fn_c_try_compile
"$LINENO"; then :
6468 eval "$as_acx_Woption=yes"
6470 eval "$as_acx_Woption=no"
6472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6475 eval ac_res
=\$
$as_acx_Woption
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6477 $as_echo "$ac_res" >&6; }
6478 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6479 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6482 CFLAGS
="$save_CFLAGS"
6484 save_CFLAGS
="$CFLAGS"
6485 for real_option
in -Woverloaded-virtual; do
6486 # Do the check with the no- prefix removed since gcc silently
6487 # accepts any -Wno-* option on purpose
6488 case $real_option in
6489 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6490 *) option
=$real_option ;;
6492 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6495 $as_echo_n "checking whether $CC supports $option... " >&6; }
6496 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6497 $as_echo_n "(cached) " >&6
6500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6501 /* end confdefs.h. */
6511 if ac_fn_c_try_compile
"$LINENO"; then :
6512 eval "$as_acx_Woption=yes"
6514 eval "$as_acx_Woption=no"
6516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6519 eval ac_res
=\$
$as_acx_Woption
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6521 $as_echo "$ac_res" >&6; }
6522 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6523 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6526 CFLAGS
="$save_CFLAGS"
6529 save_CFLAGS
="$CFLAGS"
6530 for real_option
in -Wold-style-definition -Wc++-compat; do
6531 # Do the check with the no- prefix removed since gcc silently
6532 # accepts any -Wno-* option on purpose
6533 case $real_option in
6534 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6535 *) option
=$real_option ;;
6537 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6540 $as_echo_n "checking whether $CC supports $option... " >&6; }
6541 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6542 $as_echo_n "(cached) " >&6
6545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6556 if ac_fn_c_try_compile
"$LINENO"; then :
6557 eval "$as_acx_Woption=yes"
6559 eval "$as_acx_Woption=no"
6561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6564 eval ac_res
=\$
$as_acx_Woption
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6566 $as_echo "$ac_res" >&6; }
6567 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6568 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6571 CFLAGS
="$save_CFLAGS"
6573 # Do the check with the no- prefix removed from the warning options
6574 # since gcc silently accepts any -Wno-* option on purpose
6575 if test "$GCC" = yes; then :
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6577 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6578 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6579 $as_echo_n "(cached) " >&6
6581 save_CFLAGS
="$CFLAGS"
6582 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6584 /* end confdefs.h. */
6594 if ac_fn_c_try_compile
"$LINENO"; then :
6595 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6597 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6600 CFLAGS
="$save_CFLAGS"
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6603 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6604 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6605 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6610 # Check whether --enable-werror-always was given.
6611 if test "${enable_werror_always+set}" = set; then :
6612 enableval
=$enable_werror_always;
6614 enable_werror_always
=no
6617 if test $enable_werror_always = yes; then :
6618 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6623 # The above macros do nothing if the compiler is not GCC. However, the
6624 # Makefile has more goo to add other flags, so these variables are used
6625 # to enable warnings only for GCC.
6628 if test "x$GCC" = "xyes"; then
6629 warn_cflags
='$(GCC_WARN_CFLAGS)'
6630 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6635 # Disable exceptions and RTTI if building with g++
6637 save_CFLAGS
="$CFLAGS"
6638 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6639 # Do the check with the no- prefix removed since gcc silently
6640 # accepts any -Wno-* option on purpose
6641 case $real_option in
6642 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6643 *) option
=$real_option ;;
6645 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6648 $as_echo_n "checking whether $CC supports $option... " >&6; }
6649 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6650 $as_echo_n "(cached) " >&6
6653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h. */
6664 if ac_fn_c_try_compile
"$LINENO"; then :
6665 eval "$as_acx_Woption=yes"
6667 eval "$as_acx_Woption=no"
6669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6672 eval ac_res
=\$
$as_acx_Woption
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6674 $as_echo "$ac_res" >&6; }
6675 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6676 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6679 CFLAGS
="$save_CFLAGS"
6682 # Enable expensive internal checks
6684 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6688 # Check whether --enable-checking was given.
6689 if test "${enable_checking+set}" = set; then :
6690 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6693 # Determine the default checks.
6694 if test x
$is_release = x
; then
6695 ac_checking_flags
=yes
6697 ac_checking_flags
=release
6701 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6702 for check
in release
$ac_checking_flags
6705 # these set all the flags to specific states
6706 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6707 ac_fold_checking
= ; ac_gc_checking
=1 ;
6708 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6709 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6710 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6711 ac_types_checking
=1 ;;
6712 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6713 ac_fold_checking
= ; ac_gc_checking
= ;
6714 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6715 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6716 ac_tree_checking
= ; ac_valgrind_checking
= ;
6717 ac_types_checking
= ;;
6718 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6719 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6720 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6721 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6722 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6723 ac_types_checking
=1 ;;
6724 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6725 ac_fold_checking
= ; ac_gc_checking
= ;
6726 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6727 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6728 ac_tree_checking
= ; ac_valgrind_checking
= ;
6729 ac_types_checking
= ;;
6730 # these enable particular checks
6731 assert
) ac_assert_checking
=1 ;;
6732 df
) ac_df_checking
=1 ;;
6733 fold) ac_fold_checking
=1 ;;
6734 gc
) ac_gc_checking
=1 ;;
6735 gcac
) ac_gc_always_collect
=1 ;;
6736 gimple
) ac_gimple_checking
=1 ;;
6737 misc
) ac_checking
=1 ;;
6738 rtl
) ac_rtl_checking
=1 ;;
6739 rtlflag
) ac_rtlflag_checking
=1 ;;
6740 runtime
) ac_runtime_checking
=1 ;;
6741 tree
) ac_tree_checking
=1 ;;
6742 types
) ac_types_checking
=1 ;;
6743 valgrind
) ac_valgrind_checking
=1 ;;
6744 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6750 if test x
$ac_checking != x
; then
6752 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6754 nocommon_flag
=-fno-common
6757 if test x
$ac_df_checking != x
; then
6759 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6762 if test x
$ac_assert_checking != x
; then
6764 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6767 if test x
$ac_gimple_checking != x
; then
6769 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6773 if test x
$ac_runtime_checking != x
; then
6775 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6778 if test x
$ac_tree_checking != x
; then
6780 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6782 TREEBROWSER
=tree-browser.o
6785 if test x
$ac_types_checking != x
; then
6787 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6792 if test x
$ac_rtl_checking != x
; then
6794 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6797 if test x
$ac_rtlflag_checking != x
; then
6799 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6802 if test x
$ac_gc_checking != x
; then
6804 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6807 if test x
$ac_gc_always_collect != x
; then
6809 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6812 if test x
$ac_fold_checking != x
; then
6814 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6817 valgrind_path_defines
=
6820 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6821 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6829 # It is certainly possible that there's valgrind but no valgrind.h.
6830 # GCC relies on making annotations so we must have both.
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6832 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6835 #include <valgrind/memcheck.h>
6836 #ifndef VALGRIND_DISCARD
6837 #error VALGRIND_DISCARD not defined
6840 if ac_fn_c_try_cpp
"$LINENO"; then :
6841 gcc_cv_header_valgrind_memcheck_h
=yes
6843 gcc_cv_header_valgrind_memcheck_h
=no
6845 rm -f conftest.err conftest.
$ac_ext
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6847 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6849 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852 #include <memcheck.h>
6853 #ifndef VALGRIND_DISCARD
6854 #error VALGRIND_DISCARD not defined
6857 if ac_fn_c_try_cpp
"$LINENO"; then :
6858 gcc_cv_header_memcheck_h
=yes
6860 gcc_cv_header_memcheck_h
=no
6862 rm -f conftest.err conftest.
$ac_ext
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6864 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6865 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6867 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6870 if test $gcc_cv_header_memcheck_h = yes; then
6872 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6876 if test x
$ac_valgrind_checking != x
; then
6878 # Prepare PATH_SEPARATOR.
6879 # The user is always right.
6880 if test "${PATH_SEPARATOR+set}" != set; then
6881 echo "#! /bin/sh" >conf$$.sh
6882 echo "exit 0" >>conf$$.sh
6884 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6892 # Find out how to test for executable files. Don't use a zero-byte file,
6893 # as systems may use methods other than mode bits to determine executability.
6894 cat >conf$$.
file <<_ASEOF
6898 chmod +x conf$$.
file
6899 if test -x conf$$.
file >/dev
/null
2>&1; then
6900 ac_executable_p
="test -x"
6902 ac_executable_p
="test -f"
6906 # Extract the first word of "valgrind", so it can be a program name with args.
6907 set dummy valgrind
; ac_word
=$2
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909 $as_echo_n "checking for $ac_word... " >&6; }
6910 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6911 $as_echo_n "(cached) " >&6
6913 case "$valgrind_path" in
6915 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6918 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6919 for ac_dir
in $PATH; do
6921 test -z "$ac_dir" && ac_dir
=.
6922 for ac_exec_ext
in '' $ac_executable_extensions; do
6923 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6924 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6925 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6935 valgrind_path
="$ac_cv_path_valgrind_path"
6936 if test -n "$valgrind_path"; then
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6938 $as_echo "$valgrind_path" >&6; }
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 $as_echo "no" >&6; }
6944 if test "x$valgrind_path" = "x" \
6945 ||
(test $have_valgrind_h = no \
6946 && test $gcc_cv_header_memcheck_h = no \
6947 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6948 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6950 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6951 valgrind_command
="$valgrind_path -q"
6953 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6959 # Enable code coverage collection
6960 # Check whether --enable-coverage was given.
6961 if test "${enable_coverage+set}" = set; then :
6962 enableval
=$enable_coverage; case "${enableval}" in
6964 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6967 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6970 # a.k.a. --disable-coverage
6974 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6983 # Check whether --enable-gather-detailed-mem-stats was given.
6984 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6985 enableval
=$enable_gather_detailed_mem_stats;
6987 enable_gather_detailed_mem_stats
=no
6990 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6992 cat >>confdefs.h
<<_ACEOF
6993 #define GATHER_STATISTICS $gather_stats
6997 # Check whether --enable-valgrind-annotations was given.
6998 if test "${enable_valgrind_annotations+set}" = set; then :
6999 enableval
=$enable_valgrind_annotations;
7001 enable_valgrind_annotations
=no
7004 if test x
$enable_valgrind_annotations != xno \
7005 ||
test x
$ac_valgrind_checking != x
; then
7006 if (test $have_valgrind_h = no \
7007 && test $gcc_cv_header_memcheck_h = no \
7008 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7009 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7012 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7016 # -------------------------------
7017 # Miscenalleous configure options
7018 # -------------------------------
7022 # Check whether --with-stabs was given.
7023 if test "${with_stabs+set}" = set; then :
7024 withval
=$with_stabs; stabs
="$with_stabs"
7030 # Determine whether or not multilibs are enabled.
7031 # Check whether --enable-multilib was given.
7032 if test "${enable_multilib+set}" = set; then :
7033 enableval
=$enable_multilib;
7040 # Determine whether or not multiarch is enabled.
7041 # Check whether --enable-multiarch was given.
7042 if test "${enable_multiarch+set}" = set; then :
7043 enableval
=$enable_multiarch; case "${enableval}" in
7044 yes|no|auto
) enable_multiarch
=$enableval;;
7045 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7048 enable_multiarch
=auto
7051 if test x
${enable_multiarch} = xauto
; then
7052 if test x
${with_native_system_header_dir} != x
; then
7053 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7056 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7057 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7062 $as_echo_n "checking for multiarch configuration... " >&6; }
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7065 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7067 # needed for setting the multiarch name for soft-float/hard-float ABIs
7071 # Enable __cxa_atexit for C++.
7072 # Check whether --enable-__cxa_atexit was given.
7073 if test "${enable___cxa_atexit+set}" = set; then :
7074 enableval
=$enable___cxa_atexit;
7078 # Enable C extension for decimal float if target supports it.
7080 # Check whether --enable-decimal-float was given.
7081 if test "${enable_decimal_float+set}" = set; then :
7082 enableval
=$enable_decimal_float;
7083 case $enable_decimal_float in
7084 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7085 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7086 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7092 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7094 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7095 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7096 enable_decimal_float
=yes
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7100 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7101 enable_decimal_float
=no
7108 # x86's use BID format instead of DPD
7109 case x
$enable_decimal_float in
7112 i?
86*-*-* | x86_64
*-*-*)
7113 enable_decimal_float
=bid
7116 enable_decimal_float
=dpd
7119 default_decimal_float
=$enable_decimal_float
7122 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7123 # dependency on libdecnumber.
7124 default_decimal_float
=dpd
7131 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7133 cat >>confdefs.h
<<_ACEOF
7134 #define ENABLE_DECIMAL_FLOAT $dfp
7138 # Use default_decimal_float for dependency.
7139 enable_decimal_float
=$default_decimal_float
7141 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7143 cat >>confdefs.h
<<_ACEOF
7144 #define ENABLE_DECIMAL_BID_FORMAT $bid
7148 # Enable C extension for fixed-point arithmetic.
7149 # Check whether --enable-fixed-point was given.
7150 if test "${enable_fixed_point+set}" = set; then :
7151 enableval
=$enable_fixed_point;
7156 enable_fixed_point
=yes
7160 enable_fixed_point
=yes
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7164 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7165 enable_fixed_point
=no
7173 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7175 cat >>confdefs.h
<<_ACEOF
7176 #define ENABLE_FIXED_POINT $fixedpoint
7181 # Pass with no value to take the default
7182 # Pass with a value to specify a thread package
7183 # Check whether --enable-threads was given.
7184 if test "${enable_threads+set}" = set; then :
7185 enableval
=$enable_threads;
7191 # Check whether --enable-tls was given.
7192 if test "${enable_tls+set}" = set; then :
7193 enableval
=$enable_tls;
7196 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7197 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7205 # Check whether --enable-objc-gc was given.
7206 if test "${enable_objc_gc+set}" = set; then :
7207 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7218 # Check whether --with-dwarf2 was given.
7219 if test "${with_dwarf2+set}" = set; then :
7220 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7226 # Check whether --enable-shared was given.
7227 if test "${enable_shared+set}" = set; then :
7228 enableval
=$enable_shared;
7229 case $enable_shared in
7233 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7234 for pkg
in $enableval; do
7235 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7250 # Check whether --with-native-system-header-dir was given.
7251 if test "${with_native_system_header_dir+set}" = set; then :
7252 withval
=$with_native_system_header_dir;
7253 case ${with_native_system_header_dir} in
7254 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7255 /* |
[A-Za-z
]:[\\/]*) ;;
7256 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7258 configured_native_system_header_dir
="${withval}"
7261 configured_native_system_header_dir
=
7266 # Check whether --with-build-sysroot was given.
7267 if test "${with_build_sysroot+set}" = set; then :
7268 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7269 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7272 SYSROOT_CFLAGS_FOR_TARGET
=
7277 if test "x$prefix" = xNONE
; then
7278 test_prefix
=/usr
/local
7282 if test "x$exec_prefix" = xNONE
; then
7283 test_exec_prefix
=$test_prefix
7285 test_exec_prefix
=$exec_prefix
7289 # Check whether --with-sysroot was given.
7290 if test "${with_sysroot+set}" = set; then :
7291 withval
=$with_sysroot;
7292 case ${with_sysroot} in
7293 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7294 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7297 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7298 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7300 case ${TARGET_SYSTEM_ROOT} in
7301 "${test_prefix}"|
"${test_prefix}/"*|\
7302 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7303 '${prefix}'|
'${prefix}/'*|\
7304 '${exec_prefix}'|
'${exec_prefix}/'*)
7305 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7306 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7313 TARGET_SYSTEM_ROOT_DEFINE
=
7314 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7323 # Check whether --with-specs was given.
7324 if test "${with_specs+set}" = set; then :
7325 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7335 # Check whether --with-pkgversion was given.
7336 if test "${with_pkgversion+set}" = set; then :
7337 withval
=$with_pkgversion; case "$withval" in
7338 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7340 *) PKGVERSION
="($withval) " ;;
7351 # Check whether --with-bugurl was given.
7352 if test "${with_bugurl+set}" = set; then :
7353 withval
=$with_bugurl; case "$withval" in
7354 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7357 *) BUGURL
="$withval"
7361 BUGURL
="http://gcc.gnu.org/bugs.html"
7371 REPORT_BUGS_TO
="<$BUGURL>"
7372 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7379 # Sanity check enable_languages in case someone does not run the toplevel
7380 # configure # script.
7381 # Check whether --enable-languages was given.
7382 if test "${enable_languages+set}" = set; then :
7383 enableval
=$enable_languages; case ,${enable_languages}, in
7385 # go safe -- we cannot be much sure without the toplevel
7387 # analysis of which target libs are present and usable
7391 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7396 enable_languages
=c
,${enable_languages}
7405 # Check whether --with-multilib-list was given.
7406 if test "${with_multilib_list+set}" = set; then :
7407 withval
=$with_multilib_list; :
7409 with_multilib_list
=default
7413 # -------------------------
7414 # Checks for other programs
7415 # -------------------------
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7418 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7420 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7421 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7422 $as_echo_n "(cached) " >&6
7424 cat >conftest.
make <<\_ACEOF
7427 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7429 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7430 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7432 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7434 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7438 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7440 $as_echo "yes" >&6; }
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 $as_echo "no" >&6; }
7445 SET_MAKE
="MAKE=${MAKE-make}"
7449 # Find some useful tools
7450 for ac_prog
in gawk mawk nawk
awk
7452 # Extract the first word of "$ac_prog", so it can be a program name with args.
7453 set dummy
$ac_prog; ac_word
=$2
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7455 $as_echo_n "checking for $ac_word... " >&6; }
7456 if test "${ac_cv_prog_AWK+set}" = set; then :
7457 $as_echo_n "(cached) " >&6
7459 if test -n "$AWK"; then
7460 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7462 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7466 test -z "$as_dir" && as_dir
=.
7467 for ac_exec_ext
in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7469 ac_cv_prog_AWK
="$ac_prog"
7470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 if test -n "$AWK"; then
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7482 $as_echo "$AWK" >&6; }
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7485 $as_echo "no" >&6; }
7489 test -n "$AWK" && break
7492 # We need awk to create options.c and options.h.
7493 # Bail out if it's missing.
7495 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7499 $as_echo_n "checking whether ln -s works... " >&6; }
7500 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7501 $as_echo_n "(cached) " >&6
7503 rm -f conftestdata_t
7504 echo >conftestdata_f
7505 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7507 gcc_cv_prog_LN_S
="ln -s"
7509 if ln conftestdata_f conftestdata_t
2>/dev
/null
7513 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7515 gcc_cv_prog_LN_S
="cp -p"
7521 rm -f conftestdata_f conftestdata_t
7524 LN_S
="$gcc_cv_prog_LN_S"
7525 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7527 $as_echo "yes" >&6; }
7529 if test "$gcc_cv_prog_LN_S" = "ln"; then
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7531 $as_echo "no, using ln" >&6; }
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7534 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7539 $as_echo_n "checking whether ln works... " >&6; }
7540 if test "${acx_cv_prog_LN+set}" = set; then :
7541 $as_echo_n "(cached) " >&6
7543 rm -f conftestdata_t
7544 echo >conftestdata_f
7545 if ln conftestdata_f conftestdata_t
2>/dev
/null
7551 rm -f conftestdata_f conftestdata_t
7554 if test $acx_cv_prog_LN = no
; then
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7557 $as_echo "no, using $LN" >&6; }
7559 LN
="$acx_cv_prog_LN"
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7561 $as_echo "yes" >&6; }
7564 if test -n "$ac_tool_prefix"; then
7565 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7566 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568 $as_echo_n "checking for $ac_word... " >&6; }
7569 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7570 $as_echo_n "(cached) " >&6
7572 if test -n "$RANLIB"; then
7573 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7579 test -z "$as_dir" && as_dir
=.
7580 for ac_exec_ext
in '' $ac_executable_extensions; do
7581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7582 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 RANLIB
=$ac_cv_prog_RANLIB
7593 if test -n "$RANLIB"; then
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7595 $as_echo "$RANLIB" >&6; }
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 $as_echo "no" >&6; }
7603 if test -z "$ac_cv_prog_RANLIB"; then
7604 ac_ct_RANLIB
=$RANLIB
7605 # Extract the first word of "ranlib", so it can be a program name with args.
7606 set dummy ranlib
; ac_word
=$2
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7608 $as_echo_n "checking for $ac_word... " >&6; }
7609 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7610 $as_echo_n "(cached) " >&6
7612 if test -n "$ac_ct_RANLIB"; then
7613 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7615 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7619 test -z "$as_dir" && as_dir
=.
7620 for ac_exec_ext
in '' $ac_executable_extensions; do
7621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7622 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7633 if test -n "$ac_ct_RANLIB"; then
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7635 $as_echo "$ac_ct_RANLIB" >&6; }
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7638 $as_echo "no" >&6; }
7641 if test "x$ac_ct_RANLIB" = x
; then
7644 case $cross_compiling:$ac_tool_warned in
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7648 ac_tool_warned
=yes ;;
7650 RANLIB
=$ac_ct_RANLIB
7653 RANLIB
="$ac_cv_prog_RANLIB"
7659 # Find a good install program. We prefer a C program (faster),
7660 # so one script is as good as another. But avoid the broken or
7661 # incompatible versions:
7662 # SysV /etc/install, /usr/sbin/install
7663 # SunOS /usr/etc/install
7664 # IRIX /sbin/install
7666 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7667 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7668 # ./install, which can be erroneously created by make from ./install.sh.
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7670 $as_echo_n "checking for a BSD compatible install... " >&6; }
7671 if test -z "$INSTALL"; then
7672 if test "${ac_cv_path_install+set}" = set; then :
7673 $as_echo_n "(cached) " >&6
7675 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7676 for ac_dir
in $PATH; do
7677 # Account for people who put trailing slashes in PATH elements.
7679 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7681 # OSF1 and SCO ODT 3.0 have their own names for install.
7682 for ac_prog
in ginstall scoinst
install; do
7683 if test -f $ac_dir/$ac_prog; then
7684 if test $ac_prog = install &&
7685 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7686 # AIX install. It has an incompatible calling convention.
7687 # OSF/1 installbsd also uses dspmsg, but is usable.
7690 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7701 if test "${ac_cv_path_install+set}" = set; then
7702 INSTALL
="$ac_cv_path_install"
7704 # As a last resort, use the slow shell script. We don't cache a
7705 # path for INSTALL within a source directory, because that will
7706 # break other packages using the cache if that directory is
7707 # removed, or if the path is relative.
7708 INSTALL
="$ac_install_sh"
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7712 $as_echo "$INSTALL" >&6; }
7714 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7715 # It thinks the first close brace ends the variable substitution.
7716 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7718 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7721 # See if cmp has --ignore-initial.
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7723 $as_echo_n "checking for cmp's capabilities... " >&6; }
7724 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7725 $as_echo_n "(cached) " >&6
7729 gcc_cv_prog_cmp_skip
=slowcompare
7730 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7731 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7734 gcc_cv_prog_cmp_skip
=gnucompare
7737 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7738 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7739 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7742 gcc_cv_prog_cmp_skip
=fastcompare
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7750 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7751 make_compare_target
=$gcc_cv_prog_cmp_skip
7755 # See if we have the mktemp command.
7756 # Extract the first word of "mktemp", so it can be a program name with args.
7757 set dummy mktemp
; ac_word
=$2
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7759 $as_echo_n "checking for $ac_word... " >&6; }
7760 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7761 $as_echo_n "(cached) " >&6
7763 if test -n "$have_mktemp_command"; then
7764 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7766 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7770 test -z "$as_dir" && as_dir
=.
7771 for ac_exec_ext
in '' $ac_executable_extensions; do
7772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7773 ac_cv_prog_have_mktemp_command
="yes"
7774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7784 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7785 if test -n "$have_mktemp_command"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7787 $as_echo "$have_mktemp_command" >&6; }
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7795 # See if makeinfo has been installed and is modern enough
7796 # that we can use it.
7798 # Extract the first word of "makeinfo", so it can be a program name with args.
7799 set dummy makeinfo
; ac_word
=$2
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7801 $as_echo_n "checking for $ac_word... " >&6; }
7802 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7803 $as_echo_n "(cached) " >&6
7805 if test -n "$MAKEINFO"; then
7806 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7812 test -z "$as_dir" && as_dir
=.
7813 for ac_exec_ext
in '' $ac_executable_extensions; do
7814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7815 ac_cv_prog_MAKEINFO
="makeinfo"
7816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7825 MAKEINFO
=$ac_cv_prog_MAKEINFO
7826 if test -n "$MAKEINFO"; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7828 $as_echo "$MAKEINFO" >&6; }
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831 $as_echo "no" >&6; }
7835 if test -n "$MAKEINFO"; then
7836 # Found it, now check the version.
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7838 $as_echo_n "checking for modern makeinfo... " >&6; }
7839 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7840 $as_echo_n "(cached) " >&6
7842 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7843 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7845 case $ac_prog_version in
7846 '') gcc_cv_prog_makeinfo_modern
=no
;;
7847 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7848 *) gcc_cv_prog_makeinfo_modern
=no
;;
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7853 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7855 gcc_cv_prog_makeinfo_modern
=no
7857 if test $gcc_cv_prog_makeinfo_modern = no
; then
7858 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7861 if test $gcc_cv_prog_makeinfo_modern = no
; then
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7863 *** Makeinfo is missing or too old.
7864 *** Info documentation will not be built." >&5
7865 $as_echo "$as_me: WARNING:
7866 *** Makeinfo is missing or too old.
7867 *** Info documentation will not be built." >&2;}
7874 # Is pod2man recent enough to regenerate manpages?
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7876 $as_echo_n "checking for recent Pod::Man... " >&6; }
7877 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7879 $as_echo "yes" >&6; }
7880 GENERATED_MANPAGES
=generated-manpages
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7883 $as_echo "no" >&6; }
7888 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7893 # Extract the first word of "$ac_prog", so it can be a program name with args.
7894 set dummy
$ac_prog; ac_word
=$2
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if test "${ac_cv_prog_FLEX+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7900 if test -n "$FLEX"; then
7901 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7907 test -z "$as_dir" && as_dir
=.
7908 for ac_exec_ext
in '' $ac_executable_extensions; do
7909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7910 ac_cv_prog_FLEX
="$ac_prog"
7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 FLEX
=$ac_cv_prog_FLEX
7921 if test -n "$FLEX"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7923 $as_echo "$FLEX" >&6; }
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
7930 test -n "$FLEX" && break
7932 test -n "$FLEX" || FLEX
="$MISSING flex"
7936 for ac_prog
in bison
7938 # Extract the first word of "$ac_prog", so it can be a program name with args.
7939 set dummy
$ac_prog; ac_word
=$2
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941 $as_echo_n "checking for $ac_word... " >&6; }
7942 if test "${ac_cv_prog_BISON+set}" = set; then :
7943 $as_echo_n "(cached) " >&6
7945 if test -n "$BISON"; then
7946 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7952 test -z "$as_dir" && as_dir
=.
7953 for ac_exec_ext
in '' $ac_executable_extensions; do
7954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7955 ac_cv_prog_BISON
="$ac_prog"
7956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965 BISON
=$ac_cv_prog_BISON
7966 if test -n "$BISON"; then
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7968 $as_echo "$BISON" >&6; }
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7975 test -n "$BISON" && break
7977 test -n "$BISON" || BISON
="$MISSING bison"
7980 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7981 # check for build == host before using them.
7984 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7985 && test -d ..
/binutils
; then
7986 NM
='${objdir}/../binutils/nm-new'
7988 # Extract the first word of "nm", so it can be a program name with args.
7989 set dummy nm
; ac_word
=$2
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991 $as_echo_n "checking for $ac_word... " >&6; }
7992 if test "${ac_cv_prog_NM+set}" = set; then :
7993 $as_echo_n "(cached) " >&6
7995 if test -n "$NM"; then
7996 ac_cv_prog_NM
="$NM" # Let the user override the test.
7998 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8002 test -z "$as_dir" && as_dir
=.
8003 for ac_exec_ext
in '' $ac_executable_extensions; do
8004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8017 if test -n "$NM"; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8019 $as_echo "$NM" >&6; }
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 $as_echo "no" >&6; }
8029 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8030 && test -d ..
/binutils
; then
8031 AR
='${objdir}/../binutils/ar'
8033 # Extract the first word of "ar", so it can be a program name with args.
8034 set dummy
ar; ac_word
=$2
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036 $as_echo_n "checking for $ac_word... " >&6; }
8037 if test "${ac_cv_prog_AR+set}" = set; then :
8038 $as_echo_n "(cached) " >&6
8040 if test -n "$AR"; then
8041 ac_cv_prog_AR
="$AR" # Let the user override the test.
8043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8047 test -z "$as_dir" && as_dir
=.
8048 for ac_exec_ext
in '' $ac_executable_extensions; do
8049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8058 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8062 if test -n "$AR"; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8064 $as_echo "$AR" >&6; }
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067 $as_echo "no" >&6; }
8073 # The jit documentation looks better if built with sphinx, but can be
8074 # built with texinfo if sphinx is not available.
8075 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8076 # Extract the first word of "sphinx-build", so it can be a program name with args.
8077 set dummy sphinx-build
; ac_word
=$2
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8079 $as_echo_n "checking for $ac_word... " >&6; }
8080 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8081 $as_echo_n "(cached) " >&6
8083 if test -n "$doc_build_sys"; then
8084 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8086 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8090 test -z "$as_dir" && as_dir
=.
8091 for ac_exec_ext
in '' $ac_executable_extensions; do
8092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8093 ac_cv_prog_doc_build_sys
="sphinx"
8094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8101 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8104 doc_build_sys
=$ac_cv_prog_doc_build_sys
8105 if test -n "$doc_build_sys"; then
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8107 $as_echo "$doc_build_sys" >&6; }
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110 $as_echo "no" >&6; }
8115 # --------------------
8116 # Checks for C headers
8117 # --------------------
8119 # Need to reject headers which give warnings, so that the -Werror bootstrap
8120 # works later. *sigh* This needs to come before all header checks.
8122 ac_c_preproc_warn_flag
=yes
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8125 $as_echo_n "checking for ANSI C header files... " >&6; }
8126 if test "${ac_cv_header_stdc+set}" = set; then :
8127 $as_echo_n "(cached) " >&6
8129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8130 /* end confdefs.h. */
8144 if ac_fn_c_try_compile
"$LINENO"; then :
8145 ac_cv_header_stdc
=yes
8147 ac_cv_header_stdc
=no
8149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8151 if test $ac_cv_header_stdc = yes; then
8152 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8154 /* end confdefs.h. */
8158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8159 $EGREP "memchr" >/dev
/null
2>&1; then :
8162 ac_cv_header_stdc
=no
8168 if test $ac_cv_header_stdc = yes; then
8169 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8171 /* end confdefs.h. */
8175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8176 $EGREP "free" >/dev
/null
2>&1; then :
8179 ac_cv_header_stdc
=no
8185 if test $ac_cv_header_stdc = yes; then
8186 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8187 if test "$cross_compiling" = yes; then :
8190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8194 #if ((' ' & 0x0FF) == 0x020)
8195 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8196 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8198 # define ISLOWER(c) \
8199 (('a' <= (c) && (c) <= 'i') \
8200 || ('j' <= (c) && (c) <= 'r') \
8201 || ('s' <= (c) && (c) <= 'z'))
8202 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8205 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8210 for (i = 0; i < 256; i++)
8211 if (XOR (islower (i), ISLOWER (i))
8212 || toupper (i) != TOUPPER (i))
8217 if ac_fn_c_try_run
"$LINENO"; then :
8220 ac_cv_header_stdc
=no
8222 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8223 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8229 $as_echo "$ac_cv_header_stdc" >&6; }
8230 if test $ac_cv_header_stdc = yes; then
8232 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8237 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8238 if test "${ac_cv_header_time+set}" = set; then :
8239 $as_echo_n "(cached) " >&6
8241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8242 /* end confdefs.h. */
8243 #include <sys/types.h>
8244 #include <sys/time.h>
8250 if ((struct tm *) 0)
8256 if ac_fn_c_try_compile
"$LINENO"; then :
8257 ac_cv_header_time
=yes
8259 ac_cv_header_time
=no
8261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8264 $as_echo "$ac_cv_header_time" >&6; }
8265 if test $ac_cv_header_time = yes; then
8267 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8272 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8273 if test "${gcc_cv_header_string+set}" = set; then :
8274 $as_echo_n "(cached) " >&6
8276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8277 /* end confdefs.h. */
8279 #include <strings.h>
8288 if ac_fn_c_try_compile
"$LINENO"; then :
8289 gcc_cv_header_string
=yes
8291 gcc_cv_header_string
=no
8293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8296 $as_echo "$gcc_cv_header_string" >&6; }
8297 if test $gcc_cv_header_string = yes; then
8299 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8304 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8305 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8306 $as_echo_n "(cached) " >&6
8308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8309 /* end confdefs.h. */
8310 #include <sys/types.h>
8311 #include <sys/wait.h>
8313 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8316 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8324 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8329 if ac_fn_c_try_compile
"$LINENO"; then :
8330 ac_cv_header_sys_wait_h
=yes
8332 ac_cv_header_sys_wait_h
=no
8334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8337 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8338 if test $ac_cv_header_sys_wait_h = yes; then
8340 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8345 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8346 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8347 $as_echo_n "(cached) " >&6
8349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8350 /* end confdefs.h. */
8351 #include <sys/types.h>
8352 #include <termios.h>
8358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8359 $EGREP "yes" >/dev
/null
2>&1; then :
8360 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8362 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8368 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8370 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8372 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8373 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8374 $as_echo_n "(cached) " >&6
8376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h. */
8378 #include <sys/types.h>
8379 #include <sys/ioctl.h>
8385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8386 $EGREP "yes" >/dev
/null
2>&1; then :
8387 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8389 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8395 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8397 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8399 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8404 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8405 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8406 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8407 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8409 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8410 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8411 eval as_val
=\$
$as_ac_Header
8412 if test "x$as_val" = x
""yes; then :
8413 cat >>confdefs.h
<<_ACEOF
8414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8421 # Check for thread headers.
8422 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8423 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8429 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8430 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8437 # These tests can't be done till we know if we have limits.h.
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8439 $as_echo_n "checking for CHAR_BIT... " >&6; }
8440 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8441 $as_echo_n "(cached) " >&6
8443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8444 /* end confdefs.h. */
8445 #ifdef HAVE_LIMITS_H
8452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8453 $EGREP "found" >/dev
/null
2>&1; then :
8454 gcc_cv_decl_char_bit
=yes
8456 gcc_cv_decl_char_bit
=no
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8463 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8464 if test $gcc_cv_decl_char_bit = no
; then
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8466 $as_echo_n "checking number of bits in a byte... " >&6; }
8467 if test "${gcc_cv_c_nbby+set}" = set; then :
8468 $as_echo_n "(cached) " >&6
8472 while test $i -lt 65; do
8473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8480 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8481 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8487 if ac_fn_c_try_compile
"$LINENO"; then :
8488 gcc_cv_c_nbby
=$i; break
8490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8493 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8497 $as_echo "$gcc_cv_c_nbby" >&6; }
8498 if test $gcc_cv_c_nbby = failed
; then
8499 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8502 cat >>confdefs.h
<<_ACEOF
8503 #define CHAR_BIT $gcc_cv_c_nbby
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8509 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8510 if test "${ac_cv_c_bigendian+set}" = set; then :
8511 $as_echo_n "(cached) " >&6
8513 ac_cv_c_bigendian
=unknown
8514 # See if we're dealing with a universal compiler.
8515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8516 /* end confdefs.h. */
8517 #ifndef __APPLE_CC__
8518 not a universal capable compiler
8523 if ac_fn_c_try_compile
"$LINENO"; then :
8525 # Check for potential -arch flags. It is not universal unless
8526 # there are at least two -arch flags with different values.
8529 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8530 if test -n "$ac_prev"; then
8532 i?
86 | x86_64 | ppc | ppc64
)
8533 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8536 ac_cv_c_bigendian
=universal
8542 elif test "x$ac_word" = "x-arch"; then
8547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8548 if test $ac_cv_c_bigendian = unknown
; then
8549 # See if sys/param.h defines the BYTE_ORDER macro.
8550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h. */
8552 #include <sys/types.h>
8553 #include <sys/param.h>
8558 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8559 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8568 if ac_fn_c_try_compile
"$LINENO"; then :
8569 # It does; now see whether it defined to BIG_ENDIAN or not.
8570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8572 #include <sys/types.h>
8573 #include <sys/param.h>
8578 #if BYTE_ORDER != BIG_ENDIAN
8586 if ac_fn_c_try_compile
"$LINENO"; then :
8587 ac_cv_c_bigendian
=yes
8589 ac_cv_c_bigendian
=no
8591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8595 if test $ac_cv_c_bigendian = unknown
; then
8596 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8604 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8612 if ac_fn_c_try_compile
"$LINENO"; then :
8613 # It does; now see whether it defined to _BIG_ENDIAN or not.
8614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8629 if ac_fn_c_try_compile
"$LINENO"; then :
8630 ac_cv_c_bigendian
=yes
8632 ac_cv_c_bigendian
=no
8634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8638 if test $ac_cv_c_bigendian = unknown
; then
8639 # Compile a test program.
8640 if test "$cross_compiling" = yes; then :
8641 # Try to guess by grepping values from an object file.
8642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h. */
8644 short int ascii_mm[] =
8645 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8646 short int ascii_ii[] =
8647 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8648 int use_ascii (int i) {
8649 return ascii_mm[i] + ascii_ii[i];
8651 short int ebcdic_ii[] =
8652 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8653 short int ebcdic_mm[] =
8654 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8655 int use_ebcdic (int i) {
8656 return ebcdic_mm[i] + ebcdic_ii[i];
8663 return use_ascii (foo) == use_ebcdic (foo);
8668 if ac_fn_c_try_compile
"$LINENO"; then :
8669 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8670 ac_cv_c_bigendian
=yes
8672 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8673 if test "$ac_cv_c_bigendian" = unknown
; then
8674 ac_cv_c_bigendian
=no
8676 # finding both strings is unlikely to happen, but who knows?
8677 ac_cv_c_bigendian
=unknown
8681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h. */
8685 $ac_includes_default
8690 /* Are we little or big endian? From Harbison&Steele. */
8694 char c[sizeof (long int)];
8697 return u.c[sizeof (long int) - 1] == 1;
8703 if ac_fn_c_try_run
"$LINENO"; then :
8704 ac_cv_c_bigendian
=no
8706 ac_cv_c_bigendian
=yes
8708 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8709 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8715 $as_echo "$ac_cv_c_bigendian" >&6; }
8716 case $ac_cv_c_bigendian in #(
8718 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8724 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8728 as_fn_error
"unknown endianness
8729 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8733 # ----------------------
8734 # Checks for C++ headers
8735 # ----------------------
8738 ac_cpp
='$CXXCPP $CPPFLAGS'
8739 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8740 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8741 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8743 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8744 if test -z "$CXXCPP"; then
8745 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8746 $as_echo_n "(cached) " >&6
8748 # Double quotes because CXXCPP needs to be expanded
8749 for CXXCPP
in "$CXX -E" "/lib/cpp"
8752 for ac_cxx_preproc_warn_flag
in '' yes
8754 # Use a header file that comes with gcc, so configuring glibc
8755 # with a fresh cross-compiler works.
8756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8757 # <limits.h> exists even on freestanding compilers.
8758 # On the NeXT, cc -E runs the code through the compiler's parser,
8759 # not just through cpp. "Syntax error" is here to catch this case.
8760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8761 /* end confdefs.h. */
8763 # include <limits.h>
8765 # include <assert.h>
8769 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8772 # Broken: fails on valid input.
8775 rm -f conftest.err conftest.
$ac_ext
8777 # OK, works on sane cases. Now check whether nonexistent headers
8778 # can be detected and how.
8779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h. */
8781 #include <ac_nonexistent.h>
8783 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8784 # Broken: success on invalid input.
8787 # Passes both tests.
8791 rm -f conftest.err conftest.
$ac_ext
8794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8795 rm -f conftest.err conftest.
$ac_ext
8796 if $ac_preproc_ok; then :
8801 ac_cv_prog_CXXCPP
=$CXXCPP
8804 CXXCPP
=$ac_cv_prog_CXXCPP
8806 ac_cv_prog_CXXCPP
=$CXXCPP
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8809 $as_echo "$CXXCPP" >&6; }
8811 for ac_cxx_preproc_warn_flag
in '' yes
8813 # Use a header file that comes with gcc, so configuring glibc
8814 # with a fresh cross-compiler works.
8815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8816 # <limits.h> exists even on freestanding compilers.
8817 # On the NeXT, cc -E runs the code through the compiler's parser,
8818 # not just through cpp. "Syntax error" is here to catch this case.
8819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8820 /* end confdefs.h. */
8822 # include <limits.h>
8824 # include <assert.h>
8828 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8831 # Broken: fails on valid input.
8834 rm -f conftest.err conftest.
$ac_ext
8836 # OK, works on sane cases. Now check whether nonexistent headers
8837 # can be detected and how.
8838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8839 /* end confdefs.h. */
8840 #include <ac_nonexistent.h>
8842 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8843 # Broken: success on invalid input.
8846 # Passes both tests.
8850 rm -f conftest.err conftest.
$ac_ext
8853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8854 rm -f conftest.err conftest.
$ac_ext
8855 if $ac_preproc_ok; then :
8858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8861 See \`config.log' for more details." >&5
8862 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8863 See \`config.log' for more details." >&2;}; }
8867 ac_cpp
='$CPP $CPPFLAGS'
8868 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8869 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8870 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8874 ac_cpp
='$CXXCPP $CPPFLAGS'
8875 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8876 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8877 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8881 for ac_header
in unordered_map
8883 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8884 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8885 cat >>confdefs.h
<<_ACEOF
8886 #define HAVE_UNORDERED_MAP 1
8892 for ac_header
in tr1/unordered_map
8894 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8895 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8896 cat >>confdefs.h
<<_ACEOF
8897 #define HAVE_TR1_UNORDERED_MAP 1
8903 for ac_header
in ext
/hash_map
8905 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8906 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8907 cat >>confdefs.h
<<_ACEOF
8908 #define HAVE_EXT_HASH_MAP 1
8916 ac_cpp
='$CPP $CPPFLAGS'
8917 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8918 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8919 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8923 # Dependency checking.
8927 ac_cpp
='$CXXCPP $CPPFLAGS'
8928 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8929 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8930 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8932 rm -rf .tst
2>/dev
/null
8933 mkdir .tst
2>/dev
/null
8934 if test -d .tst
; then
8939 rmdir .tst
2>/dev
/null
8941 DEPDIR
="${am__leading_dot}deps"
8943 ac_config_commands
="$ac_config_commands depdir"
8946 ac_config_commands
="$ac_config_commands gccdepdir"
8949 depcc
="$CXX" am_compiler_list
=
8951 am_depcomp
=$ac_aux_dir/depcomp
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8953 $as_echo_n "checking dependency style of $depcc... " >&6; }
8954 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8955 $as_echo_n "(cached) " >&6
8957 if test -f "$am_depcomp"; then
8958 # We make a subdir and do the tests there. Otherwise we can end up
8959 # making bogus files that we don't know about and never remove. For
8960 # instance it was reported that on HP-UX the gcc test will end up
8961 # making a dummy file named `D' -- because `-MD' means `put the output
8964 # Copy depcomp to subdir because otherwise we won't find it if we're
8965 # using a relative directory.
8966 cp "$am_depcomp" conftest.dir
8968 # We will build objects and dependencies in a subdirectory because
8969 # it helps to detect inapplicable dependency modes. For instance
8970 # both Tru64's cc and ICC support -MD to output dependencies as a
8971 # side effect of compilation, but ICC will put the dependencies in
8972 # the current directory while Tru64 will put them in the object
8976 am_cv_CXX_dependencies_compiler_type
=none
8977 if test "$am_compiler_list" = ""; then
8978 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8980 for depmode
in $am_compiler_list; do
8981 if test $depmode = none
; then break; fi
8983 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8984 # Setup a source with many dependencies, because some compilers
8985 # like to wrap large dependency lists on column 80 (with \), and
8986 # we should not choose a depcomp mode which is confused by this.
8988 # We need to recreate these files for each test, as the compiler may
8989 # overwrite some of them when testing with obscure command lines.
8990 # This happens at least with the AIX C compiler.
8992 for i
in 1 2 3 4 5 6; do
8993 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
8994 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8995 # Solaris 8's {/usr,}/bin/sh.
8996 touch sub
/conftst
$i.h
8998 echo "include sub/conftest.Po" > confmf
9000 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9001 # mode. It turns out that the SunPro C++ compiler does not properly
9002 # handle `-M -o', and we need to detect this.
9003 depcmd
="depmode=$depmode \
9004 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9005 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9006 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9007 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9008 if env
$depcmd > conftest.err
2>&1 &&
9009 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9010 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9011 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9012 # icc doesn't choke on unknown options, it will just issue warnings
9013 # or remarks (even with -Werror). So we grep stderr for any message
9014 # that says an option was ignored or not supported.
9015 # When given -MP, icc 7.0 and 7.1 complain thusly:
9016 # icc: Command line warning: ignoring option '-M'; no argument required
9017 # The diagnosis changed in icc 8.0:
9018 # icc: Command line remark: option '-MP' not supported
9019 if (grep 'ignoring option' conftest.err ||
9020 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9021 am_cv_CXX_dependencies_compiler_type
=$depmode
9022 $as_echo "$as_me:$LINENO: success" >&5
9026 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9027 sed -e 's/^/| /' < conftest.err
>&5
9033 am_cv_CXX_dependencies_compiler_type
=none
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9038 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9039 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9040 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9041 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9046 ac_cpp
='$CPP $CPPFLAGS'
9047 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9048 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9049 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9057 # These libraries may be used by collect2.
9058 # We may need a special search path to get them linked.
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9060 $as_echo_n "checking for collect2 libraries... " >&6; }
9061 if test "${gcc_cv_collect2_libs+set}" = set; then :
9062 $as_echo_n "(cached) " >&6
9065 for libs
in '' -lld -lmld \
9066 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9067 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9071 /* end confdefs.h. */
9073 /* Override any GCC internal prototype to avoid an error.
9074 Use char because int might match the return type of a GCC
9075 builtin and then its argument prototype would still apply. */
9088 if ac_fn_c_try_link
"$LINENO"; then :
9089 gcc_cv_collect2_libs
="$libs"; break
9091 rm -f core conftest.err conftest.
$ac_objext \
9092 conftest
$ac_exeext conftest.
$ac_ext
9095 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9098 $as_echo "$gcc_cv_collect2_libs" >&6; }
9099 case $gcc_cv_collect2_libs in
9101 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9105 # When building Ada code on Alpha, we need exc_resume which is usually in
9106 # -lexc. So test for it.
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9110 $as_echo_n "checking for library containing exc_resume... " >&6; }
9111 if test "${ac_cv_search_exc_resume+set}" = set; then :
9112 $as_echo_n "(cached) " >&6
9114 ac_func_search_save_LIBS
=$LIBS
9115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9118 /* Override any GCC internal prototype to avoid an error.
9119 Use char because int might match the return type of a GCC
9120 builtin and then its argument prototype would still apply. */
9128 return exc_resume ();
9133 for ac_lib
in '' exc
; do
9134 if test -z "$ac_lib"; then
9135 ac_res
="none required"
9138 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9140 if ac_fn_c_try_link
"$LINENO"; then :
9141 ac_cv_search_exc_resume
=$ac_res
9143 rm -f core conftest.err conftest.
$ac_objext \
9145 if test "${ac_cv_search_exc_resume+set}" = set; then :
9149 if test "${ac_cv_search_exc_resume+set}" = set; then :
9152 ac_cv_search_exc_resume
=no
9155 LIBS
=$ac_func_search_save_LIBS
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9158 $as_echo "$ac_cv_search_exc_resume" >&6; }
9159 ac_res
=$ac_cv_search_exc_resume
9160 if test "$ac_res" != no
; then :
9161 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9169 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9173 $as_echo_n "checking for library containing kstat_open... " >&6; }
9174 if test "${ac_cv_search_kstat_open+set}" = set; then :
9175 $as_echo_n "(cached) " >&6
9177 ac_func_search_save_LIBS
=$LIBS
9178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h. */
9181 /* Override any GCC internal prototype to avoid an error.
9182 Use char because int might match the return type of a GCC
9183 builtin and then its argument prototype would still apply. */
9191 return kstat_open ();
9196 for ac_lib
in '' kstat
; do
9197 if test -z "$ac_lib"; then
9198 ac_res
="none required"
9201 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9203 if ac_fn_c_try_link
"$LINENO"; then :
9204 ac_cv_search_kstat_open
=$ac_res
9206 rm -f core conftest.err conftest.
$ac_objext \
9208 if test "${ac_cv_search_kstat_open+set}" = set; then :
9212 if test "${ac_cv_search_kstat_open+set}" = set; then :
9215 ac_cv_search_kstat_open
=no
9218 LIBS
=$ac_func_search_save_LIBS
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9221 $as_echo "$ac_cv_search_kstat_open" >&6; }
9222 ac_res
=$ac_cv_search_kstat_open
9223 if test "$ac_res" != no
; then :
9224 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9228 EXTRA_GCC_LIBS
="$LIBS"
9232 # Some systems put ldexp and frexp in libm instead of libc; assume
9233 # they're both in the same place. jcf-dump needs them.
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9237 $as_echo_n "checking for library containing ldexp... " >&6; }
9238 if test "${ac_cv_search_ldexp+set}" = set; then :
9239 $as_echo_n "(cached) " >&6
9241 ac_func_search_save_LIBS
=$LIBS
9242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9243 /* end confdefs.h. */
9245 /* Override any GCC internal prototype to avoid an error.
9246 Use char because int might match the return type of a GCC
9247 builtin and then its argument prototype would still apply. */
9260 for ac_lib
in '' m
; do
9261 if test -z "$ac_lib"; then
9262 ac_res
="none required"
9265 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9267 if ac_fn_c_try_link
"$LINENO"; then :
9268 ac_cv_search_ldexp
=$ac_res
9270 rm -f core conftest.err conftest.
$ac_objext \
9272 if test "${ac_cv_search_ldexp+set}" = set; then :
9276 if test "${ac_cv_search_ldexp+set}" = set; then :
9279 ac_cv_search_ldexp
=no
9282 LIBS
=$ac_func_search_save_LIBS
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9285 $as_echo "$ac_cv_search_ldexp" >&6; }
9286 ac_res
=$ac_cv_search_ldexp
9287 if test "$ac_res" != no
; then :
9288 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9296 # Use <inttypes.h> only if it exists,
9297 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9300 $as_echo_n "checking for inttypes.h... " >&6; }
9301 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9302 $as_echo_n "(cached) " >&6
9304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9305 /* end confdefs.h. */
9306 #define __STDC_FORMAT_MACROS
9307 #include <sys/types.h>
9308 #include <inttypes.h>
9320 if ac_fn_c_try_compile
"$LINENO"; then :
9321 gcc_cv_header_inttypes_h
=yes
9323 gcc_cv_header_inttypes_h
=no
9325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9329 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9330 if test $gcc_cv_header_inttypes_h = yes; then
9332 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9338 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9339 popen sysconf strsignal getrusage nl_langinfo \
9340 gettimeofday mbstowcs wcswidth mmap setlocale \
9341 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
9343 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9344 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9345 eval as_val
=\$
$as_ac_var
9346 if test "x$as_val" = x
""yes; then :
9347 cat >>confdefs.h
<<_ACEOF
9348 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9355 if test x
$ac_cv_func_mbstowcs = xyes
; then
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9357 $as_echo_n "checking whether mbstowcs works... " >&6; }
9358 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9359 $as_echo_n "(cached) " >&6
9361 if test "$cross_compiling" = yes; then :
9362 gcc_cv_func_mbstowcs_works
=yes
9364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9373 if ac_fn_c_try_run
"$LINENO"; then :
9374 gcc_cv_func_mbstowcs_works
=yes
9376 gcc_cv_func_mbstowcs_works
=no
9378 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9379 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9384 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9385 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9387 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9392 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9393 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9397 cat >>confdefs.h
<<_ACEOF
9403 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9404 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9408 cat >>confdefs.h
<<_ACEOF
9409 #define caddr_t char *
9416 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9417 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9418 gcc_header_sys_mman_h
=yes
9420 gcc_header_sys_mman_h
=no
9423 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9424 if test "x$ac_cv_func_mmap" = x
""yes; then :
9430 if test "$gcc_header_sys_mman_h" != yes \
9431 ||
test "$gcc_func_mmap" != yes; then
9432 gcc_cv_func_mmap_file
=no
9433 gcc_cv_func_mmap_dev_zero
=no
9434 gcc_cv_func_mmap_anon
=no
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9437 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9438 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9439 $as_echo_n "(cached) " >&6
9441 # Add a system to this blacklist if
9442 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9443 # memory area containing the same data that you'd get if you applied
9444 # read() to the same fd. The only system known to have a problem here
9445 # is VMS, where text files have record structure.
9448 gcc_cv_func_mmap_file
=no
;;
9450 gcc_cv_func_mmap_file
=yes;;
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9454 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9456 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9457 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9458 $as_echo_n "(cached) " >&6
9460 # Add a system to this blacklist if it has mmap() but /dev/zero
9461 # does not exist, or if mmapping /dev/zero does not give anonymous
9462 # zeroed pages with both the following properties:
9463 # 1. If you map N consecutive pages in with one call, and then
9464 # unmap any subset of those pages, the pages that were not
9465 # explicitly unmapped remain accessible.
9466 # 2. If you map two adjacent blocks of memory and then unmap them
9467 # both at once, they must both go away.
9468 # Systems known to be in this category are Windows (all variants),
9471 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9472 gcc_cv_func_mmap_dev_zero
=no
;;
9474 gcc_cv_func_mmap_dev_zero
=yes;;
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9478 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9480 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9482 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9483 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9484 $as_echo_n "(cached) " >&6
9486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9487 /* end confdefs.h. */
9488 #include <sys/types.h>
9489 #include <sys/mman.h>
9492 #ifndef MAP_ANONYMOUS
9493 #define MAP_ANONYMOUS MAP_ANON
9499 int n = MAP_ANONYMOUS;
9504 if ac_fn_c_try_compile
"$LINENO"; then :
9505 gcc_cv_decl_map_anon
=yes
9507 gcc_cv_decl_map_anon
=no
9509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9512 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9514 if test $gcc_cv_decl_map_anon = no
; then
9515 gcc_cv_func_mmap_anon
=no
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9518 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9519 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9520 $as_echo_n "(cached) " >&6
9522 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9523 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9524 # doesn't give anonymous zeroed pages with the same properties listed
9525 # above for use of /dev/zero.
9526 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9528 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9529 gcc_cv_func_mmap_anon
=no
;;
9531 gcc_cv_func_mmap_anon
=yes;;
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9535 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9539 if test $gcc_cv_func_mmap_file = yes; then
9541 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9544 if test $gcc_cv_func_mmap_dev_zero = yes; then
9546 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9549 if test $gcc_cv_func_mmap_anon = yes; then
9551 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9558 # Under VMS, vfork works very differently than on Unix. The standard test
9559 # won't work, and it isn't easily adaptable. It makes more sense to
9561 ac_cv_func_vfork_works
=yes
9564 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9565 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9569 cat >>confdefs.h
<<_ACEOF
9575 for ac_header
in vfork.h
9577 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9578 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9579 cat >>confdefs.h
<<_ACEOF
9580 #define HAVE_VFORK_H 1
9586 for ac_func
in fork vfork
9588 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9589 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9590 eval as_val
=\$
$as_ac_var
9591 if test "x$as_val" = x
""yes; then :
9592 cat >>confdefs.h
<<_ACEOF
9593 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9599 if test "x$ac_cv_func_fork" = xyes
; then
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9601 $as_echo_n "checking for working fork... " >&6; }
9602 if test "${ac_cv_func_fork_works+set}" = set; then :
9603 $as_echo_n "(cached) " >&6
9605 if test "$cross_compiling" = yes; then :
9606 ac_cv_func_fork_works
=cross
9608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9609 /* end confdefs.h. */
9610 $ac_includes_default
9615 /* By Ruediger Kuhlmann. */
9622 if ac_fn_c_try_run
"$LINENO"; then :
9623 ac_cv_func_fork_works
=yes
9625 ac_cv_func_fork_works
=no
9627 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9628 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9633 $as_echo "$ac_cv_func_fork_works" >&6; }
9636 ac_cv_func_fork_works
=$ac_cv_func_fork
9638 if test "x$ac_cv_func_fork_works" = xcross
; then
9640 *-*-amigaos* |
*-*-msdosdjgpp*)
9641 # Override, as these systems have only a dummy fork() stub
9642 ac_cv_func_fork_works
=no
9645 ac_cv_func_fork_works
=yes
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9649 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9651 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9652 if test "x$ac_cv_func_vfork" = xyes
; then
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9654 $as_echo_n "checking for working vfork... " >&6; }
9655 if test "${ac_cv_func_vfork_works+set}" = set; then :
9656 $as_echo_n "(cached) " >&6
9658 if test "$cross_compiling" = yes; then :
9659 ac_cv_func_vfork_works
=cross
9661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9662 /* end confdefs.h. */
9663 /* Thanks to Paul Eggert for this test. */
9664 $ac_includes_default
9665 #include <sys/wait.h>
9669 /* On some sparc systems, changes by the child to local and incoming
9670 argument registers are propagated back to the parent. The compiler
9671 is told about this with #include <vfork.h>, but some compilers
9672 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9673 static variable whose address is put into a register that is
9674 clobbered by the vfork. */
9677 sparc_address_test (int arg)
9679 sparc_address_test (arg) int arg;
9700 pid_t parent = getpid ();
9703 sparc_address_test (0);
9708 /* Here is another test for sparc vfork register problems. This
9709 test uses lots of local variables, at least as many local
9710 variables as main has allocated so far including compiler
9711 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9712 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9713 reuse the register of parent for one of the local variables,
9714 since it will think that parent can't possibly be used any more
9715 in this routine. Assigning to the local variable will thus
9716 munge parent in the parent process. */
9718 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9719 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9720 /* Convince the compiler that p..p7 are live; otherwise, it might
9721 use the same hardware register for all 8 local variables. */
9722 if (p != p1 || p != p2 || p != p3 || p != p4
9723 || p != p5 || p != p6 || p != p7)
9726 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9727 from child file descriptors. If the child closes a descriptor
9728 before it execs or exits, this munges the parent's descriptor
9729 as well. Test for this by closing stdout in the child. */
9730 _exit(close(fileno(stdout)) != 0);
9735 while (wait(&status) != child)
9738 /* Was there some problem with vforking? */
9741 /* Did the child fail? (This shouldn't happen.) */
9744 /* Did the vfork/compiler bug occur? */
9745 || parent != getpid()
9747 /* Did the file descriptor bug occur? */
9748 || fstat(fileno(stdout), &st) != 0
9753 if ac_fn_c_try_run
"$LINENO"; then :
9754 ac_cv_func_vfork_works
=yes
9756 ac_cv_func_vfork_works
=no
9758 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9759 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9764 $as_echo "$ac_cv_func_vfork_works" >&6; }
9767 if test "x$ac_cv_func_fork_works" = xcross
; then
9768 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9770 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9773 if test "x$ac_cv_func_vfork_works" = xyes
; then
9775 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9779 $as_echo "#define vfork fork" >>confdefs.h
9782 if test "x$ac_cv_func_fork_works" = xyes
; then
9784 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9789 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9790 # iconv() prototype.
9792 ac_cpp
='$CXXCPP $CPPFLAGS'
9793 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9794 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9795 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9798 if test "X$prefix" = "XNONE"; then
9799 acl_final_prefix
="$ac_default_prefix"
9801 acl_final_prefix
="$prefix"
9803 if test "X$exec_prefix" = "XNONE"; then
9804 acl_final_exec_prefix
='${prefix}'
9806 acl_final_exec_prefix
="$exec_prefix"
9808 acl_save_prefix
="$prefix"
9809 prefix
="$acl_final_prefix"
9810 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9811 prefix
="$acl_save_prefix"
9814 # Check whether --with-gnu-ld was given.
9815 if test "${with_gnu_ld+set}" = set; then :
9816 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9821 # Prepare PATH_SEPARATOR.
9822 # The user is always right.
9823 if test "${PATH_SEPARATOR+set}" != set; then
9824 echo "#! /bin/sh" >conf$$.sh
9825 echo "exit 0" >>conf$$.sh
9827 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9835 if test "$GCC" = yes; then
9836 # Check if gcc -print-prog-name=ld gives a path.
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9838 $as_echo_n "checking for ld used by GCC... " >&6; }
9841 # gcc leaves a trailing carriage return which upsets mingw
9842 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9844 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9847 # Accept absolute paths.
9848 [\\/]* |
[A-Za-z
]:[\\/]*)
9849 re_direlt
='/[^/][^/]*/\.\./'
9850 # Canonicalize the path of ld
9851 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9852 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9853 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9855 test -z "$LD" && LD
="$ac_prog"
9858 # If it fails, then pretend we aren't using GCC.
9862 # If it is relative, then search for the first ld in PATH.
9866 elif test "$with_gnu_ld" = yes; then
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9868 $as_echo_n "checking for GNU ld... " >&6; }
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9871 $as_echo_n "checking for non-GNU ld... " >&6; }
9873 if test "${acl_cv_path_LD+set}" = set; then :
9874 $as_echo_n "(cached) " >&6
9876 if test -z "$LD"; then
9877 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9878 for ac_dir
in $PATH; do
9879 test -z "$ac_dir" && ac_dir
=.
9880 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9881 acl_cv_path_LD
="$ac_dir/$ac_prog"
9882 # Check to see if the program is GNU ld. I'd rather use --version,
9883 # but apparently some GNU ld's only accept -v.
9884 # Break only if it was the GNU/non-GNU ld that we prefer.
9885 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9886 test "$with_gnu_ld" != no
&& break
9888 test "$with_gnu_ld" != yes && break
9894 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9898 LD
="$acl_cv_path_LD"
9899 if test -n "$LD"; then
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9901 $as_echo "$LD" >&6; }
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9904 $as_echo "no" >&6; }
9906 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9908 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9909 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9910 $as_echo_n "(cached) " >&6
9912 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9913 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9914 acl_cv_prog_gnu_ld
=yes
9916 acl_cv_prog_gnu_ld
=no
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9920 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9921 with_gnu_ld
=$acl_cv_prog_gnu_ld
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9926 $as_echo_n "checking for shared library run path origin... " >&6; }
9927 if test "${acl_cv_rpath+set}" = set; then :
9928 $as_echo_n "(cached) " >&6
9931 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9932 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9939 $as_echo "$acl_cv_rpath" >&6; }
9941 libext
="$acl_cv_libext"
9942 shlibext
="$acl_cv_shlibext"
9943 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9944 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9945 hardcode_direct
="$acl_cv_hardcode_direct"
9946 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9947 # Check whether --enable-rpath was given.
9948 if test "${enable_rpath+set}" = set; then :
9949 enableval
=$enable_rpath; :
9963 acl_save_prefix
="$prefix"
9964 prefix
="$acl_final_prefix"
9965 acl_save_exec_prefix
="$exec_prefix"
9966 exec_prefix
="$acl_final_exec_prefix"
9968 eval additional_includedir
=\"$includedir\"
9969 eval additional_libdir
=\"$libdir\"
9971 exec_prefix
="$acl_save_exec_prefix"
9972 prefix
="$acl_save_prefix"
9975 # Check whether --with-libiconv-prefix was given.
9976 if test "${with_libiconv_prefix+set}" = set; then :
9977 withval
=$with_libiconv_prefix;
9978 if test "X$withval" = "Xno"; then
9981 if test "X$withval" = "X"; then
9983 acl_save_prefix
="$prefix"
9984 prefix
="$acl_final_prefix"
9985 acl_save_exec_prefix
="$exec_prefix"
9986 exec_prefix
="$acl_final_exec_prefix"
9988 eval additional_includedir
=\"$includedir\"
9989 eval additional_libdir
=\"$libdir\"
9991 exec_prefix
="$acl_save_exec_prefix"
9992 prefix
="$acl_save_prefix"
9995 additional_includedir
="$withval/include"
9996 additional_libdir
="$withval/lib"
10007 names_already_handled
=
10008 names_next_round
='iconv '
10009 while test -n "$names_next_round"; do
10010 names_this_round
="$names_next_round"
10012 for name
in $names_this_round; do
10014 for n
in $names_already_handled; do
10015 if test "$n" = "$name"; then
10016 already_handled
=yes
10020 if test -z "$already_handled"; then
10021 names_already_handled
="$names_already_handled $name"
10022 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10023 eval value
=\"\
$HAVE_LIB$uppername\"
10024 if test -n "$value"; then
10025 if test "$value" = yes; then
10026 eval value
=\"\
$LIB$uppername\"
10027 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10028 eval value
=\"\
$LTLIB$uppername\"
10029 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10038 if test $use_additional = yes; then
10039 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10040 found_dir
="$additional_libdir"
10041 found_so
="$additional_libdir/lib$name.$shlibext"
10042 if test -f "$additional_libdir/lib$name.la"; then
10043 found_la
="$additional_libdir/lib$name.la"
10046 if test -f "$additional_libdir/lib$name.$libext"; then
10047 found_dir
="$additional_libdir"
10048 found_a
="$additional_libdir/lib$name.$libext"
10049 if test -f "$additional_libdir/lib$name.la"; then
10050 found_la
="$additional_libdir/lib$name.la"
10055 if test "X$found_dir" = "X"; then
10056 for x
in $LDFLAGS $LTLIBICONV; do
10058 acl_save_prefix
="$prefix"
10059 prefix
="$acl_final_prefix"
10060 acl_save_exec_prefix
="$exec_prefix"
10061 exec_prefix
="$acl_final_exec_prefix"
10063 exec_prefix
="$acl_save_exec_prefix"
10064 prefix
="$acl_save_prefix"
10068 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10069 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10071 found_so
="$dir/lib$name.$shlibext"
10072 if test -f "$dir/lib$name.la"; then
10073 found_la
="$dir/lib$name.la"
10076 if test -f "$dir/lib$name.$libext"; then
10078 found_a
="$dir/lib$name.$libext"
10079 if test -f "$dir/lib$name.la"; then
10080 found_la
="$dir/lib$name.la"
10086 if test "X$found_dir" != "X"; then
10091 if test "X$found_dir" != "X"; then
10092 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10093 if test "X$found_so" != "X"; then
10094 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10095 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10098 for x
in $ltrpathdirs; do
10099 if test "X$x" = "X$found_dir"; then
10104 if test -z "$haveit"; then
10105 ltrpathdirs
="$ltrpathdirs $found_dir"
10107 if test "$hardcode_direct" = yes; then
10108 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10110 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10111 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10113 for x
in $rpathdirs; do
10114 if test "X$x" = "X$found_dir"; then
10119 if test -z "$haveit"; then
10120 rpathdirs
="$rpathdirs $found_dir"
10124 for x
in $LDFLAGS $LIBICONV; do
10126 acl_save_prefix
="$prefix"
10127 prefix
="$acl_final_prefix"
10128 acl_save_exec_prefix
="$exec_prefix"
10129 exec_prefix
="$acl_final_exec_prefix"
10131 exec_prefix
="$acl_save_exec_prefix"
10132 prefix
="$acl_save_prefix"
10134 if test "X$x" = "X-L$found_dir"; then
10139 if test -z "$haveit"; then
10140 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10142 if test "$hardcode_minus_L" != no
; then
10143 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10145 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10151 if test "X$found_a" != "X"; then
10152 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10154 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10157 additional_includedir
=
10158 case "$found_dir" in
10160 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10161 additional_includedir
="$basedir/include"
10164 if test "X$additional_includedir" != "X"; then
10165 if test "X$additional_includedir" != "X/usr/include"; then
10167 if test "X$additional_includedir" = "X/usr/local/include"; then
10168 if test -n "$GCC"; then
10170 linux
*) haveit
=yes;;
10174 if test -z "$haveit"; then
10175 for x
in $CPPFLAGS $INCICONV; do
10177 acl_save_prefix
="$prefix"
10178 prefix
="$acl_final_prefix"
10179 acl_save_exec_prefix
="$exec_prefix"
10180 exec_prefix
="$acl_final_exec_prefix"
10182 exec_prefix
="$acl_save_exec_prefix"
10183 prefix
="$acl_save_prefix"
10185 if test "X$x" = "X-I$additional_includedir"; then
10190 if test -z "$haveit"; then
10191 if test -d "$additional_includedir"; then
10192 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10198 if test -n "$found_la"; then
10199 save_libdir
="$libdir"
10200 case "$found_la" in
10201 */* |
*\\*) .
"$found_la" ;;
10202 *) .
"./$found_la" ;;
10204 libdir
="$save_libdir"
10205 for dep
in $dependency_libs; do
10208 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10209 if test "X$additional_libdir" != "X/usr/lib"; then
10211 if test "X$additional_libdir" = "X/usr/local/lib"; then
10212 if test -n "$GCC"; then
10214 linux
*) haveit
=yes;;
10218 if test -z "$haveit"; then
10220 for x
in $LDFLAGS $LIBICONV; do
10222 acl_save_prefix
="$prefix"
10223 prefix
="$acl_final_prefix"
10224 acl_save_exec_prefix
="$exec_prefix"
10225 exec_prefix
="$acl_final_exec_prefix"
10227 exec_prefix
="$acl_save_exec_prefix"
10228 prefix
="$acl_save_prefix"
10230 if test "X$x" = "X-L$additional_libdir"; then
10235 if test -z "$haveit"; then
10236 if test -d "$additional_libdir"; then
10237 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10241 for x
in $LDFLAGS $LTLIBICONV; do
10243 acl_save_prefix
="$prefix"
10244 prefix
="$acl_final_prefix"
10245 acl_save_exec_prefix
="$exec_prefix"
10246 exec_prefix
="$acl_final_exec_prefix"
10248 exec_prefix
="$acl_save_exec_prefix"
10249 prefix
="$acl_save_prefix"
10251 if test "X$x" = "X-L$additional_libdir"; then
10256 if test -z "$haveit"; then
10257 if test -d "$additional_libdir"; then
10258 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10265 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10266 if test "$enable_rpath" != no
; then
10268 for x
in $rpathdirs; do
10269 if test "X$x" = "X$dir"; then
10274 if test -z "$haveit"; then
10275 rpathdirs
="$rpathdirs $dir"
10278 for x
in $ltrpathdirs; do
10279 if test "X$x" = "X$dir"; then
10284 if test -z "$haveit"; then
10285 ltrpathdirs
="$ltrpathdirs $dir"
10290 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10293 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10296 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10297 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10303 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10304 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10310 if test "X$rpathdirs" != "X"; then
10311 if test -n "$hardcode_libdir_separator"; then
10313 for found_dir
in $rpathdirs; do
10314 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10316 acl_save_libdir
="$libdir"
10318 eval flag
=\"$hardcode_libdir_flag_spec\"
10319 libdir
="$acl_save_libdir"
10320 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10322 for found_dir
in $rpathdirs; do
10323 acl_save_libdir
="$libdir"
10324 libdir
="$found_dir"
10325 eval flag
=\"$hardcode_libdir_flag_spec\"
10326 libdir
="$acl_save_libdir"
10327 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10331 if test "X$ltrpathdirs" != "X"; then
10332 for found_dir
in $ltrpathdirs; do
10333 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10343 am_save_CPPFLAGS
="$CPPFLAGS"
10345 for element
in $INCICONV; do
10347 for x
in $CPPFLAGS; do
10349 acl_save_prefix
="$prefix"
10350 prefix
="$acl_final_prefix"
10351 acl_save_exec_prefix
="$exec_prefix"
10352 exec_prefix
="$acl_final_exec_prefix"
10354 exec_prefix
="$acl_save_exec_prefix"
10355 prefix
="$acl_save_prefix"
10357 if test "X$x" = "X$element"; then
10362 if test -z "$haveit"; then
10363 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10369 $as_echo_n "checking for iconv... " >&6; }
10370 if test "${am_cv_func_iconv+set}" = set; then :
10371 $as_echo_n "(cached) " >&6
10374 am_cv_func_iconv
="no, consider installing GNU libiconv"
10376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10377 /* end confdefs.h. */
10378 #include <stdlib.h>
10383 iconv_t cd = iconv_open("","");
10384 iconv(cd,NULL,NULL,NULL,NULL);
10390 if ac_fn_cxx_try_link
"$LINENO"; then :
10391 am_cv_func_iconv
=yes
10393 rm -f core conftest.err conftest.
$ac_objext \
10394 conftest
$ac_exeext conftest.
$ac_ext
10395 if test "$am_cv_func_iconv" != yes; then
10396 am_save_LIBS
="$LIBS"
10397 LIBS
="$LIBS $LIBICONV"
10398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h. */
10400 #include <stdlib.h>
10405 iconv_t cd = iconv_open("","");
10406 iconv(cd,NULL,NULL,NULL,NULL);
10412 if ac_fn_cxx_try_link
"$LINENO"; then :
10413 am_cv_lib_iconv
=yes
10414 am_cv_func_iconv
=yes
10416 rm -f core conftest.err conftest.
$ac_objext \
10417 conftest
$ac_exeext conftest.
$ac_ext
10418 LIBS
="$am_save_LIBS"
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10423 $as_echo "$am_cv_func_iconv" >&6; }
10424 if test "$am_cv_func_iconv" = yes; then
10426 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10429 if test "$am_cv_lib_iconv" = yes; then
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10431 $as_echo_n "checking how to link with libiconv... " >&6; }
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10433 $as_echo "$LIBICONV" >&6; }
10435 CPPFLAGS
="$am_save_CPPFLAGS"
10442 if test "$am_cv_func_iconv" = yes; then
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10444 $as_echo_n "checking for iconv declaration... " >&6; }
10445 if test "${am_cv_proto_iconv+set}" = set; then :
10446 $as_echo_n "(cached) " >&6
10449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10450 /* end confdefs.h. */
10452 #include <stdlib.h>
10458 #if defined(__STDC__) || defined(__cplusplus)
10459 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10472 if ac_fn_cxx_try_compile
"$LINENO"; then :
10473 am_cv_proto_iconv_arg1
=""
10475 am_cv_proto_iconv_arg1
="const"
10477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10478 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);"
10481 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10483 }$am_cv_proto_iconv" >&5
10485 }$am_cv_proto_iconv" >&6; }
10487 cat >>confdefs.h
<<_ACEOF
10488 #define ICONV_CONST $am_cv_proto_iconv_arg1
10494 ac_cpp
='$CPP $CPPFLAGS'
10495 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10496 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10497 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10500 # Until we have in-tree GNU iconv:
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10506 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10507 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10508 $as_echo_n "(cached) " >&6
10510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h. */
10512 #include <locale.h>
10521 if ac_fn_c_try_link
"$LINENO"; then :
10522 am_cv_val_LC_MESSAGES
=yes
10524 am_cv_val_LC_MESSAGES
=no
10526 rm -f core conftest.err conftest.
$ac_objext \
10527 conftest
$ac_exeext conftest.
$ac_ext
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10530 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10531 if test $am_cv_val_LC_MESSAGES = yes; then
10533 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10540 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10541 if test "${am_cv_langinfo_codeset+set}" = set; then :
10542 $as_echo_n "(cached) " >&6
10544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10546 #include <langinfo.h>
10550 char* cs = nl_langinfo(CODESET);
10555 if ac_fn_c_try_link
"$LINENO"; then :
10556 am_cv_langinfo_codeset
=yes
10558 am_cv_langinfo_codeset
=no
10560 rm -f core conftest.err conftest.
$ac_objext \
10561 conftest
$ac_exeext conftest.
$ac_ext
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10565 $as_echo "$am_cv_langinfo_codeset" >&6; }
10566 if test $am_cv_langinfo_codeset = yes; then
10568 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10573 # We will need to find libiberty.h and ansidecl.h
10574 saved_CFLAGS
="$CFLAGS"
10575 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10576 saved_CXXFLAGS
="$CXXFLAGS"
10577 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10578 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10579 stpcpy strnlen strsignal strstr strverscmp \
10580 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10581 free
basename 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
10583 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10585 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10586 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10587 $as_echo_n "(cached) " >&6
10589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h. */
10592 #define $ac_tr_decl 1
10594 #include "ansidecl.h"
10595 #include "system.h"
10601 char *(*pfn) = (char *(*)) $ac_func ;
10607 if ac_fn_c_try_compile
"$LINENO"; then :
10608 eval "gcc_cv_have_decl_$ac_func=yes"
10610 eval "gcc_cv_have_decl_$ac_func=no"
10612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10615 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10617 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10618 #define $ac_tr_decl 1
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10623 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10624 #define $ac_tr_decl 0
10632 for ac_func
in getrlimit setrlimit getrusage
10634 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10636 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10637 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10638 $as_echo_n "(cached) " >&6
10640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10641 /* end confdefs.h. */
10643 #define $ac_tr_decl 1
10645 #include "ansidecl.h"
10646 #include "system.h"
10647 #ifdef HAVE_SYS_RESOURCE_H
10648 #include <sys/resource.h>
10656 char *(*pfn) = (char *(*)) $ac_func ;
10662 if ac_fn_c_try_compile
"$LINENO"; then :
10663 eval "gcc_cv_have_decl_$ac_func=yes"
10665 eval "gcc_cv_have_decl_$ac_func=no"
10667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10670 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10672 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10673 #define $ac_tr_decl 1
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10678 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10679 #define $ac_tr_decl 0
10687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10688 /* end confdefs.h. */
10690 #include "ansidecl.h"
10691 #include "system.h"
10692 #ifdef HAVE_SYS_RESOURCE_H
10693 #include <sys/resource.h>
10704 if ac_fn_c_try_compile
"$LINENO"; then :
10708 $as_echo "#define rlim_t long" >>confdefs.h
10711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10713 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10714 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10715 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10716 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10717 for ac_func
in ldgetname
10719 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10721 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10722 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10723 $as_echo_n "(cached) " >&6
10725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10726 /* end confdefs.h. */
10728 #define $ac_tr_decl 1
10730 #include "ansidecl.h"
10731 #include "system.h"
10732 #ifdef HAVE_LDFCN_H
10743 char *(*pfn) = (char *(*)) $ac_func ;
10749 if ac_fn_c_try_compile
"$LINENO"; then :
10750 eval "gcc_cv_have_decl_$ac_func=yes"
10752 eval "gcc_cv_have_decl_$ac_func=no"
10754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10757 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10759 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10760 #define $ac_tr_decl 1
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10765 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10766 #define $ac_tr_decl 0
10774 for ac_func
in times
10776 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10778 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10779 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10780 $as_echo_n "(cached) " >&6
10782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10785 #define $ac_tr_decl 1
10787 #include "ansidecl.h"
10788 #include "system.h"
10789 #ifdef HAVE_SYS_TIMES_H
10790 #include <sys/times.h>
10798 char *(*pfn) = (char *(*)) $ac_func ;
10804 if ac_fn_c_try_compile
"$LINENO"; then :
10805 eval "gcc_cv_have_decl_$ac_func=yes"
10807 eval "gcc_cv_have_decl_$ac_func=no"
10809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10812 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10814 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10815 #define $ac_tr_decl 1
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10820 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10821 #define $ac_tr_decl 0
10829 for ac_func
in sigaltstack
10831 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10833 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10834 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10835 $as_echo_n "(cached) " >&6
10837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10838 /* end confdefs.h. */
10840 #define $ac_tr_decl 1
10842 #include "ansidecl.h"
10843 #include "system.h"
10844 #include <signal.h>
10851 char *(*pfn) = (char *(*)) $ac_func ;
10857 if ac_fn_c_try_compile
"$LINENO"; then :
10858 eval "gcc_cv_have_decl_$ac_func=yes"
10860 eval "gcc_cv_have_decl_$ac_func=no"
10862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10865 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10867 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10868 #define $ac_tr_decl 1
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10873 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10874 #define $ac_tr_decl 0
10882 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10885 ac_cpp
='$CXXCPP $CPPFLAGS'
10886 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10887 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10888 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10890 for ac_func
in madvise
10892 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10894 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10895 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10896 $as_echo_n "(cached) " >&6
10898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10899 /* end confdefs.h. */
10901 #define $ac_tr_decl 1
10903 #include "ansidecl.h"
10904 #include "system.h"
10911 char *(*pfn) = (char *(*)) $ac_func ;
10917 if ac_fn_cxx_try_compile
"$LINENO"; then :
10918 eval "gcc_cv_have_decl_$ac_func=yes"
10920 eval "gcc_cv_have_decl_$ac_func=no"
10922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10925 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10927 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10928 #define $ac_tr_decl 1
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10933 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10934 #define $ac_tr_decl 0
10942 ac_cpp
='$CPP $CPPFLAGS'
10943 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10944 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10945 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10948 # More time-related stuff.
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10950 $as_echo_n "checking for struct tms... " >&6; }
10951 if test "${ac_cv_struct_tms+set}" = set; then :
10952 $as_echo_n "(cached) " >&6
10955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10956 /* end confdefs.h. */
10958 #include "ansidecl.h"
10959 #include "system.h"
10960 #ifdef HAVE_SYS_TIMES_H
10961 #include <sys/times.h>
10972 if ac_fn_c_try_compile
"$LINENO"; then :
10973 ac_cv_struct_tms
=yes
10975 ac_cv_struct_tms
=no
10977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10980 $as_echo "$ac_cv_struct_tms" >&6; }
10981 if test $ac_cv_struct_tms = yes; then
10983 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10987 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10988 # revisit after autoconf 2.50.
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10990 $as_echo_n "checking for clock_t... " >&6; }
10991 if test "${gcc_cv_type_clock_t+set}" = set; then :
10992 $as_echo_n "(cached) " >&6
10995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h. */
10998 #include "ansidecl.h"
10999 #include "system.h"
11009 if ac_fn_c_try_compile
"$LINENO"; then :
11010 gcc_cv_type_clock_t
=yes
11012 gcc_cv_type_clock_t
=no
11014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11017 $as_echo "$gcc_cv_type_clock_t" >&6; }
11018 if test $gcc_cv_type_clock_t = yes; then
11020 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11024 # Check if F_SETLKW is supported by fcntl.
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11026 $as_echo_n "checking for F_SETLKW... " >&6; }
11027 if test "${ac_cv_f_setlkw+set}" = set; then :
11028 $as_echo_n "(cached) " >&6
11031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11044 return fcntl (1, F_SETLKW, &fl);
11049 if ac_fn_c_try_compile
"$LINENO"; then :
11054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11057 $as_echo "$ac_cv_f_setlkw" >&6; }
11058 if test $ac_cv_f_setlkw = yes; then
11060 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11064 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11065 CFLAGS
="$saved_CFLAGS"
11066 CXXFLAGS
="$saved_CXXFLAGS"
11068 # mkdir takes a single argument on some systems.
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11070 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11071 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11072 $as_echo_n "(cached) " >&6
11074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11075 /* end confdefs.h. */
11077 #include <sys/types.h>
11078 #ifdef HAVE_SYS_STAT_H
11079 # include <sys/stat.h>
11081 #ifdef HAVE_UNISTD_H
11082 # include <unistd.h>
11084 #ifdef HAVE_DIRECT_H
11085 # include <direct.h>
11095 if ac_fn_c_try_compile
"$LINENO"; then :
11096 gcc_cv_mkdir_takes_one_arg
=no
11098 gcc_cv_mkdir_takes_one_arg
=yes
11100 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11103 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11104 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11106 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11117 # With Setjmp/Longjmp based exception handling.
11118 # Check whether --enable-sjlj-exceptions was given.
11119 if test "${enable_sjlj_exceptions+set}" = set; then :
11120 enableval
=$enable_sjlj_exceptions; case $target in
11122 if test $enableval != yes; then
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11124 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11129 force_sjlj_exceptions
=yes
11133 force_sjlj_exceptions
=yes
11137 force_sjlj_exceptions
=yes
11141 force_sjlj_exceptions
=no
11146 if test $force_sjlj_exceptions = yes; then
11147 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11149 cat >>confdefs.h
<<_ACEOF
11150 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11155 # --------------------------------------------------------
11156 # Build, host, and target specific configuration fragments
11157 # --------------------------------------------------------
11159 # Collect build-machine-specific information.
11160 .
${srcdir}/config.build
11162 # Collect host-machine-specific information.
11163 .
${srcdir}/config.
host
11167 # Collect target-machine-specific information.
11168 .
${srcdir}/config.gcc
11170 extra_objs
="${host_extra_objs} ${extra_objs}"
11171 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11173 # Default the target-machine variables that were not explicitly set.
11174 if test x
"$tm_file" = x
11175 then tm_file
=$cpu_type/$cpu_type.h
; fi
11177 if test x
"$extra_headers" = x
11178 then extra_headers
=; fi
11180 if test x
$md_file = x
11181 then md_file
=$cpu_type/$cpu_type.md
; fi
11183 if test x
$out_file = x
11184 then out_file
=$cpu_type/$cpu_type.c
; fi
11186 if test x
"$tmake_file" = x
11187 then tmake_file
=$cpu_type/t-
$cpu_type
11190 # Support --enable-initfini-array.
11191 if test x
$enable_initfini_array != xno
; then
11192 tm_file
="${tm_file} initfini-array.h"
11195 if test x
"$dwarf2" = xyes
11196 then tm_file
="$tm_file tm-dwarf2.h"
11199 # Say what files are being used for the output code and MD file.
11200 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11201 echo "Using \`$srcdir/config/$md_file' as machine description file."
11203 # If any of the xm_file variables contain nonexistent files, warn
11204 # about them and drop them.
11207 for x
in $build_xm_file; do
11208 if test -f $srcdir/config
/$x
11210 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11211 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11214 build_xm_file
="$bx"
11217 for x
in $host_xm_file; do
11218 if test -f $srcdir/config
/$x
11220 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11221 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11227 for x
in $xm_file; do
11228 if test -f $srcdir/config
/$x
11230 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11231 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11237 for f
in $tm_file; do
11240 if test $count = ax
; then
11241 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11243 echo "Using the following target machine macro files:"
11244 for f
in $tm_file; do
11245 echo " $srcdir/config/$f"
11249 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11251 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11255 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11257 cat >>confdefs.h
<<_ACEOF
11258 #define HAVE_GNU_LD $gnu_ld_bool
11262 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11264 cat >>confdefs.h
<<_ACEOF
11265 #define HAVE_GNU_AS $gnu_as_bool
11270 for f
in $host_xm_file; do
11273 if test $count = a
; then
11275 elif test $count = ax
; then
11276 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11278 echo "Using the following host machine macro files:"
11279 for f
in $host_xm_file; do
11280 echo " $srcdir/config/$f"
11283 echo "Using ${out_host_hook_obj} for host machine hooks."
11285 if test "$host_xm_file" != "$build_xm_file"; then
11287 for f
in $build_xm_file; do
11290 if test $count = a
; then
11292 elif test $count = ax
; then
11293 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11295 echo "Using the following build machine macro files:"
11296 for f
in $build_xm_file; do
11297 echo " $srcdir/config/$f"
11302 if test -n "$configured_native_system_header_dir"; then
11303 native_system_header_dir
=$configured_native_system_header_dir
11305 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11309 powerpc
*-*-darwin*)
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11311 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11312 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11313 $as_echo_n "(cached) " >&6
11315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11316 /* end confdefs.h. */
11318 #include <sys/cdefs.h>
11319 #include <sys/signal.h>
11320 #include <ucontext.h>
11321 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11324 if ac_fn_c_try_compile
"$LINENO"; then :
11325 gcc_cv_mcontext_underscores
=no
11327 gcc_cv_mcontext_underscores
=yes
11329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11332 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11333 if test $gcc_cv_mcontext_underscores = yes; then
11335 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11345 # Check if a valid thread package
11346 case ${enable_threads} in
11349 target_thread_file
='single'
11353 target_thread_file
='single'
11355 aix | dce | lynx | mipssde | posix | rtems | \
11356 single | tpf | vxworks | win32
)
11357 target_thread_file
=${enable_threads}
11360 echo "${enable_threads} is an unknown thread package" 1>&2
11365 if test x
${thread_file} = x
; then
11366 # No thread file set by target-specific clauses in config.gcc,
11367 # so use file chosen by default logic above
11368 thread_file
=${target_thread_file}
11376 if test x
$enable___cxa_atexit = xyes || \
11377 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11378 if test x
$host = x
$target; then
11380 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11381 # keyed to flag_use_cxa_atexit
11389 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11390 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11393 echo "__cxa_atexit can't be enabled on this target"
11399 # We can't check for __cxa_atexit when building a cross, so assume
11403 if test x
$use_cxa_atexit = xyes
; then
11405 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11410 # Look for a file containing extra machine modes.
11411 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11412 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11415 cat >>confdefs.h
<<_ACEOF
11416 #define EXTRA_MODES_FILE "config/$extra_modes"
11421 # Convert extra_options into a form suitable for Makefile use.
11424 for f
in $extra_options; do
11425 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11426 all_opt_files
="$all_opt_files $srcdir/config/$f"
11430 # auto-host.h is the file containing items generated by autoconf and is
11431 # the first file included by config.h.
11432 # If host=build, it is correct to have bconfig include auto-host.h
11433 # as well. If host!=build, we are in error and need to do more
11434 # work to find out the build config parameters.
11435 if test x
$host = x
$build
11437 build_auto
=auto-host.h
11439 # We create a subdir, then run autoconf in the subdir.
11440 # To prevent recursion we set host and build for the new
11441 # invocation of configure to the build for this invocation
11448 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11449 *) realsrcdir
=..
/${srcdir};;
11451 # Clearing GMPINC is necessary to prevent host headers being
11452 # used by the build compiler. Defining GENERATOR_FILE stops
11453 # system.h from including gmp.h.
11454 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11455 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11456 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11457 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11458 ${realsrcdir}/configure \
11459 --enable-languages=${enable_languages-all} \
11460 --target=$target_alias --host=$build_alias --build=$build_alias
11462 # We just finished tests for the build machine, so rename
11463 # the file auto-build.h in the gcc directory.
11464 mv auto-host.h ..
/auto-build.h
11467 build_auto
=auto-build.h
11471 tm_file
="${tm_file} defaults.h"
11472 tm_p_file
="${tm_p_file} tm-preds.h"
11473 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11474 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11475 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11476 # put this back in temporarily.
11477 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11483 # Compile in configure arguments.
11484 if test -f configargs.h
; then
11485 # Being re-configured.
11486 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11487 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11489 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11492 # Double all backslashes and backslash all quotes to turn
11493 # gcc_config_arguments into a C string.
11494 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11495 $gcc_config_arguments
11497 gcc_config_arguments_str
=`cat conftest.out`
11500 cat > configargs.h
<<EOF
11501 /* Generated automatically. */
11502 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11503 static const char thread_model[] = "$thread_file";
11505 static const struct {
11506 const char *name, *value;
11507 } configure_default_options[] = $configure_default_options;
11510 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11511 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11512 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11513 if test -f $srcdir/REVISION
; then
11514 gcc_REVISION
=`cat $srcdir/REVISION`
11518 cat > plugin-version.h
<<EOF
11519 #include "configargs.h"
11521 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11522 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11523 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11524 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11526 static char basever[] = "$gcc_BASEVER";
11527 static char datestamp[] = "$gcc_DATESTAMP";
11528 static char devphase[] = "$gcc_DEVPHASE";
11529 static char revision[] = "$gcc_REVISION";
11531 /* FIXME plugins: We should make the version information more precise.
11532 One way to do is to add a checksum. */
11534 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11535 devphase, revision,
11536 configuration_arguments};
11539 # Internationalization
11540 # If we haven't got the data from the intl directory,
11541 # assume NLS is disabled.
11550 if test -f ..
/intl
/config.intl
; then
11551 . ..
/intl
/config.intl
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11554 $as_echo_n "checking whether NLS is requested... " >&6; }
11555 if test x
"$USE_NLS" != xyes
; then
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11557 $as_echo "no" >&6; }
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11560 $as_echo "yes" >&6; }
11562 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11566 $as_echo_n "checking for catalogs to be installed... " >&6; }
11567 # Look for .po and .gmo files in the source directory.
11570 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11571 # If there aren't any .gmo files the shell will give us the
11572 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11574 case "$cat" in *\
**)
11577 # The quadruple backslash is collapsed to a double backslash
11578 # by the backticks, then collapsed again by the double quotes,
11579 # leaving us with one backslash in the sed expression (right
11580 # before the dot that mustn't act as a wildcard).
11581 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11582 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11583 # The user is allowed to set LINGUAS to a list of languages to
11584 # install catalogs for. If it's empty that means "all of them."
11585 if test "x$LINGUAS" = x
; then
11586 CATALOGS
="$CATALOGS $cat"
11587 XLINGUAS
="$XLINGUAS $lang"
11589 case "$LINGUAS" in *$lang*)
11590 CATALOGS
="$CATALOGS $cat"
11591 XLINGUAS
="$XLINGUAS $lang"
11596 LINGUAS
="$XLINGUAS"
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11598 $as_echo "$LINGUAS" >&6; }
11611 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11612 # -liconv on the link line twice.
11613 case "$LIBINTL" in *$LIBICONV*)
11617 # Check whether --enable-secureplt was given.
11618 if test "${enable_secureplt+set}" = set; then :
11619 enableval
=$enable_secureplt;
11623 # Check whether --enable-leading-mingw64-underscores was given.
11624 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11625 enableval
=$enable_leading_mingw64_underscores;
11628 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11630 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11634 # Check whether --enable-cld was given.
11635 if test "${enable_cld+set}" = set; then :
11636 enableval
=$enable_cld;
11642 # Check whether --enable-frame-pointer was given.
11643 if test "${enable_frame_pointer+set}" = set; then :
11644 enableval
=$enable_frame_pointer;
11648 linux
* | darwin
[8912]*)
11649 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11651 enable_frame_pointer
=no
11654 enable_frame_pointer
=yes
11661 # Windows32 Registry support for specifying GCC installation paths.
11662 # Check whether --enable-win32-registry was given.
11663 if test "${enable_win32_registry+set}" = set; then :
11664 enableval
=$enable_win32_registry;
11669 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11670 if test "x$enable_win32_registry" != xno
; then
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11672 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11673 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11674 $as_echo_n "(cached) " >&6
11676 ac_func_search_save_LIBS
=$LIBS
11677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h. */
11680 /* Override any GCC internal prototype to avoid an error.
11681 Use char because int might match the return type of a GCC
11682 builtin and then its argument prototype would still apply. */
11686 char RegOpenKeyExA ();
11690 return RegOpenKeyExA ();
11695 for ac_lib
in '' advapi32
; do
11696 if test -z "$ac_lib"; then
11697 ac_res
="none required"
11700 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11702 if ac_fn_c_try_link
"$LINENO"; then :
11703 ac_cv_search_RegOpenKeyExA
=$ac_res
11705 rm -f core conftest.err conftest.
$ac_objext \
11707 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11711 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11714 ac_cv_search_RegOpenKeyExA
=no
11716 rm conftest.
$ac_ext
11717 LIBS
=$ac_func_search_save_LIBS
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11720 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11721 ac_res
=$ac_cv_search_RegOpenKeyExA
11722 if test "$ac_res" != no
; then :
11723 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11726 enable_win32_registry
=no
11731 if test "x$enable_win32_registry" != xno
; then
11733 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11736 if test "x$enable_win32_registry" != xyes \
11737 && test "x$enable_win32_registry" != x
; then
11739 cat >>confdefs.h
<<_ACEOF
11740 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11748 # Get an absolute path to the GCC top-level source directory
11749 holddir
=`${PWDCMD-pwd}`
11751 topdir
=`${PWDCMD-pwd}`
11754 # Conditionalize the makefile for this host machine.
11756 for f
in ${host_xmake_file}
11758 if test -f ${srcdir}/config
/$f
11760 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11764 # Conditionalize the makefile for this target machine.
11766 for f
in ${tmake_file}
11768 if test -f ${srcdir}/config
/$f
11770 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11773 tmake_file
="${tmake_file_}"
11775 out_object_file
=`basename $out_file .c`.o
11776 common_out_object_file
=`basename $common_out_file .c`.o
11778 tm_file_list
="options.h"
11779 tm_include_list
="options.h insn-constants.h"
11780 for f
in $tm_file; do
11783 f
=`echo $f | sed 's/^..//'`
11784 tm_file_list
="${tm_file_list} $f"
11785 tm_include_list
="${tm_include_list} $f"
11788 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11789 tm_include_list
="${tm_include_list} $f"
11792 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11793 tm_include_list
="${tm_include_list} config/$f"
11800 for f
in $tm_p_file; do
11803 tm_p_file_list
="${tm_p_file_list} $f"
11804 tm_p_include_list
="${tm_p_include_list} $f"
11807 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11808 tm_p_include_list
="${tm_p_include_list} config/$f"
11814 for f
in $xm_file; do
11817 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11818 xm_include_list
="${xm_include_list} $f"
11821 xm_file_list
="${xm_file_list} $f"
11822 xm_include_list
="${xm_include_list} $f"
11825 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11826 xm_include_list
="${xm_include_list} config/$f"
11832 host_xm_include_list
=
11833 for f
in $host_xm_file; do
11836 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11837 host_xm_include_list
="${host_xm_include_list} $f"
11840 host_xm_file_list
="${host_xm_file_list} $f"
11841 host_xm_include_list
="${host_xm_include_list} $f"
11844 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11845 host_xm_include_list
="${host_xm_include_list} config/$f"
11850 build_xm_file_list
=
11851 for f
in $build_xm_file; do
11854 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11855 build_xm_include_list
="${build_xm_include_list} $f"
11857 auto-build.h | auto-host.h
)
11858 build_xm_file_list
="${build_xm_file_list} $f"
11859 build_xm_include_list
="${build_xm_include_list} $f"
11862 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11863 build_xm_include_list
="${build_xm_include_list} config/$f"
11868 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11869 # cross-compiler which does not use the native headers and libraries.
11870 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11873 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11875 if test "x$with_build_sysroot" != x
; then
11876 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11878 # This value is used, even on a native system, because
11879 # CROSS_SYSTEM_HEADER_DIR is just
11880 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11881 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11884 if test x
$host != x
$target
11886 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11888 SYSTEM_HEADER_DIR
=$build_system_header_dir
11889 case "$host","$target" in
11890 # Darwin crosses can use the host system's libraries and headers,
11891 # because of the fat library support. Of course, it must be the
11892 # same version of Darwin on both sides. Allow the user to
11893 # just say --target=foo-darwin without a version number to mean
11894 # "the version on this system".
11895 *-*-darwin*,*-*-darwin*)
11896 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11897 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11898 if test $hostos = $targetos -o $targetos = darwin
; then
11900 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11905 i?
86-*-*,x86_64-
*-* \
11906 | powerpc
*-*-*,powerpc64
*-*-*)
11907 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11912 if test "x$with_headers" = x
; then
11919 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11920 SYSTEM_HEADER_DIR
=$build_system_header_dir
11923 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
11924 if test "x$with_headers" != x
; then
11925 target_header_dir
=$with_headers
11926 elif test "x$with_sysroot" = x
; then
11927 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
11928 elif test "x$with_build_sysroot" != "x"; then
11929 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
11930 elif test "x$with_sysroot" = xyes
; then
11931 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
11933 target_header_dir
="${with_sysroot}${native_system_header_dir}"
11936 target_header_dir
=${native_system_header_dir}
11939 # If this is a cross-compiler that does not
11940 # have its own set of headers then define
11943 # If this is using newlib, without having the headers available now,
11944 # then define inhibit_libc in LIBGCC2_CFLAGS.
11945 # This prevents libgcc2 from containing any code which requires libc
11947 : ${inhibit_libc=false}
11948 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11949 test x
$with_newlib = xyes
; } &&
11950 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
11955 # When building gcc with a cross-compiler, we need to adjust things so
11956 # that the generator programs are still built with the native compiler.
11957 # Also, we cannot run fixincludes.
11959 # These are the normal (build=host) settings:
11960 CC_FOR_BUILD
='$(CC)'
11961 CXX_FOR_BUILD
='$(CXX)'
11962 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11963 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11964 BUILD_LDFLAGS
='$(LDFLAGS)'
11965 STMP_FIXINC
=stmp-fixinc
11967 # And these apply if build != host, or we are generating coverage data
11968 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11970 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11971 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11972 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11975 # Expand extra_headers to include complete path.
11976 # This substitutes for lots of t-* files.
11977 extra_headers_list
=
11978 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11979 for file in ${extra_headers} ; do
11980 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11983 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11984 if test x
"$use_gcc_tgmath" = xyes
11985 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11988 # Define collect2 in Makefile.
11989 case $host_can_use_collect2 in
11991 *) collect2
='collect2$(exeext)' ;;
11995 # Add a definition of USE_COLLECT2 if system wants one.
11996 case $use_collect2 in
11997 no
) use_collect2
= ;;
12000 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12001 xm_defines
="${xm_defines} USE_COLLECT2"
12002 case $host_can_use_collect2 in
12004 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12011 cat >>confdefs.h
<<_ACEOF
12012 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12016 # ---------------------------
12017 # Assembler & linker features
12018 # ---------------------------
12020 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12021 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12022 # However when ld-new is first executed from the build tree, libtool will
12023 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12024 # to the build tree. While doing this we need to use the previous-stage
12025 # linker, or we have an infinite loop. The presence of a shell script as
12026 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12027 # the gcc/collect-ld script. So we need to know how libtool works, or
12028 # exec-tool will fail.
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12034 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12039 macro_version
='2.2.7a'
12040 macro_revision
='1.3134'
12054 ltmain
="$ac_aux_dir/ltmain.sh"
12056 # Backslashify metacharacters that are still active within
12057 # double-quoted strings.
12058 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12060 # Same as above, but do not quote variable references.
12061 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12063 # Sed substitution to delay expansion of an escaped shell variable in a
12064 # double_quote_subst'ed string.
12065 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12067 # Sed substitution to delay expansion of an escaped single quote.
12068 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12070 # Sed substitution to avoid accidental globbing in evaled expressions
12071 no_glob_subst
='s/\*/\\\*/g'
12073 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12074 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12075 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12078 $as_echo_n "checking how to print strings... " >&6; }
12079 # Test print first, because it will be a builtin if present.
12080 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12081 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12083 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12086 # Use this function as a fallback that always works.
12087 func_fallback_echo ()
12089 eval 'cat <<_LTECHO_EOF
12093 ECHO='func_fallback_echo
'
12096 # func_echo_all arg...
12097 # Invoke $ECHO with all args, space-separated.
12104 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12105 $as_echo "printf" >&6; } ;;
12106 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12107 $as_echo "print -r" >&6; } ;;
12108 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12109 $as_echo "cat" >&6; } ;;
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12126 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12127 if test "${ac_cv_path_SED+set}" = set; then :
12128 $as_echo_n "(cached) " >&6
12130 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12131 for ac_i in 1 2 3 4 5 6 7; do
12132 ac_script="$ac_script$as_nl$ac_script"
12134 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12135 { ac_script=; unset ac_script;}
12136 if test -z "$SED"; then
12137 ac_path_SED_found=false
12138 # Loop through the user's path and
test for each of PROGNAME-LIST
12139 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12140 for as_dir
in $PATH
12143 test -z "$as_dir" && as_dir
=.
12144 for ac_prog
in sed gsed
; do
12145 for ac_exec_ext
in '' $ac_executable_extensions; do
12146 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12147 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12148 # Check for GNU ac_path_SED and select it if it is found.
12149 # Check for GNU $ac_path_SED
12150 case `"$ac_path_SED" --version 2>&1` in
12152 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12155 $as_echo_n 0123456789 >"conftest.in"
12158 cat "conftest.in" "conftest.in" >"conftest.tmp"
12159 mv "conftest.tmp" "conftest.in"
12160 cp "conftest.in" "conftest.nl"
12161 $as_echo '' >> "conftest.nl"
12162 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12163 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12164 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12165 if test $ac_count -gt ${ac_path_SED_max-0}; then
12166 # Best one so far, save it but keep looking for a better one
12167 ac_cv_path_SED
="$ac_path_SED"
12168 ac_path_SED_max
=$ac_count
12170 # 10*(2^10) chars as input seems more than enough
12171 test $ac_count -gt 10 && break
12173 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12176 $ac_path_SED_found && break 3
12181 if test -z "$ac_cv_path_SED"; then
12182 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12185 ac_cv_path_SED
=$SED
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12190 $as_echo "$ac_cv_path_SED" >&6; }
12191 SED
="$ac_cv_path_SED"
12194 test -z "$SED" && SED
=sed
12195 Xsed
="$SED -e 1s/^X//"
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12208 $as_echo_n "checking for fgrep... " >&6; }
12209 if test "${ac_cv_path_FGREP+set}" = set; then :
12210 $as_echo_n "(cached) " >&6
12212 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12213 then ac_cv_path_FGREP
="$GREP -F"
12215 if test -z "$FGREP"; then
12216 ac_path_FGREP_found
=false
12217 # Loop through the user's path and test for each of PROGNAME-LIST
12218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12219 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12222 test -z "$as_dir" && as_dir
=.
12223 for ac_prog
in fgrep
; do
12224 for ac_exec_ext
in '' $ac_executable_extensions; do
12225 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12226 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12227 # Check for GNU ac_path_FGREP and select it if it is found.
12228 # Check for GNU $ac_path_FGREP
12229 case `"$ac_path_FGREP" --version 2>&1` in
12231 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12234 $as_echo_n 0123456789 >"conftest.in"
12237 cat "conftest.in" "conftest.in" >"conftest.tmp"
12238 mv "conftest.tmp" "conftest.in"
12239 cp "conftest.in" "conftest.nl"
12240 $as_echo 'FGREP' >> "conftest.nl"
12241 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12242 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12243 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12244 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12245 # Best one so far, save it but keep looking for a better one
12246 ac_cv_path_FGREP
="$ac_path_FGREP"
12247 ac_path_FGREP_max
=$ac_count
12249 # 10*(2^10) chars as input seems more than enough
12250 test $ac_count -gt 10 && break
12252 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12255 $ac_path_FGREP_found && break 3
12260 if test -z "$ac_cv_path_FGREP"; then
12261 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12264 ac_cv_path_FGREP
=$FGREP
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12270 $as_echo "$ac_cv_path_FGREP" >&6; }
12271 FGREP
="$ac_cv_path_FGREP"
12274 test -z "$GREP" && GREP
=grep
12294 # Check whether --with-gnu-ld was given.
12295 if test "${with_gnu_ld+set}" = set; then :
12296 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12302 if test "$GCC" = yes; then
12303 # Check if gcc -print-prog-name=ld gives a path.
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12305 $as_echo_n "checking for ld used by $CC... " >&6; }
12308 # gcc leaves a trailing carriage return which upsets mingw
12309 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12311 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12314 # Accept absolute paths.
12316 re_direlt
='/[^/][^/]*/\.\./'
12317 # Canonicalize the pathname of ld
12318 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12319 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12320 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12322 test -z "$LD" && LD
="$ac_prog"
12325 # If it fails, then pretend we aren't using GCC.
12329 # If it is relative, then search for the first ld in PATH.
12330 with_gnu_ld
=unknown
12333 elif test "$with_gnu_ld" = yes; then
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12335 $as_echo_n "checking for GNU ld... " >&6; }
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12338 $as_echo_n "checking for non-GNU ld... " >&6; }
12340 if test "${lt_cv_path_LD+set}" = set; then :
12341 $as_echo_n "(cached) " >&6
12343 if test -z "$LD"; then
12344 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12345 for ac_dir
in $PATH; do
12347 test -z "$ac_dir" && ac_dir
=.
12348 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12349 lt_cv_path_LD
="$ac_dir/$ac_prog"
12350 # Check to see if the program is GNU ld. I'd rather use --version,
12351 # but apparently some variants of GNU ld only accept -v.
12352 # Break only if it was the GNU/non-GNU ld that we prefer.
12353 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12354 *GNU
* |
*'with BFD'*)
12355 test "$with_gnu_ld" != no
&& break
12358 test "$with_gnu_ld" != yes && break
12365 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12369 LD
="$lt_cv_path_LD"
12370 if test -n "$LD"; then
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12372 $as_echo "$LD" >&6; }
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375 $as_echo "no" >&6; }
12377 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12379 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12380 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12381 $as_echo_n "(cached) " >&6
12383 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12384 case `$LD -v 2>&1 </dev/null` in
12385 *GNU
* |
*'with BFD'*)
12386 lt_cv_prog_gnu_ld
=yes
12389 lt_cv_prog_gnu_ld
=no
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12394 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12395 with_gnu_ld
=$lt_cv_prog_gnu_ld
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12406 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12407 if test "${lt_cv_path_NM+set}" = set; then :
12408 $as_echo_n "(cached) " >&6
12410 if test -n "$NM"; then
12411 # Let the user override the test.
12412 lt_cv_path_NM
="$NM"
12414 lt_nm_to_check
="${ac_tool_prefix}nm"
12415 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12416 lt_nm_to_check
="$lt_nm_to_check nm"
12418 for lt_tmp_nm
in $lt_nm_to_check; do
12419 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12420 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12422 test -z "$ac_dir" && ac_dir
=.
12423 tmp_nm
="$ac_dir/$lt_tmp_nm"
12424 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12425 # Check to see if the nm accepts a BSD-compat flag.
12426 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12427 # nm: unknown option "B" ignored
12428 # Tru64's nm complains that /dev/null is an invalid object file
12429 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12430 */dev
/null
* |
*'Invalid file or object type'*)
12431 lt_cv_path_NM
="$tmp_nm -B"
12435 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12437 lt_cv_path_NM
="$tmp_nm -p"
12441 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12442 continue # so that we can try to find one that supports BSD flags
12451 : ${lt_cv_path_NM=no}
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12455 $as_echo "$lt_cv_path_NM" >&6; }
12456 if test "$lt_cv_path_NM" != "no"; then
12457 NM
="$lt_cv_path_NM"
12459 # Didn't find any BSD compatible name lister, look for dumpbin.
12460 if test -n "$DUMPBIN"; then :
12461 # Let the user override the test.
12463 if test -n "$ac_tool_prefix"; then
12464 for ac_prog
in dumpbin
"link -dump"
12466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12467 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12469 $as_echo_n "checking for $ac_word... " >&6; }
12470 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12471 $as_echo_n "(cached) " >&6
12473 if test -n "$DUMPBIN"; then
12474 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12477 for as_dir
in $PATH
12480 test -z "$as_dir" && as_dir
=.
12481 for ac_exec_ext
in '' $ac_executable_extensions; do
12482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12483 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12493 DUMPBIN
=$ac_cv_prog_DUMPBIN
12494 if test -n "$DUMPBIN"; then
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12496 $as_echo "$DUMPBIN" >&6; }
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499 $as_echo "no" >&6; }
12503 test -n "$DUMPBIN" && break
12506 if test -z "$DUMPBIN"; then
12507 ac_ct_DUMPBIN
=$DUMPBIN
12508 for ac_prog
in dumpbin
"link -dump"
12510 # Extract the first word of "$ac_prog", so it can be a program name with args.
12511 set dummy
$ac_prog; ac_word
=$2
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12513 $as_echo_n "checking for $ac_word... " >&6; }
12514 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12515 $as_echo_n "(cached) " >&6
12517 if test -n "$ac_ct_DUMPBIN"; then
12518 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12520 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12521 for as_dir
in $PATH
12524 test -z "$as_dir" && as_dir
=.
12525 for ac_exec_ext
in '' $ac_executable_extensions; do
12526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12527 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12537 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12538 if test -n "$ac_ct_DUMPBIN"; then
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12540 $as_echo "$ac_ct_DUMPBIN" >&6; }
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12543 $as_echo "no" >&6; }
12547 test -n "$ac_ct_DUMPBIN" && break
12550 if test "x$ac_ct_DUMPBIN" = x
; then
12553 case $cross_compiling:$ac_tool_warned in
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12557 ac_tool_warned
=yes ;;
12559 DUMPBIN
=$ac_ct_DUMPBIN
12563 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12565 DUMPBIN
="$DUMPBIN -symbols"
12573 if test "$DUMPBIN" != ":"; then
12577 test -z "$NM" && NM
=nm
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12585 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12586 if test "${lt_cv_nm_interface+set}" = set; then :
12587 $as_echo_n "(cached) " >&6
12589 lt_cv_nm_interface
="BSD nm"
12590 echo "int some_variable = 0;" > conftest.
$ac_ext
12591 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12592 (eval "$ac_compile" 2>conftest.err
)
12593 cat conftest.err
>&5
12594 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12595 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12596 cat conftest.err
>&5
12597 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12598 cat conftest.out
>&5
12599 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12600 lt_cv_nm_interface
="MS dumpbin"
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12605 $as_echo "$lt_cv_nm_interface" >&6; }
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12608 $as_echo_n "checking whether ln -s works... " >&6; }
12610 if test "$LN_S" = "ln -s"; then
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12612 $as_echo "yes" >&6; }
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12615 $as_echo "no, using $LN_S" >&6; }
12618 # find the maximum length of command line arguments
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12620 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12621 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12622 $as_echo_n "(cached) " >&6
12629 # On DJGPP, this test can blow up pretty badly due to problems in libc
12630 # (any single argument exceeding 2000 bytes causes a buffer overrun
12631 # during glob expansion). Even if it were fixed, the result of this
12632 # check would be larger than it should be.
12633 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12637 # Under GNU Hurd, this test is not required because there is
12638 # no limit to the length of command line arguments.
12639 # Libtool will interpret -1 as no limit whatsoever
12640 lt_cv_sys_max_cmd_len
=-1;
12643 cygwin
* | mingw
* | cegcc
*)
12644 # On Win9x/ME, this test blows up -- it succeeds, but takes
12645 # about 5 minutes as the teststring grows exponentially.
12646 # Worse, since 9x/ME are not pre-emptively multitasking,
12647 # you end up with a "frozen" computer, even though with patience
12648 # the test eventually succeeds (with a max line length of 256k).
12649 # Instead, let's just punt: use the minimum linelength reported by
12650 # all of the supported platforms: 8192 (on NT/2K/XP).
12651 lt_cv_sys_max_cmd_len
=8192;
12655 # On MiNT this can take a long time and run out of memory.
12656 lt_cv_sys_max_cmd_len
=8192;
12660 # On AmigaOS with pdksh, this test takes hours, literally.
12661 # So we just punt and use a minimum line length of 8192.
12662 lt_cv_sys_max_cmd_len
=8192;
12665 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12666 # This has been around since 386BSD, at least. Likely further.
12667 if test -x /sbin
/sysctl
; then
12668 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12669 elif test -x /usr
/sbin
/sysctl
; then
12670 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12672 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12674 # And add a safety zone
12675 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12676 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12680 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12681 lt_cv_sys_max_cmd_len
=196608
12685 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12686 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12687 # nice to cause kernel panics so lets avoid the loop below.
12688 # First set a reasonable default.
12689 lt_cv_sys_max_cmd_len
=16384
12691 if test -x /sbin
/sysconfig
; then
12692 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12693 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12698 lt_cv_sys_max_cmd_len
=102400
12700 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12701 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12702 if test -n "$kargmax"; then
12703 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12705 lt_cv_sys_max_cmd_len
=32768
12709 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12710 if test -n "$lt_cv_sys_max_cmd_len"; then
12711 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12712 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12714 # Make teststring a little bigger before we do anything with it.
12715 # a 1K string should be a reasonable start.
12716 for i
in 1 2 3 4 5 6 7 8 ; do
12717 teststring
=$teststring$teststring
12719 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12720 # If test is not a shell built-in, we'll probably end up computing a
12721 # maximum length that is only half of the actual maximum length, but
12723 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12724 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12725 test $i != 17 # 1/2 MB should be enough
12728 teststring
=$teststring$teststring
12730 # Only check the string length outside the loop.
12731 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12733 # Add a significant safety factor because C++ compilers can tack on
12734 # massive amounts of additional arguments before passing them to the
12735 # linker. It appears as though 1/2 is a usable value.
12736 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12743 if test -n $lt_cv_sys_max_cmd_len ; then
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12745 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12748 $as_echo "none" >&6; }
12750 max_cmd_len
=$lt_cv_sys_max_cmd_len
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12762 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12763 # Try some XSI features
12765 ( _lt_dummy
="a/b/c"
12766 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12768 && eval 'test $(( 1 + 1 )) -eq 2 \
12769 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12772 $as_echo "$xsi_shell" >&6; }
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12776 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12778 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12780 && lt_shell_append=yes
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12782 $as_echo "$lt_shell_append" >&6; }
12785 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12795 # test EBCDIC or ASCII
12796 case `echo X|tr X '\101'` in
12797 A) # ASCII based system
12798 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12799 lt_SP2NL='tr \040 \012'
12800 lt_NL2SP='tr \015\012 \040\040'
12802 *) # EBCDIC based system
12803 lt_SP2NL='tr \100 \n'
12804 lt_NL2SP='tr \r\n \100\100'
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12817 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12818 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12819 $as_echo_n "(cached
) " >&6
12821 lt_cv_ld_reload_flag='-r'
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12824 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12825 reload_flag=$lt_cv_ld_reload_flag
12826 case $reload_flag in
12828 *) reload_flag=" $reload_flag" ;;
12830 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12833 if test "$GCC" = yes; then
12834 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12836 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12849 if test -n "$ac_tool_prefix"; then
12850 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12851 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12853 $as_echo_n "checking
for $ac_word...
" >&6; }
12854 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12855 $as_echo_n "(cached
) " >&6
12857 if test -n "$OBJDUMP"; then
12858 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861 for as_dir in $PATH
12864 test -z "$as_dir" && as_dir=.
12865 for ac_exec_ext in '' $ac_executable_extensions; do
12866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12867 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12868 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12877 OBJDUMP=$ac_cv_prog_OBJDUMP
12878 if test -n "$OBJDUMP"; then
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12880 $as_echo "$OBJDUMP" >&6; }
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12883 $as_echo "no
" >&6; }
12888 if test -z "$ac_cv_prog_OBJDUMP"; then
12889 ac_ct_OBJDUMP=$OBJDUMP
12890 # Extract the first word of "objdump
", so it can be a program name with args.
12891 set dummy objdump; ac_word=$2
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12893 $as_echo_n "checking
for $ac_word...
" >&6; }
12894 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12895 $as_echo_n "(cached
) " >&6
12897 if test -n "$ac_ct_OBJDUMP"; then
12898 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12901 for as_dir in $PATH
12904 test -z "$as_dir" && as_dir=.
12905 for ac_exec_ext in '' $ac_executable_extensions; do
12906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12907 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12908 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12917 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12918 if test -n "$ac_ct_OBJDUMP"; then
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12920 $as_echo "$ac_ct_OBJDUMP" >&6; }
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12923 $as_echo "no
" >&6; }
12926 if test "x
$ac_ct_OBJDUMP" = x; then
12929 case $cross_compiling:$ac_tool_warned in
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12932 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12933 ac_tool_warned=yes ;;
12935 OBJDUMP=$ac_ct_OBJDUMP
12938 OBJDUMP="$ac_cv_prog_OBJDUMP"
12941 test -z "$OBJDUMP" && OBJDUMP=objdump
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12952 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12953 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12954 $as_echo_n "(cached
) " >&6
12956 lt_cv_file_magic_cmd='$MAGIC_CMD'
12957 lt_cv_file_magic_test_file=
12958 lt_cv_deplibs_check_method='unknown'
12959 # Need to set the preceding variable on all platforms that support
12960 # interlibrary dependencies.
12961 # 'none' -- dependencies not supported.
12962 # `unknown' -- same as none, but documents that we really don't know.
12963 # 'pass_all' -- all dependencies passed with no checks.
12964 # 'test_compile' -- check by making test program.
12965 # 'file_magic [[regex]]' -- check by looking for files in library path
12966 # which responds to the $file_magic_cmd with a given extended regex.
12967 # If you have `file' or equivalent on your system and you're not sure
12968 # whether `pass_all' will *always* work, you probably want this one.
12972 lt_cv_deplibs_check_method=pass_all
12976 lt_cv_deplibs_check_method=pass_all
12980 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12981 lt_cv_file_magic_cmd='/usr/bin/file -L'
12982 lt_cv_file_magic_test_file=/shlib/libc.so
12986 # func_win32_libid is a shell function defined in ltmain.sh
12987 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12988 lt_cv_file_magic_cmd='func_win32_libid'
12992 # Base MSYS/MinGW do not provide the 'file' command needed by
12993 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12994 # unless we find 'file', for example because we are cross-compiling.
12995 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12996 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12997 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12998 lt_cv_file_magic_cmd='func_win32_libid'
13000 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13001 lt_cv_file_magic_cmd='$OBJDUMP -f'
13006 # use the weaker test based on 'objdump'. See mingw*.
13007 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13008 lt_cv_file_magic_cmd='$OBJDUMP -f'
13011 darwin* | rhapsody*)
13012 lt_cv_deplibs_check_method=pass_all
13015 freebsd* | dragonfly*)
13016 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13019 # Not sure whether the presence of OpenBSD here was a mistake.
13020 # Let's accept both of them until this is cleared up.
13021 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13022 lt_cv_file_magic_cmd=/usr/bin/file
13023 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13027 lt_cv_deplibs_check_method=pass_all
13032 lt_cv_deplibs_check_method=pass_all
13036 lt_cv_deplibs_check_method=pass_all
13039 hpux10.20* | hpux11*)
13040 lt_cv_file_magic_cmd=/usr/bin/file
13043 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13044 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13047 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]'
13048 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13051 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13052 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13058 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13059 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13062 irix5* | irix6* | nonstopux*)
13064 *-32|*"-32 ") libmagic=32-bit;;
13065 *-n32|*"-n32 ") libmagic=N32;;
13066 *-64|*"-64 ") libmagic=64-bit;;
13067 *) libmagic=never-match;;
13069 lt_cv_deplibs_check_method=pass_all
13072 # This must be Linux ELF.
13073 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13074 lt_cv_deplibs_check_method=pass_all
13078 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13079 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13086 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13087 lt_cv_file_magic_cmd=/usr/bin/file
13088 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13092 lt_cv_deplibs_check_method=pass_all
13096 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13103 osf3* | osf4* | osf5*)
13104 lt_cv_deplibs_check_method=pass_all
13108 lt_cv_deplibs_check_method=pass_all
13112 lt_cv_deplibs_check_method=pass_all
13115 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13116 lt_cv_deplibs_check_method=pass_all
13120 case $host_vendor in
13122 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]'
13123 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13126 lt_cv_deplibs_check_method=pass_all
13129 lt_cv_file_magic_cmd='/bin/file'
13130 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13133 lt_cv_file_magic_cmd='/bin/file'
13134 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13135 lt_cv_file_magic_test_file=/lib/libc.so
13138 lt_cv_deplibs_check_method=pass_all
13141 lt_cv_deplibs_check_method=pass_all
13147 lt_cv_deplibs_check_method=pass_all
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13153 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13154 file_magic_cmd=$lt_cv_file_magic_cmd
13155 deplibs_check_method=$lt_cv_deplibs_check_method
13156 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13169 if test -n "$ac_tool_prefix"; then
13170 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13171 set dummy ${ac_tool_prefix}ar; ac_word=$2
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13173 $as_echo_n "checking
for $ac_word...
" >&6; }
13174 if test "${ac_cv_prog_AR+set}" = set; then :
13175 $as_echo_n "(cached
) " >&6
13177 if test -n "$AR"; then
13178 ac_cv_prog_AR="$AR" # Let the user override the test.
13180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13181 for as_dir in $PATH
13184 test -z "$as_dir" && as_dir=.
13185 for ac_exec_ext in '' $ac_executable_extensions; do
13186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13187 ac_cv_prog_AR="${ac_tool_prefix}ar"
13188 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13198 if test -n "$AR"; then
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13200 $as_echo "$AR" >&6; }
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13203 $as_echo "no
" >&6; }
13208 if test -z "$ac_cv_prog_AR"; then
13210 # Extract the first word of "ar", so it can be a program name with args.
13211 set dummy ar; 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_ac_ct_AR+set}" = set; then :
13215 $as_echo_n "(cached
) " >&6
13217 if test -n "$ac_ct_AR"; then
13218 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_ac_ct_AR="ar"
13228 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13237 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13238 if test -n "$ac_ct_AR"; then
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13240 $as_echo "$ac_ct_AR" >&6; }
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13243 $as_echo "no
" >&6; }
13246 if test "x
$ac_ct_AR" = x; then
13249 case $cross_compiling:$ac_tool_warned in
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13252 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13253 ac_tool_warned=yes ;;
13258 AR="$ac_cv_prog_AR"
13261 test -z "$AR" && AR=ar
13262 test -z "$AR_FLAGS" && AR_FLAGS=cru
13274 if test -n "$ac_tool_prefix"; then
13275 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13276 set dummy ${ac_tool_prefix}strip; ac_word=$2
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13278 $as_echo_n "checking
for $ac_word...
" >&6; }
13279 if test "${ac_cv_prog_STRIP+set}" = set; then :
13280 $as_echo_n "(cached
) " >&6
13282 if test -n "$STRIP"; then
13283 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286 for as_dir in $PATH
13289 test -z "$as_dir" && as_dir=.
13290 for ac_exec_ext in '' $ac_executable_extensions; do
13291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13292 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13293 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13302 STRIP=$ac_cv_prog_STRIP
13303 if test -n "$STRIP"; then
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13305 $as_echo "$STRIP" >&6; }
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13308 $as_echo "no
" >&6; }
13313 if test -z "$ac_cv_prog_STRIP"; then
13315 # Extract the first word of "strip
", so it can be a program name with args.
13316 set dummy strip; ac_word=$2
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13318 $as_echo_n "checking
for $ac_word...
" >&6; }
13319 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13320 $as_echo_n "(cached
) " >&6
13322 if test -n "$ac_ct_STRIP"; then
13323 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13326 for as_dir in $PATH
13329 test -z "$as_dir" && as_dir=.
13330 for ac_exec_ext in '' $ac_executable_extensions; do
13331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13332 ac_cv_prog_ac_ct_STRIP="strip
"
13333 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13342 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13343 if test -n "$ac_ct_STRIP"; then
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13345 $as_echo "$ac_ct_STRIP" >&6; }
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13348 $as_echo "no
" >&6; }
13351 if test "x
$ac_ct_STRIP" = x; then
13354 case $cross_compiling:$ac_tool_warned in
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13357 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13358 ac_tool_warned=yes ;;
13363 STRIP="$ac_cv_prog_STRIP"
13366 test -z "$STRIP" && STRIP=:
13373 if test -n "$ac_tool_prefix"; then
13374 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13375 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13377 $as_echo_n "checking
for $ac_word...
" >&6; }
13378 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13379 $as_echo_n "(cached
) " >&6
13381 if test -n "$RANLIB"; then
13382 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13385 for as_dir in $PATH
13388 test -z "$as_dir" && as_dir=.
13389 for ac_exec_ext in '' $ac_executable_extensions; do
13390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13391 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13392 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13401 RANLIB=$ac_cv_prog_RANLIB
13402 if test -n "$RANLIB"; then
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13404 $as_echo "$RANLIB" >&6; }
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13407 $as_echo "no
" >&6; }
13412 if test -z "$ac_cv_prog_RANLIB"; then
13413 ac_ct_RANLIB=$RANLIB
13414 # Extract the first word of "ranlib
", so it can be a program name with args.
13415 set dummy ranlib; ac_word=$2
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13417 $as_echo_n "checking
for $ac_word...
" >&6; }
13418 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13419 $as_echo_n "(cached
) " >&6
13421 if test -n "$ac_ct_RANLIB"; then
13422 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13425 for as_dir in $PATH
13428 test -z "$as_dir" && as_dir=.
13429 for ac_exec_ext in '' $ac_executable_extensions; do
13430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13431 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13432 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13441 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13442 if test -n "$ac_ct_RANLIB"; then
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13444 $as_echo "$ac_ct_RANLIB" >&6; }
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13447 $as_echo "no
" >&6; }
13450 if test "x
$ac_ct_RANLIB" = x; then
13453 case $cross_compiling:$ac_tool_warned in
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13456 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13457 ac_tool_warned=yes ;;
13459 RANLIB=$ac_ct_RANLIB
13462 RANLIB="$ac_cv_prog_RANLIB"
13465 test -z "$RANLIB" && RANLIB=:
13472 # Determine commands to create old-style static archives.
13473 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13474 old_postinstall_cmds='chmod 644 $oldlib'
13475 old_postuninstall_cmds=
13477 if test -n "$RANLIB"; then
13480 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13483 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13486 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13491 lock_old_archive_extraction=yes ;;
13493 lock_old_archive_extraction=no ;;
13534 # If no C compiler was specified, use CC.
13537 # If no C compiler flags were specified, use CFLAGS.
13538 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13540 # Allow CC to be a program name with arguments.
13544 # Check for command to grab the raw symbol name followed by C symbol from nm.
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13546 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13547 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13548 $as_echo_n "(cached
) " >&6
13551 # These are sane defaults that work on at least a few old systems.
13552 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13554 # Character class describing NM global symbol codes.
13555 symcode='[BCDEGRST]'
13557 # Regexp to match symbols that can be accessed directly from C.
13558 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13560 # Define system-specific variables.
13565 cygwin* | mingw* | pw32* | cegcc*)
13566 symcode='[ABCDGISTW]'
13569 if test "$host_cpu" = ia64; then
13570 symcode='[ABCDEGRST]'
13573 irix* | nonstopux*)
13574 symcode='[BCDEGRST]'
13577 symcode='[BCDEGQRST]'
13588 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13596 # If we're using GNU nm, then use its standard symbol codes.
13597 case `$NM -V 2>&1` in
13598 *GNU* | *'with BFD'*)
13599 symcode='[ABCDGIRSTW]' ;;
13602 # Transform an extracted symbol line into a proper C declaration.
13603 # Some systems (esp. on ia64) link data and code symbols differently,
13604 # so use this general approach.
13605 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13607 # Transform an extracted symbol line into symbol name and symbol address
13608 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13609 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'"
13611 # Handle CRLF in mingw tool chain
13615 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13619 # Try without a prefix underscore, then with it.
13620 for ac_symprfx in "" "_
"; do
13622 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13623 symxfrm="\\1 $ac_symprfx\\2 \\2"
13625 # Write the raw and C identifiers.
13626 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13627 # Fake it for dumpbin and say T for any non-static function
13628 # and D for any global variable.
13629 # Also find C++ and __fastcall symbols from MSVC++,
13630 # which start with @ or ?.
13631 lt_cv_sys_global_symbol_pipe="$AWK '"\
13632 " {last_section=section; section=\$ 3};"\
13633 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13634 " \$ 0!~/External *\|/{next};"\
13635 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13636 " {if(hide[section]) next};"\
13637 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13638 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13639 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13640 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13641 " ' prfx
=^
$ac_symprfx"
13643 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13646 # Check to see that the pipe works correctly.
13650 cat > conftest.$ac_ext <<_LT_EOF
13655 void nm_test_func(void);
13656 void nm_test_func(void){}
13660 int main(){nm_test_var='a';nm_test_func();return(0);}
13663 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13664 (eval $ac_compile) 2>&5
13666 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13667 test $ac_status = 0; }; then
13668 # Now try to grab the symbols.
13670 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13671 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13673 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13674 test $ac_status = 0; } && test -s "$nlist"; then
13675 # Try sorting and uniquifying the output.
13676 if sort "$nlist" | uniq > "$nlist"T; then
13677 mv -f "$nlist"T "$nlist"
13682 # Make sure that we snagged all the symbols we need.
13683 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13684 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13685 cat <<_LT_EOF > conftest.$ac_ext
13691 # Now generate the symbol file.
13692 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13694 cat <<_LT_EOF >> conftest.$ac_ext
13696 /* The mapping between symbol names and symbols. */
13701 lt__PROGRAM__LTX_preloaded_symbols[] =
13703 { "@PROGRAM@
", (void *) 0 },
13705 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13706 cat <<\_LT_EOF >> conftest.$ac_ext
13710 /* This works around a problem in FreeBSD linker */
13711 #ifdef FREEBSD_WORKAROUND
13712 static const void *lt_preloaded_setup() {
13713 return lt__PROGRAM__LTX_preloaded_symbols;
13721 # Now try linking the two files.
13722 mv conftest.$ac_objext conftstm.$ac_objext
13723 lt_save_LIBS="$LIBS"
13724 lt_save_CFLAGS="$CFLAGS"
13725 LIBS="conftstm.
$ac_objext"
13726 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13727 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13728 (eval $ac_link) 2>&5
13730 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13731 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13734 LIBS="$lt_save_LIBS"
13735 CFLAGS="$lt_save_CFLAGS"
13737 echo "cannot
find nm_test_func
in $nlist" >&5
13740 echo "cannot
find nm_test_var
in $nlist" >&5
13743 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13746 echo "$progname: failed program was
:" >&5
13747 cat conftest.$ac_ext >&5
13749 rm -rf conftest* conftst*
13751 # Do not use the global_symbol_pipe unless it works.
13752 if test "$pipe_works" = yes; then
13755 lt_cv_sys_global_symbol_pipe=
13761 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13762 lt_cv_sys_global_symbol_to_cdecl=
13764 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13766 $as_echo "failed
" >&6; }
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13769 $as_echo "ok
" >&6; }
13793 # Check whether --enable-libtool-lock was given.
13794 if test "${enable_libtool_lock+set}" = set; then :
13795 enableval=$enable_libtool_lock;
13798 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13800 # Some flags need to be propagated to the compiler or linker for good
13804 # Find out which ABI we are using.
13805 echo 'int i;' > conftest.$ac_ext
13806 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13807 (eval $ac_compile) 2>&5
13809 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13810 test $ac_status = 0; }; then
13811 case `/usr/bin/file conftest.$ac_objext` in
13813 HPUX_IA64_MODE="32"
13816 HPUX_IA64_MODE="64"
13823 # Find out which ABI we are using.
13824 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13825 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13826 (eval $ac_compile) 2>&5
13828 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13829 test $ac_status = 0; }; then
13830 if test "$lt_cv_prog_gnu_ld" = yes; then
13831 case `/usr/bin/file conftest.$ac_objext` in
13833 LD="${LD-ld} -melf32bsmip"
13836 LD="${LD-ld} -melf32bmipn32"
13839 LD="${LD-ld} -melf64bmip"
13843 case `/usr/bin/file conftest.$ac_objext` in
13859 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13860 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13861 # Find out which ABI we are using.
13862 echo 'int i;' > conftest.$ac_ext
13863 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13864 (eval $ac_compile) 2>&5
13866 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13867 test $ac_status = 0; }; then
13868 case `/usr/bin/file conftest.o` in
13871 x86_64-*kfreebsd*-gnu)
13872 LD="${LD-ld} -m elf_i386_fbsd
"
13875 case `/usr/bin/file conftest.o` in
13877 LD="${LD-ld} -m elf32_x86_64
"
13880 LD="${LD-ld} -m elf_i386
"
13884 powerpc64le-*linux*)
13885 LD="${LD-ld} -m elf32lppclinux
"
13888 LD="${LD-ld} -m elf32ppclinux
"
13891 LD="${LD-ld} -m elf_s390
"
13894 LD="${LD-ld} -m elf32_sparc
"
13900 x86_64-*kfreebsd*-gnu)
13901 LD="${LD-ld} -m elf_x86_64_fbsd
"
13904 LD="${LD-ld} -m elf_x86_64
"
13907 LD="${LD-ld} -m elf64lppc
"
13910 LD="${LD-ld} -m elf64ppc
"
13912 s390*-*linux*|s390*-*tpf*)
13913 LD="${LD-ld} -m elf64_s390
"
13916 LD="${LD-ld} -m elf64_sparc
"
13926 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13927 SAVE_CFLAGS="$CFLAGS"
13928 CFLAGS="$CFLAGS -belf"
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13930 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13931 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13932 $as_echo_n "(cached
) " >&6
13935 ac_cpp='$CPP $CPPFLAGS'
13936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13941 /* end confdefs.h. */
13951 if ac_fn_c_try_link "$LINENO"; then :
13952 lt_cv_cc_needs_belf=yes
13954 lt_cv_cc_needs_belf=no
13956 rm -f core conftest.err conftest.$ac_objext \
13957 conftest$ac_exeext conftest.$ac_ext
13959 ac_cpp='$CPP $CPPFLAGS'
13960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13966 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13967 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13968 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13969 CFLAGS="$SAVE_CFLAGS"
13973 # Find out which ABI we are using.
13974 echo 'int i;' > conftest.$ac_ext
13975 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13976 (eval $ac_compile) 2>&5
13978 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13979 test $ac_status = 0; }; then
13980 case `/usr/bin/file conftest.o` in
13982 case $lt_cv_prog_gnu_ld in
13983 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13985 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13997 need_locks="$enable_libtool_lock"
14001 rhapsody* | darwin*)
14002 if test -n "$ac_tool_prefix"; then
14003 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14004 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14006 $as_echo_n "checking
for $ac_word...
" >&6; }
14007 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14008 $as_echo_n "(cached
) " >&6
14010 if test -n "$DSYMUTIL"; then
14011 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14014 for as_dir in $PATH
14017 test -z "$as_dir" && as_dir=.
14018 for ac_exec_ext in '' $ac_executable_extensions; do
14019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14020 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14021 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14030 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14031 if test -n "$DSYMUTIL"; then
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14033 $as_echo "$DSYMUTIL" >&6; }
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14036 $as_echo "no
" >&6; }
14041 if test -z "$ac_cv_prog_DSYMUTIL"; then
14042 ac_ct_DSYMUTIL=$DSYMUTIL
14043 # Extract the first word of "dsymutil
", so it can be a program name with args.
14044 set dummy dsymutil; ac_word=$2
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14046 $as_echo_n "checking
for $ac_word...
" >&6; }
14047 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14048 $as_echo_n "(cached
) " >&6
14050 if test -n "$ac_ct_DSYMUTIL"; then
14051 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14054 for as_dir in $PATH
14057 test -z "$as_dir" && as_dir=.
14058 for ac_exec_ext in '' $ac_executable_extensions; do
14059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14060 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14061 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14070 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14071 if test -n "$ac_ct_DSYMUTIL"; then
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14073 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14076 $as_echo "no
" >&6; }
14079 if test "x
$ac_ct_DSYMUTIL" = x; then
14082 case $cross_compiling:$ac_tool_warned in
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14085 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14086 ac_tool_warned=yes ;;
14088 DSYMUTIL=$ac_ct_DSYMUTIL
14091 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14094 if test -n "$ac_tool_prefix"; then
14095 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14096 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14098 $as_echo_n "checking
for $ac_word...
" >&6; }
14099 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14100 $as_echo_n "(cached
) " >&6
14102 if test -n "$NMEDIT"; then
14103 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14106 for as_dir in $PATH
14109 test -z "$as_dir" && as_dir=.
14110 for ac_exec_ext in '' $ac_executable_extensions; do
14111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14112 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14113 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14122 NMEDIT=$ac_cv_prog_NMEDIT
14123 if test -n "$NMEDIT"; then
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14125 $as_echo "$NMEDIT" >&6; }
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14128 $as_echo "no
" >&6; }
14133 if test -z "$ac_cv_prog_NMEDIT"; then
14134 ac_ct_NMEDIT=$NMEDIT
14135 # Extract the first word of "nmedit
", so it can be a program name with args.
14136 set dummy nmedit; ac_word=$2
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14138 $as_echo_n "checking
for $ac_word...
" >&6; }
14139 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14140 $as_echo_n "(cached
) " >&6
14142 if test -n "$ac_ct_NMEDIT"; then
14143 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14146 for as_dir in $PATH
14149 test -z "$as_dir" && as_dir=.
14150 for ac_exec_ext in '' $ac_executable_extensions; do
14151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14152 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14153 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14162 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14163 if test -n "$ac_ct_NMEDIT"; then
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14165 $as_echo "$ac_ct_NMEDIT" >&6; }
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14168 $as_echo "no
" >&6; }
14171 if test "x
$ac_ct_NMEDIT" = x; then
14174 case $cross_compiling:$ac_tool_warned in
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14177 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14178 ac_tool_warned=yes ;;
14180 NMEDIT=$ac_ct_NMEDIT
14183 NMEDIT="$ac_cv_prog_NMEDIT"
14186 if test -n "$ac_tool_prefix"; then
14187 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14188 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14190 $as_echo_n "checking
for $ac_word...
" >&6; }
14191 if test "${ac_cv_prog_LIPO+set}" = set; then :
14192 $as_echo_n "(cached
) " >&6
14194 if test -n "$LIPO"; then
14195 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14198 for as_dir in $PATH
14201 test -z "$as_dir" && as_dir=.
14202 for ac_exec_ext in '' $ac_executable_extensions; do
14203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14204 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14205 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14214 LIPO=$ac_cv_prog_LIPO
14215 if test -n "$LIPO"; then
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14217 $as_echo "$LIPO" >&6; }
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14220 $as_echo "no
" >&6; }
14225 if test -z "$ac_cv_prog_LIPO"; then
14227 # Extract the first word of "lipo
", so it can be a program name with args.
14228 set dummy lipo; ac_word=$2
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14230 $as_echo_n "checking
for $ac_word...
" >&6; }
14231 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14232 $as_echo_n "(cached
) " >&6
14234 if test -n "$ac_ct_LIPO"; then
14235 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14238 for as_dir in $PATH
14241 test -z "$as_dir" && as_dir=.
14242 for ac_exec_ext in '' $ac_executable_extensions; do
14243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14244 ac_cv_prog_ac_ct_LIPO="lipo
"
14245 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14254 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14255 if test -n "$ac_ct_LIPO"; then
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14257 $as_echo "$ac_ct_LIPO" >&6; }
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14260 $as_echo "no
" >&6; }
14263 if test "x
$ac_ct_LIPO" = x; then
14266 case $cross_compiling:$ac_tool_warned in
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14269 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14270 ac_tool_warned=yes ;;
14275 LIPO="$ac_cv_prog_LIPO"
14278 if test -n "$ac_tool_prefix"; then
14279 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14280 set dummy ${ac_tool_prefix}otool; ac_word=$2
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14282 $as_echo_n "checking
for $ac_word...
" >&6; }
14283 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14284 $as_echo_n "(cached
) " >&6
14286 if test -n "$OTOOL"; then
14287 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14290 for as_dir in $PATH
14293 test -z "$as_dir" && as_dir=.
14294 for ac_exec_ext in '' $ac_executable_extensions; do
14295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14296 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14297 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14306 OTOOL=$ac_cv_prog_OTOOL
14307 if test -n "$OTOOL"; then
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14309 $as_echo "$OTOOL" >&6; }
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14312 $as_echo "no
" >&6; }
14317 if test -z "$ac_cv_prog_OTOOL"; then
14319 # Extract the first word of "otool
", so it can be a program name with args.
14320 set dummy otool; ac_word=$2
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14322 $as_echo_n "checking
for $ac_word...
" >&6; }
14323 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14324 $as_echo_n "(cached
) " >&6
14326 if test -n "$ac_ct_OTOOL"; then
14327 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14330 for as_dir in $PATH
14333 test -z "$as_dir" && as_dir=.
14334 for ac_exec_ext in '' $ac_executable_extensions; do
14335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14336 ac_cv_prog_ac_ct_OTOOL="otool
"
14337 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14346 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14347 if test -n "$ac_ct_OTOOL"; then
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14349 $as_echo "$ac_ct_OTOOL" >&6; }
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14352 $as_echo "no
" >&6; }
14355 if test "x
$ac_ct_OTOOL" = x; then
14358 case $cross_compiling:$ac_tool_warned in
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14361 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14362 ac_tool_warned=yes ;;
14367 OTOOL="$ac_cv_prog_OTOOL"
14370 if test -n "$ac_tool_prefix"; then
14371 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14372 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14374 $as_echo_n "checking
for $ac_word...
" >&6; }
14375 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14376 $as_echo_n "(cached
) " >&6
14378 if test -n "$OTOOL64"; then
14379 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14382 for as_dir in $PATH
14385 test -z "$as_dir" && as_dir=.
14386 for ac_exec_ext in '' $ac_executable_extensions; do
14387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14388 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14389 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14398 OTOOL64=$ac_cv_prog_OTOOL64
14399 if test -n "$OTOOL64"; then
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14401 $as_echo "$OTOOL64" >&6; }
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14404 $as_echo "no
" >&6; }
14409 if test -z "$ac_cv_prog_OTOOL64"; then
14410 ac_ct_OTOOL64=$OTOOL64
14411 # Extract the first word of "otool64
", so it can be a program name with args.
14412 set dummy otool64; ac_word=$2
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14414 $as_echo_n "checking
for $ac_word...
" >&6; }
14415 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14416 $as_echo_n "(cached
) " >&6
14418 if test -n "$ac_ct_OTOOL64"; then
14419 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14422 for as_dir in $PATH
14425 test -z "$as_dir" && as_dir=.
14426 for ac_exec_ext in '' $ac_executable_extensions; do
14427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14428 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14429 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14438 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14439 if test -n "$ac_ct_OTOOL64"; then
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14441 $as_echo "$ac_ct_OTOOL64" >&6; }
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14444 $as_echo "no
" >&6; }
14447 if test "x
$ac_ct_OTOOL64" = x; then
14450 case $cross_compiling:$ac_tool_warned in
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14453 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14454 ac_tool_warned=yes ;;
14456 OTOOL64=$ac_ct_OTOOL64
14459 OTOOL64="$ac_cv_prog_OTOOL64"
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14489 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14490 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14491 $as_echo_n "(cached
) " >&6
14493 lt_cv_apple_cc_single_mod=no
14494 if test -z "${LT_MULTI_MODULE}"; then
14495 # By default we will add the -single_module flag. You can override
14496 # by either setting the environment variable LT_MULTI_MODULE
14497 # non-empty at configure time, or by adding -multi_module to the
14499 rm -rf libconftest.dylib*
14500 echo "int foo
(void
){return 1;}" > conftest.c
14501 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14502 -dynamiclib -Wl,-single_module conftest.c
" >&5
14503 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14504 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14506 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14507 lt_cv_apple_cc_single_mod=yes
14509 cat conftest.err >&5
14511 rm -rf libconftest.dylib*
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14516 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14518 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14519 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14520 $as_echo_n "(cached
) " >&6
14522 lt_cv_ld_exported_symbols_list=no
14523 save_LDFLAGS=$LDFLAGS
14524 echo "_main
" > conftest.sym
14525 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14527 /* end confdefs.h. */
14537 if ac_fn_c_try_link "$LINENO"; then :
14538 lt_cv_ld_exported_symbols_list=yes
14540 lt_cv_ld_exported_symbols_list=no
14542 rm -f core conftest.err conftest.$ac_objext \
14543 conftest$ac_exeext conftest.$ac_ext
14544 LDFLAGS="$save_LDFLAGS"
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14548 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14550 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14551 if test "${lt_cv_ld_force_load+set}" = set; then :
14552 $as_echo_n "(cached
) " >&6
14554 lt_cv_ld_force_load=no
14555 cat > conftest.c << _LT_EOF
14556 int forced_loaded() { return 2;}
14558 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14559 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14560 echo "$AR cru libconftest.a conftest.o
" >&5
14561 $AR cru libconftest.a conftest.o 2>&5
14562 cat > conftest.c << _LT_EOF
14563 int main() { return 0;}
14565 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14566 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14568 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14569 lt_cv_ld_force_load=yes
14571 cat conftest.err >&5
14573 rm -f conftest.err libconftest.a conftest conftest.c
14574 rm -rf conftest.dSYM
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14578 $as_echo "$lt_cv_ld_force_load" >&6; }
14580 rhapsody* | darwin1.[012])
14581 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14583 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14584 darwin*) # darwin 5.x on
14585 # if running on 10.5 or later, the deployment target defaults
14586 # to the OS version, if on x86, and 10.4, the deployment
14587 # target defaults to 10.4. Don't you love it?
14588 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14589 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14590 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14592 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14594 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14598 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14599 _lt_dar_single_mod='$single_module'
14601 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14602 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14604 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14606 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14607 _lt_dsymutil='~$DSYMUTIL $lib || :'
14614 for ac_header in dlfcn.h
14616 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14617 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14618 cat >>confdefs.h <<_ACEOF
14619 #define HAVE_DLFCN_H 1
14636 enable_win32_dll=no
14639 # Check whether --enable-shared was given.
14640 if test "${enable_shared+set}" = set; then :
14641 enableval=$enable_shared; p=${PACKAGE-default}
14643 yes) enable_shared=yes ;;
14644 no) enable_shared=no ;;
14647 # Look at the argument we got. We use all the common list separators.
14648 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14649 for pkg in $enableval; do
14651 if test "X
$pkg" = "X
$p"; then
14670 # Check whether --enable-static was given.
14671 if test "${enable_static+set}" = set; then :
14672 enableval=$enable_static; p=${PACKAGE-default}
14674 yes) enable_static=yes ;;
14675 no) enable_static=no ;;
14678 # Look at the argument we got. We use all the common list separators.
14679 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14680 for pkg in $enableval; do
14682 if test "X
$pkg" = "X
$p"; then
14702 # Check whether --with-pic was given.
14703 if test "${with_pic+set}" = set; then :
14704 withval=$with_pic; pic_mode="$withval"
14710 test -z "$pic_mode" && pic_mode=default
14718 # Check whether --enable-fast-install was given.
14719 if test "${enable_fast_install+set}" = set; then :
14720 enableval=$enable_fast_install; p=${PACKAGE-default}
14722 yes) enable_fast_install=yes ;;
14723 no) enable_fast_install=no ;;
14725 enable_fast_install=no
14726 # Look at the argument we got. We use all the common list separators.
14727 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14728 for pkg in $enableval; do
14730 if test "X
$pkg" = "X
$p"; then
14731 enable_fast_install=yes
14738 enable_fast_install=yes
14751 # This can be used to rebuild libtool when needed
14752 LIBTOOL_DEPS="$ltmain"
14754 # Always use our own libtool.
14755 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14782 test -z "$LN_S" && LN_S="ln -s"
14797 if test -n "${ZSH_VERSION+set}" ; then
14798 setopt NO_GLOB_SUBST
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14802 $as_echo_n "checking
for objdir...
" >&6; }
14803 if test "${lt_cv_objdir+set}" = set; then :
14804 $as_echo_n "(cached
) " >&6
14806 rm -f .libs 2>/dev/null
14807 mkdir .libs 2>/dev/null
14808 if test -d .libs; then
14811 # MS-DOS does not allow filenames that begin with a dot.
14814 rmdir .libs 2>/dev/null
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14817 $as_echo "$lt_cv_objdir" >&6; }
14818 objdir=$lt_cv_objdir
14824 cat >>confdefs.h <<_ACEOF
14825 #define LT_OBJDIR "$lt_cv_objdir/"
14833 # AIX sometimes has problems with the GCC collect2 program. For some
14834 # reason, if we set the COLLECT_NAMES environment variable, the problems
14835 # vanish in a puff of smoke.
14836 if test "X
${COLLECT_NAMES+set}" != Xset; then
14838 export COLLECT_NAMES
14843 # Global variables:
14845 can_build_shared=yes
14847 # All known linkers require a `.a' archive for static linking (except MSVC,
14848 # which needs '.lib').
14851 with_gnu_ld="$lt_cv_prog_gnu_ld"
14854 old_CFLAGS="$CFLAGS"
14856 # Set sane defaults for various variables
14857 test -z "$CC" && CC=cc
14858 test -z "$LTCC" && LTCC=$CC
14859 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14860 test -z "$LD" && LD=ld
14861 test -z "$ac_objext" && ac_objext=o
14863 for cc_temp in $compiler""; do
14865 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14866 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14871 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14874 # Only perform the check for file, if the check method requires it
14875 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14876 case $deplibs_check_method in
14878 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14880 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14881 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14882 $as_echo_n "(cached
) " >&6
14886 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14889 lt_save_MAGIC_CMD="$MAGIC_CMD"
14890 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14891 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14892 for ac_dir in $ac_dummy; do
14894 test -z "$ac_dir" && ac_dir=.
14895 if test -f $ac_dir/${ac_tool_prefix}file; then
14896 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14897 if test -n "$file_magic_test_file"; then
14898 case $deplibs_check_method in
14900 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14901 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14902 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14903 $EGREP "$file_magic_regex" > /dev/null; then
14908 *** Warning: the command libtool uses to detect shared libraries,
14909 *** $file_magic_cmd, produces output that libtool cannot recognize.
14910 *** The result is that libtool may fail to recognize shared libraries
14911 *** as such. This will affect the creation of libtool libraries that
14912 *** depend on shared libraries, but programs linked with such libtool
14913 *** libraries will work regardless of this problem. Nevertheless, you
14914 *** may want to report the problem to your system manager and/or to
14915 *** bug-libtool@gnu.org
14925 MAGIC_CMD="$lt_save_MAGIC_CMD"
14930 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14931 if test -n "$MAGIC_CMD"; then
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14933 $as_echo "$MAGIC_CMD" >&6; }
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14936 $as_echo "no
" >&6; }
14943 if test -z "$lt_cv_path_MAGIC_CMD"; then
14944 if test -n "$ac_tool_prefix"; then
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14946 $as_echo_n "checking
for file...
" >&6; }
14947 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14948 $as_echo_n "(cached
) " >&6
14952 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14955 lt_save_MAGIC_CMD="$MAGIC_CMD"
14956 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14957 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14958 for ac_dir in $ac_dummy; do
14960 test -z "$ac_dir" && ac_dir=.
14961 if test -f $ac_dir/file; then
14962 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14963 if test -n "$file_magic_test_file"; then
14964 case $deplibs_check_method in
14966 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14967 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14968 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14969 $EGREP "$file_magic_regex" > /dev/null; then
14974 *** Warning: the command libtool uses to detect shared libraries,
14975 *** $file_magic_cmd, produces output that libtool cannot recognize.
14976 *** The result is that libtool may fail to recognize shared libraries
14977 *** as such. This will affect the creation of libtool libraries that
14978 *** depend on shared libraries, but programs linked with such libtool
14979 *** libraries will work regardless of this problem. Nevertheless, you
14980 *** may want to report the problem to your system manager and/or to
14981 *** bug-libtool@gnu.org
14991 MAGIC_CMD="$lt_save_MAGIC_CMD"
14996 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14997 if test -n "$MAGIC_CMD"; then
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14999 $as_echo "$MAGIC_CMD" >&6; }
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15002 $as_echo "no
" >&6; }
15015 # Use C for the default configuration in the libtool script
15019 ac_cpp='$CPP $CPPFLAGS'
15020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15025 # Source file extension for C test sources.
15028 # Object file extension for compiled C test sources.
15032 # Code to be used in simple compile tests
15033 lt_simple_compile_test_code="int some_variable
= 0;"
15035 # Code to be used in simple link tests
15036 lt_simple_link_test_code='int main(){return(0);}'
15044 # If no C compiler was specified, use CC.
15047 # If no C compiler flags were specified, use CFLAGS.
15048 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15050 # Allow CC to be a program name with arguments.
15053 # Save the default compiler, since it gets overwritten when the other
15054 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15055 compiler_DEFAULT=$CC
15057 # save warnings/boilerplate of simple test code
15058 ac_outfile=conftest.$ac_objext
15059 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15060 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15061 _lt_compiler_boilerplate=`cat conftest.err`
15064 ac_outfile=conftest.$ac_objext
15065 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15066 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15067 _lt_linker_boilerplate=`cat conftest.err`
15072 ## There is no encapsulation within the following macros, do not change
15073 ## the running order or otherwise move them around unless you know exactly
15074 ## what you are doing...
15075 if test -n "$compiler"; then
15077 lt_prog_compiler_no_builtin_flag=
15079 if test "$GCC" = yes; then
15080 case $cc_basename in
15082 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15084 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15088 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15089 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15090 $as_echo_n "(cached
) " >&6
15092 lt_cv_prog_compiler_rtti_exceptions=no
15093 ac_outfile=conftest.$ac_objext
15094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15095 lt_compiler_flag="-fno-rtti -fno-exceptions"
15096 # Insert the option either (1) after the last *FLAGS variable, or
15097 # (2) before a word containing "conftest.
", or (3) at the end.
15098 # Note that $ac_compile itself does not contain backslashes and begins
15099 # with a dollar sign (not a hyphen), so the echo should work correctly.
15100 # The option is referenced via a variable to avoid confusing sed.
15101 lt_compile=`echo "$ac_compile" | $SED \
15102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15104 -e 's:$: $lt_compiler_flag:'`
15105 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15106 (eval "$lt_compile" 2>conftest.err)
15108 cat conftest.err >&5
15109 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15110 if (exit $ac_status) && test -s "$ac_outfile"; then
15111 # The compiler can only warn and ignore the option if not recognized
15112 # So say no if there are warnings other than the usual output.
15113 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15115 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15116 lt_cv_prog_compiler_rtti_exceptions=yes
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15123 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15125 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15126 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15138 lt_prog_compiler_wl=
15139 lt_prog_compiler_pic=
15140 lt_prog_compiler_static=
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15143 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15145 if test "$GCC" = yes; then
15146 lt_prog_compiler_wl='-Wl,'
15147 lt_prog_compiler_static='-static'
15151 # All AIX code is PIC.
15152 if test "$host_cpu" = ia64; then
15153 # AIX 5 now supports IA64 processor
15154 lt_prog_compiler_static='-Bstatic'
15156 lt_prog_compiler_pic='-fPIC'
15162 # see comment about AmigaOS4 .so support
15163 lt_prog_compiler_pic='-fPIC'
15166 # FIXME: we need at least 68020 code to build shared libraries, but
15167 # adding the `-m68020' flag to GCC prevents building anything better,
15169 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15174 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15175 # PIC is the default for these OSes.
15178 mingw* | cygwin* | pw32* | os2* | cegcc*)
15179 # This hack is so that the source file can tell whether it is being
15180 # built for inclusion in a dll (and should export symbols for example).
15181 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15182 # (--disable-auto-import) libraries
15183 lt_prog_compiler_pic='-DDLL_EXPORT'
15186 darwin* | rhapsody*)
15187 # PIC is the default on this platform
15188 # Common symbols not allowed in MH_DYLIB files
15189 lt_prog_compiler_pic='-fno-common'
15193 # PIC is the default for Haiku.
15194 # The "-static" flag exists, but is broken.
15195 lt_prog_compiler_static=
15199 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15200 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15201 # sets the default TLS model and affects inlining.
15207 lt_prog_compiler_pic='-fPIC'
15213 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15214 # Instead, we relocate shared libraries at runtime.
15218 # Just because we use GCC doesn't mean we suddenly get shared libraries
15219 # on systems that don't support them.
15220 lt_prog_compiler_can_build_shared=no
15225 # QNX uses GNU C++, but need to define -shared option too, otherwise
15226 # it will coredump.
15227 lt_prog_compiler_pic='-fPIC -shared'
15231 if test -d /usr/nec; then
15232 lt_prog_compiler_pic=-Kconform_pic
15237 lt_prog_compiler_pic='-fPIC'
15241 case $cc_basename in
15242 nvcc*) # Cuda Compiler Driver 2.2
15243 lt_prog_compiler_wl='-Xlinker '
15244 lt_prog_compiler_pic='-Xcompiler -fPIC'
15248 # PORTME Check for flag to pass linker flags through the system compiler.
15251 lt_prog_compiler_wl='-Wl,'
15252 if test "$host_cpu" = ia64; then
15253 # AIX 5 now supports IA64 processor
15254 lt_prog_compiler_static='-Bstatic'
15256 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15260 mingw* | cygwin* | pw32* | os2* | cegcc*)
15261 # This hack is so that the source file can tell whether it is being
15262 # built for inclusion in a dll (and should export symbols for example).
15263 lt_prog_compiler_pic='-DDLL_EXPORT'
15266 hpux9* | hpux10* | hpux11*)
15267 lt_prog_compiler_wl='-Wl,'
15268 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15269 # not for PA HP-UX.
15275 lt_prog_compiler_pic='+Z'
15278 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15279 lt_prog_compiler_static='${wl}-a ${wl}archive'
15282 irix5* | irix6* | nonstopux*)
15283 lt_prog_compiler_wl='-Wl,'
15284 # PIC (with -KPIC) is the default.
15285 lt_prog_compiler_static='-non_shared'
15288 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15289 case $cc_basename in
15290 # old Intel for x86_64 which still supported -KPIC.
15292 lt_prog_compiler_wl='-Wl,'
15293 lt_prog_compiler_pic='-KPIC'
15294 lt_prog_compiler_static='-static'
15296 # icc used to be incompatible with GCC.
15297 # ICC 10 doesn't accept -KPIC any more.
15299 lt_prog_compiler_wl='-Wl,'
15300 lt_prog_compiler_pic='-fPIC'
15301 lt_prog_compiler_static='-static'
15303 # Lahey Fortran 8.1.
15305 lt_prog_compiler_wl='-Wl,'
15306 lt_prog_compiler_pic='--shared'
15307 lt_prog_compiler_static='--static'
15309 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15310 # Portland Group compilers (*not* the Pentium gcc compiler,
15311 # which looks to be a dead project)
15312 lt_prog_compiler_wl='-Wl,'
15313 lt_prog_compiler_pic='-fpic'
15314 lt_prog_compiler_static='-Bstatic'
15317 lt_prog_compiler_wl='-Wl,'
15318 # All Alpha code is PIC.
15319 lt_prog_compiler_static='-non_shared'
15321 xl* | bgxl* | bgf* | mpixl*)
15322 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15323 lt_prog_compiler_wl='-Wl,'
15324 lt_prog_compiler_pic='-qpic'
15325 lt_prog_compiler_static='-qstaticlink'
15328 case `$CC -V 2>&1 | sed 5q` in
15329 *Sun\ F* | *Sun*Fortran*)
15330 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15331 lt_prog_compiler_pic='-KPIC'
15332 lt_prog_compiler_static='-Bstatic'
15333 lt_prog_compiler_wl=''
15337 lt_prog_compiler_pic='-KPIC'
15338 lt_prog_compiler_static='-Bstatic'
15339 lt_prog_compiler_wl='-Wl,'
15347 lt_prog_compiler_pic='-KPIC'
15348 lt_prog_compiler_static='-Bstatic'
15352 # QNX uses GNU C++, but need to define -shared option too, otherwise
15353 # it will coredump.
15354 lt_prog_compiler_pic='-fPIC -shared'
15357 osf3* | osf4* | osf5*)
15358 lt_prog_compiler_wl='-Wl,'
15359 # All OSF/1 code is PIC.
15360 lt_prog_compiler_static='-non_shared'
15364 lt_prog_compiler_static='-non_shared'
15368 lt_prog_compiler_pic='-KPIC'
15369 lt_prog_compiler_static='-Bstatic'
15370 case $cc_basename in
15371 f77* | f90* | f95*)
15372 lt_prog_compiler_wl='-Qoption ld ';;
15374 lt_prog_compiler_wl='-Wl,';;
15379 lt_prog_compiler_wl='-Qoption ld '
15380 lt_prog_compiler_pic='-PIC'
15381 lt_prog_compiler_static='-Bstatic'
15384 sysv4 | sysv4.2uw2* | sysv4.3*)
15385 lt_prog_compiler_wl='-Wl,'
15386 lt_prog_compiler_pic='-KPIC'
15387 lt_prog_compiler_static='-Bstatic'
15391 if test -d /usr/nec ;then
15392 lt_prog_compiler_pic='-Kconform_pic'
15393 lt_prog_compiler_static='-Bstatic'
15397 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15398 lt_prog_compiler_wl='-Wl,'
15399 lt_prog_compiler_pic='-KPIC'
15400 lt_prog_compiler_static='-Bstatic'
15404 lt_prog_compiler_wl='-Wl,'
15405 lt_prog_compiler_can_build_shared=no
15409 lt_prog_compiler_pic='-pic'
15410 lt_prog_compiler_static='-Bstatic'
15414 lt_prog_compiler_can_build_shared=no
15420 # For platforms which do not support PIC, -DPIC is meaningless:
15422 lt_prog_compiler_pic=
15425 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15429 $as_echo "$lt_prog_compiler_pic" >&6; }
15437 # Check to make sure the PIC flag actually works.
15439 if test -n "$lt_prog_compiler_pic"; then
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15441 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15442 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15443 $as_echo_n "(cached
) " >&6
15445 lt_cv_prog_compiler_pic_works=no
15446 ac_outfile=conftest.$ac_objext
15447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15448 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15449 # Insert the option either (1) after the last *FLAGS variable, or
15450 # (2) before a word containing "conftest.
", or (3) at the end.
15451 # Note that $ac_compile itself does not contain backslashes and begins
15452 # with a dollar sign (not a hyphen), so the echo should work correctly.
15453 # The option is referenced via a variable to avoid confusing sed.
15454 lt_compile=`echo "$ac_compile" | $SED \
15455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15457 -e 's:$: $lt_compiler_flag:'`
15458 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15459 (eval "$lt_compile" 2>conftest.err)
15461 cat conftest.err >&5
15462 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15463 if (exit $ac_status) && test -s "$ac_outfile"; then
15464 # The compiler can only warn and ignore the option if not recognized
15465 # So say no if there are warnings other than the usual output.
15466 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15468 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15469 lt_cv_prog_compiler_pic_works=yes
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15476 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15478 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15479 case $lt_prog_compiler_pic in
15481 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15484 lt_prog_compiler_pic=
15485 lt_prog_compiler_can_build_shared=no
15496 # Check to make sure the static flag actually works.
15498 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15500 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15501 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15502 $as_echo_n "(cached
) " >&6
15504 lt_cv_prog_compiler_static_works=no
15505 save_LDFLAGS="$LDFLAGS"
15506 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15507 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15508 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15509 # The linker can only warn and ignore the option if not recognized
15510 # So say no if there are warnings
15511 if test -s conftest.err; then
15512 # Append any errors to the config.log.
15513 cat conftest.err 1>&5
15514 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15516 if diff conftest.exp conftest.er2 >/dev/null; then
15517 lt_cv_prog_compiler_static_works=yes
15520 lt_cv_prog_compiler_static_works=yes
15524 LDFLAGS="$save_LDFLAGS"
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15528 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15530 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15533 lt_prog_compiler_static=
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15543 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15544 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15545 $as_echo_n "(cached
) " >&6
15547 lt_cv_prog_compiler_c_o=no
15548 $RM -r conftest 2>/dev/null
15552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15554 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15555 # Insert the option either (1) after the last *FLAGS variable, or
15556 # (2) before a word containing "conftest.
", or (3) at the end.
15557 # Note that $ac_compile itself does not contain backslashes and begins
15558 # with a dollar sign (not a hyphen), so the echo should work correctly.
15559 lt_compile=`echo "$ac_compile" | $SED \
15560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15562 -e 's:$: $lt_compiler_flag:'`
15563 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15564 (eval "$lt_compile" 2>out/conftest.err)
15566 cat out/conftest.err >&5
15567 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15568 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15570 # The compiler can only warn and ignore the option if not recognized
15571 # So say no if there are warnings
15572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15575 lt_cv_prog_compiler_c_o=yes
15580 # SGI C++ compiler will create directory out/ii_files/ for
15581 # template instantiation
15582 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15583 $RM out/* && rmdir out
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15590 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15598 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15599 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15600 $as_echo_n "(cached
) " >&6
15602 lt_cv_prog_compiler_c_o=no
15603 $RM -r conftest 2>/dev/null
15607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15609 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15610 # Insert the option either (1) after the last *FLAGS variable, or
15611 # (2) before a word containing "conftest.
", or (3) at the end.
15612 # Note that $ac_compile itself does not contain backslashes and begins
15613 # with a dollar sign (not a hyphen), so the echo should work correctly.
15614 lt_compile=`echo "$ac_compile" | $SED \
15615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15617 -e 's:$: $lt_compiler_flag:'`
15618 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15619 (eval "$lt_compile" 2>out/conftest.err)
15621 cat out/conftest.err >&5
15622 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15623 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15625 # The compiler can only warn and ignore the option if not recognized
15626 # So say no if there are warnings
15627 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15628 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15629 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15630 lt_cv_prog_compiler_c_o=yes
15635 # SGI C++ compiler will create directory out/ii_files/ for
15636 # template instantiation
15637 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15638 $RM out/* && rmdir out
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15645 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15650 hard_links="nottested
"
15651 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15652 # do not overwrite the value of need_locks provided by the user
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15654 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15657 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15659 ln conftest.a conftest.b 2>&5 || hard_links=no
15660 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15662 $as_echo "$hard_links" >&6; }
15663 if test "$hard_links" = no; then
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15665 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15678 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15681 allow_undefined_flag=
15682 always_export_symbols=no
15684 archive_expsym_cmds=
15685 compiler_needs_object=no
15686 enable_shared_with_static_runtimes=no
15687 export_dynamic_flag_spec=
15688 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15689 hardcode_automatic=no
15691 hardcode_direct_absolute=no
15692 hardcode_libdir_flag_spec=
15693 hardcode_libdir_flag_spec_ld=
15694 hardcode_libdir_separator=
15695 hardcode_minus_L=no
15696 hardcode_shlibpath_var=unsupported
15698 link_all_deplibs=unknown
15700 module_expsym_cmds=
15701 old_archive_from_new_cmds=
15702 old_archive_from_expsyms_cmds=
15703 thread_safe_flag_spec=
15704 whole_archive_flag_spec=
15705 # include_expsyms should be a list of space-separated symbols to be *always*
15706 # included in the symbol list
15708 # exclude_expsyms can be an extended regexp of symbols to exclude
15709 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15710 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15711 # as well as any symbol that contains `d'.
15712 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15713 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15714 # platforms (ab)use it in PIC code, but their linkers get confused if
15715 # the symbol is explicitly referenced. Since portable code cannot
15716 # rely on this symbol name, it's probably fine to never include it in
15717 # preloaded symbol tables.
15718 # Exclude shared library initialization/finalization symbols.
15719 extract_expsyms_cmds=
15722 cygwin* | mingw* | pw32* | cegcc*)
15723 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15724 # When not using gcc, we currently assume that we are using
15725 # Microsoft Visual C++.
15726 if test "$GCC" != yes; then
15731 # we just hope/assume this is gcc and not c89 (= MSVC++)
15741 # On some targets, GNU ld is compatible enough with the native linker
15742 # that we're better off using the native interface for both.
15743 lt_use_gnu_ld_interface=no
15744 if test "$with_gnu_ld" = yes; then
15747 # The AIX port of GNU ld has always aspired to compatibility
15748 # with the native linker. However, as the warning in the GNU ld
15749 # block says, versions before 2.19.5* couldn't really create working
15750 # shared libraries, regardless of the interface used.
15751 case `$LD -v 2>&1` in
15752 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15753 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15754 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15756 lt_use_gnu_ld_interface=yes
15761 lt_use_gnu_ld_interface=yes
15766 if test "$lt_use_gnu_ld_interface" = yes; then
15767 # If archive_cmds runs LD, not CC, wlarc should be empty
15770 # Set some defaults for GNU ld with shared library support. These
15771 # are reset later if shared libraries are not supported. Putting them
15772 # here allows them to be overridden if necessary.
15773 runpath_var=LD_RUN_PATH
15774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15775 export_dynamic_flag_spec='${wl}--export-dynamic'
15776 # ancient GNU ld didn't support --whole-archive et. al.
15777 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15778 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15780 whole_archive_flag_spec=
15782 supports_anon_versioning=no
15783 case `$LD -v 2>&1` in
15784 *GNU\ gold*) supports_anon_versioning=yes ;;
15785 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15786 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15787 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15788 *\ 2.11.*) ;; # other 2.11 versions
15789 *) supports_anon_versioning=yes ;;
15792 # See if GNU ld supports shared libraries.
15795 # On AIX/PPC, the GNU linker is very broken
15796 if test "$host_cpu" != ia64; then
15800 *** Warning: the GNU linker, at least up to release 2.19, is reported
15801 *** to be unable to reliably create shared libraries on AIX.
15802 *** Therefore, libtool is disabling shared libraries support. If you
15803 *** really care for shared libraries, you may want to install binutils
15804 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15805 *** You will then need to restart the configuration process.
15814 # see comment about AmigaOS4 .so support
15815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15816 archive_expsym_cmds=''
15819 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)'
15820 hardcode_libdir_flag_spec
='-L$libdir'
15821 hardcode_minus_L
=yes
15827 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15828 allow_undefined_flag
=unsupported
15829 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15830 # support --undefined. This deserves some investigation. FIXME
15831 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15837 cygwin
* | mingw
* | pw32
* | cegcc
*)
15838 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15839 # as there is no search path for DLLs.
15840 hardcode_libdir_flag_spec
='-L$libdir'
15841 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15842 allow_undefined_flag
=unsupported
15843 always_export_symbols
=no
15844 enable_shared_with_static_runtimes
=yes
15845 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15847 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15848 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15849 # If the export-symbols file already is a .def file (1st line
15850 # is EXPORTS), use it as is; otherwise, prepend...
15851 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15852 cp $export_symbols $output_objdir/$soname.def;
15854 echo EXPORTS > $output_objdir/$soname.def;
15855 cat $export_symbols >> $output_objdir/$soname.def;
15857 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15864 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15865 link_all_deplibs
=yes
15870 hardcode_shlibpath_var
=no
15871 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15872 export_dynamic_flag_spec
='${wl}-E'
15873 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15874 # Instead, shared libraries are loaded at an image base (0x10000000 by
15875 # default) and relocated if they conflict, which is a slow very memory
15876 # consuming and fragmenting process. To avoid this, we pick a random,
15877 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15878 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15879 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15880 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'
15883 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15885 if test "$host_os" = linux-dietlibc
; then
15886 case $cc_basename in
15887 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15890 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15891 && test "$tmp_diet" = no
15894 tmp_sharedflag
='-shared'
15895 case $cc_basename,$host_cpu in
15896 pgcc
*) # Portland Group C compiler
15897 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'
15898 tmp_addflag
=' $pic_flag'
15900 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15901 # Portland Group f77 and f90 compilers
15902 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'
15903 tmp_addflag
=' $pic_flag -Mnomain' ;;
15904 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15905 tmp_addflag
=' -i_dynamic' ;;
15906 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15907 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15908 ifc
* | ifort
*) # Intel Fortran compiler
15909 tmp_addflag
=' -nofor_main' ;;
15910 lf95
*) # Lahey Fortran 8.1
15911 whole_archive_flag_spec
=
15912 tmp_sharedflag
='--shared' ;;
15913 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15914 tmp_sharedflag
='-qmkshrobj'
15916 nvcc
*) # Cuda Compiler Driver 2.2
15917 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'
15918 compiler_needs_object
=yes
15921 case `$CC -V 2>&1 | sed 5q` in
15922 *Sun\ C
*) # Sun C 5.9
15923 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'
15924 compiler_needs_object
=yes
15925 tmp_sharedflag
='-G' ;;
15926 *Sun\ F
*) # Sun Fortran 8.3
15927 tmp_sharedflag
='-G' ;;
15929 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15931 if test "x$supports_anon_versioning" = xyes
; then
15932 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15933 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15934 echo "local: *; };" >> $output_objdir/$libname.ver~
15935 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15938 case $cc_basename in
15939 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15940 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15941 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15942 hardcode_libdir_flag_spec
=
15943 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15944 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15945 if test "x$supports_anon_versioning" = xyes
; then
15946 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15947 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15948 echo "local: *; };" >> $output_objdir/$libname.ver~
15949 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15959 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15960 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15963 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15964 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15969 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15973 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15974 *** create shared libraries on Solaris systems. Therefore, libtool
15975 *** is disabling shared libraries support. We urge you to upgrade GNU
15976 *** binutils to release 2.9.1 or newer. Another option is to modify
15977 *** your PATH or compiler configuration so that the native linker is
15978 *** used, and then restart.
15981 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15982 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15983 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15989 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15990 case `$LD -v 2>&1` in
15991 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15995 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15996 *** reliably create shared libraries on SCO systems. Therefore, libtool
15997 *** is disabling shared libraries support. We urge you to upgrade GNU
15998 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15999 *** your PATH or compiler configuration so that the native linker is
16000 *** used, and then restart.
16005 # For security reasons, it is highly recommended that you always
16006 # use absolute paths for naming shared libraries, and exclude the
16007 # DT_RUNPATH tag from executables and libraries. But doing so
16008 # requires that you compile everything twice, which is a pain.
16009 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16010 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16011 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16012 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16021 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16023 hardcode_direct
=yes
16024 hardcode_shlibpath_var
=no
16028 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16029 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16030 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16037 if test "$ld_shlibs" = no
; then
16039 hardcode_libdir_flag_spec
=
16040 export_dynamic_flag_spec
=
16041 whole_archive_flag_spec
=
16044 # PORTME fill in a description of your system's linker (not GNU ld)
16047 allow_undefined_flag
=unsupported
16048 always_export_symbols
=yes
16049 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'
16050 # Note: this linker hardcodes the directories in LIBPATH if there
16051 # are no directories specified by -L.
16052 hardcode_minus_L
=yes
16053 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16054 # Neither direct hardcoding nor static linking is supported with a
16056 hardcode_direct
=unsupported
16061 if test "$host_cpu" = ia64
; then
16062 # On IA64, the linker does run time linking by default, so we don't
16063 # have to do anything special.
16064 aix_use_runtimelinking
=no
16065 exp_sym_flag
='-Bexport'
16068 # If we're using GNU nm, then we don't want the "-C" option.
16069 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16070 # Also, AIX nm treats weak defined symbols like other global
16071 # defined symbols, whereas GNU nm marks them as "W".
16072 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16073 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'
16075 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16077 aix_use_runtimelinking
=no
16079 # Test if we are trying to use run time linking or normal
16080 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16081 # need to do runtime linking.
16082 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16083 for ld_flag
in $LDFLAGS; do
16084 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16085 aix_use_runtimelinking
=yes
16092 exp_sym_flag
='-bexport'
16093 no_entry_flag
='-bnoentry'
16096 # When large executables or shared objects are built, AIX ld can
16097 # have problems creating the table of contents. If linking a library
16098 # or program results in "error TOC overflow" add -mminimal-toc to
16099 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16100 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16103 hardcode_direct
=yes
16104 hardcode_direct_absolute
=yes
16105 hardcode_libdir_separator
=':'
16106 link_all_deplibs
=yes
16107 file_list_spec
='${wl}-f,'
16109 if test "$GCC" = yes; then
16110 case $host_os in aix4.
[012]|aix4.
[012].
*)
16111 # We only want to do this on AIX 4.2 and lower, the check
16112 # below for broken collect2 doesn't work under 4.3+
16113 collect2name
=`${CC} -print-prog-name=collect2`
16114 if test -f "$collect2name" &&
16115 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16117 # We have reworked collect2
16120 # We have old collect2
16121 hardcode_direct
=unsupported
16122 # It fails to find uninstalled libraries when the uninstalled
16123 # path is not listed in the libpath. Setting hardcode_minus_L
16124 # to unsupported forces relinking
16125 hardcode_minus_L
=yes
16126 hardcode_libdir_flag_spec
='-L$libdir'
16127 hardcode_libdir_separator
=
16131 shared_flag
='-shared'
16132 if test "$aix_use_runtimelinking" = yes; then
16133 shared_flag
="$shared_flag "'${wl}-G'
16137 if test "$host_cpu" = ia64
; then
16138 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16139 # chokes on -Wl,-G. The following line is correct:
16142 if test "$aix_use_runtimelinking" = yes; then
16143 shared_flag
='${wl}-G'
16145 shared_flag
='${wl}-bM:SRE'
16150 export_dynamic_flag_spec
='${wl}-bexpall'
16151 # It seems that -bexpall does not export symbols beginning with
16152 # underscore (_), so it is better to generate a list of symbols to export.
16153 always_export_symbols
=yes
16154 if test "$aix_use_runtimelinking" = yes; then
16155 # Warning - without using the other runtime loading flags (-brtl),
16156 # -berok will link without error, but may produce a broken library.
16157 allow_undefined_flag
='-berok'
16158 # Determine the default libpath from the value encoded in an
16159 # empty executable.
16160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16161 /* end confdefs.h. */
16171 if ac_fn_c_try_link
"$LINENO"; then :
16173 lt_aix_libpath_sed
='
16174 /Import File Strings/,/^$/ {
16180 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16181 # Check for a 64-bit object if we didn't find anything.
16182 if test -z "$aix_libpath"; then
16183 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16186 rm -f core conftest.err conftest.
$ac_objext \
16187 conftest
$ac_exeext conftest.
$ac_ext
16188 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16190 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16191 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"
16193 if test "$host_cpu" = ia64
; then
16194 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16195 allow_undefined_flag
="-z nodefs"
16196 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"
16198 # Determine the default libpath from the value encoded in an
16199 # empty executable.
16200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16201 /* end confdefs.h. */
16211 if ac_fn_c_try_link
"$LINENO"; then :
16213 lt_aix_libpath_sed
='
16214 /Import File Strings/,/^$/ {
16220 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16221 # Check for a 64-bit object if we didn't find anything.
16222 if test -z "$aix_libpath"; then
16223 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16226 rm -f core conftest.err conftest.
$ac_objext \
16227 conftest
$ac_exeext conftest.
$ac_ext
16228 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16230 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16231 # Warning - without using the other run time loading flags,
16232 # -berok will link without error, but may produce a broken library.
16233 no_undefined_flag
=' ${wl}-bernotok'
16234 allow_undefined_flag
=' ${wl}-berok'
16235 if test "$with_gnu_ld" = yes; then
16236 # We only use this code for GNU lds that support --whole-archive.
16237 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16239 # Exported symbols can be pulled into shared objects from archives
16240 whole_archive_flag_spec
='$convenience'
16242 archive_cmds_need_lc
=yes
16243 # This is similar to how AIX traditionally builds its shared libraries.
16244 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'
16252 # see comment about AmigaOS4 .so support
16253 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16254 archive_expsym_cmds
=''
16257 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)'
16258 hardcode_libdir_flag_spec
='-L$libdir'
16259 hardcode_minus_L
=yes
16265 export_dynamic_flag_spec
=-rdynamic
16268 cygwin
* | mingw
* | pw32
* | cegcc
*)
16269 # When not using gcc, we currently assume that we are using
16270 # Microsoft Visual C++.
16271 # hardcode_libdir_flag_spec is actually meaningless, as there is
16272 # no search path for DLLs.
16273 hardcode_libdir_flag_spec
=' '
16274 allow_undefined_flag
=unsupported
16275 # Tell ltmain to make .lib files, not .a files.
16277 # Tell ltmain to make .dll files, not .so files.
16279 # FIXME: Setting linknames here is a bad hack.
16280 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16281 # The linker will automatically build a .lib file if we build a DLL.
16282 old_archive_from_new_cmds
='true'
16283 # FIXME: Should let the user specify the lib program.
16284 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16285 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16286 enable_shared_with_static_runtimes
=yes
16289 darwin
* | rhapsody
*)
16292 archive_cmds_need_lc
=no
16294 hardcode_automatic
=yes
16295 hardcode_shlibpath_var
=unsupported
16296 if test "$lt_cv_ld_force_load" = "yes"; then
16297 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\"`'
16299 whole_archive_flag_spec
=''
16301 link_all_deplibs
=yes
16302 allow_undefined_flag
="$_lt_dar_allow_undefined"
16303 case $cc_basename in
16304 ifort
*) _lt_dar_can_shared
=yes ;;
16305 *) _lt_dar_can_shared
=$GCC ;;
16307 if test "$_lt_dar_can_shared" = "yes"; then
16308 output_verbose_link_cmd
=func_echo_all
16309 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16310 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16311 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}"
16312 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}"
16321 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16322 hardcode_libdir_flag_spec
='-L$libdir'
16323 hardcode_shlibpath_var
=no
16326 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16327 # support. Future versions do this automatically, but an explicit c++rt0.o
16328 # does not break anything, and helps significantly (at the cost of a little
16331 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16332 hardcode_libdir_flag_spec
='-R$libdir'
16333 hardcode_direct
=yes
16334 hardcode_shlibpath_var
=no
16337 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16339 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16340 hardcode_direct
=yes
16341 hardcode_minus_L
=yes
16342 hardcode_shlibpath_var
=no
16345 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16346 freebsd
* | dragonfly
*)
16347 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16348 hardcode_libdir_flag_spec
='-R$libdir'
16349 hardcode_direct
=yes
16350 hardcode_shlibpath_var
=no
16354 if test "$GCC" = yes; then
16355 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'
16357 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'
16359 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16360 hardcode_libdir_separator
=:
16361 hardcode_direct
=yes
16363 # hardcode_minus_L: Not really in the search PATH,
16364 # but as the default location of the library.
16365 hardcode_minus_L
=yes
16366 export_dynamic_flag_spec
='${wl}-E'
16370 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16371 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16373 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16375 if test "$with_gnu_ld" = no
; then
16376 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16377 hardcode_libdir_flag_spec_ld
='+b $libdir'
16378 hardcode_libdir_separator
=:
16379 hardcode_direct
=yes
16380 hardcode_direct_absolute
=yes
16381 export_dynamic_flag_spec
='${wl}-E'
16382 # hardcode_minus_L: Not really in the search PATH,
16383 # but as the default location of the library.
16384 hardcode_minus_L
=yes
16389 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16392 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16395 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16398 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16404 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16407 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16411 # Older versions of the 11.00 compiler do not understand -b yet
16412 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16414 $as_echo_n "checking if $CC understands -b... " >&6; }
16415 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16416 $as_echo_n "(cached) " >&6
16418 lt_cv_prog_compiler__b
=no
16419 save_LDFLAGS
="$LDFLAGS"
16420 LDFLAGS
="$LDFLAGS -b"
16421 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16422 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16423 # The linker can only warn and ignore the option if not recognized
16424 # So say no if there are warnings
16425 if test -s conftest.err
; then
16426 # Append any errors to the config.log.
16427 cat conftest.err
1>&5
16428 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16429 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16430 if diff conftest.exp conftest.er2
>/dev
/null
; then
16431 lt_cv_prog_compiler__b
=yes
16434 lt_cv_prog_compiler__b
=yes
16438 LDFLAGS
="$save_LDFLAGS"
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16442 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16444 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16445 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16447 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16453 if test "$with_gnu_ld" = no
; then
16454 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16455 hardcode_libdir_separator
=:
16460 hardcode_shlibpath_var
=no
16463 hardcode_direct
=yes
16464 hardcode_direct_absolute
=yes
16465 export_dynamic_flag_spec
='${wl}-E'
16467 # hardcode_minus_L: Not really in the search PATH,
16468 # but as the default location of the library.
16469 hardcode_minus_L
=yes
16475 irix5
* | irix6
* | nonstopux
*)
16476 if test "$GCC" = yes; then
16477 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'
16478 # Try to use the -exported_symbol ld option, if it does not
16479 # work, assume that -exports_file does not work either and
16480 # implicitly export all symbols.
16481 save_LDFLAGS
="$LDFLAGS"
16482 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16484 /* end confdefs.h. */
16487 if ac_fn_c_try_link
"$LINENO"; then :
16488 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'
16491 rm -f core conftest.err conftest.
$ac_objext \
16492 conftest
$ac_exeext conftest.
$ac_ext
16493 LDFLAGS
="$save_LDFLAGS"
16495 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'
16496 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'
16498 archive_cmds_need_lc
='no'
16499 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16500 hardcode_libdir_separator
=:
16502 link_all_deplibs
=yes
16506 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16507 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16509 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16511 hardcode_libdir_flag_spec
='-R$libdir'
16512 hardcode_direct
=yes
16513 hardcode_shlibpath_var
=no
16517 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16518 hardcode_direct
=yes
16519 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16520 hardcode_libdir_separator
=:
16521 hardcode_shlibpath_var
=no
16528 if test -f /usr
/libexec
/ld.so
; then
16529 hardcode_direct
=yes
16530 hardcode_shlibpath_var
=no
16531 hardcode_direct_absolute
=yes
16532 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16533 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16534 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16535 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16536 export_dynamic_flag_spec
='${wl}-E'
16539 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16540 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16541 hardcode_libdir_flag_spec
='-R$libdir'
16544 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16545 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16555 hardcode_libdir_flag_spec
='-L$libdir'
16556 hardcode_minus_L
=yes
16557 allow_undefined_flag
=unsupported
16558 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'
16559 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16563 if test "$GCC" = yes; then
16564 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16565 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'
16567 allow_undefined_flag
=' -expect_unresolved \*'
16568 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'
16570 archive_cmds_need_lc
='no'
16571 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16572 hardcode_libdir_separator
=:
16575 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16576 if test "$GCC" = yes; then
16577 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16578 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'
16579 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16581 allow_undefined_flag
=' -expect_unresolved \*'
16582 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'
16583 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~
16584 $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'
16586 # Both c and cxx compiler support -rpath directly
16587 hardcode_libdir_flag_spec
='-rpath $libdir'
16589 archive_cmds_need_lc
='no'
16590 hardcode_libdir_separator
=:
16594 no_undefined_flag
=' -z defs'
16595 if test "$GCC" = yes; then
16597 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16598 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16599 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16601 case `$CC -V 2>&1` in
16604 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16605 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16606 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16610 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16611 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16612 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16616 hardcode_libdir_flag_spec
='-R$libdir'
16617 hardcode_shlibpath_var
=no
16619 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16621 # The compiler driver will combine and reorder linker options,
16622 # but understands `-z linker_flag'. GCC discards it without `$wl',
16623 # but is careful enough not to reorder.
16624 # Supported since Solaris 2.6 (maybe 2.5.1?)
16625 if test "$GCC" = yes; then
16626 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16628 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16632 link_all_deplibs
=yes
16636 if test "x$host_vendor" = xsequent
; then
16637 # Use $CC to link under sequent, because it throws in some extra .o
16638 # files that make .init and .fini sections work.
16639 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16641 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16643 hardcode_libdir_flag_spec
='-L$libdir'
16644 hardcode_direct
=yes
16645 hardcode_minus_L
=yes
16646 hardcode_shlibpath_var
=no
16650 case $host_vendor in
16652 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16653 hardcode_direct
=yes # is this really true???
16656 ## LD is ld it makes a PLAMLIB
16657 ## CC just makes a GrossModule.
16658 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16659 reload_cmds
='$CC -r -o $output$reload_objs'
16663 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16664 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16667 runpath_var
='LD_RUN_PATH'
16668 hardcode_shlibpath_var
=no
16672 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16673 hardcode_shlibpath_var
=no
16674 export_dynamic_flag_spec
='-Bexport'
16678 if test -d /usr
/nec
; then
16679 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16680 hardcode_shlibpath_var
=no
16681 runpath_var
=LD_RUN_PATH
16682 hardcode_runpath_var
=yes
16687 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16688 no_undefined_flag
='${wl}-z,text'
16689 archive_cmds_need_lc
=no
16690 hardcode_shlibpath_var
=no
16691 runpath_var
='LD_RUN_PATH'
16693 if test "$GCC" = yes; then
16694 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16695 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16697 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16698 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16702 sysv5
* | sco3.2v5
* | sco5v6
*)
16703 # Note: We can NOT use -z defs as we might desire, because we do not
16704 # link with -lc, and that would cause any symbols used from libc to
16705 # always be unresolved, which means just about no library would
16706 # ever link correctly. If we're not using GNU ld we use -z text
16707 # though, which does catch some bad symbols but isn't as heavy-handed
16709 no_undefined_flag
='${wl}-z,text'
16710 allow_undefined_flag
='${wl}-z,nodefs'
16711 archive_cmds_need_lc
=no
16712 hardcode_shlibpath_var
=no
16713 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16714 hardcode_libdir_separator
=':'
16715 link_all_deplibs
=yes
16716 export_dynamic_flag_spec
='${wl}-Bexport'
16717 runpath_var
='LD_RUN_PATH'
16719 if test "$GCC" = yes; then
16720 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16721 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16723 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16724 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16729 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16730 hardcode_libdir_flag_spec
='-L$libdir'
16731 hardcode_shlibpath_var
=no
16739 if test x
$host_vendor = xsni
; then
16741 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16742 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16749 $as_echo "$ld_shlibs" >&6; }
16750 test "$ld_shlibs" = no
&& can_build_shared
=no
16752 with_gnu_ld
=$with_gnu_ld
16769 # Do we need to explicitly link libc?
16771 case "x$archive_cmds_need_lc" in
16773 # Assume -lc should be added
16774 archive_cmds_need_lc
=yes
16776 if test "$enable_shared" = yes && test "$GCC" = yes; then
16777 case $archive_cmds in
16779 # FIXME: we may have to deal with multi-command sequences.
16782 # Test whether the compiler implicitly links with -lc since on some
16783 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16784 # to ld, don't add -lc before -lgcc.
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16786 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16787 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16788 $as_echo_n "(cached) " >&6
16791 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16794 (eval $ac_compile) 2>&5
16796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16797 test $ac_status = 0; } 2>conftest.err
; then
16800 libobjs
=conftest.
$ac_objext
16802 wl
=$lt_prog_compiler_wl
16803 pic_flag
=$lt_prog_compiler_pic
16809 lt_save_allow_undefined_flag
=$allow_undefined_flag
16810 allow_undefined_flag
=
16811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16812 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16815 test $ac_status = 0; }
16817 lt_cv_archive_cmds_need_lc
=no
16819 lt_cv_archive_cmds_need_lc
=yes
16821 allow_undefined_flag
=$lt_save_allow_undefined_flag
16823 cat conftest.err
1>&5
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16829 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16830 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16994 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16996 if test "$GCC" = yes; then
16998 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16999 *) lt_awk_arg
="/^libraries:/" ;;
17002 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17003 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17005 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17006 case $lt_search_path_spec in
17008 # if the path contains ";" then we assume it to be the separator
17009 # otherwise default to the standard path separator (i.e. ":") - it is
17010 # assumed that no part of a normal pathname contains ";" but that should
17011 # okay in the real world where ";" in dirpaths is itself problematic.
17012 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17015 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17018 # Ok, now we have the path, separated by spaces, we can step through it
17019 # and add multilib dir if necessary.
17020 lt_tmp_lt_search_path_spec
=
17021 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17022 for lt_sys_path
in $lt_search_path_spec; do
17023 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17024 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17026 test -d "$lt_sys_path" && \
17027 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17030 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17031 BEGIN {RS=" "; FS="/|\n";} {
17034 for (lt_i = NF; lt_i > 0; lt_i--) {
17035 if ($lt_i != "" && $lt_i != ".") {
17036 if ($lt_i == "..") {
17039 if (lt_count == 0) {
17040 lt_foo="/" $lt_i lt_foo;
17047 if (lt_foo != "") { lt_freq[lt_foo]++; }
17048 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17050 # AWK program above erroneously prepends '/' to C:/dos/paths
17053 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17054 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17056 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17058 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17060 library_names_spec
=
17061 libname_spec
='lib$name'
17065 postuninstall_cmds
=
17069 shlibpath_overrides_runpath
=unknown
17071 dynamic_linker
="$host_os ld.so"
17072 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17073 need_lib_prefix
=unknown
17074 hardcode_into_libs
=no
17076 # when you set need_version to no, make sure it does not cause -set_version
17077 # flags to be left without arguments
17078 need_version
=unknown
17083 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17084 shlibpath_var
=LIBPATH
17086 # AIX 3 has no versioning support, so we append a major version to the name.
17087 soname_spec
='${libname}${release}${shared_ext}$major'
17094 hardcode_into_libs
=yes
17095 if test "$host_cpu" = ia64
; then
17096 # AIX 5 supports IA64
17097 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17098 shlibpath_var
=LD_LIBRARY_PATH
17100 # With GCC up to 2.95.x, collect2 would create an import file
17101 # for dependence libraries. The import file would start with
17102 # the line `#! .'. This would cause the generated library to
17103 # depend on `.', always an invalid library. This was fixed in
17104 # development snapshots of GCC prior to 3.0.
17106 aix4 | aix4.
[01] | aix4.
[01].
*)
17107 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17109 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17112 can_build_shared
=no
17116 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17117 # soname into executable. Probably we can add versioning support to
17118 # collect2, so additional links can be useful in future.
17119 if test "$aix_use_runtimelinking" = yes; then
17120 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17121 # instead of lib<name>.a to let people know that these are not
17122 # typical AIX shared libraries.
17123 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17125 # We preserve .a as extension for shared libraries through AIX4.2
17126 # and later when we are not doing run time linking.
17127 library_names_spec
='${libname}${release}.a $libname.a'
17128 soname_spec
='${libname}${release}${shared_ext}$major'
17130 shlibpath_var
=LIBPATH
17137 # Since July 2007 AmigaOS4 officially supports .so libraries.
17138 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17139 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17142 library_names_spec
='$libname.ixlibrary $libname.a'
17143 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17144 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'
17150 library_names_spec
='${libname}${shared_ext}'
17151 dynamic_linker
="$host_os ld.so"
17152 shlibpath_var
=LIBRARY_PATH
17158 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17159 soname_spec
='${libname}${release}${shared_ext}$major'
17160 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17161 shlibpath_var
=LD_LIBRARY_PATH
17162 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17163 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17164 # the default ld.so.conf also contains /usr/contrib/lib and
17165 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17166 # libtool to hard-code these into programs
17169 cygwin
* | mingw
* | pw32
* | cegcc
*)
17170 version_type
=windows
17175 case $GCC,$host_os in
17176 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17177 library_names_spec
='$libname.dll.a'
17178 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17179 postinstall_cmds
='base_file=`basename \${file}`~
17180 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17181 dldir=$destdir/`dirname \$dlpath`~
17182 test -d \$dldir || mkdir -p \$dldir~
17183 $install_prog $dir/$dlname \$dldir/$dlname~
17184 chmod a+x \$dldir/$dlname~
17185 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17186 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17188 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17189 dlpath=$dir/\$dldll~
17191 shlibpath_overrides_runpath
=yes
17195 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17196 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17198 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17201 # MinGW DLLs use traditional 'lib' prefix
17202 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17205 # pw32 DLLs use 'pw' prefix rather than 'lib'
17206 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17212 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17215 dynamic_linker
='Win32 ld.exe'
17216 # FIXME: first we should search . and the directory the executable is in
17220 darwin
* | rhapsody
*)
17221 dynamic_linker
="$host_os dyld"
17222 version_type
=darwin
17225 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17226 soname_spec
='${libname}${release}${major}$shared_ext'
17227 shlibpath_overrides_runpath
=yes
17228 shlibpath_var
=DYLD_LIBRARY_PATH
17229 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17231 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17232 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17239 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17240 soname_spec
='${libname}${release}${shared_ext}$major'
17241 shlibpath_var
=LD_LIBRARY_PATH
17244 freebsd
* | dragonfly
*)
17245 # DragonFly does not have aout. When/if they implement a new
17246 # versioning mechanism, adjust this.
17247 if test -x /usr
/bin
/objformat
; then
17248 objformat
=`/usr/bin/objformat`
17251 freebsd
[23].
*) objformat
=aout
;;
17252 *) objformat
=elf
;;
17255 version_type
=freebsd-
$objformat
17256 case $version_type in
17258 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17263 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17267 shlibpath_var
=LD_LIBRARY_PATH
17270 shlibpath_overrides_runpath
=yes
17272 freebsd3.
[01]* | freebsdelf3.
[01]*)
17273 shlibpath_overrides_runpath
=yes
17274 hardcode_into_libs
=yes
17276 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17277 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17278 shlibpath_overrides_runpath
=no
17279 hardcode_into_libs
=yes
17281 *) # from 4.6 on, and DragonFly
17282 shlibpath_overrides_runpath
=yes
17283 hardcode_into_libs
=yes
17292 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17293 soname_spec
='${libname}${release}${shared_ext}$major'
17294 shlibpath_var
=LD_LIBRARY_PATH
17295 hardcode_into_libs
=yes
17302 dynamic_linker
="$host_os runtime_loader"
17303 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17304 soname_spec
='${libname}${release}${shared_ext}$major'
17305 shlibpath_var
=LIBRARY_PATH
17306 shlibpath_overrides_runpath
=yes
17307 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17308 hardcode_into_libs
=yes
17311 hpux9
* | hpux10
* | hpux11
*)
17312 # Give a soname corresponding to the major version so that dld.sl refuses to
17313 # link against other versions.
17320 hardcode_into_libs
=yes
17321 dynamic_linker
="$host_os dld.so"
17322 shlibpath_var
=LD_LIBRARY_PATH
17323 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17324 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17325 soname_spec
='${libname}${release}${shared_ext}$major'
17326 if test "X$HPUX_IA64_MODE" = X32
; then
17327 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17329 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17331 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17335 hardcode_into_libs
=yes
17336 dynamic_linker
="$host_os dld.sl"
17337 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17338 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17339 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340 soname_spec
='${libname}${release}${shared_ext}$major'
17341 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17342 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17346 dynamic_linker
="$host_os dld.sl"
17347 shlibpath_var
=SHLIB_PATH
17348 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17349 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17350 soname_spec
='${libname}${release}${shared_ext}$major'
17353 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17354 postinstall_cmds
='chmod 555 $lib'
17355 # or fails outright, so override atomically:
17356 install_override_mode
=555
17363 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17364 soname_spec
='${libname}${release}${shared_ext}$major'
17365 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17366 shlibpath_var
=LD_LIBRARY_PATH
17367 shlibpath_overrides_runpath
=no
17368 hardcode_into_libs
=yes
17371 irix5
* | irix6
* | nonstopux
*)
17373 nonstopux
*) version_type
=nonstopux
;;
17375 if test "$lt_cv_prog_gnu_ld" = yes; then
17383 soname_spec
='${libname}${release}${shared_ext}$major'
17384 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17386 irix5
* | nonstopux
*)
17387 libsuff
= shlibsuff
=
17390 case $LD in # libtool.m4 will add one of these switches to LD
17391 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17392 libsuff
= shlibsuff
= libmagic
=32-bit;;
17393 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17394 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17395 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17396 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17397 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17401 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17402 shlibpath_overrides_runpath
=no
17403 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17404 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17405 hardcode_into_libs
=yes
17408 # No shared lib support for Linux oldld, aout, or coff.
17409 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17413 # This must be Linux ELF.
17414 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17418 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17419 soname_spec
='${libname}${release}${shared_ext}$major'
17420 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17421 shlibpath_var
=LD_LIBRARY_PATH
17422 shlibpath_overrides_runpath
=no
17424 # Some binutils ld are patched to set DT_RUNPATH
17425 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17426 $as_echo_n "(cached) " >&6
17428 lt_cv_shlibpath_overrides_runpath
=no
17429 save_LDFLAGS
=$LDFLAGS
17430 save_libdir
=$libdir
17431 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17432 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17434 /* end confdefs.h. */
17444 if ac_fn_c_try_link
"$LINENO"; then :
17445 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17446 lt_cv_shlibpath_overrides_runpath
=yes
17449 rm -f core conftest.err conftest.
$ac_objext \
17450 conftest
$ac_exeext conftest.
$ac_ext
17451 LDFLAGS
=$save_LDFLAGS
17452 libdir
=$save_libdir
17456 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17458 # This implies no fast_install, which is unacceptable.
17459 # Some rework will be needed to allow for fast_install
17460 # before this can be enabled.
17461 hardcode_into_libs
=yes
17463 # Append ld.so.conf contents to the search path
17464 if test -f /etc
/ld.so.conf
; then
17465 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' ' '`
17466 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17469 # We used to test for /lib/ld.so.1 and disable shared libraries on
17470 # powerpc, because MkLinux only supported shared libraries with the
17471 # GNU dynamic linker. Since this was broken with cross compilers,
17472 # most powerpc-linux boxes support dynamic linking these days and
17473 # people can always --disable-shared, the test was removed, and we
17474 # assume the GNU/Linux dynamic linker is in use.
17475 dynamic_linker
='GNU/Linux ld.so'
17482 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17483 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17484 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17485 dynamic_linker
='NetBSD (a.out) ld.so'
17487 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17488 soname_spec
='${libname}${release}${shared_ext}$major'
17489 dynamic_linker
='NetBSD ld.elf_so'
17491 shlibpath_var
=LD_LIBRARY_PATH
17492 shlibpath_overrides_runpath
=yes
17493 hardcode_into_libs
=yes
17498 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17499 shlibpath_var
=LD_LIBRARY_PATH
17500 shlibpath_overrides_runpath
=yes
17507 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17508 soname_spec
='${libname}${release}${shared_ext}$major'
17509 shlibpath_var
=LD_LIBRARY_PATH
17510 shlibpath_overrides_runpath
=no
17511 hardcode_into_libs
=yes
17512 dynamic_linker
='ldqnx.so'
17517 sys_lib_dlsearch_path_spec
="/usr/lib"
17519 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17521 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17522 *) need_version
=no
;;
17524 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17525 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17526 shlibpath_var
=LD_LIBRARY_PATH
17527 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17529 openbsd2.
[89] | openbsd2.
[89].
*)
17530 shlibpath_overrides_runpath
=no
17533 shlibpath_overrides_runpath
=yes
17537 shlibpath_overrides_runpath
=yes
17542 libname_spec
='$name'
17545 library_names_spec
='$libname${shared_ext} $libname.a'
17546 dynamic_linker
='OS/2 ld.exe'
17547 shlibpath_var
=LIBPATH
17550 osf3
* | osf4
* | osf5
*)
17554 soname_spec
='${libname}${release}${shared_ext}$major'
17555 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17556 shlibpath_var
=LD_LIBRARY_PATH
17557 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17558 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17569 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17570 soname_spec
='${libname}${release}${shared_ext}$major'
17571 shlibpath_var
=LD_LIBRARY_PATH
17572 shlibpath_overrides_runpath
=yes
17573 hardcode_into_libs
=yes
17574 # ldd complains unless libraries are executable
17575 postinstall_cmds
='chmod +x $lib'
17580 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17581 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17582 shlibpath_var
=LD_LIBRARY_PATH
17583 shlibpath_overrides_runpath
=yes
17584 if test "$with_gnu_ld" = yes; then
17592 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17593 soname_spec
='${libname}${release}${shared_ext}$major'
17594 shlibpath_var
=LD_LIBRARY_PATH
17595 case $host_vendor in
17597 shlibpath_overrides_runpath
=no
17599 runpath_var
=LD_RUN_PATH
17607 shlibpath_overrides_runpath
=no
17608 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17614 if test -d /usr
/nec
;then
17616 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17617 soname_spec
='$libname${shared_ext}.$major'
17618 shlibpath_var
=LD_LIBRARY_PATH
17622 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17623 version_type
=freebsd-elf
17626 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17627 soname_spec
='${libname}${release}${shared_ext}$major'
17628 shlibpath_var
=LD_LIBRARY_PATH
17629 shlibpath_overrides_runpath
=yes
17630 hardcode_into_libs
=yes
17631 if test "$with_gnu_ld" = yes; then
17632 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17634 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17637 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17641 sys_lib_dlsearch_path_spec
='/usr/lib'
17645 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17649 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17650 shlibpath_var
=LD_LIBRARY_PATH
17651 shlibpath_overrides_runpath
=no
17652 hardcode_into_libs
=yes
17657 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17658 soname_spec
='${libname}${release}${shared_ext}$major'
17659 shlibpath_var
=LD_LIBRARY_PATH
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17667 $as_echo "$dynamic_linker" >&6; }
17668 test "$dynamic_linker" = no
&& can_build_shared
=no
17670 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17671 if test "$GCC" = yes; then
17672 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17675 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17676 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17678 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17679 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17774 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17776 if test -n "$hardcode_libdir_flag_spec" ||
17777 test -n "$runpath_var" ||
17778 test "X$hardcode_automatic" = "Xyes" ; then
17780 # We can hardcode non-existent directories.
17781 if test "$hardcode_direct" != no
&&
17782 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17783 # have to relink, otherwise we might link with an installed library
17784 # when we should be linking with a yet-to-be-installed one
17785 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17786 test "$hardcode_minus_L" != no
; then
17787 # Linking always hardcodes the temporary library directory.
17788 hardcode_action
=relink
17790 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17791 hardcode_action
=immediate
17794 # We cannot hardcode anything, or else we can only hardcode existing
17796 hardcode_action
=unsupported
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17799 $as_echo "$hardcode_action" >&6; }
17801 if test "$hardcode_action" = relink ||
17802 test "$inherit_rpath" = yes; then
17803 # Fast installation is not supported
17804 enable_fast_install
=no
17805 elif test "$shlibpath_overrides_runpath" = yes ||
17806 test "$enable_shared" = no
; then
17807 # Fast installation is not necessary
17808 enable_fast_install
=needless
17816 if test "x$enable_dlopen" != xyes
; then
17817 enable_dlopen
=unknown
17818 enable_dlopen_self
=unknown
17819 enable_dlopen_self_static
=unknown
17826 lt_cv_dlopen
="load_add_on"
17828 lt_cv_dlopen_self
=yes
17831 mingw
* | pw32
* | cegcc
*)
17832 lt_cv_dlopen
="LoadLibrary"
17837 lt_cv_dlopen
="dlopen"
17842 # if libdl is installed we need to link against it
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17844 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17845 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17846 $as_echo_n "(cached) " >&6
17848 ac_check_lib_save_LIBS
=$LIBS
17850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17851 /* end confdefs.h. */
17853 /* Override any GCC internal prototype to avoid an error.
17854 Use char because int might match the return type of a GCC
17855 builtin and then its argument prototype would still apply. */
17868 if ac_fn_c_try_link
"$LINENO"; then :
17869 ac_cv_lib_dl_dlopen
=yes
17871 ac_cv_lib_dl_dlopen
=no
17873 rm -f core conftest.err conftest.
$ac_objext \
17874 conftest
$ac_exeext conftest.
$ac_ext
17875 LIBS
=$ac_check_lib_save_LIBS
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17878 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17879 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17880 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17883 lt_cv_dlopen
="dyld"
17885 lt_cv_dlopen_self
=yes
17892 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17893 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17894 lt_cv_dlopen
="shl_load"
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17897 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17898 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17899 $as_echo_n "(cached) " >&6
17901 ac_check_lib_save_LIBS
=$LIBS
17903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17904 /* end confdefs.h. */
17906 /* Override any GCC internal prototype to avoid an error.
17907 Use char because int might match the return type of a GCC
17908 builtin and then its argument prototype would still apply. */
17916 return shl_load ();
17921 if ac_fn_c_try_link
"$LINENO"; then :
17922 ac_cv_lib_dld_shl_load
=yes
17924 ac_cv_lib_dld_shl_load
=no
17926 rm -f core conftest.err conftest.
$ac_objext \
17927 conftest
$ac_exeext conftest.
$ac_ext
17928 LIBS
=$ac_check_lib_save_LIBS
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17931 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17932 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17933 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17935 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17936 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17937 lt_cv_dlopen
="dlopen"
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17940 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17941 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17942 $as_echo_n "(cached) " >&6
17944 ac_check_lib_save_LIBS
=$LIBS
17946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17947 /* end confdefs.h. */
17949 /* Override any GCC internal prototype to avoid an error.
17950 Use char because int might match the return type of a GCC
17951 builtin and then its argument prototype would still apply. */
17964 if ac_fn_c_try_link
"$LINENO"; then :
17965 ac_cv_lib_dl_dlopen
=yes
17967 ac_cv_lib_dl_dlopen
=no
17969 rm -f core conftest.err conftest.
$ac_objext \
17970 conftest
$ac_exeext conftest.
$ac_ext
17971 LIBS
=$ac_check_lib_save_LIBS
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17974 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17975 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17976 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17979 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17980 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17981 $as_echo_n "(cached) " >&6
17983 ac_check_lib_save_LIBS
=$LIBS
17984 LIBS
="-lsvld $LIBS"
17985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17986 /* end confdefs.h. */
17988 /* Override any GCC internal prototype to avoid an error.
17989 Use char because int might match the return type of a GCC
17990 builtin and then its argument prototype would still apply. */
18003 if ac_fn_c_try_link
"$LINENO"; then :
18004 ac_cv_lib_svld_dlopen
=yes
18006 ac_cv_lib_svld_dlopen
=no
18008 rm -f core conftest.err conftest.
$ac_objext \
18009 conftest
$ac_exeext conftest.
$ac_ext
18010 LIBS
=$ac_check_lib_save_LIBS
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18013 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18014 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18015 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18018 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18019 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18020 $as_echo_n "(cached) " >&6
18022 ac_check_lib_save_LIBS
=$LIBS
18024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18025 /* end confdefs.h. */
18027 /* Override any GCC internal prototype to avoid an error.
18028 Use char because int might match the return type of a GCC
18029 builtin and then its argument prototype would still apply. */
18037 return dld_link ();
18042 if ac_fn_c_try_link
"$LINENO"; then :
18043 ac_cv_lib_dld_dld_link
=yes
18045 ac_cv_lib_dld_dld_link
=no
18047 rm -f core conftest.err conftest.
$ac_objext \
18048 conftest
$ac_exeext conftest.
$ac_ext
18049 LIBS
=$ac_check_lib_save_LIBS
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18052 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18053 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18054 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18075 if test "x$lt_cv_dlopen" != xno
; then
18081 case $lt_cv_dlopen in
18083 save_CPPFLAGS
="$CPPFLAGS"
18084 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18086 save_LDFLAGS
="$LDFLAGS"
18087 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18090 LIBS
="$lt_cv_dlopen_libs $LIBS"
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18093 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18094 if test "${lt_cv_dlopen_self+set}" = set; then :
18095 $as_echo_n "(cached) " >&6
18097 if test "$cross_compiling" = yes; then :
18098 lt_cv_dlopen_self
=cross
18100 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18101 lt_status
=$lt_dlunknown
18102 cat > conftest.
$ac_ext <<_LT_EOF
18103 #line 18103 "configure"
18104 #include "confdefs.h"
18113 # define LT_DLGLOBAL RTLD_GLOBAL
18116 # define LT_DLGLOBAL DL_GLOBAL
18118 # define LT_DLGLOBAL 0
18122 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18123 find out it does not work in some platform. */
18124 #ifndef LT_DLLAZY_OR_NOW
18126 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18129 # define LT_DLLAZY_OR_NOW DL_LAZY
18132 # define LT_DLLAZY_OR_NOW RTLD_NOW
18135 # define LT_DLLAZY_OR_NOW DL_NOW
18137 # define LT_DLLAZY_OR_NOW 0
18144 /* When -fvisbility=hidden is used, assume the code has been annotated
18145 correspondingly for the symbols needed. */
18146 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18147 void fnord () __attribute__((visibility("default")));
18150 void fnord () { int i=42; }
18153 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18154 int status = $lt_dlunknown;
18158 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18161 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18162 else puts (dlerror ());
18164 /* dlclose (self); */
18172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18173 (eval $ac_link) 2>&5
18175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18176 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18177 (.
/conftest
; exit; ) >&5 2>/dev
/null
18179 case x
$lt_status in
18180 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18181 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18182 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18185 # compilation failed
18186 lt_cv_dlopen_self
=no
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18194 $as_echo "$lt_cv_dlopen_self" >&6; }
18196 if test "x$lt_cv_dlopen_self" = xyes
; then
18197 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18199 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18200 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18201 $as_echo_n "(cached) " >&6
18203 if test "$cross_compiling" = yes; then :
18204 lt_cv_dlopen_self_static
=cross
18206 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18207 lt_status
=$lt_dlunknown
18208 cat > conftest.
$ac_ext <<_LT_EOF
18209 #line 18209 "configure"
18210 #include "confdefs.h"
18219 # define LT_DLGLOBAL RTLD_GLOBAL
18222 # define LT_DLGLOBAL DL_GLOBAL
18224 # define LT_DLGLOBAL 0
18228 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18229 find out it does not work in some platform. */
18230 #ifndef LT_DLLAZY_OR_NOW
18232 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18235 # define LT_DLLAZY_OR_NOW DL_LAZY
18238 # define LT_DLLAZY_OR_NOW RTLD_NOW
18241 # define LT_DLLAZY_OR_NOW DL_NOW
18243 # define LT_DLLAZY_OR_NOW 0
18250 /* When -fvisbility=hidden is used, assume the code has been annotated
18251 correspondingly for the symbols needed. */
18252 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18253 void fnord () __attribute__((visibility("default")));
18256 void fnord () { int i=42; }
18259 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18260 int status = $lt_dlunknown;
18264 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18267 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18268 else puts (dlerror ());
18270 /* dlclose (self); */
18278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18279 (eval $ac_link) 2>&5
18281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18282 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18283 (.
/conftest
; exit; ) >&5 2>/dev
/null
18285 case x
$lt_status in
18286 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18287 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18288 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18291 # compilation failed
18292 lt_cv_dlopen_self_static
=no
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18300 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18303 CPPFLAGS
="$save_CPPFLAGS"
18304 LDFLAGS
="$save_LDFLAGS"
18309 case $lt_cv_dlopen_self in
18310 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18311 *) enable_dlopen_self
=unknown
;;
18314 case $lt_cv_dlopen_self_static in
18315 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18316 *) enable_dlopen_self_static
=unknown
;;
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18339 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18340 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18341 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18342 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18344 $as_echo "yes" >&6; }
18346 # FIXME - insert some real tests, host_os isn't really good enough
18349 if test -n "$STRIP" ; then
18350 striplib
="$STRIP -x"
18351 old_striplib
="$STRIP -S"
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18353 $as_echo "yes" >&6; }
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18356 $as_echo "no" >&6; }
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18361 $as_echo "no" >&6; }
18377 # Report which library types will actually be built
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18379 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18381 $as_echo "$can_build_shared" >&6; }
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18384 $as_echo_n "checking whether to build shared libraries... " >&6; }
18385 test "$can_build_shared" = "no" && enable_shared
=no
18387 # On AIX, shared libraries and static libraries use the same namespace, and
18388 # are all built from PIC.
18391 test "$enable_shared" = yes && enable_static
=no
18392 if test -n "$RANLIB"; then
18393 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18394 postinstall_cmds
='$RANLIB $lib'
18399 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18400 test "$enable_shared" = yes && enable_static
=no
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18405 $as_echo "$enable_shared" >&6; }
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18408 $as_echo_n "checking whether to build static libraries... " >&6; }
18409 # Make sure either enable_shared or enable_static is yes.
18410 test "$enable_shared" = yes || enable_static
=yes
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18412 $as_echo "$enable_static" >&6; }
18419 ac_cpp
='$CPP $CPPFLAGS'
18420 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18421 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18422 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18426 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18427 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18428 (test "X$CXX" != "Xg++"))) ; then
18430 ac_cpp
='$CXXCPP $CPPFLAGS'
18431 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18432 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18433 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18435 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18436 if test -z "$CXXCPP"; then
18437 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18438 $as_echo_n "(cached) " >&6
18440 # Double quotes because CXXCPP needs to be expanded
18441 for CXXCPP
in "$CXX -E" "/lib/cpp"
18443 ac_preproc_ok
=false
18444 for ac_cxx_preproc_warn_flag
in '' yes
18446 # Use a header file that comes with gcc, so configuring glibc
18447 # with a fresh cross-compiler works.
18448 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18449 # <limits.h> exists even on freestanding compilers.
18450 # On the NeXT, cc -E runs the code through the compiler's parser,
18451 # not just through cpp. "Syntax error" is here to catch this case.
18452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18453 /* end confdefs.h. */
18455 # include <limits.h>
18457 # include <assert.h>
18461 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18464 # Broken: fails on valid input.
18467 rm -f conftest.err conftest.
$ac_ext
18469 # OK, works on sane cases. Now check whether nonexistent headers
18470 # can be detected and how.
18471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18472 /* end confdefs.h. */
18473 #include <ac_nonexistent.h>
18475 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18476 # Broken: success on invalid input.
18479 # Passes both tests.
18483 rm -f conftest.err conftest.
$ac_ext
18486 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18487 rm -f conftest.err conftest.
$ac_ext
18488 if $ac_preproc_ok; then :
18493 ac_cv_prog_CXXCPP
=$CXXCPP
18496 CXXCPP
=$ac_cv_prog_CXXCPP
18498 ac_cv_prog_CXXCPP
=$CXXCPP
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18501 $as_echo "$CXXCPP" >&6; }
18502 ac_preproc_ok
=false
18503 for ac_cxx_preproc_warn_flag
in '' yes
18505 # Use a header file that comes with gcc, so configuring glibc
18506 # with a fresh cross-compiler works.
18507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18508 # <limits.h> exists even on freestanding compilers.
18509 # On the NeXT, cc -E runs the code through the compiler's parser,
18510 # not just through cpp. "Syntax error" is here to catch this case.
18511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18512 /* end confdefs.h. */
18514 # include <limits.h>
18516 # include <assert.h>
18520 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18523 # Broken: fails on valid input.
18526 rm -f conftest.err conftest.
$ac_ext
18528 # OK, works on sane cases. Now check whether nonexistent headers
18529 # can be detected and how.
18530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18531 /* end confdefs.h. */
18532 #include <ac_nonexistent.h>
18534 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18535 # Broken: success on invalid input.
18538 # Passes both tests.
18542 rm -f conftest.err conftest.
$ac_ext
18545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18546 rm -f conftest.err conftest.
$ac_ext
18547 if $ac_preproc_ok; then :
18550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18552 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18553 See \`config.log' for more details." "$LINENO" 5; }
18557 ac_cpp
='$CPP $CPPFLAGS'
18558 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18559 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18560 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18563 _lt_caught_CXX_error
=yes
18567 ac_cpp
='$CXXCPP $CPPFLAGS'
18568 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18569 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18570 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18572 archive_cmds_need_lc_CXX
=no
18573 allow_undefined_flag_CXX
=
18574 always_export_symbols_CXX
=no
18575 archive_expsym_cmds_CXX
=
18576 compiler_needs_object_CXX
=no
18577 export_dynamic_flag_spec_CXX
=
18578 hardcode_direct_CXX
=no
18579 hardcode_direct_absolute_CXX
=no
18580 hardcode_libdir_flag_spec_CXX
=
18581 hardcode_libdir_flag_spec_ld_CXX
=
18582 hardcode_libdir_separator_CXX
=
18583 hardcode_minus_L_CXX
=no
18584 hardcode_shlibpath_var_CXX
=unsupported
18585 hardcode_automatic_CXX
=no
18586 inherit_rpath_CXX
=no
18588 module_expsym_cmds_CXX
=
18589 link_all_deplibs_CXX
=unknown
18590 old_archive_cmds_CXX
=$old_archive_cmds
18591 reload_flag_CXX
=$reload_flag
18592 reload_cmds_CXX
=$reload_cmds
18593 no_undefined_flag_CXX
=
18594 whole_archive_flag_spec_CXX
=
18595 enable_shared_with_static_runtimes_CXX
=no
18597 # Source file extension for C++ test sources.
18600 # Object file extension for compiled C++ test sources.
18604 # No sense in running all these tests if we already determined that
18605 # the CXX compiler isn't working. Some variables (like enable_shared)
18606 # are currently assumed to apply to all compilers on this platform,
18607 # and will be corrupted by setting them based on a non-working compiler.
18608 if test "$_lt_caught_CXX_error" != yes; then
18609 # Code to be used in simple compile tests
18610 lt_simple_compile_test_code
="int some_variable = 0;"
18612 # Code to be used in simple link tests
18613 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18615 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18622 # If no C compiler was specified, use CC.
18625 # If no C compiler flags were specified, use CFLAGS.
18626 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18628 # Allow CC to be a program name with arguments.
18632 # save warnings/boilerplate of simple test code
18633 ac_outfile
=conftest.
$ac_objext
18634 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18635 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18636 _lt_compiler_boilerplate
=`cat conftest.err`
18639 ac_outfile
=conftest.
$ac_objext
18640 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18641 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18642 _lt_linker_boilerplate
=`cat conftest.err`
18646 # Allow CC to be a program name with arguments.
18651 lt_save_with_gnu_ld
=$with_gnu_ld
18652 lt_save_path_LD
=$lt_cv_path_LD
18653 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18654 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18656 $as_unset lt_cv_prog_gnu_ld
18658 if test -n "${lt_cv_path_LDCXX+set}"; then
18659 lt_cv_path_LD
=$lt_cv_path_LDCXX
18661 $as_unset lt_cv_path_LD
18663 test -z "${LDCXX+set}" || LD
=$LDCXX
18667 for cc_temp
in $compiler""; do
18669 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18670 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18675 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18678 if test -n "$compiler"; then
18679 # We don't want -fno-exception when compiling C++ code, so set the
18680 # no_builtin_flag separately
18681 if test "$GXX" = yes; then
18682 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18684 lt_prog_compiler_no_builtin_flag_CXX
=
18687 if test "$GXX" = yes; then
18688 # Set up default GNU C++ configuration
18692 # Check whether --with-gnu-ld was given.
18693 if test "${with_gnu_ld+set}" = set; then :
18694 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18700 if test "$GCC" = yes; then
18701 # Check if gcc -print-prog-name=ld gives a path.
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18703 $as_echo_n "checking for ld used by $CC... " >&6; }
18706 # gcc leaves a trailing carriage return which upsets mingw
18707 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18709 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18712 # Accept absolute paths.
18714 re_direlt
='/[^/][^/]*/\.\./'
18715 # Canonicalize the pathname of ld
18716 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18717 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18718 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18720 test -z "$LD" && LD
="$ac_prog"
18723 # If it fails, then pretend we aren't using GCC.
18727 # If it is relative, then search for the first ld in PATH.
18728 with_gnu_ld
=unknown
18731 elif test "$with_gnu_ld" = yes; then
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18733 $as_echo_n "checking for GNU ld... " >&6; }
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18736 $as_echo_n "checking for non-GNU ld... " >&6; }
18738 if test "${lt_cv_path_LD+set}" = set; then :
18739 $as_echo_n "(cached) " >&6
18741 if test -z "$LD"; then
18742 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18743 for ac_dir
in $PATH; do
18745 test -z "$ac_dir" && ac_dir
=.
18746 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18747 lt_cv_path_LD
="$ac_dir/$ac_prog"
18748 # Check to see if the program is GNU ld. I'd rather use --version,
18749 # but apparently some variants of GNU ld only accept -v.
18750 # Break only if it was the GNU/non-GNU ld that we prefer.
18751 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18752 *GNU
* |
*'with BFD'*)
18753 test "$with_gnu_ld" != no
&& break
18756 test "$with_gnu_ld" != yes && break
18763 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18767 LD
="$lt_cv_path_LD"
18768 if test -n "$LD"; then
18769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18770 $as_echo "$LD" >&6; }
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18773 $as_echo "no" >&6; }
18775 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18777 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18778 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18779 $as_echo_n "(cached) " >&6
18781 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18782 case `$LD -v 2>&1 </dev/null` in
18783 *GNU
* |
*'with BFD'*)
18784 lt_cv_prog_gnu_ld
=yes
18787 lt_cv_prog_gnu_ld
=no
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18792 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18793 with_gnu_ld
=$lt_cv_prog_gnu_ld
18801 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18802 # archiving commands below assume that GNU ld is being used.
18803 if test "$with_gnu_ld" = yes; then
18804 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18805 archive_expsym_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18807 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18808 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18810 # If archive_cmds runs LD, not CC, wlarc should be empty
18811 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18812 # investigate it a little bit more. (MM)
18815 # ancient GNU ld didn't support --whole-archive et. al.
18816 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18817 $GREP 'no-whole-archive' > /dev
/null
; then
18818 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18820 whole_archive_flag_spec_CXX
=
18826 # A generic and very simple default shared library creation
18827 # command for GNU C++ for the case where it uses the native
18828 # linker, instead of GNU ld. If possible, this setting should
18829 # overridden to take advantage of the native linker features on
18830 # the platform it is being used on.
18831 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18834 # Commands to make compiler produce verbose output that lists
18835 # what "hidden" libraries, object files and flags are used when
18836 # linking a shared library.
18837 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18845 # PORTME: fill in a description of your system's C++ link characteristics
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18847 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18851 # FIXME: insert proper C++ library support
18855 if test "$host_cpu" = ia64
; then
18856 # On IA64, the linker does run time linking by default, so we don't
18857 # have to do anything special.
18858 aix_use_runtimelinking
=no
18859 exp_sym_flag
='-Bexport'
18862 aix_use_runtimelinking
=no
18864 # Test if we are trying to use run time linking or normal
18865 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18866 # need to do runtime linking.
18867 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18868 for ld_flag
in $LDFLAGS; do
18871 aix_use_runtimelinking
=yes
18879 exp_sym_flag
='-bexport'
18880 no_entry_flag
='-bnoentry'
18883 # When large executables or shared objects are built, AIX ld can
18884 # have problems creating the table of contents. If linking a library
18885 # or program results in "error TOC overflow" add -mminimal-toc to
18886 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18887 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18889 archive_cmds_CXX
=''
18890 hardcode_direct_CXX
=yes
18891 hardcode_direct_absolute_CXX
=yes
18892 hardcode_libdir_separator_CXX
=':'
18893 link_all_deplibs_CXX
=yes
18894 file_list_spec_CXX
='${wl}-f,'
18896 if test "$GXX" = yes; then
18897 case $host_os in aix4.
[012]|aix4.
[012].
*)
18898 # We only want to do this on AIX 4.2 and lower, the check
18899 # below for broken collect2 doesn't work under 4.3+
18900 collect2name
=`${CC} -print-prog-name=collect2`
18901 if test -f "$collect2name" &&
18902 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18904 # We have reworked collect2
18907 # We have old collect2
18908 hardcode_direct_CXX
=unsupported
18909 # It fails to find uninstalled libraries when the uninstalled
18910 # path is not listed in the libpath. Setting hardcode_minus_L
18911 # to unsupported forces relinking
18912 hardcode_minus_L_CXX
=yes
18913 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18914 hardcode_libdir_separator_CXX
=
18917 shared_flag
='-shared'
18918 if test "$aix_use_runtimelinking" = yes; then
18919 shared_flag
="$shared_flag "'${wl}-G'
18923 if test "$host_cpu" = ia64
; then
18924 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18925 # chokes on -Wl,-G. The following line is correct:
18928 if test "$aix_use_runtimelinking" = yes; then
18929 shared_flag
='${wl}-G'
18931 shared_flag
='${wl}-bM:SRE'
18936 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18937 # It seems that -bexpall does not export symbols beginning with
18938 # underscore (_), so it is better to generate a list of symbols to
18940 always_export_symbols_CXX
=yes
18941 if test "$aix_use_runtimelinking" = yes; then
18942 # Warning - without using the other runtime loading flags (-brtl),
18943 # -berok will link without error, but may produce a broken library.
18944 allow_undefined_flag_CXX
='-berok'
18945 # Determine the default libpath from the value encoded in an empty
18947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18948 /* end confdefs.h. */
18958 if ac_fn_cxx_try_link
"$LINENO"; then :
18960 lt_aix_libpath_sed
='
18961 /Import File Strings/,/^$/ {
18967 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18968 # Check for a 64-bit object if we didn't find anything.
18969 if test -z "$aix_libpath"; then
18970 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18973 rm -f core conftest.err conftest.
$ac_objext \
18974 conftest
$ac_exeext conftest.
$ac_ext
18975 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18977 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18979 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"
18981 if test "$host_cpu" = ia64
; then
18982 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18983 allow_undefined_flag_CXX
="-z nodefs"
18984 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"
18986 # Determine the default libpath from the value encoded in an
18987 # empty executable.
18988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18989 /* end confdefs.h. */
18999 if ac_fn_cxx_try_link
"$LINENO"; then :
19001 lt_aix_libpath_sed
='
19002 /Import File Strings/,/^$/ {
19008 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19009 # Check for a 64-bit object if we didn't find anything.
19010 if test -z "$aix_libpath"; then
19011 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19014 rm -f core conftest.err conftest.
$ac_objext \
19015 conftest
$ac_exeext conftest.
$ac_ext
19016 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19018 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19019 # Warning - without using the other run time loading flags,
19020 # -berok will link without error, but may produce a broken library.
19021 no_undefined_flag_CXX
=' ${wl}-bernotok'
19022 allow_undefined_flag_CXX
=' ${wl}-berok'
19023 if test "$with_gnu_ld" = yes; then
19024 # We only use this code for GNU lds that support --whole-archive.
19025 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19027 # Exported symbols can be pulled into shared objects from archives
19028 whole_archive_flag_spec_CXX
='$convenience'
19030 archive_cmds_need_lc_CXX
=yes
19031 # This is similar to how AIX traditionally builds its shared
19033 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'
19039 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19040 allow_undefined_flag_CXX
=unsupported
19041 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19042 # support --undefined. This deserves some investigation. FIXME
19043 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19050 case $cc_basename in
19052 # FIXME: insert proper C++ library support
19058 cygwin
* | mingw
* | pw32
* | cegcc
*)
19059 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19060 # as there is no search path for DLLs.
19061 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19062 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19063 allow_undefined_flag_CXX
=unsupported
19064 always_export_symbols_CXX
=no
19065 enable_shared_with_static_runtimes_CXX
=yes
19067 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19068 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'
19069 # If the export-symbols file already is a .def file (1st line
19070 # is EXPORTS), use it as is; otherwise, prepend...
19071 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19072 cp $export_symbols $output_objdir/$soname.def;
19074 echo EXPORTS > $output_objdir/$soname.def;
19075 cat $export_symbols >> $output_objdir/$soname.def;
19077 $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'
19082 darwin
* | rhapsody
*)
19085 archive_cmds_need_lc_CXX
=no
19086 hardcode_direct_CXX
=no
19087 hardcode_automatic_CXX
=yes
19088 hardcode_shlibpath_var_CXX
=unsupported
19089 if test "$lt_cv_ld_force_load" = "yes"; then
19090 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\"`'
19092 whole_archive_flag_spec_CXX
=''
19094 link_all_deplibs_CXX
=yes
19095 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19096 case $cc_basename in
19097 ifort
*) _lt_dar_can_shared
=yes ;;
19098 *) _lt_dar_can_shared
=$GCC ;;
19100 if test "$_lt_dar_can_shared" = "yes"; then
19101 output_verbose_link_cmd
=func_echo_all
19102 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}"
19103 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19104 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}"
19105 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}"
19106 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19107 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}"
19108 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}"
19118 case $cc_basename in
19120 # FIXME: insert proper C++ library support
19124 # Green Hills C++ Compiler
19125 # FIXME: insert proper C++ library support
19129 # FIXME: insert proper C++ library support
19136 # C++ shared libraries reported to be fairly broken before
19142 archive_cmds_need_lc_CXX
=no
19145 freebsd
* | dragonfly
*)
19146 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19155 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19156 link_all_deplibs_CXX
=yes
19160 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19161 hardcode_libdir_separator_CXX
=:
19162 export_dynamic_flag_spec_CXX
='${wl}-E'
19163 hardcode_direct_CXX
=yes
19164 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19165 # but as the default
19166 # location of the library.
19168 case $cc_basename in
19170 # FIXME: insert proper C++ library support
19174 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'
19175 # Commands to make compiler produce verbose output that lists
19176 # what "hidden" libraries, object files and flags are used when
19177 # linking a shared library.
19179 # There doesn't appear to be a way to prevent this compiler from
19180 # explicitly linking system object files so we need to strip them
19181 # from the output so that they don't get included in the library
19183 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"'
19186 if test "$GXX" = yes; then
19187 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'
19189 # FIXME: insert proper C++ library support
19197 if test $with_gnu_ld = no
; then
19198 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19199 hardcode_libdir_separator_CXX
=:
19205 export_dynamic_flag_spec_CXX
='${wl}-E'
19211 hardcode_direct_CXX
=no
19212 hardcode_shlibpath_var_CXX
=no
19215 hardcode_direct_CXX
=yes
19216 hardcode_direct_absolute_CXX
=yes
19217 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19218 # but as the default
19219 # location of the library.
19223 case $cc_basename in
19225 # FIXME: insert proper C++ library support
19231 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19234 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19237 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19240 # Commands to make compiler produce verbose output that lists
19241 # what "hidden" libraries, object files and flags are used when
19242 # linking a shared library.
19244 # There doesn't appear to be a way to prevent this compiler from
19245 # explicitly linking system object files so we need to strip them
19246 # from the output so that they don't get included in the library
19248 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"'
19251 if test "$GXX" = yes; then
19252 if test $with_gnu_ld = no
; then
19255 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19258 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19261 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'
19266 # FIXME: insert proper C++ library support
19274 hardcode_direct_CXX
=no
19275 hardcode_shlibpath_var_CXX
=no
19276 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19277 export_dynamic_flag_spec_CXX
='${wl}-E'
19278 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19279 # Instead, shared libraries are loaded at an image base (0x10000000 by
19280 # default) and relocated if they conflict, which is a slow very memory
19281 # consuming and fragmenting process. To avoid this, we pick a random,
19282 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19283 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19284 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'
19285 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'
19288 case $cc_basename in
19291 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'
19293 # Archives containing C++ object files must be created using
19294 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19295 # necessary to make sure instantiated templates are included
19297 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19300 if test "$GXX" = yes; then
19301 if test "$with_gnu_ld" = no
; then
19302 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'
19304 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'
19307 link_all_deplibs_CXX
=yes
19310 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19311 hardcode_libdir_separator_CXX
=:
19312 inherit_rpath_CXX
=yes
19315 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19316 case $cc_basename in
19318 # Kuck and Associates, Inc. (KAI) C++ Compiler
19320 # KCC will only create a shared library if the output file
19321 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19322 # to its proper name (with version) after linking.
19323 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'
19324 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'
19325 # Commands to make compiler produce verbose output that lists
19326 # what "hidden" libraries, object files and flags are used when
19327 # linking a shared library.
19329 # There doesn't appear to be a way to prevent this compiler from
19330 # explicitly linking system object files so we need to strip them
19331 # from the output so that they don't get included in the library
19333 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"'
19335 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19336 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19338 # Archives containing C++ object files must be created using
19339 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19340 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19345 # version 8.0 and above of icpc choke on multiply defined symbols
19346 # if we add $predep_objects and $postdep_objects, however 7.1 and
19347 # earlier do not add the objects themselves.
19348 case `$CC -V 2>&1` in
19350 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19351 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'
19353 *) # Version 8.0 or newer
19356 ia64
*) tmp_idyn
=' -i_dynamic';;
19358 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19359 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'
19362 archive_cmds_need_lc_CXX
=no
19363 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19364 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19365 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19368 # Portland Group C++ compiler
19370 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19371 prelink_cmds_CXX
='tpldir=Template.dir~
19373 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19374 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19375 old_archive_cmds_CXX
='tpldir=Template.dir~
19377 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19378 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19380 archive_cmds_CXX
='tpldir=Template.dir~
19382 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19383 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19384 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19386 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19387 $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'
19389 *) # Version 6 and above use weak symbols
19390 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19391 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'
19395 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19396 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19397 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'
19401 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19402 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'
19404 runpath_var
=LD_RUN_PATH
19405 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19406 hardcode_libdir_separator_CXX
=:
19408 # Commands to make compiler produce verbose output that lists
19409 # what "hidden" libraries, object files and flags are used when
19410 # linking a shared library.
19412 # There doesn't appear to be a way to prevent this compiler from
19413 # explicitly linking system object files so we need to strip them
19414 # from the output so that they don't get included in the library
19416 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'
19418 xl
* | mpixl
* | bgxl
*)
19419 # IBM XL 8.0 on PPC, with GNU ld
19420 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19421 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19422 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19423 if test "x$supports_anon_versioning" = xyes
; then
19424 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19425 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19426 echo "local: *; };" >> $output_objdir/$libname.ver~
19427 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19431 case `$CC -V 2>&1 | sed 5q` in
19434 no_undefined_flag_CXX
=' -zdefs'
19435 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19436 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'
19437 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19438 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'
19439 compiler_needs_object_CXX
=yes
19441 # Not sure whether something based on
19442 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19444 output_verbose_link_cmd
='func_echo_all'
19446 # Archives containing C++ object files must be created using
19447 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19448 # necessary to make sure instantiated templates are included
19450 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19458 # FIXME: insert proper C++ library support
19463 # FIXME: insert proper C++ library support
19468 case $cc_basename in
19470 # FIXME: insert proper C++ library support
19474 # FIXME: insert proper C++ library support
19481 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19482 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19484 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19485 hardcode_direct_CXX
=yes
19486 hardcode_shlibpath_var_CXX
=no
19488 # Workaround some broken pre-1.5 toolchains
19489 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19497 # C++ shared libraries are fairly broken
19502 if test -f /usr
/libexec
/ld.so
; then
19503 hardcode_direct_CXX
=yes
19504 hardcode_shlibpath_var_CXX
=no
19505 hardcode_direct_absolute_CXX
=yes
19506 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19507 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19508 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19509 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19510 export_dynamic_flag_spec_CXX
='${wl}-E'
19511 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19513 output_verbose_link_cmd
=func_echo_all
19519 osf3
* | osf4
* | osf5
*)
19520 case $cc_basename in
19522 # Kuck and Associates, Inc. (KAI) C++ Compiler
19524 # KCC will only create a shared library if the output file
19525 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19526 # to its proper name (with version) after linking.
19527 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'
19529 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19530 hardcode_libdir_separator_CXX
=:
19532 # Archives containing C++ object files must be created using
19533 # the KAI C++ compiler.
19535 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19536 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19540 # Rational C++ 2.4.1
19541 # FIXME: insert proper C++ library support
19547 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19548 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'
19549 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19552 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19553 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'
19554 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19555 echo "-hidden">> $lib.exp~
19556 $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~
19558 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19562 hardcode_libdir_separator_CXX
=:
19564 # Commands to make compiler produce verbose output that lists
19565 # what "hidden" libraries, object files and flags are used when
19566 # linking a shared library.
19568 # There doesn't appear to be a way to prevent this compiler from
19569 # explicitly linking system object files so we need to strip them
19570 # from the output so that they don't get included in the library
19572 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"'
19575 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19576 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19579 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'
19582 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'
19586 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19587 hardcode_libdir_separator_CXX
=:
19589 # Commands to make compiler produce verbose output that lists
19590 # what "hidden" libraries, object files and flags are used when
19591 # linking a shared library.
19592 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19595 # FIXME: insert proper C++ library support
19603 # FIXME: insert proper C++ library support
19608 case $cc_basename in
19611 # FIXME: insert proper C++ library support
19616 # FIXME: insert proper C++ library support
19620 # FIXME: insert proper C++ library support
19627 case $cc_basename in
19629 # Sun C++ 4.2, 5.x and Centerline C++
19630 archive_cmds_need_lc_CXX
=yes
19631 no_undefined_flag_CXX
=' -zdefs'
19632 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19633 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19634 $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'
19636 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19637 hardcode_shlibpath_var_CXX
=no
19639 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19641 # The compiler driver will combine and reorder linker options,
19642 # but understands `-z linker_flag'.
19643 # Supported since Solaris 2.6 (maybe 2.5.1?)
19644 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19647 link_all_deplibs_CXX
=yes
19649 output_verbose_link_cmd
='func_echo_all'
19651 # Archives containing C++ object files must be created using
19652 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19653 # necessary to make sure instantiated templates are included
19655 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19658 # Green Hills C++ Compiler
19659 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19661 # The C++ compiler must be used to create the archive.
19662 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19665 # GNU C++ compiler with Solaris linker
19666 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19667 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19668 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19669 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19670 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19671 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19673 # Commands to make compiler produce verbose output that lists
19674 # what "hidden" libraries, object files and flags are used when
19675 # linking a shared library.
19676 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19678 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19680 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19681 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19682 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19684 # Commands to make compiler produce verbose output that lists
19685 # what "hidden" libraries, object files and flags are used when
19686 # linking a shared library.
19687 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19690 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19692 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19694 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19702 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19703 no_undefined_flag_CXX
='${wl}-z,text'
19704 archive_cmds_need_lc_CXX
=no
19705 hardcode_shlibpath_var_CXX
=no
19706 runpath_var
='LD_RUN_PATH'
19708 case $cc_basename in
19710 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19711 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19714 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19715 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19720 sysv5
* | sco3.2v5
* | sco5v6
*)
19721 # Note: We can NOT use -z defs as we might desire, because we do not
19722 # link with -lc, and that would cause any symbols used from libc to
19723 # always be unresolved, which means just about no library would
19724 # ever link correctly. If we're not using GNU ld we use -z text
19725 # though, which does catch some bad symbols but isn't as heavy-handed
19727 no_undefined_flag_CXX
='${wl}-z,text'
19728 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19729 archive_cmds_need_lc_CXX
=no
19730 hardcode_shlibpath_var_CXX
=no
19731 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19732 hardcode_libdir_separator_CXX
=':'
19733 link_all_deplibs_CXX
=yes
19734 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19735 runpath_var
='LD_RUN_PATH'
19737 case $cc_basename in
19739 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19740 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19741 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19742 '"$old_archive_cmds_CXX"
19743 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19744 '"$reload_cmds_CXX"
19747 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19748 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19754 case $cc_basename in
19756 # NonStop-UX NCC 3.20
19757 # FIXME: insert proper C++ library support
19761 # FIXME: insert proper C++ library support
19768 # FIXME: insert proper C++ library support
19773 # FIXME: insert proper C++ library support
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19779 $as_echo "$ld_shlibs_CXX" >&6; }
19780 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19786 ## There is no encapsulation within the following macros, do not change
19787 ## the running order or otherwise move them around unless you know exactly
19788 ## what you are doing...
19789 # Dependencies to place before and after the object being linked:
19790 predep_objects_CXX
=
19791 postdep_objects_CXX
=
19794 compiler_lib_search_path_CXX
=
19796 cat > conftest.
$ac_ext <<_LT_EOF
19800 Foo (void) { a = 0; }
19806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19807 (eval $ac_compile) 2>&5
19809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19810 test $ac_status = 0; }; then
19811 # Parse the compiler output and extract the necessary
19812 # objects, libraries and library flags.
19814 # Sentinel used to keep track of whether or not we are before
19815 # the conftest object file.
19816 pre_test_object_deps_done
=no
19818 for p
in `eval "$output_verbose_link_cmd"`; do
19822 # Some compilers place space between "-{L,R}" and the path.
19823 # Remove the space.
19824 if test $p = "-L" ||
19825 test $p = "-R"; then
19832 if test "$pre_test_object_deps_done" = no
; then
19835 # Internal compiler library paths should come after those
19836 # provided the user. The postdeps already come after the
19837 # user supplied libs so there is no need to process them.
19838 if test -z "$compiler_lib_search_path_CXX"; then
19839 compiler_lib_search_path_CXX
="${prev}${p}"
19841 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19844 # The "-l" case would never come before the object being
19845 # linked, so don't bother handling this case.
19848 if test -z "$postdeps_CXX"; then
19849 postdeps_CXX
="${prev}${p}"
19851 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19857 # This assumes that the test object file only shows up
19858 # once in the compiler output.
19859 if test "$p" = "conftest.$objext"; then
19860 pre_test_object_deps_done
=yes
19864 if test "$pre_test_object_deps_done" = no
; then
19865 if test -z "$predep_objects_CXX"; then
19866 predep_objects_CXX
="$p"
19868 predep_objects_CXX
="$predep_objects_CXX $p"
19871 if test -z "$postdep_objects_CXX"; then
19872 postdep_objects_CXX
="$p"
19874 postdep_objects_CXX
="$postdep_objects_CXX $p"
19879 *) ;; # Ignore the rest.
19887 echo "libtool.m4: error: problem compiling CXX test program"
19890 $RM -f confest.
$objext
19892 # PORTME: override above test on systems where it is broken
19895 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19896 # hack all around it, let's just trust "g++" to DTRT.
19897 predep_objects_CXX
=
19898 postdep_objects_CXX
=
19903 case `$CC -V 2>&1 | sed 5q` in
19907 # The more standards-conforming stlport4 library is
19908 # incompatible with the Cstd library. Avoid specifying
19909 # it if it's in CXXFLAGS. Ignore libCrun as
19910 # -library=stlport4 depends on it.
19911 case " $CXX $CXXFLAGS " in
19912 *" -library=stlport4 "*)
19913 solaris_use_stlport4
=yes
19917 if test "$solaris_use_stlport4" != yes; then
19918 postdeps_CXX
='-library=Cstd -library=Crun'
19925 case $cc_basename in
19927 # The more standards-conforming stlport4 library is
19928 # incompatible with the Cstd library. Avoid specifying
19929 # it if it's in CXXFLAGS. Ignore libCrun as
19930 # -library=stlport4 depends on it.
19931 case " $CXX $CXXFLAGS " in
19932 *" -library=stlport4 "*)
19933 solaris_use_stlport4
=yes
19937 # Adding this requires a known-good setup of shared libraries for
19938 # Sun compiler versions before 5.6, else PIC objects from an old
19939 # archive will be linked into the output, leading to subtle bugs.
19940 if test "$solaris_use_stlport4" != yes; then
19941 postdeps_CXX
='-library=Cstd -library=Crun'
19949 case " $postdeps_CXX " in
19950 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19952 compiler_lib_search_dirs_CXX
=
19953 if test -n "${compiler_lib_search_path_CXX}"; then
19954 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19987 lt_prog_compiler_wl_CXX
=
19988 lt_prog_compiler_pic_CXX
=
19989 lt_prog_compiler_static_CXX
=
19991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19992 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19994 # C++ specific cases for pic, static, wl, etc.
19995 if test "$GXX" = yes; then
19996 lt_prog_compiler_wl_CXX
='-Wl,'
19997 lt_prog_compiler_static_CXX
='-static'
20001 # All AIX code is PIC.
20002 if test "$host_cpu" = ia64
; then
20003 # AIX 5 now supports IA64 processor
20004 lt_prog_compiler_static_CXX
='-Bstatic'
20006 lt_prog_compiler_pic_CXX
='-fPIC'
20012 # see comment about AmigaOS4 .so support
20013 lt_prog_compiler_pic_CXX
='-fPIC'
20016 # FIXME: we need at least 68020 code to build shared libraries, but
20017 # adding the `-m68020' flag to GCC prevents building anything better,
20019 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20024 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20025 # PIC is the default for these OSes.
20027 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20028 # This hack is so that the source file can tell whether it is being
20029 # built for inclusion in a dll (and should export symbols for example).
20030 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20031 # (--disable-auto-import) libraries
20032 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20034 darwin
* | rhapsody
*)
20035 # PIC is the default on this platform
20036 # Common symbols not allowed in MH_DYLIB files
20037 lt_prog_compiler_pic_CXX
='-fno-common'
20040 # DJGPP does not support shared libraries at all
20041 lt_prog_compiler_pic_CXX
=
20044 # PIC is the default for Haiku.
20045 # The "-static" flag exists, but is broken.
20046 lt_prog_compiler_static_CXX
=
20049 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20050 # Instead, we relocate shared libraries at runtime.
20053 if test -d /usr
/nec
; then
20054 lt_prog_compiler_pic_CXX
=-Kconform_pic
20058 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20059 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20060 # sets the default TLS model and affects inlining.
20065 lt_prog_compiler_pic_CXX
='-fPIC'
20070 # QNX uses GNU C++, but need to define -shared option too, otherwise
20071 # it will coredump.
20072 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20075 lt_prog_compiler_pic_CXX
='-fPIC'
20081 # All AIX code is PIC.
20082 if test "$host_cpu" = ia64
; then
20083 # AIX 5 now supports IA64 processor
20084 lt_prog_compiler_static_CXX
='-Bstatic'
20086 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20090 case $cc_basename in
20092 # Green Hills C++ Compiler
20093 # _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"
20098 case $cc_basename in
20100 lt_prog_compiler_pic_CXX
='-KPIC'
20103 # Green Hills C++ Compiler
20104 lt_prog_compiler_pic_CXX
='-pic'
20110 freebsd
* | dragonfly
*)
20111 # FreeBSD uses GNU C++
20113 hpux9
* | hpux10
* | hpux11
*)
20114 case $cc_basename in
20116 lt_prog_compiler_wl_CXX
='-Wl,'
20117 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20118 if test "$host_cpu" != ia64
; then
20119 lt_prog_compiler_pic_CXX
='+Z'
20123 lt_prog_compiler_wl_CXX
='-Wl,'
20124 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20130 lt_prog_compiler_pic_CXX
='+Z'
20139 # This is c89, which is MS Visual C++ (no shared libs)
20140 # Anyone wants to do a port?
20142 irix5
* | irix6
* | nonstopux
*)
20143 case $cc_basename in
20145 lt_prog_compiler_wl_CXX
='-Wl,'
20146 lt_prog_compiler_static_CXX
='-non_shared'
20147 # CC pic flag -KPIC is the default.
20153 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20154 case $cc_basename in
20157 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20158 lt_prog_compiler_pic_CXX
='-fPIC'
20161 # old Intel C++ for x86_64 which still supported -KPIC.
20162 lt_prog_compiler_wl_CXX
='-Wl,'
20163 lt_prog_compiler_pic_CXX
='-KPIC'
20164 lt_prog_compiler_static_CXX
='-static'
20167 # Intel C++, used to be incompatible with GCC.
20168 # ICC 10 doesn't accept -KPIC any more.
20169 lt_prog_compiler_wl_CXX
='-Wl,'
20170 lt_prog_compiler_pic_CXX
='-fPIC'
20171 lt_prog_compiler_static_CXX
='-static'
20174 # Portland Group C++ compiler
20175 lt_prog_compiler_wl_CXX
='-Wl,'
20176 lt_prog_compiler_pic_CXX
='-fpic'
20177 lt_prog_compiler_static_CXX
='-Bstatic'
20181 # Make sure the PIC flag is empty. It appears that all Alpha
20182 # Linux and Compaq Tru64 Unix objects are PIC.
20183 lt_prog_compiler_pic_CXX
=
20184 lt_prog_compiler_static_CXX
='-non_shared'
20186 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20187 # IBM XL 8.0, 9.0 on PPC and BlueGene
20188 lt_prog_compiler_wl_CXX
='-Wl,'
20189 lt_prog_compiler_pic_CXX
='-qpic'
20190 lt_prog_compiler_static_CXX
='-qstaticlink'
20193 case `$CC -V 2>&1 | sed 5q` in
20196 lt_prog_compiler_pic_CXX
='-KPIC'
20197 lt_prog_compiler_static_CXX
='-Bstatic'
20198 lt_prog_compiler_wl_CXX
='-Qoption ld '
20209 case $cc_basename in
20211 lt_prog_compiler_pic_CXX
='-W c,exportall'
20220 # QNX uses GNU C++, but need to define -shared option too, otherwise
20221 # it will coredump.
20222 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20224 osf3
* | osf4
* | osf5
*)
20225 case $cc_basename in
20227 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20230 # Rational C++ 2.4.1
20231 lt_prog_compiler_pic_CXX
='-pic'
20234 # Digital/Compaq C++
20235 lt_prog_compiler_wl_CXX
='-Wl,'
20236 # Make sure the PIC flag is empty. It appears that all Alpha
20237 # Linux and Compaq Tru64 Unix objects are PIC.
20238 lt_prog_compiler_pic_CXX
=
20239 lt_prog_compiler_static_CXX
='-non_shared'
20248 case $cc_basename in
20250 # Sun C++ 4.2, 5.x and Centerline C++
20251 lt_prog_compiler_pic_CXX
='-KPIC'
20252 lt_prog_compiler_static_CXX
='-Bstatic'
20253 lt_prog_compiler_wl_CXX
='-Qoption ld '
20256 # Green Hills C++ Compiler
20257 lt_prog_compiler_pic_CXX
='-PIC'
20264 case $cc_basename in
20267 lt_prog_compiler_pic_CXX
='-pic'
20268 lt_prog_compiler_static_CXX
='-Bstatic'
20272 lt_prog_compiler_pic_CXX
='-pic'
20278 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20279 case $cc_basename in
20281 lt_prog_compiler_wl_CXX
='-Wl,'
20282 lt_prog_compiler_pic_CXX
='-KPIC'
20283 lt_prog_compiler_static_CXX
='-Bstatic'
20288 case $cc_basename in
20290 # NonStop-UX NCC 3.20
20291 lt_prog_compiler_pic_CXX
='-KPIC'
20300 lt_prog_compiler_can_build_shared_CXX
=no
20306 # For platforms which do not support PIC, -DPIC is meaningless:
20308 lt_prog_compiler_pic_CXX
=
20311 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20315 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20320 # Check to make sure the PIC flag actually works.
20322 if test -n "$lt_prog_compiler_pic_CXX"; then
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20324 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20325 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20326 $as_echo_n "(cached) " >&6
20328 lt_cv_prog_compiler_pic_works_CXX
=no
20329 ac_outfile
=conftest.
$ac_objext
20330 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20331 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20332 # Insert the option either (1) after the last *FLAGS variable, or
20333 # (2) before a word containing "conftest.", or (3) at the end.
20334 # Note that $ac_compile itself does not contain backslashes and begins
20335 # with a dollar sign (not a hyphen), so the echo should work correctly.
20336 # The option is referenced via a variable to avoid confusing sed.
20337 lt_compile
=`echo "$ac_compile" | $SED \
20338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20340 -e 's:$: $lt_compiler_flag:'`
20341 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20342 (eval "$lt_compile" 2>conftest.err
)
20344 cat conftest.err
>&5
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 if (exit $ac_status) && test -s "$ac_outfile"; then
20347 # The compiler can only warn and ignore the option if not recognized
20348 # So say no if there are warnings other than the usual output.
20349 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20350 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20351 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20352 lt_cv_prog_compiler_pic_works_CXX
=yes
20358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20359 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20361 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20362 case $lt_prog_compiler_pic_CXX in
20364 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20367 lt_prog_compiler_pic_CXX
=
20368 lt_prog_compiler_can_build_shared_CXX
=no
20376 # Check to make sure the static flag actually works.
20378 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20380 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20381 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20382 $as_echo_n "(cached) " >&6
20384 lt_cv_prog_compiler_static_works_CXX
=no
20385 save_LDFLAGS
="$LDFLAGS"
20386 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20387 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20388 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20389 # The linker can only warn and ignore the option if not recognized
20390 # So say no if there are warnings
20391 if test -s conftest.err
; then
20392 # Append any errors to the config.log.
20393 cat conftest.err
1>&5
20394 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20395 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20396 if diff conftest.exp conftest.er2
>/dev
/null
; then
20397 lt_cv_prog_compiler_static_works_CXX
=yes
20400 lt_cv_prog_compiler_static_works_CXX
=yes
20404 LDFLAGS
="$save_LDFLAGS"
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20408 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20410 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20413 lt_prog_compiler_static_CXX
=
20419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20420 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20421 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20422 $as_echo_n "(cached) " >&6
20424 lt_cv_prog_compiler_c_o_CXX
=no
20425 $RM -r conftest
2>/dev
/null
20429 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20431 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20432 # Insert the option either (1) after the last *FLAGS variable, or
20433 # (2) before a word containing "conftest.", or (3) at the end.
20434 # Note that $ac_compile itself does not contain backslashes and begins
20435 # with a dollar sign (not a hyphen), so the echo should work correctly.
20436 lt_compile
=`echo "$ac_compile" | $SED \
20437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20439 -e 's:$: $lt_compiler_flag:'`
20440 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20441 (eval "$lt_compile" 2>out
/conftest.err
)
20443 cat out
/conftest.err
>&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20447 # The compiler can only warn and ignore the option if not recognized
20448 # So say no if there are warnings
20449 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20450 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20451 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20452 lt_cv_prog_compiler_c_o_CXX
=yes
20457 # SGI C++ compiler will create directory out/ii_files/ for
20458 # template instantiation
20459 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20460 $RM out
/* && rmdir out
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20467 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20472 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20473 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20474 $as_echo_n "(cached) " >&6
20476 lt_cv_prog_compiler_c_o_CXX
=no
20477 $RM -r conftest
2>/dev
/null
20481 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20483 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20484 # Insert the option either (1) after the last *FLAGS variable, or
20485 # (2) before a word containing "conftest.", or (3) at the end.
20486 # Note that $ac_compile itself does not contain backslashes and begins
20487 # with a dollar sign (not a hyphen), so the echo should work correctly.
20488 lt_compile
=`echo "$ac_compile" | $SED \
20489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20491 -e 's:$: $lt_compiler_flag:'`
20492 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20493 (eval "$lt_compile" 2>out
/conftest.err
)
20495 cat out
/conftest.err
>&5
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20499 # The compiler can only warn and ignore the option if not recognized
20500 # So say no if there are warnings
20501 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20502 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20503 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20504 lt_cv_prog_compiler_c_o_CXX
=yes
20509 # SGI C++ compiler will create directory out/ii_files/ for
20510 # template instantiation
20511 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20512 $RM out
/* && rmdir out
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20519 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20524 hard_links
="nottested"
20525 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20526 # do not overwrite the value of need_locks provided by the user
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20528 $as_echo_n "checking if we can lock with hard links... " >&6; }
20531 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20533 ln conftest.a conftest.b
2>&5 || hard_links
=no
20534 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20536 $as_echo "$hard_links" >&6; }
20537 if test "$hard_links" = no
; then
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20539 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20549 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20551 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20554 # If we're using GNU nm, then we don't want the "-C" option.
20555 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20556 # Also, AIX nm treats weak defined symbols like other global defined
20557 # symbols, whereas GNU nm marks them as "W".
20558 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20559 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'
20561 export_symbols_cmds_CXX
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20565 export_symbols_cmds_CXX
="$ltdll_cmds"
20567 cygwin
* | mingw
* | cegcc
*)
20568 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'
20571 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20574 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20577 $as_echo "$ld_shlibs_CXX" >&6; }
20578 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20580 with_gnu_ld_CXX
=$with_gnu_ld
20588 # Do we need to explicitly link libc?
20590 case "x$archive_cmds_need_lc_CXX" in
20592 # Assume -lc should be added
20593 archive_cmds_need_lc_CXX
=yes
20595 if test "$enable_shared" = yes && test "$GCC" = yes; then
20596 case $archive_cmds_CXX in
20598 # FIXME: we may have to deal with multi-command sequences.
20601 # Test whether the compiler implicitly links with -lc since on some
20602 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20603 # to ld, don't add -lc before -lgcc.
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20605 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20606 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20607 $as_echo_n "(cached) " >&6
20610 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20613 (eval $ac_compile) 2>&5
20615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20616 test $ac_status = 0; } 2>conftest.err
; then
20619 libobjs
=conftest.
$ac_objext
20621 wl
=$lt_prog_compiler_wl_CXX
20622 pic_flag
=$lt_prog_compiler_pic_CXX
20628 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20629 allow_undefined_flag_CXX
=
20630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20631 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20634 test $ac_status = 0; }
20636 lt_cv_archive_cmds_need_lc_CXX
=no
20638 lt_cv_archive_cmds_need_lc_CXX
=yes
20640 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20642 cat conftest.err
1>&5
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20648 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20649 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20720 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20722 library_names_spec
=
20723 libname_spec
='lib$name'
20727 postuninstall_cmds
=
20731 shlibpath_overrides_runpath
=unknown
20733 dynamic_linker
="$host_os ld.so"
20734 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20735 need_lib_prefix
=unknown
20736 hardcode_into_libs
=no
20738 # when you set need_version to no, make sure it does not cause -set_version
20739 # flags to be left without arguments
20740 need_version
=unknown
20745 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20746 shlibpath_var
=LIBPATH
20748 # AIX 3 has no versioning support, so we append a major version to the name.
20749 soname_spec
='${libname}${release}${shared_ext}$major'
20756 hardcode_into_libs
=yes
20757 if test "$host_cpu" = ia64
; then
20758 # AIX 5 supports IA64
20759 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20760 shlibpath_var
=LD_LIBRARY_PATH
20762 # With GCC up to 2.95.x, collect2 would create an import file
20763 # for dependence libraries. The import file would start with
20764 # the line `#! .'. This would cause the generated library to
20765 # depend on `.', always an invalid library. This was fixed in
20766 # development snapshots of GCC prior to 3.0.
20768 aix4 | aix4.
[01] | aix4.
[01].
*)
20769 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20771 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20774 can_build_shared
=no
20778 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20779 # soname into executable. Probably we can add versioning support to
20780 # collect2, so additional links can be useful in future.
20781 if test "$aix_use_runtimelinking" = yes; then
20782 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20783 # instead of lib<name>.a to let people know that these are not
20784 # typical AIX shared libraries.
20785 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20787 # We preserve .a as extension for shared libraries through AIX4.2
20788 # and later when we are not doing run time linking.
20789 library_names_spec
='${libname}${release}.a $libname.a'
20790 soname_spec
='${libname}${release}${shared_ext}$major'
20792 shlibpath_var
=LIBPATH
20799 # Since July 2007 AmigaOS4 officially supports .so libraries.
20800 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20801 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20804 library_names_spec
='$libname.ixlibrary $libname.a'
20805 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20806 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'
20812 library_names_spec
='${libname}${shared_ext}'
20813 dynamic_linker
="$host_os ld.so"
20814 shlibpath_var
=LIBRARY_PATH
20820 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20821 soname_spec
='${libname}${release}${shared_ext}$major'
20822 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20823 shlibpath_var
=LD_LIBRARY_PATH
20824 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20825 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20826 # the default ld.so.conf also contains /usr/contrib/lib and
20827 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20828 # libtool to hard-code these into programs
20831 cygwin
* | mingw
* | pw32
* | cegcc
*)
20832 version_type
=windows
20837 case $GCC,$host_os in
20838 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20839 library_names_spec
='$libname.dll.a'
20840 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20841 postinstall_cmds
='base_file=`basename \${file}`~
20842 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20843 dldir=$destdir/`dirname \$dlpath`~
20844 test -d \$dldir || mkdir -p \$dldir~
20845 $install_prog $dir/$dlname \$dldir/$dlname~
20846 chmod a+x \$dldir/$dlname~
20847 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20848 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20850 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20851 dlpath=$dir/\$dldll~
20853 shlibpath_overrides_runpath
=yes
20857 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20858 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20862 # MinGW DLLs use traditional 'lib' prefix
20863 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20866 # pw32 DLLs use 'pw' prefix rather than 'lib'
20867 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20873 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20876 dynamic_linker
='Win32 ld.exe'
20877 # FIXME: first we should search . and the directory the executable is in
20881 darwin
* | rhapsody
*)
20882 dynamic_linker
="$host_os dyld"
20883 version_type
=darwin
20886 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20887 soname_spec
='${libname}${release}${major}$shared_ext'
20888 shlibpath_overrides_runpath
=yes
20889 shlibpath_var
=DYLD_LIBRARY_PATH
20890 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20892 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20899 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20900 soname_spec
='${libname}${release}${shared_ext}$major'
20901 shlibpath_var
=LD_LIBRARY_PATH
20904 freebsd
* | dragonfly
*)
20905 # DragonFly does not have aout. When/if they implement a new
20906 # versioning mechanism, adjust this.
20907 if test -x /usr
/bin
/objformat
; then
20908 objformat
=`/usr/bin/objformat`
20911 freebsd
[23].
*) objformat
=aout
;;
20912 *) objformat
=elf
;;
20915 version_type
=freebsd-
$objformat
20916 case $version_type in
20918 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20923 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20927 shlibpath_var
=LD_LIBRARY_PATH
20930 shlibpath_overrides_runpath
=yes
20932 freebsd3.
[01]* | freebsdelf3.
[01]*)
20933 shlibpath_overrides_runpath
=yes
20934 hardcode_into_libs
=yes
20936 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20937 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20938 shlibpath_overrides_runpath
=no
20939 hardcode_into_libs
=yes
20941 *) # from 4.6 on, and DragonFly
20942 shlibpath_overrides_runpath
=yes
20943 hardcode_into_libs
=yes
20952 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20953 soname_spec
='${libname}${release}${shared_ext}$major'
20954 shlibpath_var
=LD_LIBRARY_PATH
20955 hardcode_into_libs
=yes
20962 dynamic_linker
="$host_os runtime_loader"
20963 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20964 soname_spec
='${libname}${release}${shared_ext}$major'
20965 shlibpath_var
=LIBRARY_PATH
20966 shlibpath_overrides_runpath
=yes
20967 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20968 hardcode_into_libs
=yes
20971 hpux9
* | hpux10
* | hpux11
*)
20972 # Give a soname corresponding to the major version so that dld.sl refuses to
20973 # link against other versions.
20980 hardcode_into_libs
=yes
20981 dynamic_linker
="$host_os dld.so"
20982 shlibpath_var
=LD_LIBRARY_PATH
20983 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20984 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20985 soname_spec
='${libname}${release}${shared_ext}$major'
20986 if test "X$HPUX_IA64_MODE" = X32
; then
20987 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20989 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20991 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20995 hardcode_into_libs
=yes
20996 dynamic_linker
="$host_os dld.sl"
20997 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20998 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20999 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21000 soname_spec
='${libname}${release}${shared_ext}$major'
21001 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21002 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21006 dynamic_linker
="$host_os dld.sl"
21007 shlibpath_var
=SHLIB_PATH
21008 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21009 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21010 soname_spec
='${libname}${release}${shared_ext}$major'
21013 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21014 postinstall_cmds
='chmod 555 $lib'
21015 # or fails outright, so override atomically:
21016 install_override_mode
=555
21023 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21024 soname_spec
='${libname}${release}${shared_ext}$major'
21025 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21026 shlibpath_var
=LD_LIBRARY_PATH
21027 shlibpath_overrides_runpath
=no
21028 hardcode_into_libs
=yes
21031 irix5
* | irix6
* | nonstopux
*)
21033 nonstopux
*) version_type
=nonstopux
;;
21035 if test "$lt_cv_prog_gnu_ld" = yes; then
21043 soname_spec
='${libname}${release}${shared_ext}$major'
21044 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21046 irix5
* | nonstopux
*)
21047 libsuff
= shlibsuff
=
21050 case $LD in # libtool.m4 will add one of these switches to LD
21051 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21052 libsuff
= shlibsuff
= libmagic
=32-bit;;
21053 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21054 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21055 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21056 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21057 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21061 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21062 shlibpath_overrides_runpath
=no
21063 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21064 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21065 hardcode_into_libs
=yes
21068 # No shared lib support for Linux oldld, aout, or coff.
21069 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21073 # This must be Linux ELF.
21074 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21078 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21079 soname_spec
='${libname}${release}${shared_ext}$major'
21080 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21081 shlibpath_var
=LD_LIBRARY_PATH
21082 shlibpath_overrides_runpath
=no
21084 # Some binutils ld are patched to set DT_RUNPATH
21085 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21086 $as_echo_n "(cached) " >&6
21088 lt_cv_shlibpath_overrides_runpath
=no
21089 save_LDFLAGS
=$LDFLAGS
21090 save_libdir
=$libdir
21091 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21092 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21094 /* end confdefs.h. */
21104 if ac_fn_cxx_try_link
"$LINENO"; then :
21105 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21106 lt_cv_shlibpath_overrides_runpath
=yes
21109 rm -f core conftest.err conftest.
$ac_objext \
21110 conftest
$ac_exeext conftest.
$ac_ext
21111 LDFLAGS
=$save_LDFLAGS
21112 libdir
=$save_libdir
21116 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21118 # This implies no fast_install, which is unacceptable.
21119 # Some rework will be needed to allow for fast_install
21120 # before this can be enabled.
21121 hardcode_into_libs
=yes
21123 # Append ld.so.conf contents to the search path
21124 if test -f /etc
/ld.so.conf
; then
21125 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' ' '`
21126 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21129 # We used to test for /lib/ld.so.1 and disable shared libraries on
21130 # powerpc, because MkLinux only supported shared libraries with the
21131 # GNU dynamic linker. Since this was broken with cross compilers,
21132 # most powerpc-linux boxes support dynamic linking these days and
21133 # people can always --disable-shared, the test was removed, and we
21134 # assume the GNU/Linux dynamic linker is in use.
21135 dynamic_linker
='GNU/Linux ld.so'
21142 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21143 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21144 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21145 dynamic_linker
='NetBSD (a.out) ld.so'
21147 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21148 soname_spec
='${libname}${release}${shared_ext}$major'
21149 dynamic_linker
='NetBSD ld.elf_so'
21151 shlibpath_var
=LD_LIBRARY_PATH
21152 shlibpath_overrides_runpath
=yes
21153 hardcode_into_libs
=yes
21158 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21159 shlibpath_var
=LD_LIBRARY_PATH
21160 shlibpath_overrides_runpath
=yes
21167 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21168 soname_spec
='${libname}${release}${shared_ext}$major'
21169 shlibpath_var
=LD_LIBRARY_PATH
21170 shlibpath_overrides_runpath
=no
21171 hardcode_into_libs
=yes
21172 dynamic_linker
='ldqnx.so'
21177 sys_lib_dlsearch_path_spec
="/usr/lib"
21179 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21181 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21182 *) need_version
=no
;;
21184 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21185 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21186 shlibpath_var
=LD_LIBRARY_PATH
21187 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21189 openbsd2.
[89] | openbsd2.
[89].
*)
21190 shlibpath_overrides_runpath
=no
21193 shlibpath_overrides_runpath
=yes
21197 shlibpath_overrides_runpath
=yes
21202 libname_spec
='$name'
21205 library_names_spec
='$libname${shared_ext} $libname.a'
21206 dynamic_linker
='OS/2 ld.exe'
21207 shlibpath_var
=LIBPATH
21210 osf3
* | osf4
* | osf5
*)
21214 soname_spec
='${libname}${release}${shared_ext}$major'
21215 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21216 shlibpath_var
=LD_LIBRARY_PATH
21217 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21218 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21229 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21230 soname_spec
='${libname}${release}${shared_ext}$major'
21231 shlibpath_var
=LD_LIBRARY_PATH
21232 shlibpath_overrides_runpath
=yes
21233 hardcode_into_libs
=yes
21234 # ldd complains unless libraries are executable
21235 postinstall_cmds
='chmod +x $lib'
21240 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21241 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21242 shlibpath_var
=LD_LIBRARY_PATH
21243 shlibpath_overrides_runpath
=yes
21244 if test "$with_gnu_ld" = yes; then
21252 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21253 soname_spec
='${libname}${release}${shared_ext}$major'
21254 shlibpath_var
=LD_LIBRARY_PATH
21255 case $host_vendor in
21257 shlibpath_overrides_runpath
=no
21259 runpath_var
=LD_RUN_PATH
21267 shlibpath_overrides_runpath
=no
21268 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21274 if test -d /usr
/nec
;then
21276 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21277 soname_spec
='$libname${shared_ext}.$major'
21278 shlibpath_var
=LD_LIBRARY_PATH
21282 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21283 version_type
=freebsd-elf
21286 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21287 soname_spec
='${libname}${release}${shared_ext}$major'
21288 shlibpath_var
=LD_LIBRARY_PATH
21289 shlibpath_overrides_runpath
=yes
21290 hardcode_into_libs
=yes
21291 if test "$with_gnu_ld" = yes; then
21292 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21294 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21297 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21301 sys_lib_dlsearch_path_spec
='/usr/lib'
21305 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21309 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21310 shlibpath_var
=LD_LIBRARY_PATH
21311 shlibpath_overrides_runpath
=no
21312 hardcode_into_libs
=yes
21317 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21318 soname_spec
='${libname}${release}${shared_ext}$major'
21319 shlibpath_var
=LD_LIBRARY_PATH
21326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21327 $as_echo "$dynamic_linker" >&6; }
21328 test "$dynamic_linker" = no
&& can_build_shared
=no
21330 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21331 if test "$GCC" = yes; then
21332 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21335 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21336 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21338 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21339 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21380 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21381 hardcode_action_CXX
=
21382 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21383 test -n "$runpath_var_CXX" ||
21384 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21386 # We can hardcode non-existent directories.
21387 if test "$hardcode_direct_CXX" != no
&&
21388 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21389 # have to relink, otherwise we might link with an installed library
21390 # when we should be linking with a yet-to-be-installed one
21391 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21392 test "$hardcode_minus_L_CXX" != no
; then
21393 # Linking always hardcodes the temporary library directory.
21394 hardcode_action_CXX
=relink
21396 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21397 hardcode_action_CXX
=immediate
21400 # We cannot hardcode anything, or else we can only hardcode existing
21402 hardcode_action_CXX
=unsupported
21404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21405 $as_echo "$hardcode_action_CXX" >&6; }
21407 if test "$hardcode_action_CXX" = relink ||
21408 test "$inherit_rpath_CXX" = yes; then
21409 # Fast installation is not supported
21410 enable_fast_install
=no
21411 elif test "$shlibpath_overrides_runpath" = yes ||
21412 test "$enable_shared" = no
; then
21413 # Fast installation is not necessary
21414 enable_fast_install
=needless
21423 fi # test -n "$compiler"
21429 with_gnu_ld
=$lt_save_with_gnu_ld
21430 lt_cv_path_LDCXX
=$lt_cv_path_LD
21431 lt_cv_path_LD
=$lt_save_path_LD
21432 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21433 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21434 fi # test "$_lt_caught_CXX_error" != yes
21437 ac_cpp
='$CPP $CPPFLAGS'
21438 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21439 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21440 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21457 # Only expand once:
21463 # Identify the assembler which will work hand-in-glove with the newly
21464 # built GCC, so that we can examine its features. This is the assembler
21465 # which will be driven by the driver program.
21467 # If build != host, and we aren't building gas in-tree, we identify a
21468 # build->target assembler and hope that it will have the same features
21469 # as the host->target assembler we'll be using.
21470 gcc_cv_gas_major_version
=
21471 gcc_cv_gas_minor_version
=
21472 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21474 if test "${gcc_cv_as+set}" = set; then :
21478 if test -x "$DEFAULT_ASSEMBLER"; then
21479 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21480 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21481 && test -f ..
/gas
/Makefile \
21482 && test x
$build = x
$host; then
21483 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21484 elif test -x as
$build_exeext; then
21485 # Build using assembler in the current directory.
21486 gcc_cv_as
=.
/as
$build_exeext
21487 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21488 gcc_cv_as
="$AS_FOR_TARGET"
21490 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21491 set dummy
$AS_FOR_TARGET; ac_word
=$2
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21493 $as_echo_n "checking for $ac_word... " >&6; }
21494 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21495 $as_echo_n "(cached) " >&6
21499 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21503 for as_dir
in $PATH
21506 test -z "$as_dir" && as_dir
=.
21507 for ac_exec_ext
in '' $ac_executable_extensions; do
21508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21509 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21520 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21521 if test -n "$gcc_cv_as"; then
21522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21523 $as_echo "$gcc_cv_as" >&6; }
21525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21526 $as_echo "no" >&6; }
21533 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21535 case "$ORIGINAL_AS_FOR_TARGET" in
21536 .
/as | .
/as
$build_exeext) ;;
21537 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21542 $as_echo_n "checking what assembler to use... " >&6; }
21543 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21544 # Single tree build which includes gas. We want to prefer it
21545 # over whatever linker top-level may have detected, since
21546 # we'll use what we're building after installation anyway.
21547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21548 $as_echo "newly built gas" >&6; }
21550 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21551 for f
in $gcc_cv_as_bfd_srcdir/configure \
21552 $gcc_cv_as_gas_srcdir/configure \
21553 $gcc_cv_as_gas_srcdir/configure.
in \
21554 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21555 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21556 if test x
$gcc_cv_gas_version != x
; then
21560 case $gcc_cv_gas_version in
21562 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21564 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21565 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21566 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21567 case $gcc_cv_gas_patch_version in
21568 "") gcc_cv_gas_patch_version
="0" ;;
21570 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21571 + $gcc_cv_gas_minor_version \) \* 1000 \
21572 + $gcc_cv_gas_patch_version`
21574 in_tree_gas_is_elf
=no
21575 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21576 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21577 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21579 in_tree_gas_is_elf
=yes
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21583 $as_echo "$gcc_cv_as" >&6; }
21588 # Check whether --enable-ld was given.
21589 if test "${enable_ld+set}" = set; then :
21590 enableval
=$enable_ld; case "${enableval}" in
21598 install_gold_as_default
=no
21599 # Check whether --enable-gold was given.
21600 if test "${enable_gold+set}" = set; then :
21601 enableval
=$enable_gold; case "${enableval}" in
21603 install_gold_as_default
=yes
21606 if test x
${default_ld} != x
; then
21607 install_gold_as_default
=yes
21613 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21619 # Identify the linker which will work hand-in-glove with the newly
21620 # built GCC, so that we can examine its features. This is the linker
21621 # which will be driven by the driver program.
21623 # If build != host, and we aren't building gas in-tree, we identify a
21624 # build->target linker and hope that it will have the same features
21625 # as the host->target linker we'll be using.
21626 gcc_cv_gld_major_version
=
21627 gcc_cv_gld_minor_version
=
21628 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21629 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21630 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21632 if test "${gcc_cv_ld+set}" = set; then :
21636 if test -x "$DEFAULT_LINKER"; then
21637 gcc_cv_ld
="$DEFAULT_LINKER"
21638 elif test $install_gold_as_default = yes \
21639 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21640 && test -f ..
/gold
/Makefile \
21641 && test x
$build = x
$host; then
21642 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
21643 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21644 && test -f ..
/ld
/Makefile \
21645 && test x
$build = x
$host; then
21646 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21647 elif test -x collect-ld
$build_exeext; then
21648 # Build using linker in the current directory.
21649 gcc_cv_ld
=.
/collect-ld
$build_exeext
21650 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21651 gcc_cv_ld
="$LD_FOR_TARGET"
21653 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21654 set dummy
$LD_FOR_TARGET; ac_word
=$2
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21656 $as_echo_n "checking for $ac_word... " >&6; }
21657 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21658 $as_echo_n "(cached) " >&6
21662 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21665 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21666 for as_dir
in $PATH
21669 test -z "$as_dir" && as_dir
=.
21670 for ac_exec_ext
in '' $ac_executable_extensions; do
21671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21672 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21683 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21684 if test -n "$gcc_cv_ld"; then
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21686 $as_echo "$gcc_cv_ld" >&6; }
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21689 $as_echo "no" >&6; }
21696 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21697 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21698 # if the PLUGIN_LD is set ld-new, just have it as ld
21699 # as that is the installed named.
21700 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21701 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21702 PLUGIN_LD_SUFFIX
=ld
21705 # Check whether --with-plugin-ld was given.
21706 if test "${with_plugin_ld+set}" = set; then :
21707 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21708 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21709 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21715 cat >>confdefs.h
<<_ACEOF
21716 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21720 # Check to see if we are using gold instead of ld
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21722 $as_echo_n "checking whether we are using gold... " >&6; }
21724 if test x
$gcc_cv_ld != x
; then
21725 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21726 |
grep "GNU gold" > /dev
/null
; then
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21731 $as_echo "$ld_is_gold" >&6; }
21733 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21735 case "$ORIGINAL_LD_FOR_TARGET" in
21736 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21737 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21742 $as_echo_n "checking what linker to use... " >&6; }
21743 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21744 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21745 # Single tree build which includes ld. We want to prefer it
21746 # over whatever linker top-level may have detected, since
21747 # we'll use what we're building after installation anyway.
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21749 $as_echo "newly built ld" >&6; }
21751 in_tree_ld_is_elf
=no
21752 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21753 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21754 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21755 in_tree_ld_is_elf
=yes
21756 elif test "$ld_is_gold" = yes; then
21757 in_tree_ld_is_elf
=yes
21759 for f
in $gcc_cv_ld_bfd_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure.
in $gcc_cv_ld_gld_srcdir/Makefile.
in
21761 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21762 if test x
$gcc_cv_gld_version != x
; then
21766 case $gcc_cv_gld_version in
21768 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21770 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21771 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21772 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
21773 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21776 $as_echo "$gcc_cv_ld" >&6; }
21778 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21779 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
21780 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
21786 # Figure out what nm we will be using.
21787 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21788 if test "${gcc_cv_nm+set}" = set; then :
21792 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21793 && test -f ..
/binutils
/Makefile \
21794 && test x
$build = x
$host; then
21795 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21796 elif test -x nm
$build_exeext; then
21797 gcc_cv_nm
=.
/nm
$build_exeext
21798 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21799 gcc_cv_nm
="$NM_FOR_TARGET"
21801 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21802 set dummy
$NM_FOR_TARGET; ac_word
=$2
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21804 $as_echo_n "checking for $ac_word... " >&6; }
21805 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21806 $as_echo_n "(cached) " >&6
21810 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21814 for as_dir
in $PATH
21817 test -z "$as_dir" && as_dir
=.
21818 for ac_exec_ext
in '' $ac_executable_extensions; do
21819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21820 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21831 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21832 if test -n "$gcc_cv_nm"; then
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21834 $as_echo "$gcc_cv_nm" >&6; }
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21837 $as_echo "no" >&6; }
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21845 $as_echo_n "checking what nm to use... " >&6; }
21846 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21847 # Single tree build which includes binutils.
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21849 $as_echo "newly built nm" >&6; }
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21853 $as_echo "$gcc_cv_nm" >&6; }
21857 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21859 case "$ORIGINAL_NM_FOR_TARGET" in
21860 .
/nm | .
/nm
$build_exeext) ;;
21861 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21866 # Figure out what objdump we will be using.
21867 if test "${gcc_cv_objdump+set}" = set; then :
21871 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21872 && test -f ..
/binutils
/Makefile \
21873 && test x
$build = x
$host; then
21874 # Single tree build which includes binutils.
21875 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21876 elif test -x objdump
$build_exeext; then
21877 gcc_cv_objdump
=.
/objdump
$build_exeext
21878 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21879 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21881 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21882 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21884 $as_echo_n "checking for $ac_word... " >&6; }
21885 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21886 $as_echo_n "(cached) " >&6
21888 case $gcc_cv_objdump in
21890 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21894 for as_dir
in $PATH
21897 test -z "$as_dir" && as_dir
=.
21898 for ac_exec_ext
in '' $ac_executable_extensions; do
21899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21900 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21911 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21912 if test -n "$gcc_cv_objdump"; then
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21914 $as_echo "$gcc_cv_objdump" >&6; }
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21917 $as_echo "no" >&6; }
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21925 $as_echo_n "checking what objdump to use... " >&6; }
21926 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21927 # Single tree build which includes binutils.
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21929 $as_echo "newly built objdump" >&6; }
21930 elif test x
$gcc_cv_objdump = x
; then
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21932 $as_echo "not found" >&6; }
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21935 $as_echo "$gcc_cv_objdump" >&6; }
21938 # Figure out what readelf we will be using.
21939 if test "${gcc_cv_readelf+set}" = set; then :
21943 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21944 && test -f ..
/binutils
/Makefile \
21945 && test x
$build = x
$host; then
21946 # Single tree build which includes binutils.
21947 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21948 elif test -x readelf
$build_exeext; then
21949 gcc_cv_readelf
=.
/readelf
$build_exeext
21951 # Extract the first word of "readelf", so it can be a program name with args.
21952 set dummy readelf
; ac_word
=$2
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21954 $as_echo_n "checking for $ac_word... " >&6; }
21955 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21956 $as_echo_n "(cached) " >&6
21958 case $gcc_cv_readelf in
21960 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21963 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21964 for as_dir
in $PATH
21967 test -z "$as_dir" && as_dir
=.
21968 for ac_exec_ext
in '' $ac_executable_extensions; do
21969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21970 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21981 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21982 if test -n "$gcc_cv_readelf"; then
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21984 $as_echo "$gcc_cv_readelf" >&6; }
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21987 $as_echo "no" >&6; }
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21995 $as_echo_n "checking what readelf to use... " >&6; }
21996 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21997 # Single tree build which includes binutils.
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21999 $as_echo "newly built readelf" >&6; }
22000 elif test x
$gcc_cv_readelf = x
; then
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22002 $as_echo "not found" >&6; }
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22005 $as_echo "$gcc_cv_readelf" >&6; }
22008 # Figure out what assembler alignment features are present.
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22010 $as_echo_n "checking assembler flags... " >&6; }
22011 if test "${gcc_cv_as_flags+set}" = set; then :
22012 $as_echo_n "(cached) " >&6
22015 i
[34567]86-*-linux*)
22016 gcc_cv_as_flags
=--32
22018 x86_64-
*-linux-gnux32)
22019 gcc_cv_as_flags
=--x32
22022 gcc_cv_as_flags
=--64
22024 powerpc
*-*-darwin*)
22025 gcc_cv_as_flags
="-arch ppc"
22028 gcc_cv_as_flags
=" "
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22033 $as_echo "$gcc_cv_as_flags" >&6; }
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22036 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22037 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22038 $as_echo_n "(cached) " >&6
22040 gcc_cv_as_balign_and_p2align
=no
22041 if test $in_tree_gas = yes; then
22042 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22043 then gcc_cv_as_balign_and_p2align
=yes
22045 elif test x
$gcc_cv_as != x
; then
22046 $as_echo '.balign 4
22047 .p2align 2' > conftest.s
22048 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22050 (eval $ac_try) 2>&5
22052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22053 test $ac_status = 0; }; }
22055 gcc_cv_as_balign_and_p2align
=yes
22057 echo "configure: failed program was" >&5
22060 rm -f conftest.o conftest.s
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22064 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22065 if test $gcc_cv_as_balign_and_p2align = yes; then
22067 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22072 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22073 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22074 $as_echo_n "(cached) " >&6
22076 gcc_cv_as_max_skip_p2align
=no
22077 if test $in_tree_gas = yes; then
22078 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22079 then gcc_cv_as_max_skip_p2align
=yes
22081 elif test x
$gcc_cv_as != x
; then
22082 $as_echo '.p2align 4,,7' > conftest.s
22083 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22085 (eval $ac_try) 2>&5
22087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22088 test $ac_status = 0; }; }
22090 gcc_cv_as_max_skip_p2align
=yes
22092 echo "configure: failed program was" >&5
22095 rm -f conftest.o conftest.s
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22099 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22100 if test $gcc_cv_as_max_skip_p2align = yes; then
22102 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22107 $as_echo_n "checking assembler for .literal16... " >&6; }
22108 if test "${gcc_cv_as_literal16+set}" = set; then :
22109 $as_echo_n "(cached) " >&6
22111 gcc_cv_as_literal16
=no
22112 if test $in_tree_gas = yes; then
22113 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22114 then gcc_cv_as_literal16
=yes
22116 elif test x
$gcc_cv_as != x
; then
22117 $as_echo '.literal16' > conftest.s
22118 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22120 (eval $ac_try) 2>&5
22122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22123 test $ac_status = 0; }; }
22125 gcc_cv_as_literal16
=yes
22127 echo "configure: failed program was" >&5
22130 rm -f conftest.o conftest.s
22133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22134 $as_echo "$gcc_cv_as_literal16" >&6; }
22135 if test $gcc_cv_as_literal16 = yes; then
22137 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22142 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22143 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22144 $as_echo_n "(cached) " >&6
22146 gcc_cv_as_subsection_m1
=no
22147 if test $in_tree_gas = yes; then
22148 if test $in_tree_gas_is_elf = yes \
22149 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22150 then gcc_cv_as_subsection_m1
=yes
22152 elif test x
$gcc_cv_as != x
; then
22153 $as_echo 'conftest_label1: .word 0
22155 conftest_label2: .word 0
22156 .previous' > conftest.s
22157 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22159 (eval $ac_try) 2>&5
22161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22162 test $ac_status = 0; }; }
22164 if test x
$gcc_cv_nm != x
; then
22165 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22166 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22167 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22169 else gcc_cv_as_subsection_m1
=yes
22171 rm -f conftest.nm1 conftest.nm2
22174 echo "configure: failed program was" >&5
22177 rm -f conftest.o conftest.s
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22181 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22182 if test $gcc_cv_as_subsection_m1 = yes; then
22184 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22189 $as_echo_n "checking assembler for .weak... " >&6; }
22190 if test "${gcc_cv_as_weak+set}" = set; then :
22191 $as_echo_n "(cached) " >&6
22194 if test $in_tree_gas = yes; then
22195 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22196 then gcc_cv_as_weak
=yes
22198 elif test x
$gcc_cv_as != x
; then
22199 $as_echo ' .weak foobar' > conftest.s
22200 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22202 (eval $ac_try) 2>&5
22204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22205 test $ac_status = 0; }; }
22209 echo "configure: failed program was" >&5
22212 rm -f conftest.o conftest.s
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22216 $as_echo "$gcc_cv_as_weak" >&6; }
22217 if test $gcc_cv_as_weak = yes; then
22219 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22224 $as_echo_n "checking assembler for .weakref... " >&6; }
22225 if test "${gcc_cv_as_weakref+set}" = set; then :
22226 $as_echo_n "(cached) " >&6
22228 gcc_cv_as_weakref
=no
22229 if test $in_tree_gas = yes; then
22230 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22231 then gcc_cv_as_weakref
=yes
22233 elif test x
$gcc_cv_as != x
; then
22234 $as_echo ' .weakref foobar, barfnot' > conftest.s
22235 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22237 (eval $ac_try) 2>&5
22239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22240 test $ac_status = 0; }; }
22242 gcc_cv_as_weakref
=yes
22244 echo "configure: failed program was" >&5
22247 rm -f conftest.o conftest.s
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22251 $as_echo "$gcc_cv_as_weakref" >&6; }
22252 if test $gcc_cv_as_weakref = yes; then
22254 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22259 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22260 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22261 $as_echo_n "(cached) " >&6
22263 gcc_cv_as_nsubspa_comdat
=no
22264 if test $in_tree_gas = yes; then
22265 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22266 then gcc_cv_as_nsubspa_comdat
=yes
22268 elif test x
$gcc_cv_as != x
; then
22269 $as_echo ' .SPACE $TEXT$
22270 .NSUBSPA $CODE$,COMDAT' > conftest.s
22271 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22273 (eval $ac_try) 2>&5
22275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22276 test $ac_status = 0; }; }
22278 gcc_cv_as_nsubspa_comdat
=yes
22280 echo "configure: failed program was" >&5
22283 rm -f conftest.o conftest.s
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22287 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22288 if test $gcc_cv_as_nsubspa_comdat = yes; then
22290 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22294 # .hidden needs to be supported in both the assembler and the linker,
22295 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22296 # This is irritatingly difficult to feature test for; we have to check the
22297 # date string after the version number. If we've got an in-tree
22298 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22300 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22302 $as_echo_n "checking assembler for .hidden... " >&6; }
22303 if test "${gcc_cv_as_hidden+set}" = set; then :
22304 $as_echo_n "(cached) " >&6
22306 gcc_cv_as_hidden
=no
22307 if test $in_tree_gas = yes; then
22308 if test $in_tree_gas_is_elf = yes \
22309 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22310 then gcc_cv_as_hidden
=yes
22312 elif test x
$gcc_cv_as != x
; then
22313 $as_echo ' .hidden foobar
22314 foobar:' > conftest.s
22315 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22317 (eval $ac_try) 2>&5
22319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22320 test $ac_status = 0; }; }
22322 gcc_cv_as_hidden
=yes
22324 echo "configure: failed program was" >&5
22327 rm -f conftest.o conftest.s
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22331 $as_echo "$gcc_cv_as_hidden" >&6; }
22333 case "${target}" in
22335 # Darwin as has some visibility support, though with a different syntax.
22336 gcc_cv_as_hidden
=yes
22340 # gnu_indirect_function type is an extension proposed at
22341 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22342 # selection of function implementation
22343 # Check whether --enable-gnu-indirect-function was given.
22344 if test "${enable_gnu_indirect_function+set}" = set; then :
22345 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22347 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22348 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22351 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22355 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22357 cat >>confdefs.h
<<_ACEOF
22358 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22363 if test $in_tree_ld != yes ; then
22364 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22365 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22366 if test x
"$ld_is_gold" = xyes
; then
22367 # GNU gold --version looks like this:
22369 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22371 # We extract the binutils version which is more familiar and specific
22372 # than the gold version.
22373 ld_vers
=`echo $ld_ver | sed -n \
22374 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22376 # GNU ld --version looks like this:
22378 # GNU ld (GNU Binutils) 2.21.51.20110225
22379 ld_vers
=`echo $ld_ver | sed -n \
22380 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22382 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'`
22383 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22384 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22385 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22387 case "${target}" in
22389 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22392 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22393 # /usr/ccs/bin/ld has been configured.
22394 ld_ver
=`$gcc_cv_ld -V 2>&1`
22395 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22396 ld_vers
=`echo $ld_ver | sed -n \
22397 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22398 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22399 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22407 $as_echo_n "checking linker for .hidden support... " >&6; }
22408 if test "${gcc_cv_ld_hidden+set}" = set; then :
22409 $as_echo_n "(cached) " >&6
22411 if test $in_tree_ld = yes ; then
22412 gcc_cv_ld_hidden
=no
22413 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 \
22414 && test $in_tree_ld_is_elf = yes; then
22415 gcc_cv_ld_hidden
=yes
22418 gcc_cv_ld_hidden
=yes
22419 if test x
"$ld_is_gold" = xyes
; then
22421 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22422 case "${target}" in
22423 mmix-knuth-mmixware
)
22424 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22425 gcc_cv_ld_hidden
=no
22428 if test 0"$ld_date" -lt 20020404; then
22429 if test -n "$ld_date"; then
22430 # If there was date string, but was earlier than 2002-04-04, fail
22431 gcc_cv_ld_hidden
=no
22432 elif test -z "$ld_vers"; then
22433 # If there was no date string nor ld version number, something is wrong
22434 gcc_cv_ld_hidden
=no
22436 test -z "$ld_vers_patch" && ld_vers_patch
=0
22437 if test "$ld_vers_major" -lt 2; then
22438 gcc_cv_ld_hidden
=no
22439 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22440 gcc_cv_ld_hidden
="no"
22441 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22442 gcc_cv_ld_hidden
=no
22447 case "${target}" in
22449 # Darwin ld has some visibility support.
22450 gcc_cv_ld_hidden
=yes
22452 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22453 gcc_cv_ld_hidden
=yes
22455 *-*-solaris2.1
[0-9]*)
22456 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22457 # .symbolic was only added in Solaris 9 12/02.
22458 gcc_cv_ld_hidden
=yes
22461 gcc_cv_ld_hidden
=no
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22468 $as_echo "$gcc_cv_ld_hidden" >&6; }
22469 libgcc_visibility
=no
22472 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22473 libgcc_visibility
=yes
22475 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22480 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22481 gcc_cv_ld_ro_rw_mix
=unknown
22482 if test $in_tree_ld = yes ; then
22483 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 \
22484 && test $in_tree_ld_is_elf = yes; then
22485 gcc_cv_ld_ro_rw_mix
=read-write
22487 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22488 echo '.section myfoosect, "a"' > conftest1.s
22489 echo '.section myfoosect, "aw"' > conftest2.s
22490 echo '.byte 1' >> conftest2.s
22491 echo '.section myfoosect, "a"' > conftest3.s
22492 echo '.byte 0' >> conftest3.s
22493 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22494 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22495 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22496 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22497 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22498 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22499 | sed -e '/myfoosect/!d' -e N`
22500 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22501 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22502 gcc_cv_ld_ro_rw_mix
=read-only
22504 gcc_cv_ld_ro_rw_mix
=read-write
22508 rm -f conftest.
* conftest
[123].
*
22510 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22512 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22516 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22518 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22519 case "${target}" in
22522 # Solaris 2 ld -V output looks like this for a regular version:
22524 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22526 # but test versions add stuff at the end:
22528 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22530 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22531 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22532 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22533 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22534 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22535 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22541 # Check whether --enable-initfini-array was given.
22542 if test "${enable_initfini_array+set}" = set; then :
22543 enableval
=$enable_initfini_array;
22546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22547 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22548 if test "${gcc_cv_initfini_array+set}" = set; then :
22549 $as_echo_n "(cached) " >&6
22551 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22552 case "${target}" in
22554 if test "$cross_compiling" = yes; then :
22555 gcc_cv_initfini_array
=no
22557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22558 /* end confdefs.h. */
22561 #error Not an ELF OS
22563 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22564 if it can be used. */
22566 int main (void) { return x; }
22567 int foo (void) { x = 0; }
22568 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22571 if ac_fn_c_try_run
"$LINENO"; then :
22572 gcc_cv_initfini_array
=yes
22574 gcc_cv_initfini_array
=no
22576 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22577 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22581 gcc_cv_initfini_array
=no
22582 if test $in_tree_ld = yes ; then
22583 if test "$gcc_cv_gld_major_version" -eq 2 \
22584 -a "$gcc_cv_gld_minor_version" -ge 22 \
22585 -o "$gcc_cv_gld_major_version" -gt 2 \
22586 && test $in_tree_ld_is_elf = yes; then
22587 gcc_cv_initfini_array
=yes
22589 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22590 cat > conftest.s
<<\EOF
22591 .section .dtors
,"a",%progbits
22593 .byte
'A', 'A', 'A', 'A'
22594 .section .ctors
,"a",%progbits
22596 .byte
'B', 'B', 'B', 'B'
22597 .section .fini_array
.65530,"a",%progbits
22599 .byte
'C', 'C', 'C', 'C'
22600 .section .init_array
.65530,"a",%progbits
22602 .byte
'D', 'D', 'D', 'D'
22603 .section .dtors
.64528,"a",%progbits
22605 .byte
'E', 'E', 'E', 'E'
22606 .section .ctors
.64528,"a",%progbits
22608 .byte
'F', 'F', 'F', 'F'
22609 .section .fini_array
.01005,"a",%progbits
22611 .byte
'G', 'G', 'G', 'G'
22612 .section .init_array
.01005,"a",%progbits
22614 .byte
'H', 'H', 'H', 'H'
22619 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22620 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22621 && $gcc_cv_objdump -s -j .init_array conftest \
22622 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22623 && $gcc_cv_objdump -s -j .fini_array conftest \
22624 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22625 gcc_cv_initfini_array
=yes
22627 rm -f conftest conftest.
*
22629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22630 /* end confdefs.h. */
22633 # error Not an ELF OS
22635 #include <stdlib.h>
22636 #if defined __GLIBC_PREREQ
22637 # if __GLIBC_PREREQ (2, 4)
22639 # error GLIBC 2.4 required
22642 # if defined __sun__ && defined __svr4__
22643 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22645 # error The C library not known to support .init_array/.fini_array
22650 if ac_fn_c_try_cpp
"$LINENO"; then :
22653 gcc_cv_initfini_array
=no
22655 rm -f conftest.err conftest.
$ac_ext;;
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22659 $as_echo_n "checking cross compile... guessing... " >&6; }
22660 gcc_cv_initfini_array
=no
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22664 $as_echo "$gcc_cv_initfini_array" >&6; }
22665 enable_initfini_array
=$gcc_cv_initfini_array
22669 if test $enable_initfini_array = yes; then
22671 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22675 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22677 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22678 if test "${gcc_cv_as_leb128+set}" = set; then :
22679 $as_echo_n "(cached) " >&6
22681 gcc_cv_as_leb128
=no
22682 if test $in_tree_gas = yes; then
22683 if test $in_tree_gas_is_elf = yes \
22684 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22685 then gcc_cv_as_leb128
=yes
22687 elif test x
$gcc_cv_as != x
; then
22694 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22696 (eval $ac_try) 2>&5
22698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22699 test $ac_status = 0; }; }
22701 # GAS versions before 2.11 do not support uleb128,
22702 # despite appearing to.
22703 # ??? There exists an elf-specific test that will crash
22704 # the assembler. Perhaps it's better to figure out whether
22705 # arbitrary sections are supported and try the test.
22706 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22707 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22708 as_vers
=`echo $as_ver | sed -n \
22709 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22710 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22711 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22712 if test $as_major -eq 2 && test $as_minor -lt 11
22714 else gcc_cv_as_leb128
=yes
22718 echo "configure: failed program was" >&5
22721 rm -f conftest.o conftest.s
22724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22725 $as_echo "$gcc_cv_as_leb128" >&6; }
22726 if test $gcc_cv_as_leb128 = yes; then
22728 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22732 # Check if we have assembler support for unwind directives.
22733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22734 $as_echo_n "checking assembler for cfi directives... " >&6; }
22735 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22736 $as_echo_n "(cached) " >&6
22738 gcc_cv_as_cfi_directive
=no
22739 if test x
$gcc_cv_as != x
; then
22745 .cfi_escape 1, 2, 3, 4, 5
22746 .cfi_endproc' > conftest.s
22747 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22749 (eval $ac_try) 2>&5
22751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22752 test $ac_status = 0; }; }
22756 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22757 # read-only and read-write sections, we need to make sure that the
22758 # assembler used emits read-write .eh_frame sections.
22759 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22760 if test "x$gcc_cv_objdump" != x
; then
22761 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22762 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22763 gcc_cv_as_cfi_directive
=no
22766 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22767 # On Solaris/x86, make sure that GCC and assembler agree on using
22768 # read-only .eh_frame sections for 64-bit.
22769 if test x
$gas = xyes
; then
22770 as_ix86_64_opt
="--64"
22772 as_ix86_64_opt
="-xarch=amd64"
22774 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22775 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22776 sed -e /.eh_frame
/!d
-e N | \
22777 grep READONLY
> /dev
/null
; then
22778 gcc_cv_as_cfi_directive
=yes
22780 gcc_cv_as_cfi_directive
=no
22784 gcc_cv_as_cfi_directive
=yes
22789 # no objdump, err on the side of caution
22790 gcc_cv_as_cfi_directive
=no
22793 gcc_cv_as_cfi_directive
=yes
22797 gcc_cv_as_cfi_directive
=yes
22801 echo "configure: failed program was" >&5
22804 rm -f conftest.o conftest.s
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22808 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22810 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22812 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22813 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22814 $as_echo_n "(cached) " >&6
22816 gcc_cv_as_cfi_advance_working
=no
22817 if test x
$gcc_cv_as != x
; then
22820 .cfi_adjust_cfa_offset 64
22822 .cfi_adjust_cfa_offset 128
22823 .cfi_endproc' > conftest.s
22824 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22826 (eval $ac_try) 2>&5
22828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22829 test $ac_status = 0; }; }
22832 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22833 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22834 gcc_cv_as_cfi_advance_working
=yes
22838 echo "configure: failed program was" >&5
22841 rm -f conftest.o conftest.s
22844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22845 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22848 # no objdump, err on the side of caution
22849 gcc_cv_as_cfi_advance_working
=no
22853 cat >>confdefs.h
<<_ACEOF
22854 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22855 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22861 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22862 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22863 $as_echo_n "(cached) " >&6
22865 gcc_cv_as_cfi_personality_directive
=no
22866 if test x
$gcc_cv_as != x
; then
22869 .cfi_personality 0, symbol
22870 .cfi_endproc' > conftest.s
22871 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22873 (eval $ac_try) 2>&5
22875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22876 test $ac_status = 0; }; }
22878 gcc_cv_as_cfi_personality_directive
=yes
22880 echo "configure: failed program was" >&5
22883 rm -f conftest.o conftest.s
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22887 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22890 cat >>confdefs.h
<<_ACEOF
22891 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22892 then echo 1; else echo 0; fi`
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22897 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22898 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22899 $as_echo_n "(cached) " >&6
22901 gcc_cv_as_cfi_sections_directive
=no
22902 if test x
$gcc_cv_as != x
; then
22904 .cfi_sections .debug_frame, .eh_frame
22906 .cfi_endproc' > conftest.s
22907 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22909 (eval $ac_try) 2>&5
22911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22912 test $ac_status = 0; }; }
22915 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22916 # Need to check that we generated the correct relocation for the
22917 # .debug_frame section. This was fixed for binutils 2.21.
22918 gcc_cv_as_cfi_sections_directive
=no
22919 if test "x$gcc_cv_objdump" != x
; then
22920 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22921 grep secrel
> /dev
/null
; then
22922 gcc_cv_as_cfi_sections_directive
=yes
22927 gcc_cv_as_cfi_sections_directive
=yes
22931 echo "configure: failed program was" >&5
22934 rm -f conftest.o conftest.s
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22938 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22942 cat >>confdefs.h
<<_ACEOF
22943 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22944 then echo 1; else echo 0; fi`
22948 # GAS versions up to and including 2.11.0 may mis-optimize
22950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22951 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22952 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22953 $as_echo_n "(cached) " >&6
22955 gcc_cv_as_eh_frame
=no
22956 if test $in_tree_gas = yes; then
22957 if test $in_tree_gas_is_elf = yes \
22958 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22959 then gcc_cv_as_eh_frame
=yes
22961 elif test x
$gcc_cv_as != x
; then
22968 .section .eh_frame,"aw",@progbits
22970 .4byte .LECIE1-.LSCIE1
22984 .4byte .LEFDE1-.LASFDE1
22986 .4byte .LASFDE1-__FRAME_BEGIN__
22993 .LEFDE1:' > conftest.s
22994 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22996 (eval $ac_try) 2>&5
22998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22999 test $ac_status = 0; }; }
23001 cat > conftest.lit
<<EOF
23002 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23003 0010 01000000 12000000 18000000 00000000 ................
23004 0020 08000000 04080000 0044 .........D
23006 cat > conftest.big
<<EOF
23007 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23008 0010 00000001 00000012 00000018 00000000 ................
23009 0020 00000008 04000000 0844 .........D
23011 # If the assembler didn't choke, and we can objdump,
23012 # and we got the correct data, then succeed.
23013 # The text in the here-document typically retains its unix-style line
23014 # endings, while the output of objdump will use host line endings.
23015 # Therefore, use diff -b for the comparisons.
23016 if test x
$gcc_cv_objdump != x \
23017 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23018 |
tail -3 > conftest.got \
23019 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23020 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23022 gcc_cv_as_eh_frame
=yes
23023 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23025 (eval $ac_try) 2>&5
23027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23028 test $ac_status = 0; }; }; then
23029 gcc_cv_as_eh_frame
=buggy
23031 # Uh oh, what do we do now?
23032 gcc_cv_as_eh_frame
=no
23035 echo "configure: failed program was" >&5
23038 rm -f conftest.o conftest.s
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23042 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23045 if test $gcc_cv_as_eh_frame = buggy
; then
23047 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23052 $as_echo_n "checking assembler for section merging support... " >&6; }
23053 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23054 $as_echo_n "(cached) " >&6
23056 gcc_cv_as_shf_merge
=no
23057 if test $in_tree_gas = yes; then
23058 if test $in_tree_gas_is_elf = yes \
23059 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23060 then gcc_cv_as_shf_merge
=yes
23062 elif test x
$gcc_cv_as != x
; then
23063 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23064 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23066 (eval $ac_try) 2>&5
23068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23069 test $ac_status = 0; }; }
23071 gcc_cv_as_shf_merge
=yes
23073 echo "configure: failed program was" >&5
23076 rm -f conftest.o conftest.s
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23080 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23082 if test $gcc_cv_as_shf_merge = no
; then
23083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23084 $as_echo_n "checking assembler for section merging support... " >&6; }
23085 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23086 $as_echo_n "(cached) " >&6
23088 gcc_cv_as_shf_merge
=no
23089 if test $in_tree_gas = yes; then
23090 if test $in_tree_gas_is_elf = yes \
23091 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23092 then gcc_cv_as_shf_merge
=yes
23094 elif test x
$gcc_cv_as != x
; then
23095 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23096 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23098 (eval $ac_try) 2>&5
23100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23101 test $ac_status = 0; }; }
23103 gcc_cv_as_shf_merge
=yes
23105 echo "configure: failed program was" >&5
23108 rm -f conftest.o conftest.s
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23112 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23116 cat >>confdefs.h
<<_ACEOF
23117 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23122 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23123 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23124 $as_echo_n "(cached) " >&6
23126 gcc_cv_as_comdat_group
=no
23127 if test $in_tree_gas = yes; then
23128 if test $in_tree_gas_is_elf = yes \
23129 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23130 then gcc_cv_as_comdat_group
=yes
23132 elif test x
$gcc_cv_as != x
; then
23133 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23134 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23136 (eval $ac_try) 2>&5
23138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23139 test $ac_status = 0; }; }
23141 gcc_cv_as_comdat_group
=yes
23143 echo "configure: failed program was" >&5
23146 rm -f conftest.o conftest.s
23149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23150 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23152 if test $gcc_cv_as_comdat_group = yes; then
23153 gcc_cv_as_comdat_group_percent
=no
23154 gcc_cv_as_comdat_group_group
=no
23156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23157 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23158 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23159 $as_echo_n "(cached) " >&6
23161 gcc_cv_as_comdat_group_percent
=no
23162 if test $in_tree_gas = yes; then
23163 if test $in_tree_gas_is_elf = yes \
23164 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23165 then gcc_cv_as_comdat_group_percent
=yes
23167 elif test x
$gcc_cv_as != x
; then
23168 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23169 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23171 (eval $ac_try) 2>&5
23173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23174 test $ac_status = 0; }; }
23176 gcc_cv_as_comdat_group_percent
=yes
23178 echo "configure: failed program was" >&5
23181 rm -f conftest.o conftest.s
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23185 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23187 if test $gcc_cv_as_comdat_group_percent = yes; then
23188 gcc_cv_as_comdat_group_group
=no
23190 case "${target}" in
23191 # Sun as uses a completely different syntax.
23193 case "${target}" in
23194 sparc
*-*-solaris2*)
23196 .group foo,".text%foo",#comdat
23197 .section ".text%foo", #alloc,#execinstr,#progbits
23202 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23204 .group foo,.text%foo,#comdat
23205 .section .text%foo, "ax", @progbits
23211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23212 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23213 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23214 $as_echo_n "(cached) " >&6
23216 gcc_cv_as_comdat_group_group
=no
23217 if test x
$gcc_cv_as != x
; then
23218 $as_echo "$conftest_s" > conftest.s
23219 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23221 (eval $ac_try) 2>&5
23223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23224 test $ac_status = 0; }; }
23226 gcc_cv_as_comdat_group_group
=yes
23228 echo "configure: failed program was" >&5
23231 rm -f conftest.o conftest.s
23234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23235 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23239 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23240 gcc_cv_as_comdat_group_group
=no
23244 if test x
"$ld_is_gold" = xyes
; then
23246 elif test $in_tree_ld = yes ; then
23248 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 \
23249 && test $in_tree_ld_is_elf = yes; then
23252 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23254 if test 0"$ld_date" -lt 20050308; then
23255 if test -n "$ld_date"; then
23256 # If there was date string, but was earlier than 2005-03-08, fail
23258 elif test "$ld_vers_major" -lt 2; then
23260 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23265 case "${target}" in
23266 *-*-solaris2.1
[1-9]*)
23268 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23269 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23272 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23273 # least ld version 1.2267.
23274 if test "$ld_vers_major" -gt 1; then
23276 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23278 elif test "$ld_vers_minor" -ge 2267; then
23283 # Assume linkers other than GNU ld don't support COMDAT group.
23288 # Allow overriding the automatic COMDAT group tests above.
23289 # Check whether --enable-comdat was given.
23290 if test "${enable_comdat+set}" = set; then :
23291 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23294 if test $comdat_group = no
; then
23295 gcc_cv_as_comdat_group
=no
23296 gcc_cv_as_comdat_group_percent
=no
23297 gcc_cv_as_comdat_group_group
=no
23300 cat >>confdefs.h
<<_ACEOF
23301 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23302 || test $gcc_cv_as_comdat_group_percent = yes \
23303 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23308 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23309 if test "${gcc_cv_as_discriminator+set}" = set; then :
23310 $as_echo_n "(cached) " >&6
23312 gcc_cv_as_discriminator
=no
23313 if test $in_tree_gas = yes; then
23314 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23315 then gcc_cv_as_discriminator
=yes
23317 elif test x
$gcc_cv_as != x
; then
23320 .loc 1 1 0 discriminator 1' > conftest.s
23321 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23323 (eval $ac_try) 2>&5
23325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23326 test $ac_status = 0; }; }
23328 gcc_cv_as_discriminator
=yes
23330 echo "configure: failed program was" >&5
23333 rm -f conftest.o conftest.s
23336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23337 $as_echo "$gcc_cv_as_discriminator" >&6; }
23338 if test $gcc_cv_as_discriminator = yes; then
23340 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23344 # Thread-local storage - the check is heavily parameterized.
23352 .section ".tdata","awT",@progbits
23355 ldq $27,__tls_get_addr($29) !literal!1
23356 lda $16,foo($29) !tlsgd!1
23357 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23358 ldq $27,__tls_get_addr($29) !literal!2
23359 lda $16,foo($29) !tlsldm!2
23360 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23361 ldq $1,foo($29) !gotdtprel
23362 ldah $2,foo($29) !dtprelhi
23363 lda $3,foo($2) !dtprello
23364 lda $4,foo($29) !dtprel
23365 ldq $1,foo($29) !gottprel
23366 ldah $2,foo($29) !tprelhi
23367 lda $3,foo($2) !tprello
23368 lda $4,foo($29) !tprel'
23371 tls_as_opt
=--fatal-warnings
23373 cris-
*-*|crisv32-
*-*)
23375 .section ".tdata","awT",@progbits
23382 tls_as_opt
=--fatal-warnings
23386 .section ".tdata","awT",@progbits
23389 call #gettlsoff(x)'
23398 .section ".tdata","awT",@progbits
23402 addil LT%foo-$tls_gdidx$,gp
23403 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23406 addil LT%foo-$tls_ldidx$,gp
23408 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23409 addil LR%foo-$tls_dtpoff$,%ret0
23410 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23412 addil LT%foo-$tls_ieoff$,gp
23413 ldw RT%foo-$tls_ieoff$(%r1),%t2
23416 addil LR%foo-$tls_leoff$,%t1
23417 ldo RR%foo-$tls_leoff$(%r1),%t2'
23420 tls_as_opt
=--fatal-warnings
23424 .section ".tdata","awT",%progbits
23427 .word foo(gottpoff)
23435 i
[34567]86-*-* | x86_64-
*-*)
23437 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
23444 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23446 .section .tdata,"awt",@progbits'
23451 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23455 .section ".tdata","awT",@progbits'
23459 tls_as_opt
="--fatal-warnings"
23463 conftest_s
="$conftest_s
23467 leal foo@tlsgd(,%ebx,1), %eax
23468 leal foo@tlsldm(%ebx), %eax
23469 leal foo@dtpoff(%eax), %edx
23470 movl foo@gottpoff(%ebx), %eax
23471 subl foo@gottpoff(%ebx), %eax
23472 addl foo@gotntpoff(%ebx), %eax
23473 movl foo@indntpoff, %eax
23474 movl \$foo@tpoff, %eax
23475 subl \$foo@tpoff, %eax
23476 leal foo@ntpoff(%ecx), %eax"
23479 if test x
$on_solaris = xyes
; then
23481 yes) tls_as_opt
="$tls_as_opt --64" ;;
23482 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
23485 conftest_s
="$conftest_s
23489 leaq foo@tlsgd(%rip), %rdi
23490 leaq foo@tlsld(%rip), %rdi
23491 leaq foo@dtpoff(%rax), %rdx
23492 movq foo@gottpoff(%rip), %rax
23493 movq \$foo@tpoff, %rax"
23499 .section ".tdata","awT",@progbits
23502 addl r16 = @ltoff(@dtpmod(foo#)), gp
23503 addl r17 = @ltoff(@dtprel(foo#)), gp
23504 addl r18 = @ltoff(@tprel(foo#)), gp
23505 addl r19 = @dtprel(foo#), gp
23506 adds r21 = @dtprel(foo#), r13
23507 movl r23 = @dtprel(foo#)
23508 addl r20 = @tprel(foo#), gp
23509 adds r22 = @tprel(foo#), r13
23510 movl r24 = @tprel(foo#)'
23513 tls_as_opt
=--fatal-warnings
23517 .section .tdata,"awT",@progbits
23521 addik r5,r20,x@TLSGD
23522 addik r5,r20,x@TLSLDM'
23525 tls_as_opt
='--fatal-warnings'
23529 .section .tdata,"awT",@progbits
23533 addiu $4, $28, %tlsgd(x)
23534 addiu $4, $28, %tlsldm(x)
23535 lui $4, %dtprel_hi(x)
23536 addiu $4, $4, %dtprel_lo(x)
23537 lw $4, %gottprel(x)($28)
23538 lui $4, %tprel_hi(x)
23539 addiu $4, $4, %tprel_lo(x)'
23542 tls_as_opt
='-32 --fatal-warnings'
23546 .section .tdata,"awT",@progbits
23551 move.l x@TLSGD(%a5),%a0
23552 move.l x@TLSLDM(%a5),%a0
23553 move.l x@TLSLDO(%a5),%a0
23554 move.l x@TLSIE(%a5),%a0
23555 move.l x@TLSLE(%a5),%a0'
23558 tls_as_opt
='--fatal-warnings'
23562 .section ".tdata","awT",@progbits'
23565 tls_as_opt
="--fatal-warnings"
23569 .section ".tdata","awT",%progbits
23573 add x0, x0, #:tlsgd_lo12:x
23578 tls_as_opt
='--fatal-warnings'
23582 .extern __get_tpointer
23600 .section ".tdata","awT",@progbits
23608 addi 3,2,ld0@got@tlsgd
23614 addi 3,2,x1@got@tlsld
23620 addis 9,3,x2@dtprel@ha
23621 addi 9,9,x2@dtprel@l
23624 ld 9,x3@got@dtprel(2)
23630 tls_as_opt
="-a64 --fatal-warnings"
23634 .section ".tdata","awT",@progbits
23642 addi 3,31,ld0@got@tlsgd
23644 addi 3,31,x1@got@tlsld
23647 addis 9,3,x2@dtprel@ha
23648 addi 9,9,x2@dtprel@l
23649 lwz 9,x3@got@tprel(31)
23652 addis 9,2,x2@tprel@ha
23653 addi 9,9,x2@tprel@l'
23656 tls_as_opt
="-a32 --fatal-warnings"
23660 .section ".tdata","awT",@progbits
23667 .long foo@GOTNTPOFF
23668 .long foo@INDNTPOFF
23669 l %r1,foo@GOTNTPOFF(%r12)
23670 l %r1,0(%r1):tls_load:foo
23671 bas %r14,0(%r1,%r13):tls_gdcall:foo
23672 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23675 tls_as_opt
="-m31 --fatal-warnings"
23679 .section ".tdata","awT",@progbits
23686 .quad foo@GOTNTPOFF
23687 lg %r1,foo@GOTNTPOFF(%r12)
23688 larl %r1,foo@INDNTPOFF
23689 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23690 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23693 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23695 sh-
*-* | sh
[34]-*-*)
23697 .section ".tdata","awT",@progbits
23707 tls_as_opt
=--fatal-warnings
23711 sparc
*-sun-solaris2.
*)
23718 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23720 .section ".tdata",#alloc,#write,#tls'
23725 .section ".tdata","awT",@progbits'
23728 tls_as_opt
="-32 --fatal-warnings"
23730 conftest_s
="$conftest_s
23733 sethi %tgd_hi22(foo), %o0
23734 add %o0, %tgd_lo10(foo), %o1
23735 add %l7, %o1, %o0, %tgd_add(foo)
23736 call __tls_get_addr, %tgd_call(foo)
23737 sethi %tldm_hi22(foo), %l1
23738 add %l1, %tldm_lo10(foo), %l2
23739 add %l7, %l2, %o0, %tldm_add(foo)
23740 call __tls_get_addr, %tldm_call(foo)
23741 sethi %tldo_hix22(foo), %l3
23742 xor %l3, %tldo_lox10(foo), %l4
23743 add %o0, %l4, %l5, %tldo_add(foo)
23744 sethi %tie_hi22(foo), %o3
23745 add %o3, %tie_lo10(foo), %o3
23746 ld [%l7 + %o3], %o2, %tie_ld(foo)
23747 add %g7, %o2, %o4, %tie_add(foo)
23748 sethi %tle_hix22(foo), %l1
23749 xor %l1, %tle_lox10(foo), %o5
23750 ld [%g7 + %o5], %o1"
23754 .section ".tdata","awT",@progbits
23757 addli r0, zero, tls_gd(foo)
23758 auli r0, zero, tls_gd_ha16(foo)
23759 addli r0, r0, tls_gd_lo16(foo)
23761 addli r0, zero, tls_ie(foo)
23762 auli r0, r0, tls_ie_ha16(foo)
23763 addli r0, r0, tls_ie_lo16(foo)'
23766 tls_as_opt
="--fatal-warnings"
23770 .section ".tdata","awT",@progbits
23773 shl16insli r0, zero, hw0_last_tls_gd(foo)
23774 shl16insli r0, zero, hw1_last_tls_gd(foo)
23775 shl16insli r0, r0, hw0_tls_gd(foo)
23777 shl16insli r0, zero, hw1_last_tls_ie(foo)
23778 shl16insli r0, r0, hw0_tls_ie(foo)'
23781 tls_as_opt
="--fatal-warnings"
23785 .section ".tdata","awT",@progbits
23788 movi a8, foo@TLSFUNC
23789 movi a10, foo@TLSARG
23790 callx8.tls a8, foo@TLSCALL'
23796 if test "x$enable_tls" = xno
; then
23797 : # TLS explicitly disabled.
23798 elif test "x$enable_tls" = xyes
; then
23799 set_have_as_tls
=yes # TLS explicitly enabled.
23800 elif test -z "$tls_first_major"; then
23801 : # If we don't have a check, assume no support.
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23804 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23805 if test "${gcc_cv_as_tls+set}" = set; then :
23806 $as_echo_n "(cached) " >&6
23809 if test $in_tree_gas = yes; then
23810 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23811 then gcc_cv_as_tls
=yes
23813 elif test x
$gcc_cv_as != x
; then
23814 $as_echo "$conftest_s" > conftest.s
23815 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23817 (eval $ac_try) 2>&5
23819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23820 test $ac_status = 0; }; }
23824 echo "configure: failed program was" >&5
23827 rm -f conftest.o conftest.s
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23831 $as_echo "$gcc_cv_as_tls" >&6; }
23832 if test $gcc_cv_as_tls = yes; then
23833 set_have_as_tls
=yes
23836 if test $set_have_as_tls = yes ; then
23838 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23842 # Target-specific assembler checks.
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23845 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23846 gcc_cv_ld_static_dynamic
=no
23847 gcc_cv_ld_static_option
='-Bstatic'
23848 gcc_cv_ld_dynamic_option
='-Bdynamic'
23849 if test $in_tree_ld = yes ; then
23850 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
23851 gcc_cv_ld_static_dynamic
=yes
23853 elif test x
$gcc_cv_ld != x
; then
23854 # Check if linker supports -Bstatic/-Bdynamic option
23855 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23856 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23857 gcc_cv_ld_static_dynamic
=yes
23860 # AIX ld uses -b flags
23861 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
23862 gcc_cv_ld_static_dynamic
=yes
23863 gcc_cv_ld_static_option
="-bstatic"
23864 gcc_cv_ld_dynamic_option
="-bdynamic"
23866 # HP-UX ld uses -a flags to select between shared and archive.
23868 if test x
"$gnu_ld" = xno
; then
23869 gcc_cv_ld_static_dynamic
=yes
23870 gcc_cv_ld_static_option
="-aarchive_shared"
23871 gcc_cv_ld_dynamic_option
="-adefault"
23874 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23876 gcc_cv_ld_static_dynamic
=yes
23881 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23883 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23886 cat >>confdefs.h
<<_ACEOF
23887 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23891 cat >>confdefs.h
<<_ACEOF
23892 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23897 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23899 if test x
"$demangler_in_ld" = xyes
; then
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23901 $as_echo_n "checking linker --demangle support... " >&6; }
23902 gcc_cv_ld_demangle
=no
23903 if test $in_tree_ld = yes; then
23904 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 \
23905 gcc_cv_ld_demangle
=yes
23907 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23908 # Check if the GNU linker supports --demangle option
23909 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23910 gcc_cv_ld_demangle
=yes
23913 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23915 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23919 $as_echo "$gcc_cv_ld_demangle" >&6; }
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23923 $as_echo_n "checking linker plugin support... " >&6; }
23924 gcc_cv_lto_plugin
=0
23925 if test -f liblto_plugin.la
; then
23926 save_ld_ver
="$ld_ver"
23927 save_ld_vers_major
="$ld_vers_major"
23928 save_ld_vers_minor
="$ld_vers_minor"
23929 save_ld_is_gold
="$ld_is_gold"
23933 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23935 # FIXME: ld_is_gold?
23936 ld_vers_major
="$gcc_cv_gld_major_version"
23937 ld_vers_minor
="$gcc_cv_gld_minor_version"
23939 # Determine plugin linker version.
23940 # FIXME: Partial duplicate from above, generalize.
23941 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23942 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23943 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23945 ld_vers
=`echo $ld_ver | sed -n \
23946 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23948 ld_vers
=`echo $ld_ver | sed -n \
23949 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23951 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23952 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23956 # Determine plugin support.
23957 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23958 # Require GNU ld or gold 2.21+ for plugin support by default.
23959 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23960 gcc_cv_lto_plugin
=2
23961 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23962 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23963 gcc_cv_lto_plugin
=1
23967 ld_ver
="$save_ld_ver"
23968 ld_vers_major
="$save_ld_vers_major"
23969 ld_vers_minor
="$save_ld_vers_minor"
23970 ld_is_gold
="$save_ld_is_gold"
23973 cat >>confdefs.h
<<_ACEOF
23974 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23978 $as_echo "$gcc_cv_lto_plugin" >&6; }
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
23983 $as_echo_n "checking assembler for -mabi option... " >&6; }
23984 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
23985 $as_echo_n "(cached) " >&6
23987 gcc_cv_as_aarch64_mabi
=no
23988 if test x
$gcc_cv_as != x
; then
23989 $as_echo '.text' > conftest.s
23990 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
23991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23992 (eval $ac_try) 2>&5
23994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23995 test $ac_status = 0; }; }
23997 gcc_cv_as_aarch64_mabi
=yes
23999 echo "configure: failed program was" >&5
24002 rm -f conftest.o conftest.s
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24006 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24008 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24010 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24013 if test x
$with_abi = xilp32
; then
24014 as_fn_error
"Assembler does not support -mabi=ilp32.\
24015 Upgrade the Assembler." "$LINENO" 5
24017 if test x
"$with_multilib_list" = xdefault
; then
24018 TM_MULTILIB_CONFIG
=lp64
24020 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24021 for aarch64_multilib
in ${aarch64_multilibs}; do
24022 case ${aarch64_multilib} in
24024 as_fn_error
"Assembler does not support -mabi=ilp32.\
24025 Upgrade the Assembler." "$LINENO" 5
24033 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24034 # Check whether --enable-fix-cortex-a53-835769 was given.
24035 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24036 enableval
=$enable_fix_cortex_a53_835769;
24039 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24044 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24045 Valid choices are 'yes' and 'no'." "$LINENO" 5
24054 # All TARGET_ABI_OSF targets.
24055 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24057 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24058 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24059 $as_echo_n "(cached) " >&6
24061 gcc_cv_as_alpha_explicit_relocs
=no
24062 if test $in_tree_gas = yes; then
24063 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24064 then gcc_cv_as_alpha_explicit_relocs
=yes
24066 elif test x
$gcc_cv_as != x
; then
24067 $as_echo ' .set nomacro
24069 extbl $3, $2, $3 !lituse_bytoff!1
24070 ldq $2, a($29) !literal!1
24071 ldq $4, b($29) !literal!2
24072 ldq_u $3, 0($2) !lituse_base!1
24073 ldq $27, f($29) !literal!5
24074 jsr $26, ($27), f !lituse_jsr!5
24075 ldah $29, 0($26) !gpdisp!3
24076 lda $0, c($29) !gprel
24077 ldah $1, d($29) !gprelhigh
24078 lda $1, d($1) !gprellow
24079 lda $29, 0($29) !gpdisp!3' > conftest.s
24080 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24082 (eval $ac_try) 2>&5
24084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24085 test $ac_status = 0; }; }
24087 gcc_cv_as_alpha_explicit_relocs
=yes
24089 echo "configure: failed program was" >&5
24092 rm -f conftest.o conftest.s
24095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24096 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24097 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24099 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24103 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24104 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24105 $as_echo_n "(cached) " >&6
24107 gcc_cv_as_alpha_jsrdirect_relocs
=no
24108 if test $in_tree_gas = yes; then
24109 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24110 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24112 elif test x
$gcc_cv_as != x
; then
24113 $as_echo ' .set nomacro
24115 ldq $27, a($29) !literal!1
24116 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24117 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24119 (eval $ac_try) 2>&5
24121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24122 test $ac_status = 0; }; }
24124 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24126 echo "configure: failed program was" >&5
24129 rm -f conftest.o conftest.s
24132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24133 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24134 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24136 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24143 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24144 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24145 $as_echo_n "(cached) " >&6
24147 gcc_cv_as_cris_no_mul_bug
=no
24148 if test $in_tree_gas = yes; then
24149 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24150 then gcc_cv_as_cris_no_mul_bug
=yes
24152 elif test x
$gcc_cv_as != x
; then
24153 $as_echo '.text' > conftest.s
24154 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24156 (eval $ac_try) 2>&5
24158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24159 test $ac_status = 0; }; }
24161 gcc_cv_as_cris_no_mul_bug
=yes
24163 echo "configure: failed program was" >&5
24166 rm -f conftest.o conftest.s
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24170 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24171 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24173 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24180 $as_echo_n "checking assembler for .register... " >&6; }
24181 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24182 $as_echo_n "(cached) " >&6
24184 gcc_cv_as_sparc_register_op
=no
24185 if test x
$gcc_cv_as != x
; then
24186 $as_echo '.register %g2, #scratch' > conftest.s
24187 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24189 (eval $ac_try) 2>&5
24191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24192 test $ac_status = 0; }; }
24194 gcc_cv_as_sparc_register_op
=yes
24196 echo "configure: failed program was" >&5
24199 rm -f conftest.o conftest.s
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24203 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24204 if test $gcc_cv_as_sparc_register_op = yes; then
24206 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24211 $as_echo_n "checking assembler for #nobits... " >&6; }
24212 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24213 $as_echo_n "(cached) " >&6
24215 gcc_cv_as_sparc_nobits
=no
24216 if test x
$gcc_cv_as != x
; then
24217 $as_echo '.section "nobits",#alloc,#write,#nobits
24218 .section "progbits",#alloc,#write,#progbits' > conftest.s
24219 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24221 (eval $ac_try) 2>&5
24223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24224 test $ac_status = 0; }; }
24226 gcc_cv_as_sparc_nobits
=yes
24228 echo "configure: failed program was" >&5
24231 rm -f conftest.o conftest.s
24234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24235 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24238 cat >>confdefs.h
<<_ACEOF
24239 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24244 $as_echo_n "checking assembler for -relax option... " >&6; }
24245 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24246 $as_echo_n "(cached) " >&6
24248 gcc_cv_as_sparc_relax
=no
24249 if test x
$gcc_cv_as != x
; then
24250 $as_echo '.text' > conftest.s
24251 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24253 (eval $ac_try) 2>&5
24255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24256 test $ac_status = 0; }; }
24258 gcc_cv_as_sparc_relax
=yes
24260 echo "configure: failed program was" >&5
24263 rm -f conftest.o conftest.s
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24267 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24268 if test $gcc_cv_as_sparc_relax = yes; then
24270 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24275 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24276 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24277 $as_echo_n "(cached) " >&6
24279 gcc_cv_as_sparc_gotdata_op
=no
24280 if test x
$gcc_cv_as != x
; then
24286 sethi %gdop_hix22(foo), %g1
24287 xor %g1, %gdop_lox10(foo), %g1
24288 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24289 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24291 (eval $ac_try) 2>&5
24293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24294 test $ac_status = 0; }; }
24296 if test x
$gcc_cv_ld != x \
24297 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24298 if test x
$gcc_cv_objdump != x
; then
24299 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24300 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24301 gcc_cv_as_sparc_gotdata_op
=no
24303 gcc_cv_as_sparc_gotdata_op
=yes
24309 echo "configure: failed program was" >&5
24312 rm -f conftest.o conftest.s
24315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24316 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24317 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24319 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24324 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24325 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24326 $as_echo_n "(cached) " >&6
24328 gcc_cv_as_sparc_ua_pcrel
=no
24329 if test x
$gcc_cv_as != x
; then
24336 .uaword %r_disp32(foo)' > conftest.s
24337 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24339 (eval $ac_try) 2>&5
24341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24342 test $ac_status = 0; }; }
24344 if test x
$gcc_cv_ld != x \
24345 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24346 gcc_cv_as_sparc_ua_pcrel
=yes
24350 echo "configure: failed program was" >&5
24353 rm -f conftest.o conftest.s
24356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24357 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24358 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24360 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24364 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24365 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24366 $as_echo_n "(cached) " >&6
24368 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24369 if test x
$gcc_cv_as != x
; then
24373 .uaword %r_disp32(foo)
24374 .byte 0x32, 0x33, 0x34
24378 .skip 4' > conftest.s
24379 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24381 (eval $ac_try) 2>&5
24383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24384 test $ac_status = 0; }; }
24386 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24387 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24388 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24389 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24390 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24391 |
grep 'DISP32' > /dev
/null
2>&1; then
24394 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24399 echo "configure: failed program was" >&5
24402 rm -f conftest.o conftest.s
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24406 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24407 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24409 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24413 fi # unaligned pcrel relocs
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24416 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24417 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24418 $as_echo_n "(cached) " >&6
24420 gcc_cv_as_sparc_offsetable_lo10
=no
24421 if test x
$gcc_cv_as != x
; then
24423 or %g1, %lo(ab) + 12, %g1
24424 or %g1, %lo(ab + 12), %g1' > conftest.s
24425 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24427 (eval $ac_try) 2>&5
24429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24430 test $ac_status = 0; }; }
24432 if test x
$gcc_cv_objdump != x \
24433 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24434 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24435 gcc_cv_as_sparc_offsetable_lo10
=yes
24438 echo "configure: failed program was" >&5
24441 rm -f conftest.o conftest.s
24444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24445 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24446 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24448 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24453 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24454 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24455 $as_echo_n "(cached) " >&6
24457 gcc_cv_as_sparc_fmaf
=no
24458 if test x
$gcc_cv_as != x
; then
24460 .register %g2, #scratch
24461 .register %g3, #scratch
24463 fmaddd %f0, %f2, %f4, %f6
24464 addxccc %g1, %g2, %g3
24465 fsrl32 %f2, %f4, %f8
24466 fnaddd %f10, %f12, %f14' > conftest.s
24467 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24469 (eval $ac_try) 2>&5
24471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24472 test $ac_status = 0; }; }
24474 gcc_cv_as_sparc_fmaf
=yes
24476 echo "configure: failed program was" >&5
24479 rm -f conftest.o conftest.s
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24483 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24484 if test $gcc_cv_as_sparc_fmaf = yes; then
24486 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24491 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24492 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24493 $as_echo_n "(cached) " >&6
24495 gcc_cv_as_sparc_sparc4
=no
24496 if test x
$gcc_cv_as != x
; then
24498 .register %g2, #scratch
24499 .register %g3, #scratch
24502 1: cwbneg %g2, %g3, 1f
24505 aes_kexpand0 %f4, %f6, %f8
24506 des_round %f38, %f40, %f42, %f44
24507 camellia_f %f54, %f56, %f58, %f60
24508 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24509 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24511 (eval $ac_try) 2>&5
24513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24514 test $ac_status = 0; }; }
24516 gcc_cv_as_sparc_sparc4
=yes
24518 echo "configure: failed program was" >&5
24521 rm -f conftest.o conftest.s
24524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24525 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24526 if test $gcc_cv_as_sparc_sparc4 = yes; then
24528 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24533 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24534 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24535 $as_echo_n "(cached) " >&6
24537 gcc_cv_as_sparc_leon
=no
24538 if test x
$gcc_cv_as != x
; then
24540 .register %g2, #scratch
24541 .register %g3, #scratch
24545 casa [%g2] 0xb, %g3, %g1' > conftest.s
24546 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24548 (eval $ac_try) 2>&5
24550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24551 test $ac_status = 0; }; }
24553 gcc_cv_as_sparc_leon
=yes
24555 echo "configure: failed program was" >&5
24558 rm -f conftest.o conftest.s
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24562 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24563 if test $gcc_cv_as_sparc_leon = yes; then
24565 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24570 i
[34567]86-*-* | x86_64-
*-*)
24573 # Full C++ conformance when using a shared libstdc++-v3 requires some
24574 # support from the Cygwin DLL, which in more recent versions exports
24575 # wrappers to aid in interposing and redirecting operators new, delete,
24576 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24577 # are configuring for a version of Cygwin that exports the wrappers.
24578 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
24579 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24580 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24581 gcc_ac_cygwin_dll_wrappers
=yes
24583 gcc_ac_cygwin_dll_wrappers
=no
24587 # Can't check presence of libc functions during cross-compile, so
24588 # we just have to assume we're building for an up-to-date target.
24589 gcc_ac_cygwin_dll_wrappers
=yes
24592 cat >>confdefs.h
<<_ACEOF
24593 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24598 cygwin
* | pe | mingw32
* | interix
*)
24599 # Recent binutils allows the three-operand form of ".comm" on PE. This
24600 # definition is used unconditionally to initialise the default state of
24601 # the target option variable that governs usage of the feature.
24602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24603 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24604 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24605 $as_echo_n "(cached) " >&6
24607 gcc_cv_as_comm_has_align
=no
24608 if test $in_tree_gas = yes; then
24609 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24610 then gcc_cv_as_comm_has_align
=yes
24612 elif test x
$gcc_cv_as != x
; then
24613 $as_echo '.comm foo,1,32' > conftest.s
24614 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24616 (eval $ac_try) 2>&5
24618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24619 test $ac_status = 0; }; }
24621 gcc_cv_as_comm_has_align
=yes
24623 echo "configure: failed program was" >&5
24626 rm -f conftest.o conftest.s
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24630 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24633 cat >>confdefs.h
<<_ACEOF
24634 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24637 # Used for DWARF 2 in PE
24638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24639 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24640 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24641 $as_echo_n "(cached) " >&6
24643 gcc_cv_as_ix86_pe_secrel32
=no
24644 if test $in_tree_gas = yes; then
24645 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24646 then gcc_cv_as_ix86_pe_secrel32
=yes
24648 elif test x
$gcc_cv_as != x
; then
24652 .secrel32 foo' > conftest.s
24653 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24655 (eval $ac_try) 2>&5
24657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24658 test $ac_status = 0; }; }
24660 if test x
$gcc_cv_ld != x \
24661 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24662 gcc_cv_as_ix86_pe_secrel32
=yes
24666 echo "configure: failed program was" >&5
24669 rm -f conftest.o conftest.s
24672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24673 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24674 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24676 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24679 # Test if the assembler supports the extended form of the .section
24680 # directive that specifies section alignment. LTO support uses this,
24681 # but normally only after installation, so we warn but don't fail the
24682 # configure if LTO is enabled but the assembler does not support it.
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24684 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24685 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24686 $as_echo_n "(cached) " >&6
24688 gcc_cv_as_section_has_align
=no
24689 if test $in_tree_gas = yes; then
24690 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24691 then gcc_cv_as_section_has_align
=yes
24693 elif test x
$gcc_cv_as != x
; then
24694 $as_echo '.section lto_test,"dr0"' > conftest.s
24695 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24697 (eval $ac_try) 2>&5
24699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24700 test $ac_status = 0; }; }
24702 gcc_cv_as_section_has_align
=yes
24704 echo "configure: failed program was" >&5
24707 rm -f conftest.o conftest.s
24710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24711 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24713 if test x
$gcc_cv_as_section_has_align != xyes
; then
24714 case ",$enable_languages," in
24716 { $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
24717 $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;}
24724 # Test if the assembler supports the section flag 'e' for specifying
24725 # an excluded section.
24726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24727 $as_echo_n "checking assembler for .section with e... " >&6; }
24728 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24729 $as_echo_n "(cached) " >&6
24731 gcc_cv_as_section_has_e
=no
24732 if test $in_tree_gas = yes; then
24733 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24734 then gcc_cv_as_section_has_e
=yes
24736 elif test x
$gcc_cv_as != x
; then
24737 $as_echo '.section foo1,"e"
24738 .byte 0,0,0,0' > conftest.s
24739 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24741 (eval $ac_try) 2>&5
24743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24744 test $ac_status = 0; }; }
24746 gcc_cv_as_section_has_e
=yes
24748 echo "configure: failed program was" >&5
24751 rm -f conftest.o conftest.s
24754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24755 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24758 cat >>confdefs.h
<<_ACEOF
24759 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24764 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24765 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24766 $as_echo_n "(cached) " >&6
24768 gcc_cv_as_ix86_filds
=no
24769 if test x
$gcc_cv_as != x
; then
24770 $as_echo 'filds mem; fists mem' > conftest.s
24771 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24773 (eval $ac_try) 2>&5
24775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24776 test $ac_status = 0; }; }
24778 gcc_cv_as_ix86_filds
=yes
24780 echo "configure: failed program was" >&5
24783 rm -f conftest.o conftest.s
24786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24787 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24788 if test $gcc_cv_as_ix86_filds = yes; then
24790 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24795 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24796 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24797 $as_echo_n "(cached) " >&6
24799 gcc_cv_as_ix86_fildq
=no
24800 if test x
$gcc_cv_as != x
; then
24801 $as_echo 'fildq mem; fistpq mem' > conftest.s
24802 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24804 (eval $ac_try) 2>&5
24806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24807 test $ac_status = 0; }; }
24809 gcc_cv_as_ix86_fildq
=yes
24811 echo "configure: failed program was" >&5
24814 rm -f conftest.o conftest.s
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24818 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24819 if test $gcc_cv_as_ix86_fildq = yes; then
24821 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24826 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24827 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24828 $as_echo_n "(cached) " >&6
24830 gcc_cv_as_ix86_cmov_sun_syntax
=no
24831 if test x
$gcc_cv_as != x
; then
24832 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24833 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24835 (eval $ac_try) 2>&5
24837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24838 test $ac_status = 0; }; }
24840 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24842 echo "configure: failed program was" >&5
24845 rm -f conftest.o conftest.s
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24849 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24850 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24852 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24857 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24858 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24859 $as_echo_n "(cached) " >&6
24861 gcc_cv_as_ix86_ffreep
=no
24862 if test x
$gcc_cv_as != x
; then
24863 $as_echo 'ffreep %st(1)' > conftest.s
24864 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24866 (eval $ac_try) 2>&5
24868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24869 test $ac_status = 0; }; }
24871 gcc_cv_as_ix86_ffreep
=yes
24873 echo "configure: failed program was" >&5
24876 rm -f conftest.o conftest.s
24879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24880 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24881 if test $gcc_cv_as_ix86_ffreep = yes; then
24883 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24888 $as_echo_n "checking assembler for .quad directive... " >&6; }
24889 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24890 $as_echo_n "(cached) " >&6
24892 gcc_cv_as_ix86_quad
=no
24893 if test x
$gcc_cv_as != x
; then
24894 $as_echo '.quad 0' > conftest.s
24895 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24897 (eval $ac_try) 2>&5
24899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24900 test $ac_status = 0; }; }
24902 gcc_cv_as_ix86_quad
=yes
24904 echo "configure: failed program was" >&5
24907 rm -f conftest.o conftest.s
24910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24911 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24912 if test $gcc_cv_as_ix86_quad = yes; then
24914 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24919 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24920 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24921 $as_echo_n "(cached) " >&6
24923 gcc_cv_as_ix86_sahf
=no
24924 if test x
$gcc_cv_as != x
; then
24927 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24929 (eval $ac_try) 2>&5
24931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24932 test $ac_status = 0; }; }
24934 gcc_cv_as_ix86_sahf
=yes
24936 echo "configure: failed program was" >&5
24939 rm -f conftest.o conftest.s
24942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24943 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24944 if test $gcc_cv_as_ix86_sahf = yes; then
24946 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24951 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24952 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24953 $as_echo_n "(cached) " >&6
24955 gcc_cv_as_ix86_interunit_movq
=no
24956 if test x
$gcc_cv_as != x
; then
24959 movq %rax, %xmm0' > conftest.s
24960 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24962 (eval $ac_try) 2>&5
24964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24965 test $ac_status = 0; }; }
24967 gcc_cv_as_ix86_interunit_movq
=yes
24969 echo "configure: failed program was" >&5
24972 rm -f conftest.o conftest.s
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24976 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24979 cat >>confdefs.h
<<_ACEOF
24980 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
24984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24985 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24986 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24987 $as_echo_n "(cached) " >&6
24989 gcc_cv_as_ix86_hle
=no
24990 if test x
$gcc_cv_as != x
; then
24991 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24992 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24994 (eval $ac_try) 2>&5
24996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24997 test $ac_status = 0; }; }
24999 gcc_cv_as_ix86_hle
=yes
25001 echo "configure: failed program was" >&5
25004 rm -f conftest.o conftest.s
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25008 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25009 if test $gcc_cv_as_ix86_hle = yes; then
25011 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25016 $as_echo_n "checking assembler for swap suffix... " >&6; }
25017 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25018 $as_echo_n "(cached) " >&6
25020 gcc_cv_as_ix86_swap
=no
25021 if test x
$gcc_cv_as != x
; then
25022 $as_echo 'movl.s %esp, %ebp' > conftest.s
25023 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25025 (eval $ac_try) 2>&5
25027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25028 test $ac_status = 0; }; }
25030 gcc_cv_as_ix86_swap
=yes
25032 echo "configure: failed program was" >&5
25035 rm -f conftest.o conftest.s
25038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25039 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25040 if test $gcc_cv_as_ix86_swap = yes; then
25042 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25047 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25048 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25049 $as_echo_n "(cached) " >&6
25051 gcc_cv_as_ix86_diff_sect_delta
=no
25052 if test x
$gcc_cv_as != x
; then
25053 $as_echo '.section .rodata
25059 .L2: nop' > conftest.s
25060 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25062 (eval $ac_try) 2>&5
25064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25065 test $ac_status = 0; }; }
25067 gcc_cv_as_ix86_diff_sect_delta
=yes
25069 echo "configure: failed program was" >&5
25072 rm -f conftest.o conftest.s
25075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25076 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25077 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25079 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25083 # These two are used unconditionally by i386.[ch]; it is to be defined
25084 # to 1 if the feature is present, 0 otherwise.
25085 as_ix86_gotoff_in_data_opt
=
25086 if test x
$gas = xyes
; then
25087 as_ix86_gotoff_in_data_opt
="--32"
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25090 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25091 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25092 $as_echo_n "(cached) " >&6
25094 gcc_cv_as_ix86_gotoff_in_data
=no
25095 if test $in_tree_gas = yes; then
25096 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25097 then gcc_cv_as_ix86_gotoff_in_data
=yes
25099 elif test x
$gcc_cv_as != x
; then
25104 .long .L0@GOTOFF' > conftest.s
25105 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25107 (eval $ac_try) 2>&5
25109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25110 test $ac_status = 0; }; }
25112 gcc_cv_as_ix86_gotoff_in_data
=yes
25114 echo "configure: failed program was" >&5
25117 rm -f conftest.o conftest.s
25120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25121 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25124 cat >>confdefs.h
<<_ACEOF
25125 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25130 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25131 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25132 $as_echo_n "(cached) " >&6
25134 gcc_cv_as_ix86_rep_lock_prefix
=no
25135 if test x
$gcc_cv_as != x
; then
25136 $as_echo 'rep movsl
25141 lock addl %edi, (%eax,%esi)
25142 lock orl $0, (%esp)' > conftest.s
25143 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25145 (eval $ac_try) 2>&5
25147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25148 test $ac_status = 0; }; }
25150 gcc_cv_as_ix86_rep_lock_prefix
=yes
25152 echo "configure: failed program was" >&5
25155 rm -f conftest.o conftest.s
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25159 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25160 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25162 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25167 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25168 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25169 $as_echo_n "(cached) " >&6
25171 gcc_cv_as_ix86_ud2
=no
25172 if test x
$gcc_cv_as != x
; then
25173 $as_echo 'ud2' > conftest.s
25174 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25176 (eval $ac_try) 2>&5
25178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25179 test $ac_status = 0; }; }
25181 gcc_cv_as_ix86_ud2
=yes
25183 echo "configure: failed program was" >&5
25186 rm -f conftest.o conftest.s
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25190 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25191 if test $gcc_cv_as_ix86_ud2 = yes; then
25193 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25198 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25199 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25200 $as_echo_n "(cached) " >&6
25202 gcc_cv_as_ix86_tlsgdplt
=no
25203 if test x
$gcc_cv_as != x
; then
25204 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25205 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25207 (eval $ac_try) 2>&5
25209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25210 test $ac_status = 0; }; }
25212 if test x
$gcc_cv_ld != x \
25213 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25214 gcc_cv_as_ix86_tlsgdplt
=yes
25218 echo "configure: failed program was" >&5
25221 rm -f conftest.o conftest.s
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25225 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25226 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25228 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25233 .section .tdata,"aw'$tls_section_flag'",@progbits
25235 .section .text,"ax",@progbits
25236 call tls_ld@tlsldmplt'
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25238 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25239 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25240 $as_echo_n "(cached) " >&6
25242 gcc_cv_as_ix86_tlsldmplt
=no
25243 if test x
$gcc_cv_as != x
; then
25244 $as_echo "$conftest_s" > conftest.s
25245 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25247 (eval $ac_try) 2>&5
25249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25250 test $ac_status = 0; }; }
25252 if test x
$gcc_cv_ld != x \
25253 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25254 gcc_cv_as_ix86_tlsldmplt
=yes
25258 echo "configure: failed program was" >&5
25261 rm -f conftest.o conftest.s
25264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25265 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25268 cat >>confdefs.h
<<_ACEOF
25269 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25273 # Enforce 32-bit output with gas and gld.
25274 if test x
$gas = xyes
; then
25275 as_ix86_tls_ldm_opt
="--32"
25277 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25278 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
25279 ld_ix86_tls_ldm_opt
="-melf_i386_sol2"
25281 ld_ix86_tls_ldm_opt
="-melf_i386"
25285 .section .text,"ax",@progbits
25287 .type _start, @function
25289 leal value@tlsldm(%ebx), %eax
25290 call ___tls_get_addr@plt
25292 .section .tdata,"aw'$tls_section_flag'",@progbits
25293 .type value, @object
25295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25296 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25297 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25298 $as_echo_n "(cached) " >&6
25300 gcc_cv_as_ix86_tlsldm
=no
25301 if test x
$gcc_cv_as != x
; then
25302 $as_echo "$conftest_s" > conftest.s
25303 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25305 (eval $ac_try) 2>&5
25307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25308 test $ac_status = 0; }; }
25310 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25311 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
25312 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
25313 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
25314 gcc_cv_as_ix86_tlsldm
=yes
25319 echo "configure: failed program was" >&5
25322 rm -f conftest.o conftest.s
25325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25326 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25329 cat >>confdefs.h
<<_ACEOF
25330 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25338 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25339 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25340 $as_echo_n "(cached) " >&6
25342 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25343 if test $in_tree_gas = yes; then
25344 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25345 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25347 elif test x
$gcc_cv_as != x
; then
25349 addl r15 = @ltoffx(x#), gp
25351 ld8.mov r16 = [r15], x#' > conftest.s
25352 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25353 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25354 (eval $ac_try) 2>&5
25356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25357 test $ac_status = 0; }; }
25359 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25361 echo "configure: failed program was" >&5
25364 rm -f conftest.o conftest.s
25367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25368 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25369 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25371 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25379 *-*-aix*) conftest_s
=' .machine "pwr5"
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25384 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25385 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25386 $as_echo_n "(cached) " >&6
25388 gcc_cv_as_machine_directive
=no
25389 if test x
$gcc_cv_as != x
; then
25390 $as_echo ' .machine ppc7400' > conftest.s
25391 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25393 (eval $ac_try) 2>&5
25395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25396 test $ac_status = 0; }; }
25398 gcc_cv_as_machine_directive
=yes
25400 echo "configure: failed program was" >&5
25403 rm -f conftest.o conftest.s
25406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25407 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25409 if test x
$gcc_cv_as_machine_directive != xyes
; then
25410 echo "*** This target requires an assembler supporting \".machine\"" >&2
25411 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25412 test x
$build = x
$target && exit 1
25416 *) conftest_s
=' .machine power4
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25422 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25423 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25424 $as_echo_n "(cached) " >&6
25426 gcc_cv_as_powerpc_mfcrf
=no
25427 if test $in_tree_gas = yes; then
25428 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25429 then gcc_cv_as_powerpc_mfcrf
=yes
25431 elif test x
$gcc_cv_as != x
; then
25432 $as_echo "$conftest_s" > conftest.s
25433 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25435 (eval $ac_try) 2>&5
25437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25438 test $ac_status = 0; }; }
25440 gcc_cv_as_powerpc_mfcrf
=yes
25442 echo "configure: failed program was" >&5
25445 rm -f conftest.o conftest.s
25448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25449 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25450 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25452 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25457 *-*-aix*) conftest_s
=' .machine "pwr5"
25460 *) conftest_s
=' .machine power5
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25466 $as_echo_n "checking assembler for popcntb support... " >&6; }
25467 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25468 $as_echo_n "(cached) " >&6
25470 gcc_cv_as_powerpc_popcntb
=no
25471 if test $in_tree_gas = yes; then
25472 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25473 then gcc_cv_as_powerpc_popcntb
=yes
25475 elif test x
$gcc_cv_as != x
; then
25476 $as_echo "$conftest_s" > conftest.s
25477 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25479 (eval $ac_try) 2>&5
25481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25482 test $ac_status = 0; }; }
25484 gcc_cv_as_powerpc_popcntb
=yes
25486 echo "configure: failed program was" >&5
25489 rm -f conftest.o conftest.s
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25493 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25494 if test $gcc_cv_as_powerpc_popcntb = yes; then
25496 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25501 *-*-aix*) conftest_s
=' .machine "pwr5x"
25504 *) conftest_s
=' .machine power5
25509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25510 $as_echo_n "checking assembler for fp round support... " >&6; }
25511 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25512 $as_echo_n "(cached) " >&6
25514 gcc_cv_as_powerpc_fprnd
=no
25515 if test $in_tree_gas = yes; then
25516 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25517 then gcc_cv_as_powerpc_fprnd
=yes
25519 elif test x
$gcc_cv_as != x
; then
25520 $as_echo "$conftest_s" > conftest.s
25521 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25523 (eval $ac_try) 2>&5
25525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25526 test $ac_status = 0; }; }
25528 gcc_cv_as_powerpc_fprnd
=yes
25530 echo "configure: failed program was" >&5
25533 rm -f conftest.o conftest.s
25536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25537 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25538 if test $gcc_cv_as_powerpc_fprnd = yes; then
25540 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25545 *-*-aix*) conftest_s
=' .machine "pwr6"
25548 *) conftest_s
=' .machine power6
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25554 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25555 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25556 $as_echo_n "(cached) " >&6
25558 gcc_cv_as_powerpc_mfpgpr
=no
25559 if test $in_tree_gas = yes; then
25560 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25561 then gcc_cv_as_powerpc_mfpgpr
=yes
25563 elif test x
$gcc_cv_as != x
; then
25564 $as_echo "$conftest_s" > conftest.s
25565 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25567 (eval $ac_try) 2>&5
25569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25570 test $ac_status = 0; }; }
25572 gcc_cv_as_powerpc_mfpgpr
=yes
25574 echo "configure: failed program was" >&5
25577 rm -f conftest.o conftest.s
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25581 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25582 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25584 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25589 *-*-aix*) conftest_s
=' .csect .text[PR]
25591 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25595 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25596 *) conftest_s
=' .text
25598 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25602 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25603 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25604 $as_echo_n "(cached) " >&6
25606 gcc_cv_as_powerpc_rel16
=no
25607 if test $in_tree_gas = yes; then
25608 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25609 then gcc_cv_as_powerpc_rel16
=yes
25611 elif test x
$gcc_cv_as != x
; then
25612 $as_echo "$conftest_s" > conftest.s
25613 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25615 (eval $ac_try) 2>&5
25617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25618 test $ac_status = 0; }; }
25620 gcc_cv_as_powerpc_rel16
=yes
25622 echo "configure: failed program was" >&5
25625 rm -f conftest.o conftest.s
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25629 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25630 if test $gcc_cv_as_powerpc_rel16 = yes; then
25632 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25637 *-*-aix*) conftest_s
=' .machine "pwr6"
25640 *) conftest_s
=' .machine power6
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25646 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25647 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25648 $as_echo_n "(cached) " >&6
25650 gcc_cv_as_powerpc_cmpb
=no
25651 if test $in_tree_gas = yes; then
25652 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25653 then gcc_cv_as_powerpc_cmpb
=yes
25655 elif test x
$gcc_cv_as != x
; then
25656 $as_echo "$conftest_s" > conftest.s
25657 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25659 (eval $ac_try) 2>&5
25661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25662 test $ac_status = 0; }; }
25664 gcc_cv_as_powerpc_cmpb
=yes
25666 echo "configure: failed program was" >&5
25669 rm -f conftest.o conftest.s
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25673 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25674 if test $gcc_cv_as_powerpc_cmpb = yes; then
25676 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25681 *-*-aix*) conftest_s
=' .machine "pwr6"
25684 *) conftest_s
=' .machine power6
25689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25690 $as_echo_n "checking assembler for decimal float support... " >&6; }
25691 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25692 $as_echo_n "(cached) " >&6
25694 gcc_cv_as_powerpc_dfp
=no
25695 if test $in_tree_gas = yes; then
25696 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25697 then gcc_cv_as_powerpc_dfp
=yes
25699 elif test x
$gcc_cv_as != x
; then
25700 $as_echo "$conftest_s" > conftest.s
25701 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25703 (eval $ac_try) 2>&5
25705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25706 test $ac_status = 0; }; }
25708 gcc_cv_as_powerpc_dfp
=yes
25710 echo "configure: failed program was" >&5
25713 rm -f conftest.o conftest.s
25716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25717 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25718 if test $gcc_cv_as_powerpc_dfp = yes; then
25720 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25725 *-*-aix*) conftest_s
=' .machine "pwr7"
25728 *) conftest_s
=' .machine power7
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25734 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25735 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25736 $as_echo_n "(cached) " >&6
25738 gcc_cv_as_powerpc_vsx
=no
25739 if test $in_tree_gas = yes; then
25740 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25741 then gcc_cv_as_powerpc_vsx
=yes
25743 elif test x
$gcc_cv_as != x
; then
25744 $as_echo "$conftest_s" > conftest.s
25745 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25747 (eval $ac_try) 2>&5
25749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25750 test $ac_status = 0; }; }
25752 gcc_cv_as_powerpc_vsx
=yes
25754 echo "configure: failed program was" >&5
25757 rm -f conftest.o conftest.s
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25761 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25762 if test $gcc_cv_as_powerpc_vsx = yes; then
25764 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25769 *-*-aix*) conftest_s
=' .machine "pwr7"
25772 *) conftest_s
=' .machine power7
25777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25778 $as_echo_n "checking assembler for popcntd support... " >&6; }
25779 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25780 $as_echo_n "(cached) " >&6
25782 gcc_cv_as_powerpc_popcntd
=no
25783 if test $in_tree_gas = yes; then
25784 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25785 then gcc_cv_as_powerpc_popcntd
=yes
25787 elif test x
$gcc_cv_as != x
; then
25788 $as_echo "$conftest_s" > conftest.s
25789 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -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_powerpc_popcntd
=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_powerpc_popcntd" >&5
25805 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25806 if test $gcc_cv_as_powerpc_popcntd = yes; then
25808 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25813 *-*-aix*) conftest_s
=' .machine "pwr8"
25814 .csect .text[PR]';;
25815 *) conftest_s
=' .machine power8
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25820 $as_echo_n "checking assembler for power8 support... " >&6; }
25821 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25822 $as_echo_n "(cached) " >&6
25824 gcc_cv_as_powerpc_power8
=no
25825 if test $in_tree_gas = yes; then
25826 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25827 then gcc_cv_as_powerpc_power8
=yes
25829 elif test x
$gcc_cv_as != x
; then
25830 $as_echo "$conftest_s" > conftest.s
25831 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25833 (eval $ac_try) 2>&5
25835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25836 test $ac_status = 0; }; }
25838 gcc_cv_as_powerpc_power8
=yes
25840 echo "configure: failed program was" >&5
25843 rm -f conftest.o conftest.s
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25847 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25848 if test $gcc_cv_as_powerpc_power8 = yes; then
25850 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25855 *-*-aix*) conftest_s
=' .csect .text[PR]
25857 *) conftest_s
=' .text
25861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25862 $as_echo_n "checking assembler for lwsync support... " >&6; }
25863 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25864 $as_echo_n "(cached) " >&6
25866 gcc_cv_as_powerpc_lwsync
=no
25867 if test $in_tree_gas = yes; then
25868 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25869 then gcc_cv_as_powerpc_lwsync
=yes
25871 elif test x
$gcc_cv_as != x
; then
25872 $as_echo "$conftest_s" > conftest.s
25873 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25875 (eval $ac_try) 2>&5
25877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25878 test $ac_status = 0; }; }
25880 gcc_cv_as_powerpc_lwsync
=yes
25882 echo "configure: failed program was" >&5
25885 rm -f conftest.o conftest.s
25888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25889 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25890 if test $gcc_cv_as_powerpc_lwsync = yes; then
25892 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25897 *-*-aix*) conftest_s
=' .machine "476"
25900 *) conftest_s
=' .machine "476"
25905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25906 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25907 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25908 $as_echo_n "(cached) " >&6
25910 gcc_cv_as_powerpc_dci
=no
25911 if test $in_tree_gas = yes; then
25912 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25913 then gcc_cv_as_powerpc_dci
=yes
25915 elif test x
$gcc_cv_as != x
; then
25916 $as_echo "$conftest_s" > conftest.s
25917 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25919 (eval $ac_try) 2>&5
25921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25922 test $ac_status = 0; }; }
25924 gcc_cv_as_powerpc_dci
=yes
25926 echo "configure: failed program was" >&5
25929 rm -f conftest.o conftest.s
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25933 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25934 if test $gcc_cv_as_powerpc_dci = yes; then
25936 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25941 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25942 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25943 $as_echo_n "(cached) " >&6
25945 gcc_cv_as_powerpc_gnu_attribute
=no
25946 if test $in_tree_gas = yes; then
25947 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25948 then gcc_cv_as_powerpc_gnu_attribute
=yes
25950 elif test x
$gcc_cv_as != x
; then
25951 $as_echo '.gnu_attribute 4,1' > conftest.s
25952 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25954 (eval $ac_try) 2>&5
25956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25957 test $ac_status = 0; }; }
25959 gcc_cv_as_powerpc_gnu_attribute
=yes
25961 echo "configure: failed program was" >&5
25964 rm -f conftest.o conftest.s
25967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25968 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25969 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25971 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25976 $as_echo_n "checking assembler for tls marker support... " >&6; }
25977 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25978 $as_echo_n "(cached) " >&6
25980 gcc_cv_as_powerpc_tls_markers
=no
25981 if test $in_tree_gas = yes; then
25982 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25983 then gcc_cv_as_powerpc_tls_markers
=yes
25985 elif test x
$gcc_cv_as != x
; then
25986 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25987 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25989 (eval $ac_try) 2>&5
25991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25992 test $ac_status = 0; }; }
25994 gcc_cv_as_powerpc_tls_markers
=yes
25996 echo "configure: failed program was" >&5
25999 rm -f conftest.o conftest.s
26002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26003 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26004 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26006 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26013 $as_echo_n "checking assembler for .ref support... " >&6; }
26014 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26015 $as_echo_n "(cached) " >&6
26017 gcc_cv_as_aix_ref
=no
26018 if test $in_tree_gas = yes; then
26019 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26020 then gcc_cv_as_aix_ref
=yes
26022 elif test x
$gcc_cv_as != x
; then
26023 $as_echo ' .csect stuff[rw]
26029 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26031 (eval $ac_try) 2>&5
26033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26034 test $ac_status = 0; }; }
26036 gcc_cv_as_aix_ref
=yes
26038 echo "configure: failed program was" >&5
26041 rm -f conftest.o conftest.s
26044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26045 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26046 if test $gcc_cv_as_aix_ref = yes; then
26048 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26057 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26058 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26059 $as_echo_n "(cached) " >&6
26061 gcc_cv_as_mips_explicit_relocs
=no
26062 if test $in_tree_gas = yes; then
26063 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26064 then gcc_cv_as_mips_explicit_relocs
=yes
26066 elif test x
$gcc_cv_as != x
; then
26067 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26068 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26070 (eval $ac_try) 2>&5
26072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26073 test $ac_status = 0; }; }
26075 gcc_cv_as_mips_explicit_relocs
=yes
26077 echo "configure: failed program was" >&5
26080 rm -f conftest.o conftest.s
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26084 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26085 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26086 if test x
$target_cpu_default = x
26087 then target_cpu_default
=MASK_EXPLICIT_RELOCS
26088 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26092 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26093 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26094 $as_echo_n "(cached) " >&6
26096 gcc_cv_as_mips_no_shared
=no
26097 if test $in_tree_gas = yes; then
26098 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26099 then gcc_cv_as_mips_no_shared
=yes
26101 elif test x
$gcc_cv_as != x
; then
26102 $as_echo 'nop' > conftest.s
26103 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26105 (eval $ac_try) 2>&5
26107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26108 test $ac_status = 0; }; }
26110 gcc_cv_as_mips_no_shared
=yes
26112 echo "configure: failed program was" >&5
26115 rm -f conftest.o conftest.s
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26119 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26120 if test $gcc_cv_as_mips_no_shared = yes; then
26122 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26127 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26128 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26129 $as_echo_n "(cached) " >&6
26131 gcc_cv_as_mips_gnu_attribute
=no
26132 if test $in_tree_gas = yes; then
26133 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26134 then gcc_cv_as_mips_gnu_attribute
=yes
26136 elif test x
$gcc_cv_as != x
; then
26137 $as_echo '.gnu_attribute 4,1' > conftest.s
26138 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26140 (eval $ac_try) 2>&5
26142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26143 test $ac_status = 0; }; }
26145 gcc_cv_as_mips_gnu_attribute
=yes
26147 echo "configure: failed program was" >&5
26150 rm -f conftest.o conftest.s
26153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26154 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26155 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26157 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26162 $as_echo_n "checking assembler for .micromips support... " >&6; }
26163 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26164 $as_echo_n "(cached) " >&6
26166 gcc_cv_as_micromips_support
=no
26167 if test x
$gcc_cv_as != x
; then
26168 $as_echo '.set micromips' > conftest.s
26169 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26171 (eval $ac_try) 2>&5
26173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26174 test $ac_status = 0; }; }
26176 gcc_cv_as_micromips_support
=yes
26178 echo "configure: failed program was" >&5
26181 rm -f conftest.o conftest.s
26184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26185 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26186 if test $gcc_cv_as_micromips_support = yes; then
26188 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26193 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26194 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26195 $as_echo_n "(cached) " >&6
26197 gcc_cv_as_mips_dtprelword
=no
26198 if test $in_tree_gas = yes; then
26199 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26200 then gcc_cv_as_mips_dtprelword
=yes
26202 elif test x
$gcc_cv_as != x
; then
26203 $as_echo '.section .tdata,"awT",@progbits
26207 .dtprelword x+0x8000' > conftest.s
26208 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26210 (eval $ac_try) 2>&5
26212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26213 test $ac_status = 0; }; }
26215 gcc_cv_as_mips_dtprelword
=yes
26217 echo "configure: failed program was" >&5
26220 rm -f conftest.o conftest.s
26223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26224 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26225 if test $gcc_cv_as_mips_dtprelword = yes; then
26227 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26232 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26233 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26234 $as_echo_n "(cached) " >&6
26236 gcc_cv_as_mips_dspr1_mult
=no
26237 if test x
$gcc_cv_as != x
; then
26238 $as_echo ' .set mips32r2
26246 multu $ac3,$4,$5' > conftest.s
26247 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26249 (eval $ac_try) 2>&5
26251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26252 test $ac_status = 0; }; }
26254 gcc_cv_as_mips_dspr1_mult
=yes
26256 echo "configure: failed program was" >&5
26259 rm -f conftest.o conftest.s
26262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26263 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26264 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26266 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26271 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26272 gcc_cv_as_ld_jalr_reloc
=no
26273 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26274 if test $in_tree_ld = yes ; then
26275 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 \
26276 && test $in_tree_ld_is_elf = yes; then
26277 gcc_cv_as_ld_jalr_reloc
=yes
26279 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26280 echo ' .ent x' > conftest.s
26281 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26282 echo ' lw $25,%call16(y)($28)' >> conftest.s
26283 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26284 echo '1: jalr $25' >> conftest.s
26285 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26286 echo '1: jalr $25' >> conftest.s
26287 echo ' .end x' >> conftest.s
26288 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
26289 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
26290 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
26291 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
26292 gcc_cv_as_ld_jalr_reloc
=yes
26298 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26299 if test x
$target_cpu_default = x
; then
26300 target_cpu_default
=MASK_RELAX_PIC_CALLS
26302 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26306 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26309 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26310 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26311 $as_echo_n "(cached) " >&6
26313 gcc_cv_ld_mips_personality_relaxation
=no
26314 if test $in_tree_ld = yes ; then
26315 if test "$gcc_cv_gld_major_version" -eq 2 \
26316 -a "$gcc_cv_gld_minor_version" -ge 21 \
26317 -o "$gcc_cv_gld_major_version" -gt 2; then
26318 gcc_cv_ld_mips_personality_relaxation
=yes
26320 elif test x
$gcc_cv_as != x \
26321 -a x
$gcc_cv_ld != x \
26322 -a x
$gcc_cv_readelf != x
; then
26323 cat > conftest.s
<<EOF
26325 .cfi_personality 0x80,indirect_ptr
26332 .section .data,"aw",@progbits
26336 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26337 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26338 if $gcc_cv_readelf -d conftest
2>&1 \
26339 |
grep TEXTREL
> /dev
/null
2>&1; then
26341 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26342 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26345 gcc_cv_ld_mips_personality_relaxation
=yes
26349 rm -f conftest.s conftest.o conftest
26351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26352 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26353 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26355 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26360 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26361 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26362 $as_echo_n "(cached) " >&6
26364 gcc_cv_as_mips_nan
=no
26365 if test x
$gcc_cv_as != x
; then
26366 $as_echo '' > conftest.s
26367 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26369 (eval $ac_try) 2>&5
26371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26372 test $ac_status = 0; }; }
26374 gcc_cv_as_mips_nan
=yes
26376 echo "configure: failed program was" >&5
26379 rm -f conftest.o conftest.s
26382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26383 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26384 if test $gcc_cv_as_mips_nan = yes; then
26386 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26389 if test x
$gcc_cv_as_mips_nan = xno \
26390 && test x
$with_nan != x
; then
26391 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26396 # Mips and HP-UX need the GNU assembler.
26397 # Linux on IA64 might be able to use the Intel assembler.
26400 mips
*-*-* |
*-*-hpux* )
26401 if test x
$gas_flag = xyes \
26402 ||
test x
"$host" != x
"$build" \
26403 ||
test ! -x "$gcc_cv_as" \
26404 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26407 echo "*** This configuration requires the GNU assembler" >&2
26413 # ??? Not all targets support dwarf2 debug_line, even within a version
26414 # of gas. Moreover, we need to emit a valid instruction to trigger any
26415 # info to the output file. So, as supported targets are added to gas 2.11,
26416 # add some instruction here to (also) show we expect this might work.
26417 # ??? Once 2.11 is released, probably need to add first known working
26418 # version to the per-target configury.
26419 case "$cpu_type" in
26420 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26421 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26422 | xstormy16 | xtensa
)
26432 if test x
"$insn" != x
; then
26434 .file 1 \"conftest.s\"
26437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26438 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26439 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26440 $as_echo_n "(cached) " >&6
26442 gcc_cv_as_dwarf2_debug_line
=no
26443 if test $in_tree_gas = yes; then
26444 if test $in_tree_gas_is_elf = yes \
26445 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26446 then gcc_cv_as_dwarf2_debug_line
=yes
26448 elif test x
$gcc_cv_as != x
; then
26449 $as_echo "$conftest_s" > conftest.s
26450 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26452 (eval $ac_try) 2>&5
26454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26455 test $ac_status = 0; }; }
26457 if test x
$gcc_cv_objdump != x \
26458 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26459 |
grep debug_line
> /dev
/null
2>&1; then
26460 gcc_cv_as_dwarf2_debug_line
=yes
26463 echo "configure: failed program was" >&5
26466 rm -f conftest.o conftest.s
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26470 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26473 # The .debug_line file table must be in the exact order that
26474 # we specified the files, since these indices are also used
26475 # by DW_AT_decl_file. Approximate this test by testing if
26476 # the assembler bitches if the same index is assigned twice.
26477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26478 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26479 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26480 $as_echo_n "(cached) " >&6
26482 gcc_cv_as_dwarf2_file_buggy
=no
26483 if test x
$gcc_cv_as != x
; then
26484 $as_echo ' .file 1 "foo.s"
26485 .file 1 "bar.s"' > conftest.s
26486 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26488 (eval $ac_try) 2>&5
26490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26491 test $ac_status = 0; }; }
26493 gcc_cv_as_dwarf2_file_buggy
=yes
26495 echo "configure: failed program was" >&5
26498 rm -f conftest.o conftest.s
26501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26502 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26505 if test $gcc_cv_as_dwarf2_debug_line = yes \
26506 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26508 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26513 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26514 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26515 $as_echo_n "(cached) " >&6
26517 gcc_cv_as_gdwarf2_flag
=no
26518 if test $in_tree_gas = yes; then
26519 if test $in_tree_gas_is_elf = yes \
26520 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26521 then gcc_cv_as_gdwarf2_flag
=yes
26523 elif test x
$gcc_cv_as != x
; then
26524 $as_echo "$insn" > conftest.s
26525 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26527 (eval $ac_try) 2>&5
26529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26530 test $ac_status = 0; }; }
26532 gcc_cv_as_gdwarf2_flag
=yes
26534 echo "configure: failed program was" >&5
26537 rm -f conftest.o conftest.s
26540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26541 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26542 if test $gcc_cv_as_gdwarf2_flag = yes; then
26544 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26549 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26550 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26551 $as_echo_n "(cached) " >&6
26553 gcc_cv_as_gstabs_flag
=no
26554 if test $in_tree_gas = yes; then
26555 if test $in_tree_gas_is_elf = yes \
26556 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26557 then gcc_cv_as_gstabs_flag
=yes
26559 elif test x
$gcc_cv_as != x
; then
26560 $as_echo "$insn" > conftest.s
26561 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26563 (eval $ac_try) 2>&5
26565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26566 test $ac_status = 0; }; }
26568 gcc_cv_as_gstabs_flag
=yes
26570 echo "configure: failed program was" >&5
26573 rm -f conftest.o conftest.s
26576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26577 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26578 if test $gcc_cv_as_gstabs_flag = yes; then
26580 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26585 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26586 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26587 $as_echo_n "(cached) " >&6
26589 gcc_cv_as_debug_prefix_map_flag
=no
26590 if test $in_tree_gas = yes; then
26591 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26592 then gcc_cv_as_debug_prefix_map_flag
=yes
26594 elif test x
$gcc_cv_as != x
; then
26595 $as_echo "$insn" > conftest.s
26596 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26598 (eval $ac_try) 2>&5
26600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26601 test $ac_status = 0; }; }
26603 gcc_cv_as_debug_prefix_map_flag
=yes
26605 echo "configure: failed program was" >&5
26608 rm -f conftest.o conftest.s
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26612 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26613 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26615 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
26621 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
26622 if test "${gcc_cv_as_compress_debug+set}" = set; then :
26623 $as_echo_n "(cached) " >&6
26625 gcc_cv_as_compress_debug
=no
26626 if test x
$gcc_cv_as != x
; then
26627 $as_echo '' > conftest.s
26628 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
26629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26630 (eval $ac_try) 2>&5
26632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26633 test $ac_status = 0; }; }
26635 # gas compiled without zlib cannot compress debug sections and warns
26636 # about it, but still exits successfully. So check for this, too.
26637 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
26639 gcc_cv_as_compress_debug
=0
26640 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
26642 gcc_cv_as_compress_debug
=1
26643 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
26644 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
26646 gcc_cv_as_compress_debug
=0
26647 # FIXME: Future gas versions will support ELF gABI style via
26648 # --compress-debug-sections[=type].
26651 echo "configure: failed program was" >&5
26654 rm -f conftest.o conftest.s
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
26658 $as_echo "$gcc_cv_as_compress_debug" >&6; }
26661 cat >>confdefs.h
<<_ACEOF
26662 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
26666 cat >>confdefs.h
<<_ACEOF
26667 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
26671 cat >>confdefs.h
<<_ACEOF
26672 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26677 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26678 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26679 $as_echo_n "(cached) " >&6
26681 gcc_cv_as_lcomm_with_alignment
=no
26682 if test x
$gcc_cv_as != x
; then
26683 $as_echo '.lcomm bar,4,16' > conftest.s
26684 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26686 (eval $ac_try) 2>&5
26688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26689 test $ac_status = 0; }; }
26691 gcc_cv_as_lcomm_with_alignment
=yes
26693 echo "configure: failed program was" >&5
26696 rm -f conftest.o conftest.s
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26700 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26701 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26703 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26707 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26708 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26709 && test "$prefix" != "NONE"; then
26711 cat >>confdefs.h
<<_ACEOF
26712 #define PREFIX_INCLUDE_DIR "$prefix/include"
26717 # Determine the version of glibc, if any, used on the target.
26718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26719 $as_echo_n "checking for target glibc version... " >&6; }
26721 # Check whether --with-glibc-version was given.
26722 if test "${with_glibc_version+set}" = set; then :
26723 withval
=$with_glibc_version;
26724 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26725 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26726 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26728 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
26732 glibc_version_major
=0
26733 glibc_version_minor
=0
26734 if test -f $target_header_dir/features.h \
26735 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26736 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26737 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26738 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26743 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26745 cat >>confdefs.h
<<_ACEOF
26746 #define TARGET_GLIBC_MAJOR $glibc_version_major
26750 cat >>confdefs.h
<<_ACEOF
26751 #define TARGET_GLIBC_MINOR $glibc_version_minor
26755 # Check whether --enable-gnu-unique-object was given.
26756 if test "${enable_gnu_unique_object+set}" = set; then :
26757 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26759 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26760 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26764 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26765 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26766 $as_echo_n "(cached) " >&6
26768 gcc_cv_as_gnu_unique_object
=no
26769 if test $in_tree_gas = yes; then
26770 if test $in_tree_gas_is_elf = yes \
26771 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26772 then gcc_cv_as_gnu_unique_object
=yes
26774 elif test x
$gcc_cv_as != x
; then
26775 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26776 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26778 (eval $ac_try) 2>&5
26780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26781 test $ac_status = 0; }; }
26783 gcc_cv_as_gnu_unique_object
=yes
26785 echo "configure: failed program was" >&5
26788 rm -f conftest.o conftest.s
26791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26792 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26793 if test $gcc_cv_as_gnu_unique_object = yes; then
26794 # We need to unquote above to to use the definition from config.gcc.
26795 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26797 if test $glibc_version_major -gt 2 \
26798 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26799 enable_gnu_unique_object
=yes
26805 if test x
$enable_gnu_unique_object = xyes
; then
26807 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26812 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26813 if test "${gcc_cv_as_line_zero+set}" = set; then :
26814 $as_echo_n "(cached) " >&6
26816 gcc_cv_as_line_zero
=no
26817 if test $in_tree_gas = yes; then
26818 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26819 then gcc_cv_as_line_zero
=yes
26821 elif test "x$gcc_cv_as" != x
; then
26822 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26823 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26825 (eval $ac_try) 2>&5
26827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26828 test $ac_status = 0; }; } &&
26829 test "x`cat conftest.out`" = x
26831 gcc_cv_as_line_zero
=yes
26833 echo "configure: failed program was" >&5
26835 echo "configure: error output was" >&5
26836 cat conftest.out
>&5
26838 rm -f conftest.o conftest.s conftest.out
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26842 $as_echo "$gcc_cv_as_line_zero" >&6; }
26843 if test "x$gcc_cv_as_line_zero" = xyes
; then
26845 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26850 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26851 gcc_cv_ld_eh_frame_hdr
=no
26852 if test $in_tree_ld = yes ; then
26853 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 \
26854 && test $in_tree_ld_is_elf = yes; then
26855 gcc_cv_ld_eh_frame_hdr
=yes
26857 elif test x
$gcc_cv_ld != x
; then
26858 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26859 # Check if linker supports --eh-frame-hdr option
26860 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26861 gcc_cv_ld_eh_frame_hdr
=yes
26866 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26867 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26868 gcc_cv_ld_eh_frame_hdr
=yes
26875 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26877 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26881 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26884 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26885 gcc_cv_ld_eh_frame_ciev3
=no
26886 if test $in_tree_ld = yes ; then
26887 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 \
26888 && test $in_tree_ld_is_elf = yes; then
26889 gcc_cv_ld_eh_frame_ciev3
=yes
26891 elif test x
$gcc_cv_ld != x
; then
26892 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26893 gcc_cv_ld_eh_frame_ciev3
=yes
26894 if test 0"$ld_date" -lt 20040513; then
26895 if test -n "$ld_date"; then
26896 # If there was date string, but was earlier than 2004-05-13, fail
26897 gcc_cv_ld_eh_frame_ciev3
=no
26898 elif test "$ld_vers_major" -lt 2; then
26899 gcc_cv_ld_eh_frame_ciev3
=no
26900 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26901 gcc_cv_ld_eh_frame_ciev3
=no
26907 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26908 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
26909 gcc_cv_ld_eh_frame_ciev3
=yes
26916 cat >>confdefs.h
<<_ACEOF
26917 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26921 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26924 $as_echo_n "checking linker position independent executable support... " >&6; }
26926 if test $in_tree_ld = yes ; then
26927 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
26928 && test $in_tree_ld_is_elf = yes; then
26931 elif test x
$gcc_cv_ld != x
; then
26932 # Check if linker supports -pie option
26933 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26937 if test x
"$gcc_cv_ld_pie" = xyes
; then
26939 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26943 $as_echo "$gcc_cv_ld_pie" >&6; }
26945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26946 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26947 gcc_cv_ld_eh_gc_sections
=no
26948 if test $in_tree_ld = yes ; then
26949 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 \
26950 && test $in_tree_ld_is_elf = yes; then
26951 gcc_cv_ld_eh_gc_sections
=yes
26953 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26954 cat > conftest.s
<<EOF
26957 .type _start, @function
26960 .size _start, .-_start
26961 .section .text.foo,"ax",@progbits
26962 .type foo, @function
26966 .section .gcc_except_table.foo,"a",@progbits
26969 .section .eh_frame,"a",@progbits
26972 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26973 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26974 |
grep "gc-sections option ignored" > /dev
/null
; then
26975 gcc_cv_ld_eh_gc_sections
=no
26976 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26977 |
grep gcc_except_table
> /dev
/null
; then
26978 gcc_cv_ld_eh_gc_sections
=yes
26979 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26980 if test x
$gcc_cv_as_comdat_group != xyes
; then
26981 gcc_cv_ld_eh_gc_sections
=no
26982 cat > conftest.s
<<EOF
26985 .type _start, @function
26988 .size _start, .-_start
26989 .section .gnu.linkonce.t.foo,"ax",@progbits
26990 .type foo, @function
26994 .section .gcc_except_table.foo,"a",@progbits
26997 .section .eh_frame,"a",@progbits
27000 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27001 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27002 |
grep "gc-sections option ignored" > /dev
/null
; then
27003 gcc_cv_ld_eh_gc_sections
=no
27004 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27005 |
grep gcc_except_table
> /dev
/null
; then
27006 gcc_cv_ld_eh_gc_sections
=yes
27012 rm -f conftest.s conftest.o conftest
27016 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27017 gcc_cv_ld_eh_gc_sections
=no
27020 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
27022 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27026 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27029 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27030 gcc_cv_ld_eh_gc_sections_bug
=no
27031 if test $in_tree_ld = yes ; then
27032 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 \
27033 && test $in_tree_ld_is_elf = yes; then
27034 gcc_cv_ld_eh_gc_sections_bug
=yes
27036 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
27037 gcc_cv_ld_eh_gc_sections_bug
=yes
27038 cat > conftest.s
<<EOF
27041 .type _start, @function
27044 .size _start, .-_start
27045 .section .text.startup.foo,"ax",@progbits
27046 .type foo, @function
27050 .section .gcc_except_table.foo,"a",@progbits
27053 .section .eh_frame,"a",@progbits
27056 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27057 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27058 |
grep "gc-sections option ignored" > /dev
/null
; then
27060 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27061 |
grep gcc_except_table
> /dev
/null
; then
27062 gcc_cv_ld_eh_gc_sections_bug
=no
27065 rm -f conftest.s conftest.o conftest
27067 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
27069 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27073 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27076 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27077 # gold/gld support compressed debug sections since binutils 2.19/2.21
27078 if test $in_tree_ld = yes ; then
27079 gcc_cv_ld_compress_debug
=0
27080 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 \
27081 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27082 gcc_cv_ld_compress_debug
=2
27083 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
27084 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 \
27085 && test $in_tree_ld_is_elf = yes; then
27086 gcc_cv_ld_compress_debug
=1
27088 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27089 gcc_cv_ld_compress_debug
=1
27090 if test 0"$ld_date" -lt 20050308; then
27091 if test -n "$ld_date"; then
27092 # If there was date string, but was earlier than 2005-03-08, fail
27093 gcc_cv_ld_compress_debug
=0
27094 elif test "$ld_vers_major" -lt 2; then
27095 gcc_cv_ld_compress_debug
=0
27096 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27097 gcc_cv_ld_compress_debug
=0
27100 if test $ld_is_gold = yes; then
27101 gcc_cv_ld_compress_debug
=2
27102 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
27105 case "${target}" in
27107 # Introduced in Solaris 11.2.
27108 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
27109 gcc_cv_ld_compress_debug
=3
27110 gcc_cv_ld_compress_debug_option
="-z compress-sections"
27112 gcc_cv_ld_compress_debug
=0
27116 # Assume linkers other than GNU ld don't support compessed debug
27118 gcc_cv_ld_compress_debug
=0
27123 cat >>confdefs.h
<<_ACEOF
27124 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27128 cat >>confdefs.h
<<_ACEOF
27129 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27133 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27140 $as_echo_n "checking linker --as-needed support... " >&6; }
27141 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27142 $as_echo_n "(cached) " >&6
27144 gcc_cv_ld_as_needed
=no
27145 gcc_cv_ld_as_needed_option
='--as-needed'
27146 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
27147 if test $in_tree_ld = yes ; then
27148 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 \
27149 && test $in_tree_ld_is_elf = yes; then
27150 gcc_cv_ld_as_needed
=yes
27152 elif test x
$gcc_cv_ld != x
; then
27153 # Check if linker supports --as-needed and --no-as-needed options
27154 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
27155 gcc_cv_ld_as_needed
=yes
27158 # Solaris 2 ld always supports -z ignore/-z record.
27160 gcc_cv_ld_as_needed
=yes
27161 gcc_cv_ld_as_needed_option
="-z ignore"
27162 gcc_cv_ld_no_as_needed_option
="-z record"
27167 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27168 # dl_iterate_phdr, i.e. since Solaris 11.
27170 *-*-solaris2.1
[1-9]*)
27172 i?
86-*-* | x86_64-
*-*)
27173 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27174 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27175 gcc_cv_ld_as_needed
=no
27181 gcc_cv_ld_as_needed
=no
27186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27187 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27188 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
27190 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27193 cat >>confdefs.h
<<_ACEOF
27194 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27198 cat >>confdefs.h
<<_ACEOF
27199 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27205 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27206 saved_LDFLAGS
="$LDFLAGS"
27207 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
27208 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27210 /* end confdefs.h. */
27211 int main(void) {return 0;}
27213 if ac_fn_c_try_link
"$LINENO"; then :
27214 gcc_cv_ld_clearcap
=yes; break
27216 gcc_cv_ld_clearcap
=no
27218 rm -f core conftest.err conftest.
$ac_objext \
27219 conftest
$ac_exeext conftest.
$ac_ext
27221 LDFLAGS
="$saved_LDFLAGS"
27222 if test "x$gcc_cv_ld_clearcap" = xyes
; then
27224 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27226 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27230 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27232 case "$target:$tm_file" in
27233 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
27236 emul_name
="-melf64lppc"
27239 emul_name
="-melf64ppc"
27242 emul_name
="-melf64ppc_fbsd"
27245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27246 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27247 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27248 $as_echo_n "(cached) " >&6
27250 gcc_cv_ld_no_dot_syms
=no
27251 if test x
"$ld_is_gold" = xyes
; then
27252 gcc_cv_ld_no_dot_syms
=yes
27253 elif test $in_tree_ld = yes ; then
27254 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
27255 gcc_cv_ld_no_dot_syms
=yes
27257 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27258 cat > conftest1.s
<<EOF
27262 cat > conftest2.s
<<EOF
27263 .section ".opd","aw"
27266 .type foo,@function
27268 .quad .LEfoo,.TOC.@tocbase,0
27274 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27275 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27276 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
27277 gcc_cv_ld_no_dot_syms
=yes
27279 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27284 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27285 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
27287 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27292 $as_echo_n "checking linker large toc support... " >&6; }
27293 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27294 $as_echo_n "(cached) " >&6
27296 gcc_cv_ld_large_toc
=no
27297 if test x
"$ld_is_gold" = xyes
; then
27298 gcc_cv_ld_large_toc
=yes
27299 elif test $in_tree_ld = yes ; then
27300 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
27301 gcc_cv_ld_large_toc
=yes
27303 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27304 cat > conftest.s
<<EOF
27305 .section ".tbss","awT",@nobits
27311 addis 9,13,ie0@got@tprel@ha
27312 ld 9,ie0@got@tprel@l(9)
27314 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27315 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
27316 gcc_cv_ld_large_toc
=yes
27318 rm -f conftest conftest.o conftest.s
27322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27323 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27324 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27326 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27335 $as_echo_n "checking linker large toc support... " >&6; }
27336 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27337 $as_echo_n "(cached) " >&6
27339 gcc_cv_ld_large_toc
=no
27340 if test x
$gcc_cv_as != x
; then
27341 cat > conftest.s
<<EOF
27351 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
27352 gcc_cv_ld_large_toc
=yes
27354 rm -f conftest conftest.o conftest.s
27358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27359 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27360 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27362 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27369 $as_echo_n "checking linker --build-id support... " >&6; }
27370 if test "${gcc_cv_ld_buildid+set}" = set; then :
27371 $as_echo_n "(cached) " >&6
27373 gcc_cv_ld_buildid
=no
27374 if test $in_tree_ld = yes ; then
27375 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27376 "$gcc_cv_gld_minor_version" -ge 18 -o \
27377 "$gcc_cv_gld_major_version" -gt 2 \
27378 && test $in_tree_ld_is_elf = yes; then
27379 gcc_cv_ld_buildid
=yes
27381 elif test x
$gcc_cv_ld != x
; then
27382 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
27383 gcc_cv_ld_buildid
=yes
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27388 $as_echo "$gcc_cv_ld_buildid" >&6; }
27389 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27391 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27395 # Check whether --enable-linker-build-id was given.
27396 if test "${enable_linker_build_id+set}" = set; then :
27397 enableval
=$enable_linker_build_id;
27399 enable_linker_build_id
=no
27403 if test x
"$enable_linker_build_id" = xyes
; then
27404 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27406 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27410 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27414 # In binutils 2.21, GNU ld gained support for new emulations fully
27415 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27417 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27418 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27419 $as_echo_n "(cached) " >&6
27421 gcc_cv_ld_sol2_emulation
=no
27422 if test $in_tree_ld = yes ; then
27423 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27424 "$gcc_cv_gld_minor_version" -ge 21 -o \
27425 "$gcc_cv_gld_major_version" -gt 2 \
27426 && test $in_tree_ld_is_elf = yes; then
27427 gcc_cv_ld_sol2_emulation
=yes
27429 elif test x
$gcc_cv_ld != x
; then
27430 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
27431 grep _sol2
> /dev
/null
; then
27432 gcc_cv_ld_sol2_emulation
=yes
27436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27437 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27438 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
27440 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27445 $as_echo_n "checking linker --sysroot support... " >&6; }
27446 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27447 $as_echo_n "(cached) " >&6
27449 gcc_cv_ld_sysroot
=no
27450 if test $in_tree_ld = yes ; then
27451 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
27452 gcc_cv_ld_sysroot
=yes
27454 elif test x
$gcc_cv_ld != x
; then
27455 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
27456 gcc_cv_ld_sysroot
=yes
27460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27461 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27462 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
27464 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27468 # Test for stack protector support in target C library.
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27470 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27471 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27472 $as_echo_n "(cached) " >&6
27474 gcc_cv_libc_provides_ssp
=no
27476 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
27477 # glibc 2.4 and later provides __stack_chk_fail and
27478 # either __stack_chk_guard, or TLS access to stack guard canary.
27480 if test $glibc_version_major -gt 2 \
27481 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27482 gcc_cv_libc_provides_ssp
=yes
27485 if test -f $target_header_dir/features.h \
27486 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27487 $target_header_dir/features.h
> /dev
/null
; then
27488 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27489 $target_header_dir/features.h
> /dev
/null
&& \
27490 test -f $target_header_dir/bits
/uClibc_config.h
&& \
27491 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27492 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
27493 gcc_cv_libc_provides_ssp
=yes
27495 # all versions of Bionic support stack protector
27496 elif test -f $target_header_dir/sys
/cdefs.h \
27497 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27498 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
27499 gcc_cv_libc_provides_ssp
=yes
27504 # Avoid complicated tests (see
27505 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27506 # simply assert that glibc does provide this, which is true for all
27507 # realistically usable GNU/Hurd configurations.
27508 gcc_cv_libc_provides_ssp
=yes;;
27509 *-*-darwin* |
*-*-freebsd*)
27510 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27511 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
27512 gcc_cv_libc_provides_ssp
=yes
27514 echo "no __stack_chk_fail on this target"
27518 *) gcc_cv_libc_provides_ssp
=no
;;
27521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27522 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27524 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
27526 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27530 # Test for <sys/sdt.h> on the target.
27532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27533 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27535 if test -f $target_header_dir/sys
/sdt.h
; then
27538 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27542 $as_echo "$have_sys_sdt_h" >&6; }
27544 # Check if TFmode long double should be used by default or not.
27545 # Some glibc targets used DFmode long double, but with glibc 2.4
27546 # and later they can use TFmode.
27548 powerpc
*-*-linux* | \
27549 sparc
*-*-linux* | \
27553 # Check whether --with-long-double-128 was given.
27554 if test "${with_long_double_128+set}" = set; then :
27555 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
27558 if test $glibc_version_major -gt 2 \
27559 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27560 gcc_cv_target_ldbl128
=yes
27563 gcc_cv_target_ldbl128
=no
27564 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27565 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
27566 && gcc_cv_target_ldbl128
=yes
27573 if test x
$gcc_cv_target_ldbl128 = xyes
; then
27575 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27580 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27581 gcc_cv_target_dl_iterate_phdr
=unknown
27583 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27584 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27585 # libdl there, both complicating its use and breaking compatibility
27586 # between Solaris 10 updates.
27587 *-*-solaris2.1
[1-9]*)
27588 # <link.h> needs both a dl_iterate_phdr declaration and support for
27589 # compilation with largefile support.
27590 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
27591 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
27592 gcc_cv_target_dl_iterate_phdr
=yes
27594 gcc_cv_target_dl_iterate_phdr
=no
27597 *-*-dragonfly* |
*-*-freebsd*)
27598 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
27599 gcc_cv_target_dl_iterate_phdr
=yes
27601 gcc_cv_target_dl_iterate_phdr
=no
27606 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
27608 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27612 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27614 # We no longer support different GC mechanisms. Emit an error if
27615 # the user configures with --with-gc.
27617 # Check whether --with-gc was given.
27618 if test "${with_gc+set}" = set; then :
27619 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27623 # Libraries to use on the host. This will normally be set by the top
27624 # level Makefile. Here we simply capture the value for our Makefile.
27625 if test -z "${HOST_LIBS+set}"; then
27630 # Use the system's zlib library.
27632 zlibinc
="-I\$(srcdir)/../zlib"
27634 # Check whether --with-system-zlib was given.
27635 if test "${with_system_zlib+set}" = set; then :
27636 withval
=$with_system_zlib; zlibdir
=
27645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27646 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27647 # Check whether --enable-maintainer-mode was given.
27648 if test "${enable_maintainer_mode+set}" = set; then :
27649 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
27655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27656 $as_echo "$maintainer_mode" >&6; }
27658 if test "$maintainer_mode" = "yes"; then
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27666 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27667 # Check whether --enable-link-mutex was given.
27668 if test "${enable_link_mutex+set}" = set; then :
27669 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
27674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27675 $as_echo "$do_link_mutex" >&6; }
27677 if test "$do_link_mutex" = "yes"; then
27680 DO_LINK_MUTEX
=false
27688 # Make empty files to contain the specs and options for each language.
27689 # Then add #include lines to for a compiler that has specs and/or options.
27695 # These (without "all_") are set in each config-lang.in.
27696 # `language' must be a single word so is spelled singularly.
27699 all_outputs
='Makefile'
27700 # List of language makefile fragments.
27701 all_lang_makefrags
=
27702 # Additional files for gengtype
27703 all_gtfiles
="$target_gtfiles"
27705 # These are the languages that are set in --enable-languages,
27706 # and are available in the GCC tree.
27707 all_selected_languages
=
27709 # Add the language fragments.
27710 # Languages are added via two mechanisms. Some information must be
27711 # recorded in makefile variables, these are defined in config-lang.in.
27712 # We accumulate them and plug them into the main Makefile.
27713 # The other mechanism is a set of hooks for each of the main targets
27714 # like `clean', `install', etc.
27716 language_hooks
="Make-hooks"
27718 for lang
in ${srcdir}/*/config-lang.
in
27720 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27722 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27723 if test "x$lang_alias" = x
27725 echo "$lang doesn't set \$language." 1>&2
27728 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27729 subdirs
="$subdirs $subdir"
27731 # $gcc_subdir is where the gcc integration files are to be found
27732 # for a language, both for internal compiler purposes (compiler
27733 # sources implementing front-end to GCC tree converters), and for
27734 # build infrastructure purposes (Make-lang.in, etc.)
27736 # This will be <subdir> (relative to $srcdir) if a line like
27737 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27738 # is found in <langdir>/config-lang.in, and will remain <langdir>
27741 # Except for the language alias (fetched above), the regular
27742 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27743 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27744 # only this and the language alias.
27746 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27747 if [ "$gcc_subdir" = "" ]; then
27748 gcc_subdir
="$subdir"
27751 case ",$enable_languages," in
27753 all_selected_languages
="$all_selected_languages $lang_alias"
27754 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27755 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27766 .
${srcdir}/$gcc_subdir/config-lang.
in
27767 if test "x$language" = x
27769 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27774 case ",$enable_languages," in
27775 *,$lang_alias,*) ;;
27777 for i
in $subdir_requires; do
27778 test -f "${srcdir}/$i/config-lang.in" && continue
27786 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27787 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27788 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27789 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27791 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27792 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27794 all_languages
="$all_languages $language"
27795 all_compilers
="$all_compilers $compilers"
27796 all_outputs
="$all_outputs $outputs"
27797 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27798 case ",$enable_languages," in
27801 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27811 for language
in $all_selected_languages
27813 check_languages
="$check_languages check-$language"
27816 # We link each language in with a set of hooks, reached indirectly via
27817 # lang.${target}. Only do so for selected languages.
27821 target_list
="all.cross start.encap rest.encap tags \
27822 install-common install-man install-info install-pdf install-html dvi \
27823 pdf html uninstall info man srcextra srcman srcinfo \
27824 mostlyclean clean distclean maintainer-clean install-plugin"
27826 for t
in $target_list
27829 for lang
in $all_selected_languages
27833 echo "lang.$t: $x" >> Make-hooks
27837 # Option include files
27840 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27841 option_includes
="option-includes.mk"
27850 echo "dir ." > .gdbinit
27851 echo "dir ${srcdir}" >> .gdbinit
27852 if test x
$gdb_needs_out_file_path = xyes
27854 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27856 if test "x$subdirs" != x
; then
27859 echo "dir ${srcdir}/$s" >> .gdbinit
27862 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27863 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27865 # Put a breakpoint on __asan_report_error to help with debugging buffer
27868 *-fsanitize=address
*)
27869 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27873 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27877 # Find a directory in which to install a shared libgcc.
27879 # Check whether --enable-version-specific-runtime-libs was given.
27880 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27881 enableval
=$enable_version_specific_runtime_libs;
27885 # Substitute configuration variables
27949 if test x
${build} = x
${host} ; then
27950 if test x
${host} = x
${target} ; then
27951 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27953 echo "Links are now set up to build a cross-compiler" 1>&2
27954 echo " from ${host} to ${target}." 1>&2
27957 if test x
${host} = x
${target} ; then
27958 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27959 echo " for ${target}." 1>&2
27961 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27962 echo " from ${host} to ${target}." 1>&2
27971 if test "x${ISLLIBS}" != "x" ; then
27973 $as_echo "#define HAVE_isl 1" >>confdefs.h
27979 if test "x${CLOOGLIBS}" != "x" ; then
27981 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27985 # Check for plugin support
27986 # Check whether --enable-plugin was given.
27987 if test "${enable_plugin+set}" = set; then :
27988 enableval
=$enable_plugin; enable_plugin
=$enableval
27990 enable_plugin
=yes; default_plugin
=yes
27998 if test x
$build = x
$host; then
27999 export_sym_check
="nm${exeext} -g"
28000 elif test x
$host = x
$target; then
28001 export_sym_check
="$gcc_cv_nm -g"
28007 if test x
$build = x
$host; then
28008 export_sym_check
="objdump${exeext} -T"
28009 elif test x
$host = x
$target; then
28010 export_sym_check
="$gcc_cv_objdump -T"
28017 if test x
"$enable_plugin" = x
"yes"; then
28019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28020 $as_echo_n "checking for exported symbols... " >&6; }
28021 if test "x$export_sym_check" != x
; then
28022 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28023 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
28024 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
28025 : # No need to use a flag
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28027 $as_echo "yes" >&6; }
28029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28030 $as_echo "yes" >&6; }
28031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28032 $as_echo_n "checking for -rdynamic... " >&6; }
28033 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
28034 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
28035 plugin_rdynamic
=yes
28036 pluginlibs
="-rdynamic"
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28042 $as_echo "$plugin_rdynamic" >&6; }
28045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28046 $as_echo "unable to check" >&6; }
28051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28052 $as_echo_n "checking for library containing dlopen... " >&6; }
28053 if test "${ac_cv_search_dlopen+set}" = set; then :
28054 $as_echo_n "(cached) " >&6
28056 ac_func_search_save_LIBS
=$LIBS
28057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28058 /* end confdefs.h. */
28060 /* Override any GCC internal prototype to avoid an error.
28061 Use char because int might match the return type of a GCC
28062 builtin and then its argument prototype would still apply. */
28075 for ac_lib
in '' dl
; do
28076 if test -z "$ac_lib"; then
28077 ac_res
="none required"
28080 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28082 if ac_fn_c_try_link
"$LINENO"; then :
28083 ac_cv_search_dlopen
=$ac_res
28085 rm -f core conftest.err conftest.
$ac_objext \
28087 if test "${ac_cv_search_dlopen+set}" = set; then :
28091 if test "${ac_cv_search_dlopen+set}" = set; then :
28094 ac_cv_search_dlopen
=no
28096 rm conftest.
$ac_ext
28097 LIBS
=$ac_func_search_save_LIBS
28099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28100 $as_echo "$ac_cv_search_dlopen" >&6; }
28101 ac_res
=$ac_cv_search_dlopen
28102 if test "$ac_res" != no
; then :
28103 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28107 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
28108 pluginlibs
="$pluginlibs -ldl"
28112 # Check that we can build shared objects with -fPIC -shared
28113 saved_LDFLAGS
="$LDFLAGS"
28114 saved_CFLAGS
="$CFLAGS"
28117 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28118 CFLAGS
="$CFLAGS -fPIC"
28119 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
28122 CFLAGS
="$CFLAGS -fPIC"
28123 LDFLAGS
="$LDFLAGS -fPIC -shared"
28126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28127 $as_echo_n "checking for -fPIC -shared... " >&6; }
28128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28129 /* end confdefs.h. */
28139 if ac_fn_c_try_link
"$LINENO"; then :
28140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28141 $as_echo "yes" >&6; }; have_pic_shared
=yes
28143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28144 $as_echo "no" >&6; }; have_pic_shared
=no
28146 rm -f core conftest.err conftest.
$ac_objext \
28147 conftest
$ac_exeext conftest.
$ac_ext
28148 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
28152 LDFLAGS
="$saved_LDFLAGS"
28153 CFLAGS
="$saved_CFLAGS"
28155 # If plugin support had been requested but not available, fail.
28156 if test x
"$enable_plugin" = x
"no" ; then
28157 if test x
"$default_plugin" != x
"yes"; then
28159 Building GCC with plugin support requires a host that supports
28160 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28167 if test x
"$enable_plugin" = x
"yes"; then
28169 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28174 # Enable --enable-host-shared
28175 # Check whether --enable-host-shared was given.
28176 if test "${enable_host_shared+set}" = set; then :
28177 enableval
=$enable_host_shared; PICFLAG
=-fPIC
28186 # Check whether --enable-libquadmath-support was given.
28187 if test "${enable_libquadmath_support+set}" = set; then :
28188 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
28190 ENABLE_LIBQUADMATH_SUPPORT
=yes
28193 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28195 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28200 # Specify what hash style to use by default.
28202 # Check whether --with-linker-hash-style was given.
28203 if test "${with_linker_hash_style+set}" = set; then :
28204 withval
=$with_linker_hash_style; case x
"$withval" in
28206 LINKER_HASH_STYLE
=sysv
28209 LINKER_HASH_STYLE
=gnu
28212 LINKER_HASH_STYLE
=both
28215 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28219 LINKER_HASH_STYLE
=''
28222 if test x
"${LINKER_HASH_STYLE}" != x
; then
28224 cat >>confdefs.h
<<_ACEOF
28225 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28230 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28231 # of jit/jit-playback.c.
28232 cat > gcc-driver-name.h
<<EOF
28233 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28236 # Configure the subdirectories
28237 # AC_CONFIG_SUBDIRS($subdirs)
28239 # Create the Makefile
28240 # and configure language subdirectories
28241 ac_config_files
="$ac_config_files $all_outputs"
28244 ac_config_commands
="$ac_config_commands default"
28246 cat >confcache
<<\_ACEOF
28247 # This file is a shell script that caches the results of configure
28248 # tests run on this system so they can be shared between configure
28249 # scripts and configure runs, see configure's option --config-cache.
28250 # It is not useful on other systems. If it contains results you don't
28251 # want to keep, you may remove or edit it.
28253 # config.status only pays attention to the cache file if you give it
28254 # the --recheck option to rerun configure.
28256 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28257 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28258 # following values.
28262 # The following way of writing the cache mishandles newlines in values,
28263 # but we know of no workaround that is simple, portable, and efficient.
28264 # So, we kill variables containing newlines.
28265 # Ultrix sh set writes to stderr and can't be redirected directly,
28266 # and sets the high bit in the cache file unless we assign to the vars.
28268 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28269 eval ac_val
=\$
$ac_var
28273 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28274 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28277 _ | IFS | as_nl
) ;; #(
28278 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
28279 *) { eval $ac_var=; unset $ac_var;} ;;
28285 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28286 *${as_nl}ac_space
=\
*)
28287 # `set' does not quote correctly, so add quotes: double-quote
28288 # substitution turns \\\\ into \\, and sed turns \\ into \.
28291 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28294 # `set' quotes correctly as required by POSIX, so do not add quotes.
28295 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28304 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28306 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28308 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
28309 if test -w "$cache_file"; then
28310 test "x$cache_file" != "x/dev/null" &&
28311 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28312 $as_echo "$as_me: updating cache $cache_file" >&6;}
28313 cat confcache
>$cache_file
28315 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28316 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28321 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
28322 # Let make expand exec_prefix.
28323 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
28325 DEFS
=-DHAVE_CONFIG_H
28329 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
28330 # 1. Remove the extension, and $U if already installed.
28331 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
28332 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
28333 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28334 # will be set to the directory where LIBOBJS objects are built.
28335 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28336 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
28338 LIBOBJS
=$ac_libobjs
28340 LTLIBOBJS
=$ac_ltlibobjs
28345 : ${CONFIG_STATUS=./config.status}
28347 ac_clean_files_save
=$ac_clean_files
28348 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
28349 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28350 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28352 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28354 # Generated by $as_me.
28355 # Run this file to recreate the current configuration.
28356 # Compiler output produced by configure, useful for debugging
28357 # configure, is in config.log if it exists.
28360 ac_cs_recheck=false
28363 SHELL=\${CONFIG_SHELL-$SHELL}
28366 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
28367 ## -------------------- ##
28368 ## M4sh Initialization. ##
28369 ## -------------------- ##
28371 # Be more Bourne compatible
28372 DUALCASE
=1; export DUALCASE
# for MKS sh
28373 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
28376 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28377 # is contrary to our usage. Disable this feature.
28378 alias -g '${1+"$@"}'='"$@"'
28379 setopt NO_GLOB_SUBST
28381 case `(set -o) 2>/dev/null` in #(
28393 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28394 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28395 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28396 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28397 # Prefer a ksh shell builtin over an external printf program on Solaris,
28398 # but without wasting forks for bash or zsh.
28399 if test -z "$BASH_VERSION$ZSH_VERSION" \
28400 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28401 as_echo='print
-r --'
28402 as_echo_n='print
-rn --'
28403 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28404 as_echo='printf %s
\n'
28405 as_echo_n='printf %s
'
28407 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28408 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
28409 as_echo_n='/usr
/ucb
/echo -n'
28411 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28412 as_echo_n_body='eval
28416 expr "X$arg" : "X\\(.*\\)$as_nl";
28417 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28419 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
28421 export as_echo_n_body
28422 as_echo_n='sh
-c $as_echo_n_body as_echo
'
28424 export as_echo_body
28425 as_echo='sh
-c $as_echo_body as_echo
'
28428 # The user is always right.
28429 if test "${PATH_SEPARATOR+set}" != set; then
28431 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28432 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28439 # We need space, tab and new line, in precisely that order. Quoting is
28440 # there to prevent editors from complaining about space-tab.
28441 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28442 # splitting by setting IFS to empty value.)
28445 # Find who we are. Look in the path if we contain no directory separator.
28447 *[\\/]* ) as_myself=$0 ;;
28448 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28449 for as_dir in $PATH
28452 test -z "$as_dir" && as_dir=.
28453 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28459 # We did not find ourselves, most probably we were run as `sh COMMAND'
28460 # in which case we are not to be found in the path.
28461 if test "x$as_myself" = x
; then
28464 if test ! -f "$as_myself"; then
28465 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28469 # Unset variables that we do not need and which cause bugs (e.g. in
28470 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28471 # suppresses any "Segmentation fault" message there. '((' could
28472 # trigger a bug in pdksh 5.2.14.
28473 for as_var
in BASH_ENV ENV MAIL MAILPATH
28474 do eval test x\
${$as_var+set} = xset \
28475 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
28488 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
28491 # as_fn_error ERROR [LINENO LOG_FD]
28492 # ---------------------------------
28493 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28494 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28495 # script with status $?, using 1 if that was 0.
28498 as_status
=$?
; test $as_status -eq 0 && as_status
=1
28500 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
28501 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28503 $as_echo "$as_me: error: $1" >&2
28504 as_fn_exit
$as_status
28508 # as_fn_set_status STATUS
28509 # -----------------------
28510 # Set $? to STATUS, without forking.
28511 as_fn_set_status
()
28514 } # as_fn_set_status
28516 # as_fn_exit STATUS
28517 # -----------------
28518 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28522 as_fn_set_status
$1
28528 # Portably unset VAR.
28531 { eval $1=; unset $1;}
28533 as_unset
=as_fn_unset
28534 # as_fn_append VAR VALUE
28535 # ----------------------
28536 # Append the text in VALUE to the end of the definition contained in VAR. Take
28537 # advantage of any shell optimizations that allow amortized linear growth over
28538 # repeated appends, instead of the typical quadratic growth present in naive
28540 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
28541 eval 'as_fn_append ()
28552 # as_fn_arith ARG...
28553 # ------------------
28554 # Perform arithmetic evaluation on the ARGs, and store the result in the
28555 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28556 # must be portable across $(()) and expr.
28557 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
28558 eval 'as_fn_arith ()
28565 as_val
=`expr "$@" || test $? -eq 1`
28570 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28571 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28577 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28578 as_basename
=basename
28583 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
28589 as_me
=`$as_basename -- "$0" ||
28590 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28591 X"$0" : 'X\(//\)$' \| \
28592 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28594 sed '/^.*\/\([^/][^/]*\)\/*$/{
28608 # Avoid depending upon Character Ranges.
28609 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28610 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28611 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28612 as_cr_digits
='0123456789'
28613 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28615 ECHO_C
= ECHO_N
= ECHO_T
=
28616 case `echo -n x` in #(((((
28618 case `echo 'xy\c'` in
28619 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28621 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
28628 rm -f conf$$ conf$$.exe conf$$.
file
28629 if test -d conf$$.dir
; then
28630 rm -f conf$$.dir
/conf$$.
file
28633 mkdir conf$$.dir
2>/dev
/null
28635 if (echo >conf$$.
file) 2>/dev
/null
; then
28636 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28638 # ... but there are two gotchas:
28639 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28640 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28641 # In both cases, we have to default to `cp -p'.
28642 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28644 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28652 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28653 rmdir conf$$.dir
2>/dev
/null
28658 # Create "$as_dir" as a directory, including parents if necessary.
28663 -*) as_dir
=.
/$as_dir;;
28665 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28669 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28670 *) as_qdir
=$as_dir;;
28672 as_dirs
="'$as_qdir' $as_dirs"
28673 as_dir
=`$as_dirname -- "$as_dir" ||
28674 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28675 X"$as_dir" : 'X\(//\)[^/]' \| \
28676 X"$as_dir" : 'X\(//\)$' \| \
28677 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28678 $as_echo X"$as_dir" |
28679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28683 /^X\(\/\/\)[^/].*/{
28696 test -d "$as_dir" && break
28698 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28699 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
28703 if mkdir
-p .
2>/dev
/null
; then
28704 as_mkdir_p
='mkdir -p "$as_dir"'
28706 test -d .
/-p && rmdir .
/-p
28710 if test -x / >/dev
/null
2>&1; then
28711 as_test_x
='test -x'
28713 if ls -dL / >/dev
/null
2>&1; then
28720 if test -d "$1"; then
28726 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28727 ???[sx]*):;;*)false;;esac;fi
28731 as_executable_p
=$as_test_x
28733 # Sed expression to map a string onto a valid CPP name.
28734 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28736 # Sed expression to map a string onto a valid variable name.
28737 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28741 ## ----------------------------------- ##
28742 ## Main body of $CONFIG_STATUS script. ##
28743 ## ----------------------------------- ##
28745 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28748 # Save the log message, to keep $0 and so on meaningful, and to
28749 # report actual input values of CONFIG_FILES etc. instead of their
28750 # values after options handling.
28752 This file was extended by $as_me, which was
28753 generated by GNU Autoconf 2.64. Invocation command line was
28755 CONFIG_FILES = $CONFIG_FILES
28756 CONFIG_HEADERS = $CONFIG_HEADERS
28757 CONFIG_LINKS = $CONFIG_LINKS
28758 CONFIG_COMMANDS = $CONFIG_COMMANDS
28761 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28766 case $ac_config_files in *"
28767 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28770 case $ac_config_headers in *"
28771 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28776 # Files that config.status was made for.
28777 config_files="$ac_config_files"
28778 config_headers="$ac_config_headers"
28779 config_links="$ac_config_links"
28780 config_commands="$ac_config_commands"
28784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28786 \`$as_me' instantiates files and other configuration actions
28787 from templates according to the current configuration. Unless the files
28788 and actions are specified as TAGs, all are instantiated by default.
28790 Usage: $0 [OPTION]... [TAG]...
28792 -h, --help print this help, then exit
28793 -V, --version print version number and configuration settings, then exit
28794 -q, --quiet, --silent
28795 do not print progress messages
28796 -d, --debug don't remove temporary files
28797 --recheck update $as_me by reconfiguring in the same conditions
28798 --file=FILE[:TEMPLATE]
28799 instantiate the configuration file FILE
28800 --header=FILE[:TEMPLATE]
28801 instantiate the configuration header FILE
28803 Configuration files:
28806 Configuration headers:
28809 Configuration links:
28812 Configuration commands:
28815 Report bugs to the package provider."
28818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28821 configured by $0, generated by GNU Autoconf 2.64,
28822 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28824 Copyright (C) 2009 Free Software Foundation, Inc.
28825 This config.status script is free software; the Free Software Foundation
28826 gives unlimited permission to copy, distribute and modify it."
28831 test -n "\$AWK" || AWK=awk
28834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28835 # The default lists apply if the user does not specify any file.
28841 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28842 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28853 # Handling of the options.
28854 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28856 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28857 $as_echo "$ac_cs_version"; exit ;;
28858 --debug |
--debu |
--deb |
--de |
--d |
-d )
28860 --file |
--fil |
--fi |
--f )
28863 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28865 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28866 ac_need_defaults
=false
;;
28867 --header |
--heade |
--head |
--hea )
28870 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28872 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28873 ac_need_defaults
=false
;;
28875 # Conflict between --help and --header
28876 as_fn_error
"ambiguous option: \`$1'
28877 Try \`$0 --help' for more information.";;
28878 --help |
--hel |
-h )
28879 $as_echo "$ac_cs_usage"; exit ;;
28880 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28881 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28884 # This is an error.
28885 -*) as_fn_error
"unrecognized option: \`$1'
28886 Try \`$0 --help' for more information." ;;
28888 *) as_fn_append ac_config_targets
" $1"
28889 ac_need_defaults
=false
;;
28895 ac_configure_extra_args
=
28897 if $ac_cs_silent; then
28899 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28904 if \$ac_cs_recheck; then
28905 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28907 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28908 CONFIG_SHELL='$SHELL'
28909 export CONFIG_SHELL
28914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28918 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28919 ## Running $as_me. ##
28925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28929 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28930 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28937 # Handling of arguments.
28938 for ac_config_target
in $ac_config_targets
28940 case $ac_config_target in
28941 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28942 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
28943 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
28944 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28945 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28946 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28947 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
28948 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28949 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28951 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28956 # If the user did not use the arguments to specify the items to instantiate,
28957 # then the envvar interface is used. Set only those that are not.
28958 # We use the long form for the default assignment because of an extremely
28959 # bizarre bug on SunOS 4.1.3.
28960 if $ac_need_defaults; then
28961 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28962 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28963 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
28964 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28967 # Have a temporary directory for convenience. Make it in the build tree
28968 # simply because there is no reason against having it here, and in addition,
28969 # creating and moving files from /tmp can sometimes cause problems.
28970 # Hook for its removal unless debugging.
28971 # Note that there is a small window in which the directory will not be cleaned:
28972 # after its creation but before its name has been assigned to `$tmp'.
28976 trap 'exit_status=$?
28977 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28979 trap 'as_fn_exit 1' 1 2 13 15
28981 # Create a (secure) tmp directory for tmp files.
28984 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28985 test -n "$tmp" && test -d "$tmp"
28988 tmp
=.
/conf$$
-$RANDOM
28989 (umask 077 && mkdir
"$tmp")
28990 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28992 # Set up the scripts for CONFIG_FILES section.
28993 # No need to generate them if there are no CONFIG_FILES.
28994 # This happens for instance with `./config.status config.h'.
28995 if test -n "$CONFIG_FILES"; then
28997 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28998 ac_cs_awk_getline
=:
28999 ac_cs_awk_pipe_init
=
29000 ac_cs_awk_read_file
='
29001 while ((getline aline < (F[key])) > 0)
29004 ac_cs_awk_pipe_fini
=
29006 ac_cs_awk_getline
=false
29007 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
29008 ac_cs_awk_read_file
='
29010 print "cat " F[key] " &&"
29011 '$ac_cs_awk_pipe_init
29012 # The final `:' finishes the AND list.
29013 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
29015 ac_cr
=`echo X | tr X '\015'`
29016 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29017 # But we know of no other shell where ac_cr would be empty at this
29018 # point, so we can use a bashism as a fallback.
29019 if test "x$ac_cr" = x
; then
29020 eval ac_cr
=\$
\'\\r
\'
29022 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29023 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29026 ac_cs_awk_cr
=$ac_cr
29029 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29032 # Create commands to substitute file output variables.
29034 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29035 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29036 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
29039 } >conf$
$files.sh
&&
29040 . .
/conf$
$files.sh ||
29041 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
29042 rm -f conf$
$files.sh
29045 echo "cat >conf$$subs.awk <<_ACEOF" &&
29046 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29048 } >conf$$subs.sh ||
29049 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29050 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29052 for ac_last_try in false false false false false :; do
29053 . ./conf$$subs.sh ||
29054 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29056 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
29057 if test $ac_delim_n = $ac_delim_num; then
29059 elif $ac_last_try; then
29060 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29062 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29065 rm -f conf$$subs.sh
29067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29068 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
29072 s/^/S["/; s
/!.
*/"]=/
29082 s/\(.\{148\}\).*/\1/
29084 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
29089 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29096 s/\(.\{148\}\).*/\1/
29098 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
29102 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29107 ' <conf$$subs.awk | sed '
29112 ' >>$CONFIG_STATUS || ac_write_fail=1
29113 rm -f conf$$subs.awk
29114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29116 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
29117 for (key in S) S_is_set[key] = 1
29119 \$ac_cs_awk_pipe_init
29123 nfields = split(line, field, "@
")
29125 len = length(field[1])
29126 for (i = 2; i < nfields; i++) {
29128 keylen = length(key)
29129 if (S_is_set[key]) {
29131 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29132 len += length(value) + length(field[++i])
29137 if (nfields == 3 && !substed) {
29139 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29140 \$ac_cs_awk_read_file
29146 \$ac_cs_awk_pipe_fini
29149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29150 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29151 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
29154 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
29155 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
29158 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29159 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
29160 # trailing colons and then remove the whole line if VPATH becomes empty
29161 # (actually we leave an empty line to preserve line numbers).
29162 if test "x
$srcdir" = x.; then
29163 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29164 s/:*\$(srcdir):*/:/
29165 s/:*\${srcdir}:*/:/
29167 s/^\([^=]*=[ ]*\):*/\1/
29173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29174 fi # test -n "$CONFIG_FILES"
29176 # Set up the scripts for CONFIG_HEADERS section.
29177 # No need to generate them if there are no CONFIG_HEADERS.
29178 # This happens for instance with `./config.status Makefile'.
29179 if test -n "$CONFIG_HEADERS"; then
29180 cat >"$tmp/defines.
awk" <<\_ACAWK ||
29184 # Transform confdefs.h into an awk script `defines.awk', embedded as
29185 # here-document in config.status, that substitutes the proper values into
29186 # config.h.in to produce config.h.
29188 # Create a delimiter string that does not exist in confdefs.h, to ease
29189 # handling of long lines.
29191 for ac_last_try in false false :; do
29192 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
29193 if test -z "$ac_t"; then
29195 elif $ac_last_try; then
29196 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
29198 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29202 # For the awk script, D is an array of macro values keyed by name,
29203 # likewise P contains macro parameters if any. Preserve backslash
29204 # newline sequences.
29206 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29208 s/.\{148\}/&'"$ac_delim"'/g
29211 s/^[ ]*#[ ]*define[ ][ ]*/ /
29218 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
29220 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
29224 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
29225 D["\
1"]=" \
3\\\\\\n
"\\/p
29227 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
29232 s/.\{148\}/&'"$ac_delim"'/g
29237 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
29240 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
29242 ' <confdefs.h | sed '
29243 s/'"$ac_delim"'/"\\\
29244 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29247 for (key in D) D_is_set[key] = 1
29250 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29252 split(line, arg, " ")
29253 if (arg[1] == "#") {
29257 defundef
= substr
(arg
[1], 2)
29260 split(mac1
, mac2
, "(") #)
29262 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
29263 if (D_is_set
[macro
]) {
29264 # Preserve the white space surrounding the "#".
29265 print prefix
"define", macro P
[macro
] D
[macro
]
29268 # Replace #undef with comments. This is necessary, for example,
29269 # in the case of _POSIX_SOURCE, which is predefined and required
29270 # on some systems where configure will not decide to define it.
29271 if (defundef
== "undef") {
29272 print
"/*", prefix defundef
, macro
, "*/"
29280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29281 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
29282 fi # test -n "$CONFIG_HEADERS"
29285 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29290 :[FHLC
]) ac_mode
=$ac_tag; continue;;
29292 case $ac_mode$ac_tag in
29294 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
29295 :[FH
]-) ac_tag
=-:-;;
29296 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
29313 -) ac_f
="$tmp/stdin";;
29314 *) # Look for the file first in the build tree, then in the source tree
29315 # (if the path is not absolute). The absolute path cannot be DOS-style,
29316 # because $ac_f cannot contain `:'.
29320 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
29322 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
29324 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29325 as_fn_append ac_file_inputs
" '$ac_f'"
29328 # Let's still pretend it is `configure' which instantiates (i.e., don't
29329 # use $as_me), people would be surprised to read:
29330 # /* config.h. Generated by config.status. */
29331 configure_input
='Generated from '`
29332 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29334 if test x
"$ac_file" != x-
; then
29335 configure_input
="$ac_file. $configure_input"
29336 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29337 $as_echo "$as_me: creating $ac_file" >&6;}
29339 # Neutralize special characters interpreted by sed in replacement strings.
29340 case $configure_input in #(
29341 *\
&* |
*\|
* |
*\\* )
29342 ac_sed_conf_input
=`$as_echo "$configure_input" |
29343 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29344 *) ac_sed_conf_input
=$configure_input;;
29348 *:-:* |
*:-) cat >"$tmp/stdin" \
29349 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
29354 ac_dir
=`$as_dirname -- "$ac_file" ||
29355 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29356 X"$ac_file" : 'X\(//\)[^/]' \| \
29357 X"$ac_file" : 'X\(//\)$' \| \
29358 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29359 $as_echo X"$ac_file" |
29360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29364 /^X\(\/\/\)[^/].*/{
29377 as_dir
="$ac_dir"; as_fn_mkdir_p
29381 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29383 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29384 # A ".." for each directory in $ac_dir_suffix.
29385 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29386 case $ac_top_builddir_sub in
29387 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29388 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
29391 ac_abs_top_builddir
=$ac_pwd
29392 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
29393 # for backward compatibility:
29394 ac_top_builddir
=$ac_top_build_prefix
29397 .
) # We are building in place.
29399 ac_top_srcdir
=$ac_top_builddir_sub
29400 ac_abs_top_srcdir
=$ac_pwd ;;
29401 [\\/]* | ?
:[\\/]* ) # Absolute name.
29402 ac_srcdir
=$srcdir$ac_dir_suffix;
29403 ac_top_srcdir
=$srcdir
29404 ac_abs_top_srcdir
=$srcdir ;;
29405 *) # Relative name.
29406 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
29407 ac_top_srcdir
=$ac_top_build_prefix$srcdir
29408 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
29410 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
29421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29422 # If the template does not know about datarootdir, expand it.
29423 # FIXME: This hack should be removed a few years after 2.60.
29424 ac_datarootdir_hack
=; ac_datarootdir_seen
=
29435 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29436 *datarootdir
*) ac_datarootdir_seen
=yes;;
29437 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
29438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29439 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29442 ac_datarootdir_hack='
29443 s&@datadir@&$datadir&g
29444 s&@docdir@&$docdir&g
29445 s&@infodir@&$infodir&g
29446 s&@localedir@&$localedir&g
29447 s&@mandir@&$mandir&g
29448 s&\\\${datarootdir}&$datarootdir&g' ;;
29452 # Neutralize VPATH when `$srcdir' = `.'.
29453 # Shell code in configure.ac might set extrasub.
29454 # FIXME: do we really want to maintain this feature?
29455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29456 ac_sed_extra="$ac_vpsub
29459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29461 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
29462 s|@configure_input@|
$ac_sed_conf_input|
;t t
29463 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
29464 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
29465 s
&@srcdir@
&$ac_srcdir&;t t
29466 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
29467 s
&@top_srcdir@
&$ac_top_srcdir&;t t
29468 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
29469 s
&@builddir@
&$ac_builddir&;t t
29470 s
&@abs_builddir@
&$ac_abs_builddir&;t t
29471 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
29472 $ac_datarootdir_hack
29474 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29475 if $ac_cs_awk_getline; then
29476 $AWK -f "$tmp/subs.
awk"
29478 $AWK -f "$tmp/subs.
awk" | $SHELL
29480 || as_fn_error "could not create
$ac_file" "$LINENO" 5
29482 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29483 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
29484 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
29485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
29486 which seems to be undefined. Please make sure it is defined." >&5
29487 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
29488 which seems to be undefined. Please make sure it is defined." >&2;}
29492 -) cat "$tmp/out" && rm -f "$tmp/out";;
29493 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29495 || as_fn_error "could not create $ac_file" "$LINENO" 5
29501 if test x"$ac_file" != x-; then
29503 $as_echo "/* $configure_input */" \
29504 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29505 } >"$tmp/config.h" \
29506 || as_fn_error "could not create $ac_file" "$LINENO" 5
29507 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29508 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29509 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29512 mv "$tmp/config.h" "$ac_file" \
29513 || as_fn_error "could not create $ac_file" "$LINENO" 5
29516 $as_echo "/* $configure_input */" \
29517 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29518 || as_fn_error "could not create -" "$LINENO" 5
29526 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
29529 # Prefer the file from the source tree if names are identical.
29530 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29531 ac_source=$srcdir/$ac_source
29534 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29535 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29537 if test ! -r "$ac_source"; then
29538 as_fn_error "$ac_source: file not found" "$LINENO" 5
29542 # Try a relative symlink, then a hard link, then a copy.
29544 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29545 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29547 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29548 ln "$ac_source" "$ac_file" 2>/dev/null ||
29549 cp -p "$ac_source" "$ac_file" ||
29550 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29553 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29554 $as_echo "$as_me: executing $ac_file commands" >&6;}
29559 case $ac_file$ac_mode in
29560 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29562 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29563 for lang in $subdirs c-family common
29565 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29567 "as":F) chmod +x as ;;
29568 "collect-ld":F) chmod +x collect-ld ;;
29569 "nm":F) chmod +x nm ;;
29571 case ${CONFIG_HEADERS} in
29572 *auto-host.h:config.in*)
29575 # Make sure all the subdirs exist.
29576 for d in $subdirs doc build common c-family
29578 test -d $d || mkdir $d
29588 ac_clean_files=$ac_clean_files_save
29590 test $ac_write_fail = 0 ||
29591 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29594 # configure is writing to config.log, and then calls config.status.
29595 # config.status does its own redirection, appending to config.log.
29596 # Unfortunately, on DOS this fails, as config.log is still kept open
29597 # by configure, so config.status won't be able to
write to it
; its
29598 # output is simply discarded. So we exec the FD to /dev/null,
29599 # effectively closing config.log, so it can be properly (re)opened and
29600 # appended to by config.status. When coming back to configure, we
29601 # need to make the FD available again.
29602 if test "$no_create" != yes; then
29604 ac_config_status_args
=
29605 test "$silent" = yes &&
29606 ac_config_status_args
="$ac_config_status_args --quiet"
29608 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
29610 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29611 # would make configure fail if this is the last instruction.
29612 $ac_cs_success || as_fn_exit $?
29614 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
29615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29616 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}