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
612 real_target_noncanonical
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
765 enable_as_accelerator
770 CROSS_SYSTEM_HEADER_DIR
771 TARGET_SYSTEM_ROOT_DEFINE
773 SYSROOT_CFLAGS_FOR_TARGET
783 valgrind_path_defines
856 program_transform_name
867 ac_subst_files
='option_includes
870 enable_option_checking
875 enable_generated_files_in_srcdir
882 enable_build_format_warnings
886 enable_gather_detailed_mem_stats
887 enable_valgrind_annotations
899 with_native_system_header_dir
906 enable_as_accelerator_for
907 enable_offload_targets
911 enable_sjlj_exceptions
913 enable_leading_mingw64_underscores
916 enable_win32_registry
924 enable_gnu_indirect_function
925 enable_initfini_array
927 enable_fix_cortex_a53_835769
929 enable_gnu_unique_object
930 enable_linker_build_id
934 enable_maintainer_mode
936 enable_version_specific_runtime_libs
939 enable_libquadmath_support
940 with_linker_hash_style
942 ac_precious_vars
='build_alias
961 # Initialize some variables set by options.
963 ac_init_version
=false
964 ac_unrecognized_opts
=
966 # The variables have the same names as the options, with
967 # dashes changed to underlines.
975 program_transform_name
=s
,x
,x
,
983 # Installation directory options.
984 # These are left unexpanded so users can "make install exec_prefix=/foo"
985 # and all the variables that are supposed to be based on exec_prefix
986 # by default will actually change.
987 # Use braces instead of parens because sh, perl, etc. also accept them.
988 # (The list follows the same order as the GNU Coding Standards.)
989 bindir
='${exec_prefix}/bin'
990 sbindir
='${exec_prefix}/sbin'
991 libexecdir
='${exec_prefix}/libexec'
992 datarootdir
='${prefix}/share'
993 datadir
='${datarootdir}'
994 sysconfdir
='${prefix}/etc'
995 sharedstatedir
='${prefix}/com'
996 localstatedir
='${prefix}/var'
997 includedir
='${prefix}/include'
998 oldincludedir
='/usr/include'
999 docdir
='${datarootdir}/doc/${PACKAGE}'
1000 infodir
='${datarootdir}/info'
1005 libdir
='${exec_prefix}/lib'
1006 localedir
='${datarootdir}/locale'
1007 mandir
='${datarootdir}/man'
1013 # If the previous option needs an argument, assign it.
1014 if test -n "$ac_prev"; then
1015 eval $ac_prev=\
$ac_option
1021 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025 # Accept the important Cygnus configure options, so we can diagnose typos.
1027 case $ac_dashdash$ac_option in
1031 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1033 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1034 bindir
=$ac_optarg ;;
1036 -build |
--build |
--buil |
--bui |
--bu)
1037 ac_prev
=build_alias
;;
1038 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1039 build_alias
=$ac_optarg ;;
1041 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1042 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1043 ac_prev
=cache_file
;;
1044 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1045 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1046 cache_file
=$ac_optarg ;;
1048 --config-cache |
-C)
1049 cache_file
=config.cache
;;
1051 -datadir |
--datadir |
--datadi |
--datad)
1053 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1054 datadir
=$ac_optarg ;;
1056 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1057 |
--dataroo |
--dataro |
--datar)
1058 ac_prev
=datarootdir
;;
1059 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1060 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1061 datarootdir
=$ac_optarg ;;
1063 -disable-* |
--disable-*)
1064 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1067 as_fn_error
"invalid feature name: $ac_useropt"
1068 ac_useropt_orig
=$ac_useropt
1069 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1072 "enable_
$ac_useropt"
1074 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1075 ac_unrecognized_sep
=', ';;
1077 eval enable_
$ac_useropt=no
;;
1079 -docdir |
--docdir |
--docdi |
--doc |
--do)
1081 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1082 docdir
=$ac_optarg ;;
1084 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1086 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1087 dvidir
=$ac_optarg ;;
1089 -enable-* |
--enable-*)
1090 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1093 as_fn_error
"invalid feature name: $ac_useropt"
1094 ac_useropt_orig
=$ac_useropt
1095 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1098 "enable_
$ac_useropt"
1100 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1101 ac_unrecognized_sep
=', ';;
1103 eval enable_
$ac_useropt=\
$ac_optarg ;;
1105 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1106 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1107 |
--exec |
--exe |
--ex)
1108 ac_prev
=exec_prefix
;;
1109 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1110 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1111 |
--exec=* |
--exe=* |
--ex=*)
1112 exec_prefix
=$ac_optarg ;;
1114 -gas |
--gas |
--ga |
--g)
1115 # Obsolete; use --with-gas.
1118 -help |
--help |
--hel |
--he |
-h)
1119 ac_init_help
=long
;;
1120 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1121 ac_init_help
=recursive
;;
1122 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1123 ac_init_help
=short
;;
1125 -host |
--host |
--hos |
--ho)
1126 ac_prev
=host_alias
;;
1127 -host=* |
--host=* |
--hos=* |
--ho=*)
1128 host_alias
=$ac_optarg ;;
1130 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1132 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1134 htmldir
=$ac_optarg ;;
1136 -includedir |
--includedir |
--includedi |
--included |
--include \
1137 |
--includ |
--inclu |
--incl |
--inc)
1138 ac_prev
=includedir
;;
1139 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1140 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1141 includedir
=$ac_optarg ;;
1143 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1145 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1146 infodir
=$ac_optarg ;;
1148 -libdir |
--libdir |
--libdi |
--libd)
1150 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1151 libdir
=$ac_optarg ;;
1153 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1154 |
--libexe |
--libex |
--libe)
1155 ac_prev
=libexecdir
;;
1156 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1157 |
--libexe=* |
--libex=* |
--libe=*)
1158 libexecdir
=$ac_optarg ;;
1160 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1161 ac_prev
=localedir
;;
1162 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1163 localedir
=$ac_optarg ;;
1165 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1166 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1167 ac_prev
=localstatedir
;;
1168 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1169 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1170 localstatedir
=$ac_optarg ;;
1172 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1174 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1175 mandir
=$ac_optarg ;;
1177 -nfp |
--nfp |
--nf)
1178 # Obsolete; use --without-fp.
1181 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1182 |
--no-cr |
--no-c |
-n)
1185 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1186 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1189 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1190 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1191 |
--oldin |
--oldi |
--old |
--ol |
--o)
1192 ac_prev
=oldincludedir
;;
1193 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1194 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1195 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1196 oldincludedir
=$ac_optarg ;;
1198 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1200 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1201 prefix
=$ac_optarg ;;
1203 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1204 |
--program-pre |
--program-pr |
--program-p)
1205 ac_prev
=program_prefix
;;
1206 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1207 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1208 program_prefix
=$ac_optarg ;;
1210 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1211 |
--program-suf |
--program-su |
--program-s)
1212 ac_prev
=program_suffix
;;
1213 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1214 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1215 program_suffix
=$ac_optarg ;;
1217 -program-transform-name |
--program-transform-name \
1218 |
--program-transform-nam |
--program-transform-na \
1219 |
--program-transform-n |
--program-transform- \
1220 |
--program-transform |
--program-transfor \
1221 |
--program-transfo |
--program-transf \
1222 |
--program-trans |
--program-tran \
1223 |
--progr-tra |
--program-tr |
--program-t)
1224 ac_prev
=program_transform_name
;;
1225 -program-transform-name=* |
--program-transform-name=* \
1226 |
--program-transform-nam=* |
--program-transform-na=* \
1227 |
--program-transform-n=* |
--program-transform-=* \
1228 |
--program-transform=* |
--program-transfor=* \
1229 |
--program-transfo=* |
--program-transf=* \
1230 |
--program-trans=* |
--program-tran=* \
1231 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1232 program_transform_name
=$ac_optarg ;;
1234 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1236 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1237 pdfdir
=$ac_optarg ;;
1239 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1241 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1244 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1245 |
-silent |
--silent |
--silen |
--sile |
--sil)
1248 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1250 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1252 sbindir
=$ac_optarg ;;
1254 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1255 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1256 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1258 ac_prev
=sharedstatedir
;;
1259 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1260 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1261 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1263 sharedstatedir
=$ac_optarg ;;
1265 -site |
--site |
--sit)
1267 -site=* |
--site=* |
--sit=*)
1270 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1272 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1273 srcdir
=$ac_optarg ;;
1275 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1276 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1277 ac_prev
=sysconfdir
;;
1278 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1279 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1280 sysconfdir
=$ac_optarg ;;
1282 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1283 ac_prev
=target_alias
;;
1284 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1285 target_alias
=$ac_optarg ;;
1287 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1290 -version |
--version |
--versio |
--versi |
--vers |
-V)
1291 ac_init_version
=: ;;
1294 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1297 as_fn_error
"invalid package name: $ac_useropt"
1298 ac_useropt_orig
=$ac_useropt
1299 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1304 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1305 ac_unrecognized_sep
=', ';;
1307 eval with_
$ac_useropt=\
$ac_optarg ;;
1309 -without-* |
--without-*)
1310 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1313 as_fn_error
"invalid package name: $ac_useropt"
1314 ac_useropt_orig
=$ac_useropt
1315 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316 case $ac_user_opts in
1320 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1321 ac_unrecognized_sep
=', ';;
1323 eval with_
$ac_useropt=no
;;
1326 # Obsolete; use --with-x.
1329 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1330 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1331 ac_prev
=x_includes
;;
1332 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1333 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1334 x_includes
=$ac_optarg ;;
1336 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1337 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1338 ac_prev
=x_libraries
;;
1339 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1340 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1341 x_libraries
=$ac_optarg ;;
1343 -*) as_fn_error
"unrecognized option: \`$ac_option'
1344 Try \`$0 --help' for more information."
1348 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1349 # Reject names that are not valid shell variable names.
1350 case $ac_envvar in #(
1351 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1352 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1354 eval $ac_envvar=\
$ac_optarg
1355 export $ac_envvar ;;
1358 # FIXME: should be removed in autoconf 3.0.
1359 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1360 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1361 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1362 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1368 if test -n "$ac_prev"; then
1369 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1370 as_fn_error
"missing argument to $ac_option"
1373 if test -n "$ac_unrecognized_opts"; then
1374 case $enable_option_checking in
1376 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1377 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1381 # Check all directory arguments for consistency.
1382 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1383 datadir sysconfdir sharedstatedir localstatedir includedir \
1384 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1385 libdir localedir mandir
1387 eval ac_val
=\$
$ac_var
1388 # Remove trailing slashes.
1391 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1392 eval $ac_var=\
$ac_val;;
1394 # Be sure to have absolute directory names.
1396 [\\/$
]* | ?
:[\\/]* ) continue;;
1397 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1399 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1402 # There might be people who depend on the old broken behavior: `$host'
1403 # used to hold the argument of --host etc.
1404 # FIXME: To remove some day.
1407 target
=$target_alias
1409 # FIXME: To remove some day.
1410 if test "x$host_alias" != x
; then
1411 if test "x$build_alias" = x
; then
1412 cross_compiling
=maybe
1413 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1414 If a cross compiler is detected then cross compile mode will be used." >&2
1415 elif test "x$build_alias" != "x$host_alias"; then
1421 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1423 test "$silent" = yes && exec 6>/dev
/null
1426 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1427 ac_ls_di
=`ls -di .` &&
1428 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1429 as_fn_error
"working directory cannot be determined"
1430 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1431 as_fn_error
"pwd does not report name of working directory"
1434 # Find the source files, if location was not specified.
1435 if test -z "$srcdir"; then
1436 ac_srcdir_defaulted
=yes
1437 # Try the directory containing this script, then the parent directory.
1438 ac_confdir
=`$as_dirname -- "$as_myself" ||
1439 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1440 X"$as_myself" : 'X\(//\)[^/]' \| \
1441 X"$as_myself" : 'X\(//\)$' \| \
1442 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1443 $as_echo X"$as_myself" |
1444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1466 ac_srcdir_defaulted
=no
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1469 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1470 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1472 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1474 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1476 # When building in place, set srcdir=.
1477 if test "$ac_abs_confdir" = "$ac_pwd"; then
1480 # Remove unnecessary trailing slashes from srcdir.
1481 # Double slashes in file names in object file debugging info
1482 # mess up M-x gdb in Emacs.
1484 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1486 for ac_var
in $ac_precious_vars; do
1487 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1488 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1489 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1490 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1494 # Report the --help message.
1496 if test "$ac_init_help" = "long"; then
1497 # Omit some internal or obsolete options to make the list less imposing.
1498 # This message is too long to be a string in the A/UX 3.1 sh.
1500 \`configure' configures this package to adapt to many kinds of systems.
1502 Usage: $0 [OPTION]... [VAR=VALUE]...
1504 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1505 VAR=VALUE. See below for descriptions of some of the useful variables.
1507 Defaults for the options are specified in brackets.
1510 -h, --help display this help and exit
1511 --help=short display options specific to this package
1512 --help=recursive display the short help of all the included packages
1513 -V, --version display version information and exit
1514 -q, --quiet, --silent do not print \`checking...' messages
1515 --cache-file=FILE cache test results in FILE [disabled]
1516 -C, --config-cache alias for \`--cache-file=config.cache'
1517 -n, --no-create do not create output files
1518 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1520 Installation directories:
1521 --prefix=PREFIX install architecture-independent files in PREFIX
1522 [$ac_default_prefix]
1523 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1526 By default, \`make install' will install all the files in
1527 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1528 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1529 for instance \`--prefix=\$HOME'.
1531 For better control, use the options below.
1533 Fine tuning of the installation directories:
1534 --bindir=DIR user executables [EPREFIX/bin]
1535 --sbindir=DIR system admin executables [EPREFIX/sbin]
1536 --libexecdir=DIR program executables [EPREFIX/libexec]
1537 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1538 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1539 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1540 --libdir=DIR object code libraries [EPREFIX/lib]
1541 --includedir=DIR C header files [PREFIX/include]
1542 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1543 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1544 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1545 --infodir=DIR info documentation [DATAROOTDIR/info]
1546 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1547 --mandir=DIR man documentation [DATAROOTDIR/man]
1548 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1549 --htmldir=DIR html documentation [DOCDIR]
1550 --dvidir=DIR dvi documentation [DOCDIR]
1551 --pdfdir=DIR pdf documentation [DOCDIR]
1552 --psdir=DIR ps documentation [DOCDIR]
1558 --program-prefix=PREFIX prepend PREFIX to installed program names
1559 --program-suffix=SUFFIX append SUFFIX to installed program names
1560 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1563 --build=BUILD configure
for building on BUILD
[guessed
]
1564 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1565 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1569 if test -n "$ac_init_help"; then
1574 --disable-option-checking ignore unrecognized
--enable/--with options
1575 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1576 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1577 --enable-generated-files-in-srcdir
1578 put copies of generated files
in source dir intended
1579 for creating
source tarballs
for users without
1580 texinfo bison or flex
1581 --disable-largefile omit support
for large files
1582 --disable-build-format-warnings
1583 don
't use -Wformat while building GCC
1584 --enable-werror-always enable -Werror despite compiler version
1585 --enable-checking[=LIST]
1586 enable expensive run-time checks. With LIST, enable
1587 only specific categories of checks. Categories are:
1588 yes,no,all,none,release. Flags are:
1589 assert,df,fold,gc,gcac,gimple,misc,
1590 rtlflag,rtl,runtime,tree,valgrind,types
1591 --enable-coverage[=LEVEL]
1592 enable compiler's code coverage collection. Use to
1593 measure compiler performance and
locate unused parts
1594 of the compiler. With LEVEL
, specify optimization.
1595 Values are opt
, noopt
, default is noopt
1596 --enable-gather-detailed-mem-stats
1597 enable detailed memory allocation stats gathering
1598 --enable-valgrind-annotations
1599 enable valgrind runtime interaction
1600 --enable-multilib enable library support
for multiple ABIs
1601 --enable-multiarch enable support
for multiarch paths
1602 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1603 --enable-decimal-float={no
,yes,bid
,dpd
}
1604 enable decimal float extension to C. Selecting
'bid'
1605 or
'dpd' choses
which decimal floating point format
1607 --enable-fixed-point enable fixed-point arithmetic extension to C
1608 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1610 --enable-tls enable or disable generation of tls code overriding
1611 the assembler check
for tls support
1612 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1613 GNU Objective-C runtime
1614 --disable-shared don't provide a shared libgcc
1615 --enable-languages=LIST specify
which front-ends to build
1616 --enable-as-accelerator-for
1617 build compiler as accelerator target
for given
host
1618 --enable-offload-targets=LIST
1619 enable offloading to devices from LIST
1620 --disable-rpath do not hardcode runtime library paths
1621 --enable-sjlj-exceptions
1622 arrange to use setjmp
/longjmp exception handling
1623 --enable-secureplt enable -msecure-plt by default
for PowerPC
1624 --enable-leading-mingw64-underscores
1625 enable leading underscores on
64 bit mingw targets
1626 --enable-cld enable -mcld by default
for 32bit x86
1627 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1629 --disable-win32-registry
1630 disable lookup of installation paths
in the Registry
1632 --enable-win32-registry enable registry lookup
(default
)
1633 --enable-win32-registry=KEY
1634 use KEY instead of GCC version as the last portion
1636 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1637 --enable-static[=PKGS
] build static libraries
[default
=yes]
1638 --enable-fast-install[=PKGS
]
1639 optimize
for fast installation
[default
=yes]
1640 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1641 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1642 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1643 --enable-gnu-indirect-function
1644 enable the use of the @gnu_indirect_function to
1646 --enable-initfini-array use .init_array
/.fini_array sections
1647 --enable-comdat enable COMDAT group support
1649 --enable-fix-cortex-a53-835769
1650 enable workaround
for AArch64 Cortex-A53 erratum
1652 --disable-fix-cortex-a53-835769
1653 disable workaround
for AArch64 Cortex-A53 erratum
1656 --enable-gnu-unique-object
1657 enable the use of the @gnu_unique_object ELF
1658 extension on glibc systems
1659 --enable-linker-build-id
1660 compiler will always pass
--build-id to linker
1661 --enable-maintainer-mode
1662 enable make rules and dependencies not useful
(and
1663 sometimes confusing
) to the casual installer
1664 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1665 thrashing on the build machine
1666 --enable-version-specific-runtime-libs
1667 specify that runtime libraries should be installed
1668 in a compiler-specific directory
1669 --enable-plugin enable plugin support
1670 --enable-host-shared build
host code as shared libraries
1671 --disable-libquadmath-support
1672 disable libquadmath support
for Fortran
1675 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1676 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1677 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1678 --with-local-prefix=DIR specifies directory to put
local include
1679 --with-gxx-include-dir=DIR
1680 specifies directory to put g
++ header files
1681 --with-cpp-install-dir=DIR
1682 install the user visible C preprocessor
in DIR
1683 (relative to PREFIX
) as well as PREFIX
/bin
1684 --with-gnu-ld arrange to work with GNU ld
1685 --with-ld arrange to use the specified ld
(full pathname
)
1686 --with-demangler-in-ld try to use demangler
in GNU ld
1687 --with-gnu-as arrange to work with GNU as
1688 --with-as arrange to use the specified as
(full pathname
)
1689 --with-stabs arrange to use stabs instead of
host debug format
1690 --with-dwarf2 force the default debug format to be DWARF
2
1691 --with-native-system-header-dir=dir
1692 use dir as the directory to
look for standard
1693 system header files
in. Defaults to
/usr
/include.
1694 --with-build-sysroot=sysroot
1695 use sysroot as the system root during the build
1696 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1697 --with-specs=SPECS add SPECS to driver command-line processing
1698 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1699 --with-bugurl=URL Direct users to URL to report a bug
1700 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1701 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1702 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1703 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1704 --with-pic try to use only PIC/non-PIC objects [default=use
1706 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1707 --with-plugin-ld=[ARG] specify the plugin linker
1708 --with-glibc-version=M.N
1709 assume GCC used with glibc version M.N or later
1710 --with-long-double-128 use 128-bit long double by default
1711 --with-gc={page,zone} this option is not supported anymore. It used to
1712 choose the garbage collection mechanism to use with
1714 --with-system-zlib use installed libz
1715 --with-linker-hash-style={sysv,gnu,both}
1716 specify the linker hash style
1718 Some influential environment variables:
1719 CC C compiler command
1720 CFLAGS C compiler flags
1721 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1722 nonstandard directory <lib dir>
1723 LIBS libraries to pass to the linker, e.g. -l<library>
1724 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1725 you have headers in a nonstandard directory <include dir>
1726 CXX C++ compiler command
1727 CXXFLAGS C++ compiler flags
1729 CXXCPP C++ preprocessor
1730 GMPLIBS How to link GMP
1731 GMPINC How to find GMP include files
1732 ISLLIBS How to link ISL
1733 ISLINC How to find ISL include files
1735 Use these variables to override the choices made by `configure' or to
help
1736 it to
find libraries and programs with nonstandard names
/locations.
1738 Report bugs to the package provider.
1743 if test "$ac_init_help" = "recursive"; then
1744 # If there are subdirs, report their specific --help.
1745 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1746 test -d "$ac_dir" ||
1747 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1752 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1754 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1755 # A ".." for each directory in $ac_dir_suffix.
1756 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1757 case $ac_top_builddir_sub in
1758 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1759 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1762 ac_abs_top_builddir
=$ac_pwd
1763 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1764 # for backward compatibility:
1765 ac_top_builddir
=$ac_top_build_prefix
1768 .
) # We are building in place.
1770 ac_top_srcdir
=$ac_top_builddir_sub
1771 ac_abs_top_srcdir
=$ac_pwd ;;
1772 [\\/]* | ?
:[\\/]* ) # Absolute name.
1773 ac_srcdir
=$srcdir$ac_dir_suffix;
1774 ac_top_srcdir
=$srcdir
1775 ac_abs_top_srcdir
=$srcdir ;;
1777 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1778 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1779 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1781 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1783 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1784 # Check for guested configure.
1785 if test -f "$ac_srcdir/configure.gnu"; then
1787 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1788 elif test -f "$ac_srcdir/configure"; then
1790 $SHELL "$ac_srcdir/configure" --help=recursive
1792 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1794 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1798 test -n "$ac_init_help" && exit $ac_status
1799 if $ac_init_version; then
1802 generated by GNU Autoconf
2.64
1804 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1805 This configure
script is free software
; the Free Software Foundation
1806 gives unlimited permission to copy
, distribute and modify it.
1811 ## ------------------------ ##
1812 ## Autoconf initialization. ##
1813 ## ------------------------ ##
1815 # ac_fn_c_try_compile LINENO
1816 # --------------------------
1817 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_c_try_compile
()
1820 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1821 rm -f conftest.
$ac_objext
1822 if { { ac_try
="$ac_compile"
1824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_compile") 2>conftest.err
1831 if test -s conftest.err; then
1832 grep -v '^ *+' conftest.err >conftest.er1
1833 cat conftest.er1 >&5
1834 mv -f conftest.er1 conftest.err
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && {
1838 test -z "$ac_c_werror_flag" ||
1839 test ! -s conftest.err
1840 } && test -s conftest.$ac_objext; then :
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851 } # ac_fn_c_try_compile
1853 # ac_fn_cxx_try_compile LINENO
1854 # ----------------------------
1855 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_cxx_try_compile ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext
1860 if { { ac_try="$ac_compile"
1862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1863 *) ac_try_echo
=$ac_try;;
1865 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_compile") 2>conftest.err
1869 if test -s conftest.err
; then
1870 grep -v '^ *+' conftest.err
>conftest.er1
1871 cat conftest.er1
>&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_cxx_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest.
$ac_objext; then :
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.
$ac_ext >&5
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1889 } # ac_fn_cxx_try_compile
1891 # ac_fn_c_try_cpp LINENO
1892 # ----------------------
1893 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1896 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1897 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } >/dev/null && {
1913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1914 test ! -s conftest.err
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1928 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1929 # -------------------------------------------------------
1930 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1931 # the include files in INCLUDES and setting the cache variable VAR
1933 ac_fn_c_check_header_mongrel ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1940 $as_echo_n "(cached) " >&6
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1946 # Is the header compilable?
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1948 $as_echo_n "checking $2 usability... " >&6; }
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1954 if ac_fn_c_try_compile "$LINENO"; then :
1955 ac_header_compiler=yes
1957 ac_header_compiler=no
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1961 $as_echo "$ac_header_compiler" >&6; }
1963 # Is the header present?
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1965 $as_echo_n "checking $2 presence... " >&6; }
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1970 if ac_fn_c_try_cpp "$LINENO"; then :
1971 ac_header_preproc=yes
1973 ac_header_preproc=no
1975 rm -f conftest.err conftest.$ac_ext
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1977 $as_echo "$ac_header_preproc" >&6; }
1979 # So? What about this header?
1980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1983 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1985 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1989 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1991 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1993 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1995 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001 $as_echo_n "checking for $2... " >&6; }
2002 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2003 $as_echo_n "(cached) " >&6
2005 eval "$3=\$ac_header_compiler"
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013 } # ac_fn_c_check_header_mongrel
2015 # ac_fn_c_try_run LINENO
2016 # ----------------------
2017 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2018 # that executables *can* be run.
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 if { { ac_try="$ac_link"
2024 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2025 *) ac_try_echo
=$ac_try;;
2027 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_link") 2>&5
2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2033 { { case "(($ac_try" in
2034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2035 *) ac_try_echo=$ac_try;;
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039 (eval "$ac_try") 2>&5
2041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042 test $ac_status = 0; }; }; then :
2045 $as_echo "$as_me: program exited with status $ac_status" >&5
2046 $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2049 ac_retval=$ac_status
2051 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2057 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2058 # -------------------------------------------------------
2059 # Tests whether HEADER exists and can be compiled using the include files in
2060 # INCLUDES, setting the cache variable VAR accordingly.
2061 ac_fn_c_check_header_compile ()
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2067 $as_echo_n "(cached) " >&6
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2074 if ac_fn_c_try_compile "$LINENO"; then :
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2086 } # ac_fn_c_check_header_compile
2088 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2089 # --------------------------------------------
2090 # Tries to find the compile-time value of EXPR in a program that includes
2091 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2093 ac_fn_c_compute_int ()
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 if test "$cross_compiling" = yes; then
2097 # Depending upon the size, compute the lo and hi bounds.
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2104 static int test_array [1 - 2 * !(($2) >= 0)];
2111 if ac_fn_c_try_compile "$LINENO"; then :
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2120 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2127 if ac_fn_c_try_compile "$LINENO"; then :
2128 ac_hi=$ac_mid; break
2130 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2131 if test $ac_lo -le $ac_mid; then
2135 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2146 static int test_array [1 - 2 * !(($2) < 0)];
2153 if ac_fn_c_try_compile "$LINENO"; then :
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2162 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2169 if ac_fn_c_try_compile "$LINENO"; then :
2170 ac_lo=$ac_mid; break
2172 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2173 if test $ac_mid -le $ac_hi; then
2177 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 # Binary search between lo and hi bounds.
2188 while test "x$ac_lo" != "x$ac_hi"; do
2189 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2196 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2203 if ac_fn_c_try_compile "$LINENO"; then :
2206 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2218 static long int longval () { return $2; }
2219 static unsigned long int ulongval () { return $2; }
2226 FILE *f = fopen ("conftest.val", "w");
2231 long int i = longval ();
2234 fprintf (f, "%ld", i);
2238 unsigned long int i = ulongval ();
2241 fprintf (f, "%lu", i);
2243 /* Do not output a trailing newline, as this causes \r\n confusion
2244 on some platforms. */
2245 return ferror (f) || fclose (f) != 0;
2251 if ac_fn_c_try_run "$LINENO"; then :
2252 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2257 conftest.$ac_objext conftest.beam conftest.$ac_ext
2261 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2264 } # ac_fn_c_compute_int
2266 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2267 # -------------------------------------------
2268 # Tests whether TYPE exists after having included INCLUDES, setting cache
2269 # variable VAR accordingly.
2270 ac_fn_c_check_type ()
2272 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2274 $as_echo_n "checking for $2... " >&6; }
2275 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2276 $as_echo_n "(cached) " >&6
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2291 if ac_fn_c_try_compile "$LINENO"; then :
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2304 if ac_fn_c_try_compile "$LINENO"; then :
2309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2315 $as_echo "$ac_res" >&6; }
2316 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2318 } # ac_fn_c_check_type
2320 # ac_fn_c_find_intX_t LINENO BITS VAR
2321 # -----------------------------------
2322 # Finds a signed integer type with width BITS, setting cache variable VAR
2324 ac_fn_c_find_intX_t ()
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2328 $as_echo_n "checking for int$2_t... " >&6; }
2329 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2330 $as_echo_n "(cached) " >&6
2333 for ac_type in int$2_t 'int' 'long int' \
2334 'long long int' 'short int' 'signed char'; do
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2337 $ac_includes_default
2341 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2348 if ac_fn_c_try_compile "$LINENO"; then :
2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2351 $ac_includes_default
2355 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2356 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2363 if ac_fn_c_try_compile "$LINENO"; then :
2370 eval "$3=\$ac_type" ;;
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2377 if test "x$as_val" = x""no; then :
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2386 $as_echo "$ac_res" >&6; }
2387 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2389 } # ac_fn_c_find_intX_t
2391 # ac_fn_c_try_link LINENO
2392 # -----------------------
2393 # Try to link conftest.$ac_ext, and return whether this succeeded.
2396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397 rm -f conftest.$ac_objext conftest$ac_exeext
2398 if { { ac_try="$ac_link"
2400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2401 *) ac_try_echo
=$ac_try;;
2403 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2404 $as_echo "$ac_try_echo"; } >&5
2405 (eval "$ac_link") 2>conftest.err
2407 if test -s conftest.err
; then
2408 grep -v '^ *+' conftest.err
>conftest.er1
2409 cat conftest.er1
>&5
2410 mv -f conftest.er1 conftest.err
2412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2413 test $ac_status = 0; } && {
2414 test -z "$ac_c_werror_flag" ||
2415 test ! -s conftest.err
2416 } && test -s conftest
$ac_exeext && {
2417 test "$cross_compiling" = yes ||
2418 $as_test_x conftest
$ac_exeext
2422 $as_echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.
$ac_ext >&5
2427 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2428 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2429 # interfere with the next link command; also delete a directory that is
2430 # left behind by Apple's compiler. We do this before executing the actions.
2431 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2432 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2435 } # ac_fn_c_try_link
2437 # ac_fn_c_find_uintX_t LINENO BITS VAR
2438 # ------------------------------------
2439 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2441 ac_fn_c_find_uintX_t
()
2443 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2445 $as_echo_n "checking for uint$2_t... " >&6; }
2446 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2447 $as_echo_n "(cached) " >&6
2450 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2451 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2454 $ac_includes_default
2458 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2465 if ac_fn_c_try_compile
"$LINENO"; then :
2470 eval "$3=\$ac_type" ;;
2473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2475 if test "x$as_val" = x
""no
; then :
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2484 $as_echo "$ac_res" >&6; }
2485 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2487 } # ac_fn_c_find_uintX_t
2489 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2490 # ----------------------------------------------
2491 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2492 ac_fn_c_check_header_preproc
()
2494 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2496 $as_echo_n "checking for $2... " >&6; }
2497 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2498 $as_echo_n "(cached) " >&6
2500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h. */
2504 if ac_fn_c_try_cpp
"$LINENO"; then :
2509 rm -f conftest.err conftest.
$ac_ext
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2513 $as_echo "$ac_res" >&6; }
2514 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2516 } # ac_fn_c_check_header_preproc
2518 # ac_fn_cxx_try_cpp LINENO
2519 # ------------------------
2520 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2521 ac_fn_cxx_try_cpp
()
2523 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2524 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2530 $as_echo "$ac_try_echo"; } >&5
2531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2533 if test -s conftest.err; then
2534 grep -v '^ *+' conftest.err >conftest.er1
2535 cat conftest.er1 >&5
2536 mv -f conftest.er1 conftest.err
2538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2539 test $ac_status = 0; } >/dev/null && {
2540 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2541 test ! -s conftest.err
2545 $as_echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2550 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2553 } # ac_fn_cxx_try_cpp
2555 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2556 # ------------------------------------------------
2557 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2558 ac_fn_cxx_check_header_preproc ()
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2562 $as_echo_n "checking for $2... " >&6; }
2563 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2564 $as_echo_n "(cached) " >&6
2566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567 /* end confdefs.h. */
2570 if ac_fn_cxx_try_cpp "$LINENO"; then :
2575 rm -f conftest.err conftest.$ac_ext
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2579 $as_echo "$ac_res" >&6; }
2580 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2582 } # ac_fn_cxx_check_header_preproc
2584 # ac_fn_c_check_func LINENO FUNC VAR
2585 # ----------------------------------
2586 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2587 ac_fn_c_check_func ()
2589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2591 $as_echo_n "checking for $2... " >&6; }
2592 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2593 $as_echo_n "(cached) " >&6
2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596 /* end confdefs.h. */
2597 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2599 #define $2 innocuous_$2
2601 /* System header to define __stub macros and hopefully few prototypes,
2602 which can conflict with char $2 (); below.
2603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2604 <limits.h> exists even on freestanding compilers. */
2607 # include <limits.h>
2609 # include <assert.h>
2614 /* Override any GCC internal prototype to avoid an error.
2615 Use char because int might match the return type of a GCC
2616 builtin and then its argument prototype would still apply. */
2621 /* The GNU C library defines this for functions which it implements
2622 to always fail with ENOSYS. Some functions are actually named
2623 something starting with __ and the normal name is an alias. */
2624 #if defined __stub_$2 || defined __stub___$2
2636 if ac_fn_c_try_link "$LINENO"; then :
2641 rm -f core conftest.err conftest.$ac_objext \
2642 conftest$ac_exeext conftest.$ac_ext
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2646 $as_echo "$ac_res" >&6; }
2647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2649 } # ac_fn_c_check_func
2651 # ac_fn_cxx_try_link LINENO
2652 # -------------------------
2653 # Try to link conftest.$ac_ext, and return whether this succeeded.
2654 ac_fn_cxx_try_link ()
2656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2657 rm -f conftest.$ac_objext conftest$ac_exeext
2658 if { { ac_try="$ac_link"
2660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2661 *) ac_try_echo
=$ac_try;;
2663 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2664 $as_echo "$ac_try_echo"; } >&5
2665 (eval "$ac_link") 2>conftest.err
2667 if test -s conftest.err
; then
2668 grep -v '^ *+' conftest.err
>conftest.er1
2669 cat conftest.er1
>&5
2670 mv -f conftest.er1 conftest.err
2672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2673 test $ac_status = 0; } && {
2674 test -z "$ac_cxx_werror_flag" ||
2675 test ! -s conftest.err
2676 } && test -s conftest
$ac_exeext && {
2677 test "$cross_compiling" = yes ||
2678 $as_test_x conftest
$ac_exeext
2682 $as_echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.
$ac_ext >&5
2687 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2688 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2689 # interfere with the next link command; also delete a directory that is
2690 # left behind by Apple's compiler. We do this before executing the actions.
2691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2692 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2695 } # ac_fn_cxx_try_link
2696 cat >config.log
<<_ACEOF
2697 This file contains any messages produced by compilers while
2698 running configure, to aid debugging if configure makes a mistake.
2700 It was created by $as_me, which was
2701 generated by GNU Autoconf 2.64. Invocation command line was
2713 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2714 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2715 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2716 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2717 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2719 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2720 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2722 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2723 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2724 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2725 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2726 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2727 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2728 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2736 test -z "$as_dir" && as_dir
=.
2737 $as_echo "PATH: $as_dir"
2753 # Keep a trace of the command line.
2754 # Strip out --no-create and --no-recursion so they do not pile up.
2755 # Strip out --silent because we don't want to record it for future runs.
2756 # Also quote any args containing shell meta-characters.
2757 # Make two passes to allow for proper duplicate-argument suppression.
2761 ac_must_keep_next
=false
2767 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2768 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2769 |
-silent |
--silent |
--silen |
--sile |
--sil)
2772 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2775 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2777 as_fn_append ac_configure_args1
" '$ac_arg'"
2778 if test $ac_must_keep_next = true
; then
2779 ac_must_keep_next
=false
# Got value, back to normal.
2782 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2783 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2784 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2785 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2786 case "$ac_configure_args0 " in
2787 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2790 -* ) ac_must_keep_next
=true
;;
2793 as_fn_append ac_configure_args
" '$ac_arg'"
2798 { ac_configure_args0
=; unset ac_configure_args0
;}
2799 { ac_configure_args1
=; unset ac_configure_args1
;}
2801 # When interrupted or exit'd, cleanup temporary files, and complete
2802 # config.log. We remove comments because anyway the quotes in there
2803 # would cause problems or look ugly.
2804 # WARNING: Use '\'' to represent an apostrophe within the trap.
2805 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2806 trap 'exit_status=$?
2807 # Save into config.log some information that might help in debugging.
2812 ## ---------------- ##
2813 ## Cache variables. ##
2814 ## ---------------- ##
2817 # The following way of writing the cache mishandles newlines in values,
2819 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2820 eval ac_val=\$$ac_var
2824 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2825 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2828 _ | IFS | as_nl) ;; #(
2829 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2830 *) { eval $ac_var=; unset $ac_var;} ;;
2835 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2836 *${as_nl}ac_space=\ *)
2838 "s/'\''/'\''\\\\'\'''\''/g;
2839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2842 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2850 ## ----------------- ##
2851 ## Output variables. ##
2852 ## ----------------- ##
2855 for ac_var in $ac_subst_vars
2857 eval ac_val=\$$ac_var
2859 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2861 $as_echo "$ac_var='\''$ac_val'\''"
2865 if test -n "$ac_subst_files"; then
2867 ## ------------------- ##
2868 ## File substitutions. ##
2869 ## ------------------- ##
2872 for ac_var
in $ac_subst_files
2874 eval ac_val
=\$
$ac_var
2876 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2878 $as_echo "$ac_var='\''$ac_val'\''"
2883 if test -s confdefs.h; then
2893 test "$ac_signal" != 0 &&
2894 $as_echo "$as_me: caught signal $ac_signal"
2895 $as_echo "$as_me: exit $exit_status"
2897 rm -f core *.core core.conftest.* &&
2898 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2901 for ac_signal
in 1 2 13 15; do
2902 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2906 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2907 rm -f -r conftest
* confdefs.h
2909 $as_echo "/* confdefs.h */" > confdefs.h
2911 # Predefined preprocessor variables.
2913 cat >>confdefs.h
<<_ACEOF
2914 #define PACKAGE_NAME "$PACKAGE_NAME"
2917 cat >>confdefs.h
<<_ACEOF
2918 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2921 cat >>confdefs.h
<<_ACEOF
2922 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2925 cat >>confdefs.h
<<_ACEOF
2926 #define PACKAGE_STRING "$PACKAGE_STRING"
2929 cat >>confdefs.h
<<_ACEOF
2930 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2933 cat >>confdefs.h
<<_ACEOF
2934 #define PACKAGE_URL "$PACKAGE_URL"
2938 # Let the site file select an alternate cache file if it wants to.
2939 # Prefer an explicitly selected file to automatically selected ones.
2942 if test -n "$CONFIG_SITE"; then
2943 ac_site_file1
=$CONFIG_SITE
2944 elif test "x$prefix" != xNONE
; then
2945 ac_site_file1
=$prefix/share
/config.site
2946 ac_site_file2
=$prefix/etc
/config.site
2948 ac_site_file1
=$ac_default_prefix/share
/config.site
2949 ac_site_file2
=$ac_default_prefix/etc
/config.site
2951 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2953 test "x$ac_site_file" = xNONE
&& continue
2954 if test -r "$ac_site_file"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2956 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2957 sed 's/^/| /' "$ac_site_file" >&5
2962 if test -r "$cache_file"; then
2963 # Some versions of bash will fail to source /dev/null (special
2964 # files actually), so we avoid doing that.
2965 if test -f "$cache_file"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2967 $as_echo "$as_me: loading cache $cache_file" >&6;}
2969 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2970 *) .
"./$cache_file";;
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2975 $as_echo "$as_me: creating cache $cache_file" >&6;}
2979 # Check that the precious variables saved in the cache have kept the same
2981 ac_cache_corrupted
=false
2982 for ac_var
in $ac_precious_vars; do
2983 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2984 eval ac_new_set
=\
$ac_env_${ac_var}_set
2985 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2986 eval ac_new_val
=\
$ac_env_${ac_var}_value
2987 case $ac_old_set,$ac_new_set in
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2990 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2991 ac_cache_corrupted
=: ;;
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2994 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2995 ac_cache_corrupted
=: ;;
2998 if test "x$ac_old_val" != "x$ac_new_val"; then
2999 # differences in whitespace do not lead to failure.
3000 ac_old_val_w
=`echo x $ac_old_val`
3001 ac_new_val_w
=`echo x $ac_new_val`
3002 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3004 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3005 ac_cache_corrupted
=:
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3008 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3009 eval $ac_var=\
$ac_old_val
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3012 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3014 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3017 # Pass precious variables to config.status.
3018 if test "$ac_new_set" = set; then
3020 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3021 *) ac_arg
=$ac_var=$ac_new_val ;;
3023 case " $ac_configure_args " in
3024 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3025 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3029 if $ac_cache_corrupted; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3033 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3034 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3036 ## -------------------- ##
3037 ## Main body of script. ##
3038 ## -------------------- ##
3041 ac_cpp
='$CPP $CPPFLAGS'
3042 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3051 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3054 gcc_version
=`cat $srcdir/BASE-VER`
3056 # Determine the host, build, and target systems
3058 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3059 for ac_t
in install-sh
install.sh shtool
; do
3060 if test -f "$ac_dir/$ac_t"; then
3062 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3067 if test -z "$ac_aux_dir"; then
3068 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3071 # These three variables are undocumented and unsupported,
3072 # and are intended to be withdrawn in a future Autoconf release.
3073 # They can cause serious problems if a builder's source tree is in a directory
3074 # whose full name contains unusual characters.
3075 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3076 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3077 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3080 # Make sure we can run config.sub.
3081 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3082 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3085 $as_echo_n "checking build system type... " >&6; }
3086 if test "${ac_cv_build+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3089 ac_build_alias
=$build_alias
3090 test "x$ac_build_alias" = x
&&
3091 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3092 test "x$ac_build_alias" = x
&&
3093 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3094 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3095 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3099 $as_echo "$ac_cv_build" >&6; }
3100 case $ac_cv_build in
3102 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3105 ac_save_IFS
=$IFS; IFS
='-'
3111 # Remember, the first character of IFS is used to create $*,
3112 # except with old shells:
3115 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3119 $as_echo_n "checking host system type... " >&6; }
3120 if test "${ac_cv_host+set}" = set; then :
3121 $as_echo_n "(cached) " >&6
3123 if test "x$host_alias" = x
; then
3124 ac_cv_host
=$ac_cv_build
3126 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3127 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3132 $as_echo "$ac_cv_host" >&6; }
3135 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3138 ac_save_IFS
=$IFS; IFS
='-'
3144 # Remember, the first character of IFS is used to create $*,
3145 # except with old shells:
3148 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3152 $as_echo_n "checking target system type... " >&6; }
3153 if test "${ac_cv_target+set}" = set; then :
3154 $as_echo_n "(cached) " >&6
3156 if test "x$target_alias" = x
; then
3157 ac_cv_target
=$ac_cv_host
3159 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3160 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3165 $as_echo "$ac_cv_target" >&6; }
3166 case $ac_cv_target in
3168 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3170 target
=$ac_cv_target
3171 ac_save_IFS
=$IFS; IFS
='-'
3177 # Remember, the first character of IFS is used to create $*,
3178 # except with old shells:
3181 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3184 # The aliases save the names the user supplied, while $host etc.
3185 # will get canonicalized.
3186 test -n "$target_alias" &&
3187 test "$program_prefix$program_suffix$program_transform_name" = \
3189 program_prefix
=${target_alias}-
3191 # Determine the noncanonical target name, for directory use.
3192 case ${build_alias} in
3193 "") build_noncanonical
=${build} ;;
3194 *) build_noncanonical
=${build_alias} ;;
3197 case ${host_alias} in
3198 "") host_noncanonical
=${build_noncanonical} ;;
3199 *) host_noncanonical
=${host_alias} ;;
3202 case ${target_alias} in
3203 "") target_noncanonical
=${host_noncanonical} ;;
3204 *) target_noncanonical
=${target_alias} ;;
3210 # Used for constructing correct paths for offload compilers.
3211 real_target_noncanonical
=${target_noncanonical}
3214 # Determine the target- and build-specific subdirectories
3216 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3217 # have matching libraries, they should use host libraries: Makefile.tpl
3218 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3219 # However, they still use the build modules, because the corresponding
3220 # host modules (e.g. bison) are only built for the host when bootstrap
3222 # - build_subdir is where we find build modules, and never changes.
3223 # - build_libsubdir is where we find build libraries, and can be overridden.
3225 # Prefix 'build-' so this never conflicts with target_subdir.
3226 build_subdir
="build-${build_noncanonical}"
3228 # Check whether --with-build-libsubdir was given.
3229 if test "${with_build_libsubdir+set}" = set; then :
3230 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3232 build_libsubdir
="$build_subdir"
3235 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3236 if ( test $srcdir = .
&& test -d gcc
) \
3237 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3238 host_subdir
="host-${host_noncanonical}"
3243 target_subdir
=${target_noncanonical}
3246 # Set program_transform_name
3247 test "$program_prefix" != NONE
&&
3248 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3249 # Use a double $ so make ignores it.
3250 test "$program_suffix" != NONE
&&
3251 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3252 # Double any \ or $.
3253 # By default was `s,x,x', remove it if useless.
3254 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3255 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3258 # Check for bogus environment variables.
3259 # Test if LIBRARY_PATH contains the notation for the current directory
3260 # since this would lead to problems installing/building glibc.
3261 # LIBRARY_PATH contains the current directory if one of the following
3263 # - one of the terminals (":" and ";") is the first or last sign
3264 # - two terminals occur directly after each other
3265 # - the path contains an element with a dot in it
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3267 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3268 case ${LIBRARY_PATH} in
3269 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3270 library_path_setting
="contains current directory"
3273 library_path_setting
="ok"
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3277 $as_echo "$library_path_setting" >&6; }
3278 if test "$library_path_setting" != "ok"; then
3280 *** LIBRARY_PATH shouldn't contain the current directory when
3281 *** building gcc. Please change the environment variable
3282 *** and run configure again." "$LINENO" 5
3285 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3286 # since this would lead to problems installing/building glibc.
3287 # GCC_EXEC_PREFIX contains the current directory if one of the following
3289 # - one of the terminals (":" and ";") is the first or last sign
3290 # - two terminals occur directly after each other
3291 # - the path contains an element with a dot in it
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3293 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3294 case ${GCC_EXEC_PREFIX} in
3295 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3296 gcc_exec_prefix_setting
="contains current directory"
3299 gcc_exec_prefix_setting
="ok"
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3303 $as_echo "$gcc_exec_prefix_setting" >&6; }
3304 if test "$gcc_exec_prefix_setting" != "ok"; then
3306 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3307 *** building gcc. Please change the environment variable
3308 *** and run configure again." "$LINENO" 5
3315 # Specify the local prefix
3318 # Check whether --with-local-prefix was given.
3319 if test "${with_local_prefix+set}" = set; then :
3320 withval
=$with_local_prefix; case "${withval}" in
3321 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3323 *) local_prefix
=$with_local_prefix ;;
3328 # Default local prefix if it is empty
3329 if test x
$local_prefix = x
; then
3330 local_prefix
=/usr
/local
3333 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3334 # passed in by the toplevel make and thus we'd get different behavior
3335 # depending on where we built the sources.
3336 gcc_gxx_include_dir
=
3337 # Specify the g++ header file directory
3339 # Check whether --with-gxx-include-dir was given.
3340 if test "${with_gxx_include_dir+set}" = set; then :
3341 withval
=$with_gxx_include_dir; case "${withval}" in
3342 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3344 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3349 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3350 if test x
${gcc_gxx_include_dir} = x
; then
3351 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3352 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3354 libstdcxx_incdir
='include/c++/$(version)'
3355 if test x
$host != x
$target; then
3356 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3358 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3362 gcc_gxx_include_dir_add_sysroot
=0
3363 if test "${with_sysroot+set}" = set; then
3364 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3365 if test "${gcc_gxx_without_sysroot}"; then
3366 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3367 gcc_gxx_include_dir_add_sysroot
=1
3372 # Check whether --with-cpp_install_dir was given.
3373 if test "${with_cpp_install_dir+set}" = set; then :
3374 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3375 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3376 elif test x
$withval != xno
; then
3377 cpp_install_dir
=$withval
3382 # We would like to our source tree to be readonly. However when releases or
3383 # pre-releases are generated, the flex/bison generated files as well as the
3384 # various formats of manuals need to be included along with the rest of the
3385 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3389 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3390 # Check whether --enable-generated-files-in-srcdir was given.
3391 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3392 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3394 generated_files_in_srcdir
=no
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3399 $as_echo "$generated_files_in_srcdir" >&6; }
3401 if test "$generated_files_in_srcdir" = "yes"; then
3408 # -------------------
3409 # Find default linker
3410 # -------------------
3414 # Check whether --with-gnu-ld was given.
3415 if test "${with_gnu_ld+set}" = set; then :
3416 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3422 # With pre-defined ld
3424 # Check whether --with-ld was given.
3425 if test "${with_ld+set}" = set; then :
3426 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3429 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3430 if test ! -x "$DEFAULT_LINKER"; then
3431 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3432 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3436 cat >>confdefs.h
<<_ACEOF
3437 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3443 $as_echo_n "checking whether a default linker was specified... " >&6; }
3444 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3445 if test x
"$gnu_ld_flag" = x
"no"; then
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3447 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3450 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3457 # With demangler in GNU ld
3459 # Check whether --with-demangler-in-ld was given.
3460 if test "${with_demangler_in_ld+set}" = set; then :
3461 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3467 # ----------------------
3468 # Find default assembler
3469 # ----------------------
3473 # Check whether --with-gnu-as was given.
3474 if test "${with_gnu_as+set}" = set; then :
3475 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3482 # Check whether --with-as was given.
3483 if test "${with_as+set}" = set; then :
3484 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3487 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3488 if test ! -x "$DEFAULT_ASSEMBLER"; then
3489 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3490 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3494 cat >>confdefs.h
<<_ACEOF
3495 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3501 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3502 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3503 if test x
"$gas_flag" = x
"no"; then
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3505 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3508 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3519 # If a non-executable a.out is present (e.g. created by GNU as above even if
3520 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3521 # file, even when creating an executable, so an execution test fails.
3522 # Remove possible default executable files to avoid this.
3524 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3525 # Autoconf includes it.
3526 rm -f a.out a.exe b.out
3528 # Find the native compiler
3530 ac_cpp
='$CPP $CPPFLAGS'
3531 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3534 if test -n "$ac_tool_prefix"; then
3535 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3536 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_CC+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3542 if test -n "$CC"; then
3543 ac_cv_prog_CC
="$CC" # Let the user override the test.
3545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3549 test -z "$as_dir" && as_dir
=.
3550 for ac_exec_ext
in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 if test -n "$CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565 $as_echo "$CC" >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3573 if test -z "$ac_cv_prog_CC"; then
3575 # Extract the first word of "gcc", so it can be a program name with args.
3576 set dummy gcc
; ac_word
=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3580 $as_echo_n "(cached) " >&6
3582 if test -n "$ac_ct_CC"; then
3583 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3585 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3589 test -z "$as_dir" && as_dir
=.
3590 for ac_exec_ext
in '' $ac_executable_extensions; do
3591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3592 ac_cv_prog_ac_ct_CC
="gcc"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3603 if test -n "$ac_ct_CC"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3605 $as_echo "$ac_ct_CC" >&6; }
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3611 if test "x$ac_ct_CC" = x
; then
3614 case $cross_compiling:$ac_tool_warned in
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3618 ac_tool_warned
=yes ;;
3626 if test -z "$CC"; then
3627 if test -n "$ac_tool_prefix"; then
3628 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3629 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_CC+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC
="$CC" # Let the user override the test.
3638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3642 test -z "$as_dir" && as_dir
=.
3643 for ac_exec_ext
in '' $ac_executable_extensions; do
3644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3656 if test -n "$CC"; then
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3658 $as_echo "$CC" >&6; }
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3667 if test -z "$CC"; then
3668 # Extract the first word of "cc", so it can be a program name with args.
3669 set dummy cc
; ac_word
=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if test "${ac_cv_prog_CC+set}" = set; then :
3673 $as_echo_n "(cached) " >&6
3675 if test -n "$CC"; then
3676 ac_cv_prog_CC
="$CC" # Let the user override the test.
3679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3683 test -z "$as_dir" && as_dir
=.
3684 for ac_exec_ext
in '' $ac_executable_extensions; do
3685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3686 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3687 ac_prog_rejected
=yes
3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3698 if test $ac_prog_rejected = yes; then
3699 # We found a bogon in the path, so make sure we never use it.
3700 set dummy
$ac_cv_prog_CC
3702 if test $# != 0; then
3703 # We chose a different compiler from the bogus one.
3704 # However, it has the same basename, so the bogon will be chosen
3705 # first if we set CC to just the basename; use the full file name.
3707 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3713 if test -n "$CC"; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715 $as_echo "$CC" >&6; }
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3723 if test -z "$CC"; then
3724 if test -n "$ac_tool_prefix"; then
3725 for ac_prog
in cl.exe
3727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3728 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730 $as_echo_n "checking for $ac_word... " >&6; }
3731 if test "${ac_cv_prog_CC+set}" = set; then :
3732 $as_echo_n "(cached) " >&6
3734 if test -n "$CC"; then
3735 ac_cv_prog_CC
="$CC" # Let the user override the test.
3737 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3741 test -z "$as_dir" && as_dir
=.
3742 for ac_exec_ext
in '' $ac_executable_extensions; do
3743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3744 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 if test -n "$CC"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3757 $as_echo "$CC" >&6; }
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3764 test -n "$CC" && break
3767 if test -z "$CC"; then
3769 for ac_prog
in cl.exe
3771 # Extract the first word of "$ac_prog", so it can be a program name with args.
3772 set dummy
$ac_prog; ac_word
=$2
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3774 $as_echo_n "checking for $ac_word... " >&6; }
3775 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3776 $as_echo_n "(cached) " >&6
3778 if test -n "$ac_ct_CC"; then
3779 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3785 test -z "$as_dir" && as_dir
=.
3786 for ac_exec_ext
in '' $ac_executable_extensions; do
3787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3788 ac_cv_prog_ac_ct_CC
="$ac_prog"
3789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3798 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3799 if test -n "$ac_ct_CC"; then
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3801 $as_echo "$ac_ct_CC" >&6; }
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804 $as_echo "no" >&6; }
3808 test -n "$ac_ct_CC" && break
3811 if test "x$ac_ct_CC" = x
; then
3814 case $cross_compiling:$ac_tool_warned in
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3818 ac_tool_warned
=yes ;;
3827 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829 as_fn_error
"no acceptable C compiler found in \$PATH
3830 See \`config.log' for more details." "$LINENO" 5; }
3832 # Provide some information about the compiler.
3833 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3836 for ac_option
in --version -v -V -qversion; do
3837 { { ac_try
="$ac_compiler $ac_option >&5"
3839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 $as_echo "$ac_try_echo"; } >&5
3844 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3846 if test -s conftest.err; then
3848 ... rest of stderr output deleted ...
3849 10q' conftest.err >conftest.er1
3850 cat conftest.er1 >&5
3851 rm -f conftest.er1 conftest.err
3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3868 ac_clean_files_save=$ac_clean_files
3869 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3870 # Try to create an executable without -o first, disregard a.out.
3871 # It will help us diagnose broken compilers, and finding out an intuition
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3874 $as_echo_n "checking for C compiler default output file name... " >&6; }
3875 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3877 # The possible output files:
3878 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3881 for ac_file in $ac_files
3884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3885 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3890 if { { ac_try="$ac_link_default"
3892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3893 *) ac_try_echo
=$ac_try;;
3895 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896 $as_echo "$ac_try_echo"; } >&5
3897 (eval "$ac_link_default") 2>&5
3899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900 test $ac_status = 0; }; then :
3901 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3902 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3903 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3904 # so that the user can short-circuit this test for compilers unknown to
3906 for ac_file
in $ac_files ''
3908 test -f "$ac_file" ||
continue
3910 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3913 # We found the default executable, but exeext='' is most
3917 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3919 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3921 # We set ac_cv_exeext here because the later test for it is not
3922 # safe: cross compilers may not add the suffix if given an `-o'
3923 # argument, so we may need to know it at that point already.
3924 # Even if this section looks crufty: it has the advantage of
3931 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3937 $as_echo "$ac_file" >&6; }
3938 if test -z "$ac_file"; then :
3939 $as_echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.
$ac_ext >&5
3942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944 { as_fn_set_status
77
3945 as_fn_error
"C compiler cannot create executables
3946 See \`config.log' for more details." "$LINENO" 5; }; }
3948 ac_exeext
=$ac_cv_exeext
3950 # Check that the compiler produces executables we can run. If not, either
3951 # the compiler is broken, or we cross compile.
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3953 $as_echo_n "checking whether the C compiler works... " >&6; }
3954 # If not cross compiling, check that we can run a simple program.
3955 if test "$cross_compiling" != yes; then
3956 if { ac_try
='./$ac_file'
3957 { { case "(($ac_try" in
3958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962 $as_echo "$ac_try_echo"; } >&5
3963 (eval "$ac_try") 2>&5
3965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966 test $ac_status = 0; }; }; then
3969 if test "$cross_compiling" = maybe; then
3972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3974 as_fn_error "cannot run C compiled programs.
3975 If you meant to cross compile
, use \
`--host'.
3976 See \`config.log
' for more details." "$LINENO" 5; }
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3981 $as_echo "yes" >&6; }
3983 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3984 ac_clean_files=$ac_clean_files_save
3985 # Check that the compiler produces executables we can run. If not, either
3986 # the compiler is broken, or we cross compile.
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3988 $as_echo_n "checking whether we are cross compiling... " >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3990 $as_echo "$cross_compiling" >&6; }
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3993 $as_echo_n "checking for suffix of executables... " >&6; }
3994 if { { ac_try="$ac_link"
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000 $as_echo "$ac_try_echo"; } >&5
4001 (eval "$ac_link") 2>&5
4003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004 test $ac_status = 0; }; then :
4005 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4006 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4007 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4009 for ac_file
in conftest.exe conftest conftest.
*; do
4010 test -f "$ac_file" ||
continue
4012 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4013 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4021 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4022 See \`config.log' for more details." "$LINENO" 5; }
4024 rm -f conftest
$ac_cv_exeext
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4026 $as_echo "$ac_cv_exeext" >&6; }
4028 rm -f conftest.
$ac_ext
4029 EXEEXT
=$ac_cv_exeext
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4032 $as_echo_n "checking for suffix of object files... " >&6; }
4033 if test "${ac_cv_objext+set}" = set; then :
4034 $as_echo_n "(cached) " >&6
4036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4047 rm -f conftest.o conftest.obj
4048 if { { ac_try
="$ac_compile"
4050 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054 $as_echo "$ac_try_echo"; } >&5
4055 (eval "$ac_compile") 2>&5
4057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058 test $ac_status = 0; }; then :
4059 for ac_file in conftest.o conftest.obj conftest.*; do
4060 test -f "$ac_file" || continue;
4062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4063 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4068 $as_echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4073 as_fn_error "cannot compute suffix of object files
: cannot compile
4074 See \
`config.log' for more details." "$LINENO" 5; }
4076 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4079 $as_echo "$ac_cv_objext" >&6; }
4080 OBJEXT=$ac_cv_objext
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4083 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4084 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4101 if ac_fn_c_try_compile "$LINENO"; then :
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4111 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4112 if test $ac_compiler_gnu = yes; then
4117 ac_test_CFLAGS=${CFLAGS+set}
4118 ac_save_CFLAGS=$CFLAGS
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4120 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4121 if test "${ac_cv_prog_cc_g+set}" = set; then :
4122 $as_echo_n "(cached) " >&6
4124 ac_save_c_werror_flag=$ac_c_werror_flag
4125 ac_c_werror_flag=yes
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4139 if ac_fn_c_try_compile "$LINENO"; then :
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4154 if ac_fn_c_try_compile "$LINENO"; then :
4157 ac_c_werror_flag=$ac_save_c_werror_flag
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4170 if ac_fn_c_try_compile "$LINENO"; then :
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 ac_c_werror_flag=$ac_save_c_werror_flag
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4181 $as_echo "$ac_cv_prog_cc_g" >&6; }
4182 if test "$ac_test_CFLAGS" = set; then
4183 CFLAGS=$ac_save_CFLAGS
4184 elif test $ac_cv_prog_cc_g = yes; then
4185 if test "$GCC" = yes; then
4191 if test "$GCC" = yes; then
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4198 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4199 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4200 $as_echo_n "(cached) " >&6
4202 ac_cv_prog_cc_c89=no
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4208 #include <sys/types.h>
4209 #include <sys/stat.h>
4210 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4211 struct buf { int x; };
4212 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4213 static char *e (p, i)
4219 static char *f (char * (*g) (char **, int), char **p, ...)
4224 s = g (p, va_arg (v,int));
4229 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4230 function prototypes and stuff, but not '\xHH' hex character constants.
4231 These don't provoke an error unfortunately, instead are silently treated
4232 as 'x'. The following induces an error, until -std is added to get
4233 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4234 array size at least. It's necessary to write '\x00'==0 to get something
4235 that's true only with -std. */
4236 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4238 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4239 inside strings and character constants. */
4241 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4243 int test (int i, double x);
4244 struct s1 {int (*f) (int a);};
4245 struct s2 {int (*f) (double a);};
4246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4252 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4257 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4258 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4260 CC="$ac_save_CC $ac_arg"
4261 if ac_fn_c_try_compile "$LINENO"; then :
4262 ac_cv_prog_cc_c89=$ac_arg
4264 rm -f core conftest.err conftest.$ac_objext
4265 test "x$ac_cv_prog_cc_c89" != "xno" && break
4267 rm -f conftest.$ac_ext
4272 case "x$ac_cv_prog_cc_c89" in
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4275 $as_echo "none needed" >&6; } ;;
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4278 $as_echo "unsupported" >&6; } ;;
4280 CC="$CC $ac_cv_prog_cc_c89"
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4282 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4284 if test "x$ac_cv_prog_cc_c89" != xno; then :
4289 ac_cpp='$CPP $CPPFLAGS'
4290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295 ac_cpp='$CXXCPP $CPPFLAGS'
4296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4299 if test -z "$CXX"; then
4300 if test -n "$CCC"; then
4303 if test -n "$ac_tool_prefix"; then
4304 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4306 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309 $as_echo_n "checking for $ac_word... " >&6; }
4310 if test "${ac_cv_prog_CXX+set}" = set; then :
4311 $as_echo_n "(cached) " >&6
4313 if test -n "$CXX"; then
4314 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 if test -n "$CXX"; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4336 $as_echo "$CXX" >&6; }
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4343 test -n "$CXX" && break
4346 if test -z "$CXX"; then
4348 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4350 # Extract the first word of "$ac_prog", so it can be a program name with args.
4351 set dummy $ac_prog; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
4357 if test -n "$ac_ct_CXX"; then
4358 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_ac_ct_CXX="$ac_prog"
4368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4378 if test -n "$ac_ct_CXX"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4380 $as_echo "$ac_ct_CXX" >&6; }
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4387 test -n "$ac_ct_CXX" && break
4390 if test "x$ac_ct_CXX" = x; then
4393 case $cross_compiling:$ac_tool_warned in
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4397 ac_tool_warned=yes ;;
4405 # Provide some information about the compiler.
4406 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4409 for ac_option in --version -v -V -qversion; do
4410 { { ac_try="$ac_compiler $ac_option >&5"
4412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4413 *) ac_try_echo
=$ac_try;;
4415 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4416 $as_echo "$ac_try_echo"; } >&5
4417 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4419 if test -s conftest.err
; then
4421 ... rest of stderr output deleted ...
4422 10q' conftest.err
>conftest.er1
4423 cat conftest.er1
>&5
4424 rm -f conftest.er1 conftest.err
4426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427 test $ac_status = 0; }
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4431 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4432 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4433 $as_echo_n "(cached) " >&6
4435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4449 if ac_fn_cxx_try_compile
"$LINENO"; then :
4454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4455 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4459 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4460 if test $ac_compiler_gnu = yes; then
4465 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4466 ac_save_CXXFLAGS
=$CXXFLAGS
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4468 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4469 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4470 $as_echo_n "(cached) " >&6
4472 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4473 ac_cxx_werror_flag
=yes
4476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4487 if ac_fn_cxx_try_compile
"$LINENO"; then :
4488 ac_cv_prog_cxx_g
=yes
4491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4502 if ac_fn_cxx_try_compile
"$LINENO"; then :
4505 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4518 if ac_fn_cxx_try_compile
"$LINENO"; then :
4519 ac_cv_prog_cxx_g
=yes
4521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4526 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4529 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4530 if test "$ac_test_CXXFLAGS" = set; then
4531 CXXFLAGS
=$ac_save_CXXFLAGS
4532 elif test $ac_cv_prog_cxx_g = yes; then
4533 if test "$GXX" = yes; then
4539 if test "$GXX" = yes; then
4546 ac_cpp
='$CPP $CPPFLAGS'
4547 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4554 if test -n "$ac_tool_prefix"; then
4555 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4556 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4560 $as_echo_n "(cached) " >&6
4562 if test -n "$GNATBIND"; then
4563 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4569 test -z "$as_dir" && as_dir
=.
4570 for ac_exec_ext
in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 GNATBIND
=$ac_cv_prog_GNATBIND
4583 if test -n "$GNATBIND"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4585 $as_echo "$GNATBIND" >&6; }
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4593 if test -z "$ac_cv_prog_GNATBIND"; then
4594 ac_ct_GNATBIND
=$GNATBIND
4595 # Extract the first word of "gnatbind", so it can be a program name with args.
4596 set dummy gnatbind
; ac_word
=$2
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598 $as_echo_n "checking for $ac_word... " >&6; }
4599 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4600 $as_echo_n "(cached) " >&6
4602 if test -n "$ac_ct_GNATBIND"; then
4603 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4609 test -z "$as_dir" && as_dir
=.
4610 for ac_exec_ext
in '' $ac_executable_extensions; do
4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4612 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4623 if test -n "$ac_ct_GNATBIND"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4625 $as_echo "$ac_ct_GNATBIND" >&6; }
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 $as_echo "no" >&6; }
4631 if test "x$ac_ct_GNATBIND" = x
; then
4634 case $cross_compiling:$ac_tool_warned in
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4638 ac_tool_warned
=yes ;;
4640 GNATBIND
=$ac_ct_GNATBIND
4643 GNATBIND
="$ac_cv_prog_GNATBIND"
4646 if test -n "$ac_tool_prefix"; then
4647 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4648 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4654 if test -n "$GNATMAKE"; then
4655 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4661 test -z "$as_dir" && as_dir
=.
4662 for ac_exec_ext
in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 GNATMAKE
=$ac_cv_prog_GNATMAKE
4675 if test -n "$GNATMAKE"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4677 $as_echo "$GNATMAKE" >&6; }
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4685 if test -z "$ac_cv_prog_GNATMAKE"; then
4686 ac_ct_GNATMAKE
=$GNATMAKE
4687 # Extract the first word of "gnatmake", so it can be a program name with args.
4688 set dummy gnatmake
; ac_word
=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4692 $as_echo_n "(cached) " >&6
4694 if test -n "$ac_ct_GNATMAKE"; then
4695 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4701 test -z "$as_dir" && as_dir
=.
4702 for ac_exec_ext
in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4715 if test -n "$ac_ct_GNATMAKE"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4717 $as_echo "$ac_ct_GNATMAKE" >&6; }
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4723 if test "x$ac_ct_GNATMAKE" = x
; then
4726 case $cross_compiling:$ac_tool_warned in
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned
=yes ;;
4732 GNATMAKE
=$ac_ct_GNATMAKE
4735 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4739 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4740 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4743 cat >conftest.adb
<<EOF
4744 procedure conftest is begin null; end conftest;
4746 acx_cv_cc_gcc_supports_ada
=no
4747 # There is a bug in old released versions of GCC which causes the
4748 # driver to exit successfully when the appropriate language module
4749 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4750 # Therefore we must check for the error message as well as an
4751 # unsuccessful exit.
4752 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4753 # given a .adb file, but produce no object file. So we must check
4754 # if an object file was really produced to guard against this.
4755 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4756 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4757 acx_cv_cc_gcc_supports_ada
=yes
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4762 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4764 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4771 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4772 # optimizations to be activated explicitly by the toplevel.
4774 */prev-gcc
/xgcc
*) ;;
4775 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4776 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4781 # Determine PICFLAG for target gnatlib.
4787 # PIC is the default on some targets or must not be used.
4789 # PIC is the default on this platform
4790 # Common symbols not allowed in MH_DYLIB files
4791 PICFLAG_FOR_TARGET
=-fno-common
4794 # PIC is the default.
4797 # PIC is the default for 64-bit PA HP-UX.
4799 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
4801 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
4803 i
[34567]86-*-interix[3-9]*)
4804 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4805 # Instead, we relocate shared libraries at runtime.
4807 i
[34567]86-*-nto-qnx*)
4808 # QNX uses GNU C++, but need to define -shared option too, otherwise
4810 PICFLAG_FOR_TARGET
='-fPIC -shared'
4812 i
[34567]86-pc-msdosdjgpp*)
4813 # DJGPP does not support shared libraries at all.
4816 # On IA64 HP-UX, PIC is the default but the pic flag
4817 # sets the default TLS model and affects inlining.
4818 PICFLAG_FOR_TARGET
=-fPIC
4821 # PIC is the default.
4823 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
4824 # All AIX code is PIC.
4827 # Some targets support both -fPIC and -fpic, but prefer the latter.
4829 i
[34567]86-*-* | x86_64-
*-*)
4830 PICFLAG_FOR_TARGET
=-fpic
4832 # FIXME: Override -fPIC default in libgcc only?
4833 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
4834 PICFLAG_FOR_TARGET
=-fpic
4836 # FIXME: Simplify to sh*-*-netbsd*?
4837 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
4838 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
4839 PICFLAG_FOR_TARGET
=-fpic
4841 # Default to -fPIC unless specified otherwise.
4843 PICFLAG_FOR_TARGET
=-fPIC
4847 # If the user explicitly uses -fpic/-fPIC, keep that.
4848 case "${CFLAGS_FOR_TARGET}" in
4850 PICFLAG_FOR_TARGET
=-fpic
4853 PICFLAG_FOR_TARGET
=-fPIC
4859 # -------------------------
4860 # Check C compiler features
4861 # -------------------------
4865 ac_cpp
='$CPP $CPPFLAGS'
4866 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4867 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4868 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4870 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4871 # On Suns, sometimes $CPP names a directory.
4872 if test -n "$CPP" && test -d "$CPP"; then
4875 if test -z "$CPP"; then
4876 if test "${ac_cv_prog_CPP+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4879 # Double quotes because CPP needs to be expanded
4880 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4883 for ac_c_preproc_warn_flag
in '' yes
4885 # Use a header file that comes with gcc, so configuring glibc
4886 # with a fresh cross-compiler works.
4887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4888 # <limits.h> exists even on freestanding compilers.
4889 # On the NeXT, cc -E runs the code through the compiler's parser,
4890 # not just through cpp. "Syntax error" is here to catch this case.
4891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4894 # include <limits.h>
4896 # include <assert.h>
4900 if ac_fn_c_try_cpp
"$LINENO"; then :
4903 # Broken: fails on valid input.
4906 rm -f conftest.err conftest.
$ac_ext
4908 # OK, works on sane cases. Now check whether nonexistent headers
4909 # can be detected and how.
4910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912 #include <ac_nonexistent.h>
4914 if ac_fn_c_try_cpp
"$LINENO"; then :
4915 # Broken: success on invalid input.
4918 # Passes both tests.
4922 rm -f conftest.err conftest.
$ac_ext
4925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4926 rm -f conftest.err conftest.
$ac_ext
4927 if $ac_preproc_ok; then :
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4940 $as_echo "$CPP" >&6; }
4942 for ac_c_preproc_warn_flag
in '' yes
4944 # Use a header file that comes with gcc, so configuring glibc
4945 # with a fresh cross-compiler works.
4946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4947 # <limits.h> exists even on freestanding compilers.
4948 # On the NeXT, cc -E runs the code through the compiler's parser,
4949 # not just through cpp. "Syntax error" is here to catch this case.
4950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4953 # include <limits.h>
4955 # include <assert.h>
4959 if ac_fn_c_try_cpp
"$LINENO"; then :
4962 # Broken: fails on valid input.
4965 rm -f conftest.err conftest.
$ac_ext
4967 # OK, works on sane cases. Now check whether nonexistent headers
4968 # can be detected and how.
4969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4971 #include <ac_nonexistent.h>
4973 if ac_fn_c_try_cpp
"$LINENO"; then :
4974 # Broken: success on invalid input.
4977 # Passes both tests.
4981 rm -f conftest.err conftest.
$ac_ext
4984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4985 rm -f conftest.err conftest.
$ac_ext
4986 if $ac_preproc_ok; then :
4989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4991 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4992 See \`config.log' for more details." "$LINENO" 5; }
4996 ac_cpp
='$CPP $CPPFLAGS'
4997 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4998 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4999 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5003 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5004 if test "${ac_cv_path_GREP+set}" = set; then :
5005 $as_echo_n "(cached) " >&6
5007 if test -z "$GREP"; then
5008 ac_path_GREP_found
=false
5009 # Loop through the user's path and test for each of PROGNAME-LIST
5010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5011 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5014 test -z "$as_dir" && as_dir
=.
5015 for ac_prog
in grep ggrep
; do
5016 for ac_exec_ext
in '' $ac_executable_extensions; do
5017 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5018 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5019 # Check for GNU ac_path_GREP and select it if it is found.
5020 # Check for GNU $ac_path_GREP
5021 case `"$ac_path_GREP" --version 2>&1` in
5023 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5026 $as_echo_n 0123456789 >"conftest.in"
5029 cat "conftest.in" "conftest.in" >"conftest.tmp"
5030 mv "conftest.tmp" "conftest.in"
5031 cp "conftest.in" "conftest.nl"
5032 $as_echo 'GREP' >> "conftest.nl"
5033 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5034 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5035 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5036 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5037 # Best one so far, save it but keep looking for a better one
5038 ac_cv_path_GREP
="$ac_path_GREP"
5039 ac_path_GREP_max
=$ac_count
5041 # 10*(2^10) chars as input seems more than enough
5042 test $ac_count -gt 10 && break
5044 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5047 $ac_path_GREP_found && break 3
5052 if test -z "$ac_cv_path_GREP"; then
5053 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5056 ac_cv_path_GREP
=$GREP
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5061 $as_echo "$ac_cv_path_GREP" >&6; }
5062 GREP
="$ac_cv_path_GREP"
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5066 $as_echo_n "checking for egrep... " >&6; }
5067 if test "${ac_cv_path_EGREP+set}" = set; then :
5068 $as_echo_n "(cached) " >&6
5070 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5071 then ac_cv_path_EGREP
="$GREP -E"
5073 if test -z "$EGREP"; then
5074 ac_path_EGREP_found
=false
5075 # Loop through the user's path and test for each of PROGNAME-LIST
5076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5077 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5080 test -z "$as_dir" && as_dir
=.
5081 for ac_prog
in egrep; do
5082 for ac_exec_ext
in '' $ac_executable_extensions; do
5083 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5084 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5085 # Check for GNU ac_path_EGREP and select it if it is found.
5086 # Check for GNU $ac_path_EGREP
5087 case `"$ac_path_EGREP" --version 2>&1` in
5089 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5092 $as_echo_n 0123456789 >"conftest.in"
5095 cat "conftest.in" "conftest.in" >"conftest.tmp"
5096 mv "conftest.tmp" "conftest.in"
5097 cp "conftest.in" "conftest.nl"
5098 $as_echo 'EGREP' >> "conftest.nl"
5099 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5100 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5101 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5102 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5103 # Best one so far, save it but keep looking for a better one
5104 ac_cv_path_EGREP
="$ac_path_EGREP"
5105 ac_path_EGREP_max
=$ac_count
5107 # 10*(2^10) chars as input seems more than enough
5108 test $ac_count -gt 10 && break
5110 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5113 $ac_path_EGREP_found && break 3
5118 if test -z "$ac_cv_path_EGREP"; then
5119 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5122 ac_cv_path_EGREP
=$EGREP
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5128 $as_echo "$ac_cv_path_EGREP" >&6; }
5129 EGREP
="$ac_cv_path_EGREP"
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5133 $as_echo_n "checking for ANSI C header files... " >&6; }
5134 if test "${ac_cv_header_stdc+set}" = set; then :
5135 $as_echo_n "(cached) " >&6
5137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5152 if ac_fn_c_try_compile
"$LINENO"; then :
5153 ac_cv_header_stdc
=yes
5155 ac_cv_header_stdc
=no
5157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5159 if test $ac_cv_header_stdc = yes; then
5160 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5167 $EGREP "memchr" >/dev
/null
2>&1; then :
5170 ac_cv_header_stdc
=no
5176 if test $ac_cv_header_stdc = yes; then
5177 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5184 $EGREP "free" >/dev
/null
2>&1; then :
5187 ac_cv_header_stdc
=no
5193 if test $ac_cv_header_stdc = yes; then
5194 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5195 if test "$cross_compiling" = yes; then :
5198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5202 #if ((' ' & 0x0FF) == 0x020)
5203 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5204 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5206 # define ISLOWER(c) \
5207 (('a' <= (c) && (c) <= 'i') \
5208 || ('j' <= (c) && (c) <= 'r') \
5209 || ('s' <= (c) && (c) <= 'z'))
5210 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5213 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5218 for (i = 0; i < 256; i++)
5219 if (XOR (islower (i), ISLOWER (i))
5220 || toupper (i) != TOUPPER (i))
5225 if ac_fn_c_try_run
"$LINENO"; then :
5228 ac_cv_header_stdc
=no
5230 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5231 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5237 $as_echo "$ac_cv_header_stdc" >&6; }
5238 if test $ac_cv_header_stdc = yes; then
5240 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5244 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5245 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5246 inttypes.h stdint.h unistd.h
5248 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5249 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5251 eval as_val
=\$
$as_ac_Header
5252 if test "x$as_val" = x
""yes; then :
5253 cat >>confdefs.h
<<_ACEOF
5254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5263 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5264 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5271 if test "$MINIX" = yes; then
5273 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5276 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5279 $as_echo "#define _MINIX 1" >>confdefs.h
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5285 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5286 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5292 # define __EXTENSIONS__ 1
5293 $ac_includes_default
5302 if ac_fn_c_try_compile
"$LINENO"; then :
5303 ac_cv_safe_to_define___extensions__
=yes
5305 ac_cv_safe_to_define___extensions__
=no
5307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5310 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5311 test $ac_cv_safe_to_define___extensions__ = yes &&
5312 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5314 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5316 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5318 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5320 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5324 ac_cpp
='$CPP $CPPFLAGS'
5325 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5326 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5327 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5329 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5330 # On Suns, sometimes $CPP names a directory.
5331 if test -n "$CPP" && test -d "$CPP"; then
5334 if test -z "$CPP"; then
5335 if test "${ac_cv_prog_CPP+set}" = set; then :
5336 $as_echo_n "(cached) " >&6
5338 # Double quotes because CPP needs to be expanded
5339 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5342 for ac_c_preproc_warn_flag
in '' yes
5344 # Use a header file that comes with gcc, so configuring glibc
5345 # with a fresh cross-compiler works.
5346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5347 # <limits.h> exists even on freestanding compilers.
5348 # On the NeXT, cc -E runs the code through the compiler's parser,
5349 # not just through cpp. "Syntax error" is here to catch this case.
5350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5353 # include <limits.h>
5355 # include <assert.h>
5359 if ac_fn_c_try_cpp
"$LINENO"; then :
5362 # Broken: fails on valid input.
5365 rm -f conftest.err conftest.
$ac_ext
5367 # OK, works on sane cases. Now check whether nonexistent headers
5368 # can be detected and how.
5369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5371 #include <ac_nonexistent.h>
5373 if ac_fn_c_try_cpp
"$LINENO"; then :
5374 # Broken: success on invalid input.
5377 # Passes both tests.
5381 rm -f conftest.err conftest.
$ac_ext
5384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5385 rm -f conftest.err conftest.
$ac_ext
5386 if $ac_preproc_ok; then :
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5399 $as_echo "$CPP" >&6; }
5401 for ac_c_preproc_warn_flag
in '' yes
5403 # Use a header file that comes with gcc, so configuring glibc
5404 # with a fresh cross-compiler works.
5405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5406 # <limits.h> exists even on freestanding compilers.
5407 # On the NeXT, cc -E runs the code through the compiler's parser,
5408 # not just through cpp. "Syntax error" is here to catch this case.
5409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5412 # include <limits.h>
5414 # include <assert.h>
5418 if ac_fn_c_try_cpp
"$LINENO"; then :
5421 # Broken: fails on valid input.
5424 rm -f conftest.err conftest.
$ac_ext
5426 # OK, works on sane cases. Now check whether nonexistent headers
5427 # can be detected and how.
5428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5430 #include <ac_nonexistent.h>
5432 if ac_fn_c_try_cpp
"$LINENO"; then :
5433 # Broken: success on invalid input.
5436 # Passes both tests.
5440 rm -f conftest.err conftest.
$ac_ext
5443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5444 rm -f conftest.err conftest.
$ac_ext
5445 if $ac_preproc_ok; then :
5448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5450 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5451 See \`config.log' for more details." "$LINENO" 5; }
5455 ac_cpp
='$CPP $CPPFLAGS'
5456 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5457 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5458 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5461 $as_echo_n "checking for inline... " >&6; }
5462 if test "${ac_cv_c_inline+set}" = set; then :
5463 $as_echo_n "(cached) " >&6
5466 for ac_kw
in inline __inline__ __inline
; do
5467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5471 static $ac_kw foo_t static_foo () {return 0; }
5472 $ac_kw foo_t foo () {return 0; }
5476 if ac_fn_c_try_compile
"$LINENO"; then :
5477 ac_cv_c_inline
=$ac_kw
5479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5480 test "$ac_cv_c_inline" != no
&& break
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5485 $as_echo "$ac_cv_c_inline" >&6; }
5487 case $ac_cv_c_inline in
5490 case $ac_cv_c_inline in
5492 *) ac_val
=$ac_cv_c_inline;;
5494 cat >>confdefs.h
<<_ACEOF
5496 #define inline $ac_val
5503 # Check whether --enable-largefile was given.
5504 if test "${enable_largefile+set}" = set; then :
5505 enableval
=$enable_largefile;
5508 if test "$enable_largefile" != no
; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5511 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5512 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5513 $as_echo_n "(cached) " >&6
5515 ac_cv_sys_largefile_CC
=no
5516 if test "$GCC" != yes; then
5519 # IRIX 6.2 and later do not support large files by default,
5520 # so use the C compiler's -n32 option if that helps.
5521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5523 #include <sys/types.h>
5524 /* Check that off_t can represent 2**63 - 1 correctly.
5525 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5526 since some C++ compilers masquerading as C compilers
5527 incorrectly reject 9223372036854775807. */
5528 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5529 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5530 && LARGE_OFF_T % 2147483647 == 1)
5540 if ac_fn_c_try_compile
"$LINENO"; then :
5543 rm -f core conftest.err conftest.
$ac_objext
5545 if ac_fn_c_try_compile
"$LINENO"; then :
5546 ac_cv_sys_largefile_CC
=' -n32'; break
5548 rm -f core conftest.err conftest.
$ac_objext
5552 rm -f conftest.
$ac_ext
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5556 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5557 if test "$ac_cv_sys_largefile_CC" != no
; then
5558 CC
=$CC$ac_cv_sys_largefile_CC
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5562 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5563 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5564 $as_echo_n "(cached) " >&6
5567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 #include <sys/types.h>
5570 /* Check that off_t can represent 2**63 - 1 correctly.
5571 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5572 since some C++ compilers masquerading as C compilers
5573 incorrectly reject 9223372036854775807. */
5574 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5575 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5576 && LARGE_OFF_T % 2147483647 == 1)
5586 if ac_fn_c_try_compile
"$LINENO"; then :
5587 ac_cv_sys_file_offset_bits
=no
; break
5589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5592 #define _FILE_OFFSET_BITS 64
5593 #include <sys/types.h>
5594 /* Check that off_t can represent 2**63 - 1 correctly.
5595 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5596 since some C++ compilers masquerading as C compilers
5597 incorrectly reject 9223372036854775807. */
5598 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5599 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5600 && LARGE_OFF_T % 2147483647 == 1)
5610 if ac_fn_c_try_compile
"$LINENO"; then :
5611 ac_cv_sys_file_offset_bits
=64; break
5613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5614 ac_cv_sys_file_offset_bits
=unknown
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5619 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5620 case $ac_cv_sys_file_offset_bits in #(
5623 cat >>confdefs.h
<<_ACEOF
5624 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5629 if test $ac_cv_sys_file_offset_bits = unknown
; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5631 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5632 if test "${ac_cv_sys_large_files+set}" = set; then :
5633 $as_echo_n "(cached) " >&6
5636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 #include <sys/types.h>
5639 /* Check that off_t can represent 2**63 - 1 correctly.
5640 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5641 since some C++ compilers masquerading as C compilers
5642 incorrectly reject 9223372036854775807. */
5643 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5644 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5645 && LARGE_OFF_T % 2147483647 == 1)
5655 if ac_fn_c_try_compile
"$LINENO"; then :
5656 ac_cv_sys_large_files
=no
; break
5658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 #define _LARGE_FILES 1
5662 #include <sys/types.h>
5663 /* Check that off_t can represent 2**63 - 1 correctly.
5664 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5665 since some C++ compilers masquerading as C compilers
5666 incorrectly reject 9223372036854775807. */
5667 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5668 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5669 && LARGE_OFF_T % 2147483647 == 1)
5679 if ac_fn_c_try_compile
"$LINENO"; then :
5680 ac_cv_sys_large_files
=1; break
5682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5683 ac_cv_sys_large_files
=unknown
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5688 $as_echo "$ac_cv_sys_large_files" >&6; }
5689 case $ac_cv_sys_large_files in #(
5692 cat >>confdefs.h
<<_ACEOF
5693 #define _LARGE_FILES $ac_cv_sys_large_files
5702 # sizeof(char) is 1 by definition.
5703 # The cast to long int works around a bug in the HP C Compiler
5704 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5705 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5706 # This bug is HP SR number 8606223364.
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5708 $as_echo_n "checking size of void *... " >&6; }
5709 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5710 $as_echo_n "(cached) " >&6
5712 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5715 if test "$ac_cv_type_void_p" = yes; then
5716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5718 { as_fn_set_status
77
5719 as_fn_error
"cannot compute sizeof (void *)
5720 See \`config.log' for more details." "$LINENO" 5; }; }
5722 ac_cv_sizeof_void_p
=0
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5728 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5732 cat >>confdefs.h
<<_ACEOF
5733 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5737 # The cast to long int works around a bug in the HP C Compiler
5738 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5739 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5740 # This bug is HP SR number 8606223364.
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5742 $as_echo_n "checking size of short... " >&6; }
5743 if test "${ac_cv_sizeof_short+set}" = set; then :
5744 $as_echo_n "(cached) " >&6
5746 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5749 if test "$ac_cv_type_short" = yes; then
5750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5752 { as_fn_set_status
77
5753 as_fn_error
"cannot compute sizeof (short)
5754 See \`config.log' for more details." "$LINENO" 5; }; }
5756 ac_cv_sizeof_short
=0
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5762 $as_echo "$ac_cv_sizeof_short" >&6; }
5766 cat >>confdefs.h
<<_ACEOF
5767 #define SIZEOF_SHORT $ac_cv_sizeof_short
5771 # The cast to long int works around a bug in the HP C Compiler
5772 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5773 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5774 # This bug is HP SR number 8606223364.
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5776 $as_echo_n "checking size of int... " >&6; }
5777 if test "${ac_cv_sizeof_int+set}" = set; then :
5778 $as_echo_n "(cached) " >&6
5780 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5783 if test "$ac_cv_type_int" = yes; then
5784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5786 { as_fn_set_status
77
5787 as_fn_error
"cannot compute sizeof (int)
5788 See \`config.log' for more details." "$LINENO" 5; }; }
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5796 $as_echo "$ac_cv_sizeof_int" >&6; }
5800 cat >>confdefs.h
<<_ACEOF
5801 #define SIZEOF_INT $ac_cv_sizeof_int
5805 # The cast to long int works around a bug in the HP C Compiler
5806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5808 # This bug is HP SR number 8606223364.
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5810 $as_echo_n "checking size of long... " >&6; }
5811 if test "${ac_cv_sizeof_long+set}" = set; then :
5812 $as_echo_n "(cached) " >&6
5814 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5817 if test "$ac_cv_type_long" = yes; then
5818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5820 { as_fn_set_status
77
5821 as_fn_error
"cannot compute sizeof (long)
5822 See \`config.log' for more details." "$LINENO" 5; }; }
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5830 $as_echo "$ac_cv_sizeof_long" >&6; }
5834 cat >>confdefs.h
<<_ACEOF
5835 #define SIZEOF_LONG $ac_cv_sizeof_long
5839 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5840 if test "x$ac_cv_type_long_long" = x
""yes; then :
5842 cat >>confdefs.h
<<_ACEOF
5843 #define HAVE_LONG_LONG 1
5846 # The cast to long int works around a bug in the HP C Compiler
5847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5849 # This bug is HP SR number 8606223364.
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5851 $as_echo_n "checking size of long long... " >&6; }
5852 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5853 $as_echo_n "(cached) " >&6
5855 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5858 if test "$ac_cv_type_long_long" = yes; then
5859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5861 { as_fn_set_status
77
5862 as_fn_error
"cannot compute sizeof (long long)
5863 See \`config.log' for more details." "$LINENO" 5; }; }
5865 ac_cv_sizeof_long_long
=0
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5871 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5875 cat >>confdefs.h
<<_ACEOF
5876 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5882 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5883 case $ac_cv_c_int8_t in #(
5887 cat >>confdefs.h
<<_ACEOF
5888 #define int8_t $ac_cv_c_int8_t
5893 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5894 case $ac_cv_c_int16_t in #(
5898 cat >>confdefs.h
<<_ACEOF
5899 #define int16_t $ac_cv_c_int16_t
5904 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5905 case $ac_cv_c_int32_t in #(
5909 cat >>confdefs.h
<<_ACEOF
5910 #define int32_t $ac_cv_c_int32_t
5915 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5916 case $ac_cv_c_int64_t in #(
5920 cat >>confdefs.h
<<_ACEOF
5921 #define int64_t $ac_cv_c_int64_t
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5928 $as_echo_n "checking for long long int... " >&6; }
5929 if test "${ac_cv_type_long_long_int+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
5932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5935 /* For now, do not test the preprocessor; as of 2007 there are too many
5936 implementations with broken preprocessors. Perhaps this can
5937 be revisited in 2012. In the meantime, code should not expect
5938 #if to work with literals wider than 32 bits. */
5939 /* Test literals. */
5940 long long int ll = 9223372036854775807ll;
5941 long long int nll = -9223372036854775807LL;
5942 unsigned long long int ull = 18446744073709551615ULL;
5943 /* Test constant expressions. */
5944 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5946 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5952 /* Test availability of runtime routines for shift and division. */
5953 long long int llmax = 9223372036854775807ll;
5954 unsigned long long int ullmax = 18446744073709551615ull;
5955 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5956 | (llmax / ll) | (llmax % ll)
5957 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5958 | (ullmax / ull) | (ullmax % ull));
5964 if ac_fn_c_try_link
"$LINENO"; then :
5965 if test "$cross_compiling" = yes; then :
5966 ac_cv_type_long_long_int
=yes
5968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5973 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5974 # define LLONG_MAX (HALF - 1 + HALF)
5979 long long int n = 1;
5983 long long int m = n << i;
5986 if (LLONG_MAX / 2 < m)
5994 if ac_fn_c_try_run
"$LINENO"; then :
5995 ac_cv_type_long_long_int
=yes
5997 ac_cv_type_long_long_int
=no
5999 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6000 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6004 ac_cv_type_long_long_int
=no
6006 rm -f core conftest.err conftest.
$ac_objext \
6007 conftest
$ac_exeext conftest.
$ac_ext
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6010 $as_echo "$ac_cv_type_long_long_int" >&6; }
6011 if test $ac_cv_type_long_long_int = yes; then
6013 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6019 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6020 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6022 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6025 test $ac_cv_type_long_long_int = yes \
6026 && ac_type
='long long int' \
6027 || ac_type
='long int'
6029 cat >>confdefs.h
<<_ACEOF
6030 #define intmax_t $ac_type
6037 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6038 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6040 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6043 for ac_type
in 'int' 'long int' 'long long int'; do
6044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6046 $ac_includes_default
6050 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6057 if ac_fn_c_try_compile
"$LINENO"; then :
6059 cat >>confdefs.h
<<_ACEOF
6060 #define intptr_t $ac_type
6065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6066 test -z "$ac_type" && break
6071 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6072 case $ac_cv_c_uint8_t in #(
6076 $as_echo "#define _UINT8_T 1" >>confdefs.h
6079 cat >>confdefs.h
<<_ACEOF
6080 #define uint8_t $ac_cv_c_uint8_t
6085 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6086 case $ac_cv_c_uint16_t in #(
6091 cat >>confdefs.h
<<_ACEOF
6092 #define uint16_t $ac_cv_c_uint16_t
6097 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6098 case $ac_cv_c_uint32_t in #(
6102 $as_echo "#define _UINT32_T 1" >>confdefs.h
6105 cat >>confdefs.h
<<_ACEOF
6106 #define uint32_t $ac_cv_c_uint32_t
6111 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6112 case $ac_cv_c_uint64_t in #(
6116 $as_echo "#define _UINT64_T 1" >>confdefs.h
6119 cat >>confdefs.h
<<_ACEOF
6120 #define uint64_t $ac_cv_c_uint64_t
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6127 $as_echo_n "checking for unsigned long long int... " >&6; }
6128 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6129 $as_echo_n "(cached) " >&6
6131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6134 /* For now, do not test the preprocessor; as of 2007 there are too many
6135 implementations with broken preprocessors. Perhaps this can
6136 be revisited in 2012. In the meantime, code should not expect
6137 #if to work with literals wider than 32 bits. */
6138 /* Test literals. */
6139 long long int ll = 9223372036854775807ll;
6140 long long int nll = -9223372036854775807LL;
6141 unsigned long long int ull = 18446744073709551615ULL;
6142 /* Test constant expressions. */
6143 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6145 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6151 /* Test availability of runtime routines for shift and division. */
6152 long long int llmax = 9223372036854775807ll;
6153 unsigned long long int ullmax = 18446744073709551615ull;
6154 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6155 | (llmax / ll) | (llmax % ll)
6156 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6157 | (ullmax / ull) | (ullmax % ull));
6163 if ac_fn_c_try_link
"$LINENO"; then :
6164 ac_cv_type_unsigned_long_long_int
=yes
6166 ac_cv_type_unsigned_long_long_int
=no
6168 rm -f core conftest.err conftest.
$ac_objext \
6169 conftest
$ac_exeext conftest.
$ac_ext
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6172 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6173 if test $ac_cv_type_unsigned_long_long_int = yes; then
6175 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6181 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6182 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6184 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6187 test $ac_cv_type_unsigned_long_long_int = yes \
6188 && ac_type
='unsigned long long int' \
6189 || ac_type
='unsigned long int'
6191 cat >>confdefs.h
<<_ACEOF
6192 #define uintmax_t $ac_type
6199 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6200 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6202 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6205 for ac_type
in 'unsigned int' 'unsigned long int' \
6206 'unsigned long long int'; do
6207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6209 $ac_includes_default
6213 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6220 if ac_fn_c_try_compile
"$LINENO"; then :
6222 cat >>confdefs.h
<<_ACEOF
6223 #define uintptr_t $ac_type
6228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6229 test -z "$ac_type" && break
6246 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6247 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6250 # check what underlying integer type int64_t uses
6252 ac_cpp
='$CXXCPP $CPPFLAGS'
6253 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6254 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6255 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6259 $as_echo_n "checking for int64_t underlying type... " >&6; }
6260 if test "${ac_cv_int64_t_type+set}" = set; then :
6261 $as_echo_n "(cached) " >&6
6264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6267 #ifdef HAVE_STDINT_H
6270 template <typename T> struct X { };
6272 struct X<long> { typedef long t; };
6282 if ac_fn_cxx_try_compile
"$LINENO"; then :
6283 ac_cv_int64_t_type
=long
6285 ac_cv_int64_t_type
="long long"
6287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6290 $as_echo "$ac_cv_int64_t_type" >&6; }
6291 if test "$ac_cv_int64_t_type" = "long"; then
6293 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6299 #ifdef HAVE_STDINT_H
6302 template <typename T> struct X { };
6304 struct X<long long> { typedef long long t; };
6314 if ac_fn_cxx_try_compile
"$LINENO"; then :
6317 as_fn_error
"error verifying int64_t uses long long" "$LINENO" 5
6319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6322 ac_cpp
='$CPP $CPPFLAGS'
6323 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6331 # ---------------------
6332 # Warnings and checking
6333 # ---------------------
6335 # Check $CC warning features (if it's GCC).
6336 # We want to use -pedantic, but we don't want warnings about
6339 # * overlong strings
6340 # * C++11 narrowing conversions in { }
6341 # So, we only use -pedantic if we can disable those warnings.
6343 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6344 # Check whether --enable-build-format-warnings was given.
6345 if test "${enable_build_format_warnings+set}" = set; then :
6346 enableval
=$enable_build_format_warnings;
6348 enable_build_format_warnings
=yes
6351 if test $enable_build_format_warnings = no
; then :
6357 save_CFLAGS
="$CFLAGS"
6358 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6359 # Do the check with the no- prefix removed since gcc silently
6360 # accepts any -Wno-* option on purpose
6361 case $real_option in
6362 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6363 *) option
=$real_option ;;
6365 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6368 $as_echo_n "checking whether $CC supports $option... " >&6; }
6369 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6370 $as_echo_n "(cached) " >&6
6373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6384 if ac_fn_c_try_compile
"$LINENO"; then :
6385 eval "$as_acx_Woption=yes"
6387 eval "$as_acx_Woption=no"
6389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6392 eval ac_res
=\$
$as_acx_Woption
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6394 $as_echo "$ac_res" >&6; }
6395 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6396 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6399 CFLAGS
="$save_CFLAGS"
6402 save_CFLAGS
="$CFLAGS"
6403 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6404 # Do the check with the no- prefix removed since gcc silently
6405 # accepts any -Wno-* option on purpose
6406 case $real_option in
6407 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6408 *) option
=$real_option ;;
6410 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6413 $as_echo_n "checking whether $CC supports $option... " >&6; }
6414 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6415 $as_echo_n "(cached) " >&6
6418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6429 if ac_fn_c_try_compile
"$LINENO"; then :
6430 eval "$as_acx_Woption=yes"
6432 eval "$as_acx_Woption=no"
6434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6437 eval ac_res
=\$
$as_acx_Woption
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6439 $as_echo "$ac_res" >&6; }
6440 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6441 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6444 CFLAGS
="$save_CFLAGS"
6447 save_CFLAGS
="$CFLAGS"
6448 for real_option
in -Wmissing-format-attribute; do
6449 # Do the check with the no- prefix removed since gcc silently
6450 # accepts any -Wno-* option on purpose
6451 case $real_option in
6452 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6453 *) option
=$real_option ;;
6455 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6458 $as_echo_n "checking whether $CC supports $option... " >&6; }
6459 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6460 $as_echo_n "(cached) " >&6
6463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6474 if ac_fn_c_try_compile
"$LINENO"; then :
6475 eval "$as_acx_Woption=yes"
6477 eval "$as_acx_Woption=no"
6479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6482 eval ac_res
=\$
$as_acx_Woption
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6484 $as_echo "$ac_res" >&6; }
6485 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6486 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6489 CFLAGS
="$save_CFLAGS"
6491 save_CFLAGS
="$CFLAGS"
6492 for real_option
in -Woverloaded-virtual; do
6493 # Do the check with the no- prefix removed since gcc silently
6494 # accepts any -Wno-* option on purpose
6495 case $real_option in
6496 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6497 *) option
=$real_option ;;
6499 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6502 $as_echo_n "checking whether $CC supports $option... " >&6; }
6503 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6504 $as_echo_n "(cached) " >&6
6507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6518 if ac_fn_c_try_compile
"$LINENO"; then :
6519 eval "$as_acx_Woption=yes"
6521 eval "$as_acx_Woption=no"
6523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6526 eval ac_res
=\$
$as_acx_Woption
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6528 $as_echo "$ac_res" >&6; }
6529 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6530 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6533 CFLAGS
="$save_CFLAGS"
6536 save_CFLAGS
="$CFLAGS"
6537 for real_option
in -Wold-style-definition -Wc++-compat; do
6538 # Do the check with the no- prefix removed since gcc silently
6539 # accepts any -Wno-* option on purpose
6540 case $real_option in
6541 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6542 *) option
=$real_option ;;
6544 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6547 $as_echo_n "checking whether $CC supports $option... " >&6; }
6548 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6549 $as_echo_n "(cached) " >&6
6552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h. */
6563 if ac_fn_c_try_compile
"$LINENO"; then :
6564 eval "$as_acx_Woption=yes"
6566 eval "$as_acx_Woption=no"
6568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6571 eval ac_res
=\$
$as_acx_Woption
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6573 $as_echo "$ac_res" >&6; }
6574 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6575 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6578 CFLAGS
="$save_CFLAGS"
6580 # Do the check with the no- prefix removed from the warning options
6581 # since gcc silently accepts any -Wno-* option on purpose
6582 if test "$GCC" = yes; then :
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6584 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6585 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6586 $as_echo_n "(cached) " >&6
6588 save_CFLAGS
="$CFLAGS"
6589 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6601 if ac_fn_c_try_compile
"$LINENO"; then :
6602 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6604 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6607 CFLAGS
="$save_CFLAGS"
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6610 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6611 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6612 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6617 # Check whether --enable-werror-always was given.
6618 if test "${enable_werror_always+set}" = set; then :
6619 enableval
=$enable_werror_always;
6621 enable_werror_always
=no
6624 if test $enable_werror_always = yes; then :
6625 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6630 # The above macros do nothing if the compiler is not GCC. However, the
6631 # Makefile has more goo to add other flags, so these variables are used
6632 # to enable warnings only for GCC.
6635 if test "x$GCC" = "xyes"; then
6636 warn_cflags
='$(GCC_WARN_CFLAGS)'
6637 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6642 # Disable exceptions and RTTI if building with g++
6644 save_CFLAGS
="$CFLAGS"
6645 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6646 # Do the check with the no- prefix removed since gcc silently
6647 # accepts any -Wno-* option on purpose
6648 case $real_option in
6649 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6650 *) option
=$real_option ;;
6652 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6655 $as_echo_n "checking whether $CC supports $option... " >&6; }
6656 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6657 $as_echo_n "(cached) " >&6
6660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6671 if ac_fn_c_try_compile
"$LINENO"; then :
6672 eval "$as_acx_Woption=yes"
6674 eval "$as_acx_Woption=no"
6676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6679 eval ac_res
=\$
$as_acx_Woption
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6681 $as_echo "$ac_res" >&6; }
6682 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6683 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6686 CFLAGS
="$save_CFLAGS"
6689 # Enable expensive internal checks
6691 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6695 # Check whether --enable-checking was given.
6696 if test "${enable_checking+set}" = set; then :
6697 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6700 # Determine the default checks.
6701 if test x
$is_release = x
; then
6702 ac_checking_flags
=yes
6704 ac_checking_flags
=release
6708 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6709 for check
in release
$ac_checking_flags
6712 # these set all the flags to specific states
6713 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6714 ac_fold_checking
= ; ac_gc_checking
=1 ;
6715 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6716 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6717 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6718 ac_types_checking
=1 ;;
6719 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6720 ac_fold_checking
= ; ac_gc_checking
= ;
6721 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6722 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6723 ac_tree_checking
= ; ac_valgrind_checking
= ;
6724 ac_types_checking
= ;;
6725 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6726 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6727 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6728 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6729 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6730 ac_types_checking
=1 ;;
6731 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6732 ac_fold_checking
= ; ac_gc_checking
= ;
6733 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6734 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6735 ac_tree_checking
= ; ac_valgrind_checking
= ;
6736 ac_types_checking
= ;;
6737 # these enable particular checks
6738 assert
) ac_assert_checking
=1 ;;
6739 df
) ac_df_checking
=1 ;;
6740 fold) ac_fold_checking
=1 ;;
6741 gc
) ac_gc_checking
=1 ;;
6742 gcac
) ac_gc_always_collect
=1 ;;
6743 gimple
) ac_gimple_checking
=1 ;;
6744 misc
) ac_checking
=1 ;;
6745 rtl
) ac_rtl_checking
=1 ;;
6746 rtlflag
) ac_rtlflag_checking
=1 ;;
6747 runtime
) ac_runtime_checking
=1 ;;
6748 tree
) ac_tree_checking
=1 ;;
6749 types
) ac_types_checking
=1 ;;
6750 valgrind
) ac_valgrind_checking
=1 ;;
6751 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6757 if test x
$ac_checking != x
; then
6759 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6761 nocommon_flag
=-fno-common
6764 if test x
$ac_df_checking != x
; then
6766 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6769 if test x
$ac_assert_checking != x
; then
6771 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6774 if test x
$ac_gimple_checking != x
; then
6776 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6780 if test x
$ac_runtime_checking != x
; then
6782 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6785 if test x
$ac_tree_checking != x
; then
6787 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6789 TREEBROWSER
=tree-browser.o
6792 if test x
$ac_types_checking != x
; then
6794 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6799 if test x
$ac_rtl_checking != x
; then
6801 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6804 if test x
$ac_rtlflag_checking != x
; then
6806 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6809 if test x
$ac_gc_checking != x
; then
6811 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6814 if test x
$ac_gc_always_collect != x
; then
6816 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6819 if test x
$ac_fold_checking != x
; then
6821 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6824 valgrind_path_defines
=
6827 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6828 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6836 # It is certainly possible that there's valgrind but no valgrind.h.
6837 # GCC relies on making annotations so we must have both.
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6839 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6842 #include <valgrind/memcheck.h>
6843 #ifndef VALGRIND_DISCARD
6844 #error VALGRIND_DISCARD not defined
6847 if ac_fn_c_try_cpp
"$LINENO"; then :
6848 gcc_cv_header_valgrind_memcheck_h
=yes
6850 gcc_cv_header_valgrind_memcheck_h
=no
6852 rm -f conftest.err conftest.
$ac_ext
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6854 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6856 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6859 #include <memcheck.h>
6860 #ifndef VALGRIND_DISCARD
6861 #error VALGRIND_DISCARD not defined
6864 if ac_fn_c_try_cpp
"$LINENO"; then :
6865 gcc_cv_header_memcheck_h
=yes
6867 gcc_cv_header_memcheck_h
=no
6869 rm -f conftest.err conftest.
$ac_ext
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6871 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6872 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6874 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6877 if test $gcc_cv_header_memcheck_h = yes; then
6879 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6883 if test x
$ac_valgrind_checking != x
; then
6885 # Prepare PATH_SEPARATOR.
6886 # The user is always right.
6887 if test "${PATH_SEPARATOR+set}" != set; then
6888 echo "#! /bin/sh" >conf$$.sh
6889 echo "exit 0" >>conf$$.sh
6891 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6899 # Find out how to test for executable files. Don't use a zero-byte file,
6900 # as systems may use methods other than mode bits to determine executability.
6901 cat >conf$$.
file <<_ASEOF
6905 chmod +x conf$$.
file
6906 if test -x conf$$.
file >/dev
/null
2>&1; then
6907 ac_executable_p
="test -x"
6909 ac_executable_p
="test -f"
6913 # Extract the first word of "valgrind", so it can be a program name with args.
6914 set dummy valgrind
; ac_word
=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6918 $as_echo_n "(cached) " >&6
6920 case "$valgrind_path" in
6922 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6925 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6926 for ac_dir
in $PATH; do
6928 test -z "$ac_dir" && ac_dir
=.
6929 for ac_exec_ext
in '' $ac_executable_extensions; do
6930 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6931 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6932 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6942 valgrind_path
="$ac_cv_path_valgrind_path"
6943 if test -n "$valgrind_path"; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6945 $as_echo "$valgrind_path" >&6; }
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6951 if test "x$valgrind_path" = "x" \
6952 ||
(test $have_valgrind_h = no \
6953 && test $gcc_cv_header_memcheck_h = no \
6954 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6955 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6957 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6958 valgrind_command
="$valgrind_path -q"
6960 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6966 # Enable code coverage collection
6967 # Check whether --enable-coverage was given.
6968 if test "${enable_coverage+set}" = set; then :
6969 enableval
=$enable_coverage; case "${enableval}" in
6971 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6974 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6977 # a.k.a. --disable-coverage
6981 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6990 # Check whether --enable-gather-detailed-mem-stats was given.
6991 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6992 enableval
=$enable_gather_detailed_mem_stats;
6994 enable_gather_detailed_mem_stats
=no
6997 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6999 cat >>confdefs.h
<<_ACEOF
7000 #define GATHER_STATISTICS $gather_stats
7004 # Check whether --enable-valgrind-annotations was given.
7005 if test "${enable_valgrind_annotations+set}" = set; then :
7006 enableval
=$enable_valgrind_annotations;
7008 enable_valgrind_annotations
=no
7011 if test x
$enable_valgrind_annotations != xno \
7012 ||
test x
$ac_valgrind_checking != x
; then
7013 if (test $have_valgrind_h = no \
7014 && test $gcc_cv_header_memcheck_h = no \
7015 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7016 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7019 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7023 # -------------------------------
7024 # Miscenalleous configure options
7025 # -------------------------------
7029 # Check whether --with-stabs was given.
7030 if test "${with_stabs+set}" = set; then :
7031 withval
=$with_stabs; stabs
="$with_stabs"
7037 # Determine whether or not multilibs are enabled.
7038 # Check whether --enable-multilib was given.
7039 if test "${enable_multilib+set}" = set; then :
7040 enableval
=$enable_multilib;
7047 # Determine whether or not multiarch is enabled.
7048 # Check whether --enable-multiarch was given.
7049 if test "${enable_multiarch+set}" = set; then :
7050 enableval
=$enable_multiarch; case "${enableval}" in
7051 yes|no|auto
) enable_multiarch
=$enableval;;
7052 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7055 enable_multiarch
=auto
7058 if test x
${enable_multiarch} = xauto
; then
7059 if test x
${with_native_system_header_dir} != x
; then
7060 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7063 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7064 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7069 $as_echo_n "checking for multiarch configuration... " >&6; }
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7072 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7074 # needed for setting the multiarch name for soft-float/hard-float ABIs
7078 # Enable __cxa_atexit for C++.
7079 # Check whether --enable-__cxa_atexit was given.
7080 if test "${enable___cxa_atexit+set}" = set; then :
7081 enableval
=$enable___cxa_atexit;
7085 # Enable C extension for decimal float if target supports it.
7087 # Check whether --enable-decimal-float was given.
7088 if test "${enable_decimal_float+set}" = set; then :
7089 enableval
=$enable_decimal_float;
7090 case $enable_decimal_float in
7091 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7092 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7093 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7099 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7101 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7102 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7103 enable_decimal_float
=yes
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7107 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7108 enable_decimal_float
=no
7115 # x86's use BID format instead of DPD
7116 case x
$enable_decimal_float in
7119 i?
86*-*-* | x86_64
*-*-*)
7120 enable_decimal_float
=bid
7123 enable_decimal_float
=dpd
7126 default_decimal_float
=$enable_decimal_float
7129 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7130 # dependency on libdecnumber.
7131 default_decimal_float
=dpd
7138 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7140 cat >>confdefs.h
<<_ACEOF
7141 #define ENABLE_DECIMAL_FLOAT $dfp
7145 # Use default_decimal_float for dependency.
7146 enable_decimal_float
=$default_decimal_float
7148 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7150 cat >>confdefs.h
<<_ACEOF
7151 #define ENABLE_DECIMAL_BID_FORMAT $bid
7155 # Enable C extension for fixed-point arithmetic.
7156 # Check whether --enable-fixed-point was given.
7157 if test "${enable_fixed_point+set}" = set; then :
7158 enableval
=$enable_fixed_point;
7163 enable_fixed_point
=yes
7167 enable_fixed_point
=yes
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7171 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7172 enable_fixed_point
=no
7180 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7182 cat >>confdefs.h
<<_ACEOF
7183 #define ENABLE_FIXED_POINT $fixedpoint
7188 # Pass with no value to take the default
7189 # Pass with a value to specify a thread package
7190 # Check whether --enable-threads was given.
7191 if test "${enable_threads+set}" = set; then :
7192 enableval
=$enable_threads;
7198 # Check whether --enable-tls was given.
7199 if test "${enable_tls+set}" = set; then :
7200 enableval
=$enable_tls;
7203 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7204 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7212 # Check whether --enable-objc-gc was given.
7213 if test "${enable_objc_gc+set}" = set; then :
7214 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7225 # Check whether --with-dwarf2 was given.
7226 if test "${with_dwarf2+set}" = set; then :
7227 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7233 # Check whether --enable-shared was given.
7234 if test "${enable_shared+set}" = set; then :
7235 enableval
=$enable_shared;
7236 case $enable_shared in
7240 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7241 for pkg
in $enableval; do
7242 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7257 # Check whether --with-native-system-header-dir was given.
7258 if test "${with_native_system_header_dir+set}" = set; then :
7259 withval
=$with_native_system_header_dir;
7260 case ${with_native_system_header_dir} in
7261 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7262 /* |
[A-Za-z
]:[\\/]*) ;;
7263 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7265 configured_native_system_header_dir
="${withval}"
7268 configured_native_system_header_dir
=
7273 # Check whether --with-build-sysroot was given.
7274 if test "${with_build_sysroot+set}" = set; then :
7275 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7276 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7279 SYSROOT_CFLAGS_FOR_TARGET
=
7284 if test "x$prefix" = xNONE
; then
7285 test_prefix
=/usr
/local
7289 if test "x$exec_prefix" = xNONE
; then
7290 test_exec_prefix
=$test_prefix
7292 test_exec_prefix
=$exec_prefix
7296 # Check whether --with-sysroot was given.
7297 if test "${with_sysroot+set}" = set; then :
7298 withval
=$with_sysroot;
7299 case ${with_sysroot} in
7300 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7301 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7304 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7305 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7307 case ${TARGET_SYSTEM_ROOT} in
7308 "${test_prefix}"|
"${test_prefix}/"*|\
7309 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7310 '${prefix}'|
'${prefix}/'*|\
7311 '${exec_prefix}'|
'${exec_prefix}/'*)
7312 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7313 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7320 TARGET_SYSTEM_ROOT_DEFINE
=
7321 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7330 # Check whether --with-specs was given.
7331 if test "${with_specs+set}" = set; then :
7332 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7342 # Check whether --with-pkgversion was given.
7343 if test "${with_pkgversion+set}" = set; then :
7344 withval
=$with_pkgversion; case "$withval" in
7345 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7347 *) PKGVERSION
="($withval) " ;;
7358 # Check whether --with-bugurl was given.
7359 if test "${with_bugurl+set}" = set; then :
7360 withval
=$with_bugurl; case "$withval" in
7361 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7364 *) BUGURL
="$withval"
7368 BUGURL
="http://gcc.gnu.org/bugs.html"
7378 REPORT_BUGS_TO
="<$BUGURL>"
7379 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7386 # Sanity check enable_languages in case someone does not run the toplevel
7387 # configure # script.
7388 # Check whether --enable-languages was given.
7389 if test "${enable_languages+set}" = set; then :
7390 enableval
=$enable_languages; case ,${enable_languages}, in
7392 # go safe -- we cannot be much sure without the toplevel
7394 # analysis of which target libs are present and usable
7398 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7403 enable_languages
=c
,${enable_languages}
7411 # Check whether --enable-as-accelerator-for was given.
7412 if test "${enable_as_accelerator_for+set}" = set; then :
7413 enableval
=$enable_as_accelerator_for;
7415 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7417 enable_as_accelerator
=yes
7418 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7419 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7420 accel_dir_suffix
=/accel
/${target_noncanonical}
7421 real_target_noncanonical
=${enable_as_accelerator_for}
7424 enable_as_accelerator
=no
7429 # Check whether --enable-offload-targets was given.
7430 if test "${enable_offload_targets+set}" = set; then :
7431 enableval
=$enable_offload_targets;
7432 if test x
"$enable_offload_targets" = x
; then
7433 as_fn_error
"no offload targets specified" "$LINENO" 5
7437 enable_offload_targets
=
7440 enable_offload_targets
=`echo "$enable_offload_targets" | sed -e 's#,#:#g'`
7442 cat >>confdefs.h
<<_ACEOF
7443 #define OFFLOAD_TARGETS "$enable_offload_targets"
7446 if test x
"$enable_offload_targets" != x
; then
7448 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7453 # Check whether --with-multilib-list was given.
7454 if test "${with_multilib_list+set}" = set; then :
7455 withval
=$with_multilib_list; :
7457 with_multilib_list
=default
7461 # -------------------------
7462 # Checks for other programs
7463 # -------------------------
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7466 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7468 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7469 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7470 $as_echo_n "(cached) " >&6
7472 cat >conftest.
make <<\_ACEOF
7475 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7477 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7478 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7480 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7482 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7486 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7488 $as_echo "yes" >&6; }
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7493 SET_MAKE
="MAKE=${MAKE-make}"
7497 # Find some useful tools
7498 for ac_prog
in gawk mawk nawk
awk
7500 # Extract the first word of "$ac_prog", so it can be a program name with args.
7501 set dummy
$ac_prog; ac_word
=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if test "${ac_cv_prog_AWK+set}" = set; then :
7505 $as_echo_n "(cached) " >&6
7507 if test -n "$AWK"; then
7508 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7514 test -z "$as_dir" && as_dir
=.
7515 for ac_exec_ext
in '' $ac_executable_extensions; do
7516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7517 ac_cv_prog_AWK
="$ac_prog"
7518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 if test -n "$AWK"; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7530 $as_echo "$AWK" >&6; }
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7537 test -n "$AWK" && break
7540 # We need awk to create options.c and options.h.
7541 # Bail out if it's missing.
7543 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7547 $as_echo_n "checking whether ln -s works... " >&6; }
7548 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7549 $as_echo_n "(cached) " >&6
7551 rm -f conftestdata_t
7552 echo >conftestdata_f
7553 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7555 gcc_cv_prog_LN_S
="ln -s"
7557 if ln conftestdata_f conftestdata_t
2>/dev
/null
7561 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7563 gcc_cv_prog_LN_S
="cp -p"
7569 rm -f conftestdata_f conftestdata_t
7572 LN_S
="$gcc_cv_prog_LN_S"
7573 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7575 $as_echo "yes" >&6; }
7577 if test "$gcc_cv_prog_LN_S" = "ln"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7579 $as_echo "no, using ln" >&6; }
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7582 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7587 $as_echo_n "checking whether ln works... " >&6; }
7588 if test "${acx_cv_prog_LN+set}" = set; then :
7589 $as_echo_n "(cached) " >&6
7591 rm -f conftestdata_t
7592 echo >conftestdata_f
7593 if ln conftestdata_f conftestdata_t
2>/dev
/null
7599 rm -f conftestdata_f conftestdata_t
7602 if test $acx_cv_prog_LN = no
; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7605 $as_echo "no, using $LN" >&6; }
7607 LN
="$acx_cv_prog_LN"
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7609 $as_echo "yes" >&6; }
7612 if test -n "$ac_tool_prefix"; then
7613 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7614 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7618 $as_echo_n "(cached) " >&6
7620 if test -n "$RANLIB"; then
7621 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7627 test -z "$as_dir" && as_dir
=.
7628 for ac_exec_ext
in '' $ac_executable_extensions; do
7629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7630 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 RANLIB
=$ac_cv_prog_RANLIB
7641 if test -n "$RANLIB"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7643 $as_echo "$RANLIB" >&6; }
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7651 if test -z "$ac_cv_prog_RANLIB"; then
7652 ac_ct_RANLIB
=$RANLIB
7653 # Extract the first word of "ranlib", so it can be a program name with args.
7654 set dummy ranlib
; ac_word
=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
7660 if test -n "$ac_ct_RANLIB"; then
7661 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7667 test -z "$as_dir" && as_dir
=.
7668 for ac_exec_ext
in '' $ac_executable_extensions; do
7669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7670 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7680 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7681 if test -n "$ac_ct_RANLIB"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7683 $as_echo "$ac_ct_RANLIB" >&6; }
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7689 if test "x$ac_ct_RANLIB" = x
; then
7692 case $cross_compiling:$ac_tool_warned in
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7696 ac_tool_warned
=yes ;;
7698 RANLIB
=$ac_ct_RANLIB
7701 RANLIB
="$ac_cv_prog_RANLIB"
7707 # Find a good install program. We prefer a C program (faster),
7708 # so one script is as good as another. But avoid the broken or
7709 # incompatible versions:
7710 # SysV /etc/install, /usr/sbin/install
7711 # SunOS /usr/etc/install
7712 # IRIX /sbin/install
7714 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7715 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7716 # ./install, which can be erroneously created by make from ./install.sh.
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7718 $as_echo_n "checking for a BSD compatible install... " >&6; }
7719 if test -z "$INSTALL"; then
7720 if test "${ac_cv_path_install+set}" = set; then :
7721 $as_echo_n "(cached) " >&6
7723 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7724 for ac_dir
in $PATH; do
7725 # Account for people who put trailing slashes in PATH elements.
7727 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7729 # OSF1 and SCO ODT 3.0 have their own names for install.
7730 for ac_prog
in ginstall scoinst
install; do
7731 if test -f $ac_dir/$ac_prog; then
7732 if test $ac_prog = install &&
7733 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7734 # AIX install. It has an incompatible calling convention.
7735 # OSF/1 installbsd also uses dspmsg, but is usable.
7738 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7749 if test "${ac_cv_path_install+set}" = set; then
7750 INSTALL
="$ac_cv_path_install"
7752 # As a last resort, use the slow shell script. We don't cache a
7753 # path for INSTALL within a source directory, because that will
7754 # break other packages using the cache if that directory is
7755 # removed, or if the path is relative.
7756 INSTALL
="$ac_install_sh"
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7760 $as_echo "$INSTALL" >&6; }
7762 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7763 # It thinks the first close brace ends the variable substitution.
7764 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7766 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7769 # See if cmp has --ignore-initial.
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7771 $as_echo_n "checking for cmp's capabilities... " >&6; }
7772 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7773 $as_echo_n "(cached) " >&6
7777 gcc_cv_prog_cmp_skip
=slowcompare
7778 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7779 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7782 gcc_cv_prog_cmp_skip
=gnucompare
7785 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7786 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7787 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7790 gcc_cv_prog_cmp_skip
=fastcompare
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7798 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7799 make_compare_target
=$gcc_cv_prog_cmp_skip
7803 # See if we have the mktemp command.
7804 # Extract the first word of "mktemp", so it can be a program name with args.
7805 set dummy mktemp
; ac_word
=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7809 $as_echo_n "(cached) " >&6
7811 if test -n "$have_mktemp_command"; then
7812 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7818 test -z "$as_dir" && as_dir
=.
7819 for ac_exec_ext
in '' $ac_executable_extensions; do
7820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7821 ac_cv_prog_have_mktemp_command
="yes"
7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7832 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7833 if test -n "$have_mktemp_command"; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7835 $as_echo "$have_mktemp_command" >&6; }
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7843 # See if makeinfo has been installed and is modern enough
7844 # that we can use it.
7846 # Extract the first word of "makeinfo", so it can be a program name with args.
7847 set dummy makeinfo
; ac_word
=$2
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849 $as_echo_n "checking for $ac_word... " >&6; }
7850 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7851 $as_echo_n "(cached) " >&6
7853 if test -n "$MAKEINFO"; then
7854 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7856 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7860 test -z "$as_dir" && as_dir
=.
7861 for ac_exec_ext
in '' $ac_executable_extensions; do
7862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7863 ac_cv_prog_MAKEINFO
="makeinfo"
7864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7873 MAKEINFO
=$ac_cv_prog_MAKEINFO
7874 if test -n "$MAKEINFO"; then
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7876 $as_echo "$MAKEINFO" >&6; }
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879 $as_echo "no" >&6; }
7883 if test -n "$MAKEINFO"; then
7884 # Found it, now check the version.
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7886 $as_echo_n "checking for modern makeinfo... " >&6; }
7887 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7890 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7891 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7893 case $ac_prog_version in
7894 '') gcc_cv_prog_makeinfo_modern
=no
;;
7895 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7896 *) gcc_cv_prog_makeinfo_modern
=no
;;
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7901 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7903 gcc_cv_prog_makeinfo_modern
=no
7905 if test $gcc_cv_prog_makeinfo_modern = no
; then
7906 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7909 if test $gcc_cv_prog_makeinfo_modern = no
; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7911 *** Makeinfo is missing or too old.
7912 *** Info documentation will not be built." >&5
7913 $as_echo "$as_me: WARNING:
7914 *** Makeinfo is missing or too old.
7915 *** Info documentation will not be built." >&2;}
7922 # Is pod2man recent enough to regenerate manpages?
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7924 $as_echo_n "checking for recent Pod::Man... " >&6; }
7925 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7927 $as_echo "yes" >&6; }
7928 GENERATED_MANPAGES
=generated-manpages
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931 $as_echo "no" >&6; }
7936 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7941 # Extract the first word of "$ac_prog", so it can be a program name with args.
7942 set dummy
$ac_prog; ac_word
=$2
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944 $as_echo_n "checking for $ac_word... " >&6; }
7945 if test "${ac_cv_prog_FLEX+set}" = set; then :
7946 $as_echo_n "(cached) " >&6
7948 if test -n "$FLEX"; then
7949 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7955 test -z "$as_dir" && as_dir
=.
7956 for ac_exec_ext
in '' $ac_executable_extensions; do
7957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7958 ac_cv_prog_FLEX
="$ac_prog"
7959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7968 FLEX
=$ac_cv_prog_FLEX
7969 if test -n "$FLEX"; then
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7971 $as_echo "$FLEX" >&6; }
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974 $as_echo "no" >&6; }
7978 test -n "$FLEX" && break
7980 test -n "$FLEX" || FLEX
="$MISSING flex"
7984 for ac_prog
in bison
7986 # Extract the first word of "$ac_prog", so it can be a program name with args.
7987 set dummy
$ac_prog; ac_word
=$2
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7989 $as_echo_n "checking for $ac_word... " >&6; }
7990 if test "${ac_cv_prog_BISON+set}" = set; then :
7991 $as_echo_n "(cached) " >&6
7993 if test -n "$BISON"; then
7994 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8000 test -z "$as_dir" && as_dir
=.
8001 for ac_exec_ext
in '' $ac_executable_extensions; do
8002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8003 ac_cv_prog_BISON
="$ac_prog"
8004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 BISON
=$ac_cv_prog_BISON
8014 if test -n "$BISON"; then
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8016 $as_echo "$BISON" >&6; }
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019 $as_echo "no" >&6; }
8023 test -n "$BISON" && break
8025 test -n "$BISON" || BISON
="$MISSING bison"
8028 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8029 # check for build == host before using them.
8032 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8033 && test -d ..
/binutils
; then
8034 NM
='${objdir}/../binutils/nm-new'
8036 # Extract the first word of "nm", so it can be a program name with args.
8037 set dummy nm
; ac_word
=$2
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039 $as_echo_n "checking for $ac_word... " >&6; }
8040 if test "${ac_cv_prog_NM+set}" = set; then :
8041 $as_echo_n "(cached) " >&6
8043 if test -n "$NM"; then
8044 ac_cv_prog_NM
="$NM" # Let the user override the test.
8046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8050 test -z "$as_dir" && as_dir
=.
8051 for ac_exec_ext
in '' $ac_executable_extensions; do
8052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8061 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8065 if test -n "$NM"; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8067 $as_echo "$NM" >&6; }
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 $as_echo "no" >&6; }
8077 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8078 && test -d ..
/binutils
; then
8079 AR
='${objdir}/../binutils/ar'
8081 # Extract the first word of "ar", so it can be a program name with args.
8082 set dummy
ar; ac_word
=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if test "${ac_cv_prog_AR+set}" = set; then :
8086 $as_echo_n "(cached) " >&6
8088 if test -n "$AR"; then
8089 ac_cv_prog_AR
="$AR" # Let the user override the test.
8091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8095 test -z "$as_dir" && as_dir
=.
8096 for ac_exec_ext
in '' $ac_executable_extensions; do
8097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8106 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8110 if test -n "$AR"; then
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8112 $as_echo "$AR" >&6; }
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115 $as_echo "no" >&6; }
8121 # The jit documentation looks better if built with sphinx, but can be
8122 # built with texinfo if sphinx is not available.
8123 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8124 # Extract the first word of "sphinx-build", so it can be a program name with args.
8125 set dummy sphinx-build
; ac_word
=$2
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 $as_echo_n "checking for $ac_word... " >&6; }
8128 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8129 $as_echo_n "(cached) " >&6
8131 if test -n "$doc_build_sys"; then
8132 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8138 test -z "$as_dir" && as_dir
=.
8139 for ac_exec_ext
in '' $ac_executable_extensions; do
8140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8141 ac_cv_prog_doc_build_sys
="sphinx"
8142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8152 doc_build_sys
=$ac_cv_prog_doc_build_sys
8153 if test -n "$doc_build_sys"; then
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8155 $as_echo "$doc_build_sys" >&6; }
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8163 # --------------------
8164 # Checks for C headers
8165 # --------------------
8167 # Need to reject headers which give warnings, so that the -Werror bootstrap
8168 # works later. *sigh* This needs to come before all header checks.
8170 ac_c_preproc_warn_flag
=yes
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8173 $as_echo_n "checking for ANSI C header files... " >&6; }
8174 if test "${ac_cv_header_stdc+set}" = set; then :
8175 $as_echo_n "(cached) " >&6
8177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8192 if ac_fn_c_try_compile
"$LINENO"; then :
8193 ac_cv_header_stdc
=yes
8195 ac_cv_header_stdc
=no
8197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8199 if test $ac_cv_header_stdc = yes; then
8200 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8202 /* end confdefs.h. */
8206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8207 $EGREP "memchr" >/dev
/null
2>&1; then :
8210 ac_cv_header_stdc
=no
8216 if test $ac_cv_header_stdc = yes; then
8217 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8224 $EGREP "free" >/dev
/null
2>&1; then :
8227 ac_cv_header_stdc
=no
8233 if test $ac_cv_header_stdc = yes; then
8234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8235 if test "$cross_compiling" = yes; then :
8238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h. */
8242 #if ((' ' & 0x0FF) == 0x020)
8243 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8244 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8246 # define ISLOWER(c) \
8247 (('a' <= (c) && (c) <= 'i') \
8248 || ('j' <= (c) && (c) <= 'r') \
8249 || ('s' <= (c) && (c) <= 'z'))
8250 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8253 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8258 for (i = 0; i < 256; i++)
8259 if (XOR (islower (i), ISLOWER (i))
8260 || toupper (i) != TOUPPER (i))
8265 if ac_fn_c_try_run
"$LINENO"; then :
8268 ac_cv_header_stdc
=no
8270 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8271 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8277 $as_echo "$ac_cv_header_stdc" >&6; }
8278 if test $ac_cv_header_stdc = yes; then
8280 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8285 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8286 if test "${ac_cv_header_time+set}" = set; then :
8287 $as_echo_n "(cached) " >&6
8289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8290 /* end confdefs.h. */
8291 #include <sys/types.h>
8292 #include <sys/time.h>
8298 if ((struct tm *) 0)
8304 if ac_fn_c_try_compile
"$LINENO"; then :
8305 ac_cv_header_time
=yes
8307 ac_cv_header_time
=no
8309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8312 $as_echo "$ac_cv_header_time" >&6; }
8313 if test $ac_cv_header_time = yes; then
8315 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8320 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8321 if test "${gcc_cv_header_string+set}" = set; then :
8322 $as_echo_n "(cached) " >&6
8324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8325 /* end confdefs.h. */
8327 #include <strings.h>
8336 if ac_fn_c_try_compile
"$LINENO"; then :
8337 gcc_cv_header_string
=yes
8339 gcc_cv_header_string
=no
8341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8344 $as_echo "$gcc_cv_header_string" >&6; }
8345 if test $gcc_cv_header_string = yes; then
8347 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8352 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8353 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8354 $as_echo_n "(cached) " >&6
8356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8357 /* end confdefs.h. */
8358 #include <sys/types.h>
8359 #include <sys/wait.h>
8361 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8364 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8372 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8377 if ac_fn_c_try_compile
"$LINENO"; then :
8378 ac_cv_header_sys_wait_h
=yes
8380 ac_cv_header_sys_wait_h
=no
8382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8385 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8386 if test $ac_cv_header_sys_wait_h = yes; then
8388 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8393 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8394 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8395 $as_echo_n "(cached) " >&6
8397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8399 #include <sys/types.h>
8400 #include <termios.h>
8406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8407 $EGREP "yes" >/dev
/null
2>&1; then :
8408 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8410 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8416 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8418 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8420 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8421 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8422 $as_echo_n "(cached) " >&6
8424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8425 /* end confdefs.h. */
8426 #include <sys/types.h>
8427 #include <sys/ioctl.h>
8433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8434 $EGREP "yes" >/dev
/null
2>&1; then :
8435 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8437 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8443 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8445 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8447 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8452 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8453 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8454 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8455 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8457 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8458 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8459 eval as_val
=\$
$as_ac_Header
8460 if test "x$as_val" = x
""yes; then :
8461 cat >>confdefs.h
<<_ACEOF
8462 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8469 # Check for thread headers.
8470 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8471 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8477 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8478 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8485 # These tests can't be done till we know if we have limits.h.
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8487 $as_echo_n "checking for CHAR_BIT... " >&6; }
8488 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8489 $as_echo_n "(cached) " >&6
8491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h. */
8493 #ifdef HAVE_LIMITS_H
8500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8501 $EGREP "found" >/dev
/null
2>&1; then :
8502 gcc_cv_decl_char_bit
=yes
8504 gcc_cv_decl_char_bit
=no
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8511 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8512 if test $gcc_cv_decl_char_bit = no
; then
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8514 $as_echo_n "checking number of bits in a byte... " >&6; }
8515 if test "${gcc_cv_c_nbby+set}" = set; then :
8516 $as_echo_n "(cached) " >&6
8520 while test $i -lt 65; do
8521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8528 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8529 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8535 if ac_fn_c_try_compile
"$LINENO"; then :
8536 gcc_cv_c_nbby
=$i; break
8538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8541 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8545 $as_echo "$gcc_cv_c_nbby" >&6; }
8546 if test $gcc_cv_c_nbby = failed
; then
8547 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8550 cat >>confdefs.h
<<_ACEOF
8551 #define CHAR_BIT $gcc_cv_c_nbby
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8557 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8558 if test "${ac_cv_c_bigendian+set}" = set; then :
8559 $as_echo_n "(cached) " >&6
8561 ac_cv_c_bigendian
=unknown
8562 # See if we're dealing with a universal compiler.
8563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8564 /* end confdefs.h. */
8565 #ifndef __APPLE_CC__
8566 not a universal capable compiler
8571 if ac_fn_c_try_compile
"$LINENO"; then :
8573 # Check for potential -arch flags. It is not universal unless
8574 # there are at least two -arch flags with different values.
8577 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8578 if test -n "$ac_prev"; then
8580 i?
86 | x86_64 | ppc | ppc64
)
8581 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8584 ac_cv_c_bigendian
=universal
8590 elif test "x$ac_word" = "x-arch"; then
8595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8596 if test $ac_cv_c_bigendian = unknown
; then
8597 # See if sys/param.h defines the BYTE_ORDER macro.
8598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8600 #include <sys/types.h>
8601 #include <sys/param.h>
8606 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8607 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8616 if ac_fn_c_try_compile
"$LINENO"; then :
8617 # It does; now see whether it defined to BIG_ENDIAN or not.
8618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h. */
8620 #include <sys/types.h>
8621 #include <sys/param.h>
8626 #if BYTE_ORDER != BIG_ENDIAN
8634 if ac_fn_c_try_compile
"$LINENO"; then :
8635 ac_cv_c_bigendian
=yes
8637 ac_cv_c_bigendian
=no
8639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8643 if test $ac_cv_c_bigendian = unknown
; then
8644 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8646 /* end confdefs.h. */
8652 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8660 if ac_fn_c_try_compile
"$LINENO"; then :
8661 # It does; now see whether it defined to _BIG_ENDIAN or not.
8662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8663 /* end confdefs.h. */
8677 if ac_fn_c_try_compile
"$LINENO"; then :
8678 ac_cv_c_bigendian
=yes
8680 ac_cv_c_bigendian
=no
8682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8686 if test $ac_cv_c_bigendian = unknown
; then
8687 # Compile a test program.
8688 if test "$cross_compiling" = yes; then :
8689 # Try to guess by grepping values from an object file.
8690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8692 short int ascii_mm[] =
8693 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8694 short int ascii_ii[] =
8695 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8696 int use_ascii (int i) {
8697 return ascii_mm[i] + ascii_ii[i];
8699 short int ebcdic_ii[] =
8700 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8701 short int ebcdic_mm[] =
8702 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8703 int use_ebcdic (int i) {
8704 return ebcdic_mm[i] + ebcdic_ii[i];
8711 return use_ascii (foo) == use_ebcdic (foo);
8716 if ac_fn_c_try_compile
"$LINENO"; then :
8717 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8718 ac_cv_c_bigendian
=yes
8720 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8721 if test "$ac_cv_c_bigendian" = unknown
; then
8722 ac_cv_c_bigendian
=no
8724 # finding both strings is unlikely to happen, but who knows?
8725 ac_cv_c_bigendian
=unknown
8729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8733 $ac_includes_default
8738 /* Are we little or big endian? From Harbison&Steele. */
8742 char c[sizeof (long int)];
8745 return u.c[sizeof (long int) - 1] == 1;
8751 if ac_fn_c_try_run
"$LINENO"; then :
8752 ac_cv_c_bigendian
=no
8754 ac_cv_c_bigendian
=yes
8756 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8757 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8763 $as_echo "$ac_cv_c_bigendian" >&6; }
8764 case $ac_cv_c_bigendian in #(
8766 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8772 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8776 as_fn_error
"unknown endianness
8777 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8781 # ----------------------
8782 # Checks for C++ headers
8783 # ----------------------
8786 ac_cpp
='$CXXCPP $CPPFLAGS'
8787 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8788 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8789 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8791 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8792 if test -z "$CXXCPP"; then
8793 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8794 $as_echo_n "(cached) " >&6
8796 # Double quotes because CXXCPP needs to be expanded
8797 for CXXCPP
in "$CXX -E" "/lib/cpp"
8800 for ac_cxx_preproc_warn_flag
in '' yes
8802 # Use a header file that comes with gcc, so configuring glibc
8803 # with a fresh cross-compiler works.
8804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8805 # <limits.h> exists even on freestanding compilers.
8806 # On the NeXT, cc -E runs the code through the compiler's parser,
8807 # not just through cpp. "Syntax error" is here to catch this case.
8808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8809 /* end confdefs.h. */
8811 # include <limits.h>
8813 # include <assert.h>
8817 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8820 # Broken: fails on valid input.
8823 rm -f conftest.err conftest.
$ac_ext
8825 # OK, works on sane cases. Now check whether nonexistent headers
8826 # can be detected and how.
8827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8828 /* end confdefs.h. */
8829 #include <ac_nonexistent.h>
8831 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8832 # Broken: success on invalid input.
8835 # Passes both tests.
8839 rm -f conftest.err conftest.
$ac_ext
8842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8843 rm -f conftest.err conftest.
$ac_ext
8844 if $ac_preproc_ok; then :
8849 ac_cv_prog_CXXCPP
=$CXXCPP
8852 CXXCPP
=$ac_cv_prog_CXXCPP
8854 ac_cv_prog_CXXCPP
=$CXXCPP
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8857 $as_echo "$CXXCPP" >&6; }
8859 for ac_cxx_preproc_warn_flag
in '' yes
8861 # Use a header file that comes with gcc, so configuring glibc
8862 # with a fresh cross-compiler works.
8863 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8864 # <limits.h> exists even on freestanding compilers.
8865 # On the NeXT, cc -E runs the code through the compiler's parser,
8866 # not just through cpp. "Syntax error" is here to catch this case.
8867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8870 # include <limits.h>
8872 # include <assert.h>
8876 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8879 # Broken: fails on valid input.
8882 rm -f conftest.err conftest.
$ac_ext
8884 # OK, works on sane cases. Now check whether nonexistent headers
8885 # can be detected and how.
8886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h. */
8888 #include <ac_nonexistent.h>
8890 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8891 # Broken: success on invalid input.
8894 # Passes both tests.
8898 rm -f conftest.err conftest.
$ac_ext
8901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8902 rm -f conftest.err conftest.
$ac_ext
8903 if $ac_preproc_ok; then :
8906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8909 See \`config.log' for more details." >&5
8910 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8911 See \`config.log' for more details." >&2;}; }
8915 ac_cpp
='$CPP $CPPFLAGS'
8916 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8917 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8918 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8922 ac_cpp
='$CXXCPP $CPPFLAGS'
8923 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8924 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8925 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8929 for ac_header
in unordered_map
8931 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8932 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8933 cat >>confdefs.h
<<_ACEOF
8934 #define HAVE_UNORDERED_MAP 1
8940 for ac_header
in tr1/unordered_map
8942 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8943 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8944 cat >>confdefs.h
<<_ACEOF
8945 #define HAVE_TR1_UNORDERED_MAP 1
8951 for ac_header
in ext
/hash_map
8953 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8954 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8955 cat >>confdefs.h
<<_ACEOF
8956 #define HAVE_EXT_HASH_MAP 1
8964 ac_cpp
='$CPP $CPPFLAGS'
8965 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8966 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8967 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8971 # Dependency checking.
8975 ac_cpp
='$CXXCPP $CPPFLAGS'
8976 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8977 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8978 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8980 rm -rf .tst
2>/dev
/null
8981 mkdir .tst
2>/dev
/null
8982 if test -d .tst
; then
8987 rmdir .tst
2>/dev
/null
8989 DEPDIR
="${am__leading_dot}deps"
8991 ac_config_commands
="$ac_config_commands depdir"
8994 ac_config_commands
="$ac_config_commands gccdepdir"
8997 depcc
="$CXX" am_compiler_list
=
8999 am_depcomp
=$ac_aux_dir/depcomp
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9001 $as_echo_n "checking dependency style of $depcc... " >&6; }
9002 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9003 $as_echo_n "(cached) " >&6
9005 if test -f "$am_depcomp"; then
9006 # We make a subdir and do the tests there. Otherwise we can end up
9007 # making bogus files that we don't know about and never remove. For
9008 # instance it was reported that on HP-UX the gcc test will end up
9009 # making a dummy file named `D' -- because `-MD' means `put the output
9012 # Copy depcomp to subdir because otherwise we won't find it if we're
9013 # using a relative directory.
9014 cp "$am_depcomp" conftest.dir
9016 # We will build objects and dependencies in a subdirectory because
9017 # it helps to detect inapplicable dependency modes. For instance
9018 # both Tru64's cc and ICC support -MD to output dependencies as a
9019 # side effect of compilation, but ICC will put the dependencies in
9020 # the current directory while Tru64 will put them in the object
9024 am_cv_CXX_dependencies_compiler_type
=none
9025 if test "$am_compiler_list" = ""; then
9026 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9028 for depmode
in $am_compiler_list; do
9029 if test $depmode = none
; then break; fi
9031 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9032 # Setup a source with many dependencies, because some compilers
9033 # like to wrap large dependency lists on column 80 (with \), and
9034 # we should not choose a depcomp mode which is confused by this.
9036 # We need to recreate these files for each test, as the compiler may
9037 # overwrite some of them when testing with obscure command lines.
9038 # This happens at least with the AIX C compiler.
9040 for i
in 1 2 3 4 5 6; do
9041 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9042 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9043 # Solaris 8's {/usr,}/bin/sh.
9044 touch sub
/conftst
$i.h
9046 echo "include sub/conftest.Po" > confmf
9048 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9049 # mode. It turns out that the SunPro C++ compiler does not properly
9050 # handle `-M -o', and we need to detect this.
9051 depcmd
="depmode=$depmode \
9052 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9053 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9054 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9055 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9056 if env
$depcmd > conftest.err
2>&1 &&
9057 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9058 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9059 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9060 # icc doesn't choke on unknown options, it will just issue warnings
9061 # or remarks (even with -Werror). So we grep stderr for any message
9062 # that says an option was ignored or not supported.
9063 # When given -MP, icc 7.0 and 7.1 complain thusly:
9064 # icc: Command line warning: ignoring option '-M'; no argument required
9065 # The diagnosis changed in icc 8.0:
9066 # icc: Command line remark: option '-MP' not supported
9067 if (grep 'ignoring option' conftest.err ||
9068 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9069 am_cv_CXX_dependencies_compiler_type
=$depmode
9070 $as_echo "$as_me:$LINENO: success" >&5
9074 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9075 sed -e 's/^/| /' < conftest.err
>&5
9081 am_cv_CXX_dependencies_compiler_type
=none
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9086 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9087 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9088 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9089 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9094 ac_cpp
='$CPP $CPPFLAGS'
9095 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9096 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9097 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9105 # These libraries may be used by collect2.
9106 # We may need a special search path to get them linked.
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9108 $as_echo_n "checking for collect2 libraries... " >&6; }
9109 if test "${gcc_cv_collect2_libs+set}" = set; then :
9110 $as_echo_n "(cached) " >&6
9113 for libs
in '' -lld -lmld \
9114 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9115 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9119 /* end confdefs.h. */
9121 /* Override any GCC internal prototype to avoid an error.
9122 Use char because int might match the return type of a GCC
9123 builtin and then its argument prototype would still apply. */
9136 if ac_fn_c_try_link
"$LINENO"; then :
9137 gcc_cv_collect2_libs
="$libs"; break
9139 rm -f core conftest.err conftest.
$ac_objext \
9140 conftest
$ac_exeext conftest.
$ac_ext
9143 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9146 $as_echo "$gcc_cv_collect2_libs" >&6; }
9147 case $gcc_cv_collect2_libs in
9149 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9153 # When building Ada code on Alpha, we need exc_resume which is usually in
9154 # -lexc. So test for it.
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9158 $as_echo_n "checking for library containing exc_resume... " >&6; }
9159 if test "${ac_cv_search_exc_resume+set}" = set; then :
9160 $as_echo_n "(cached) " >&6
9162 ac_func_search_save_LIBS
=$LIBS
9163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h. */
9166 /* Override any GCC internal prototype to avoid an error.
9167 Use char because int might match the return type of a GCC
9168 builtin and then its argument prototype would still apply. */
9176 return exc_resume ();
9181 for ac_lib
in '' exc
; do
9182 if test -z "$ac_lib"; then
9183 ac_res
="none required"
9186 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9188 if ac_fn_c_try_link
"$LINENO"; then :
9189 ac_cv_search_exc_resume
=$ac_res
9191 rm -f core conftest.err conftest.
$ac_objext \
9193 if test "${ac_cv_search_exc_resume+set}" = set; then :
9197 if test "${ac_cv_search_exc_resume+set}" = set; then :
9200 ac_cv_search_exc_resume
=no
9203 LIBS
=$ac_func_search_save_LIBS
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9206 $as_echo "$ac_cv_search_exc_resume" >&6; }
9207 ac_res
=$ac_cv_search_exc_resume
9208 if test "$ac_res" != no
; then :
9209 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9217 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9221 $as_echo_n "checking for library containing kstat_open... " >&6; }
9222 if test "${ac_cv_search_kstat_open+set}" = set; then :
9223 $as_echo_n "(cached) " >&6
9225 ac_func_search_save_LIBS
=$LIBS
9226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9229 /* Override any GCC internal prototype to avoid an error.
9230 Use char because int might match the return type of a GCC
9231 builtin and then its argument prototype would still apply. */
9239 return kstat_open ();
9244 for ac_lib
in '' kstat
; do
9245 if test -z "$ac_lib"; then
9246 ac_res
="none required"
9249 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9251 if ac_fn_c_try_link
"$LINENO"; then :
9252 ac_cv_search_kstat_open
=$ac_res
9254 rm -f core conftest.err conftest.
$ac_objext \
9256 if test "${ac_cv_search_kstat_open+set}" = set; then :
9260 if test "${ac_cv_search_kstat_open+set}" = set; then :
9263 ac_cv_search_kstat_open
=no
9266 LIBS
=$ac_func_search_save_LIBS
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9269 $as_echo "$ac_cv_search_kstat_open" >&6; }
9270 ac_res
=$ac_cv_search_kstat_open
9271 if test "$ac_res" != no
; then :
9272 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9276 EXTRA_GCC_LIBS
="$LIBS"
9280 # Some systems put ldexp and frexp in libm instead of libc; assume
9281 # they're both in the same place. jcf-dump needs them.
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9285 $as_echo_n "checking for library containing ldexp... " >&6; }
9286 if test "${ac_cv_search_ldexp+set}" = set; then :
9287 $as_echo_n "(cached) " >&6
9289 ac_func_search_save_LIBS
=$LIBS
9290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9291 /* end confdefs.h. */
9293 /* Override any GCC internal prototype to avoid an error.
9294 Use char because int might match the return type of a GCC
9295 builtin and then its argument prototype would still apply. */
9308 for ac_lib
in '' m
; do
9309 if test -z "$ac_lib"; then
9310 ac_res
="none required"
9313 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9315 if ac_fn_c_try_link
"$LINENO"; then :
9316 ac_cv_search_ldexp
=$ac_res
9318 rm -f core conftest.err conftest.
$ac_objext \
9320 if test "${ac_cv_search_ldexp+set}" = set; then :
9324 if test "${ac_cv_search_ldexp+set}" = set; then :
9327 ac_cv_search_ldexp
=no
9330 LIBS
=$ac_func_search_save_LIBS
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9333 $as_echo "$ac_cv_search_ldexp" >&6; }
9334 ac_res
=$ac_cv_search_ldexp
9335 if test "$ac_res" != no
; then :
9336 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9344 # Use <inttypes.h> only if it exists,
9345 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9348 $as_echo_n "checking for inttypes.h... " >&6; }
9349 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9350 $as_echo_n "(cached) " >&6
9352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h. */
9354 #define __STDC_FORMAT_MACROS
9355 #include <sys/types.h>
9356 #include <inttypes.h>
9368 if ac_fn_c_try_compile
"$LINENO"; then :
9369 gcc_cv_header_inttypes_h
=yes
9371 gcc_cv_header_inttypes_h
=no
9373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9377 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9378 if test $gcc_cv_header_inttypes_h = yes; then
9380 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9386 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9387 popen sysconf strsignal getrusage nl_langinfo \
9388 gettimeofday mbstowcs wcswidth mmap setlocale \
9389 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
9391 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9392 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9393 eval as_val
=\$
$as_ac_var
9394 if test "x$as_val" = x
""yes; then :
9395 cat >>confdefs.h
<<_ACEOF
9396 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9403 if test x
$ac_cv_func_mbstowcs = xyes
; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9405 $as_echo_n "checking whether mbstowcs works... " >&6; }
9406 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9407 $as_echo_n "(cached) " >&6
9409 if test "$cross_compiling" = yes; then :
9410 gcc_cv_func_mbstowcs_works
=yes
9412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9413 /* end confdefs.h. */
9421 if ac_fn_c_try_run
"$LINENO"; then :
9422 gcc_cv_func_mbstowcs_works
=yes
9424 gcc_cv_func_mbstowcs_works
=no
9426 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9427 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9432 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9433 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9435 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9440 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9441 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9445 cat >>confdefs.h
<<_ACEOF
9451 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9452 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9456 cat >>confdefs.h
<<_ACEOF
9457 #define caddr_t char *
9464 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9465 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9466 gcc_header_sys_mman_h
=yes
9468 gcc_header_sys_mman_h
=no
9471 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9472 if test "x$ac_cv_func_mmap" = x
""yes; then :
9478 if test "$gcc_header_sys_mman_h" != yes \
9479 ||
test "$gcc_func_mmap" != yes; then
9480 gcc_cv_func_mmap_file
=no
9481 gcc_cv_func_mmap_dev_zero
=no
9482 gcc_cv_func_mmap_anon
=no
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9485 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9486 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9487 $as_echo_n "(cached) " >&6
9489 # Add a system to this blacklist if
9490 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9491 # memory area containing the same data that you'd get if you applied
9492 # read() to the same fd. The only system known to have a problem here
9493 # is VMS, where text files have record structure.
9496 gcc_cv_func_mmap_file
=no
;;
9498 gcc_cv_func_mmap_file
=yes;;
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9502 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9504 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9505 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9506 $as_echo_n "(cached) " >&6
9508 # Add a system to this blacklist if it has mmap() but /dev/zero
9509 # does not exist, or if mmapping /dev/zero does not give anonymous
9510 # zeroed pages with both the following properties:
9511 # 1. If you map N consecutive pages in with one call, and then
9512 # unmap any subset of those pages, the pages that were not
9513 # explicitly unmapped remain accessible.
9514 # 2. If you map two adjacent blocks of memory and then unmap them
9515 # both at once, they must both go away.
9516 # Systems known to be in this category are Windows (all variants),
9519 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9520 gcc_cv_func_mmap_dev_zero
=no
;;
9522 gcc_cv_func_mmap_dev_zero
=yes;;
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9526 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9528 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9530 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9531 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9532 $as_echo_n "(cached) " >&6
9534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h. */
9536 #include <sys/types.h>
9537 #include <sys/mman.h>
9540 #ifndef MAP_ANONYMOUS
9541 #define MAP_ANONYMOUS MAP_ANON
9547 int n = MAP_ANONYMOUS;
9552 if ac_fn_c_try_compile
"$LINENO"; then :
9553 gcc_cv_decl_map_anon
=yes
9555 gcc_cv_decl_map_anon
=no
9557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9560 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9562 if test $gcc_cv_decl_map_anon = no
; then
9563 gcc_cv_func_mmap_anon
=no
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9566 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9567 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9568 $as_echo_n "(cached) " >&6
9570 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9571 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9572 # doesn't give anonymous zeroed pages with the same properties listed
9573 # above for use of /dev/zero.
9574 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9576 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9577 gcc_cv_func_mmap_anon
=no
;;
9579 gcc_cv_func_mmap_anon
=yes;;
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9583 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9587 if test $gcc_cv_func_mmap_file = yes; then
9589 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9592 if test $gcc_cv_func_mmap_dev_zero = yes; then
9594 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9597 if test $gcc_cv_func_mmap_anon = yes; then
9599 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9606 # Under VMS, vfork works very differently than on Unix. The standard test
9607 # won't work, and it isn't easily adaptable. It makes more sense to
9609 ac_cv_func_vfork_works
=yes
9612 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9613 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9617 cat >>confdefs.h
<<_ACEOF
9623 for ac_header
in vfork.h
9625 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9626 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9627 cat >>confdefs.h
<<_ACEOF
9628 #define HAVE_VFORK_H 1
9634 for ac_func
in fork vfork
9636 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9637 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9638 eval as_val
=\$
$as_ac_var
9639 if test "x$as_val" = x
""yes; then :
9640 cat >>confdefs.h
<<_ACEOF
9641 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9647 if test "x$ac_cv_func_fork" = xyes
; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9649 $as_echo_n "checking for working fork... " >&6; }
9650 if test "${ac_cv_func_fork_works+set}" = set; then :
9651 $as_echo_n "(cached) " >&6
9653 if test "$cross_compiling" = yes; then :
9654 ac_cv_func_fork_works
=cross
9656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9657 /* end confdefs.h. */
9658 $ac_includes_default
9663 /* By Ruediger Kuhlmann. */
9670 if ac_fn_c_try_run
"$LINENO"; then :
9671 ac_cv_func_fork_works
=yes
9673 ac_cv_func_fork_works
=no
9675 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9676 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9681 $as_echo "$ac_cv_func_fork_works" >&6; }
9684 ac_cv_func_fork_works
=$ac_cv_func_fork
9686 if test "x$ac_cv_func_fork_works" = xcross
; then
9688 *-*-amigaos* |
*-*-msdosdjgpp*)
9689 # Override, as these systems have only a dummy fork() stub
9690 ac_cv_func_fork_works
=no
9693 ac_cv_func_fork_works
=yes
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9697 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9699 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9700 if test "x$ac_cv_func_vfork" = xyes
; then
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9702 $as_echo_n "checking for working vfork... " >&6; }
9703 if test "${ac_cv_func_vfork_works+set}" = set; then :
9704 $as_echo_n "(cached) " >&6
9706 if test "$cross_compiling" = yes; then :
9707 ac_cv_func_vfork_works
=cross
9709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9710 /* end confdefs.h. */
9711 /* Thanks to Paul Eggert for this test. */
9712 $ac_includes_default
9713 #include <sys/wait.h>
9717 /* On some sparc systems, changes by the child to local and incoming
9718 argument registers are propagated back to the parent. The compiler
9719 is told about this with #include <vfork.h>, but some compilers
9720 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9721 static variable whose address is put into a register that is
9722 clobbered by the vfork. */
9725 sparc_address_test (int arg)
9727 sparc_address_test (arg) int arg;
9748 pid_t parent = getpid ();
9751 sparc_address_test (0);
9756 /* Here is another test for sparc vfork register problems. This
9757 test uses lots of local variables, at least as many local
9758 variables as main has allocated so far including compiler
9759 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9760 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9761 reuse the register of parent for one of the local variables,
9762 since it will think that parent can't possibly be used any more
9763 in this routine. Assigning to the local variable will thus
9764 munge parent in the parent process. */
9766 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9767 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9768 /* Convince the compiler that p..p7 are live; otherwise, it might
9769 use the same hardware register for all 8 local variables. */
9770 if (p != p1 || p != p2 || p != p3 || p != p4
9771 || p != p5 || p != p6 || p != p7)
9774 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9775 from child file descriptors. If the child closes a descriptor
9776 before it execs or exits, this munges the parent's descriptor
9777 as well. Test for this by closing stdout in the child. */
9778 _exit(close(fileno(stdout)) != 0);
9783 while (wait(&status) != child)
9786 /* Was there some problem with vforking? */
9789 /* Did the child fail? (This shouldn't happen.) */
9792 /* Did the vfork/compiler bug occur? */
9793 || parent != getpid()
9795 /* Did the file descriptor bug occur? */
9796 || fstat(fileno(stdout), &st) != 0
9801 if ac_fn_c_try_run
"$LINENO"; then :
9802 ac_cv_func_vfork_works
=yes
9804 ac_cv_func_vfork_works
=no
9806 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9807 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9812 $as_echo "$ac_cv_func_vfork_works" >&6; }
9815 if test "x$ac_cv_func_fork_works" = xcross
; then
9816 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9818 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9821 if test "x$ac_cv_func_vfork_works" = xyes
; then
9823 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9827 $as_echo "#define vfork fork" >>confdefs.h
9830 if test "x$ac_cv_func_fork_works" = xyes
; then
9832 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9837 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9838 # iconv() prototype.
9840 ac_cpp
='$CXXCPP $CPPFLAGS'
9841 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9842 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9843 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9846 if test "X$prefix" = "XNONE"; then
9847 acl_final_prefix
="$ac_default_prefix"
9849 acl_final_prefix
="$prefix"
9851 if test "X$exec_prefix" = "XNONE"; then
9852 acl_final_exec_prefix
='${prefix}'
9854 acl_final_exec_prefix
="$exec_prefix"
9856 acl_save_prefix
="$prefix"
9857 prefix
="$acl_final_prefix"
9858 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9859 prefix
="$acl_save_prefix"
9862 # Check whether --with-gnu-ld was given.
9863 if test "${with_gnu_ld+set}" = set; then :
9864 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9869 # Prepare PATH_SEPARATOR.
9870 # The user is always right.
9871 if test "${PATH_SEPARATOR+set}" != set; then
9872 echo "#! /bin/sh" >conf$$.sh
9873 echo "exit 0" >>conf$$.sh
9875 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9883 if test "$GCC" = yes; then
9884 # Check if gcc -print-prog-name=ld gives a path.
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9886 $as_echo_n "checking for ld used by GCC... " >&6; }
9889 # gcc leaves a trailing carriage return which upsets mingw
9890 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9892 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9895 # Accept absolute paths.
9896 [\\/]* |
[A-Za-z
]:[\\/]*)
9897 re_direlt
='/[^/][^/]*/\.\./'
9898 # Canonicalize the path of ld
9899 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9900 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9901 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9903 test -z "$LD" && LD
="$ac_prog"
9906 # If it fails, then pretend we aren't using GCC.
9910 # If it is relative, then search for the first ld in PATH.
9914 elif test "$with_gnu_ld" = yes; then
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9916 $as_echo_n "checking for GNU ld... " >&6; }
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9919 $as_echo_n "checking for non-GNU ld... " >&6; }
9921 if test "${acl_cv_path_LD+set}" = set; then :
9922 $as_echo_n "(cached) " >&6
9924 if test -z "$LD"; then
9925 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9926 for ac_dir
in $PATH; do
9927 test -z "$ac_dir" && ac_dir
=.
9928 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9929 acl_cv_path_LD
="$ac_dir/$ac_prog"
9930 # Check to see if the program is GNU ld. I'd rather use --version,
9931 # but apparently some GNU ld's only accept -v.
9932 # Break only if it was the GNU/non-GNU ld that we prefer.
9933 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9934 test "$with_gnu_ld" != no
&& break
9936 test "$with_gnu_ld" != yes && break
9942 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9946 LD
="$acl_cv_path_LD"
9947 if test -n "$LD"; then
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9949 $as_echo "$LD" >&6; }
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9952 $as_echo "no" >&6; }
9954 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9956 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9957 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9958 $as_echo_n "(cached) " >&6
9960 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9961 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9962 acl_cv_prog_gnu_ld
=yes
9964 acl_cv_prog_gnu_ld
=no
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9968 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9969 with_gnu_ld
=$acl_cv_prog_gnu_ld
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9974 $as_echo_n "checking for shared library run path origin... " >&6; }
9975 if test "${acl_cv_rpath+set}" = set; then :
9976 $as_echo_n "(cached) " >&6
9979 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9980 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9987 $as_echo "$acl_cv_rpath" >&6; }
9989 libext
="$acl_cv_libext"
9990 shlibext
="$acl_cv_shlibext"
9991 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9992 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9993 hardcode_direct
="$acl_cv_hardcode_direct"
9994 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9995 # Check whether --enable-rpath was given.
9996 if test "${enable_rpath+set}" = set; then :
9997 enableval
=$enable_rpath; :
10011 acl_save_prefix
="$prefix"
10012 prefix
="$acl_final_prefix"
10013 acl_save_exec_prefix
="$exec_prefix"
10014 exec_prefix
="$acl_final_exec_prefix"
10016 eval additional_includedir
=\"$includedir\"
10017 eval additional_libdir
=\"$libdir\"
10019 exec_prefix
="$acl_save_exec_prefix"
10020 prefix
="$acl_save_prefix"
10023 # Check whether --with-libiconv-prefix was given.
10024 if test "${with_libiconv_prefix+set}" = set; then :
10025 withval
=$with_libiconv_prefix;
10026 if test "X$withval" = "Xno"; then
10029 if test "X$withval" = "X"; then
10031 acl_save_prefix
="$prefix"
10032 prefix
="$acl_final_prefix"
10033 acl_save_exec_prefix
="$exec_prefix"
10034 exec_prefix
="$acl_final_exec_prefix"
10036 eval additional_includedir
=\"$includedir\"
10037 eval additional_libdir
=\"$libdir\"
10039 exec_prefix
="$acl_save_exec_prefix"
10040 prefix
="$acl_save_prefix"
10043 additional_includedir
="$withval/include"
10044 additional_libdir
="$withval/lib"
10055 names_already_handled
=
10056 names_next_round
='iconv '
10057 while test -n "$names_next_round"; do
10058 names_this_round
="$names_next_round"
10060 for name
in $names_this_round; do
10062 for n
in $names_already_handled; do
10063 if test "$n" = "$name"; then
10064 already_handled
=yes
10068 if test -z "$already_handled"; then
10069 names_already_handled
="$names_already_handled $name"
10070 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10071 eval value
=\"\
$HAVE_LIB$uppername\"
10072 if test -n "$value"; then
10073 if test "$value" = yes; then
10074 eval value
=\"\
$LIB$uppername\"
10075 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10076 eval value
=\"\
$LTLIB$uppername\"
10077 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10086 if test $use_additional = yes; then
10087 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10088 found_dir
="$additional_libdir"
10089 found_so
="$additional_libdir/lib$name.$shlibext"
10090 if test -f "$additional_libdir/lib$name.la"; then
10091 found_la
="$additional_libdir/lib$name.la"
10094 if test -f "$additional_libdir/lib$name.$libext"; then
10095 found_dir
="$additional_libdir"
10096 found_a
="$additional_libdir/lib$name.$libext"
10097 if test -f "$additional_libdir/lib$name.la"; then
10098 found_la
="$additional_libdir/lib$name.la"
10103 if test "X$found_dir" = "X"; then
10104 for x
in $LDFLAGS $LTLIBICONV; do
10106 acl_save_prefix
="$prefix"
10107 prefix
="$acl_final_prefix"
10108 acl_save_exec_prefix
="$exec_prefix"
10109 exec_prefix
="$acl_final_exec_prefix"
10111 exec_prefix
="$acl_save_exec_prefix"
10112 prefix
="$acl_save_prefix"
10116 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10117 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10119 found_so
="$dir/lib$name.$shlibext"
10120 if test -f "$dir/lib$name.la"; then
10121 found_la
="$dir/lib$name.la"
10124 if test -f "$dir/lib$name.$libext"; then
10126 found_a
="$dir/lib$name.$libext"
10127 if test -f "$dir/lib$name.la"; then
10128 found_la
="$dir/lib$name.la"
10134 if test "X$found_dir" != "X"; then
10139 if test "X$found_dir" != "X"; then
10140 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10141 if test "X$found_so" != "X"; then
10142 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10143 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10146 for x
in $ltrpathdirs; do
10147 if test "X$x" = "X$found_dir"; then
10152 if test -z "$haveit"; then
10153 ltrpathdirs
="$ltrpathdirs $found_dir"
10155 if test "$hardcode_direct" = yes; then
10156 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10158 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10159 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10161 for x
in $rpathdirs; do
10162 if test "X$x" = "X$found_dir"; then
10167 if test -z "$haveit"; then
10168 rpathdirs
="$rpathdirs $found_dir"
10172 for x
in $LDFLAGS $LIBICONV; do
10174 acl_save_prefix
="$prefix"
10175 prefix
="$acl_final_prefix"
10176 acl_save_exec_prefix
="$exec_prefix"
10177 exec_prefix
="$acl_final_exec_prefix"
10179 exec_prefix
="$acl_save_exec_prefix"
10180 prefix
="$acl_save_prefix"
10182 if test "X$x" = "X-L$found_dir"; then
10187 if test -z "$haveit"; then
10188 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10190 if test "$hardcode_minus_L" != no
; then
10191 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10193 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10199 if test "X$found_a" != "X"; then
10200 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10202 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10205 additional_includedir
=
10206 case "$found_dir" in
10208 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10209 additional_includedir
="$basedir/include"
10212 if test "X$additional_includedir" != "X"; then
10213 if test "X$additional_includedir" != "X/usr/include"; then
10215 if test "X$additional_includedir" = "X/usr/local/include"; then
10216 if test -n "$GCC"; then
10218 linux
*) haveit
=yes;;
10222 if test -z "$haveit"; then
10223 for x
in $CPPFLAGS $INCICONV; do
10225 acl_save_prefix
="$prefix"
10226 prefix
="$acl_final_prefix"
10227 acl_save_exec_prefix
="$exec_prefix"
10228 exec_prefix
="$acl_final_exec_prefix"
10230 exec_prefix
="$acl_save_exec_prefix"
10231 prefix
="$acl_save_prefix"
10233 if test "X$x" = "X-I$additional_includedir"; then
10238 if test -z "$haveit"; then
10239 if test -d "$additional_includedir"; then
10240 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10246 if test -n "$found_la"; then
10247 save_libdir
="$libdir"
10248 case "$found_la" in
10249 */* |
*\\*) .
"$found_la" ;;
10250 *) .
"./$found_la" ;;
10252 libdir
="$save_libdir"
10253 for dep
in $dependency_libs; do
10256 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10257 if test "X$additional_libdir" != "X/usr/lib"; then
10259 if test "X$additional_libdir" = "X/usr/local/lib"; then
10260 if test -n "$GCC"; then
10262 linux
*) haveit
=yes;;
10266 if test -z "$haveit"; then
10268 for x
in $LDFLAGS $LIBICONV; do
10270 acl_save_prefix
="$prefix"
10271 prefix
="$acl_final_prefix"
10272 acl_save_exec_prefix
="$exec_prefix"
10273 exec_prefix
="$acl_final_exec_prefix"
10275 exec_prefix
="$acl_save_exec_prefix"
10276 prefix
="$acl_save_prefix"
10278 if test "X$x" = "X-L$additional_libdir"; then
10283 if test -z "$haveit"; then
10284 if test -d "$additional_libdir"; then
10285 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10289 for x
in $LDFLAGS $LTLIBICONV; do
10291 acl_save_prefix
="$prefix"
10292 prefix
="$acl_final_prefix"
10293 acl_save_exec_prefix
="$exec_prefix"
10294 exec_prefix
="$acl_final_exec_prefix"
10296 exec_prefix
="$acl_save_exec_prefix"
10297 prefix
="$acl_save_prefix"
10299 if test "X$x" = "X-L$additional_libdir"; then
10304 if test -z "$haveit"; then
10305 if test -d "$additional_libdir"; then
10306 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10313 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10314 if test "$enable_rpath" != no
; then
10316 for x
in $rpathdirs; do
10317 if test "X$x" = "X$dir"; then
10322 if test -z "$haveit"; then
10323 rpathdirs
="$rpathdirs $dir"
10326 for x
in $ltrpathdirs; do
10327 if test "X$x" = "X$dir"; then
10332 if test -z "$haveit"; then
10333 ltrpathdirs
="$ltrpathdirs $dir"
10338 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10341 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10344 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10345 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10351 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10352 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10358 if test "X$rpathdirs" != "X"; then
10359 if test -n "$hardcode_libdir_separator"; then
10361 for found_dir
in $rpathdirs; do
10362 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10364 acl_save_libdir
="$libdir"
10366 eval flag
=\"$hardcode_libdir_flag_spec\"
10367 libdir
="$acl_save_libdir"
10368 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10370 for found_dir
in $rpathdirs; do
10371 acl_save_libdir
="$libdir"
10372 libdir
="$found_dir"
10373 eval flag
=\"$hardcode_libdir_flag_spec\"
10374 libdir
="$acl_save_libdir"
10375 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10379 if test "X$ltrpathdirs" != "X"; then
10380 for found_dir
in $ltrpathdirs; do
10381 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10391 am_save_CPPFLAGS
="$CPPFLAGS"
10393 for element
in $INCICONV; do
10395 for x
in $CPPFLAGS; do
10397 acl_save_prefix
="$prefix"
10398 prefix
="$acl_final_prefix"
10399 acl_save_exec_prefix
="$exec_prefix"
10400 exec_prefix
="$acl_final_exec_prefix"
10402 exec_prefix
="$acl_save_exec_prefix"
10403 prefix
="$acl_save_prefix"
10405 if test "X$x" = "X$element"; then
10410 if test -z "$haveit"; then
10411 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10417 $as_echo_n "checking for iconv... " >&6; }
10418 if test "${am_cv_func_iconv+set}" = set; then :
10419 $as_echo_n "(cached) " >&6
10422 am_cv_func_iconv
="no, consider installing GNU libiconv"
10424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10425 /* end confdefs.h. */
10426 #include <stdlib.h>
10431 iconv_t cd = iconv_open("","");
10432 iconv(cd,NULL,NULL,NULL,NULL);
10438 if ac_fn_cxx_try_link
"$LINENO"; then :
10439 am_cv_func_iconv
=yes
10441 rm -f core conftest.err conftest.
$ac_objext \
10442 conftest
$ac_exeext conftest.
$ac_ext
10443 if test "$am_cv_func_iconv" != yes; then
10444 am_save_LIBS
="$LIBS"
10445 LIBS
="$LIBS $LIBICONV"
10446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10448 #include <stdlib.h>
10453 iconv_t cd = iconv_open("","");
10454 iconv(cd,NULL,NULL,NULL,NULL);
10460 if ac_fn_cxx_try_link
"$LINENO"; then :
10461 am_cv_lib_iconv
=yes
10462 am_cv_func_iconv
=yes
10464 rm -f core conftest.err conftest.
$ac_objext \
10465 conftest
$ac_exeext conftest.
$ac_ext
10466 LIBS
="$am_save_LIBS"
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10471 $as_echo "$am_cv_func_iconv" >&6; }
10472 if test "$am_cv_func_iconv" = yes; then
10474 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10477 if test "$am_cv_lib_iconv" = yes; then
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10479 $as_echo_n "checking how to link with libiconv... " >&6; }
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10481 $as_echo "$LIBICONV" >&6; }
10483 CPPFLAGS
="$am_save_CPPFLAGS"
10490 if test "$am_cv_func_iconv" = yes; then
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10492 $as_echo_n "checking for iconv declaration... " >&6; }
10493 if test "${am_cv_proto_iconv+set}" = set; then :
10494 $as_echo_n "(cached) " >&6
10497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10498 /* end confdefs.h. */
10500 #include <stdlib.h>
10506 #if defined(__STDC__) || defined(__cplusplus)
10507 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10520 if ac_fn_cxx_try_compile
"$LINENO"; then :
10521 am_cv_proto_iconv_arg1
=""
10523 am_cv_proto_iconv_arg1
="const"
10525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10526 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);"
10529 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10531 }$am_cv_proto_iconv" >&5
10533 }$am_cv_proto_iconv" >&6; }
10535 cat >>confdefs.h
<<_ACEOF
10536 #define ICONV_CONST $am_cv_proto_iconv_arg1
10542 ac_cpp
='$CPP $CPPFLAGS'
10543 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10544 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10545 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10548 # Until we have in-tree GNU iconv:
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10554 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10555 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10556 $as_echo_n "(cached) " >&6
10558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10559 /* end confdefs.h. */
10560 #include <locale.h>
10569 if ac_fn_c_try_link
"$LINENO"; then :
10570 am_cv_val_LC_MESSAGES
=yes
10572 am_cv_val_LC_MESSAGES
=no
10574 rm -f core conftest.err conftest.
$ac_objext \
10575 conftest
$ac_exeext conftest.
$ac_ext
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10578 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10579 if test $am_cv_val_LC_MESSAGES = yes; then
10581 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10588 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10589 if test "${am_cv_langinfo_codeset+set}" = set; then :
10590 $as_echo_n "(cached) " >&6
10592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10593 /* end confdefs.h. */
10594 #include <langinfo.h>
10598 char* cs = nl_langinfo(CODESET);
10603 if ac_fn_c_try_link
"$LINENO"; then :
10604 am_cv_langinfo_codeset
=yes
10606 am_cv_langinfo_codeset
=no
10608 rm -f core conftest.err conftest.
$ac_objext \
10609 conftest
$ac_exeext conftest.
$ac_ext
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10613 $as_echo "$am_cv_langinfo_codeset" >&6; }
10614 if test $am_cv_langinfo_codeset = yes; then
10616 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10621 # We will need to find libiberty.h and ansidecl.h
10622 saved_CFLAGS
="$CFLAGS"
10623 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10624 saved_CXXFLAGS
="$CXXFLAGS"
10625 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10626 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10627 stpcpy strnlen strsignal strstr strverscmp \
10628 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10629 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
10631 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10633 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10634 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10635 $as_echo_n "(cached) " >&6
10637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10638 /* end confdefs.h. */
10640 #define $ac_tr_decl 1
10642 #include "ansidecl.h"
10643 #include "system.h"
10649 char *(*pfn) = (char *(*)) $ac_func ;
10655 if ac_fn_c_try_compile
"$LINENO"; then :
10656 eval "gcc_cv_have_decl_$ac_func=yes"
10658 eval "gcc_cv_have_decl_$ac_func=no"
10660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10663 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10665 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10666 #define $ac_tr_decl 1
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10671 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10672 #define $ac_tr_decl 0
10680 for ac_func
in getrlimit setrlimit getrusage
10682 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10684 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10685 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10686 $as_echo_n "(cached) " >&6
10688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10689 /* end confdefs.h. */
10691 #define $ac_tr_decl 1
10693 #include "ansidecl.h"
10694 #include "system.h"
10695 #ifdef HAVE_SYS_RESOURCE_H
10696 #include <sys/resource.h>
10704 char *(*pfn) = (char *(*)) $ac_func ;
10710 if ac_fn_c_try_compile
"$LINENO"; then :
10711 eval "gcc_cv_have_decl_$ac_func=yes"
10713 eval "gcc_cv_have_decl_$ac_func=no"
10715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10718 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10720 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10721 #define $ac_tr_decl 1
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10726 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10727 #define $ac_tr_decl 0
10735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10738 #include "ansidecl.h"
10739 #include "system.h"
10740 #ifdef HAVE_SYS_RESOURCE_H
10741 #include <sys/resource.h>
10752 if ac_fn_c_try_compile
"$LINENO"; then :
10756 $as_echo "#define rlim_t long" >>confdefs.h
10759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10761 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10762 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10763 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10764 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10765 for ac_func
in ldgetname
10767 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10769 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10770 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10771 $as_echo_n "(cached) " >&6
10773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10774 /* end confdefs.h. */
10776 #define $ac_tr_decl 1
10778 #include "ansidecl.h"
10779 #include "system.h"
10780 #ifdef HAVE_LDFCN_H
10791 char *(*pfn) = (char *(*)) $ac_func ;
10797 if ac_fn_c_try_compile
"$LINENO"; then :
10798 eval "gcc_cv_have_decl_$ac_func=yes"
10800 eval "gcc_cv_have_decl_$ac_func=no"
10802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10805 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10807 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10808 #define $ac_tr_decl 1
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10814 #define $ac_tr_decl 0
10822 for ac_func
in times
10824 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10826 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10827 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10828 $as_echo_n "(cached) " >&6
10830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h. */
10833 #define $ac_tr_decl 1
10835 #include "ansidecl.h"
10836 #include "system.h"
10837 #ifdef HAVE_SYS_TIMES_H
10838 #include <sys/times.h>
10846 char *(*pfn) = (char *(*)) $ac_func ;
10852 if ac_fn_c_try_compile
"$LINENO"; then :
10853 eval "gcc_cv_have_decl_$ac_func=yes"
10855 eval "gcc_cv_have_decl_$ac_func=no"
10857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10860 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10862 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10863 #define $ac_tr_decl 1
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10868 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10869 #define $ac_tr_decl 0
10877 for ac_func
in sigaltstack
10879 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10881 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10882 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10883 $as_echo_n "(cached) " >&6
10885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10888 #define $ac_tr_decl 1
10890 #include "ansidecl.h"
10891 #include "system.h"
10892 #include <signal.h>
10899 char *(*pfn) = (char *(*)) $ac_func ;
10905 if ac_fn_c_try_compile
"$LINENO"; then :
10906 eval "gcc_cv_have_decl_$ac_func=yes"
10908 eval "gcc_cv_have_decl_$ac_func=no"
10910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10913 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10915 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10916 #define $ac_tr_decl 1
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10921 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10922 #define $ac_tr_decl 0
10930 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10933 ac_cpp
='$CXXCPP $CPPFLAGS'
10934 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10935 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10936 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10938 for ac_func
in madvise
10940 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10942 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10943 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10944 $as_echo_n "(cached) " >&6
10946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10949 #define $ac_tr_decl 1
10951 #include "ansidecl.h"
10952 #include "system.h"
10959 char *(*pfn) = (char *(*)) $ac_func ;
10965 if ac_fn_cxx_try_compile
"$LINENO"; then :
10966 eval "gcc_cv_have_decl_$ac_func=yes"
10968 eval "gcc_cv_have_decl_$ac_func=no"
10970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10973 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10975 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10976 #define $ac_tr_decl 1
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10981 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10982 #define $ac_tr_decl 0
10990 ac_cpp
='$CPP $CPPFLAGS'
10991 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10992 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10993 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10996 # More time-related stuff.
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10998 $as_echo_n "checking for struct tms... " >&6; }
10999 if test "${ac_cv_struct_tms+set}" = set; then :
11000 $as_echo_n "(cached) " >&6
11003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11006 #include "ansidecl.h"
11007 #include "system.h"
11008 #ifdef HAVE_SYS_TIMES_H
11009 #include <sys/times.h>
11020 if ac_fn_c_try_compile
"$LINENO"; then :
11021 ac_cv_struct_tms
=yes
11023 ac_cv_struct_tms
=no
11025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11028 $as_echo "$ac_cv_struct_tms" >&6; }
11029 if test $ac_cv_struct_tms = yes; then
11031 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11035 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11036 # revisit after autoconf 2.50.
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11038 $as_echo_n "checking for clock_t... " >&6; }
11039 if test "${gcc_cv_type_clock_t+set}" = set; then :
11040 $as_echo_n "(cached) " >&6
11043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11044 /* end confdefs.h. */
11046 #include "ansidecl.h"
11047 #include "system.h"
11057 if ac_fn_c_try_compile
"$LINENO"; then :
11058 gcc_cv_type_clock_t
=yes
11060 gcc_cv_type_clock_t
=no
11062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11065 $as_echo "$gcc_cv_type_clock_t" >&6; }
11066 if test $gcc_cv_type_clock_t = yes; then
11068 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11072 # Check if F_SETLKW is supported by fcntl.
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11074 $as_echo_n "checking for F_SETLKW... " >&6; }
11075 if test "${ac_cv_f_setlkw+set}" = set; then :
11076 $as_echo_n "(cached) " >&6
11079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11092 return fcntl (1, F_SETLKW, &fl);
11097 if ac_fn_c_try_compile
"$LINENO"; then :
11102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11105 $as_echo "$ac_cv_f_setlkw" >&6; }
11106 if test $ac_cv_f_setlkw = yes; then
11108 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11112 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11113 CFLAGS
="$saved_CFLAGS"
11114 CXXFLAGS
="$saved_CXXFLAGS"
11116 # mkdir takes a single argument on some systems.
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11118 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11119 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11120 $as_echo_n "(cached) " >&6
11122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11123 /* end confdefs.h. */
11125 #include <sys/types.h>
11126 #ifdef HAVE_SYS_STAT_H
11127 # include <sys/stat.h>
11129 #ifdef HAVE_UNISTD_H
11130 # include <unistd.h>
11132 #ifdef HAVE_DIRECT_H
11133 # include <direct.h>
11143 if ac_fn_c_try_compile
"$LINENO"; then :
11144 gcc_cv_mkdir_takes_one_arg
=no
11146 gcc_cv_mkdir_takes_one_arg
=yes
11148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11151 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11152 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11154 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11165 # With Setjmp/Longjmp based exception handling.
11166 # Check whether --enable-sjlj-exceptions was given.
11167 if test "${enable_sjlj_exceptions+set}" = set; then :
11168 enableval
=$enable_sjlj_exceptions; case $target in
11170 if test $enableval != yes; then
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11172 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11177 force_sjlj_exceptions
=yes
11181 force_sjlj_exceptions
=yes
11185 force_sjlj_exceptions
=yes
11189 force_sjlj_exceptions
=no
11194 if test $force_sjlj_exceptions = yes; then
11195 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11197 cat >>confdefs.h
<<_ACEOF
11198 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11203 # --------------------------------------------------------
11204 # Build, host, and target specific configuration fragments
11205 # --------------------------------------------------------
11207 # Collect build-machine-specific information.
11208 .
${srcdir}/config.build
11210 # Collect host-machine-specific information.
11211 .
${srcdir}/config.
host
11215 # Collect target-machine-specific information.
11216 .
${srcdir}/config.gcc
11218 extra_objs
="${host_extra_objs} ${extra_objs}"
11219 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11221 # Default the target-machine variables that were not explicitly set.
11222 if test x
"$tm_file" = x
11223 then tm_file
=$cpu_type/$cpu_type.h
; fi
11225 if test x
"$extra_headers" = x
11226 then extra_headers
=; fi
11228 if test x
$md_file = x
11229 then md_file
=$cpu_type/$cpu_type.md
; fi
11231 if test x
$out_file = x
11232 then out_file
=$cpu_type/$cpu_type.c
; fi
11234 if test x
"$tmake_file" = x
11235 then tmake_file
=$cpu_type/t-
$cpu_type
11238 # Support --enable-initfini-array.
11239 if test x
$enable_initfini_array != xno
; then
11240 tm_file
="${tm_file} initfini-array.h"
11243 if test x
"$dwarf2" = xyes
11244 then tm_file
="$tm_file tm-dwarf2.h"
11247 # Say what files are being used for the output code and MD file.
11248 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11249 echo "Using \`$srcdir/config/$md_file' as machine description file."
11251 # If any of the xm_file variables contain nonexistent files, warn
11252 # about them and drop them.
11255 for x
in $build_xm_file; do
11256 if test -f $srcdir/config
/$x
11258 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11259 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11262 build_xm_file
="$bx"
11265 for x
in $host_xm_file; do
11266 if test -f $srcdir/config
/$x
11268 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11269 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11275 for x
in $xm_file; do
11276 if test -f $srcdir/config
/$x
11278 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11279 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11285 for f
in $tm_file; do
11288 if test $count = ax
; then
11289 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11291 echo "Using the following target machine macro files:"
11292 for f
in $tm_file; do
11293 echo " $srcdir/config/$f"
11297 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11299 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11303 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11305 cat >>confdefs.h
<<_ACEOF
11306 #define HAVE_GNU_LD $gnu_ld_bool
11310 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11312 cat >>confdefs.h
<<_ACEOF
11313 #define HAVE_GNU_AS $gnu_as_bool
11318 for f
in $host_xm_file; do
11321 if test $count = a
; then
11323 elif test $count = ax
; then
11324 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11326 echo "Using the following host machine macro files:"
11327 for f
in $host_xm_file; do
11328 echo " $srcdir/config/$f"
11331 echo "Using ${out_host_hook_obj} for host machine hooks."
11333 if test "$host_xm_file" != "$build_xm_file"; then
11335 for f
in $build_xm_file; do
11338 if test $count = a
; then
11340 elif test $count = ax
; then
11341 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11343 echo "Using the following build machine macro files:"
11344 for f
in $build_xm_file; do
11345 echo " $srcdir/config/$f"
11350 if test -n "$configured_native_system_header_dir"; then
11351 native_system_header_dir
=$configured_native_system_header_dir
11353 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11357 powerpc
*-*-darwin*)
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11359 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11360 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11361 $as_echo_n "(cached) " >&6
11363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h. */
11366 #include <sys/cdefs.h>
11367 #include <sys/signal.h>
11368 #include <ucontext.h>
11369 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11372 if ac_fn_c_try_compile
"$LINENO"; then :
11373 gcc_cv_mcontext_underscores
=no
11375 gcc_cv_mcontext_underscores
=yes
11377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11380 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11381 if test $gcc_cv_mcontext_underscores = yes; then
11383 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11393 # Check if a valid thread package
11394 case ${enable_threads} in
11397 target_thread_file
='single'
11401 target_thread_file
='single'
11403 aix | dce | lynx | mipssde | posix | rtems | \
11404 single | tpf | vxworks | win32
)
11405 target_thread_file
=${enable_threads}
11408 echo "${enable_threads} is an unknown thread package" 1>&2
11413 if test x
${thread_file} = x
; then
11414 # No thread file set by target-specific clauses in config.gcc,
11415 # so use file chosen by default logic above
11416 thread_file
=${target_thread_file}
11424 if test x
$enable___cxa_atexit = xyes || \
11425 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11426 if test x
$host = x
$target; then
11428 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11429 # keyed to flag_use_cxa_atexit
11437 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11438 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11441 echo "__cxa_atexit can't be enabled on this target"
11447 # We can't check for __cxa_atexit when building a cross, so assume
11451 if test x
$use_cxa_atexit = xyes
; then
11453 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11458 # Look for a file containing extra machine modes.
11459 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11460 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11463 cat >>confdefs.h
<<_ACEOF
11464 #define EXTRA_MODES_FILE "config/$extra_modes"
11469 # Convert extra_options into a form suitable for Makefile use.
11472 for f
in $extra_options; do
11473 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11474 all_opt_files
="$all_opt_files $srcdir/config/$f"
11478 # auto-host.h is the file containing items generated by autoconf and is
11479 # the first file included by config.h.
11480 # If host=build, it is correct to have bconfig include auto-host.h
11481 # as well. If host!=build, we are in error and need to do more
11482 # work to find out the build config parameters.
11483 if test x
$host = x
$build
11485 build_auto
=auto-host.h
11487 # We create a subdir, then run autoconf in the subdir.
11488 # To prevent recursion we set host and build for the new
11489 # invocation of configure to the build for this invocation
11496 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11497 *) realsrcdir
=..
/${srcdir};;
11499 # Clearing GMPINC is necessary to prevent host headers being
11500 # used by the build compiler. Defining GENERATOR_FILE stops
11501 # system.h from including gmp.h.
11502 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11503 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11504 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11505 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11506 ${realsrcdir}/configure \
11507 --enable-languages=${enable_languages-all} \
11508 --target=$target_alias --host=$build_alias --build=$build_alias
11510 # We just finished tests for the build machine, so rename
11511 # the file auto-build.h in the gcc directory.
11512 mv auto-host.h ..
/auto-build.h
11515 build_auto
=auto-build.h
11519 tm_file
="${tm_file} defaults.h"
11520 tm_p_file
="${tm_p_file} tm-preds.h"
11521 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11522 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11523 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11524 # put this back in temporarily.
11525 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11531 # Compile in configure arguments.
11532 if test -f configargs.h
; then
11533 # Being re-configured.
11534 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11535 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11537 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11540 # Double all backslashes and backslash all quotes to turn
11541 # gcc_config_arguments into a C string.
11542 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11543 $gcc_config_arguments
11545 gcc_config_arguments_str
=`cat conftest.out`
11548 cat > configargs.h
<<EOF
11549 /* Generated automatically. */
11550 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11551 static const char thread_model[] = "$thread_file";
11553 static const struct {
11554 const char *name, *value;
11555 } configure_default_options[] = $configure_default_options;
11558 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11559 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11560 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11561 if test -f $srcdir/REVISION
; then
11562 gcc_REVISION
=`cat $srcdir/REVISION`
11566 cat > plugin-version.h
<<EOF
11567 #include "configargs.h"
11569 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11570 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11571 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11572 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11574 static char basever[] = "$gcc_BASEVER";
11575 static char datestamp[] = "$gcc_DATESTAMP";
11576 static char devphase[] = "$gcc_DEVPHASE";
11577 static char revision[] = "$gcc_REVISION";
11579 /* FIXME plugins: We should make the version information more precise.
11580 One way to do is to add a checksum. */
11582 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11583 devphase, revision,
11584 configuration_arguments};
11587 # Internationalization
11588 # If we haven't got the data from the intl directory,
11589 # assume NLS is disabled.
11598 if test -f ..
/intl
/config.intl
; then
11599 . ..
/intl
/config.intl
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11602 $as_echo_n "checking whether NLS is requested... " >&6; }
11603 if test x
"$USE_NLS" != xyes
; then
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605 $as_echo "no" >&6; }
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11608 $as_echo "yes" >&6; }
11610 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11614 $as_echo_n "checking for catalogs to be installed... " >&6; }
11615 # Look for .po and .gmo files in the source directory.
11618 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11619 # If there aren't any .gmo files the shell will give us the
11620 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11622 case "$cat" in *\
**)
11625 # The quadruple backslash is collapsed to a double backslash
11626 # by the backticks, then collapsed again by the double quotes,
11627 # leaving us with one backslash in the sed expression (right
11628 # before the dot that mustn't act as a wildcard).
11629 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11630 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11631 # The user is allowed to set LINGUAS to a list of languages to
11632 # install catalogs for. If it's empty that means "all of them."
11633 if test "x$LINGUAS" = x
; then
11634 CATALOGS
="$CATALOGS $cat"
11635 XLINGUAS
="$XLINGUAS $lang"
11637 case "$LINGUAS" in *$lang*)
11638 CATALOGS
="$CATALOGS $cat"
11639 XLINGUAS
="$XLINGUAS $lang"
11644 LINGUAS
="$XLINGUAS"
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11646 $as_echo "$LINGUAS" >&6; }
11659 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11660 # -liconv on the link line twice.
11661 case "$LIBINTL" in *$LIBICONV*)
11665 # Check whether --enable-secureplt was given.
11666 if test "${enable_secureplt+set}" = set; then :
11667 enableval
=$enable_secureplt;
11671 # Check whether --enable-leading-mingw64-underscores was given.
11672 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11673 enableval
=$enable_leading_mingw64_underscores;
11676 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11678 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11682 # Check whether --enable-cld was given.
11683 if test "${enable_cld+set}" = set; then :
11684 enableval
=$enable_cld;
11690 # Check whether --enable-frame-pointer was given.
11691 if test "${enable_frame_pointer+set}" = set; then :
11692 enableval
=$enable_frame_pointer;
11696 linux
* | darwin
[8912]*)
11697 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11699 enable_frame_pointer
=no
11702 enable_frame_pointer
=yes
11709 # Windows32 Registry support for specifying GCC installation paths.
11710 # Check whether --enable-win32-registry was given.
11711 if test "${enable_win32_registry+set}" = set; then :
11712 enableval
=$enable_win32_registry;
11717 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11718 if test "x$enable_win32_registry" != xno
; then
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11720 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11721 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11722 $as_echo_n "(cached) " >&6
11724 ac_func_search_save_LIBS
=$LIBS
11725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11726 /* end confdefs.h. */
11728 /* Override any GCC internal prototype to avoid an error.
11729 Use char because int might match the return type of a GCC
11730 builtin and then its argument prototype would still apply. */
11734 char RegOpenKeyExA ();
11738 return RegOpenKeyExA ();
11743 for ac_lib
in '' advapi32
; do
11744 if test -z "$ac_lib"; then
11745 ac_res
="none required"
11748 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11750 if ac_fn_c_try_link
"$LINENO"; then :
11751 ac_cv_search_RegOpenKeyExA
=$ac_res
11753 rm -f core conftest.err conftest.
$ac_objext \
11755 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11759 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11762 ac_cv_search_RegOpenKeyExA
=no
11764 rm conftest.
$ac_ext
11765 LIBS
=$ac_func_search_save_LIBS
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11768 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11769 ac_res
=$ac_cv_search_RegOpenKeyExA
11770 if test "$ac_res" != no
; then :
11771 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11774 enable_win32_registry
=no
11779 if test "x$enable_win32_registry" != xno
; then
11781 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11784 if test "x$enable_win32_registry" != xyes \
11785 && test "x$enable_win32_registry" != x
; then
11787 cat >>confdefs.h
<<_ACEOF
11788 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11796 # Get an absolute path to the GCC top-level source directory
11797 holddir
=`${PWDCMD-pwd}`
11799 topdir
=`${PWDCMD-pwd}`
11802 # Conditionalize the makefile for this host machine.
11804 for f
in ${host_xmake_file}
11806 if test -f ${srcdir}/config
/$f
11808 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11812 # Conditionalize the makefile for this target machine.
11814 for f
in ${tmake_file}
11816 if test -f ${srcdir}/config
/$f
11818 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11821 tmake_file
="${tmake_file_}"
11823 out_object_file
=`basename $out_file .c`.o
11824 common_out_object_file
=`basename $common_out_file .c`.o
11826 tm_file_list
="options.h"
11827 tm_include_list
="options.h insn-constants.h"
11828 for f
in $tm_file; do
11831 f
=`echo $f | sed 's/^..//'`
11832 tm_file_list
="${tm_file_list} $f"
11833 tm_include_list
="${tm_include_list} $f"
11836 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11837 tm_include_list
="${tm_include_list} $f"
11840 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11841 tm_include_list
="${tm_include_list} config/$f"
11848 for f
in $tm_p_file; do
11851 tm_p_file_list
="${tm_p_file_list} $f"
11852 tm_p_include_list
="${tm_p_include_list} $f"
11855 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11856 tm_p_include_list
="${tm_p_include_list} config/$f"
11862 for f
in $xm_file; do
11865 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11866 xm_include_list
="${xm_include_list} $f"
11869 xm_file_list
="${xm_file_list} $f"
11870 xm_include_list
="${xm_include_list} $f"
11873 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11874 xm_include_list
="${xm_include_list} config/$f"
11880 host_xm_include_list
=
11881 for f
in $host_xm_file; do
11884 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11885 host_xm_include_list
="${host_xm_include_list} $f"
11888 host_xm_file_list
="${host_xm_file_list} $f"
11889 host_xm_include_list
="${host_xm_include_list} $f"
11892 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11893 host_xm_include_list
="${host_xm_include_list} config/$f"
11898 build_xm_file_list
=
11899 for f
in $build_xm_file; do
11902 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11903 build_xm_include_list
="${build_xm_include_list} $f"
11905 auto-build.h | auto-host.h
)
11906 build_xm_file_list
="${build_xm_file_list} $f"
11907 build_xm_include_list
="${build_xm_include_list} $f"
11910 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11911 build_xm_include_list
="${build_xm_include_list} config/$f"
11916 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11917 # cross-compiler which does not use the native headers and libraries.
11918 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11921 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11923 if test "x$with_build_sysroot" != x
; then
11924 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11926 # This value is used, even on a native system, because
11927 # CROSS_SYSTEM_HEADER_DIR is just
11928 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11929 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11932 if test x
$host != x
$target
11934 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11936 SYSTEM_HEADER_DIR
=$build_system_header_dir
11937 case "$host","$target" in
11938 # Darwin crosses can use the host system's libraries and headers,
11939 # because of the fat library support. Of course, it must be the
11940 # same version of Darwin on both sides. Allow the user to
11941 # just say --target=foo-darwin without a version number to mean
11942 # "the version on this system".
11943 *-*-darwin*,*-*-darwin*)
11944 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11945 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11946 if test $hostos = $targetos -o $targetos = darwin
; then
11948 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11953 i?
86-*-*,x86_64-
*-* \
11954 | powerpc
*-*-*,powerpc64
*-*-*)
11955 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11960 if test "x$with_headers" = x
; then
11967 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11968 SYSTEM_HEADER_DIR
=$build_system_header_dir
11971 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
11972 if test "x$with_headers" != x
; then
11973 target_header_dir
=$with_headers
11974 elif test "x$with_sysroot" = x
; then
11975 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
11976 elif test "x$with_build_sysroot" != "x"; then
11977 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
11978 elif test "x$with_sysroot" = xyes
; then
11979 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
11981 target_header_dir
="${with_sysroot}${native_system_header_dir}"
11984 target_header_dir
=${native_system_header_dir}
11987 # If this is a cross-compiler that does not
11988 # have its own set of headers then define
11991 # If this is using newlib, without having the headers available now,
11992 # then define inhibit_libc in LIBGCC2_CFLAGS.
11993 # This prevents libgcc2 from containing any code which requires libc
11995 : ${inhibit_libc=false}
11996 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11997 test x
$with_newlib = xyes
; } &&
11998 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12003 # When building gcc with a cross-compiler, we need to adjust things so
12004 # that the generator programs are still built with the native compiler.
12005 # Also, we cannot run fixincludes.
12007 # These are the normal (build=host) settings:
12008 CC_FOR_BUILD
='$(CC)'
12009 CXX_FOR_BUILD
='$(CXX)'
12010 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12011 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12012 BUILD_LDFLAGS
='$(LDFLAGS)'
12013 STMP_FIXINC
=stmp-fixinc
12015 # And these apply if build != host, or we are generating coverage data
12016 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12018 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12019 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12020 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12023 # Expand extra_headers to include complete path.
12024 # This substitutes for lots of t-* files.
12025 extra_headers_list
=
12026 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12027 for file in ${extra_headers} ; do
12028 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12031 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12032 if test x
"$use_gcc_tgmath" = xyes
12033 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12036 # Define collect2 in Makefile.
12037 case $host_can_use_collect2 in
12039 *) collect2
='collect2$(exeext)' ;;
12043 # Add a definition of USE_COLLECT2 if system wants one.
12044 case $use_collect2 in
12045 no
) use_collect2
= ;;
12048 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12049 xm_defines
="${xm_defines} USE_COLLECT2"
12050 case $host_can_use_collect2 in
12052 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12059 cat >>confdefs.h
<<_ACEOF
12060 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12064 # ---------------------------
12065 # Assembler & linker features
12066 # ---------------------------
12068 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12069 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12070 # However when ld-new is first executed from the build tree, libtool will
12071 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12072 # to the build tree. While doing this we need to use the previous-stage
12073 # linker, or we have an infinite loop. The presence of a shell script as
12074 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12075 # the gcc/collect-ld script. So we need to know how libtool works, or
12076 # exec-tool will fail.
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12082 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12087 macro_version
='2.2.7a'
12088 macro_revision
='1.3134'
12102 ltmain
="$ac_aux_dir/ltmain.sh"
12104 # Backslashify metacharacters that are still active within
12105 # double-quoted strings.
12106 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12108 # Same as above, but do not quote variable references.
12109 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12111 # Sed substitution to delay expansion of an escaped shell variable in a
12112 # double_quote_subst'ed string.
12113 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12115 # Sed substitution to delay expansion of an escaped single quote.
12116 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12118 # Sed substitution to avoid accidental globbing in evaled expressions
12119 no_glob_subst
='s/\*/\\\*/g'
12121 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12122 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12123 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12126 $as_echo_n "checking how to print strings... " >&6; }
12127 # Test print first, because it will be a builtin if present.
12128 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12129 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12131 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12134 # Use this function as a fallback that always works.
12135 func_fallback_echo ()
12137 eval 'cat <<_LTECHO_EOF
12141 ECHO='func_fallback_echo
'
12144 # func_echo_all arg...
12145 # Invoke $ECHO with all args, space-separated.
12152 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12153 $as_echo "printf" >&6; } ;;
12154 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12155 $as_echo "print -r" >&6; } ;;
12156 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12157 $as_echo "cat" >&6; } ;;
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12174 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12175 if test "${ac_cv_path_SED+set}" = set; then :
12176 $as_echo_n "(cached) " >&6
12178 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12179 for ac_i in 1 2 3 4 5 6 7; do
12180 ac_script="$ac_script$as_nl$ac_script"
12182 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12183 { ac_script=; unset ac_script;}
12184 if test -z "$SED"; then
12185 ac_path_SED_found=false
12186 # Loop through the user's path and
test for each of PROGNAME-LIST
12187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12188 for as_dir
in $PATH
12191 test -z "$as_dir" && as_dir
=.
12192 for ac_prog
in sed gsed
; do
12193 for ac_exec_ext
in '' $ac_executable_extensions; do
12194 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12195 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12196 # Check for GNU ac_path_SED and select it if it is found.
12197 # Check for GNU $ac_path_SED
12198 case `"$ac_path_SED" --version 2>&1` in
12200 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12203 $as_echo_n 0123456789 >"conftest.in"
12206 cat "conftest.in" "conftest.in" >"conftest.tmp"
12207 mv "conftest.tmp" "conftest.in"
12208 cp "conftest.in" "conftest.nl"
12209 $as_echo '' >> "conftest.nl"
12210 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12211 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12212 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12213 if test $ac_count -gt ${ac_path_SED_max-0}; then
12214 # Best one so far, save it but keep looking for a better one
12215 ac_cv_path_SED
="$ac_path_SED"
12216 ac_path_SED_max
=$ac_count
12218 # 10*(2^10) chars as input seems more than enough
12219 test $ac_count -gt 10 && break
12221 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12224 $ac_path_SED_found && break 3
12229 if test -z "$ac_cv_path_SED"; then
12230 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12233 ac_cv_path_SED
=$SED
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12238 $as_echo "$ac_cv_path_SED" >&6; }
12239 SED
="$ac_cv_path_SED"
12242 test -z "$SED" && SED
=sed
12243 Xsed
="$SED -e 1s/^X//"
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12256 $as_echo_n "checking for fgrep... " >&6; }
12257 if test "${ac_cv_path_FGREP+set}" = set; then :
12258 $as_echo_n "(cached) " >&6
12260 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12261 then ac_cv_path_FGREP
="$GREP -F"
12263 if test -z "$FGREP"; then
12264 ac_path_FGREP_found
=false
12265 # Loop through the user's path and test for each of PROGNAME-LIST
12266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12267 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12270 test -z "$as_dir" && as_dir
=.
12271 for ac_prog
in fgrep
; do
12272 for ac_exec_ext
in '' $ac_executable_extensions; do
12273 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12274 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12275 # Check for GNU ac_path_FGREP and select it if it is found.
12276 # Check for GNU $ac_path_FGREP
12277 case `"$ac_path_FGREP" --version 2>&1` in
12279 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12282 $as_echo_n 0123456789 >"conftest.in"
12285 cat "conftest.in" "conftest.in" >"conftest.tmp"
12286 mv "conftest.tmp" "conftest.in"
12287 cp "conftest.in" "conftest.nl"
12288 $as_echo 'FGREP' >> "conftest.nl"
12289 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12290 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12291 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12292 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12293 # Best one so far, save it but keep looking for a better one
12294 ac_cv_path_FGREP
="$ac_path_FGREP"
12295 ac_path_FGREP_max
=$ac_count
12297 # 10*(2^10) chars as input seems more than enough
12298 test $ac_count -gt 10 && break
12300 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12303 $ac_path_FGREP_found && break 3
12308 if test -z "$ac_cv_path_FGREP"; then
12309 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12312 ac_cv_path_FGREP
=$FGREP
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12318 $as_echo "$ac_cv_path_FGREP" >&6; }
12319 FGREP
="$ac_cv_path_FGREP"
12322 test -z "$GREP" && GREP
=grep
12342 # Check whether --with-gnu-ld was given.
12343 if test "${with_gnu_ld+set}" = set; then :
12344 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12350 if test "$GCC" = yes; then
12351 # Check if gcc -print-prog-name=ld gives a path.
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12353 $as_echo_n "checking for ld used by $CC... " >&6; }
12356 # gcc leaves a trailing carriage return which upsets mingw
12357 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12359 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12362 # Accept absolute paths.
12364 re_direlt
='/[^/][^/]*/\.\./'
12365 # Canonicalize the pathname of ld
12366 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12367 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12368 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12370 test -z "$LD" && LD
="$ac_prog"
12373 # If it fails, then pretend we aren't using GCC.
12377 # If it is relative, then search for the first ld in PATH.
12378 with_gnu_ld
=unknown
12381 elif test "$with_gnu_ld" = yes; then
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12383 $as_echo_n "checking for GNU ld... " >&6; }
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12386 $as_echo_n "checking for non-GNU ld... " >&6; }
12388 if test "${lt_cv_path_LD+set}" = set; then :
12389 $as_echo_n "(cached) " >&6
12391 if test -z "$LD"; then
12392 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12393 for ac_dir
in $PATH; do
12395 test -z "$ac_dir" && ac_dir
=.
12396 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12397 lt_cv_path_LD
="$ac_dir/$ac_prog"
12398 # Check to see if the program is GNU ld. I'd rather use --version,
12399 # but apparently some variants of GNU ld only accept -v.
12400 # Break only if it was the GNU/non-GNU ld that we prefer.
12401 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12402 *GNU
* |
*'with BFD'*)
12403 test "$with_gnu_ld" != no
&& break
12406 test "$with_gnu_ld" != yes && break
12413 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12417 LD
="$lt_cv_path_LD"
12418 if test -n "$LD"; then
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12420 $as_echo "$LD" >&6; }
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12425 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12427 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12428 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
12431 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12432 case `$LD -v 2>&1 </dev/null` in
12433 *GNU
* |
*'with BFD'*)
12434 lt_cv_prog_gnu_ld
=yes
12437 lt_cv_prog_gnu_ld
=no
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12442 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12443 with_gnu_ld
=$lt_cv_prog_gnu_ld
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12454 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12455 if test "${lt_cv_path_NM+set}" = set; then :
12456 $as_echo_n "(cached) " >&6
12458 if test -n "$NM"; then
12459 # Let the user override the test.
12460 lt_cv_path_NM
="$NM"
12462 lt_nm_to_check
="${ac_tool_prefix}nm"
12463 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12464 lt_nm_to_check
="$lt_nm_to_check nm"
12466 for lt_tmp_nm
in $lt_nm_to_check; do
12467 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12468 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12470 test -z "$ac_dir" && ac_dir
=.
12471 tmp_nm
="$ac_dir/$lt_tmp_nm"
12472 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12473 # Check to see if the nm accepts a BSD-compat flag.
12474 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12475 # nm: unknown option "B" ignored
12476 # Tru64's nm complains that /dev/null is an invalid object file
12477 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12478 */dev
/null
* |
*'Invalid file or object type'*)
12479 lt_cv_path_NM
="$tmp_nm -B"
12483 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12485 lt_cv_path_NM
="$tmp_nm -p"
12489 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12490 continue # so that we can try to find one that supports BSD flags
12499 : ${lt_cv_path_NM=no}
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12503 $as_echo "$lt_cv_path_NM" >&6; }
12504 if test "$lt_cv_path_NM" != "no"; then
12505 NM
="$lt_cv_path_NM"
12507 # Didn't find any BSD compatible name lister, look for dumpbin.
12508 if test -n "$DUMPBIN"; then :
12509 # Let the user override the test.
12511 if test -n "$ac_tool_prefix"; then
12512 for ac_prog
in dumpbin
"link -dump"
12514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12515 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12517 $as_echo_n "checking for $ac_word... " >&6; }
12518 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12519 $as_echo_n "(cached) " >&6
12521 if test -n "$DUMPBIN"; then
12522 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12525 for as_dir
in $PATH
12528 test -z "$as_dir" && as_dir
=.
12529 for ac_exec_ext
in '' $ac_executable_extensions; do
12530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12531 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12541 DUMPBIN
=$ac_cv_prog_DUMPBIN
12542 if test -n "$DUMPBIN"; then
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12544 $as_echo "$DUMPBIN" >&6; }
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12547 $as_echo "no" >&6; }
12551 test -n "$DUMPBIN" && break
12554 if test -z "$DUMPBIN"; then
12555 ac_ct_DUMPBIN
=$DUMPBIN
12556 for ac_prog
in dumpbin
"link -dump"
12558 # Extract the first word of "$ac_prog", so it can be a program name with args.
12559 set dummy
$ac_prog; ac_word
=$2
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12561 $as_echo_n "checking for $ac_word... " >&6; }
12562 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12563 $as_echo_n "(cached) " >&6
12565 if test -n "$ac_ct_DUMPBIN"; then
12566 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12568 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12569 for as_dir
in $PATH
12572 test -z "$as_dir" && as_dir
=.
12573 for ac_exec_ext
in '' $ac_executable_extensions; do
12574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12575 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12585 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12586 if test -n "$ac_ct_DUMPBIN"; then
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12588 $as_echo "$ac_ct_DUMPBIN" >&6; }
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12591 $as_echo "no" >&6; }
12595 test -n "$ac_ct_DUMPBIN" && break
12598 if test "x$ac_ct_DUMPBIN" = x
; then
12601 case $cross_compiling:$ac_tool_warned in
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12605 ac_tool_warned
=yes ;;
12607 DUMPBIN
=$ac_ct_DUMPBIN
12611 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12613 DUMPBIN
="$DUMPBIN -symbols"
12621 if test "$DUMPBIN" != ":"; then
12625 test -z "$NM" && NM
=nm
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12633 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12634 if test "${lt_cv_nm_interface+set}" = set; then :
12635 $as_echo_n "(cached) " >&6
12637 lt_cv_nm_interface
="BSD nm"
12638 echo "int some_variable = 0;" > conftest.
$ac_ext
12639 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12640 (eval "$ac_compile" 2>conftest.err
)
12641 cat conftest.err
>&5
12642 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12643 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12644 cat conftest.err
>&5
12645 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12646 cat conftest.out
>&5
12647 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12648 lt_cv_nm_interface
="MS dumpbin"
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12653 $as_echo "$lt_cv_nm_interface" >&6; }
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12656 $as_echo_n "checking whether ln -s works... " >&6; }
12658 if test "$LN_S" = "ln -s"; then
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12660 $as_echo "yes" >&6; }
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12663 $as_echo "no, using $LN_S" >&6; }
12666 # find the maximum length of command line arguments
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12668 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12669 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12670 $as_echo_n "(cached) " >&6
12677 # On DJGPP, this test can blow up pretty badly due to problems in libc
12678 # (any single argument exceeding 2000 bytes causes a buffer overrun
12679 # during glob expansion). Even if it were fixed, the result of this
12680 # check would be larger than it should be.
12681 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12685 # Under GNU Hurd, this test is not required because there is
12686 # no limit to the length of command line arguments.
12687 # Libtool will interpret -1 as no limit whatsoever
12688 lt_cv_sys_max_cmd_len
=-1;
12691 cygwin
* | mingw
* | cegcc
*)
12692 # On Win9x/ME, this test blows up -- it succeeds, but takes
12693 # about 5 minutes as the teststring grows exponentially.
12694 # Worse, since 9x/ME are not pre-emptively multitasking,
12695 # you end up with a "frozen" computer, even though with patience
12696 # the test eventually succeeds (with a max line length of 256k).
12697 # Instead, let's just punt: use the minimum linelength reported by
12698 # all of the supported platforms: 8192 (on NT/2K/XP).
12699 lt_cv_sys_max_cmd_len
=8192;
12703 # On MiNT this can take a long time and run out of memory.
12704 lt_cv_sys_max_cmd_len
=8192;
12708 # On AmigaOS with pdksh, this test takes hours, literally.
12709 # So we just punt and use a minimum line length of 8192.
12710 lt_cv_sys_max_cmd_len
=8192;
12713 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12714 # This has been around since 386BSD, at least. Likely further.
12715 if test -x /sbin
/sysctl
; then
12716 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12717 elif test -x /usr
/sbin
/sysctl
; then
12718 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12720 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12722 # And add a safety zone
12723 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12724 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12728 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12729 lt_cv_sys_max_cmd_len
=196608
12733 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12734 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12735 # nice to cause kernel panics so lets avoid the loop below.
12736 # First set a reasonable default.
12737 lt_cv_sys_max_cmd_len
=16384
12739 if test -x /sbin
/sysconfig
; then
12740 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12741 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12746 lt_cv_sys_max_cmd_len
=102400
12748 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12749 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12750 if test -n "$kargmax"; then
12751 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12753 lt_cv_sys_max_cmd_len
=32768
12757 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12758 if test -n "$lt_cv_sys_max_cmd_len"; then
12759 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12760 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12762 # Make teststring a little bigger before we do anything with it.
12763 # a 1K string should be a reasonable start.
12764 for i
in 1 2 3 4 5 6 7 8 ; do
12765 teststring
=$teststring$teststring
12767 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12768 # If test is not a shell built-in, we'll probably end up computing a
12769 # maximum length that is only half of the actual maximum length, but
12771 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12772 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12773 test $i != 17 # 1/2 MB should be enough
12776 teststring
=$teststring$teststring
12778 # Only check the string length outside the loop.
12779 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12781 # Add a significant safety factor because C++ compilers can tack on
12782 # massive amounts of additional arguments before passing them to the
12783 # linker. It appears as though 1/2 is a usable value.
12784 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12791 if test -n $lt_cv_sys_max_cmd_len ; then
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12793 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12796 $as_echo "none" >&6; }
12798 max_cmd_len
=$lt_cv_sys_max_cmd_len
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12810 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12811 # Try some XSI features
12813 ( _lt_dummy
="a/b/c"
12814 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12816 && eval 'test $(( 1 + 1 )) -eq 2 \
12817 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12820 $as_echo "$xsi_shell" >&6; }
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12824 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12826 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12828 && lt_shell_append=yes
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12830 $as_echo "$lt_shell_append" >&6; }
12833 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12843 # test EBCDIC or ASCII
12844 case `echo X|tr X '\101'` in
12845 A) # ASCII based system
12846 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12847 lt_SP2NL='tr \040 \012'
12848 lt_NL2SP='tr \015\012 \040\040'
12850 *) # EBCDIC based system
12851 lt_SP2NL='tr \100 \n'
12852 lt_NL2SP='tr \r\n \100\100'
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12865 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12866 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12867 $as_echo_n "(cached
) " >&6
12869 lt_cv_ld_reload_flag='-r'
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12872 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12873 reload_flag=$lt_cv_ld_reload_flag
12874 case $reload_flag in
12876 *) reload_flag=" $reload_flag" ;;
12878 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12881 if test "$GCC" = yes; then
12882 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12884 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12897 if test -n "$ac_tool_prefix"; then
12898 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12899 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12901 $as_echo_n "checking
for $ac_word...
" >&6; }
12902 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12903 $as_echo_n "(cached
) " >&6
12905 if test -n "$OBJDUMP"; then
12906 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909 for as_dir in $PATH
12912 test -z "$as_dir" && as_dir=.
12913 for ac_exec_ext in '' $ac_executable_extensions; do
12914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12915 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12916 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12925 OBJDUMP=$ac_cv_prog_OBJDUMP
12926 if test -n "$OBJDUMP"; then
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12928 $as_echo "$OBJDUMP" >&6; }
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12931 $as_echo "no
" >&6; }
12936 if test -z "$ac_cv_prog_OBJDUMP"; then
12937 ac_ct_OBJDUMP=$OBJDUMP
12938 # Extract the first word of "objdump
", so it can be a program name with args.
12939 set dummy objdump; ac_word=$2
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12941 $as_echo_n "checking
for $ac_word...
" >&6; }
12942 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12943 $as_echo_n "(cached
) " >&6
12945 if test -n "$ac_ct_OBJDUMP"; then
12946 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949 for as_dir in $PATH
12952 test -z "$as_dir" && as_dir=.
12953 for ac_exec_ext in '' $ac_executable_extensions; do
12954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12955 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12956 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12965 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12966 if test -n "$ac_ct_OBJDUMP"; then
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12968 $as_echo "$ac_ct_OBJDUMP" >&6; }
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12971 $as_echo "no
" >&6; }
12974 if test "x
$ac_ct_OBJDUMP" = x; then
12977 case $cross_compiling:$ac_tool_warned in
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12980 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12981 ac_tool_warned=yes ;;
12983 OBJDUMP=$ac_ct_OBJDUMP
12986 OBJDUMP="$ac_cv_prog_OBJDUMP"
12989 test -z "$OBJDUMP" && OBJDUMP=objdump
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13000 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13001 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13002 $as_echo_n "(cached
) " >&6
13004 lt_cv_file_magic_cmd='$MAGIC_CMD'
13005 lt_cv_file_magic_test_file=
13006 lt_cv_deplibs_check_method='unknown'
13007 # Need to set the preceding variable on all platforms that support
13008 # interlibrary dependencies.
13009 # 'none' -- dependencies not supported.
13010 # `unknown' -- same as none, but documents that we really don't know.
13011 # 'pass_all' -- all dependencies passed with no checks.
13012 # 'test_compile' -- check by making test program.
13013 # 'file_magic [[regex]]' -- check by looking for files in library path
13014 # which responds to the $file_magic_cmd with a given extended regex.
13015 # If you have `file' or equivalent on your system and you're not sure
13016 # whether `pass_all' will *always* work, you probably want this one.
13020 lt_cv_deplibs_check_method=pass_all
13024 lt_cv_deplibs_check_method=pass_all
13028 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13029 lt_cv_file_magic_cmd='/usr/bin/file -L'
13030 lt_cv_file_magic_test_file=/shlib/libc.so
13034 # func_win32_libid is a shell function defined in ltmain.sh
13035 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13036 lt_cv_file_magic_cmd='func_win32_libid'
13040 # Base MSYS/MinGW do not provide the 'file' command needed by
13041 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13042 # unless we find 'file', for example because we are cross-compiling.
13043 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13044 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13045 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13046 lt_cv_file_magic_cmd='func_win32_libid'
13048 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13049 lt_cv_file_magic_cmd='$OBJDUMP -f'
13054 # use the weaker test based on 'objdump'. See mingw*.
13055 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13056 lt_cv_file_magic_cmd='$OBJDUMP -f'
13059 darwin* | rhapsody*)
13060 lt_cv_deplibs_check_method=pass_all
13063 freebsd* | dragonfly*)
13064 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13067 # Not sure whether the presence of OpenBSD here was a mistake.
13068 # Let's accept both of them until this is cleared up.
13069 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13070 lt_cv_file_magic_cmd=/usr/bin/file
13071 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13075 lt_cv_deplibs_check_method=pass_all
13080 lt_cv_deplibs_check_method=pass_all
13084 lt_cv_deplibs_check_method=pass_all
13087 hpux10.20* | hpux11*)
13088 lt_cv_file_magic_cmd=/usr/bin/file
13091 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13092 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13095 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]'
13096 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13099 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13100 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13106 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13110 irix5* | irix6* | nonstopux*)
13112 *-32|*"-32 ") libmagic=32-bit;;
13113 *-n32|*"-n32 ") libmagic=N32;;
13114 *-64|*"-64 ") libmagic=64-bit;;
13115 *) libmagic=never-match;;
13117 lt_cv_deplibs_check_method=pass_all
13120 # This must be Linux ELF.
13121 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13122 lt_cv_deplibs_check_method=pass_all
13126 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13134 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13135 lt_cv_file_magic_cmd=/usr/bin/file
13136 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13140 lt_cv_deplibs_check_method=pass_all
13144 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13151 osf3* | osf4* | osf5*)
13152 lt_cv_deplibs_check_method=pass_all
13156 lt_cv_deplibs_check_method=pass_all
13160 lt_cv_deplibs_check_method=pass_all
13163 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13164 lt_cv_deplibs_check_method=pass_all
13168 case $host_vendor in
13170 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]'
13171 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13174 lt_cv_deplibs_check_method=pass_all
13177 lt_cv_file_magic_cmd='/bin/file'
13178 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13181 lt_cv_file_magic_cmd='/bin/file'
13182 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13183 lt_cv_file_magic_test_file=/lib/libc.so
13186 lt_cv_deplibs_check_method=pass_all
13189 lt_cv_deplibs_check_method=pass_all
13195 lt_cv_deplibs_check_method=pass_all
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13201 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13202 file_magic_cmd=$lt_cv_file_magic_cmd
13203 deplibs_check_method=$lt_cv_deplibs_check_method
13204 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13217 if test -n "$ac_tool_prefix"; then
13218 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13219 set dummy ${ac_tool_prefix}ar; ac_word=$2
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13221 $as_echo_n "checking
for $ac_word...
" >&6; }
13222 if test "${ac_cv_prog_AR+set}" = set; then :
13223 $as_echo_n "(cached
) " >&6
13225 if test -n "$AR"; then
13226 ac_cv_prog_AR="$AR" # Let the user override the test.
13228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13229 for as_dir in $PATH
13232 test -z "$as_dir" && as_dir=.
13233 for ac_exec_ext in '' $ac_executable_extensions; do
13234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13235 ac_cv_prog_AR="${ac_tool_prefix}ar"
13236 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13246 if test -n "$AR"; then
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13248 $as_echo "$AR" >&6; }
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13251 $as_echo "no
" >&6; }
13256 if test -z "$ac_cv_prog_AR"; then
13258 # Extract the first word of "ar", so it can be a program name with args.
13259 set dummy ar; ac_word=$2
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13261 $as_echo_n "checking
for $ac_word...
" >&6; }
13262 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13263 $as_echo_n "(cached
) " >&6
13265 if test -n "$ac_ct_AR"; then
13266 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13269 for as_dir in $PATH
13272 test -z "$as_dir" && as_dir=.
13273 for ac_exec_ext in '' $ac_executable_extensions; do
13274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13275 ac_cv_prog_ac_ct_AR="ar"
13276 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13285 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13286 if test -n "$ac_ct_AR"; then
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13288 $as_echo "$ac_ct_AR" >&6; }
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13291 $as_echo "no
" >&6; }
13294 if test "x
$ac_ct_AR" = x; then
13297 case $cross_compiling:$ac_tool_warned in
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13300 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13301 ac_tool_warned=yes ;;
13306 AR="$ac_cv_prog_AR"
13309 test -z "$AR" && AR=ar
13310 test -z "$AR_FLAGS" && AR_FLAGS=cru
13322 if test -n "$ac_tool_prefix"; then
13323 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13324 set dummy ${ac_tool_prefix}strip; ac_word=$2
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13326 $as_echo_n "checking
for $ac_word...
" >&6; }
13327 if test "${ac_cv_prog_STRIP+set}" = set; then :
13328 $as_echo_n "(cached
) " >&6
13330 if test -n "$STRIP"; then
13331 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13334 for as_dir in $PATH
13337 test -z "$as_dir" && as_dir=.
13338 for ac_exec_ext in '' $ac_executable_extensions; do
13339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13340 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13341 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13350 STRIP=$ac_cv_prog_STRIP
13351 if test -n "$STRIP"; then
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13353 $as_echo "$STRIP" >&6; }
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13356 $as_echo "no
" >&6; }
13361 if test -z "$ac_cv_prog_STRIP"; then
13363 # Extract the first word of "strip
", so it can be a program name with args.
13364 set dummy strip; ac_word=$2
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13366 $as_echo_n "checking
for $ac_word...
" >&6; }
13367 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13368 $as_echo_n "(cached
) " >&6
13370 if test -n "$ac_ct_STRIP"; then
13371 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13374 for as_dir in $PATH
13377 test -z "$as_dir" && as_dir=.
13378 for ac_exec_ext in '' $ac_executable_extensions; do
13379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13380 ac_cv_prog_ac_ct_STRIP="strip
"
13381 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13390 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13391 if test -n "$ac_ct_STRIP"; then
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13393 $as_echo "$ac_ct_STRIP" >&6; }
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13396 $as_echo "no
" >&6; }
13399 if test "x
$ac_ct_STRIP" = x; then
13402 case $cross_compiling:$ac_tool_warned in
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13405 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13406 ac_tool_warned=yes ;;
13411 STRIP="$ac_cv_prog_STRIP"
13414 test -z "$STRIP" && STRIP=:
13421 if test -n "$ac_tool_prefix"; then
13422 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13423 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13425 $as_echo_n "checking
for $ac_word...
" >&6; }
13426 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13427 $as_echo_n "(cached
) " >&6
13429 if test -n "$RANLIB"; then
13430 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13433 for as_dir in $PATH
13436 test -z "$as_dir" && as_dir=.
13437 for ac_exec_ext in '' $ac_executable_extensions; do
13438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13439 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13440 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13449 RANLIB=$ac_cv_prog_RANLIB
13450 if test -n "$RANLIB"; then
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13452 $as_echo "$RANLIB" >&6; }
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13455 $as_echo "no
" >&6; }
13460 if test -z "$ac_cv_prog_RANLIB"; then
13461 ac_ct_RANLIB=$RANLIB
13462 # Extract the first word of "ranlib
", so it can be a program name with args.
13463 set dummy ranlib; ac_word=$2
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13465 $as_echo_n "checking
for $ac_word...
" >&6; }
13466 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13467 $as_echo_n "(cached
) " >&6
13469 if test -n "$ac_ct_RANLIB"; then
13470 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13473 for as_dir in $PATH
13476 test -z "$as_dir" && as_dir=.
13477 for ac_exec_ext in '' $ac_executable_extensions; do
13478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13479 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13480 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13489 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13490 if test -n "$ac_ct_RANLIB"; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13492 $as_echo "$ac_ct_RANLIB" >&6; }
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13495 $as_echo "no
" >&6; }
13498 if test "x
$ac_ct_RANLIB" = x; then
13501 case $cross_compiling:$ac_tool_warned in
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13504 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13505 ac_tool_warned=yes ;;
13507 RANLIB=$ac_ct_RANLIB
13510 RANLIB="$ac_cv_prog_RANLIB"
13513 test -z "$RANLIB" && RANLIB=:
13520 # Determine commands to create old-style static archives.
13521 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13522 old_postinstall_cmds='chmod 644 $oldlib'
13523 old_postuninstall_cmds=
13525 if test -n "$RANLIB"; then
13528 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13531 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13534 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13539 lock_old_archive_extraction=yes ;;
13541 lock_old_archive_extraction=no ;;
13582 # If no C compiler was specified, use CC.
13585 # If no C compiler flags were specified, use CFLAGS.
13586 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13588 # Allow CC to be a program name with arguments.
13592 # Check for command to grab the raw symbol name followed by C symbol from nm.
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13594 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13595 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13596 $as_echo_n "(cached
) " >&6
13599 # These are sane defaults that work on at least a few old systems.
13600 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13602 # Character class describing NM global symbol codes.
13603 symcode='[BCDEGRST]'
13605 # Regexp to match symbols that can be accessed directly from C.
13606 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13608 # Define system-specific variables.
13613 cygwin* | mingw* | pw32* | cegcc*)
13614 symcode='[ABCDGISTW]'
13617 if test "$host_cpu" = ia64; then
13618 symcode='[ABCDEGRST]'
13621 irix* | nonstopux*)
13622 symcode='[BCDEGRST]'
13625 symcode='[BCDEGQRST]'
13636 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13644 # If we're using GNU nm, then use its standard symbol codes.
13645 case `$NM -V 2>&1` in
13646 *GNU* | *'with BFD'*)
13647 symcode='[ABCDGIRSTW]' ;;
13650 # Transform an extracted symbol line into a proper C declaration.
13651 # Some systems (esp. on ia64) link data and code symbols differently,
13652 # so use this general approach.
13653 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13655 # Transform an extracted symbol line into symbol name and symbol address
13656 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13657 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'"
13659 # Handle CRLF in mingw tool chain
13663 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13667 # Try without a prefix underscore, then with it.
13668 for ac_symprfx in "" "_
"; do
13670 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13671 symxfrm="\\1 $ac_symprfx\\2 \\2"
13673 # Write the raw and C identifiers.
13674 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13675 # Fake it for dumpbin and say T for any non-static function
13676 # and D for any global variable.
13677 # Also find C++ and __fastcall symbols from MSVC++,
13678 # which start with @ or ?.
13679 lt_cv_sys_global_symbol_pipe="$AWK '"\
13680 " {last_section=section; section=\$ 3};"\
13681 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13682 " \$ 0!~/External *\|/{next};"\
13683 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13684 " {if(hide[section]) next};"\
13685 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13686 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13687 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13688 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13689 " ' prfx
=^
$ac_symprfx"
13691 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13694 # Check to see that the pipe works correctly.
13698 cat > conftest.$ac_ext <<_LT_EOF
13703 void nm_test_func(void);
13704 void nm_test_func(void){}
13708 int main(){nm_test_var='a';nm_test_func();return(0);}
13711 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13712 (eval $ac_compile) 2>&5
13714 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13715 test $ac_status = 0; }; then
13716 # Now try to grab the symbols.
13718 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13719 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13721 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13722 test $ac_status = 0; } && test -s "$nlist"; then
13723 # Try sorting and uniquifying the output.
13724 if sort "$nlist" | uniq > "$nlist"T; then
13725 mv -f "$nlist"T "$nlist"
13730 # Make sure that we snagged all the symbols we need.
13731 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13732 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13733 cat <<_LT_EOF > conftest.$ac_ext
13739 # Now generate the symbol file.
13740 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13742 cat <<_LT_EOF >> conftest.$ac_ext
13744 /* The mapping between symbol names and symbols. */
13749 lt__PROGRAM__LTX_preloaded_symbols[] =
13751 { "@PROGRAM@
", (void *) 0 },
13753 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13754 cat <<\_LT_EOF >> conftest.$ac_ext
13758 /* This works around a problem in FreeBSD linker */
13759 #ifdef FREEBSD_WORKAROUND
13760 static const void *lt_preloaded_setup() {
13761 return lt__PROGRAM__LTX_preloaded_symbols;
13769 # Now try linking the two files.
13770 mv conftest.$ac_objext conftstm.$ac_objext
13771 lt_save_LIBS="$LIBS"
13772 lt_save_CFLAGS="$CFLAGS"
13773 LIBS="conftstm.
$ac_objext"
13774 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13775 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13776 (eval $ac_link) 2>&5
13778 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13779 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13782 LIBS="$lt_save_LIBS"
13783 CFLAGS="$lt_save_CFLAGS"
13785 echo "cannot
find nm_test_func
in $nlist" >&5
13788 echo "cannot
find nm_test_var
in $nlist" >&5
13791 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13794 echo "$progname: failed program was
:" >&5
13795 cat conftest.$ac_ext >&5
13797 rm -rf conftest* conftst*
13799 # Do not use the global_symbol_pipe unless it works.
13800 if test "$pipe_works" = yes; then
13803 lt_cv_sys_global_symbol_pipe=
13809 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13810 lt_cv_sys_global_symbol_to_cdecl=
13812 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13814 $as_echo "failed
" >&6; }
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13817 $as_echo "ok
" >&6; }
13841 # Check whether --enable-libtool-lock was given.
13842 if test "${enable_libtool_lock+set}" = set; then :
13843 enableval=$enable_libtool_lock;
13846 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13848 # Some flags need to be propagated to the compiler or linker for good
13852 # Find out which ABI we are using.
13853 echo 'int i;' > conftest.$ac_ext
13854 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13855 (eval $ac_compile) 2>&5
13857 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13858 test $ac_status = 0; }; then
13859 case `/usr/bin/file conftest.$ac_objext` in
13861 HPUX_IA64_MODE="32"
13864 HPUX_IA64_MODE="64"
13871 # Find out which ABI we are using.
13872 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13873 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13874 (eval $ac_compile) 2>&5
13876 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13877 test $ac_status = 0; }; then
13878 if test "$lt_cv_prog_gnu_ld" = yes; then
13879 case `/usr/bin/file conftest.$ac_objext` in
13881 LD="${LD-ld} -melf32bsmip"
13884 LD="${LD-ld} -melf32bmipn32"
13887 LD="${LD-ld} -melf64bmip"
13891 case `/usr/bin/file conftest.$ac_objext` in
13907 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13908 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13909 # Find out which ABI we are using.
13910 echo 'int i;' > conftest.$ac_ext
13911 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13912 (eval $ac_compile) 2>&5
13914 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13915 test $ac_status = 0; }; then
13916 case `/usr/bin/file conftest.o` in
13919 x86_64-*kfreebsd*-gnu)
13920 LD="${LD-ld} -m elf_i386_fbsd
"
13923 case `/usr/bin/file conftest.o` in
13925 LD="${LD-ld} -m elf32_x86_64
"
13928 LD="${LD-ld} -m elf_i386
"
13932 powerpc64le-*linux*)
13933 LD="${LD-ld} -m elf32lppclinux
"
13936 LD="${LD-ld} -m elf32ppclinux
"
13939 LD="${LD-ld} -m elf_s390
"
13942 LD="${LD-ld} -m elf32_sparc
"
13948 x86_64-*kfreebsd*-gnu)
13949 LD="${LD-ld} -m elf_x86_64_fbsd
"
13952 LD="${LD-ld} -m elf_x86_64
"
13955 LD="${LD-ld} -m elf64lppc
"
13958 LD="${LD-ld} -m elf64ppc
"
13960 s390*-*linux*|s390*-*tpf*)
13961 LD="${LD-ld} -m elf64_s390
"
13964 LD="${LD-ld} -m elf64_sparc
"
13974 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13975 SAVE_CFLAGS="$CFLAGS"
13976 CFLAGS="$CFLAGS -belf"
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13978 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13979 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13980 $as_echo_n "(cached
) " >&6
13983 ac_cpp='$CPP $CPPFLAGS'
13984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13989 /* end confdefs.h. */
13999 if ac_fn_c_try_link "$LINENO"; then :
14000 lt_cv_cc_needs_belf=yes
14002 lt_cv_cc_needs_belf=no
14004 rm -f core conftest.err conftest.$ac_objext \
14005 conftest$ac_exeext conftest.$ac_ext
14007 ac_cpp='$CPP $CPPFLAGS'
14008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14014 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14015 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14016 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14017 CFLAGS="$SAVE_CFLAGS"
14021 # Find out which ABI we are using.
14022 echo 'int i;' > conftest.$ac_ext
14023 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14024 (eval $ac_compile) 2>&5
14026 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14027 test $ac_status = 0; }; then
14028 case `/usr/bin/file conftest.o` in
14030 case $lt_cv_prog_gnu_ld in
14031 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14033 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14045 need_locks="$enable_libtool_lock"
14049 rhapsody* | darwin*)
14050 if test -n "$ac_tool_prefix"; then
14051 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14052 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14054 $as_echo_n "checking
for $ac_word...
" >&6; }
14055 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14056 $as_echo_n "(cached
) " >&6
14058 if test -n "$DSYMUTIL"; then
14059 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14062 for as_dir in $PATH
14065 test -z "$as_dir" && as_dir=.
14066 for ac_exec_ext in '' $ac_executable_extensions; do
14067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14068 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14069 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14078 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14079 if test -n "$DSYMUTIL"; then
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14081 $as_echo "$DSYMUTIL" >&6; }
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14084 $as_echo "no
" >&6; }
14089 if test -z "$ac_cv_prog_DSYMUTIL"; then
14090 ac_ct_DSYMUTIL=$DSYMUTIL
14091 # Extract the first word of "dsymutil
", so it can be a program name with args.
14092 set dummy dsymutil; ac_word=$2
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14094 $as_echo_n "checking
for $ac_word...
" >&6; }
14095 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14096 $as_echo_n "(cached
) " >&6
14098 if test -n "$ac_ct_DSYMUTIL"; then
14099 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14102 for as_dir in $PATH
14105 test -z "$as_dir" && as_dir=.
14106 for ac_exec_ext in '' $ac_executable_extensions; do
14107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14108 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14109 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14118 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14119 if test -n "$ac_ct_DSYMUTIL"; then
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14121 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14124 $as_echo "no
" >&6; }
14127 if test "x
$ac_ct_DSYMUTIL" = x; then
14130 case $cross_compiling:$ac_tool_warned in
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14133 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14134 ac_tool_warned=yes ;;
14136 DSYMUTIL=$ac_ct_DSYMUTIL
14139 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14142 if test -n "$ac_tool_prefix"; then
14143 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14144 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14146 $as_echo_n "checking
for $ac_word...
" >&6; }
14147 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14148 $as_echo_n "(cached
) " >&6
14150 if test -n "$NMEDIT"; then
14151 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14154 for as_dir in $PATH
14157 test -z "$as_dir" && as_dir=.
14158 for ac_exec_ext in '' $ac_executable_extensions; do
14159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14160 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14161 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14170 NMEDIT=$ac_cv_prog_NMEDIT
14171 if test -n "$NMEDIT"; then
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14173 $as_echo "$NMEDIT" >&6; }
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14176 $as_echo "no
" >&6; }
14181 if test -z "$ac_cv_prog_NMEDIT"; then
14182 ac_ct_NMEDIT=$NMEDIT
14183 # Extract the first word of "nmedit
", so it can be a program name with args.
14184 set dummy nmedit; ac_word=$2
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14186 $as_echo_n "checking
for $ac_word...
" >&6; }
14187 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14188 $as_echo_n "(cached
) " >&6
14190 if test -n "$ac_ct_NMEDIT"; then
14191 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14194 for as_dir in $PATH
14197 test -z "$as_dir" && as_dir=.
14198 for ac_exec_ext in '' $ac_executable_extensions; do
14199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14200 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14201 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14210 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14211 if test -n "$ac_ct_NMEDIT"; then
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14213 $as_echo "$ac_ct_NMEDIT" >&6; }
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14216 $as_echo "no
" >&6; }
14219 if test "x
$ac_ct_NMEDIT" = x; then
14222 case $cross_compiling:$ac_tool_warned in
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14225 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14226 ac_tool_warned=yes ;;
14228 NMEDIT=$ac_ct_NMEDIT
14231 NMEDIT="$ac_cv_prog_NMEDIT"
14234 if test -n "$ac_tool_prefix"; then
14235 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14236 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14238 $as_echo_n "checking
for $ac_word...
" >&6; }
14239 if test "${ac_cv_prog_LIPO+set}" = set; then :
14240 $as_echo_n "(cached
) " >&6
14242 if test -n "$LIPO"; then
14243 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14246 for as_dir in $PATH
14249 test -z "$as_dir" && as_dir=.
14250 for ac_exec_ext in '' $ac_executable_extensions; do
14251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14252 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14253 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14262 LIPO=$ac_cv_prog_LIPO
14263 if test -n "$LIPO"; then
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14265 $as_echo "$LIPO" >&6; }
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14268 $as_echo "no
" >&6; }
14273 if test -z "$ac_cv_prog_LIPO"; then
14275 # Extract the first word of "lipo
", so it can be a program name with args.
14276 set dummy lipo; ac_word=$2
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14278 $as_echo_n "checking
for $ac_word...
" >&6; }
14279 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14280 $as_echo_n "(cached
) " >&6
14282 if test -n "$ac_ct_LIPO"; then
14283 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14286 for as_dir in $PATH
14289 test -z "$as_dir" && as_dir=.
14290 for ac_exec_ext in '' $ac_executable_extensions; do
14291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14292 ac_cv_prog_ac_ct_LIPO="lipo
"
14293 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14302 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14303 if test -n "$ac_ct_LIPO"; then
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14305 $as_echo "$ac_ct_LIPO" >&6; }
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14308 $as_echo "no
" >&6; }
14311 if test "x
$ac_ct_LIPO" = x; then
14314 case $cross_compiling:$ac_tool_warned in
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14317 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14318 ac_tool_warned=yes ;;
14323 LIPO="$ac_cv_prog_LIPO"
14326 if test -n "$ac_tool_prefix"; then
14327 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14328 set dummy ${ac_tool_prefix}otool; ac_word=$2
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14330 $as_echo_n "checking
for $ac_word...
" >&6; }
14331 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14332 $as_echo_n "(cached
) " >&6
14334 if test -n "$OTOOL"; then
14335 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14338 for as_dir in $PATH
14341 test -z "$as_dir" && as_dir=.
14342 for ac_exec_ext in '' $ac_executable_extensions; do
14343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14344 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14345 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14354 OTOOL=$ac_cv_prog_OTOOL
14355 if test -n "$OTOOL"; then
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14357 $as_echo "$OTOOL" >&6; }
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14360 $as_echo "no
" >&6; }
14365 if test -z "$ac_cv_prog_OTOOL"; then
14367 # Extract the first word of "otool
", so it can be a program name with args.
14368 set dummy otool; ac_word=$2
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14370 $as_echo_n "checking
for $ac_word...
" >&6; }
14371 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14372 $as_echo_n "(cached
) " >&6
14374 if test -n "$ac_ct_OTOOL"; then
14375 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14378 for as_dir in $PATH
14381 test -z "$as_dir" && as_dir=.
14382 for ac_exec_ext in '' $ac_executable_extensions; do
14383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14384 ac_cv_prog_ac_ct_OTOOL="otool
"
14385 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14394 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14395 if test -n "$ac_ct_OTOOL"; then
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14397 $as_echo "$ac_ct_OTOOL" >&6; }
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14400 $as_echo "no
" >&6; }
14403 if test "x
$ac_ct_OTOOL" = x; then
14406 case $cross_compiling:$ac_tool_warned in
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14409 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14410 ac_tool_warned=yes ;;
14415 OTOOL="$ac_cv_prog_OTOOL"
14418 if test -n "$ac_tool_prefix"; then
14419 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14420 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14422 $as_echo_n "checking
for $ac_word...
" >&6; }
14423 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14424 $as_echo_n "(cached
) " >&6
14426 if test -n "$OTOOL64"; then
14427 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14430 for as_dir in $PATH
14433 test -z "$as_dir" && as_dir=.
14434 for ac_exec_ext in '' $ac_executable_extensions; do
14435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14436 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14437 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14446 OTOOL64=$ac_cv_prog_OTOOL64
14447 if test -n "$OTOOL64"; then
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14449 $as_echo "$OTOOL64" >&6; }
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14452 $as_echo "no
" >&6; }
14457 if test -z "$ac_cv_prog_OTOOL64"; then
14458 ac_ct_OTOOL64=$OTOOL64
14459 # Extract the first word of "otool64
", so it can be a program name with args.
14460 set dummy otool64; ac_word=$2
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14462 $as_echo_n "checking
for $ac_word...
" >&6; }
14463 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14464 $as_echo_n "(cached
) " >&6
14466 if test -n "$ac_ct_OTOOL64"; then
14467 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14470 for as_dir in $PATH
14473 test -z "$as_dir" && as_dir=.
14474 for ac_exec_ext in '' $ac_executable_extensions; do
14475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14476 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14477 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14486 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14487 if test -n "$ac_ct_OTOOL64"; then
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14489 $as_echo "$ac_ct_OTOOL64" >&6; }
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14492 $as_echo "no
" >&6; }
14495 if test "x
$ac_ct_OTOOL64" = x; then
14498 case $cross_compiling:$ac_tool_warned in
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14501 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14502 ac_tool_warned=yes ;;
14504 OTOOL64=$ac_ct_OTOOL64
14507 OTOOL64="$ac_cv_prog_OTOOL64"
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14537 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14538 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14539 $as_echo_n "(cached
) " >&6
14541 lt_cv_apple_cc_single_mod=no
14542 if test -z "${LT_MULTI_MODULE}"; then
14543 # By default we will add the -single_module flag. You can override
14544 # by either setting the environment variable LT_MULTI_MODULE
14545 # non-empty at configure time, or by adding -multi_module to the
14547 rm -rf libconftest.dylib*
14548 echo "int foo
(void
){return 1;}" > conftest.c
14549 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14550 -dynamiclib -Wl,-single_module conftest.c
" >&5
14551 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14552 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14554 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14555 lt_cv_apple_cc_single_mod=yes
14557 cat conftest.err >&5
14559 rm -rf libconftest.dylib*
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14564 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14566 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14567 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14568 $as_echo_n "(cached
) " >&6
14570 lt_cv_ld_exported_symbols_list=no
14571 save_LDFLAGS=$LDFLAGS
14572 echo "_main
" > conftest.sym
14573 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14575 /* end confdefs.h. */
14585 if ac_fn_c_try_link "$LINENO"; then :
14586 lt_cv_ld_exported_symbols_list=yes
14588 lt_cv_ld_exported_symbols_list=no
14590 rm -f core conftest.err conftest.$ac_objext \
14591 conftest$ac_exeext conftest.$ac_ext
14592 LDFLAGS="$save_LDFLAGS"
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14596 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14598 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14599 if test "${lt_cv_ld_force_load+set}" = set; then :
14600 $as_echo_n "(cached
) " >&6
14602 lt_cv_ld_force_load=no
14603 cat > conftest.c << _LT_EOF
14604 int forced_loaded() { return 2;}
14606 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14607 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14608 echo "$AR cru libconftest.a conftest.o
" >&5
14609 $AR cru libconftest.a conftest.o 2>&5
14610 cat > conftest.c << _LT_EOF
14611 int main() { return 0;}
14613 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14614 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14616 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14617 lt_cv_ld_force_load=yes
14619 cat conftest.err >&5
14621 rm -f conftest.err libconftest.a conftest conftest.c
14622 rm -rf conftest.dSYM
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14626 $as_echo "$lt_cv_ld_force_load" >&6; }
14628 rhapsody* | darwin1.[012])
14629 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14631 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14632 darwin*) # darwin 5.x on
14633 # if running on 10.5 or later, the deployment target defaults
14634 # to the OS version, if on x86, and 10.4, the deployment
14635 # target defaults to 10.4. Don't you love it?
14636 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14637 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14638 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14640 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14642 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14646 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14647 _lt_dar_single_mod='$single_module'
14649 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14650 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14652 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14654 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14655 _lt_dsymutil='~$DSYMUTIL $lib || :'
14662 for ac_header in dlfcn.h
14664 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14665 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14666 cat >>confdefs.h <<_ACEOF
14667 #define HAVE_DLFCN_H 1
14684 enable_win32_dll=no
14687 # Check whether --enable-shared was given.
14688 if test "${enable_shared+set}" = set; then :
14689 enableval=$enable_shared; p=${PACKAGE-default}
14691 yes) enable_shared=yes ;;
14692 no) enable_shared=no ;;
14695 # Look at the argument we got. We use all the common list separators.
14696 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14697 for pkg in $enableval; do
14699 if test "X
$pkg" = "X
$p"; then
14718 # Check whether --enable-static was given.
14719 if test "${enable_static+set}" = set; then :
14720 enableval=$enable_static; p=${PACKAGE-default}
14722 yes) enable_static=yes ;;
14723 no) enable_static=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
14750 # Check whether --with-pic was given.
14751 if test "${with_pic+set}" = set; then :
14752 withval=$with_pic; pic_mode="$withval"
14758 test -z "$pic_mode" && pic_mode=default
14766 # Check whether --enable-fast-install was given.
14767 if test "${enable_fast_install+set}" = set; then :
14768 enableval=$enable_fast_install; p=${PACKAGE-default}
14770 yes) enable_fast_install=yes ;;
14771 no) enable_fast_install=no ;;
14773 enable_fast_install=no
14774 # Look at the argument we got. We use all the common list separators.
14775 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14776 for pkg in $enableval; do
14778 if test "X
$pkg" = "X
$p"; then
14779 enable_fast_install=yes
14786 enable_fast_install=yes
14799 # This can be used to rebuild libtool when needed
14800 LIBTOOL_DEPS="$ltmain"
14802 # Always use our own libtool.
14803 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14830 test -z "$LN_S" && LN_S="ln -s"
14845 if test -n "${ZSH_VERSION+set}" ; then
14846 setopt NO_GLOB_SUBST
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14850 $as_echo_n "checking
for objdir...
" >&6; }
14851 if test "${lt_cv_objdir+set}" = set; then :
14852 $as_echo_n "(cached
) " >&6
14854 rm -f .libs 2>/dev/null
14855 mkdir .libs 2>/dev/null
14856 if test -d .libs; then
14859 # MS-DOS does not allow filenames that begin with a dot.
14862 rmdir .libs 2>/dev/null
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14865 $as_echo "$lt_cv_objdir" >&6; }
14866 objdir=$lt_cv_objdir
14872 cat >>confdefs.h <<_ACEOF
14873 #define LT_OBJDIR "$lt_cv_objdir/"
14881 # AIX sometimes has problems with the GCC collect2 program. For some
14882 # reason, if we set the COLLECT_NAMES environment variable, the problems
14883 # vanish in a puff of smoke.
14884 if test "X
${COLLECT_NAMES+set}" != Xset; then
14886 export COLLECT_NAMES
14891 # Global variables:
14893 can_build_shared=yes
14895 # All known linkers require a `.a' archive for static linking (except MSVC,
14896 # which needs '.lib').
14899 with_gnu_ld="$lt_cv_prog_gnu_ld"
14902 old_CFLAGS="$CFLAGS"
14904 # Set sane defaults for various variables
14905 test -z "$CC" && CC=cc
14906 test -z "$LTCC" && LTCC=$CC
14907 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14908 test -z "$LD" && LD=ld
14909 test -z "$ac_objext" && ac_objext=o
14911 for cc_temp in $compiler""; do
14913 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14914 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14919 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14922 # Only perform the check for file, if the check method requires it
14923 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14924 case $deplibs_check_method in
14926 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14928 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14929 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14930 $as_echo_n "(cached
) " >&6
14934 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14937 lt_save_MAGIC_CMD="$MAGIC_CMD"
14938 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14939 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14940 for ac_dir in $ac_dummy; do
14942 test -z "$ac_dir" && ac_dir=.
14943 if test -f $ac_dir/${ac_tool_prefix}file; then
14944 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14945 if test -n "$file_magic_test_file"; then
14946 case $deplibs_check_method in
14948 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14949 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14950 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14951 $EGREP "$file_magic_regex" > /dev/null; then
14956 *** Warning: the command libtool uses to detect shared libraries,
14957 *** $file_magic_cmd, produces output that libtool cannot recognize.
14958 *** The result is that libtool may fail to recognize shared libraries
14959 *** as such. This will affect the creation of libtool libraries that
14960 *** depend on shared libraries, but programs linked with such libtool
14961 *** libraries will work regardless of this problem. Nevertheless, you
14962 *** may want to report the problem to your system manager and/or to
14963 *** bug-libtool@gnu.org
14973 MAGIC_CMD="$lt_save_MAGIC_CMD"
14978 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14979 if test -n "$MAGIC_CMD"; then
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14981 $as_echo "$MAGIC_CMD" >&6; }
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14984 $as_echo "no
" >&6; }
14991 if test -z "$lt_cv_path_MAGIC_CMD"; then
14992 if test -n "$ac_tool_prefix"; then
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14994 $as_echo_n "checking
for file...
" >&6; }
14995 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14996 $as_echo_n "(cached
) " >&6
15000 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15003 lt_save_MAGIC_CMD="$MAGIC_CMD"
15004 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15005 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15006 for ac_dir in $ac_dummy; do
15008 test -z "$ac_dir" && ac_dir=.
15009 if test -f $ac_dir/file; then
15010 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15011 if test -n "$file_magic_test_file"; then
15012 case $deplibs_check_method in
15014 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15015 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15016 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15017 $EGREP "$file_magic_regex" > /dev/null; then
15022 *** Warning: the command libtool uses to detect shared libraries,
15023 *** $file_magic_cmd, produces output that libtool cannot recognize.
15024 *** The result is that libtool may fail to recognize shared libraries
15025 *** as such. This will affect the creation of libtool libraries that
15026 *** depend on shared libraries, but programs linked with such libtool
15027 *** libraries will work regardless of this problem. Nevertheless, you
15028 *** may want to report the problem to your system manager and/or to
15029 *** bug-libtool@gnu.org
15039 MAGIC_CMD="$lt_save_MAGIC_CMD"
15044 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15045 if test -n "$MAGIC_CMD"; then
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15047 $as_echo "$MAGIC_CMD" >&6; }
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15050 $as_echo "no
" >&6; }
15063 # Use C for the default configuration in the libtool script
15067 ac_cpp='$CPP $CPPFLAGS'
15068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15073 # Source file extension for C test sources.
15076 # Object file extension for compiled C test sources.
15080 # Code to be used in simple compile tests
15081 lt_simple_compile_test_code="int some_variable
= 0;"
15083 # Code to be used in simple link tests
15084 lt_simple_link_test_code='int main(){return(0);}'
15092 # If no C compiler was specified, use CC.
15095 # If no C compiler flags were specified, use CFLAGS.
15096 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15098 # Allow CC to be a program name with arguments.
15101 # Save the default compiler, since it gets overwritten when the other
15102 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15103 compiler_DEFAULT=$CC
15105 # save warnings/boilerplate of simple test code
15106 ac_outfile=conftest.$ac_objext
15107 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15108 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15109 _lt_compiler_boilerplate=`cat conftest.err`
15112 ac_outfile=conftest.$ac_objext
15113 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15114 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15115 _lt_linker_boilerplate=`cat conftest.err`
15120 ## There is no encapsulation within the following macros, do not change
15121 ## the running order or otherwise move them around unless you know exactly
15122 ## what you are doing...
15123 if test -n "$compiler"; then
15125 lt_prog_compiler_no_builtin_flag=
15127 if test "$GCC" = yes; then
15128 case $cc_basename in
15130 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15132 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15136 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15137 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15138 $as_echo_n "(cached
) " >&6
15140 lt_cv_prog_compiler_rtti_exceptions=no
15141 ac_outfile=conftest.$ac_objext
15142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15143 lt_compiler_flag="-fno-rtti -fno-exceptions"
15144 # Insert the option either (1) after the last *FLAGS variable, or
15145 # (2) before a word containing "conftest.
", or (3) at the end.
15146 # Note that $ac_compile itself does not contain backslashes and begins
15147 # with a dollar sign (not a hyphen), so the echo should work correctly.
15148 # The option is referenced via a variable to avoid confusing sed.
15149 lt_compile=`echo "$ac_compile" | $SED \
15150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15152 -e 's:$: $lt_compiler_flag:'`
15153 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15154 (eval "$lt_compile" 2>conftest.err)
15156 cat conftest.err >&5
15157 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15158 if (exit $ac_status) && test -s "$ac_outfile"; then
15159 # The compiler can only warn and ignore the option if not recognized
15160 # So say no if there are warnings other than the usual output.
15161 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15162 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15163 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15164 lt_cv_prog_compiler_rtti_exceptions=yes
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15171 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15173 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15174 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15186 lt_prog_compiler_wl=
15187 lt_prog_compiler_pic=
15188 lt_prog_compiler_static=
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15191 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15193 if test "$GCC" = yes; then
15194 lt_prog_compiler_wl='-Wl,'
15195 lt_prog_compiler_static='-static'
15199 # All AIX code is PIC.
15200 if test "$host_cpu" = ia64; then
15201 # AIX 5 now supports IA64 processor
15202 lt_prog_compiler_static='-Bstatic'
15204 lt_prog_compiler_pic='-fPIC'
15210 # see comment about AmigaOS4 .so support
15211 lt_prog_compiler_pic='-fPIC'
15214 # FIXME: we need at least 68020 code to build shared libraries, but
15215 # adding the `-m68020' flag to GCC prevents building anything better,
15217 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15222 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15223 # PIC is the default for these OSes.
15226 mingw* | cygwin* | pw32* | os2* | cegcc*)
15227 # This hack is so that the source file can tell whether it is being
15228 # built for inclusion in a dll (and should export symbols for example).
15229 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15230 # (--disable-auto-import) libraries
15231 lt_prog_compiler_pic='-DDLL_EXPORT'
15234 darwin* | rhapsody*)
15235 # PIC is the default on this platform
15236 # Common symbols not allowed in MH_DYLIB files
15237 lt_prog_compiler_pic='-fno-common'
15241 # PIC is the default for Haiku.
15242 # The "-static" flag exists, but is broken.
15243 lt_prog_compiler_static=
15247 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15248 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15249 # sets the default TLS model and affects inlining.
15255 lt_prog_compiler_pic='-fPIC'
15261 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15262 # Instead, we relocate shared libraries at runtime.
15266 # Just because we use GCC doesn't mean we suddenly get shared libraries
15267 # on systems that don't support them.
15268 lt_prog_compiler_can_build_shared=no
15273 # QNX uses GNU C++, but need to define -shared option too, otherwise
15274 # it will coredump.
15275 lt_prog_compiler_pic='-fPIC -shared'
15279 if test -d /usr/nec; then
15280 lt_prog_compiler_pic=-Kconform_pic
15285 lt_prog_compiler_pic='-fPIC'
15289 case $cc_basename in
15290 nvcc*) # Cuda Compiler Driver 2.2
15291 lt_prog_compiler_wl='-Xlinker '
15292 lt_prog_compiler_pic='-Xcompiler -fPIC'
15296 # PORTME Check for flag to pass linker flags through the system compiler.
15299 lt_prog_compiler_wl='-Wl,'
15300 if test "$host_cpu" = ia64; then
15301 # AIX 5 now supports IA64 processor
15302 lt_prog_compiler_static='-Bstatic'
15304 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15308 mingw* | cygwin* | pw32* | os2* | cegcc*)
15309 # This hack is so that the source file can tell whether it is being
15310 # built for inclusion in a dll (and should export symbols for example).
15311 lt_prog_compiler_pic='-DDLL_EXPORT'
15314 hpux9* | hpux10* | hpux11*)
15315 lt_prog_compiler_wl='-Wl,'
15316 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15317 # not for PA HP-UX.
15323 lt_prog_compiler_pic='+Z'
15326 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15327 lt_prog_compiler_static='${wl}-a ${wl}archive'
15330 irix5* | irix6* | nonstopux*)
15331 lt_prog_compiler_wl='-Wl,'
15332 # PIC (with -KPIC) is the default.
15333 lt_prog_compiler_static='-non_shared'
15336 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15337 case $cc_basename in
15338 # old Intel for x86_64 which still supported -KPIC.
15340 lt_prog_compiler_wl='-Wl,'
15341 lt_prog_compiler_pic='-KPIC'
15342 lt_prog_compiler_static='-static'
15344 # icc used to be incompatible with GCC.
15345 # ICC 10 doesn't accept -KPIC any more.
15347 lt_prog_compiler_wl='-Wl,'
15348 lt_prog_compiler_pic='-fPIC'
15349 lt_prog_compiler_static='-static'
15351 # Lahey Fortran 8.1.
15353 lt_prog_compiler_wl='-Wl,'
15354 lt_prog_compiler_pic='--shared'
15355 lt_prog_compiler_static='--static'
15357 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15358 # Portland Group compilers (*not* the Pentium gcc compiler,
15359 # which looks to be a dead project)
15360 lt_prog_compiler_wl='-Wl,'
15361 lt_prog_compiler_pic='-fpic'
15362 lt_prog_compiler_static='-Bstatic'
15365 lt_prog_compiler_wl='-Wl,'
15366 # All Alpha code is PIC.
15367 lt_prog_compiler_static='-non_shared'
15369 xl* | bgxl* | bgf* | mpixl*)
15370 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15371 lt_prog_compiler_wl='-Wl,'
15372 lt_prog_compiler_pic='-qpic'
15373 lt_prog_compiler_static='-qstaticlink'
15376 case `$CC -V 2>&1 | sed 5q` in
15377 *Sun\ F* | *Sun*Fortran*)
15378 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15379 lt_prog_compiler_pic='-KPIC'
15380 lt_prog_compiler_static='-Bstatic'
15381 lt_prog_compiler_wl=''
15385 lt_prog_compiler_pic='-KPIC'
15386 lt_prog_compiler_static='-Bstatic'
15387 lt_prog_compiler_wl='-Wl,'
15395 lt_prog_compiler_pic='-KPIC'
15396 lt_prog_compiler_static='-Bstatic'
15400 # QNX uses GNU C++, but need to define -shared option too, otherwise
15401 # it will coredump.
15402 lt_prog_compiler_pic='-fPIC -shared'
15405 osf3* | osf4* | osf5*)
15406 lt_prog_compiler_wl='-Wl,'
15407 # All OSF/1 code is PIC.
15408 lt_prog_compiler_static='-non_shared'
15412 lt_prog_compiler_static='-non_shared'
15416 lt_prog_compiler_pic='-KPIC'
15417 lt_prog_compiler_static='-Bstatic'
15418 case $cc_basename in
15419 f77* | f90* | f95*)
15420 lt_prog_compiler_wl='-Qoption ld ';;
15422 lt_prog_compiler_wl='-Wl,';;
15427 lt_prog_compiler_wl='-Qoption ld '
15428 lt_prog_compiler_pic='-PIC'
15429 lt_prog_compiler_static='-Bstatic'
15432 sysv4 | sysv4.2uw2* | sysv4.3*)
15433 lt_prog_compiler_wl='-Wl,'
15434 lt_prog_compiler_pic='-KPIC'
15435 lt_prog_compiler_static='-Bstatic'
15439 if test -d /usr/nec ;then
15440 lt_prog_compiler_pic='-Kconform_pic'
15441 lt_prog_compiler_static='-Bstatic'
15445 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15446 lt_prog_compiler_wl='-Wl,'
15447 lt_prog_compiler_pic='-KPIC'
15448 lt_prog_compiler_static='-Bstatic'
15452 lt_prog_compiler_wl='-Wl,'
15453 lt_prog_compiler_can_build_shared=no
15457 lt_prog_compiler_pic='-pic'
15458 lt_prog_compiler_static='-Bstatic'
15462 lt_prog_compiler_can_build_shared=no
15468 # For platforms which do not support PIC, -DPIC is meaningless:
15470 lt_prog_compiler_pic=
15473 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15477 $as_echo "$lt_prog_compiler_pic" >&6; }
15485 # Check to make sure the PIC flag actually works.
15487 if test -n "$lt_prog_compiler_pic"; then
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15489 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15490 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15491 $as_echo_n "(cached
) " >&6
15493 lt_cv_prog_compiler_pic_works=no
15494 ac_outfile=conftest.$ac_objext
15495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15496 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15497 # Insert the option either (1) after the last *FLAGS variable, or
15498 # (2) before a word containing "conftest.
", or (3) at the end.
15499 # Note that $ac_compile itself does not contain backslashes and begins
15500 # with a dollar sign (not a hyphen), so the echo should work correctly.
15501 # The option is referenced via a variable to avoid confusing sed.
15502 lt_compile=`echo "$ac_compile" | $SED \
15503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15505 -e 's:$: $lt_compiler_flag:'`
15506 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15507 (eval "$lt_compile" 2>conftest.err)
15509 cat conftest.err >&5
15510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15511 if (exit $ac_status) && test -s "$ac_outfile"; then
15512 # The compiler can only warn and ignore the option if not recognized
15513 # So say no if there are warnings other than the usual output.
15514 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15516 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15517 lt_cv_prog_compiler_pic_works=yes
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15524 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15526 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15527 case $lt_prog_compiler_pic in
15529 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15532 lt_prog_compiler_pic=
15533 lt_prog_compiler_can_build_shared=no
15544 # Check to make sure the static flag actually works.
15546 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15548 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15549 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15550 $as_echo_n "(cached
) " >&6
15552 lt_cv_prog_compiler_static_works=no
15553 save_LDFLAGS="$LDFLAGS"
15554 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15555 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15556 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15557 # The linker can only warn and ignore the option if not recognized
15558 # So say no if there are warnings
15559 if test -s conftest.err; then
15560 # Append any errors to the config.log.
15561 cat conftest.err 1>&5
15562 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15563 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15564 if diff conftest.exp conftest.er2 >/dev/null; then
15565 lt_cv_prog_compiler_static_works=yes
15568 lt_cv_prog_compiler_static_works=yes
15572 LDFLAGS="$save_LDFLAGS"
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15576 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15578 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15581 lt_prog_compiler_static=
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15591 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15592 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15593 $as_echo_n "(cached
) " >&6
15595 lt_cv_prog_compiler_c_o=no
15596 $RM -r conftest 2>/dev/null
15600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15602 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15603 # Insert the option either (1) after the last *FLAGS variable, or
15604 # (2) before a word containing "conftest.
", or (3) at the end.
15605 # Note that $ac_compile itself does not contain backslashes and begins
15606 # with a dollar sign (not a hyphen), so the echo should work correctly.
15607 lt_compile=`echo "$ac_compile" | $SED \
15608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15610 -e 's:$: $lt_compiler_flag:'`
15611 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15612 (eval "$lt_compile" 2>out/conftest.err)
15614 cat out/conftest.err >&5
15615 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15616 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15618 # The compiler can only warn and ignore the option if not recognized
15619 # So say no if there are warnings
15620 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15621 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15622 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15623 lt_cv_prog_compiler_c_o=yes
15628 # SGI C++ compiler will create directory out/ii_files/ for
15629 # template instantiation
15630 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15631 $RM out/* && rmdir out
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15638 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15646 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15647 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15648 $as_echo_n "(cached
) " >&6
15650 lt_cv_prog_compiler_c_o=no
15651 $RM -r conftest 2>/dev/null
15655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15657 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15658 # Insert the option either (1) after the last *FLAGS variable, or
15659 # (2) before a word containing "conftest.
", or (3) at the end.
15660 # Note that $ac_compile itself does not contain backslashes and begins
15661 # with a dollar sign (not a hyphen), so the echo should work correctly.
15662 lt_compile=`echo "$ac_compile" | $SED \
15663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15665 -e 's:$: $lt_compiler_flag:'`
15666 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15667 (eval "$lt_compile" 2>out/conftest.err)
15669 cat out/conftest.err >&5
15670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15671 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15673 # The compiler can only warn and ignore the option if not recognized
15674 # So say no if there are warnings
15675 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15676 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15677 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15678 lt_cv_prog_compiler_c_o=yes
15683 # SGI C++ compiler will create directory out/ii_files/ for
15684 # template instantiation
15685 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15686 $RM out/* && rmdir out
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15693 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15698 hard_links="nottested
"
15699 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15700 # do not overwrite the value of need_locks provided by the user
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15702 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15705 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15707 ln conftest.a conftest.b 2>&5 || hard_links=no
15708 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15710 $as_echo "$hard_links" >&6; }
15711 if test "$hard_links" = no; then
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15713 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15726 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15729 allow_undefined_flag=
15730 always_export_symbols=no
15732 archive_expsym_cmds=
15733 compiler_needs_object=no
15734 enable_shared_with_static_runtimes=no
15735 export_dynamic_flag_spec=
15736 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15737 hardcode_automatic=no
15739 hardcode_direct_absolute=no
15740 hardcode_libdir_flag_spec=
15741 hardcode_libdir_flag_spec_ld=
15742 hardcode_libdir_separator=
15743 hardcode_minus_L=no
15744 hardcode_shlibpath_var=unsupported
15746 link_all_deplibs=unknown
15748 module_expsym_cmds=
15749 old_archive_from_new_cmds=
15750 old_archive_from_expsyms_cmds=
15751 thread_safe_flag_spec=
15752 whole_archive_flag_spec=
15753 # include_expsyms should be a list of space-separated symbols to be *always*
15754 # included in the symbol list
15756 # exclude_expsyms can be an extended regexp of symbols to exclude
15757 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15758 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15759 # as well as any symbol that contains `d'.
15760 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15761 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15762 # platforms (ab)use it in PIC code, but their linkers get confused if
15763 # the symbol is explicitly referenced. Since portable code cannot
15764 # rely on this symbol name, it's probably fine to never include it in
15765 # preloaded symbol tables.
15766 # Exclude shared library initialization/finalization symbols.
15767 extract_expsyms_cmds=
15770 cygwin* | mingw* | pw32* | cegcc*)
15771 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15772 # When not using gcc, we currently assume that we are using
15773 # Microsoft Visual C++.
15774 if test "$GCC" != yes; then
15779 # we just hope/assume this is gcc and not c89 (= MSVC++)
15789 # On some targets, GNU ld is compatible enough with the native linker
15790 # that we're better off using the native interface for both.
15791 lt_use_gnu_ld_interface=no
15792 if test "$with_gnu_ld" = yes; then
15795 # The AIX port of GNU ld has always aspired to compatibility
15796 # with the native linker. However, as the warning in the GNU ld
15797 # block says, versions before 2.19.5* couldn't really create working
15798 # shared libraries, regardless of the interface used.
15799 case `$LD -v 2>&1` in
15800 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15801 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15802 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15804 lt_use_gnu_ld_interface=yes
15809 lt_use_gnu_ld_interface=yes
15814 if test "$lt_use_gnu_ld_interface" = yes; then
15815 # If archive_cmds runs LD, not CC, wlarc should be empty
15818 # Set some defaults for GNU ld with shared library support. These
15819 # are reset later if shared libraries are not supported. Putting them
15820 # here allows them to be overridden if necessary.
15821 runpath_var=LD_RUN_PATH
15822 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15823 export_dynamic_flag_spec='${wl}--export-dynamic'
15824 # ancient GNU ld didn't support --whole-archive et. al.
15825 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15826 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15828 whole_archive_flag_spec=
15830 supports_anon_versioning=no
15831 case `$LD -v 2>&1` in
15832 *GNU\ gold*) supports_anon_versioning=yes ;;
15833 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15834 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15835 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15836 *\ 2.11.*) ;; # other 2.11 versions
15837 *) supports_anon_versioning=yes ;;
15840 # See if GNU ld supports shared libraries.
15843 # On AIX/PPC, the GNU linker is very broken
15844 if test "$host_cpu" != ia64; then
15848 *** Warning: the GNU linker, at least up to release 2.19, is reported
15849 *** to be unable to reliably create shared libraries on AIX.
15850 *** Therefore, libtool is disabling shared libraries support. If you
15851 *** really care for shared libraries, you may want to install binutils
15852 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15853 *** You will then need to restart the configuration process.
15862 # see comment about AmigaOS4 .so support
15863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15864 archive_expsym_cmds=''
15867 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)'
15868 hardcode_libdir_flag_spec
='-L$libdir'
15869 hardcode_minus_L
=yes
15875 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15876 allow_undefined_flag
=unsupported
15877 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15878 # support --undefined. This deserves some investigation. FIXME
15879 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15885 cygwin
* | mingw
* | pw32
* | cegcc
*)
15886 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15887 # as there is no search path for DLLs.
15888 hardcode_libdir_flag_spec
='-L$libdir'
15889 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15890 allow_undefined_flag
=unsupported
15891 always_export_symbols
=no
15892 enable_shared_with_static_runtimes
=yes
15893 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15895 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15896 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15897 # If the export-symbols file already is a .def file (1st line
15898 # is EXPORTS), use it as is; otherwise, prepend...
15899 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15900 cp $export_symbols $output_objdir/$soname.def;
15902 echo EXPORTS > $output_objdir/$soname.def;
15903 cat $export_symbols >> $output_objdir/$soname.def;
15905 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15912 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15913 link_all_deplibs
=yes
15918 hardcode_shlibpath_var
=no
15919 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15920 export_dynamic_flag_spec
='${wl}-E'
15921 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15922 # Instead, shared libraries are loaded at an image base (0x10000000 by
15923 # default) and relocated if they conflict, which is a slow very memory
15924 # consuming and fragmenting process. To avoid this, we pick a random,
15925 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15926 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15927 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15928 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'
15931 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15933 if test "$host_os" = linux-dietlibc
; then
15934 case $cc_basename in
15935 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15938 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15939 && test "$tmp_diet" = no
15942 tmp_sharedflag
='-shared'
15943 case $cc_basename,$host_cpu in
15944 pgcc
*) # Portland Group C compiler
15945 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'
15946 tmp_addflag
=' $pic_flag'
15948 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15949 # Portland Group f77 and f90 compilers
15950 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'
15951 tmp_addflag
=' $pic_flag -Mnomain' ;;
15952 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15953 tmp_addflag
=' -i_dynamic' ;;
15954 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15955 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15956 ifc
* | ifort
*) # Intel Fortran compiler
15957 tmp_addflag
=' -nofor_main' ;;
15958 lf95
*) # Lahey Fortran 8.1
15959 whole_archive_flag_spec
=
15960 tmp_sharedflag
='--shared' ;;
15961 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15962 tmp_sharedflag
='-qmkshrobj'
15964 nvcc
*) # Cuda Compiler Driver 2.2
15965 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'
15966 compiler_needs_object
=yes
15969 case `$CC -V 2>&1 | sed 5q` in
15970 *Sun\ C
*) # Sun C 5.9
15971 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'
15972 compiler_needs_object
=yes
15973 tmp_sharedflag
='-G' ;;
15974 *Sun\ F
*) # Sun Fortran 8.3
15975 tmp_sharedflag
='-G' ;;
15977 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15979 if test "x$supports_anon_versioning" = xyes
; then
15980 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15981 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15982 echo "local: *; };" >> $output_objdir/$libname.ver~
15983 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15986 case $cc_basename in
15987 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15988 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15989 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15990 hardcode_libdir_flag_spec
=
15991 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15992 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15993 if test "x$supports_anon_versioning" = xyes
; then
15994 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15995 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15996 echo "local: *; };" >> $output_objdir/$libname.ver~
15997 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16007 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16008 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
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'
16017 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16021 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16022 *** create shared libraries on Solaris systems. Therefore, libtool
16023 *** is disabling shared libraries support. We urge you to upgrade GNU
16024 *** binutils to release 2.9.1 or newer. Another option is to modify
16025 *** your PATH or compiler configuration so that the native linker is
16026 *** used, and then restart.
16029 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16030 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16031 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16037 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16038 case `$LD -v 2>&1` in
16039 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16043 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16044 *** reliably create shared libraries on SCO systems. Therefore, libtool
16045 *** is disabling shared libraries support. We urge you to upgrade GNU
16046 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16047 *** your PATH or compiler configuration so that the native linker is
16048 *** used, and then restart.
16053 # For security reasons, it is highly recommended that you always
16054 # use absolute paths for naming shared libraries, and exclude the
16055 # DT_RUNPATH tag from executables and libraries. But doing so
16056 # requires that you compile everything twice, which is a pain.
16057 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16058 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16059 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16060 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16069 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16071 hardcode_direct
=yes
16072 hardcode_shlibpath_var
=no
16076 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16077 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16078 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16085 if test "$ld_shlibs" = no
; then
16087 hardcode_libdir_flag_spec
=
16088 export_dynamic_flag_spec
=
16089 whole_archive_flag_spec
=
16092 # PORTME fill in a description of your system's linker (not GNU ld)
16095 allow_undefined_flag
=unsupported
16096 always_export_symbols
=yes
16097 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'
16098 # Note: this linker hardcodes the directories in LIBPATH if there
16099 # are no directories specified by -L.
16100 hardcode_minus_L
=yes
16101 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16102 # Neither direct hardcoding nor static linking is supported with a
16104 hardcode_direct
=unsupported
16109 if test "$host_cpu" = ia64
; then
16110 # On IA64, the linker does run time linking by default, so we don't
16111 # have to do anything special.
16112 aix_use_runtimelinking
=no
16113 exp_sym_flag
='-Bexport'
16116 # If we're using GNU nm, then we don't want the "-C" option.
16117 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16118 # Also, AIX nm treats weak defined symbols like other global
16119 # defined symbols, whereas GNU nm marks them as "W".
16120 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16121 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'
16123 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'
16125 aix_use_runtimelinking
=no
16127 # Test if we are trying to use run time linking or normal
16128 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16129 # need to do runtime linking.
16130 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16131 for ld_flag
in $LDFLAGS; do
16132 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16133 aix_use_runtimelinking
=yes
16140 exp_sym_flag
='-bexport'
16141 no_entry_flag
='-bnoentry'
16144 # When large executables or shared objects are built, AIX ld can
16145 # have problems creating the table of contents. If linking a library
16146 # or program results in "error TOC overflow" add -mminimal-toc to
16147 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16148 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16151 hardcode_direct
=yes
16152 hardcode_direct_absolute
=yes
16153 hardcode_libdir_separator
=':'
16154 link_all_deplibs
=yes
16155 file_list_spec
='${wl}-f,'
16157 if test "$GCC" = yes; then
16158 case $host_os in aix4.
[012]|aix4.
[012].
*)
16159 # We only want to do this on AIX 4.2 and lower, the check
16160 # below for broken collect2 doesn't work under 4.3+
16161 collect2name
=`${CC} -print-prog-name=collect2`
16162 if test -f "$collect2name" &&
16163 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16165 # We have reworked collect2
16168 # We have old collect2
16169 hardcode_direct
=unsupported
16170 # It fails to find uninstalled libraries when the uninstalled
16171 # path is not listed in the libpath. Setting hardcode_minus_L
16172 # to unsupported forces relinking
16173 hardcode_minus_L
=yes
16174 hardcode_libdir_flag_spec
='-L$libdir'
16175 hardcode_libdir_separator
=
16179 shared_flag
='-shared'
16180 if test "$aix_use_runtimelinking" = yes; then
16181 shared_flag
="$shared_flag "'${wl}-G'
16185 if test "$host_cpu" = ia64
; then
16186 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16187 # chokes on -Wl,-G. The following line is correct:
16190 if test "$aix_use_runtimelinking" = yes; then
16191 shared_flag
='${wl}-G'
16193 shared_flag
='${wl}-bM:SRE'
16198 export_dynamic_flag_spec
='${wl}-bexpall'
16199 # It seems that -bexpall does not export symbols beginning with
16200 # underscore (_), so it is better to generate a list of symbols to export.
16201 always_export_symbols
=yes
16202 if test "$aix_use_runtimelinking" = yes; then
16203 # Warning - without using the other runtime loading flags (-brtl),
16204 # -berok will link without error, but may produce a broken library.
16205 allow_undefined_flag
='-berok'
16206 # Determine the default libpath from the value encoded in an
16207 # empty executable.
16208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16209 /* end confdefs.h. */
16219 if ac_fn_c_try_link
"$LINENO"; then :
16221 lt_aix_libpath_sed
='
16222 /Import File Strings/,/^$/ {
16228 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16229 # Check for a 64-bit object if we didn't find anything.
16230 if test -z "$aix_libpath"; then
16231 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16234 rm -f core conftest.err conftest.
$ac_objext \
16235 conftest
$ac_exeext conftest.
$ac_ext
16236 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16238 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16239 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"
16241 if test "$host_cpu" = ia64
; then
16242 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16243 allow_undefined_flag
="-z nodefs"
16244 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"
16246 # Determine the default libpath from the value encoded in an
16247 # empty executable.
16248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16249 /* end confdefs.h. */
16259 if ac_fn_c_try_link
"$LINENO"; then :
16261 lt_aix_libpath_sed
='
16262 /Import File Strings/,/^$/ {
16268 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16269 # Check for a 64-bit object if we didn't find anything.
16270 if test -z "$aix_libpath"; then
16271 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16274 rm -f core conftest.err conftest.
$ac_objext \
16275 conftest
$ac_exeext conftest.
$ac_ext
16276 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16278 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16279 # Warning - without using the other run time loading flags,
16280 # -berok will link without error, but may produce a broken library.
16281 no_undefined_flag
=' ${wl}-bernotok'
16282 allow_undefined_flag
=' ${wl}-berok'
16283 if test "$with_gnu_ld" = yes; then
16284 # We only use this code for GNU lds that support --whole-archive.
16285 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16287 # Exported symbols can be pulled into shared objects from archives
16288 whole_archive_flag_spec
='$convenience'
16290 archive_cmds_need_lc
=yes
16291 # This is similar to how AIX traditionally builds its shared libraries.
16292 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'
16300 # see comment about AmigaOS4 .so support
16301 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16302 archive_expsym_cmds
=''
16305 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)'
16306 hardcode_libdir_flag_spec
='-L$libdir'
16307 hardcode_minus_L
=yes
16313 export_dynamic_flag_spec
=-rdynamic
16316 cygwin
* | mingw
* | pw32
* | cegcc
*)
16317 # When not using gcc, we currently assume that we are using
16318 # Microsoft Visual C++.
16319 # hardcode_libdir_flag_spec is actually meaningless, as there is
16320 # no search path for DLLs.
16321 hardcode_libdir_flag_spec
=' '
16322 allow_undefined_flag
=unsupported
16323 # Tell ltmain to make .lib files, not .a files.
16325 # Tell ltmain to make .dll files, not .so files.
16327 # FIXME: Setting linknames here is a bad hack.
16328 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16329 # The linker will automatically build a .lib file if we build a DLL.
16330 old_archive_from_new_cmds
='true'
16331 # FIXME: Should let the user specify the lib program.
16332 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16333 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16334 enable_shared_with_static_runtimes
=yes
16337 darwin
* | rhapsody
*)
16340 archive_cmds_need_lc
=no
16342 hardcode_automatic
=yes
16343 hardcode_shlibpath_var
=unsupported
16344 if test "$lt_cv_ld_force_load" = "yes"; then
16345 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\"`'
16347 whole_archive_flag_spec
=''
16349 link_all_deplibs
=yes
16350 allow_undefined_flag
="$_lt_dar_allow_undefined"
16351 case $cc_basename in
16352 ifort
*) _lt_dar_can_shared
=yes ;;
16353 *) _lt_dar_can_shared
=$GCC ;;
16355 if test "$_lt_dar_can_shared" = "yes"; then
16356 output_verbose_link_cmd
=func_echo_all
16357 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16358 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16359 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}"
16360 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}"
16369 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16370 hardcode_libdir_flag_spec
='-L$libdir'
16371 hardcode_shlibpath_var
=no
16374 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16375 # support. Future versions do this automatically, but an explicit c++rt0.o
16376 # does not break anything, and helps significantly (at the cost of a little
16379 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16380 hardcode_libdir_flag_spec
='-R$libdir'
16381 hardcode_direct
=yes
16382 hardcode_shlibpath_var
=no
16385 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16387 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16388 hardcode_direct
=yes
16389 hardcode_minus_L
=yes
16390 hardcode_shlibpath_var
=no
16393 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16394 freebsd
* | dragonfly
*)
16395 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16396 hardcode_libdir_flag_spec
='-R$libdir'
16397 hardcode_direct
=yes
16398 hardcode_shlibpath_var
=no
16402 if test "$GCC" = yes; then
16403 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'
16405 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'
16407 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16408 hardcode_libdir_separator
=:
16409 hardcode_direct
=yes
16411 # hardcode_minus_L: Not really in the search PATH,
16412 # but as the default location of the library.
16413 hardcode_minus_L
=yes
16414 export_dynamic_flag_spec
='${wl}-E'
16418 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16419 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16421 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16423 if test "$with_gnu_ld" = no
; then
16424 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16425 hardcode_libdir_flag_spec_ld
='+b $libdir'
16426 hardcode_libdir_separator
=:
16427 hardcode_direct
=yes
16428 hardcode_direct_absolute
=yes
16429 export_dynamic_flag_spec
='${wl}-E'
16430 # hardcode_minus_L: Not really in the search PATH,
16431 # but as the default location of the library.
16432 hardcode_minus_L
=yes
16437 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16440 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16443 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16446 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16452 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16455 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16459 # Older versions of the 11.00 compiler do not understand -b yet
16460 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16462 $as_echo_n "checking if $CC understands -b... " >&6; }
16463 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16464 $as_echo_n "(cached) " >&6
16466 lt_cv_prog_compiler__b
=no
16467 save_LDFLAGS
="$LDFLAGS"
16468 LDFLAGS
="$LDFLAGS -b"
16469 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16470 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16471 # The linker can only warn and ignore the option if not recognized
16472 # So say no if there are warnings
16473 if test -s conftest.err
; then
16474 # Append any errors to the config.log.
16475 cat conftest.err
1>&5
16476 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16477 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16478 if diff conftest.exp conftest.er2
>/dev
/null
; then
16479 lt_cv_prog_compiler__b
=yes
16482 lt_cv_prog_compiler__b
=yes
16486 LDFLAGS
="$save_LDFLAGS"
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16490 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16492 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16493 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16495 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16501 if test "$with_gnu_ld" = no
; then
16502 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16503 hardcode_libdir_separator
=:
16508 hardcode_shlibpath_var
=no
16511 hardcode_direct
=yes
16512 hardcode_direct_absolute
=yes
16513 export_dynamic_flag_spec
='${wl}-E'
16515 # hardcode_minus_L: Not really in the search PATH,
16516 # but as the default location of the library.
16517 hardcode_minus_L
=yes
16523 irix5
* | irix6
* | nonstopux
*)
16524 if test "$GCC" = yes; then
16525 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'
16526 # Try to use the -exported_symbol ld option, if it does not
16527 # work, assume that -exports_file does not work either and
16528 # implicitly export all symbols.
16529 save_LDFLAGS
="$LDFLAGS"
16530 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16532 /* end confdefs.h. */
16535 if ac_fn_c_try_link
"$LINENO"; then :
16536 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'
16539 rm -f core conftest.err conftest.
$ac_objext \
16540 conftest
$ac_exeext conftest.
$ac_ext
16541 LDFLAGS
="$save_LDFLAGS"
16543 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'
16544 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'
16546 archive_cmds_need_lc
='no'
16547 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16548 hardcode_libdir_separator
=:
16550 link_all_deplibs
=yes
16554 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16555 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16557 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16559 hardcode_libdir_flag_spec
='-R$libdir'
16560 hardcode_direct
=yes
16561 hardcode_shlibpath_var
=no
16565 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16566 hardcode_direct
=yes
16567 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16568 hardcode_libdir_separator
=:
16569 hardcode_shlibpath_var
=no
16576 if test -f /usr
/libexec
/ld.so
; then
16577 hardcode_direct
=yes
16578 hardcode_shlibpath_var
=no
16579 hardcode_direct_absolute
=yes
16580 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16581 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16582 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16583 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16584 export_dynamic_flag_spec
='${wl}-E'
16587 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16588 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16589 hardcode_libdir_flag_spec
='-R$libdir'
16592 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16593 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16603 hardcode_libdir_flag_spec
='-L$libdir'
16604 hardcode_minus_L
=yes
16605 allow_undefined_flag
=unsupported
16606 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'
16607 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16611 if test "$GCC" = yes; then
16612 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16613 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'
16615 allow_undefined_flag
=' -expect_unresolved \*'
16616 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'
16618 archive_cmds_need_lc
='no'
16619 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16620 hardcode_libdir_separator
=:
16623 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16624 if test "$GCC" = yes; then
16625 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16626 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'
16627 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16629 allow_undefined_flag
=' -expect_unresolved \*'
16630 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'
16631 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~
16632 $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'
16634 # Both c and cxx compiler support -rpath directly
16635 hardcode_libdir_flag_spec
='-rpath $libdir'
16637 archive_cmds_need_lc
='no'
16638 hardcode_libdir_separator
=:
16642 no_undefined_flag
=' -z defs'
16643 if test "$GCC" = yes; then
16645 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16646 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16647 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16649 case `$CC -V 2>&1` in
16652 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16653 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16654 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16658 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16659 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16660 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16664 hardcode_libdir_flag_spec
='-R$libdir'
16665 hardcode_shlibpath_var
=no
16667 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16669 # The compiler driver will combine and reorder linker options,
16670 # but understands `-z linker_flag'. GCC discards it without `$wl',
16671 # but is careful enough not to reorder.
16672 # Supported since Solaris 2.6 (maybe 2.5.1?)
16673 if test "$GCC" = yes; then
16674 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16676 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16680 link_all_deplibs
=yes
16684 if test "x$host_vendor" = xsequent
; then
16685 # Use $CC to link under sequent, because it throws in some extra .o
16686 # files that make .init and .fini sections work.
16687 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16689 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16691 hardcode_libdir_flag_spec
='-L$libdir'
16692 hardcode_direct
=yes
16693 hardcode_minus_L
=yes
16694 hardcode_shlibpath_var
=no
16698 case $host_vendor in
16700 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16701 hardcode_direct
=yes # is this really true???
16704 ## LD is ld it makes a PLAMLIB
16705 ## CC just makes a GrossModule.
16706 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16707 reload_cmds
='$CC -r -o $output$reload_objs'
16711 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16712 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16715 runpath_var
='LD_RUN_PATH'
16716 hardcode_shlibpath_var
=no
16720 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16721 hardcode_shlibpath_var
=no
16722 export_dynamic_flag_spec
='-Bexport'
16726 if test -d /usr
/nec
; then
16727 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16728 hardcode_shlibpath_var
=no
16729 runpath_var
=LD_RUN_PATH
16730 hardcode_runpath_var
=yes
16735 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16736 no_undefined_flag
='${wl}-z,text'
16737 archive_cmds_need_lc
=no
16738 hardcode_shlibpath_var
=no
16739 runpath_var
='LD_RUN_PATH'
16741 if test "$GCC" = yes; then
16742 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16743 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16745 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16746 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16750 sysv5
* | sco3.2v5
* | sco5v6
*)
16751 # Note: We can NOT use -z defs as we might desire, because we do not
16752 # link with -lc, and that would cause any symbols used from libc to
16753 # always be unresolved, which means just about no library would
16754 # ever link correctly. If we're not using GNU ld we use -z text
16755 # though, which does catch some bad symbols but isn't as heavy-handed
16757 no_undefined_flag
='${wl}-z,text'
16758 allow_undefined_flag
='${wl}-z,nodefs'
16759 archive_cmds_need_lc
=no
16760 hardcode_shlibpath_var
=no
16761 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16762 hardcode_libdir_separator
=':'
16763 link_all_deplibs
=yes
16764 export_dynamic_flag_spec
='${wl}-Bexport'
16765 runpath_var
='LD_RUN_PATH'
16767 if test "$GCC" = yes; then
16768 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16769 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16771 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16772 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16777 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16778 hardcode_libdir_flag_spec
='-L$libdir'
16779 hardcode_shlibpath_var
=no
16787 if test x
$host_vendor = xsni
; then
16789 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16790 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16797 $as_echo "$ld_shlibs" >&6; }
16798 test "$ld_shlibs" = no
&& can_build_shared
=no
16800 with_gnu_ld
=$with_gnu_ld
16817 # Do we need to explicitly link libc?
16819 case "x$archive_cmds_need_lc" in
16821 # Assume -lc should be added
16822 archive_cmds_need_lc
=yes
16824 if test "$enable_shared" = yes && test "$GCC" = yes; then
16825 case $archive_cmds in
16827 # FIXME: we may have to deal with multi-command sequences.
16830 # Test whether the compiler implicitly links with -lc since on some
16831 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16832 # to ld, don't add -lc before -lgcc.
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16834 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16835 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16836 $as_echo_n "(cached) " >&6
16839 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16842 (eval $ac_compile) 2>&5
16844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16845 test $ac_status = 0; } 2>conftest.err
; then
16848 libobjs
=conftest.
$ac_objext
16850 wl
=$lt_prog_compiler_wl
16851 pic_flag
=$lt_prog_compiler_pic
16857 lt_save_allow_undefined_flag
=$allow_undefined_flag
16858 allow_undefined_flag
=
16859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16860 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16863 test $ac_status = 0; }
16865 lt_cv_archive_cmds_need_lc
=no
16867 lt_cv_archive_cmds_need_lc
=yes
16869 allow_undefined_flag
=$lt_save_allow_undefined_flag
16871 cat conftest.err
1>&5
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16877 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16878 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17042 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17044 if test "$GCC" = yes; then
17046 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17047 *) lt_awk_arg
="/^libraries:/" ;;
17050 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17051 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17053 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17054 case $lt_search_path_spec in
17056 # if the path contains ";" then we assume it to be the separator
17057 # otherwise default to the standard path separator (i.e. ":") - it is
17058 # assumed that no part of a normal pathname contains ";" but that should
17059 # okay in the real world where ";" in dirpaths is itself problematic.
17060 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17063 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17066 # Ok, now we have the path, separated by spaces, we can step through it
17067 # and add multilib dir if necessary.
17068 lt_tmp_lt_search_path_spec
=
17069 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17070 for lt_sys_path
in $lt_search_path_spec; do
17071 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17072 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17074 test -d "$lt_sys_path" && \
17075 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17078 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17079 BEGIN {RS=" "; FS="/|\n";} {
17082 for (lt_i = NF; lt_i > 0; lt_i--) {
17083 if ($lt_i != "" && $lt_i != ".") {
17084 if ($lt_i == "..") {
17087 if (lt_count == 0) {
17088 lt_foo="/" $lt_i lt_foo;
17095 if (lt_foo != "") { lt_freq[lt_foo]++; }
17096 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17098 # AWK program above erroneously prepends '/' to C:/dos/paths
17101 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17102 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17104 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17106 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17108 library_names_spec
=
17109 libname_spec
='lib$name'
17113 postuninstall_cmds
=
17117 shlibpath_overrides_runpath
=unknown
17119 dynamic_linker
="$host_os ld.so"
17120 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17121 need_lib_prefix
=unknown
17122 hardcode_into_libs
=no
17124 # when you set need_version to no, make sure it does not cause -set_version
17125 # flags to be left without arguments
17126 need_version
=unknown
17131 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17132 shlibpath_var
=LIBPATH
17134 # AIX 3 has no versioning support, so we append a major version to the name.
17135 soname_spec
='${libname}${release}${shared_ext}$major'
17142 hardcode_into_libs
=yes
17143 if test "$host_cpu" = ia64
; then
17144 # AIX 5 supports IA64
17145 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17146 shlibpath_var
=LD_LIBRARY_PATH
17148 # With GCC up to 2.95.x, collect2 would create an import file
17149 # for dependence libraries. The import file would start with
17150 # the line `#! .'. This would cause the generated library to
17151 # depend on `.', always an invalid library. This was fixed in
17152 # development snapshots of GCC prior to 3.0.
17154 aix4 | aix4.
[01] | aix4.
[01].
*)
17155 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17157 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17160 can_build_shared
=no
17164 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17165 # soname into executable. Probably we can add versioning support to
17166 # collect2, so additional links can be useful in future.
17167 if test "$aix_use_runtimelinking" = yes; then
17168 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17169 # instead of lib<name>.a to let people know that these are not
17170 # typical AIX shared libraries.
17171 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17173 # We preserve .a as extension for shared libraries through AIX4.2
17174 # and later when we are not doing run time linking.
17175 library_names_spec
='${libname}${release}.a $libname.a'
17176 soname_spec
='${libname}${release}${shared_ext}$major'
17178 shlibpath_var
=LIBPATH
17185 # Since July 2007 AmigaOS4 officially supports .so libraries.
17186 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17187 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17190 library_names_spec
='$libname.ixlibrary $libname.a'
17191 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17192 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'
17198 library_names_spec
='${libname}${shared_ext}'
17199 dynamic_linker
="$host_os ld.so"
17200 shlibpath_var
=LIBRARY_PATH
17206 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17207 soname_spec
='${libname}${release}${shared_ext}$major'
17208 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17209 shlibpath_var
=LD_LIBRARY_PATH
17210 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17211 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17212 # the default ld.so.conf also contains /usr/contrib/lib and
17213 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17214 # libtool to hard-code these into programs
17217 cygwin
* | mingw
* | pw32
* | cegcc
*)
17218 version_type
=windows
17223 case $GCC,$host_os in
17224 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17225 library_names_spec
='$libname.dll.a'
17226 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17227 postinstall_cmds
='base_file=`basename \${file}`~
17228 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17229 dldir=$destdir/`dirname \$dlpath`~
17230 test -d \$dldir || mkdir -p \$dldir~
17231 $install_prog $dir/$dlname \$dldir/$dlname~
17232 chmod a+x \$dldir/$dlname~
17233 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17234 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17236 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17237 dlpath=$dir/\$dldll~
17239 shlibpath_overrides_runpath
=yes
17243 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17244 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17246 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17249 # MinGW DLLs use traditional 'lib' prefix
17250 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17253 # pw32 DLLs use 'pw' prefix rather than 'lib'
17254 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17260 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17263 dynamic_linker
='Win32 ld.exe'
17264 # FIXME: first we should search . and the directory the executable is in
17268 darwin
* | rhapsody
*)
17269 dynamic_linker
="$host_os dyld"
17270 version_type
=darwin
17273 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17274 soname_spec
='${libname}${release}${major}$shared_ext'
17275 shlibpath_overrides_runpath
=yes
17276 shlibpath_var
=DYLD_LIBRARY_PATH
17277 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17279 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17280 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17287 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17288 soname_spec
='${libname}${release}${shared_ext}$major'
17289 shlibpath_var
=LD_LIBRARY_PATH
17292 freebsd
* | dragonfly
*)
17293 # DragonFly does not have aout. When/if they implement a new
17294 # versioning mechanism, adjust this.
17295 if test -x /usr
/bin
/objformat
; then
17296 objformat
=`/usr/bin/objformat`
17299 freebsd
[23].
*) objformat
=aout
;;
17300 *) objformat
=elf
;;
17303 version_type
=freebsd-
$objformat
17304 case $version_type in
17306 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17311 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17315 shlibpath_var
=LD_LIBRARY_PATH
17318 shlibpath_overrides_runpath
=yes
17320 freebsd3.
[01]* | freebsdelf3.
[01]*)
17321 shlibpath_overrides_runpath
=yes
17322 hardcode_into_libs
=yes
17324 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17325 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17326 shlibpath_overrides_runpath
=no
17327 hardcode_into_libs
=yes
17329 *) # from 4.6 on, and DragonFly
17330 shlibpath_overrides_runpath
=yes
17331 hardcode_into_libs
=yes
17340 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17341 soname_spec
='${libname}${release}${shared_ext}$major'
17342 shlibpath_var
=LD_LIBRARY_PATH
17343 hardcode_into_libs
=yes
17350 dynamic_linker
="$host_os runtime_loader"
17351 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17352 soname_spec
='${libname}${release}${shared_ext}$major'
17353 shlibpath_var
=LIBRARY_PATH
17354 shlibpath_overrides_runpath
=yes
17355 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17356 hardcode_into_libs
=yes
17359 hpux9
* | hpux10
* | hpux11
*)
17360 # Give a soname corresponding to the major version so that dld.sl refuses to
17361 # link against other versions.
17368 hardcode_into_libs
=yes
17369 dynamic_linker
="$host_os dld.so"
17370 shlibpath_var
=LD_LIBRARY_PATH
17371 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17372 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17373 soname_spec
='${libname}${release}${shared_ext}$major'
17374 if test "X$HPUX_IA64_MODE" = X32
; then
17375 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17377 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17379 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17383 hardcode_into_libs
=yes
17384 dynamic_linker
="$host_os dld.sl"
17385 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17386 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17387 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17388 soname_spec
='${libname}${release}${shared_ext}$major'
17389 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17390 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17394 dynamic_linker
="$host_os dld.sl"
17395 shlibpath_var
=SHLIB_PATH
17396 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17397 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17398 soname_spec
='${libname}${release}${shared_ext}$major'
17401 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17402 postinstall_cmds
='chmod 555 $lib'
17403 # or fails outright, so override atomically:
17404 install_override_mode
=555
17411 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17412 soname_spec
='${libname}${release}${shared_ext}$major'
17413 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17414 shlibpath_var
=LD_LIBRARY_PATH
17415 shlibpath_overrides_runpath
=no
17416 hardcode_into_libs
=yes
17419 irix5
* | irix6
* | nonstopux
*)
17421 nonstopux
*) version_type
=nonstopux
;;
17423 if test "$lt_cv_prog_gnu_ld" = yes; then
17431 soname_spec
='${libname}${release}${shared_ext}$major'
17432 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17434 irix5
* | nonstopux
*)
17435 libsuff
= shlibsuff
=
17438 case $LD in # libtool.m4 will add one of these switches to LD
17439 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17440 libsuff
= shlibsuff
= libmagic
=32-bit;;
17441 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17442 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17443 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17444 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17445 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17449 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17450 shlibpath_overrides_runpath
=no
17451 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17452 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17453 hardcode_into_libs
=yes
17456 # No shared lib support for Linux oldld, aout, or coff.
17457 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17461 # This must be Linux ELF.
17462 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17466 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17467 soname_spec
='${libname}${release}${shared_ext}$major'
17468 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17469 shlibpath_var
=LD_LIBRARY_PATH
17470 shlibpath_overrides_runpath
=no
17472 # Some binutils ld are patched to set DT_RUNPATH
17473 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17474 $as_echo_n "(cached) " >&6
17476 lt_cv_shlibpath_overrides_runpath
=no
17477 save_LDFLAGS
=$LDFLAGS
17478 save_libdir
=$libdir
17479 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17480 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17482 /* end confdefs.h. */
17492 if ac_fn_c_try_link
"$LINENO"; then :
17493 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17494 lt_cv_shlibpath_overrides_runpath
=yes
17497 rm -f core conftest.err conftest.
$ac_objext \
17498 conftest
$ac_exeext conftest.
$ac_ext
17499 LDFLAGS
=$save_LDFLAGS
17500 libdir
=$save_libdir
17504 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17506 # This implies no fast_install, which is unacceptable.
17507 # Some rework will be needed to allow for fast_install
17508 # before this can be enabled.
17509 hardcode_into_libs
=yes
17511 # Append ld.so.conf contents to the search path
17512 if test -f /etc
/ld.so.conf
; then
17513 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' ' '`
17514 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17517 # We used to test for /lib/ld.so.1 and disable shared libraries on
17518 # powerpc, because MkLinux only supported shared libraries with the
17519 # GNU dynamic linker. Since this was broken with cross compilers,
17520 # most powerpc-linux boxes support dynamic linking these days and
17521 # people can always --disable-shared, the test was removed, and we
17522 # assume the GNU/Linux dynamic linker is in use.
17523 dynamic_linker
='GNU/Linux ld.so'
17530 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17531 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17532 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17533 dynamic_linker
='NetBSD (a.out) ld.so'
17535 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17536 soname_spec
='${libname}${release}${shared_ext}$major'
17537 dynamic_linker
='NetBSD ld.elf_so'
17539 shlibpath_var
=LD_LIBRARY_PATH
17540 shlibpath_overrides_runpath
=yes
17541 hardcode_into_libs
=yes
17546 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17547 shlibpath_var
=LD_LIBRARY_PATH
17548 shlibpath_overrides_runpath
=yes
17555 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17556 soname_spec
='${libname}${release}${shared_ext}$major'
17557 shlibpath_var
=LD_LIBRARY_PATH
17558 shlibpath_overrides_runpath
=no
17559 hardcode_into_libs
=yes
17560 dynamic_linker
='ldqnx.so'
17565 sys_lib_dlsearch_path_spec
="/usr/lib"
17567 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17569 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17570 *) need_version
=no
;;
17572 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17573 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17574 shlibpath_var
=LD_LIBRARY_PATH
17575 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17577 openbsd2.
[89] | openbsd2.
[89].
*)
17578 shlibpath_overrides_runpath
=no
17581 shlibpath_overrides_runpath
=yes
17585 shlibpath_overrides_runpath
=yes
17590 libname_spec
='$name'
17593 library_names_spec
='$libname${shared_ext} $libname.a'
17594 dynamic_linker
='OS/2 ld.exe'
17595 shlibpath_var
=LIBPATH
17598 osf3
* | osf4
* | osf5
*)
17602 soname_spec
='${libname}${release}${shared_ext}$major'
17603 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17604 shlibpath_var
=LD_LIBRARY_PATH
17605 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17606 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17617 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17618 soname_spec
='${libname}${release}${shared_ext}$major'
17619 shlibpath_var
=LD_LIBRARY_PATH
17620 shlibpath_overrides_runpath
=yes
17621 hardcode_into_libs
=yes
17622 # ldd complains unless libraries are executable
17623 postinstall_cmds
='chmod +x $lib'
17628 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17629 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17630 shlibpath_var
=LD_LIBRARY_PATH
17631 shlibpath_overrides_runpath
=yes
17632 if test "$with_gnu_ld" = yes; then
17640 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17641 soname_spec
='${libname}${release}${shared_ext}$major'
17642 shlibpath_var
=LD_LIBRARY_PATH
17643 case $host_vendor in
17645 shlibpath_overrides_runpath
=no
17647 runpath_var
=LD_RUN_PATH
17655 shlibpath_overrides_runpath
=no
17656 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17662 if test -d /usr
/nec
;then
17664 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17665 soname_spec
='$libname${shared_ext}.$major'
17666 shlibpath_var
=LD_LIBRARY_PATH
17670 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17671 version_type
=freebsd-elf
17674 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17675 soname_spec
='${libname}${release}${shared_ext}$major'
17676 shlibpath_var
=LD_LIBRARY_PATH
17677 shlibpath_overrides_runpath
=yes
17678 hardcode_into_libs
=yes
17679 if test "$with_gnu_ld" = yes; then
17680 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17682 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17685 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17689 sys_lib_dlsearch_path_spec
='/usr/lib'
17693 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17697 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17698 shlibpath_var
=LD_LIBRARY_PATH
17699 shlibpath_overrides_runpath
=no
17700 hardcode_into_libs
=yes
17705 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17706 soname_spec
='${libname}${release}${shared_ext}$major'
17707 shlibpath_var
=LD_LIBRARY_PATH
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17715 $as_echo "$dynamic_linker" >&6; }
17716 test "$dynamic_linker" = no
&& can_build_shared
=no
17718 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17719 if test "$GCC" = yes; then
17720 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17723 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17724 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17726 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17727 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17822 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17824 if test -n "$hardcode_libdir_flag_spec" ||
17825 test -n "$runpath_var" ||
17826 test "X$hardcode_automatic" = "Xyes" ; then
17828 # We can hardcode non-existent directories.
17829 if test "$hardcode_direct" != no
&&
17830 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17831 # have to relink, otherwise we might link with an installed library
17832 # when we should be linking with a yet-to-be-installed one
17833 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17834 test "$hardcode_minus_L" != no
; then
17835 # Linking always hardcodes the temporary library directory.
17836 hardcode_action
=relink
17838 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17839 hardcode_action
=immediate
17842 # We cannot hardcode anything, or else we can only hardcode existing
17844 hardcode_action
=unsupported
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17847 $as_echo "$hardcode_action" >&6; }
17849 if test "$hardcode_action" = relink ||
17850 test "$inherit_rpath" = yes; then
17851 # Fast installation is not supported
17852 enable_fast_install
=no
17853 elif test "$shlibpath_overrides_runpath" = yes ||
17854 test "$enable_shared" = no
; then
17855 # Fast installation is not necessary
17856 enable_fast_install
=needless
17864 if test "x$enable_dlopen" != xyes
; then
17865 enable_dlopen
=unknown
17866 enable_dlopen_self
=unknown
17867 enable_dlopen_self_static
=unknown
17874 lt_cv_dlopen
="load_add_on"
17876 lt_cv_dlopen_self
=yes
17879 mingw
* | pw32
* | cegcc
*)
17880 lt_cv_dlopen
="LoadLibrary"
17885 lt_cv_dlopen
="dlopen"
17890 # if libdl is installed we need to link against it
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17892 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17893 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17894 $as_echo_n "(cached) " >&6
17896 ac_check_lib_save_LIBS
=$LIBS
17898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17899 /* end confdefs.h. */
17901 /* Override any GCC internal prototype to avoid an error.
17902 Use char because int might match the return type of a GCC
17903 builtin and then its argument prototype would still apply. */
17916 if ac_fn_c_try_link
"$LINENO"; then :
17917 ac_cv_lib_dl_dlopen
=yes
17919 ac_cv_lib_dl_dlopen
=no
17921 rm -f core conftest.err conftest.
$ac_objext \
17922 conftest
$ac_exeext conftest.
$ac_ext
17923 LIBS
=$ac_check_lib_save_LIBS
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17926 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17927 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17928 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17931 lt_cv_dlopen
="dyld"
17933 lt_cv_dlopen_self
=yes
17940 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17941 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17942 lt_cv_dlopen
="shl_load"
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17945 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17946 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17947 $as_echo_n "(cached) " >&6
17949 ac_check_lib_save_LIBS
=$LIBS
17951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17952 /* end confdefs.h. */
17954 /* Override any GCC internal prototype to avoid an error.
17955 Use char because int might match the return type of a GCC
17956 builtin and then its argument prototype would still apply. */
17964 return shl_load ();
17969 if ac_fn_c_try_link
"$LINENO"; then :
17970 ac_cv_lib_dld_shl_load
=yes
17972 ac_cv_lib_dld_shl_load
=no
17974 rm -f core conftest.err conftest.
$ac_objext \
17975 conftest
$ac_exeext conftest.
$ac_ext
17976 LIBS
=$ac_check_lib_save_LIBS
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17979 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17980 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17981 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17983 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17984 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17985 lt_cv_dlopen
="dlopen"
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17988 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17989 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17990 $as_echo_n "(cached) " >&6
17992 ac_check_lib_save_LIBS
=$LIBS
17994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17995 /* end confdefs.h. */
17997 /* Override any GCC internal prototype to avoid an error.
17998 Use char because int might match the return type of a GCC
17999 builtin and then its argument prototype would still apply. */
18012 if ac_fn_c_try_link
"$LINENO"; then :
18013 ac_cv_lib_dl_dlopen
=yes
18015 ac_cv_lib_dl_dlopen
=no
18017 rm -f core conftest.err conftest.
$ac_objext \
18018 conftest
$ac_exeext conftest.
$ac_ext
18019 LIBS
=$ac_check_lib_save_LIBS
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18022 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18023 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18024 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18027 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18028 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18029 $as_echo_n "(cached) " >&6
18031 ac_check_lib_save_LIBS
=$LIBS
18032 LIBS
="-lsvld $LIBS"
18033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18034 /* end confdefs.h. */
18036 /* Override any GCC internal prototype to avoid an error.
18037 Use char because int might match the return type of a GCC
18038 builtin and then its argument prototype would still apply. */
18051 if ac_fn_c_try_link
"$LINENO"; then :
18052 ac_cv_lib_svld_dlopen
=yes
18054 ac_cv_lib_svld_dlopen
=no
18056 rm -f core conftest.err conftest.
$ac_objext \
18057 conftest
$ac_exeext conftest.
$ac_ext
18058 LIBS
=$ac_check_lib_save_LIBS
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18061 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18062 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18063 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18066 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18067 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18068 $as_echo_n "(cached) " >&6
18070 ac_check_lib_save_LIBS
=$LIBS
18072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18073 /* end confdefs.h. */
18075 /* Override any GCC internal prototype to avoid an error.
18076 Use char because int might match the return type of a GCC
18077 builtin and then its argument prototype would still apply. */
18085 return dld_link ();
18090 if ac_fn_c_try_link
"$LINENO"; then :
18091 ac_cv_lib_dld_dld_link
=yes
18093 ac_cv_lib_dld_dld_link
=no
18095 rm -f core conftest.err conftest.
$ac_objext \
18096 conftest
$ac_exeext conftest.
$ac_ext
18097 LIBS
=$ac_check_lib_save_LIBS
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18100 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18101 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18102 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18123 if test "x$lt_cv_dlopen" != xno
; then
18129 case $lt_cv_dlopen in
18131 save_CPPFLAGS
="$CPPFLAGS"
18132 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18134 save_LDFLAGS
="$LDFLAGS"
18135 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18138 LIBS
="$lt_cv_dlopen_libs $LIBS"
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18141 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18142 if test "${lt_cv_dlopen_self+set}" = set; then :
18143 $as_echo_n "(cached) " >&6
18145 if test "$cross_compiling" = yes; then :
18146 lt_cv_dlopen_self
=cross
18148 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18149 lt_status
=$lt_dlunknown
18150 cat > conftest.
$ac_ext <<_LT_EOF
18151 #line 18151 "configure"
18152 #include "confdefs.h"
18161 # define LT_DLGLOBAL RTLD_GLOBAL
18164 # define LT_DLGLOBAL DL_GLOBAL
18166 # define LT_DLGLOBAL 0
18170 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18171 find out it does not work in some platform. */
18172 #ifndef LT_DLLAZY_OR_NOW
18174 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18177 # define LT_DLLAZY_OR_NOW DL_LAZY
18180 # define LT_DLLAZY_OR_NOW RTLD_NOW
18183 # define LT_DLLAZY_OR_NOW DL_NOW
18185 # define LT_DLLAZY_OR_NOW 0
18192 /* When -fvisbility=hidden is used, assume the code has been annotated
18193 correspondingly for the symbols needed. */
18194 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18195 void fnord () __attribute__((visibility("default")));
18198 void fnord () { int i=42; }
18201 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18202 int status = $lt_dlunknown;
18206 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18209 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18210 else puts (dlerror ());
18212 /* dlclose (self); */
18220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18221 (eval $ac_link) 2>&5
18223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18224 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18225 (.
/conftest
; exit; ) >&5 2>/dev
/null
18227 case x
$lt_status in
18228 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18229 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18230 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18233 # compilation failed
18234 lt_cv_dlopen_self
=no
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18242 $as_echo "$lt_cv_dlopen_self" >&6; }
18244 if test "x$lt_cv_dlopen_self" = xyes
; then
18245 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18247 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18248 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18249 $as_echo_n "(cached) " >&6
18251 if test "$cross_compiling" = yes; then :
18252 lt_cv_dlopen_self_static
=cross
18254 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18255 lt_status
=$lt_dlunknown
18256 cat > conftest.
$ac_ext <<_LT_EOF
18257 #line 18257 "configure"
18258 #include "confdefs.h"
18267 # define LT_DLGLOBAL RTLD_GLOBAL
18270 # define LT_DLGLOBAL DL_GLOBAL
18272 # define LT_DLGLOBAL 0
18276 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18277 find out it does not work in some platform. */
18278 #ifndef LT_DLLAZY_OR_NOW
18280 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18283 # define LT_DLLAZY_OR_NOW DL_LAZY
18286 # define LT_DLLAZY_OR_NOW RTLD_NOW
18289 # define LT_DLLAZY_OR_NOW DL_NOW
18291 # define LT_DLLAZY_OR_NOW 0
18298 /* When -fvisbility=hidden is used, assume the code has been annotated
18299 correspondingly for the symbols needed. */
18300 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18301 void fnord () __attribute__((visibility("default")));
18304 void fnord () { int i=42; }
18307 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18308 int status = $lt_dlunknown;
18312 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18315 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18316 else puts (dlerror ());
18318 /* dlclose (self); */
18326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18327 (eval $ac_link) 2>&5
18329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18330 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18331 (.
/conftest
; exit; ) >&5 2>/dev
/null
18333 case x
$lt_status in
18334 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18335 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18336 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18339 # compilation failed
18340 lt_cv_dlopen_self_static
=no
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18348 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18351 CPPFLAGS
="$save_CPPFLAGS"
18352 LDFLAGS
="$save_LDFLAGS"
18357 case $lt_cv_dlopen_self in
18358 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18359 *) enable_dlopen_self
=unknown
;;
18362 case $lt_cv_dlopen_self_static in
18363 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18364 *) enable_dlopen_self_static
=unknown
;;
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18387 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18388 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18389 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18390 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18392 $as_echo "yes" >&6; }
18394 # FIXME - insert some real tests, host_os isn't really good enough
18397 if test -n "$STRIP" ; then
18398 striplib
="$STRIP -x"
18399 old_striplib
="$STRIP -S"
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18401 $as_echo "yes" >&6; }
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18404 $as_echo "no" >&6; }
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18409 $as_echo "no" >&6; }
18425 # Report which library types will actually be built
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18427 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18429 $as_echo "$can_build_shared" >&6; }
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18432 $as_echo_n "checking whether to build shared libraries... " >&6; }
18433 test "$can_build_shared" = "no" && enable_shared
=no
18435 # On AIX, shared libraries and static libraries use the same namespace, and
18436 # are all built from PIC.
18439 test "$enable_shared" = yes && enable_static
=no
18440 if test -n "$RANLIB"; then
18441 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18442 postinstall_cmds
='$RANLIB $lib'
18447 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18448 test "$enable_shared" = yes && enable_static
=no
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18453 $as_echo "$enable_shared" >&6; }
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18456 $as_echo_n "checking whether to build static libraries... " >&6; }
18457 # Make sure either enable_shared or enable_static is yes.
18458 test "$enable_shared" = yes || enable_static
=yes
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18460 $as_echo "$enable_static" >&6; }
18467 ac_cpp
='$CPP $CPPFLAGS'
18468 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18469 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18470 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18474 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18475 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18476 (test "X$CXX" != "Xg++"))) ; then
18478 ac_cpp
='$CXXCPP $CPPFLAGS'
18479 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18480 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18481 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18483 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18484 if test -z "$CXXCPP"; then
18485 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18486 $as_echo_n "(cached) " >&6
18488 # Double quotes because CXXCPP needs to be expanded
18489 for CXXCPP
in "$CXX -E" "/lib/cpp"
18491 ac_preproc_ok
=false
18492 for ac_cxx_preproc_warn_flag
in '' yes
18494 # Use a header file that comes with gcc, so configuring glibc
18495 # with a fresh cross-compiler works.
18496 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18497 # <limits.h> exists even on freestanding compilers.
18498 # On the NeXT, cc -E runs the code through the compiler's parser,
18499 # not just through cpp. "Syntax error" is here to catch this case.
18500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18501 /* end confdefs.h. */
18503 # include <limits.h>
18505 # include <assert.h>
18509 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18512 # Broken: fails on valid input.
18515 rm -f conftest.err conftest.
$ac_ext
18517 # OK, works on sane cases. Now check whether nonexistent headers
18518 # can be detected and how.
18519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18520 /* end confdefs.h. */
18521 #include <ac_nonexistent.h>
18523 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18524 # Broken: success on invalid input.
18527 # Passes both tests.
18531 rm -f conftest.err conftest.
$ac_ext
18534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18535 rm -f conftest.err conftest.
$ac_ext
18536 if $ac_preproc_ok; then :
18541 ac_cv_prog_CXXCPP
=$CXXCPP
18544 CXXCPP
=$ac_cv_prog_CXXCPP
18546 ac_cv_prog_CXXCPP
=$CXXCPP
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18549 $as_echo "$CXXCPP" >&6; }
18550 ac_preproc_ok
=false
18551 for ac_cxx_preproc_warn_flag
in '' yes
18553 # Use a header file that comes with gcc, so configuring glibc
18554 # with a fresh cross-compiler works.
18555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18556 # <limits.h> exists even on freestanding compilers.
18557 # On the NeXT, cc -E runs the code through the compiler's parser,
18558 # not just through cpp. "Syntax error" is here to catch this case.
18559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18560 /* end confdefs.h. */
18562 # include <limits.h>
18564 # include <assert.h>
18568 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18571 # Broken: fails on valid input.
18574 rm -f conftest.err conftest.
$ac_ext
18576 # OK, works on sane cases. Now check whether nonexistent headers
18577 # can be detected and how.
18578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18579 /* end confdefs.h. */
18580 #include <ac_nonexistent.h>
18582 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18583 # Broken: success on invalid input.
18586 # Passes both tests.
18590 rm -f conftest.err conftest.
$ac_ext
18593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18594 rm -f conftest.err conftest.
$ac_ext
18595 if $ac_preproc_ok; then :
18598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18600 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18601 See \`config.log' for more details." "$LINENO" 5; }
18605 ac_cpp
='$CPP $CPPFLAGS'
18606 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18607 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18608 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18611 _lt_caught_CXX_error
=yes
18615 ac_cpp
='$CXXCPP $CPPFLAGS'
18616 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18617 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18618 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18620 archive_cmds_need_lc_CXX
=no
18621 allow_undefined_flag_CXX
=
18622 always_export_symbols_CXX
=no
18623 archive_expsym_cmds_CXX
=
18624 compiler_needs_object_CXX
=no
18625 export_dynamic_flag_spec_CXX
=
18626 hardcode_direct_CXX
=no
18627 hardcode_direct_absolute_CXX
=no
18628 hardcode_libdir_flag_spec_CXX
=
18629 hardcode_libdir_flag_spec_ld_CXX
=
18630 hardcode_libdir_separator_CXX
=
18631 hardcode_minus_L_CXX
=no
18632 hardcode_shlibpath_var_CXX
=unsupported
18633 hardcode_automatic_CXX
=no
18634 inherit_rpath_CXX
=no
18636 module_expsym_cmds_CXX
=
18637 link_all_deplibs_CXX
=unknown
18638 old_archive_cmds_CXX
=$old_archive_cmds
18639 reload_flag_CXX
=$reload_flag
18640 reload_cmds_CXX
=$reload_cmds
18641 no_undefined_flag_CXX
=
18642 whole_archive_flag_spec_CXX
=
18643 enable_shared_with_static_runtimes_CXX
=no
18645 # Source file extension for C++ test sources.
18648 # Object file extension for compiled C++ test sources.
18652 # No sense in running all these tests if we already determined that
18653 # the CXX compiler isn't working. Some variables (like enable_shared)
18654 # are currently assumed to apply to all compilers on this platform,
18655 # and will be corrupted by setting them based on a non-working compiler.
18656 if test "$_lt_caught_CXX_error" != yes; then
18657 # Code to be used in simple compile tests
18658 lt_simple_compile_test_code
="int some_variable = 0;"
18660 # Code to be used in simple link tests
18661 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18663 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18670 # If no C compiler was specified, use CC.
18673 # If no C compiler flags were specified, use CFLAGS.
18674 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18676 # Allow CC to be a program name with arguments.
18680 # save warnings/boilerplate of simple test code
18681 ac_outfile
=conftest.
$ac_objext
18682 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18683 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18684 _lt_compiler_boilerplate
=`cat conftest.err`
18687 ac_outfile
=conftest.
$ac_objext
18688 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18689 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18690 _lt_linker_boilerplate
=`cat conftest.err`
18694 # Allow CC to be a program name with arguments.
18699 lt_save_with_gnu_ld
=$with_gnu_ld
18700 lt_save_path_LD
=$lt_cv_path_LD
18701 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18702 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18704 $as_unset lt_cv_prog_gnu_ld
18706 if test -n "${lt_cv_path_LDCXX+set}"; then
18707 lt_cv_path_LD
=$lt_cv_path_LDCXX
18709 $as_unset lt_cv_path_LD
18711 test -z "${LDCXX+set}" || LD
=$LDCXX
18715 for cc_temp
in $compiler""; do
18717 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18718 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18723 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18726 if test -n "$compiler"; then
18727 # We don't want -fno-exception when compiling C++ code, so set the
18728 # no_builtin_flag separately
18729 if test "$GXX" = yes; then
18730 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18732 lt_prog_compiler_no_builtin_flag_CXX
=
18735 if test "$GXX" = yes; then
18736 # Set up default GNU C++ configuration
18740 # Check whether --with-gnu-ld was given.
18741 if test "${with_gnu_ld+set}" = set; then :
18742 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18748 if test "$GCC" = yes; then
18749 # Check if gcc -print-prog-name=ld gives a path.
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18751 $as_echo_n "checking for ld used by $CC... " >&6; }
18754 # gcc leaves a trailing carriage return which upsets mingw
18755 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18757 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18760 # Accept absolute paths.
18762 re_direlt
='/[^/][^/]*/\.\./'
18763 # Canonicalize the pathname of ld
18764 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18765 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18766 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18768 test -z "$LD" && LD
="$ac_prog"
18771 # If it fails, then pretend we aren't using GCC.
18775 # If it is relative, then search for the first ld in PATH.
18776 with_gnu_ld
=unknown
18779 elif test "$with_gnu_ld" = yes; then
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18781 $as_echo_n "checking for GNU ld... " >&6; }
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18784 $as_echo_n "checking for non-GNU ld... " >&6; }
18786 if test "${lt_cv_path_LD+set}" = set; then :
18787 $as_echo_n "(cached) " >&6
18789 if test -z "$LD"; then
18790 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18791 for ac_dir
in $PATH; do
18793 test -z "$ac_dir" && ac_dir
=.
18794 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18795 lt_cv_path_LD
="$ac_dir/$ac_prog"
18796 # Check to see if the program is GNU ld. I'd rather use --version,
18797 # but apparently some variants of GNU ld only accept -v.
18798 # Break only if it was the GNU/non-GNU ld that we prefer.
18799 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18800 *GNU
* |
*'with BFD'*)
18801 test "$with_gnu_ld" != no
&& break
18804 test "$with_gnu_ld" != yes && break
18811 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18815 LD
="$lt_cv_path_LD"
18816 if test -n "$LD"; then
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18818 $as_echo "$LD" >&6; }
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18821 $as_echo "no" >&6; }
18823 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18825 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18826 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18827 $as_echo_n "(cached) " >&6
18829 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18830 case `$LD -v 2>&1 </dev/null` in
18831 *GNU
* |
*'with BFD'*)
18832 lt_cv_prog_gnu_ld
=yes
18835 lt_cv_prog_gnu_ld
=no
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18840 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18841 with_gnu_ld
=$lt_cv_prog_gnu_ld
18849 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18850 # archiving commands below assume that GNU ld is being used.
18851 if test "$with_gnu_ld" = yes; then
18852 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18853 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'
18855 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18856 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18858 # If archive_cmds runs LD, not CC, wlarc should be empty
18859 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18860 # investigate it a little bit more. (MM)
18863 # ancient GNU ld didn't support --whole-archive et. al.
18864 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18865 $GREP 'no-whole-archive' > /dev
/null
; then
18866 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18868 whole_archive_flag_spec_CXX
=
18874 # A generic and very simple default shared library creation
18875 # command for GNU C++ for the case where it uses the native
18876 # linker, instead of GNU ld. If possible, this setting should
18877 # overridden to take advantage of the native linker features on
18878 # the platform it is being used on.
18879 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18882 # Commands to make compiler produce verbose output that lists
18883 # what "hidden" libraries, object files and flags are used when
18884 # linking a shared library.
18885 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18893 # PORTME: fill in a description of your system's C++ link characteristics
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18895 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18899 # FIXME: insert proper C++ library support
18903 if test "$host_cpu" = ia64
; then
18904 # On IA64, the linker does run time linking by default, so we don't
18905 # have to do anything special.
18906 aix_use_runtimelinking
=no
18907 exp_sym_flag
='-Bexport'
18910 aix_use_runtimelinking
=no
18912 # Test if we are trying to use run time linking or normal
18913 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18914 # need to do runtime linking.
18915 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18916 for ld_flag
in $LDFLAGS; do
18919 aix_use_runtimelinking
=yes
18927 exp_sym_flag
='-bexport'
18928 no_entry_flag
='-bnoentry'
18931 # When large executables or shared objects are built, AIX ld can
18932 # have problems creating the table of contents. If linking a library
18933 # or program results in "error TOC overflow" add -mminimal-toc to
18934 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18935 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18937 archive_cmds_CXX
=''
18938 hardcode_direct_CXX
=yes
18939 hardcode_direct_absolute_CXX
=yes
18940 hardcode_libdir_separator_CXX
=':'
18941 link_all_deplibs_CXX
=yes
18942 file_list_spec_CXX
='${wl}-f,'
18944 if test "$GXX" = yes; then
18945 case $host_os in aix4.
[012]|aix4.
[012].
*)
18946 # We only want to do this on AIX 4.2 and lower, the check
18947 # below for broken collect2 doesn't work under 4.3+
18948 collect2name
=`${CC} -print-prog-name=collect2`
18949 if test -f "$collect2name" &&
18950 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18952 # We have reworked collect2
18955 # We have old collect2
18956 hardcode_direct_CXX
=unsupported
18957 # It fails to find uninstalled libraries when the uninstalled
18958 # path is not listed in the libpath. Setting hardcode_minus_L
18959 # to unsupported forces relinking
18960 hardcode_minus_L_CXX
=yes
18961 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18962 hardcode_libdir_separator_CXX
=
18965 shared_flag
='-shared'
18966 if test "$aix_use_runtimelinking" = yes; then
18967 shared_flag
="$shared_flag "'${wl}-G'
18971 if test "$host_cpu" = ia64
; then
18972 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18973 # chokes on -Wl,-G. The following line is correct:
18976 if test "$aix_use_runtimelinking" = yes; then
18977 shared_flag
='${wl}-G'
18979 shared_flag
='${wl}-bM:SRE'
18984 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18985 # It seems that -bexpall does not export symbols beginning with
18986 # underscore (_), so it is better to generate a list of symbols to
18988 always_export_symbols_CXX
=yes
18989 if test "$aix_use_runtimelinking" = yes; then
18990 # Warning - without using the other runtime loading flags (-brtl),
18991 # -berok will link without error, but may produce a broken library.
18992 allow_undefined_flag_CXX
='-berok'
18993 # Determine the default libpath from the value encoded in an empty
18995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18996 /* end confdefs.h. */
19006 if ac_fn_cxx_try_link
"$LINENO"; then :
19008 lt_aix_libpath_sed
='
19009 /Import File Strings/,/^$/ {
19015 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19016 # Check for a 64-bit object if we didn't find anything.
19017 if test -z "$aix_libpath"; then
19018 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19021 rm -f core conftest.err conftest.
$ac_objext \
19022 conftest
$ac_exeext conftest.
$ac_ext
19023 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19025 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19027 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"
19029 if test "$host_cpu" = ia64
; then
19030 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19031 allow_undefined_flag_CXX
="-z nodefs"
19032 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"
19034 # Determine the default libpath from the value encoded in an
19035 # empty executable.
19036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19037 /* end confdefs.h. */
19047 if ac_fn_cxx_try_link
"$LINENO"; then :
19049 lt_aix_libpath_sed
='
19050 /Import File Strings/,/^$/ {
19056 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19057 # Check for a 64-bit object if we didn't find anything.
19058 if test -z "$aix_libpath"; then
19059 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19062 rm -f core conftest.err conftest.
$ac_objext \
19063 conftest
$ac_exeext conftest.
$ac_ext
19064 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19066 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19067 # Warning - without using the other run time loading flags,
19068 # -berok will link without error, but may produce a broken library.
19069 no_undefined_flag_CXX
=' ${wl}-bernotok'
19070 allow_undefined_flag_CXX
=' ${wl}-berok'
19071 if test "$with_gnu_ld" = yes; then
19072 # We only use this code for GNU lds that support --whole-archive.
19073 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19075 # Exported symbols can be pulled into shared objects from archives
19076 whole_archive_flag_spec_CXX
='$convenience'
19078 archive_cmds_need_lc_CXX
=yes
19079 # This is similar to how AIX traditionally builds its shared
19081 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'
19087 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19088 allow_undefined_flag_CXX
=unsupported
19089 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19090 # support --undefined. This deserves some investigation. FIXME
19091 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19098 case $cc_basename in
19100 # FIXME: insert proper C++ library support
19106 cygwin
* | mingw
* | pw32
* | cegcc
*)
19107 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19108 # as there is no search path for DLLs.
19109 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19110 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19111 allow_undefined_flag_CXX
=unsupported
19112 always_export_symbols_CXX
=no
19113 enable_shared_with_static_runtimes_CXX
=yes
19115 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19116 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'
19117 # If the export-symbols file already is a .def file (1st line
19118 # is EXPORTS), use it as is; otherwise, prepend...
19119 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19120 cp $export_symbols $output_objdir/$soname.def;
19122 echo EXPORTS > $output_objdir/$soname.def;
19123 cat $export_symbols >> $output_objdir/$soname.def;
19125 $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'
19130 darwin
* | rhapsody
*)
19133 archive_cmds_need_lc_CXX
=no
19134 hardcode_direct_CXX
=no
19135 hardcode_automatic_CXX
=yes
19136 hardcode_shlibpath_var_CXX
=unsupported
19137 if test "$lt_cv_ld_force_load" = "yes"; then
19138 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\"`'
19140 whole_archive_flag_spec_CXX
=''
19142 link_all_deplibs_CXX
=yes
19143 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19144 case $cc_basename in
19145 ifort
*) _lt_dar_can_shared
=yes ;;
19146 *) _lt_dar_can_shared
=$GCC ;;
19148 if test "$_lt_dar_can_shared" = "yes"; then
19149 output_verbose_link_cmd
=func_echo_all
19150 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}"
19151 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19152 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}"
19153 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}"
19154 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19155 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}"
19156 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}"
19166 case $cc_basename in
19168 # FIXME: insert proper C++ library support
19172 # Green Hills C++ Compiler
19173 # FIXME: insert proper C++ library support
19177 # FIXME: insert proper C++ library support
19184 # C++ shared libraries reported to be fairly broken before
19190 archive_cmds_need_lc_CXX
=no
19193 freebsd
* | dragonfly
*)
19194 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19203 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19204 link_all_deplibs_CXX
=yes
19208 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19209 hardcode_libdir_separator_CXX
=:
19210 export_dynamic_flag_spec_CXX
='${wl}-E'
19211 hardcode_direct_CXX
=yes
19212 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19213 # but as the default
19214 # location of the library.
19216 case $cc_basename in
19218 # FIXME: insert proper C++ library support
19222 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'
19223 # Commands to make compiler produce verbose output that lists
19224 # what "hidden" libraries, object files and flags are used when
19225 # linking a shared library.
19227 # There doesn't appear to be a way to prevent this compiler from
19228 # explicitly linking system object files so we need to strip them
19229 # from the output so that they don't get included in the library
19231 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"'
19234 if test "$GXX" = yes; then
19235 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'
19237 # FIXME: insert proper C++ library support
19245 if test $with_gnu_ld = no
; then
19246 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19247 hardcode_libdir_separator_CXX
=:
19253 export_dynamic_flag_spec_CXX
='${wl}-E'
19259 hardcode_direct_CXX
=no
19260 hardcode_shlibpath_var_CXX
=no
19263 hardcode_direct_CXX
=yes
19264 hardcode_direct_absolute_CXX
=yes
19265 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19266 # but as the default
19267 # location of the library.
19271 case $cc_basename in
19273 # FIXME: insert proper C++ library support
19279 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19282 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19285 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19288 # Commands to make compiler produce verbose output that lists
19289 # what "hidden" libraries, object files and flags are used when
19290 # linking a shared library.
19292 # There doesn't appear to be a way to prevent this compiler from
19293 # explicitly linking system object files so we need to strip them
19294 # from the output so that they don't get included in the library
19296 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"'
19299 if test "$GXX" = yes; then
19300 if test $with_gnu_ld = no
; then
19303 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19306 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19309 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'
19314 # FIXME: insert proper C++ library support
19322 hardcode_direct_CXX
=no
19323 hardcode_shlibpath_var_CXX
=no
19324 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19325 export_dynamic_flag_spec_CXX
='${wl}-E'
19326 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19327 # Instead, shared libraries are loaded at an image base (0x10000000 by
19328 # default) and relocated if they conflict, which is a slow very memory
19329 # consuming and fragmenting process. To avoid this, we pick a random,
19330 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19331 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19332 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'
19333 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'
19336 case $cc_basename in
19339 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'
19341 # Archives containing C++ object files must be created using
19342 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19343 # necessary to make sure instantiated templates are included
19345 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19348 if test "$GXX" = yes; then
19349 if test "$with_gnu_ld" = no
; then
19350 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'
19352 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'
19355 link_all_deplibs_CXX
=yes
19358 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19359 hardcode_libdir_separator_CXX
=:
19360 inherit_rpath_CXX
=yes
19363 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19364 case $cc_basename in
19366 # Kuck and Associates, Inc. (KAI) C++ Compiler
19368 # KCC will only create a shared library if the output file
19369 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19370 # to its proper name (with version) after linking.
19371 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'
19372 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'
19373 # Commands to make compiler produce verbose output that lists
19374 # what "hidden" libraries, object files and flags are used when
19375 # linking a shared library.
19377 # There doesn't appear to be a way to prevent this compiler from
19378 # explicitly linking system object files so we need to strip them
19379 # from the output so that they don't get included in the library
19381 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"'
19383 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19384 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19386 # Archives containing C++ object files must be created using
19387 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19388 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19393 # version 8.0 and above of icpc choke on multiply defined symbols
19394 # if we add $predep_objects and $postdep_objects, however 7.1 and
19395 # earlier do not add the objects themselves.
19396 case `$CC -V 2>&1` in
19398 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19399 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'
19401 *) # Version 8.0 or newer
19404 ia64
*) tmp_idyn
=' -i_dynamic';;
19406 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19407 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'
19410 archive_cmds_need_lc_CXX
=no
19411 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19412 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19413 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19416 # Portland Group C++ compiler
19418 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19419 prelink_cmds_CXX
='tpldir=Template.dir~
19421 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19422 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19423 old_archive_cmds_CXX
='tpldir=Template.dir~
19425 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19426 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19428 archive_cmds_CXX
='tpldir=Template.dir~
19430 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19431 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19432 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19434 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19435 $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'
19437 *) # Version 6 and above use weak symbols
19438 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19439 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'
19443 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19444 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19445 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'
19449 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19450 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'
19452 runpath_var
=LD_RUN_PATH
19453 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19454 hardcode_libdir_separator_CXX
=:
19456 # Commands to make compiler produce verbose output that lists
19457 # what "hidden" libraries, object files and flags are used when
19458 # linking a shared library.
19460 # There doesn't appear to be a way to prevent this compiler from
19461 # explicitly linking system object files so we need to strip them
19462 # from the output so that they don't get included in the library
19464 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'
19466 xl
* | mpixl
* | bgxl
*)
19467 # IBM XL 8.0 on PPC, with GNU ld
19468 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19469 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19470 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19471 if test "x$supports_anon_versioning" = xyes
; then
19472 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19473 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19474 echo "local: *; };" >> $output_objdir/$libname.ver~
19475 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19479 case `$CC -V 2>&1 | sed 5q` in
19482 no_undefined_flag_CXX
=' -zdefs'
19483 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19484 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'
19485 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19486 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'
19487 compiler_needs_object_CXX
=yes
19489 # Not sure whether something based on
19490 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19492 output_verbose_link_cmd
='func_echo_all'
19494 # Archives containing C++ object files must be created using
19495 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19496 # necessary to make sure instantiated templates are included
19498 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19506 # FIXME: insert proper C++ library support
19511 # FIXME: insert proper C++ library support
19516 case $cc_basename in
19518 # FIXME: insert proper C++ library support
19522 # FIXME: insert proper C++ library support
19529 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19530 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19532 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19533 hardcode_direct_CXX
=yes
19534 hardcode_shlibpath_var_CXX
=no
19536 # Workaround some broken pre-1.5 toolchains
19537 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19545 # C++ shared libraries are fairly broken
19550 if test -f /usr
/libexec
/ld.so
; then
19551 hardcode_direct_CXX
=yes
19552 hardcode_shlibpath_var_CXX
=no
19553 hardcode_direct_absolute_CXX
=yes
19554 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19555 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19556 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19557 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19558 export_dynamic_flag_spec_CXX
='${wl}-E'
19559 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19561 output_verbose_link_cmd
=func_echo_all
19567 osf3
* | osf4
* | osf5
*)
19568 case $cc_basename in
19570 # Kuck and Associates, Inc. (KAI) C++ Compiler
19572 # KCC will only create a shared library if the output file
19573 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19574 # to its proper name (with version) after linking.
19575 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'
19577 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19578 hardcode_libdir_separator_CXX
=:
19580 # Archives containing C++ object files must be created using
19581 # the KAI C++ compiler.
19583 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19584 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19588 # Rational C++ 2.4.1
19589 # FIXME: insert proper C++ library support
19595 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19596 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'
19597 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19600 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19601 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'
19602 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19603 echo "-hidden">> $lib.exp~
19604 $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~
19606 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19610 hardcode_libdir_separator_CXX
=:
19612 # Commands to make compiler produce verbose output that lists
19613 # what "hidden" libraries, object files and flags are used when
19614 # linking a shared library.
19616 # There doesn't appear to be a way to prevent this compiler from
19617 # explicitly linking system object files so we need to strip them
19618 # from the output so that they don't get included in the library
19620 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"'
19623 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19624 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19627 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'
19630 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'
19634 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19635 hardcode_libdir_separator_CXX
=:
19637 # Commands to make compiler produce verbose output that lists
19638 # what "hidden" libraries, object files and flags are used when
19639 # linking a shared library.
19640 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19643 # FIXME: insert proper C++ library support
19651 # FIXME: insert proper C++ library support
19656 case $cc_basename in
19659 # FIXME: insert proper C++ library support
19664 # FIXME: insert proper C++ library support
19668 # FIXME: insert proper C++ library support
19675 case $cc_basename in
19677 # Sun C++ 4.2, 5.x and Centerline C++
19678 archive_cmds_need_lc_CXX
=yes
19679 no_undefined_flag_CXX
=' -zdefs'
19680 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
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${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19684 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19685 hardcode_shlibpath_var_CXX
=no
19687 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19689 # The compiler driver will combine and reorder linker options,
19690 # but understands `-z linker_flag'.
19691 # Supported since Solaris 2.6 (maybe 2.5.1?)
19692 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19695 link_all_deplibs_CXX
=yes
19697 output_verbose_link_cmd
='func_echo_all'
19699 # Archives containing C++ object files must be created using
19700 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19701 # necessary to make sure instantiated templates are included
19703 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19706 # Green Hills C++ Compiler
19707 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19709 # The C++ compiler must be used to create the archive.
19710 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19713 # GNU C++ compiler with Solaris linker
19714 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19715 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19716 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19717 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19718 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19719 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19721 # Commands to make compiler produce verbose output that lists
19722 # what "hidden" libraries, object files and flags are used when
19723 # linking a shared library.
19724 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19726 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19728 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19729 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19730 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19732 # Commands to make compiler produce verbose output that lists
19733 # what "hidden" libraries, object files and flags are used when
19734 # linking a shared library.
19735 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19738 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19740 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19742 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19750 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19751 no_undefined_flag_CXX
='${wl}-z,text'
19752 archive_cmds_need_lc_CXX
=no
19753 hardcode_shlibpath_var_CXX
=no
19754 runpath_var
='LD_RUN_PATH'
19756 case $cc_basename in
19758 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19759 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19762 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19763 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19768 sysv5
* | sco3.2v5
* | sco5v6
*)
19769 # Note: We can NOT use -z defs as we might desire, because we do not
19770 # link with -lc, and that would cause any symbols used from libc to
19771 # always be unresolved, which means just about no library would
19772 # ever link correctly. If we're not using GNU ld we use -z text
19773 # though, which does catch some bad symbols but isn't as heavy-handed
19775 no_undefined_flag_CXX
='${wl}-z,text'
19776 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19777 archive_cmds_need_lc_CXX
=no
19778 hardcode_shlibpath_var_CXX
=no
19779 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19780 hardcode_libdir_separator_CXX
=':'
19781 link_all_deplibs_CXX
=yes
19782 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19783 runpath_var
='LD_RUN_PATH'
19785 case $cc_basename in
19787 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19788 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19789 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19790 '"$old_archive_cmds_CXX"
19791 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19792 '"$reload_cmds_CXX"
19795 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19796 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19802 case $cc_basename in
19804 # NonStop-UX NCC 3.20
19805 # FIXME: insert proper C++ library support
19809 # FIXME: insert proper C++ library support
19816 # FIXME: insert proper C++ library support
19821 # FIXME: insert proper C++ library support
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19827 $as_echo "$ld_shlibs_CXX" >&6; }
19828 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19834 ## There is no encapsulation within the following macros, do not change
19835 ## the running order or otherwise move them around unless you know exactly
19836 ## what you are doing...
19837 # Dependencies to place before and after the object being linked:
19838 predep_objects_CXX
=
19839 postdep_objects_CXX
=
19842 compiler_lib_search_path_CXX
=
19844 cat > conftest.
$ac_ext <<_LT_EOF
19848 Foo (void) { a = 0; }
19854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19855 (eval $ac_compile) 2>&5
19857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19858 test $ac_status = 0; }; then
19859 # Parse the compiler output and extract the necessary
19860 # objects, libraries and library flags.
19862 # Sentinel used to keep track of whether or not we are before
19863 # the conftest object file.
19864 pre_test_object_deps_done
=no
19866 for p
in `eval "$output_verbose_link_cmd"`; do
19870 # Some compilers place space between "-{L,R}" and the path.
19871 # Remove the space.
19872 if test $p = "-L" ||
19873 test $p = "-R"; then
19880 if test "$pre_test_object_deps_done" = no
; then
19883 # Internal compiler library paths should come after those
19884 # provided the user. The postdeps already come after the
19885 # user supplied libs so there is no need to process them.
19886 if test -z "$compiler_lib_search_path_CXX"; then
19887 compiler_lib_search_path_CXX
="${prev}${p}"
19889 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19892 # The "-l" case would never come before the object being
19893 # linked, so don't bother handling this case.
19896 if test -z "$postdeps_CXX"; then
19897 postdeps_CXX
="${prev}${p}"
19899 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19905 # This assumes that the test object file only shows up
19906 # once in the compiler output.
19907 if test "$p" = "conftest.$objext"; then
19908 pre_test_object_deps_done
=yes
19912 if test "$pre_test_object_deps_done" = no
; then
19913 if test -z "$predep_objects_CXX"; then
19914 predep_objects_CXX
="$p"
19916 predep_objects_CXX
="$predep_objects_CXX $p"
19919 if test -z "$postdep_objects_CXX"; then
19920 postdep_objects_CXX
="$p"
19922 postdep_objects_CXX
="$postdep_objects_CXX $p"
19927 *) ;; # Ignore the rest.
19935 echo "libtool.m4: error: problem compiling CXX test program"
19938 $RM -f confest.
$objext
19940 # PORTME: override above test on systems where it is broken
19943 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19944 # hack all around it, let's just trust "g++" to DTRT.
19945 predep_objects_CXX
=
19946 postdep_objects_CXX
=
19951 case `$CC -V 2>&1 | sed 5q` in
19955 # The more standards-conforming stlport4 library is
19956 # incompatible with the Cstd library. Avoid specifying
19957 # it if it's in CXXFLAGS. Ignore libCrun as
19958 # -library=stlport4 depends on it.
19959 case " $CXX $CXXFLAGS " in
19960 *" -library=stlport4 "*)
19961 solaris_use_stlport4
=yes
19965 if test "$solaris_use_stlport4" != yes; then
19966 postdeps_CXX
='-library=Cstd -library=Crun'
19973 case $cc_basename in
19975 # The more standards-conforming stlport4 library is
19976 # incompatible with the Cstd library. Avoid specifying
19977 # it if it's in CXXFLAGS. Ignore libCrun as
19978 # -library=stlport4 depends on it.
19979 case " $CXX $CXXFLAGS " in
19980 *" -library=stlport4 "*)
19981 solaris_use_stlport4
=yes
19985 # Adding this requires a known-good setup of shared libraries for
19986 # Sun compiler versions before 5.6, else PIC objects from an old
19987 # archive will be linked into the output, leading to subtle bugs.
19988 if test "$solaris_use_stlport4" != yes; then
19989 postdeps_CXX
='-library=Cstd -library=Crun'
19997 case " $postdeps_CXX " in
19998 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20000 compiler_lib_search_dirs_CXX
=
20001 if test -n "${compiler_lib_search_path_CXX}"; then
20002 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20035 lt_prog_compiler_wl_CXX
=
20036 lt_prog_compiler_pic_CXX
=
20037 lt_prog_compiler_static_CXX
=
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20040 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20042 # C++ specific cases for pic, static, wl, etc.
20043 if test "$GXX" = yes; then
20044 lt_prog_compiler_wl_CXX
='-Wl,'
20045 lt_prog_compiler_static_CXX
='-static'
20049 # All AIX code is PIC.
20050 if test "$host_cpu" = ia64
; then
20051 # AIX 5 now supports IA64 processor
20052 lt_prog_compiler_static_CXX
='-Bstatic'
20054 lt_prog_compiler_pic_CXX
='-fPIC'
20060 # see comment about AmigaOS4 .so support
20061 lt_prog_compiler_pic_CXX
='-fPIC'
20064 # FIXME: we need at least 68020 code to build shared libraries, but
20065 # adding the `-m68020' flag to GCC prevents building anything better,
20067 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20072 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20073 # PIC is the default for these OSes.
20075 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20076 # This hack is so that the source file can tell whether it is being
20077 # built for inclusion in a dll (and should export symbols for example).
20078 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20079 # (--disable-auto-import) libraries
20080 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20082 darwin
* | rhapsody
*)
20083 # PIC is the default on this platform
20084 # Common symbols not allowed in MH_DYLIB files
20085 lt_prog_compiler_pic_CXX
='-fno-common'
20088 # DJGPP does not support shared libraries at all
20089 lt_prog_compiler_pic_CXX
=
20092 # PIC is the default for Haiku.
20093 # The "-static" flag exists, but is broken.
20094 lt_prog_compiler_static_CXX
=
20097 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20098 # Instead, we relocate shared libraries at runtime.
20101 if test -d /usr
/nec
; then
20102 lt_prog_compiler_pic_CXX
=-Kconform_pic
20106 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20107 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20108 # sets the default TLS model and affects inlining.
20113 lt_prog_compiler_pic_CXX
='-fPIC'
20118 # QNX uses GNU C++, but need to define -shared option too, otherwise
20119 # it will coredump.
20120 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20123 lt_prog_compiler_pic_CXX
='-fPIC'
20129 # All AIX code is PIC.
20130 if test "$host_cpu" = ia64
; then
20131 # AIX 5 now supports IA64 processor
20132 lt_prog_compiler_static_CXX
='-Bstatic'
20134 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20138 case $cc_basename in
20140 # Green Hills C++ Compiler
20141 # _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"
20146 case $cc_basename in
20148 lt_prog_compiler_pic_CXX
='-KPIC'
20151 # Green Hills C++ Compiler
20152 lt_prog_compiler_pic_CXX
='-pic'
20158 freebsd
* | dragonfly
*)
20159 # FreeBSD uses GNU C++
20161 hpux9
* | hpux10
* | hpux11
*)
20162 case $cc_basename in
20164 lt_prog_compiler_wl_CXX
='-Wl,'
20165 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20166 if test "$host_cpu" != ia64
; then
20167 lt_prog_compiler_pic_CXX
='+Z'
20171 lt_prog_compiler_wl_CXX
='-Wl,'
20172 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20178 lt_prog_compiler_pic_CXX
='+Z'
20187 # This is c89, which is MS Visual C++ (no shared libs)
20188 # Anyone wants to do a port?
20190 irix5
* | irix6
* | nonstopux
*)
20191 case $cc_basename in
20193 lt_prog_compiler_wl_CXX
='-Wl,'
20194 lt_prog_compiler_static_CXX
='-non_shared'
20195 # CC pic flag -KPIC is the default.
20201 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20202 case $cc_basename in
20205 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20206 lt_prog_compiler_pic_CXX
='-fPIC'
20209 # old Intel C++ for x86_64 which still supported -KPIC.
20210 lt_prog_compiler_wl_CXX
='-Wl,'
20211 lt_prog_compiler_pic_CXX
='-KPIC'
20212 lt_prog_compiler_static_CXX
='-static'
20215 # Intel C++, used to be incompatible with GCC.
20216 # ICC 10 doesn't accept -KPIC any more.
20217 lt_prog_compiler_wl_CXX
='-Wl,'
20218 lt_prog_compiler_pic_CXX
='-fPIC'
20219 lt_prog_compiler_static_CXX
='-static'
20222 # Portland Group C++ compiler
20223 lt_prog_compiler_wl_CXX
='-Wl,'
20224 lt_prog_compiler_pic_CXX
='-fpic'
20225 lt_prog_compiler_static_CXX
='-Bstatic'
20229 # Make sure the PIC flag is empty. It appears that all Alpha
20230 # Linux and Compaq Tru64 Unix objects are PIC.
20231 lt_prog_compiler_pic_CXX
=
20232 lt_prog_compiler_static_CXX
='-non_shared'
20234 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20235 # IBM XL 8.0, 9.0 on PPC and BlueGene
20236 lt_prog_compiler_wl_CXX
='-Wl,'
20237 lt_prog_compiler_pic_CXX
='-qpic'
20238 lt_prog_compiler_static_CXX
='-qstaticlink'
20241 case `$CC -V 2>&1 | sed 5q` in
20244 lt_prog_compiler_pic_CXX
='-KPIC'
20245 lt_prog_compiler_static_CXX
='-Bstatic'
20246 lt_prog_compiler_wl_CXX
='-Qoption ld '
20257 case $cc_basename in
20259 lt_prog_compiler_pic_CXX
='-W c,exportall'
20268 # QNX uses GNU C++, but need to define -shared option too, otherwise
20269 # it will coredump.
20270 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20272 osf3
* | osf4
* | osf5
*)
20273 case $cc_basename in
20275 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20278 # Rational C++ 2.4.1
20279 lt_prog_compiler_pic_CXX
='-pic'
20282 # Digital/Compaq C++
20283 lt_prog_compiler_wl_CXX
='-Wl,'
20284 # Make sure the PIC flag is empty. It appears that all Alpha
20285 # Linux and Compaq Tru64 Unix objects are PIC.
20286 lt_prog_compiler_pic_CXX
=
20287 lt_prog_compiler_static_CXX
='-non_shared'
20296 case $cc_basename in
20298 # Sun C++ 4.2, 5.x and Centerline C++
20299 lt_prog_compiler_pic_CXX
='-KPIC'
20300 lt_prog_compiler_static_CXX
='-Bstatic'
20301 lt_prog_compiler_wl_CXX
='-Qoption ld '
20304 # Green Hills C++ Compiler
20305 lt_prog_compiler_pic_CXX
='-PIC'
20312 case $cc_basename in
20315 lt_prog_compiler_pic_CXX
='-pic'
20316 lt_prog_compiler_static_CXX
='-Bstatic'
20320 lt_prog_compiler_pic_CXX
='-pic'
20326 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20327 case $cc_basename in
20329 lt_prog_compiler_wl_CXX
='-Wl,'
20330 lt_prog_compiler_pic_CXX
='-KPIC'
20331 lt_prog_compiler_static_CXX
='-Bstatic'
20336 case $cc_basename in
20338 # NonStop-UX NCC 3.20
20339 lt_prog_compiler_pic_CXX
='-KPIC'
20348 lt_prog_compiler_can_build_shared_CXX
=no
20354 # For platforms which do not support PIC, -DPIC is meaningless:
20356 lt_prog_compiler_pic_CXX
=
20359 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20363 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20368 # Check to make sure the PIC flag actually works.
20370 if test -n "$lt_prog_compiler_pic_CXX"; then
20371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20372 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20373 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20374 $as_echo_n "(cached) " >&6
20376 lt_cv_prog_compiler_pic_works_CXX
=no
20377 ac_outfile
=conftest.
$ac_objext
20378 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20379 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20380 # Insert the option either (1) after the last *FLAGS variable, or
20381 # (2) before a word containing "conftest.", or (3) at the end.
20382 # Note that $ac_compile itself does not contain backslashes and begins
20383 # with a dollar sign (not a hyphen), so the echo should work correctly.
20384 # The option is referenced via a variable to avoid confusing sed.
20385 lt_compile
=`echo "$ac_compile" | $SED \
20386 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20388 -e 's:$: $lt_compiler_flag:'`
20389 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20390 (eval "$lt_compile" 2>conftest.err
)
20392 cat conftest.err
>&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 if (exit $ac_status) && test -s "$ac_outfile"; then
20395 # The compiler can only warn and ignore the option if not recognized
20396 # So say no if there are warnings other than the usual output.
20397 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20398 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20399 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20400 lt_cv_prog_compiler_pic_works_CXX
=yes
20406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20407 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20409 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20410 case $lt_prog_compiler_pic_CXX in
20412 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20415 lt_prog_compiler_pic_CXX
=
20416 lt_prog_compiler_can_build_shared_CXX
=no
20424 # Check to make sure the static flag actually works.
20426 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20428 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20429 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20430 $as_echo_n "(cached) " >&6
20432 lt_cv_prog_compiler_static_works_CXX
=no
20433 save_LDFLAGS
="$LDFLAGS"
20434 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20435 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20436 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20437 # The linker can only warn and ignore the option if not recognized
20438 # So say no if there are warnings
20439 if test -s conftest.err
; then
20440 # Append any errors to the config.log.
20441 cat conftest.err
1>&5
20442 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20443 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20444 if diff conftest.exp conftest.er2
>/dev
/null
; then
20445 lt_cv_prog_compiler_static_works_CXX
=yes
20448 lt_cv_prog_compiler_static_works_CXX
=yes
20452 LDFLAGS
="$save_LDFLAGS"
20455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20456 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20458 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20461 lt_prog_compiler_static_CXX
=
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20468 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20469 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20470 $as_echo_n "(cached) " >&6
20472 lt_cv_prog_compiler_c_o_CXX
=no
20473 $RM -r conftest
2>/dev
/null
20477 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20479 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20480 # Insert the option either (1) after the last *FLAGS variable, or
20481 # (2) before a word containing "conftest.", or (3) at the end.
20482 # Note that $ac_compile itself does not contain backslashes and begins
20483 # with a dollar sign (not a hyphen), so the echo should work correctly.
20484 lt_compile
=`echo "$ac_compile" | $SED \
20485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20487 -e 's:$: $lt_compiler_flag:'`
20488 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20489 (eval "$lt_compile" 2>out
/conftest.err
)
20491 cat out
/conftest.err
>&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20495 # The compiler can only warn and ignore the option if not recognized
20496 # So say no if there are warnings
20497 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20498 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20499 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20500 lt_cv_prog_compiler_c_o_CXX
=yes
20505 # SGI C++ compiler will create directory out/ii_files/ for
20506 # template instantiation
20507 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20508 $RM out
/* && rmdir out
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20515 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20520 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20521 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20522 $as_echo_n "(cached) " >&6
20524 lt_cv_prog_compiler_c_o_CXX
=no
20525 $RM -r conftest
2>/dev
/null
20529 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20531 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20532 # Insert the option either (1) after the last *FLAGS variable, or
20533 # (2) before a word containing "conftest.", or (3) at the end.
20534 # Note that $ac_compile itself does not contain backslashes and begins
20535 # with a dollar sign (not a hyphen), so the echo should work correctly.
20536 lt_compile
=`echo "$ac_compile" | $SED \
20537 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20539 -e 's:$: $lt_compiler_flag:'`
20540 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20541 (eval "$lt_compile" 2>out
/conftest.err
)
20543 cat out
/conftest.err
>&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20547 # The compiler can only warn and ignore the option if not recognized
20548 # So say no if there are warnings
20549 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20550 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20551 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20552 lt_cv_prog_compiler_c_o_CXX
=yes
20557 # SGI C++ compiler will create directory out/ii_files/ for
20558 # template instantiation
20559 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20560 $RM out
/* && rmdir out
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20567 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20572 hard_links
="nottested"
20573 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20574 # do not overwrite the value of need_locks provided by the user
20575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20576 $as_echo_n "checking if we can lock with hard links... " >&6; }
20579 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20581 ln conftest.a conftest.b
2>&5 || hard_links
=no
20582 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20584 $as_echo "$hard_links" >&6; }
20585 if test "$hard_links" = no
; then
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20587 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20597 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20599 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20602 # If we're using GNU nm, then we don't want the "-C" option.
20603 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20604 # Also, AIX nm treats weak defined symbols like other global defined
20605 # symbols, whereas GNU nm marks them as "W".
20606 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20607 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'
20609 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'
20613 export_symbols_cmds_CXX
="$ltdll_cmds"
20615 cygwin
* | mingw
* | cegcc
*)
20616 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'
20619 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20622 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20625 $as_echo "$ld_shlibs_CXX" >&6; }
20626 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20628 with_gnu_ld_CXX
=$with_gnu_ld
20636 # Do we need to explicitly link libc?
20638 case "x$archive_cmds_need_lc_CXX" in
20640 # Assume -lc should be added
20641 archive_cmds_need_lc_CXX
=yes
20643 if test "$enable_shared" = yes && test "$GCC" = yes; then
20644 case $archive_cmds_CXX in
20646 # FIXME: we may have to deal with multi-command sequences.
20649 # Test whether the compiler implicitly links with -lc since on some
20650 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20651 # to ld, don't add -lc before -lgcc.
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20653 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20654 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20655 $as_echo_n "(cached) " >&6
20658 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20661 (eval $ac_compile) 2>&5
20663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20664 test $ac_status = 0; } 2>conftest.err
; then
20667 libobjs
=conftest.
$ac_objext
20669 wl
=$lt_prog_compiler_wl_CXX
20670 pic_flag
=$lt_prog_compiler_pic_CXX
20676 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20677 allow_undefined_flag_CXX
=
20678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20679 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20682 test $ac_status = 0; }
20684 lt_cv_archive_cmds_need_lc_CXX
=no
20686 lt_cv_archive_cmds_need_lc_CXX
=yes
20688 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20690 cat conftest.err
1>&5
20695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20696 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20697 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20768 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20770 library_names_spec
=
20771 libname_spec
='lib$name'
20775 postuninstall_cmds
=
20779 shlibpath_overrides_runpath
=unknown
20781 dynamic_linker
="$host_os ld.so"
20782 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20783 need_lib_prefix
=unknown
20784 hardcode_into_libs
=no
20786 # when you set need_version to no, make sure it does not cause -set_version
20787 # flags to be left without arguments
20788 need_version
=unknown
20793 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20794 shlibpath_var
=LIBPATH
20796 # AIX 3 has no versioning support, so we append a major version to the name.
20797 soname_spec
='${libname}${release}${shared_ext}$major'
20804 hardcode_into_libs
=yes
20805 if test "$host_cpu" = ia64
; then
20806 # AIX 5 supports IA64
20807 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20808 shlibpath_var
=LD_LIBRARY_PATH
20810 # With GCC up to 2.95.x, collect2 would create an import file
20811 # for dependence libraries. The import file would start with
20812 # the line `#! .'. This would cause the generated library to
20813 # depend on `.', always an invalid library. This was fixed in
20814 # development snapshots of GCC prior to 3.0.
20816 aix4 | aix4.
[01] | aix4.
[01].
*)
20817 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20819 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20822 can_build_shared
=no
20826 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20827 # soname into executable. Probably we can add versioning support to
20828 # collect2, so additional links can be useful in future.
20829 if test "$aix_use_runtimelinking" = yes; then
20830 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20831 # instead of lib<name>.a to let people know that these are not
20832 # typical AIX shared libraries.
20833 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20835 # We preserve .a as extension for shared libraries through AIX4.2
20836 # and later when we are not doing run time linking.
20837 library_names_spec
='${libname}${release}.a $libname.a'
20838 soname_spec
='${libname}${release}${shared_ext}$major'
20840 shlibpath_var
=LIBPATH
20847 # Since July 2007 AmigaOS4 officially supports .so libraries.
20848 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20849 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20852 library_names_spec
='$libname.ixlibrary $libname.a'
20853 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20854 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'
20860 library_names_spec
='${libname}${shared_ext}'
20861 dynamic_linker
="$host_os ld.so"
20862 shlibpath_var
=LIBRARY_PATH
20868 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20869 soname_spec
='${libname}${release}${shared_ext}$major'
20870 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20871 shlibpath_var
=LD_LIBRARY_PATH
20872 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20873 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20874 # the default ld.so.conf also contains /usr/contrib/lib and
20875 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20876 # libtool to hard-code these into programs
20879 cygwin
* | mingw
* | pw32
* | cegcc
*)
20880 version_type
=windows
20885 case $GCC,$host_os in
20886 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20887 library_names_spec
='$libname.dll.a'
20888 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20889 postinstall_cmds
='base_file=`basename \${file}`~
20890 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20891 dldir=$destdir/`dirname \$dlpath`~
20892 test -d \$dldir || mkdir -p \$dldir~
20893 $install_prog $dir/$dlname \$dldir/$dlname~
20894 chmod a+x \$dldir/$dlname~
20895 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20896 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20898 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20899 dlpath=$dir/\$dldll~
20901 shlibpath_overrides_runpath
=yes
20905 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20906 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20910 # MinGW DLLs use traditional 'lib' prefix
20911 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20914 # pw32 DLLs use 'pw' prefix rather than 'lib'
20915 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20921 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20924 dynamic_linker
='Win32 ld.exe'
20925 # FIXME: first we should search . and the directory the executable is in
20929 darwin
* | rhapsody
*)
20930 dynamic_linker
="$host_os dyld"
20931 version_type
=darwin
20934 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20935 soname_spec
='${libname}${release}${major}$shared_ext'
20936 shlibpath_overrides_runpath
=yes
20937 shlibpath_var
=DYLD_LIBRARY_PATH
20938 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20940 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20947 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20948 soname_spec
='${libname}${release}${shared_ext}$major'
20949 shlibpath_var
=LD_LIBRARY_PATH
20952 freebsd
* | dragonfly
*)
20953 # DragonFly does not have aout. When/if they implement a new
20954 # versioning mechanism, adjust this.
20955 if test -x /usr
/bin
/objformat
; then
20956 objformat
=`/usr/bin/objformat`
20959 freebsd
[23].
*) objformat
=aout
;;
20960 *) objformat
=elf
;;
20963 version_type
=freebsd-
$objformat
20964 case $version_type in
20966 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20971 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20975 shlibpath_var
=LD_LIBRARY_PATH
20978 shlibpath_overrides_runpath
=yes
20980 freebsd3.
[01]* | freebsdelf3.
[01]*)
20981 shlibpath_overrides_runpath
=yes
20982 hardcode_into_libs
=yes
20984 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20985 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20986 shlibpath_overrides_runpath
=no
20987 hardcode_into_libs
=yes
20989 *) # from 4.6 on, and DragonFly
20990 shlibpath_overrides_runpath
=yes
20991 hardcode_into_libs
=yes
21000 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21001 soname_spec
='${libname}${release}${shared_ext}$major'
21002 shlibpath_var
=LD_LIBRARY_PATH
21003 hardcode_into_libs
=yes
21010 dynamic_linker
="$host_os runtime_loader"
21011 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21012 soname_spec
='${libname}${release}${shared_ext}$major'
21013 shlibpath_var
=LIBRARY_PATH
21014 shlibpath_overrides_runpath
=yes
21015 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21016 hardcode_into_libs
=yes
21019 hpux9
* | hpux10
* | hpux11
*)
21020 # Give a soname corresponding to the major version so that dld.sl refuses to
21021 # link against other versions.
21028 hardcode_into_libs
=yes
21029 dynamic_linker
="$host_os dld.so"
21030 shlibpath_var
=LD_LIBRARY_PATH
21031 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21032 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21033 soname_spec
='${libname}${release}${shared_ext}$major'
21034 if test "X$HPUX_IA64_MODE" = X32
; then
21035 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21037 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21039 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21043 hardcode_into_libs
=yes
21044 dynamic_linker
="$host_os dld.sl"
21045 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21046 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21047 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21048 soname_spec
='${libname}${release}${shared_ext}$major'
21049 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21050 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21054 dynamic_linker
="$host_os dld.sl"
21055 shlibpath_var
=SHLIB_PATH
21056 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21057 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21058 soname_spec
='${libname}${release}${shared_ext}$major'
21061 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21062 postinstall_cmds
='chmod 555 $lib'
21063 # or fails outright, so override atomically:
21064 install_override_mode
=555
21071 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21072 soname_spec
='${libname}${release}${shared_ext}$major'
21073 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21074 shlibpath_var
=LD_LIBRARY_PATH
21075 shlibpath_overrides_runpath
=no
21076 hardcode_into_libs
=yes
21079 irix5
* | irix6
* | nonstopux
*)
21081 nonstopux
*) version_type
=nonstopux
;;
21083 if test "$lt_cv_prog_gnu_ld" = yes; then
21091 soname_spec
='${libname}${release}${shared_ext}$major'
21092 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21094 irix5
* | nonstopux
*)
21095 libsuff
= shlibsuff
=
21098 case $LD in # libtool.m4 will add one of these switches to LD
21099 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21100 libsuff
= shlibsuff
= libmagic
=32-bit;;
21101 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21102 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21103 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21104 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21105 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21109 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21110 shlibpath_overrides_runpath
=no
21111 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21112 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21113 hardcode_into_libs
=yes
21116 # No shared lib support for Linux oldld, aout, or coff.
21117 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21121 # This must be Linux ELF.
21122 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21126 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21127 soname_spec
='${libname}${release}${shared_ext}$major'
21128 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21129 shlibpath_var
=LD_LIBRARY_PATH
21130 shlibpath_overrides_runpath
=no
21132 # Some binutils ld are patched to set DT_RUNPATH
21133 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21134 $as_echo_n "(cached) " >&6
21136 lt_cv_shlibpath_overrides_runpath
=no
21137 save_LDFLAGS
=$LDFLAGS
21138 save_libdir
=$libdir
21139 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21140 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21142 /* end confdefs.h. */
21152 if ac_fn_cxx_try_link
"$LINENO"; then :
21153 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21154 lt_cv_shlibpath_overrides_runpath
=yes
21157 rm -f core conftest.err conftest.
$ac_objext \
21158 conftest
$ac_exeext conftest.
$ac_ext
21159 LDFLAGS
=$save_LDFLAGS
21160 libdir
=$save_libdir
21164 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21166 # This implies no fast_install, which is unacceptable.
21167 # Some rework will be needed to allow for fast_install
21168 # before this can be enabled.
21169 hardcode_into_libs
=yes
21171 # Append ld.so.conf contents to the search path
21172 if test -f /etc
/ld.so.conf
; then
21173 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' ' '`
21174 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21177 # We used to test for /lib/ld.so.1 and disable shared libraries on
21178 # powerpc, because MkLinux only supported shared libraries with the
21179 # GNU dynamic linker. Since this was broken with cross compilers,
21180 # most powerpc-linux boxes support dynamic linking these days and
21181 # people can always --disable-shared, the test was removed, and we
21182 # assume the GNU/Linux dynamic linker is in use.
21183 dynamic_linker
='GNU/Linux ld.so'
21190 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21191 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21192 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21193 dynamic_linker
='NetBSD (a.out) ld.so'
21195 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21196 soname_spec
='${libname}${release}${shared_ext}$major'
21197 dynamic_linker
='NetBSD ld.elf_so'
21199 shlibpath_var
=LD_LIBRARY_PATH
21200 shlibpath_overrides_runpath
=yes
21201 hardcode_into_libs
=yes
21206 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21207 shlibpath_var
=LD_LIBRARY_PATH
21208 shlibpath_overrides_runpath
=yes
21215 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21216 soname_spec
='${libname}${release}${shared_ext}$major'
21217 shlibpath_var
=LD_LIBRARY_PATH
21218 shlibpath_overrides_runpath
=no
21219 hardcode_into_libs
=yes
21220 dynamic_linker
='ldqnx.so'
21225 sys_lib_dlsearch_path_spec
="/usr/lib"
21227 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21229 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21230 *) need_version
=no
;;
21232 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21233 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21234 shlibpath_var
=LD_LIBRARY_PATH
21235 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21237 openbsd2.
[89] | openbsd2.
[89].
*)
21238 shlibpath_overrides_runpath
=no
21241 shlibpath_overrides_runpath
=yes
21245 shlibpath_overrides_runpath
=yes
21250 libname_spec
='$name'
21253 library_names_spec
='$libname${shared_ext} $libname.a'
21254 dynamic_linker
='OS/2 ld.exe'
21255 shlibpath_var
=LIBPATH
21258 osf3
* | osf4
* | osf5
*)
21262 soname_spec
='${libname}${release}${shared_ext}$major'
21263 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21264 shlibpath_var
=LD_LIBRARY_PATH
21265 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21266 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21277 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21278 soname_spec
='${libname}${release}${shared_ext}$major'
21279 shlibpath_var
=LD_LIBRARY_PATH
21280 shlibpath_overrides_runpath
=yes
21281 hardcode_into_libs
=yes
21282 # ldd complains unless libraries are executable
21283 postinstall_cmds
='chmod +x $lib'
21288 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21289 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21290 shlibpath_var
=LD_LIBRARY_PATH
21291 shlibpath_overrides_runpath
=yes
21292 if test "$with_gnu_ld" = yes; then
21300 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21301 soname_spec
='${libname}${release}${shared_ext}$major'
21302 shlibpath_var
=LD_LIBRARY_PATH
21303 case $host_vendor in
21305 shlibpath_overrides_runpath
=no
21307 runpath_var
=LD_RUN_PATH
21315 shlibpath_overrides_runpath
=no
21316 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21322 if test -d /usr
/nec
;then
21324 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21325 soname_spec
='$libname${shared_ext}.$major'
21326 shlibpath_var
=LD_LIBRARY_PATH
21330 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21331 version_type
=freebsd-elf
21334 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21335 soname_spec
='${libname}${release}${shared_ext}$major'
21336 shlibpath_var
=LD_LIBRARY_PATH
21337 shlibpath_overrides_runpath
=yes
21338 hardcode_into_libs
=yes
21339 if test "$with_gnu_ld" = yes; then
21340 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21342 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21345 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21349 sys_lib_dlsearch_path_spec
='/usr/lib'
21353 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21357 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21358 shlibpath_var
=LD_LIBRARY_PATH
21359 shlibpath_overrides_runpath
=no
21360 hardcode_into_libs
=yes
21365 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21366 soname_spec
='${libname}${release}${shared_ext}$major'
21367 shlibpath_var
=LD_LIBRARY_PATH
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21375 $as_echo "$dynamic_linker" >&6; }
21376 test "$dynamic_linker" = no
&& can_build_shared
=no
21378 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21379 if test "$GCC" = yes; then
21380 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21383 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21384 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21386 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21387 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21428 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21429 hardcode_action_CXX
=
21430 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21431 test -n "$runpath_var_CXX" ||
21432 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21434 # We can hardcode non-existent directories.
21435 if test "$hardcode_direct_CXX" != no
&&
21436 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21437 # have to relink, otherwise we might link with an installed library
21438 # when we should be linking with a yet-to-be-installed one
21439 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21440 test "$hardcode_minus_L_CXX" != no
; then
21441 # Linking always hardcodes the temporary library directory.
21442 hardcode_action_CXX
=relink
21444 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21445 hardcode_action_CXX
=immediate
21448 # We cannot hardcode anything, or else we can only hardcode existing
21450 hardcode_action_CXX
=unsupported
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21453 $as_echo "$hardcode_action_CXX" >&6; }
21455 if test "$hardcode_action_CXX" = relink ||
21456 test "$inherit_rpath_CXX" = yes; then
21457 # Fast installation is not supported
21458 enable_fast_install
=no
21459 elif test "$shlibpath_overrides_runpath" = yes ||
21460 test "$enable_shared" = no
; then
21461 # Fast installation is not necessary
21462 enable_fast_install
=needless
21471 fi # test -n "$compiler"
21477 with_gnu_ld
=$lt_save_with_gnu_ld
21478 lt_cv_path_LDCXX
=$lt_cv_path_LD
21479 lt_cv_path_LD
=$lt_save_path_LD
21480 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21481 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21482 fi # test "$_lt_caught_CXX_error" != yes
21485 ac_cpp
='$CPP $CPPFLAGS'
21486 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21487 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21488 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21505 # Only expand once:
21511 # Identify the assembler which will work hand-in-glove with the newly
21512 # built GCC, so that we can examine its features. This is the assembler
21513 # which will be driven by the driver program.
21515 # If build != host, and we aren't building gas in-tree, we identify a
21516 # build->target assembler and hope that it will have the same features
21517 # as the host->target assembler we'll be using.
21518 gcc_cv_gas_major_version
=
21519 gcc_cv_gas_minor_version
=
21520 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21522 if test "${gcc_cv_as+set}" = set; then :
21526 if test -x "$DEFAULT_ASSEMBLER"; then
21527 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21528 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21529 && test -f ..
/gas
/Makefile \
21530 && test x
$build = x
$host; then
21531 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21532 elif test -x as
$build_exeext; then
21533 # Build using assembler in the current directory.
21534 gcc_cv_as
=.
/as
$build_exeext
21535 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21536 gcc_cv_as
="$AS_FOR_TARGET"
21538 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21539 set dummy
$AS_FOR_TARGET; ac_word
=$2
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21541 $as_echo_n "checking for $ac_word... " >&6; }
21542 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21543 $as_echo_n "(cached) " >&6
21547 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21551 for as_dir
in $PATH
21554 test -z "$as_dir" && as_dir
=.
21555 for ac_exec_ext
in '' $ac_executable_extensions; do
21556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21557 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21568 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21569 if test -n "$gcc_cv_as"; then
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21571 $as_echo "$gcc_cv_as" >&6; }
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21574 $as_echo "no" >&6; }
21581 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21583 case "$ORIGINAL_AS_FOR_TARGET" in
21584 .
/as | .
/as
$build_exeext) ;;
21585 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21590 $as_echo_n "checking what assembler to use... " >&6; }
21591 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21592 # Single tree build which includes gas. We want to prefer it
21593 # over whatever linker top-level may have detected, since
21594 # we'll use what we're building after installation anyway.
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21596 $as_echo "newly built gas" >&6; }
21598 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21599 for f
in $gcc_cv_as_bfd_srcdir/configure \
21600 $gcc_cv_as_gas_srcdir/configure \
21601 $gcc_cv_as_gas_srcdir/configure.
in \
21602 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21603 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21604 if test x
$gcc_cv_gas_version != x
; then
21608 case $gcc_cv_gas_version in
21610 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21612 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21613 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21614 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21615 case $gcc_cv_gas_patch_version in
21616 "") gcc_cv_gas_patch_version
="0" ;;
21618 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21619 + $gcc_cv_gas_minor_version \) \* 1000 \
21620 + $gcc_cv_gas_patch_version`
21622 in_tree_gas_is_elf
=no
21623 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21624 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21625 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21627 in_tree_gas_is_elf
=yes
21630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21631 $as_echo "$gcc_cv_as" >&6; }
21636 # Check whether --enable-ld was given.
21637 if test "${enable_ld+set}" = set; then :
21638 enableval
=$enable_ld; case "${enableval}" in
21646 install_gold_as_default
=no
21647 # Check whether --enable-gold was given.
21648 if test "${enable_gold+set}" = set; then :
21649 enableval
=$enable_gold; case "${enableval}" in
21651 install_gold_as_default
=yes
21654 if test x
${default_ld} != x
; then
21655 install_gold_as_default
=yes
21661 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21667 # Identify the linker which will work hand-in-glove with the newly
21668 # built GCC, so that we can examine its features. This is the linker
21669 # which will be driven by the driver program.
21671 # If build != host, and we aren't building gas in-tree, we identify a
21672 # build->target linker and hope that it will have the same features
21673 # as the host->target linker we'll be using.
21674 gcc_cv_gld_major_version
=
21675 gcc_cv_gld_minor_version
=
21676 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21677 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21678 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21680 if test "${gcc_cv_ld+set}" = set; then :
21684 if test -x "$DEFAULT_LINKER"; then
21685 gcc_cv_ld
="$DEFAULT_LINKER"
21686 elif test $install_gold_as_default = yes \
21687 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21688 && test -f ..
/gold
/Makefile \
21689 && test x
$build = x
$host; then
21690 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
21691 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21692 && test -f ..
/ld
/Makefile \
21693 && test x
$build = x
$host; then
21694 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21695 elif test -x collect-ld
$build_exeext; then
21696 # Build using linker in the current directory.
21697 gcc_cv_ld
=.
/collect-ld
$build_exeext
21698 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21699 gcc_cv_ld
="$LD_FOR_TARGET"
21701 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21702 set dummy
$LD_FOR_TARGET; ac_word
=$2
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21704 $as_echo_n "checking for $ac_word... " >&6; }
21705 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21706 $as_echo_n "(cached) " >&6
21710 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21714 for as_dir
in $PATH
21717 test -z "$as_dir" && as_dir
=.
21718 for ac_exec_ext
in '' $ac_executable_extensions; do
21719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21720 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21731 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21732 if test -n "$gcc_cv_ld"; then
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21734 $as_echo "$gcc_cv_ld" >&6; }
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21737 $as_echo "no" >&6; }
21744 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21745 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21746 # if the PLUGIN_LD is set ld-new, just have it as ld
21747 # as that is the installed named.
21748 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21749 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21750 PLUGIN_LD_SUFFIX
=ld
21753 # Check whether --with-plugin-ld was given.
21754 if test "${with_plugin_ld+set}" = set; then :
21755 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21756 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21757 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21763 cat >>confdefs.h
<<_ACEOF
21764 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21768 # Check to see if we are using gold instead of ld
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21770 $as_echo_n "checking whether we are using gold... " >&6; }
21772 if test x
$gcc_cv_ld != x
; then
21773 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21774 |
grep "GNU gold" > /dev
/null
; then
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21779 $as_echo "$ld_is_gold" >&6; }
21781 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21783 case "$ORIGINAL_LD_FOR_TARGET" in
21784 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21785 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21790 $as_echo_n "checking what linker to use... " >&6; }
21791 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21792 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21793 # Single tree build which includes ld. We want to prefer it
21794 # over whatever linker top-level may have detected, since
21795 # we'll use what we're building after installation anyway.
21796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21797 $as_echo "newly built ld" >&6; }
21799 in_tree_ld_is_elf
=no
21800 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21801 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21802 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21803 in_tree_ld_is_elf
=yes
21804 elif test "$ld_is_gold" = yes; then
21805 in_tree_ld_is_elf
=yes
21807 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
21809 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21810 if test x
$gcc_cv_gld_version != x
; then
21814 case $gcc_cv_gld_version in
21816 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21818 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21819 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21820 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
21821 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21824 $as_echo "$gcc_cv_ld" >&6; }
21826 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21827 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
21828 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
21834 # Figure out what nm we will be using.
21835 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21836 if test "${gcc_cv_nm+set}" = set; then :
21840 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21841 && test -f ..
/binutils
/Makefile \
21842 && test x
$build = x
$host; then
21843 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21844 elif test -x nm
$build_exeext; then
21845 gcc_cv_nm
=.
/nm
$build_exeext
21846 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21847 gcc_cv_nm
="$NM_FOR_TARGET"
21849 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21850 set dummy
$NM_FOR_TARGET; ac_word
=$2
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21852 $as_echo_n "checking for $ac_word... " >&6; }
21853 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21854 $as_echo_n "(cached) " >&6
21858 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21862 for as_dir
in $PATH
21865 test -z "$as_dir" && as_dir
=.
21866 for ac_exec_ext
in '' $ac_executable_extensions; do
21867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21868 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21879 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21880 if test -n "$gcc_cv_nm"; then
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21882 $as_echo "$gcc_cv_nm" >&6; }
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21885 $as_echo "no" >&6; }
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21893 $as_echo_n "checking what nm to use... " >&6; }
21894 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21895 # Single tree build which includes binutils.
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21897 $as_echo "newly built nm" >&6; }
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21901 $as_echo "$gcc_cv_nm" >&6; }
21905 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21907 case "$ORIGINAL_NM_FOR_TARGET" in
21908 .
/nm | .
/nm
$build_exeext) ;;
21909 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21914 # Figure out what objdump we will be using.
21915 if test "${gcc_cv_objdump+set}" = set; then :
21919 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21920 && test -f ..
/binutils
/Makefile \
21921 && test x
$build = x
$host; then
21922 # Single tree build which includes binutils.
21923 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21924 elif test -x objdump
$build_exeext; then
21925 gcc_cv_objdump
=.
/objdump
$build_exeext
21926 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21927 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21929 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21930 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21932 $as_echo_n "checking for $ac_word... " >&6; }
21933 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21934 $as_echo_n "(cached) " >&6
21936 case $gcc_cv_objdump in
21938 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21942 for as_dir
in $PATH
21945 test -z "$as_dir" && as_dir
=.
21946 for ac_exec_ext
in '' $ac_executable_extensions; do
21947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21948 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21959 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21960 if test -n "$gcc_cv_objdump"; then
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21962 $as_echo "$gcc_cv_objdump" >&6; }
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21965 $as_echo "no" >&6; }
21972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21973 $as_echo_n "checking what objdump to use... " >&6; }
21974 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21975 # Single tree build which includes binutils.
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21977 $as_echo "newly built objdump" >&6; }
21978 elif test x
$gcc_cv_objdump = x
; then
21979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21980 $as_echo "not found" >&6; }
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21983 $as_echo "$gcc_cv_objdump" >&6; }
21986 # Figure out what readelf we will be using.
21987 if test "${gcc_cv_readelf+set}" = set; then :
21991 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21992 && test -f ..
/binutils
/Makefile \
21993 && test x
$build = x
$host; then
21994 # Single tree build which includes binutils.
21995 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21996 elif test -x readelf
$build_exeext; then
21997 gcc_cv_readelf
=.
/readelf
$build_exeext
21999 # Extract the first word of "readelf", so it can be a program name with args.
22000 set dummy readelf
; ac_word
=$2
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22002 $as_echo_n "checking for $ac_word... " >&6; }
22003 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22004 $as_echo_n "(cached) " >&6
22006 case $gcc_cv_readelf in
22008 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22012 for as_dir
in $PATH
22015 test -z "$as_dir" && as_dir
=.
22016 for ac_exec_ext
in '' $ac_executable_extensions; do
22017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22018 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22029 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22030 if test -n "$gcc_cv_readelf"; then
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22032 $as_echo "$gcc_cv_readelf" >&6; }
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22035 $as_echo "no" >&6; }
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22043 $as_echo_n "checking what readelf to use... " >&6; }
22044 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22045 # Single tree build which includes binutils.
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22047 $as_echo "newly built readelf" >&6; }
22048 elif test x
$gcc_cv_readelf = x
; then
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22050 $as_echo "not found" >&6; }
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22053 $as_echo "$gcc_cv_readelf" >&6; }
22056 # Figure out what assembler alignment features are present.
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22058 $as_echo_n "checking assembler flags... " >&6; }
22059 if test "${gcc_cv_as_flags+set}" = set; then :
22060 $as_echo_n "(cached) " >&6
22063 i
[34567]86-*-linux*)
22064 gcc_cv_as_flags
=--32
22066 x86_64-
*-linux-gnux32)
22067 gcc_cv_as_flags
=--x32
22070 gcc_cv_as_flags
=--64
22072 powerpc
*-*-darwin*)
22073 gcc_cv_as_flags
="-arch ppc"
22076 gcc_cv_as_flags
=" "
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22081 $as_echo "$gcc_cv_as_flags" >&6; }
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22084 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22085 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22086 $as_echo_n "(cached) " >&6
22088 gcc_cv_as_balign_and_p2align
=no
22089 if test $in_tree_gas = yes; then
22090 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22091 then gcc_cv_as_balign_and_p2align
=yes
22093 elif test x
$gcc_cv_as != x
; then
22094 $as_echo '.balign 4
22095 .p2align 2' > conftest.s
22096 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22098 (eval $ac_try) 2>&5
22100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22101 test $ac_status = 0; }; }
22103 gcc_cv_as_balign_and_p2align
=yes
22105 echo "configure: failed program was" >&5
22108 rm -f conftest.o conftest.s
22111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22112 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22113 if test $gcc_cv_as_balign_and_p2align = yes; then
22115 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22120 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22121 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22122 $as_echo_n "(cached) " >&6
22124 gcc_cv_as_max_skip_p2align
=no
22125 if test $in_tree_gas = yes; then
22126 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22127 then gcc_cv_as_max_skip_p2align
=yes
22129 elif test x
$gcc_cv_as != x
; then
22130 $as_echo '.p2align 4,,7' > conftest.s
22131 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22133 (eval $ac_try) 2>&5
22135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22136 test $ac_status = 0; }; }
22138 gcc_cv_as_max_skip_p2align
=yes
22140 echo "configure: failed program was" >&5
22143 rm -f conftest.o conftest.s
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22147 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22148 if test $gcc_cv_as_max_skip_p2align = yes; then
22150 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22155 $as_echo_n "checking assembler for .literal16... " >&6; }
22156 if test "${gcc_cv_as_literal16+set}" = set; then :
22157 $as_echo_n "(cached) " >&6
22159 gcc_cv_as_literal16
=no
22160 if test $in_tree_gas = yes; then
22161 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22162 then gcc_cv_as_literal16
=yes
22164 elif test x
$gcc_cv_as != x
; then
22165 $as_echo '.literal16' > conftest.s
22166 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22168 (eval $ac_try) 2>&5
22170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22171 test $ac_status = 0; }; }
22173 gcc_cv_as_literal16
=yes
22175 echo "configure: failed program was" >&5
22178 rm -f conftest.o conftest.s
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22182 $as_echo "$gcc_cv_as_literal16" >&6; }
22183 if test $gcc_cv_as_literal16 = yes; then
22185 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22190 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22191 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22192 $as_echo_n "(cached) " >&6
22194 gcc_cv_as_subsection_m1
=no
22195 if test $in_tree_gas = yes; then
22196 if test $in_tree_gas_is_elf = yes \
22197 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22198 then gcc_cv_as_subsection_m1
=yes
22200 elif test x
$gcc_cv_as != x
; then
22201 $as_echo 'conftest_label1: .word 0
22203 conftest_label2: .word 0
22204 .previous' > conftest.s
22205 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22207 (eval $ac_try) 2>&5
22209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22210 test $ac_status = 0; }; }
22212 if test x
$gcc_cv_nm != x
; then
22213 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22214 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22215 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22217 else gcc_cv_as_subsection_m1
=yes
22219 rm -f conftest.nm1 conftest.nm2
22222 echo "configure: failed program was" >&5
22225 rm -f conftest.o conftest.s
22228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22229 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22230 if test $gcc_cv_as_subsection_m1 = yes; then
22232 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22237 $as_echo_n "checking assembler for .weak... " >&6; }
22238 if test "${gcc_cv_as_weak+set}" = set; then :
22239 $as_echo_n "(cached) " >&6
22242 if test $in_tree_gas = yes; then
22243 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22244 then gcc_cv_as_weak
=yes
22246 elif test x
$gcc_cv_as != x
; then
22247 $as_echo ' .weak foobar' > conftest.s
22248 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22250 (eval $ac_try) 2>&5
22252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22253 test $ac_status = 0; }; }
22257 echo "configure: failed program was" >&5
22260 rm -f conftest.o conftest.s
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22264 $as_echo "$gcc_cv_as_weak" >&6; }
22265 if test $gcc_cv_as_weak = yes; then
22267 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22272 $as_echo_n "checking assembler for .weakref... " >&6; }
22273 if test "${gcc_cv_as_weakref+set}" = set; then :
22274 $as_echo_n "(cached) " >&6
22276 gcc_cv_as_weakref
=no
22277 if test $in_tree_gas = yes; then
22278 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22279 then gcc_cv_as_weakref
=yes
22281 elif test x
$gcc_cv_as != x
; then
22282 $as_echo ' .weakref foobar, barfnot' > conftest.s
22283 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22285 (eval $ac_try) 2>&5
22287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22288 test $ac_status = 0; }; }
22290 gcc_cv_as_weakref
=yes
22292 echo "configure: failed program was" >&5
22295 rm -f conftest.o conftest.s
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22299 $as_echo "$gcc_cv_as_weakref" >&6; }
22300 if test $gcc_cv_as_weakref = yes; then
22302 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22307 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22308 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22309 $as_echo_n "(cached) " >&6
22311 gcc_cv_as_nsubspa_comdat
=no
22312 if test $in_tree_gas = yes; then
22313 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22314 then gcc_cv_as_nsubspa_comdat
=yes
22316 elif test x
$gcc_cv_as != x
; then
22317 $as_echo ' .SPACE $TEXT$
22318 .NSUBSPA $CODE$,COMDAT' > conftest.s
22319 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22321 (eval $ac_try) 2>&5
22323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22324 test $ac_status = 0; }; }
22326 gcc_cv_as_nsubspa_comdat
=yes
22328 echo "configure: failed program was" >&5
22331 rm -f conftest.o conftest.s
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22335 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22336 if test $gcc_cv_as_nsubspa_comdat = yes; then
22338 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22342 # .hidden needs to be supported in both the assembler and the linker,
22343 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22344 # This is irritatingly difficult to feature test for; we have to check the
22345 # date string after the version number. If we've got an in-tree
22346 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22348 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22350 $as_echo_n "checking assembler for .hidden... " >&6; }
22351 if test "${gcc_cv_as_hidden+set}" = set; then :
22352 $as_echo_n "(cached) " >&6
22354 gcc_cv_as_hidden
=no
22355 if test $in_tree_gas = yes; then
22356 if test $in_tree_gas_is_elf = yes \
22357 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22358 then gcc_cv_as_hidden
=yes
22360 elif test x
$gcc_cv_as != x
; then
22361 $as_echo ' .hidden foobar
22362 foobar:' > conftest.s
22363 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22365 (eval $ac_try) 2>&5
22367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22368 test $ac_status = 0; }; }
22370 gcc_cv_as_hidden
=yes
22372 echo "configure: failed program was" >&5
22375 rm -f conftest.o conftest.s
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22379 $as_echo "$gcc_cv_as_hidden" >&6; }
22381 case "${target}" in
22383 # Darwin as has some visibility support, though with a different syntax.
22384 gcc_cv_as_hidden
=yes
22388 # gnu_indirect_function type is an extension proposed at
22389 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22390 # selection of function implementation
22391 # Check whether --enable-gnu-indirect-function was given.
22392 if test "${enable_gnu_indirect_function+set}" = set; then :
22393 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22395 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22396 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22399 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22403 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22405 cat >>confdefs.h
<<_ACEOF
22406 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22411 if test $in_tree_ld != yes ; then
22412 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22413 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22414 if test x
"$ld_is_gold" = xyes
; then
22415 # GNU gold --version looks like this:
22417 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22419 # We extract the binutils version which is more familiar and specific
22420 # than the gold version.
22421 ld_vers
=`echo $ld_ver | sed -n \
22422 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22424 # GNU ld --version looks like this:
22426 # GNU ld (GNU Binutils) 2.21.51.20110225
22427 ld_vers
=`echo $ld_ver | sed -n \
22428 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22430 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'`
22431 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22432 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22433 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22435 case "${target}" in
22437 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22440 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22441 # /usr/ccs/bin/ld has been configured.
22442 ld_ver
=`$gcc_cv_ld -V 2>&1`
22443 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22444 ld_vers
=`echo $ld_ver | sed -n \
22445 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22446 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22447 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22455 $as_echo_n "checking linker for .hidden support... " >&6; }
22456 if test "${gcc_cv_ld_hidden+set}" = set; then :
22457 $as_echo_n "(cached) " >&6
22459 if test $in_tree_ld = yes ; then
22460 gcc_cv_ld_hidden
=no
22461 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 \
22462 && test $in_tree_ld_is_elf = yes; then
22463 gcc_cv_ld_hidden
=yes
22466 gcc_cv_ld_hidden
=yes
22467 if test x
"$ld_is_gold" = xyes
; then
22469 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22470 case "${target}" in
22471 mmix-knuth-mmixware
)
22472 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22473 gcc_cv_ld_hidden
=no
22476 if test 0"$ld_date" -lt 20020404; then
22477 if test -n "$ld_date"; then
22478 # If there was date string, but was earlier than 2002-04-04, fail
22479 gcc_cv_ld_hidden
=no
22480 elif test -z "$ld_vers"; then
22481 # If there was no date string nor ld version number, something is wrong
22482 gcc_cv_ld_hidden
=no
22484 test -z "$ld_vers_patch" && ld_vers_patch
=0
22485 if test "$ld_vers_major" -lt 2; then
22486 gcc_cv_ld_hidden
=no
22487 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22488 gcc_cv_ld_hidden
="no"
22489 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22490 gcc_cv_ld_hidden
=no
22495 case "${target}" in
22497 # Darwin ld has some visibility support.
22498 gcc_cv_ld_hidden
=yes
22500 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22501 gcc_cv_ld_hidden
=yes
22503 *-*-solaris2.1
[0-9]*)
22504 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22505 # .symbolic was only added in Solaris 9 12/02.
22506 gcc_cv_ld_hidden
=yes
22509 gcc_cv_ld_hidden
=no
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22516 $as_echo "$gcc_cv_ld_hidden" >&6; }
22517 libgcc_visibility
=no
22520 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22521 libgcc_visibility
=yes
22523 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22528 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22529 gcc_cv_ld_ro_rw_mix
=unknown
22530 if test $in_tree_ld = yes ; then
22531 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 \
22532 && test $in_tree_ld_is_elf = yes; then
22533 gcc_cv_ld_ro_rw_mix
=read-write
22535 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22536 echo '.section myfoosect, "a"' > conftest1.s
22537 echo '.section myfoosect, "aw"' > conftest2.s
22538 echo '.byte 1' >> conftest2.s
22539 echo '.section myfoosect, "a"' > conftest3.s
22540 echo '.byte 0' >> conftest3.s
22541 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22542 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22543 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22544 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22545 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22546 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22547 | sed -e '/myfoosect/!d' -e N`
22548 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22549 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22550 gcc_cv_ld_ro_rw_mix
=read-only
22552 gcc_cv_ld_ro_rw_mix
=read-write
22556 rm -f conftest.
* conftest
[123].
*
22558 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22560 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22564 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22566 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22567 case "${target}" in
22570 # Solaris 2 ld -V output looks like this for a regular version:
22572 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22574 # but test versions add stuff at the end:
22576 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22578 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22579 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22580 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22581 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22582 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22583 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22589 # Check whether --enable-initfini-array was given.
22590 if test "${enable_initfini_array+set}" = set; then :
22591 enableval
=$enable_initfini_array;
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22595 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22596 if test "${gcc_cv_initfini_array+set}" = set; then :
22597 $as_echo_n "(cached) " >&6
22599 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22600 case "${target}" in
22602 if test "$cross_compiling" = yes; then :
22603 gcc_cv_initfini_array
=no
22605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22606 /* end confdefs.h. */
22609 #error Not an ELF OS
22611 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22612 if it can be used. */
22614 int main (void) { return x; }
22615 int foo (void) { x = 0; }
22616 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22619 if ac_fn_c_try_run
"$LINENO"; then :
22620 gcc_cv_initfini_array
=yes
22622 gcc_cv_initfini_array
=no
22624 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22625 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22629 gcc_cv_initfini_array
=no
22630 if test $in_tree_ld = yes ; then
22631 if test "$gcc_cv_gld_major_version" -eq 2 \
22632 -a "$gcc_cv_gld_minor_version" -ge 22 \
22633 -o "$gcc_cv_gld_major_version" -gt 2 \
22634 && test $in_tree_ld_is_elf = yes; then
22635 gcc_cv_initfini_array
=yes
22637 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22638 cat > conftest.s
<<\EOF
22639 .section .dtors
,"a",%progbits
22641 .byte
'A', 'A', 'A', 'A'
22642 .section .ctors
,"a",%progbits
22644 .byte
'B', 'B', 'B', 'B'
22645 .section .fini_array
.65530,"a",%progbits
22647 .byte
'C', 'C', 'C', 'C'
22648 .section .init_array
.65530,"a",%progbits
22650 .byte
'D', 'D', 'D', 'D'
22651 .section .dtors
.64528,"a",%progbits
22653 .byte
'E', 'E', 'E', 'E'
22654 .section .ctors
.64528,"a",%progbits
22656 .byte
'F', 'F', 'F', 'F'
22657 .section .fini_array
.01005,"a",%progbits
22659 .byte
'G', 'G', 'G', 'G'
22660 .section .init_array
.01005,"a",%progbits
22662 .byte
'H', 'H', 'H', 'H'
22667 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22668 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22669 && $gcc_cv_objdump -s -j .init_array conftest \
22670 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22671 && $gcc_cv_objdump -s -j .fini_array conftest \
22672 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22673 gcc_cv_initfini_array
=yes
22675 rm -f conftest conftest.
*
22677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22678 /* end confdefs.h. */
22681 # error Not an ELF OS
22683 #include <stdlib.h>
22684 #if defined __GLIBC_PREREQ
22685 # if __GLIBC_PREREQ (2, 4)
22687 # error GLIBC 2.4 required
22690 # if defined __sun__ && defined __svr4__
22691 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22693 # error The C library not known to support .init_array/.fini_array
22698 if ac_fn_c_try_cpp
"$LINENO"; then :
22701 gcc_cv_initfini_array
=no
22703 rm -f conftest.err conftest.
$ac_ext;;
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22707 $as_echo_n "checking cross compile... guessing... " >&6; }
22708 gcc_cv_initfini_array
=no
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22712 $as_echo "$gcc_cv_initfini_array" >&6; }
22713 enable_initfini_array
=$gcc_cv_initfini_array
22717 if test $enable_initfini_array = yes; then
22719 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22723 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22725 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22726 if test "${gcc_cv_as_leb128+set}" = set; then :
22727 $as_echo_n "(cached) " >&6
22729 gcc_cv_as_leb128
=no
22730 if test $in_tree_gas = yes; then
22731 if test $in_tree_gas_is_elf = yes \
22732 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22733 then gcc_cv_as_leb128
=yes
22735 elif test x
$gcc_cv_as != x
; then
22742 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22744 (eval $ac_try) 2>&5
22746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22747 test $ac_status = 0; }; }
22749 # GAS versions before 2.11 do not support uleb128,
22750 # despite appearing to.
22751 # ??? There exists an elf-specific test that will crash
22752 # the assembler. Perhaps it's better to figure out whether
22753 # arbitrary sections are supported and try the test.
22754 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22755 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22756 as_vers
=`echo $as_ver | sed -n \
22757 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22758 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22759 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22760 if test $as_major -eq 2 && test $as_minor -lt 11
22762 else gcc_cv_as_leb128
=yes
22766 echo "configure: failed program was" >&5
22769 rm -f conftest.o conftest.s
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22773 $as_echo "$gcc_cv_as_leb128" >&6; }
22774 if test $gcc_cv_as_leb128 = yes; then
22776 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22780 # Check if we have assembler support for unwind directives.
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22782 $as_echo_n "checking assembler for cfi directives... " >&6; }
22783 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22784 $as_echo_n "(cached) " >&6
22786 gcc_cv_as_cfi_directive
=no
22787 if test x
$gcc_cv_as != x
; then
22793 .cfi_escape 1, 2, 3, 4, 5
22794 .cfi_endproc' > conftest.s
22795 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22797 (eval $ac_try) 2>&5
22799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22800 test $ac_status = 0; }; }
22804 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22805 # read-only and read-write sections, we need to make sure that the
22806 # assembler used emits read-write .eh_frame sections.
22807 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22808 if test "x$gcc_cv_objdump" != x
; then
22809 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22810 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22811 gcc_cv_as_cfi_directive
=no
22814 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22815 # On Solaris/x86, make sure that GCC and assembler agree on using
22816 # read-only .eh_frame sections for 64-bit.
22817 if test x
$gas = xyes
; then
22818 as_ix86_64_opt
="--64"
22820 as_ix86_64_opt
="-xarch=amd64"
22822 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22823 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22824 sed -e /.eh_frame
/!d
-e N | \
22825 grep READONLY
> /dev
/null
; then
22826 gcc_cv_as_cfi_directive
=yes
22828 gcc_cv_as_cfi_directive
=no
22832 gcc_cv_as_cfi_directive
=yes
22837 # no objdump, err on the side of caution
22838 gcc_cv_as_cfi_directive
=no
22841 gcc_cv_as_cfi_directive
=yes
22845 gcc_cv_as_cfi_directive
=yes
22849 echo "configure: failed program was" >&5
22852 rm -f conftest.o conftest.s
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22856 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22858 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22860 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22861 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22862 $as_echo_n "(cached) " >&6
22864 gcc_cv_as_cfi_advance_working
=no
22865 if test x
$gcc_cv_as != x
; then
22868 .cfi_adjust_cfa_offset 64
22870 .cfi_adjust_cfa_offset 128
22871 .cfi_endproc' > conftest.s
22872 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22874 (eval $ac_try) 2>&5
22876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22877 test $ac_status = 0; }; }
22880 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22881 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22882 gcc_cv_as_cfi_advance_working
=yes
22886 echo "configure: failed program was" >&5
22889 rm -f conftest.o conftest.s
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22893 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22896 # no objdump, err on the side of caution
22897 gcc_cv_as_cfi_advance_working
=no
22901 cat >>confdefs.h
<<_ACEOF
22902 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22903 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22909 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22910 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22911 $as_echo_n "(cached) " >&6
22913 gcc_cv_as_cfi_personality_directive
=no
22914 if test x
$gcc_cv_as != x
; then
22917 .cfi_personality 0, symbol
22918 .cfi_endproc' > conftest.s
22919 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22921 (eval $ac_try) 2>&5
22923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22924 test $ac_status = 0; }; }
22926 gcc_cv_as_cfi_personality_directive
=yes
22928 echo "configure: failed program was" >&5
22931 rm -f conftest.o conftest.s
22934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22935 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22938 cat >>confdefs.h
<<_ACEOF
22939 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22940 then echo 1; else echo 0; fi`
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22945 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22946 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22947 $as_echo_n "(cached) " >&6
22949 gcc_cv_as_cfi_sections_directive
=no
22950 if test x
$gcc_cv_as != x
; then
22952 .cfi_sections .debug_frame, .eh_frame
22954 .cfi_endproc' > conftest.s
22955 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22957 (eval $ac_try) 2>&5
22959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22960 test $ac_status = 0; }; }
22963 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22964 # Need to check that we generated the correct relocation for the
22965 # .debug_frame section. This was fixed for binutils 2.21.
22966 gcc_cv_as_cfi_sections_directive
=no
22967 if test "x$gcc_cv_objdump" != x
; then
22968 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22969 grep secrel
> /dev
/null
; then
22970 gcc_cv_as_cfi_sections_directive
=yes
22975 gcc_cv_as_cfi_sections_directive
=yes
22979 echo "configure: failed program was" >&5
22982 rm -f conftest.o conftest.s
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22986 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22990 cat >>confdefs.h
<<_ACEOF
22991 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22992 then echo 1; else echo 0; fi`
22996 # GAS versions up to and including 2.11.0 may mis-optimize
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22999 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23000 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23001 $as_echo_n "(cached) " >&6
23003 gcc_cv_as_eh_frame
=no
23004 if test $in_tree_gas = yes; then
23005 if test $in_tree_gas_is_elf = yes \
23006 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23007 then gcc_cv_as_eh_frame
=yes
23009 elif test x
$gcc_cv_as != x
; then
23016 .section .eh_frame,"aw",@progbits
23018 .4byte .LECIE1-.LSCIE1
23032 .4byte .LEFDE1-.LASFDE1
23034 .4byte .LASFDE1-__FRAME_BEGIN__
23041 .LEFDE1:' > conftest.s
23042 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23044 (eval $ac_try) 2>&5
23046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23047 test $ac_status = 0; }; }
23049 cat > conftest.lit
<<EOF
23050 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23051 0010 01000000 12000000 18000000 00000000 ................
23052 0020 08000000 04080000 0044 .........D
23054 cat > conftest.big
<<EOF
23055 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23056 0010 00000001 00000012 00000018 00000000 ................
23057 0020 00000008 04000000 0844 .........D
23059 # If the assembler didn't choke, and we can objdump,
23060 # and we got the correct data, then succeed.
23061 # The text in the here-document typically retains its unix-style line
23062 # endings, while the output of objdump will use host line endings.
23063 # Therefore, use diff -b for the comparisons.
23064 if test x
$gcc_cv_objdump != x \
23065 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23066 |
tail -3 > conftest.got \
23067 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23068 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23070 gcc_cv_as_eh_frame
=yes
23071 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23073 (eval $ac_try) 2>&5
23075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23076 test $ac_status = 0; }; }; then
23077 gcc_cv_as_eh_frame
=buggy
23079 # Uh oh, what do we do now?
23080 gcc_cv_as_eh_frame
=no
23083 echo "configure: failed program was" >&5
23086 rm -f conftest.o conftest.s
23089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23090 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23093 if test $gcc_cv_as_eh_frame = buggy
; then
23095 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23100 $as_echo_n "checking assembler for section merging support... " >&6; }
23101 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23102 $as_echo_n "(cached) " >&6
23104 gcc_cv_as_shf_merge
=no
23105 if test $in_tree_gas = yes; then
23106 if test $in_tree_gas_is_elf = yes \
23107 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23108 then gcc_cv_as_shf_merge
=yes
23110 elif test x
$gcc_cv_as != x
; then
23111 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23112 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23114 (eval $ac_try) 2>&5
23116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23117 test $ac_status = 0; }; }
23119 gcc_cv_as_shf_merge
=yes
23121 echo "configure: failed program was" >&5
23124 rm -f conftest.o conftest.s
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23128 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23130 if test $gcc_cv_as_shf_merge = no
; then
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23132 $as_echo_n "checking assembler for section merging support... " >&6; }
23133 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23134 $as_echo_n "(cached) " >&6
23136 gcc_cv_as_shf_merge
=no
23137 if test $in_tree_gas = yes; then
23138 if test $in_tree_gas_is_elf = yes \
23139 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23140 then gcc_cv_as_shf_merge
=yes
23142 elif test x
$gcc_cv_as != x
; then
23143 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23144 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23146 (eval $ac_try) 2>&5
23148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23149 test $ac_status = 0; }; }
23151 gcc_cv_as_shf_merge
=yes
23153 echo "configure: failed program was" >&5
23156 rm -f conftest.o conftest.s
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23160 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23164 cat >>confdefs.h
<<_ACEOF
23165 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23170 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23171 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23172 $as_echo_n "(cached) " >&6
23174 gcc_cv_as_comdat_group
=no
23175 if test $in_tree_gas = yes; then
23176 if test $in_tree_gas_is_elf = yes \
23177 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23178 then gcc_cv_as_comdat_group
=yes
23180 elif test x
$gcc_cv_as != x
; then
23181 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23182 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23184 (eval $ac_try) 2>&5
23186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23187 test $ac_status = 0; }; }
23189 gcc_cv_as_comdat_group
=yes
23191 echo "configure: failed program was" >&5
23194 rm -f conftest.o conftest.s
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23198 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23200 if test $gcc_cv_as_comdat_group = yes; then
23201 gcc_cv_as_comdat_group_percent
=no
23202 gcc_cv_as_comdat_group_group
=no
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23205 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23206 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23207 $as_echo_n "(cached) " >&6
23209 gcc_cv_as_comdat_group_percent
=no
23210 if test $in_tree_gas = yes; then
23211 if test $in_tree_gas_is_elf = yes \
23212 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23213 then gcc_cv_as_comdat_group_percent
=yes
23215 elif test x
$gcc_cv_as != x
; then
23216 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23217 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23219 (eval $ac_try) 2>&5
23221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23222 test $ac_status = 0; }; }
23224 gcc_cv_as_comdat_group_percent
=yes
23226 echo "configure: failed program was" >&5
23229 rm -f conftest.o conftest.s
23232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23233 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23235 if test $gcc_cv_as_comdat_group_percent = yes; then
23236 gcc_cv_as_comdat_group_group
=no
23238 case "${target}" in
23239 # Sun as uses a completely different syntax.
23241 case "${target}" in
23242 sparc
*-*-solaris2*)
23244 .group foo,".text%foo",#comdat
23245 .section ".text%foo", #alloc,#execinstr,#progbits
23250 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23252 .group foo,.text%foo,#comdat
23253 .section .text%foo, "ax", @progbits
23259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23260 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23261 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23262 $as_echo_n "(cached) " >&6
23264 gcc_cv_as_comdat_group_group
=no
23265 if test x
$gcc_cv_as != x
; then
23266 $as_echo "$conftest_s" > conftest.s
23267 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23269 (eval $ac_try) 2>&5
23271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23272 test $ac_status = 0; }; }
23274 gcc_cv_as_comdat_group_group
=yes
23276 echo "configure: failed program was" >&5
23279 rm -f conftest.o conftest.s
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23283 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23287 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23288 gcc_cv_as_comdat_group_group
=no
23292 if test x
"$ld_is_gold" = xyes
; then
23294 elif test $in_tree_ld = yes ; then
23296 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 \
23297 && test $in_tree_ld_is_elf = yes; then
23300 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23302 if test 0"$ld_date" -lt 20050308; then
23303 if test -n "$ld_date"; then
23304 # If there was date string, but was earlier than 2005-03-08, fail
23306 elif test "$ld_vers_major" -lt 2; then
23308 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23313 case "${target}" in
23314 *-*-solaris2.1
[1-9]*)
23316 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23317 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23320 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23321 # least ld version 1.2267.
23322 if test "$ld_vers_major" -gt 1; then
23324 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23326 elif test "$ld_vers_minor" -ge 2267; then
23331 # Assume linkers other than GNU ld don't support COMDAT group.
23336 # Allow overriding the automatic COMDAT group tests above.
23337 # Check whether --enable-comdat was given.
23338 if test "${enable_comdat+set}" = set; then :
23339 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23342 if test $comdat_group = no
; then
23343 gcc_cv_as_comdat_group
=no
23344 gcc_cv_as_comdat_group_percent
=no
23345 gcc_cv_as_comdat_group_group
=no
23348 cat >>confdefs.h
<<_ACEOF
23349 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23350 || test $gcc_cv_as_comdat_group_percent = yes \
23351 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23356 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23357 if test "${gcc_cv_as_discriminator+set}" = set; then :
23358 $as_echo_n "(cached) " >&6
23360 gcc_cv_as_discriminator
=no
23361 if test $in_tree_gas = yes; then
23362 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23363 then gcc_cv_as_discriminator
=yes
23365 elif test x
$gcc_cv_as != x
; then
23368 .loc 1 1 0 discriminator 1' > conftest.s
23369 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23371 (eval $ac_try) 2>&5
23373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23374 test $ac_status = 0; }; }
23376 gcc_cv_as_discriminator
=yes
23378 echo "configure: failed program was" >&5
23381 rm -f conftest.o conftest.s
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23385 $as_echo "$gcc_cv_as_discriminator" >&6; }
23386 if test $gcc_cv_as_discriminator = yes; then
23388 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23392 # Thread-local storage - the check is heavily parameterized.
23400 .section ".tdata","awT",@progbits
23403 ldq $27,__tls_get_addr($29) !literal!1
23404 lda $16,foo($29) !tlsgd!1
23405 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23406 ldq $27,__tls_get_addr($29) !literal!2
23407 lda $16,foo($29) !tlsldm!2
23408 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23409 ldq $1,foo($29) !gotdtprel
23410 ldah $2,foo($29) !dtprelhi
23411 lda $3,foo($2) !dtprello
23412 lda $4,foo($29) !dtprel
23413 ldq $1,foo($29) !gottprel
23414 ldah $2,foo($29) !tprelhi
23415 lda $3,foo($2) !tprello
23416 lda $4,foo($29) !tprel'
23419 tls_as_opt
=--fatal-warnings
23421 cris-
*-*|crisv32-
*-*)
23423 .section ".tdata","awT",@progbits
23430 tls_as_opt
=--fatal-warnings
23434 .section ".tdata","awT",@progbits
23437 call #gettlsoff(x)'
23446 .section ".tdata","awT",@progbits
23450 addil LT%foo-$tls_gdidx$,gp
23451 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23454 addil LT%foo-$tls_ldidx$,gp
23456 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23457 addil LR%foo-$tls_dtpoff$,%ret0
23458 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23460 addil LT%foo-$tls_ieoff$,gp
23461 ldw RT%foo-$tls_ieoff$(%r1),%t2
23464 addil LR%foo-$tls_leoff$,%t1
23465 ldo RR%foo-$tls_leoff$(%r1),%t2'
23468 tls_as_opt
=--fatal-warnings
23472 .section ".tdata","awT",%progbits
23475 .word foo(gottpoff)
23483 i
[34567]86-*-* | x86_64-
*-*)
23485 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
23492 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23494 .section .tdata,"awt",@progbits'
23499 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23503 .section ".tdata","awT",@progbits'
23507 tls_as_opt
="--fatal-warnings"
23511 conftest_s
="$conftest_s
23515 leal foo@tlsgd(,%ebx,1), %eax
23516 leal foo@tlsldm(%ebx), %eax
23517 leal foo@dtpoff(%eax), %edx
23518 movl foo@gottpoff(%ebx), %eax
23519 subl foo@gottpoff(%ebx), %eax
23520 addl foo@gotntpoff(%ebx), %eax
23521 movl foo@indntpoff, %eax
23522 movl \$foo@tpoff, %eax
23523 subl \$foo@tpoff, %eax
23524 leal foo@ntpoff(%ecx), %eax"
23527 if test x
$on_solaris = xyes
; then
23529 yes) tls_as_opt
="$tls_as_opt --64" ;;
23530 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
23533 conftest_s
="$conftest_s
23537 leaq foo@tlsgd(%rip), %rdi
23538 leaq foo@tlsld(%rip), %rdi
23539 leaq foo@dtpoff(%rax), %rdx
23540 movq foo@gottpoff(%rip), %rax
23541 movq \$foo@tpoff, %rax"
23547 .section ".tdata","awT",@progbits
23550 addl r16 = @ltoff(@dtpmod(foo#)), gp
23551 addl r17 = @ltoff(@dtprel(foo#)), gp
23552 addl r18 = @ltoff(@tprel(foo#)), gp
23553 addl r19 = @dtprel(foo#), gp
23554 adds r21 = @dtprel(foo#), r13
23555 movl r23 = @dtprel(foo#)
23556 addl r20 = @tprel(foo#), gp
23557 adds r22 = @tprel(foo#), r13
23558 movl r24 = @tprel(foo#)'
23561 tls_as_opt
=--fatal-warnings
23565 .section .tdata,"awT",@progbits
23569 addik r5,r20,x@TLSGD
23570 addik r5,r20,x@TLSLDM'
23573 tls_as_opt
='--fatal-warnings'
23577 .section .tdata,"awT",@progbits
23581 addiu $4, $28, %tlsgd(x)
23582 addiu $4, $28, %tlsldm(x)
23583 lui $4, %dtprel_hi(x)
23584 addiu $4, $4, %dtprel_lo(x)
23585 lw $4, %gottprel(x)($28)
23586 lui $4, %tprel_hi(x)
23587 addiu $4, $4, %tprel_lo(x)'
23590 tls_as_opt
='-32 --fatal-warnings'
23594 .section .tdata,"awT",@progbits
23599 move.l x@TLSGD(%a5),%a0
23600 move.l x@TLSLDM(%a5),%a0
23601 move.l x@TLSLDO(%a5),%a0
23602 move.l x@TLSIE(%a5),%a0
23603 move.l x@TLSLE(%a5),%a0'
23606 tls_as_opt
='--fatal-warnings'
23610 .section ".tdata","awT",@progbits'
23613 tls_as_opt
="--fatal-warnings"
23617 .section ".tdata","awT",%progbits
23621 add x0, x0, #:tlsgd_lo12:x
23626 tls_as_opt
='--fatal-warnings'
23630 .extern __get_tpointer
23648 .section ".tdata","awT",@progbits
23656 addi 3,2,ld0@got@tlsgd
23662 addi 3,2,x1@got@tlsld
23668 addis 9,3,x2@dtprel@ha
23669 addi 9,9,x2@dtprel@l
23672 ld 9,x3@got@dtprel(2)
23678 tls_as_opt
="-a64 --fatal-warnings"
23682 .section ".tdata","awT",@progbits
23690 addi 3,31,ld0@got@tlsgd
23692 addi 3,31,x1@got@tlsld
23695 addis 9,3,x2@dtprel@ha
23696 addi 9,9,x2@dtprel@l
23697 lwz 9,x3@got@tprel(31)
23700 addis 9,2,x2@tprel@ha
23701 addi 9,9,x2@tprel@l'
23704 tls_as_opt
="-a32 --fatal-warnings"
23708 .section ".tdata","awT",@progbits
23715 .long foo@GOTNTPOFF
23716 .long foo@INDNTPOFF
23717 l %r1,foo@GOTNTPOFF(%r12)
23718 l %r1,0(%r1):tls_load:foo
23719 bas %r14,0(%r1,%r13):tls_gdcall:foo
23720 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23723 tls_as_opt
="-m31 --fatal-warnings"
23727 .section ".tdata","awT",@progbits
23734 .quad foo@GOTNTPOFF
23735 lg %r1,foo@GOTNTPOFF(%r12)
23736 larl %r1,foo@INDNTPOFF
23737 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23738 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23741 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23743 sh-
*-* | sh
[34]-*-*)
23745 .section ".tdata","awT",@progbits
23755 tls_as_opt
=--fatal-warnings
23759 sparc
*-sun-solaris2.
*)
23766 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23768 .section ".tdata",#alloc,#write,#tls'
23773 .section ".tdata","awT",@progbits'
23776 tls_as_opt
="-32 --fatal-warnings"
23778 conftest_s
="$conftest_s
23781 sethi %tgd_hi22(foo), %o0
23782 add %o0, %tgd_lo10(foo), %o1
23783 add %l7, %o1, %o0, %tgd_add(foo)
23784 call __tls_get_addr, %tgd_call(foo)
23785 sethi %tldm_hi22(foo), %l1
23786 add %l1, %tldm_lo10(foo), %l2
23787 add %l7, %l2, %o0, %tldm_add(foo)
23788 call __tls_get_addr, %tldm_call(foo)
23789 sethi %tldo_hix22(foo), %l3
23790 xor %l3, %tldo_lox10(foo), %l4
23791 add %o0, %l4, %l5, %tldo_add(foo)
23792 sethi %tie_hi22(foo), %o3
23793 add %o3, %tie_lo10(foo), %o3
23794 ld [%l7 + %o3], %o2, %tie_ld(foo)
23795 add %g7, %o2, %o4, %tie_add(foo)
23796 sethi %tle_hix22(foo), %l1
23797 xor %l1, %tle_lox10(foo), %o5
23798 ld [%g7 + %o5], %o1"
23802 .section ".tdata","awT",@progbits
23805 addli r0, zero, tls_gd(foo)
23806 auli r0, zero, tls_gd_ha16(foo)
23807 addli r0, r0, tls_gd_lo16(foo)
23809 addli r0, zero, tls_ie(foo)
23810 auli r0, r0, tls_ie_ha16(foo)
23811 addli r0, r0, tls_ie_lo16(foo)'
23814 tls_as_opt
="--fatal-warnings"
23818 .section ".tdata","awT",@progbits
23821 shl16insli r0, zero, hw0_last_tls_gd(foo)
23822 shl16insli r0, zero, hw1_last_tls_gd(foo)
23823 shl16insli r0, r0, hw0_tls_gd(foo)
23825 shl16insli r0, zero, hw1_last_tls_ie(foo)
23826 shl16insli r0, r0, hw0_tls_ie(foo)'
23829 tls_as_opt
="--fatal-warnings"
23833 .section ".tdata","awT",@progbits
23836 movi a8, foo@TLSFUNC
23837 movi a10, foo@TLSARG
23838 callx8.tls a8, foo@TLSCALL'
23844 if test "x$enable_tls" = xno
; then
23845 : # TLS explicitly disabled.
23846 elif test "x$enable_tls" = xyes
; then
23847 set_have_as_tls
=yes # TLS explicitly enabled.
23848 elif test -z "$tls_first_major"; then
23849 : # If we don't have a check, assume no support.
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23852 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23853 if test "${gcc_cv_as_tls+set}" = set; then :
23854 $as_echo_n "(cached) " >&6
23857 if test $in_tree_gas = yes; then
23858 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23859 then gcc_cv_as_tls
=yes
23861 elif test x
$gcc_cv_as != x
; then
23862 $as_echo "$conftest_s" > conftest.s
23863 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23865 (eval $ac_try) 2>&5
23867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23868 test $ac_status = 0; }; }
23872 echo "configure: failed program was" >&5
23875 rm -f conftest.o conftest.s
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23879 $as_echo "$gcc_cv_as_tls" >&6; }
23880 if test $gcc_cv_as_tls = yes; then
23881 set_have_as_tls
=yes
23884 if test $set_have_as_tls = yes ; then
23886 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23890 # Target-specific assembler checks.
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23893 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23894 gcc_cv_ld_static_dynamic
=no
23895 gcc_cv_ld_static_option
='-Bstatic'
23896 gcc_cv_ld_dynamic_option
='-Bdynamic'
23897 if test $in_tree_ld = yes ; then
23898 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
23899 gcc_cv_ld_static_dynamic
=yes
23901 elif test x
$gcc_cv_ld != x
; then
23902 # Check if linker supports -Bstatic/-Bdynamic option
23903 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23904 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23905 gcc_cv_ld_static_dynamic
=yes
23908 # AIX ld uses -b flags
23909 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
23910 gcc_cv_ld_static_dynamic
=yes
23911 gcc_cv_ld_static_option
="-bstatic"
23912 gcc_cv_ld_dynamic_option
="-bdynamic"
23914 # HP-UX ld uses -a flags to select between shared and archive.
23916 if test x
"$gnu_ld" = xno
; then
23917 gcc_cv_ld_static_dynamic
=yes
23918 gcc_cv_ld_static_option
="-aarchive_shared"
23919 gcc_cv_ld_dynamic_option
="-adefault"
23922 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23924 gcc_cv_ld_static_dynamic
=yes
23929 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23931 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23934 cat >>confdefs.h
<<_ACEOF
23935 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23939 cat >>confdefs.h
<<_ACEOF
23940 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23945 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23947 if test x
"$demangler_in_ld" = xyes
; then
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23949 $as_echo_n "checking linker --demangle support... " >&6; }
23950 gcc_cv_ld_demangle
=no
23951 if test $in_tree_ld = yes; then
23952 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 \
23953 gcc_cv_ld_demangle
=yes
23955 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23956 # Check if the GNU linker supports --demangle option
23957 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23958 gcc_cv_ld_demangle
=yes
23961 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23963 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23967 $as_echo "$gcc_cv_ld_demangle" >&6; }
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23971 $as_echo_n "checking linker plugin support... " >&6; }
23972 gcc_cv_lto_plugin
=0
23973 if test -f liblto_plugin.la
; then
23974 save_ld_ver
="$ld_ver"
23975 save_ld_vers_major
="$ld_vers_major"
23976 save_ld_vers_minor
="$ld_vers_minor"
23977 save_ld_is_gold
="$ld_is_gold"
23981 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23983 # FIXME: ld_is_gold?
23984 ld_vers_major
="$gcc_cv_gld_major_version"
23985 ld_vers_minor
="$gcc_cv_gld_minor_version"
23987 # Determine plugin linker version.
23988 # FIXME: Partial duplicate from above, generalize.
23989 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23990 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23991 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23993 ld_vers
=`echo $ld_ver | sed -n \
23994 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23996 ld_vers
=`echo $ld_ver | sed -n \
23997 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23999 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24000 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24004 # Determine plugin support.
24005 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24006 # Require GNU ld or gold 2.21+ for plugin support by default.
24007 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24008 gcc_cv_lto_plugin
=2
24009 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24010 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24011 gcc_cv_lto_plugin
=1
24015 ld_ver
="$save_ld_ver"
24016 ld_vers_major
="$save_ld_vers_major"
24017 ld_vers_minor
="$save_ld_vers_minor"
24018 ld_is_gold
="$save_ld_is_gold"
24021 cat >>confdefs.h
<<_ACEOF
24022 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24026 $as_echo "$gcc_cv_lto_plugin" >&6; }
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24031 $as_echo_n "checking assembler for -mabi option... " >&6; }
24032 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24033 $as_echo_n "(cached) " >&6
24035 gcc_cv_as_aarch64_mabi
=no
24036 if test x
$gcc_cv_as != x
; then
24037 $as_echo '.text' > conftest.s
24038 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24040 (eval $ac_try) 2>&5
24042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24043 test $ac_status = 0; }; }
24045 gcc_cv_as_aarch64_mabi
=yes
24047 echo "configure: failed program was" >&5
24050 rm -f conftest.o conftest.s
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24054 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24056 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24058 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24061 if test x
$with_abi = xilp32
; then
24062 as_fn_error
"Assembler does not support -mabi=ilp32.\
24063 Upgrade the Assembler." "$LINENO" 5
24065 if test x
"$with_multilib_list" = xdefault
; then
24066 TM_MULTILIB_CONFIG
=lp64
24068 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24069 for aarch64_multilib
in ${aarch64_multilibs}; do
24070 case ${aarch64_multilib} in
24072 as_fn_error
"Assembler does not support -mabi=ilp32.\
24073 Upgrade the Assembler." "$LINENO" 5
24081 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24082 # Check whether --enable-fix-cortex-a53-835769 was given.
24083 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24084 enableval
=$enable_fix_cortex_a53_835769;
24087 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24092 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24093 Valid choices are 'yes' and 'no'." "$LINENO" 5
24102 # All TARGET_ABI_OSF targets.
24103 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24105 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24106 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24107 $as_echo_n "(cached) " >&6
24109 gcc_cv_as_alpha_explicit_relocs
=no
24110 if test $in_tree_gas = yes; then
24111 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24112 then gcc_cv_as_alpha_explicit_relocs
=yes
24114 elif test x
$gcc_cv_as != x
; then
24115 $as_echo ' .set nomacro
24117 extbl $3, $2, $3 !lituse_bytoff!1
24118 ldq $2, a($29) !literal!1
24119 ldq $4, b($29) !literal!2
24120 ldq_u $3, 0($2) !lituse_base!1
24121 ldq $27, f($29) !literal!5
24122 jsr $26, ($27), f !lituse_jsr!5
24123 ldah $29, 0($26) !gpdisp!3
24124 lda $0, c($29) !gprel
24125 ldah $1, d($29) !gprelhigh
24126 lda $1, d($1) !gprellow
24127 lda $29, 0($29) !gpdisp!3' > conftest.s
24128 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24130 (eval $ac_try) 2>&5
24132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24133 test $ac_status = 0; }; }
24135 gcc_cv_as_alpha_explicit_relocs
=yes
24137 echo "configure: failed program was" >&5
24140 rm -f conftest.o conftest.s
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24144 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24145 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24147 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24151 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24152 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24153 $as_echo_n "(cached) " >&6
24155 gcc_cv_as_alpha_jsrdirect_relocs
=no
24156 if test $in_tree_gas = yes; then
24157 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24158 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24160 elif test x
$gcc_cv_as != x
; then
24161 $as_echo ' .set nomacro
24163 ldq $27, a($29) !literal!1
24164 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24165 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24167 (eval $ac_try) 2>&5
24169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24170 test $ac_status = 0; }; }
24172 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24174 echo "configure: failed program was" >&5
24177 rm -f conftest.o conftest.s
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24181 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24182 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24184 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24191 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24192 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24193 $as_echo_n "(cached) " >&6
24195 gcc_cv_as_cris_no_mul_bug
=no
24196 if test $in_tree_gas = yes; then
24197 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24198 then gcc_cv_as_cris_no_mul_bug
=yes
24200 elif test x
$gcc_cv_as != x
; then
24201 $as_echo '.text' > conftest.s
24202 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24204 (eval $ac_try) 2>&5
24206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24207 test $ac_status = 0; }; }
24209 gcc_cv_as_cris_no_mul_bug
=yes
24211 echo "configure: failed program was" >&5
24214 rm -f conftest.o conftest.s
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24218 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24219 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24221 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24228 $as_echo_n "checking assembler for .register... " >&6; }
24229 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24230 $as_echo_n "(cached) " >&6
24232 gcc_cv_as_sparc_register_op
=no
24233 if test x
$gcc_cv_as != x
; then
24234 $as_echo '.register %g2, #scratch' > conftest.s
24235 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24237 (eval $ac_try) 2>&5
24239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24240 test $ac_status = 0; }; }
24242 gcc_cv_as_sparc_register_op
=yes
24244 echo "configure: failed program was" >&5
24247 rm -f conftest.o conftest.s
24250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24251 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24252 if test $gcc_cv_as_sparc_register_op = yes; then
24254 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24259 $as_echo_n "checking assembler for #nobits... " >&6; }
24260 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24261 $as_echo_n "(cached) " >&6
24263 gcc_cv_as_sparc_nobits
=no
24264 if test x
$gcc_cv_as != x
; then
24265 $as_echo '.section "nobits",#alloc,#write,#nobits
24266 .section "progbits",#alloc,#write,#progbits' > conftest.s
24267 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24269 (eval $ac_try) 2>&5
24271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24272 test $ac_status = 0; }; }
24274 gcc_cv_as_sparc_nobits
=yes
24276 echo "configure: failed program was" >&5
24279 rm -f conftest.o conftest.s
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24283 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24286 cat >>confdefs.h
<<_ACEOF
24287 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24292 $as_echo_n "checking assembler for -relax option... " >&6; }
24293 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24294 $as_echo_n "(cached) " >&6
24296 gcc_cv_as_sparc_relax
=no
24297 if test x
$gcc_cv_as != x
; then
24298 $as_echo '.text' > conftest.s
24299 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24301 (eval $ac_try) 2>&5
24303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24304 test $ac_status = 0; }; }
24306 gcc_cv_as_sparc_relax
=yes
24308 echo "configure: failed program was" >&5
24311 rm -f conftest.o conftest.s
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24315 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24316 if test $gcc_cv_as_sparc_relax = yes; then
24318 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24323 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24324 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24325 $as_echo_n "(cached) " >&6
24327 gcc_cv_as_sparc_gotdata_op
=no
24328 if test x
$gcc_cv_as != x
; then
24334 sethi %gdop_hix22(foo), %g1
24335 xor %g1, %gdop_lox10(foo), %g1
24336 ld [%l7 + %g1], %g2, %gdop(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 if test x
$gcc_cv_objdump != x
; then
24347 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24348 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24349 gcc_cv_as_sparc_gotdata_op
=no
24351 gcc_cv_as_sparc_gotdata_op
=yes
24357 echo "configure: failed program was" >&5
24360 rm -f conftest.o conftest.s
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24364 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24365 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24367 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24372 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24373 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24374 $as_echo_n "(cached) " >&6
24376 gcc_cv_as_sparc_ua_pcrel
=no
24377 if test x
$gcc_cv_as != x
; then
24384 .uaword %r_disp32(foo)' > conftest.s
24385 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24387 (eval $ac_try) 2>&5
24389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24390 test $ac_status = 0; }; }
24392 if test x
$gcc_cv_ld != x \
24393 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24394 gcc_cv_as_sparc_ua_pcrel
=yes
24398 echo "configure: failed program was" >&5
24401 rm -f conftest.o conftest.s
24404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24405 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24406 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24408 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24412 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24413 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24414 $as_echo_n "(cached) " >&6
24416 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24417 if test x
$gcc_cv_as != x
; then
24421 .uaword %r_disp32(foo)
24422 .byte 0x32, 0x33, 0x34
24426 .skip 4' > conftest.s
24427 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24429 (eval $ac_try) 2>&5
24431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24432 test $ac_status = 0; }; }
24434 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24435 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24436 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24437 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24438 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24439 |
grep 'DISP32' > /dev
/null
2>&1; then
24442 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24447 echo "configure: failed program was" >&5
24450 rm -f conftest.o conftest.s
24453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24454 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24455 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24457 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24461 fi # unaligned pcrel relocs
24463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24464 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24465 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24466 $as_echo_n "(cached) " >&6
24468 gcc_cv_as_sparc_offsetable_lo10
=no
24469 if test x
$gcc_cv_as != x
; then
24471 or %g1, %lo(ab) + 12, %g1
24472 or %g1, %lo(ab + 12), %g1' > conftest.s
24473 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24475 (eval $ac_try) 2>&5
24477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24478 test $ac_status = 0; }; }
24480 if test x
$gcc_cv_objdump != x \
24481 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24482 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24483 gcc_cv_as_sparc_offsetable_lo10
=yes
24486 echo "configure: failed program was" >&5
24489 rm -f conftest.o conftest.s
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24493 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24494 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24496 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24501 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24502 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24503 $as_echo_n "(cached) " >&6
24505 gcc_cv_as_sparc_fmaf
=no
24506 if test x
$gcc_cv_as != x
; then
24508 .register %g2, #scratch
24509 .register %g3, #scratch
24511 fmaddd %f0, %f2, %f4, %f6
24512 addxccc %g1, %g2, %g3
24513 fsrl32 %f2, %f4, %f8
24514 fnaddd %f10, %f12, %f14' > conftest.s
24515 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24517 (eval $ac_try) 2>&5
24519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24520 test $ac_status = 0; }; }
24522 gcc_cv_as_sparc_fmaf
=yes
24524 echo "configure: failed program was" >&5
24527 rm -f conftest.o conftest.s
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24531 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24532 if test $gcc_cv_as_sparc_fmaf = yes; then
24534 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24539 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24540 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24541 $as_echo_n "(cached) " >&6
24543 gcc_cv_as_sparc_sparc4
=no
24544 if test x
$gcc_cv_as != x
; then
24546 .register %g2, #scratch
24547 .register %g3, #scratch
24550 1: cwbneg %g2, %g3, 1f
24553 aes_kexpand0 %f4, %f6, %f8
24554 des_round %f38, %f40, %f42, %f44
24555 camellia_f %f54, %f56, %f58, %f60
24556 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24557 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24559 (eval $ac_try) 2>&5
24561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24562 test $ac_status = 0; }; }
24564 gcc_cv_as_sparc_sparc4
=yes
24566 echo "configure: failed program was" >&5
24569 rm -f conftest.o conftest.s
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24573 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24574 if test $gcc_cv_as_sparc_sparc4 = yes; then
24576 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24581 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24582 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24583 $as_echo_n "(cached) " >&6
24585 gcc_cv_as_sparc_leon
=no
24586 if test x
$gcc_cv_as != x
; then
24588 .register %g2, #scratch
24589 .register %g3, #scratch
24593 casa [%g2] 0xb, %g3, %g1' > conftest.s
24594 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24596 (eval $ac_try) 2>&5
24598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24599 test $ac_status = 0; }; }
24601 gcc_cv_as_sparc_leon
=yes
24603 echo "configure: failed program was" >&5
24606 rm -f conftest.o conftest.s
24609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24610 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24611 if test $gcc_cv_as_sparc_leon = yes; then
24613 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24618 i
[34567]86-*-* | x86_64-
*-*)
24621 # Full C++ conformance when using a shared libstdc++-v3 requires some
24622 # support from the Cygwin DLL, which in more recent versions exports
24623 # wrappers to aid in interposing and redirecting operators new, delete,
24624 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24625 # are configuring for a version of Cygwin that exports the wrappers.
24626 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
24627 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24628 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24629 gcc_ac_cygwin_dll_wrappers
=yes
24631 gcc_ac_cygwin_dll_wrappers
=no
24635 # Can't check presence of libc functions during cross-compile, so
24636 # we just have to assume we're building for an up-to-date target.
24637 gcc_ac_cygwin_dll_wrappers
=yes
24640 cat >>confdefs.h
<<_ACEOF
24641 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24646 cygwin
* | pe | mingw32
* | interix
*)
24647 # Recent binutils allows the three-operand form of ".comm" on PE. This
24648 # definition is used unconditionally to initialise the default state of
24649 # the target option variable that governs usage of the feature.
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24651 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24652 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24653 $as_echo_n "(cached) " >&6
24655 gcc_cv_as_comm_has_align
=no
24656 if test $in_tree_gas = yes; then
24657 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24658 then gcc_cv_as_comm_has_align
=yes
24660 elif test x
$gcc_cv_as != x
; then
24661 $as_echo '.comm foo,1,32' > conftest.s
24662 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24664 (eval $ac_try) 2>&5
24666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24667 test $ac_status = 0; }; }
24669 gcc_cv_as_comm_has_align
=yes
24671 echo "configure: failed program was" >&5
24674 rm -f conftest.o conftest.s
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24678 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24681 cat >>confdefs.h
<<_ACEOF
24682 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24685 # Used for DWARF 2 in PE
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24687 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24688 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24689 $as_echo_n "(cached) " >&6
24691 gcc_cv_as_ix86_pe_secrel32
=no
24692 if test $in_tree_gas = yes; then
24693 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24694 then gcc_cv_as_ix86_pe_secrel32
=yes
24696 elif test x
$gcc_cv_as != x
; then
24700 .secrel32 foo' > conftest.s
24701 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24703 (eval $ac_try) 2>&5
24705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24706 test $ac_status = 0; }; }
24708 if test x
$gcc_cv_ld != x \
24709 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24710 gcc_cv_as_ix86_pe_secrel32
=yes
24714 echo "configure: failed program was" >&5
24717 rm -f conftest.o conftest.s
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24721 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24722 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24724 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24727 # Test if the assembler supports the extended form of the .section
24728 # directive that specifies section alignment. LTO support uses this,
24729 # but normally only after installation, so we warn but don't fail the
24730 # configure if LTO is enabled but the assembler does not support it.
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24732 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24733 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24734 $as_echo_n "(cached) " >&6
24736 gcc_cv_as_section_has_align
=no
24737 if test $in_tree_gas = yes; then
24738 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24739 then gcc_cv_as_section_has_align
=yes
24741 elif test x
$gcc_cv_as != x
; then
24742 $as_echo '.section lto_test,"dr0"' > conftest.s
24743 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24745 (eval $ac_try) 2>&5
24747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24748 test $ac_status = 0; }; }
24750 gcc_cv_as_section_has_align
=yes
24752 echo "configure: failed program was" >&5
24755 rm -f conftest.o conftest.s
24758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24759 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24761 if test x
$gcc_cv_as_section_has_align != xyes
; then
24762 case ",$enable_languages," in
24764 { $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
24765 $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;}
24772 # Test if the assembler supports the section flag 'e' for specifying
24773 # an excluded section.
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24775 $as_echo_n "checking assembler for .section with e... " >&6; }
24776 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24777 $as_echo_n "(cached) " >&6
24779 gcc_cv_as_section_has_e
=no
24780 if test $in_tree_gas = yes; then
24781 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24782 then gcc_cv_as_section_has_e
=yes
24784 elif test x
$gcc_cv_as != x
; then
24785 $as_echo '.section foo1,"e"
24786 .byte 0,0,0,0' > conftest.s
24787 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24789 (eval $ac_try) 2>&5
24791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24792 test $ac_status = 0; }; }
24794 gcc_cv_as_section_has_e
=yes
24796 echo "configure: failed program was" >&5
24799 rm -f conftest.o conftest.s
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24803 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24806 cat >>confdefs.h
<<_ACEOF
24807 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24812 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24813 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24814 $as_echo_n "(cached) " >&6
24816 gcc_cv_as_ix86_filds
=no
24817 if test x
$gcc_cv_as != x
; then
24818 $as_echo 'filds mem; fists mem' > conftest.s
24819 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24821 (eval $ac_try) 2>&5
24823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24824 test $ac_status = 0; }; }
24826 gcc_cv_as_ix86_filds
=yes
24828 echo "configure: failed program was" >&5
24831 rm -f conftest.o conftest.s
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24835 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24836 if test $gcc_cv_as_ix86_filds = yes; then
24838 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24843 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24844 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24845 $as_echo_n "(cached) " >&6
24847 gcc_cv_as_ix86_fildq
=no
24848 if test x
$gcc_cv_as != x
; then
24849 $as_echo 'fildq mem; fistpq mem' > conftest.s
24850 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24852 (eval $ac_try) 2>&5
24854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24855 test $ac_status = 0; }; }
24857 gcc_cv_as_ix86_fildq
=yes
24859 echo "configure: failed program was" >&5
24862 rm -f conftest.o conftest.s
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24866 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24867 if test $gcc_cv_as_ix86_fildq = yes; then
24869 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24874 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24875 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24876 $as_echo_n "(cached) " >&6
24878 gcc_cv_as_ix86_cmov_sun_syntax
=no
24879 if test x
$gcc_cv_as != x
; then
24880 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24881 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24883 (eval $ac_try) 2>&5
24885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24886 test $ac_status = 0; }; }
24888 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24890 echo "configure: failed program was" >&5
24893 rm -f conftest.o conftest.s
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24897 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24898 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24900 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24905 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24906 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24907 $as_echo_n "(cached) " >&6
24909 gcc_cv_as_ix86_ffreep
=no
24910 if test x
$gcc_cv_as != x
; then
24911 $as_echo 'ffreep %st(1)' > conftest.s
24912 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24914 (eval $ac_try) 2>&5
24916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24917 test $ac_status = 0; }; }
24919 gcc_cv_as_ix86_ffreep
=yes
24921 echo "configure: failed program was" >&5
24924 rm -f conftest.o conftest.s
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24928 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24929 if test $gcc_cv_as_ix86_ffreep = yes; then
24931 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24936 $as_echo_n "checking assembler for .quad directive... " >&6; }
24937 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24938 $as_echo_n "(cached) " >&6
24940 gcc_cv_as_ix86_quad
=no
24941 if test x
$gcc_cv_as != x
; then
24942 $as_echo '.quad 0' > conftest.s
24943 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24945 (eval $ac_try) 2>&5
24947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24948 test $ac_status = 0; }; }
24950 gcc_cv_as_ix86_quad
=yes
24952 echo "configure: failed program was" >&5
24955 rm -f conftest.o conftest.s
24958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24959 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24960 if test $gcc_cv_as_ix86_quad = yes; then
24962 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24967 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24968 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24969 $as_echo_n "(cached) " >&6
24971 gcc_cv_as_ix86_sahf
=no
24972 if test x
$gcc_cv_as != x
; then
24975 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24977 (eval $ac_try) 2>&5
24979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24980 test $ac_status = 0; }; }
24982 gcc_cv_as_ix86_sahf
=yes
24984 echo "configure: failed program was" >&5
24987 rm -f conftest.o conftest.s
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24991 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24992 if test $gcc_cv_as_ix86_sahf = yes; then
24994 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24999 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25000 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25001 $as_echo_n "(cached) " >&6
25003 gcc_cv_as_ix86_interunit_movq
=no
25004 if test x
$gcc_cv_as != x
; then
25007 movq %rax, %xmm0' > conftest.s
25008 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25010 (eval $ac_try) 2>&5
25012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25013 test $ac_status = 0; }; }
25015 gcc_cv_as_ix86_interunit_movq
=yes
25017 echo "configure: failed program was" >&5
25020 rm -f conftest.o conftest.s
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25024 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25027 cat >>confdefs.h
<<_ACEOF
25028 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25033 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25034 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25035 $as_echo_n "(cached) " >&6
25037 gcc_cv_as_ix86_hle
=no
25038 if test x
$gcc_cv_as != x
; then
25039 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25040 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25042 (eval $ac_try) 2>&5
25044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25045 test $ac_status = 0; }; }
25047 gcc_cv_as_ix86_hle
=yes
25049 echo "configure: failed program was" >&5
25052 rm -f conftest.o conftest.s
25055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25056 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25057 if test $gcc_cv_as_ix86_hle = yes; then
25059 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25064 $as_echo_n "checking assembler for swap suffix... " >&6; }
25065 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25066 $as_echo_n "(cached) " >&6
25068 gcc_cv_as_ix86_swap
=no
25069 if test x
$gcc_cv_as != x
; then
25070 $as_echo 'movl.s %esp, %ebp' > conftest.s
25071 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25073 (eval $ac_try) 2>&5
25075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25076 test $ac_status = 0; }; }
25078 gcc_cv_as_ix86_swap
=yes
25080 echo "configure: failed program was" >&5
25083 rm -f conftest.o conftest.s
25086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25087 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25088 if test $gcc_cv_as_ix86_swap = yes; then
25090 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25095 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25096 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25097 $as_echo_n "(cached) " >&6
25099 gcc_cv_as_ix86_diff_sect_delta
=no
25100 if test x
$gcc_cv_as != x
; then
25101 $as_echo '.section .rodata
25107 .L2: nop' > conftest.s
25108 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25110 (eval $ac_try) 2>&5
25112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25113 test $ac_status = 0; }; }
25115 gcc_cv_as_ix86_diff_sect_delta
=yes
25117 echo "configure: failed program was" >&5
25120 rm -f conftest.o conftest.s
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25124 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25125 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25127 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25131 # These two are used unconditionally by i386.[ch]; it is to be defined
25132 # to 1 if the feature is present, 0 otherwise.
25133 as_ix86_gotoff_in_data_opt
=
25134 if test x
$gas = xyes
; then
25135 as_ix86_gotoff_in_data_opt
="--32"
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25138 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25139 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25140 $as_echo_n "(cached) " >&6
25142 gcc_cv_as_ix86_gotoff_in_data
=no
25143 if test $in_tree_gas = yes; then
25144 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25145 then gcc_cv_as_ix86_gotoff_in_data
=yes
25147 elif test x
$gcc_cv_as != x
; then
25152 .long .L0@GOTOFF' > conftest.s
25153 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25155 (eval $ac_try) 2>&5
25157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25158 test $ac_status = 0; }; }
25160 gcc_cv_as_ix86_gotoff_in_data
=yes
25162 echo "configure: failed program was" >&5
25165 rm -f conftest.o conftest.s
25168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25169 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25172 cat >>confdefs.h
<<_ACEOF
25173 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25178 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25179 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25180 $as_echo_n "(cached) " >&6
25182 gcc_cv_as_ix86_rep_lock_prefix
=no
25183 if test x
$gcc_cv_as != x
; then
25184 $as_echo 'rep movsl
25189 lock addl %edi, (%eax,%esi)
25190 lock orl $0, (%esp)' > conftest.s
25191 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25193 (eval $ac_try) 2>&5
25195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25196 test $ac_status = 0; }; }
25198 gcc_cv_as_ix86_rep_lock_prefix
=yes
25200 echo "configure: failed program was" >&5
25203 rm -f conftest.o conftest.s
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25207 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25208 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25210 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25215 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25216 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25217 $as_echo_n "(cached) " >&6
25219 gcc_cv_as_ix86_ud2
=no
25220 if test x
$gcc_cv_as != x
; then
25221 $as_echo 'ud2' > conftest.s
25222 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25224 (eval $ac_try) 2>&5
25226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25227 test $ac_status = 0; }; }
25229 gcc_cv_as_ix86_ud2
=yes
25231 echo "configure: failed program was" >&5
25234 rm -f conftest.o conftest.s
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25238 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25239 if test $gcc_cv_as_ix86_ud2 = yes; then
25241 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25246 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25247 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25248 $as_echo_n "(cached) " >&6
25250 gcc_cv_as_ix86_tlsgdplt
=no
25251 if test x
$gcc_cv_as != x
; then
25252 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25253 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25255 (eval $ac_try) 2>&5
25257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25258 test $ac_status = 0; }; }
25260 if test x
$gcc_cv_ld != x \
25261 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25262 gcc_cv_as_ix86_tlsgdplt
=yes
25266 echo "configure: failed program was" >&5
25269 rm -f conftest.o conftest.s
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25273 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25274 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25276 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25281 .section .tdata,"aw'$tls_section_flag'",@progbits
25283 .section .text,"ax",@progbits
25284 call tls_ld@tlsldmplt'
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25286 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25287 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25288 $as_echo_n "(cached) " >&6
25290 gcc_cv_as_ix86_tlsldmplt
=no
25291 if test x
$gcc_cv_as != x
; then
25292 $as_echo "$conftest_s" > conftest.s
25293 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25295 (eval $ac_try) 2>&5
25297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25298 test $ac_status = 0; }; }
25300 if test x
$gcc_cv_ld != x \
25301 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25302 gcc_cv_as_ix86_tlsldmplt
=yes
25306 echo "configure: failed program was" >&5
25309 rm -f conftest.o conftest.s
25312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25313 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25316 cat >>confdefs.h
<<_ACEOF
25317 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25321 # Enforce 32-bit output with gas and gld.
25322 if test x
$gas = xyes
; then
25323 as_ix86_tls_ldm_opt
="--32"
25325 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25326 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
25327 ld_ix86_tls_ldm_opt
="-melf_i386_sol2"
25329 ld_ix86_tls_ldm_opt
="-melf_i386"
25333 .section .text,"ax",@progbits
25335 .type _start, @function
25337 leal value@tlsldm(%ebx), %eax
25338 call ___tls_get_addr@plt
25340 .section .tdata,"aw'$tls_section_flag'",@progbits
25341 .type value, @object
25343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25344 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25345 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25346 $as_echo_n "(cached) " >&6
25348 gcc_cv_as_ix86_tlsldm
=no
25349 if test x
$gcc_cv_as != x
; then
25350 $as_echo "$conftest_s" > conftest.s
25351 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25353 (eval $ac_try) 2>&5
25355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25356 test $ac_status = 0; }; }
25358 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25359 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
25360 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
25361 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
25362 gcc_cv_as_ix86_tlsldm
=yes
25367 echo "configure: failed program was" >&5
25370 rm -f conftest.o conftest.s
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25374 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25377 cat >>confdefs.h
<<_ACEOF
25378 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25386 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25387 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25388 $as_echo_n "(cached) " >&6
25390 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25391 if test $in_tree_gas = yes; then
25392 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25393 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25395 elif test x
$gcc_cv_as != x
; then
25397 addl r15 = @ltoffx(x#), gp
25399 ld8.mov r16 = [r15], x#' > conftest.s
25400 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25402 (eval $ac_try) 2>&5
25404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25405 test $ac_status = 0; }; }
25407 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25409 echo "configure: failed program was" >&5
25412 rm -f conftest.o conftest.s
25415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25416 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25417 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25419 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25427 *-*-aix*) conftest_s
=' .machine "pwr5"
25431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25432 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25433 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25434 $as_echo_n "(cached) " >&6
25436 gcc_cv_as_machine_directive
=no
25437 if test x
$gcc_cv_as != x
; then
25438 $as_echo ' .machine ppc7400' > conftest.s
25439 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25441 (eval $ac_try) 2>&5
25443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25444 test $ac_status = 0; }; }
25446 gcc_cv_as_machine_directive
=yes
25448 echo "configure: failed program was" >&5
25451 rm -f conftest.o conftest.s
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25455 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25457 if test x
$gcc_cv_as_machine_directive != xyes
; then
25458 echo "*** This target requires an assembler supporting \".machine\"" >&2
25459 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25460 test x
$build = x
$target && exit 1
25464 *) conftest_s
=' .machine power4
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25470 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25471 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25472 $as_echo_n "(cached) " >&6
25474 gcc_cv_as_powerpc_mfcrf
=no
25475 if test $in_tree_gas = yes; then
25476 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25477 then gcc_cv_as_powerpc_mfcrf
=yes
25479 elif test x
$gcc_cv_as != x
; then
25480 $as_echo "$conftest_s" > conftest.s
25481 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25483 (eval $ac_try) 2>&5
25485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25486 test $ac_status = 0; }; }
25488 gcc_cv_as_powerpc_mfcrf
=yes
25490 echo "configure: failed program was" >&5
25493 rm -f conftest.o conftest.s
25496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25497 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25498 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25500 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25505 *-*-aix*) conftest_s
=' .machine "pwr5"
25508 *) conftest_s
=' .machine power5
25513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25514 $as_echo_n "checking assembler for popcntb support... " >&6; }
25515 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25516 $as_echo_n "(cached) " >&6
25518 gcc_cv_as_powerpc_popcntb
=no
25519 if test $in_tree_gas = yes; then
25520 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25521 then gcc_cv_as_powerpc_popcntb
=yes
25523 elif test x
$gcc_cv_as != x
; then
25524 $as_echo "$conftest_s" > conftest.s
25525 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25527 (eval $ac_try) 2>&5
25529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25530 test $ac_status = 0; }; }
25532 gcc_cv_as_powerpc_popcntb
=yes
25534 echo "configure: failed program was" >&5
25537 rm -f conftest.o conftest.s
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25541 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25542 if test $gcc_cv_as_powerpc_popcntb = yes; then
25544 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25549 *-*-aix*) conftest_s
=' .machine "pwr5x"
25552 *) conftest_s
=' .machine power5
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25558 $as_echo_n "checking assembler for fp round support... " >&6; }
25559 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25560 $as_echo_n "(cached) " >&6
25562 gcc_cv_as_powerpc_fprnd
=no
25563 if test $in_tree_gas = yes; then
25564 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25565 then gcc_cv_as_powerpc_fprnd
=yes
25567 elif test x
$gcc_cv_as != x
; then
25568 $as_echo "$conftest_s" > conftest.s
25569 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25571 (eval $ac_try) 2>&5
25573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25574 test $ac_status = 0; }; }
25576 gcc_cv_as_powerpc_fprnd
=yes
25578 echo "configure: failed program was" >&5
25581 rm -f conftest.o conftest.s
25584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25585 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25586 if test $gcc_cv_as_powerpc_fprnd = yes; then
25588 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25593 *-*-aix*) conftest_s
=' .machine "pwr6"
25596 *) conftest_s
=' .machine power6
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25602 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25603 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25604 $as_echo_n "(cached) " >&6
25606 gcc_cv_as_powerpc_mfpgpr
=no
25607 if test $in_tree_gas = yes; then
25608 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25609 then gcc_cv_as_powerpc_mfpgpr
=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 -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_mfpgpr
=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_mfpgpr" >&5
25629 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25630 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25632 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25637 *-*-aix*) conftest_s
=' .csect .text[PR]
25639 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25643 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25644 *) conftest_s
=' .text
25646 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25650 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25651 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25652 $as_echo_n "(cached) " >&6
25654 gcc_cv_as_powerpc_rel16
=no
25655 if test $in_tree_gas = yes; then
25656 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25657 then gcc_cv_as_powerpc_rel16
=yes
25659 elif test x
$gcc_cv_as != x
; then
25660 $as_echo "$conftest_s" > conftest.s
25661 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25663 (eval $ac_try) 2>&5
25665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25666 test $ac_status = 0; }; }
25668 gcc_cv_as_powerpc_rel16
=yes
25670 echo "configure: failed program was" >&5
25673 rm -f conftest.o conftest.s
25676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25677 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25678 if test $gcc_cv_as_powerpc_rel16 = yes; then
25680 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25685 *-*-aix*) conftest_s
=' .machine "pwr6"
25688 *) conftest_s
=' .machine power6
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25694 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25695 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25696 $as_echo_n "(cached) " >&6
25698 gcc_cv_as_powerpc_cmpb
=no
25699 if test $in_tree_gas = yes; then
25700 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25701 then gcc_cv_as_powerpc_cmpb
=yes
25703 elif test x
$gcc_cv_as != x
; then
25704 $as_echo "$conftest_s" > conftest.s
25705 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25707 (eval $ac_try) 2>&5
25709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25710 test $ac_status = 0; }; }
25712 gcc_cv_as_powerpc_cmpb
=yes
25714 echo "configure: failed program was" >&5
25717 rm -f conftest.o conftest.s
25720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25721 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25722 if test $gcc_cv_as_powerpc_cmpb = yes; then
25724 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25729 *-*-aix*) conftest_s
=' .machine "pwr6"
25732 *) conftest_s
=' .machine power6
25737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25738 $as_echo_n "checking assembler for decimal float support... " >&6; }
25739 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25740 $as_echo_n "(cached) " >&6
25742 gcc_cv_as_powerpc_dfp
=no
25743 if test $in_tree_gas = yes; then
25744 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25745 then gcc_cv_as_powerpc_dfp
=yes
25747 elif test x
$gcc_cv_as != x
; then
25748 $as_echo "$conftest_s" > conftest.s
25749 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25751 (eval $ac_try) 2>&5
25753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25754 test $ac_status = 0; }; }
25756 gcc_cv_as_powerpc_dfp
=yes
25758 echo "configure: failed program was" >&5
25761 rm -f conftest.o conftest.s
25764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25765 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25766 if test $gcc_cv_as_powerpc_dfp = yes; then
25768 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25773 *-*-aix*) conftest_s
=' .machine "pwr7"
25776 *) conftest_s
=' .machine power7
25781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25782 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25783 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25784 $as_echo_n "(cached) " >&6
25786 gcc_cv_as_powerpc_vsx
=no
25787 if test $in_tree_gas = yes; then
25788 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25789 then gcc_cv_as_powerpc_vsx
=yes
25791 elif test x
$gcc_cv_as != x
; then
25792 $as_echo "$conftest_s" > conftest.s
25793 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25795 (eval $ac_try) 2>&5
25797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25798 test $ac_status = 0; }; }
25800 gcc_cv_as_powerpc_vsx
=yes
25802 echo "configure: failed program was" >&5
25805 rm -f conftest.o conftest.s
25808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25809 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25810 if test $gcc_cv_as_powerpc_vsx = yes; then
25812 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25817 *-*-aix*) conftest_s
=' .machine "pwr7"
25820 *) conftest_s
=' .machine power7
25825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25826 $as_echo_n "checking assembler for popcntd support... " >&6; }
25827 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25828 $as_echo_n "(cached) " >&6
25830 gcc_cv_as_powerpc_popcntd
=no
25831 if test $in_tree_gas = yes; then
25832 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25833 then gcc_cv_as_powerpc_popcntd
=yes
25835 elif test x
$gcc_cv_as != x
; then
25836 $as_echo "$conftest_s" > conftest.s
25837 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25839 (eval $ac_try) 2>&5
25841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25842 test $ac_status = 0; }; }
25844 gcc_cv_as_powerpc_popcntd
=yes
25846 echo "configure: failed program was" >&5
25849 rm -f conftest.o conftest.s
25852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25853 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25854 if test $gcc_cv_as_powerpc_popcntd = yes; then
25856 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25861 *-*-aix*) conftest_s
=' .machine "pwr8"
25862 .csect .text[PR]';;
25863 *) conftest_s
=' .machine power8
25867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25868 $as_echo_n "checking assembler for power8 support... " >&6; }
25869 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25870 $as_echo_n "(cached) " >&6
25872 gcc_cv_as_powerpc_power8
=no
25873 if test $in_tree_gas = yes; then
25874 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25875 then gcc_cv_as_powerpc_power8
=yes
25877 elif test x
$gcc_cv_as != x
; then
25878 $as_echo "$conftest_s" > conftest.s
25879 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25881 (eval $ac_try) 2>&5
25883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25884 test $ac_status = 0; }; }
25886 gcc_cv_as_powerpc_power8
=yes
25888 echo "configure: failed program was" >&5
25891 rm -f conftest.o conftest.s
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25895 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25896 if test $gcc_cv_as_powerpc_power8 = yes; then
25898 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25903 *-*-aix*) conftest_s
=' .csect .text[PR]
25905 *) conftest_s
=' .text
25909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25910 $as_echo_n "checking assembler for lwsync support... " >&6; }
25911 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25912 $as_echo_n "(cached) " >&6
25914 gcc_cv_as_powerpc_lwsync
=no
25915 if test $in_tree_gas = yes; then
25916 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25917 then gcc_cv_as_powerpc_lwsync
=yes
25919 elif test x
$gcc_cv_as != x
; then
25920 $as_echo "$conftest_s" > conftest.s
25921 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25923 (eval $ac_try) 2>&5
25925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25926 test $ac_status = 0; }; }
25928 gcc_cv_as_powerpc_lwsync
=yes
25930 echo "configure: failed program was" >&5
25933 rm -f conftest.o conftest.s
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25937 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25938 if test $gcc_cv_as_powerpc_lwsync = yes; then
25940 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25945 *-*-aix*) conftest_s
=' .machine "476"
25948 *) conftest_s
=' .machine "476"
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25954 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25955 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25956 $as_echo_n "(cached) " >&6
25958 gcc_cv_as_powerpc_dci
=no
25959 if test $in_tree_gas = yes; then
25960 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25961 then gcc_cv_as_powerpc_dci
=yes
25963 elif test x
$gcc_cv_as != x
; then
25964 $as_echo "$conftest_s" > conftest.s
25965 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25967 (eval $ac_try) 2>&5
25969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25970 test $ac_status = 0; }; }
25972 gcc_cv_as_powerpc_dci
=yes
25974 echo "configure: failed program was" >&5
25977 rm -f conftest.o conftest.s
25980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25981 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25982 if test $gcc_cv_as_powerpc_dci = yes; then
25984 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25989 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25990 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25991 $as_echo_n "(cached) " >&6
25993 gcc_cv_as_powerpc_gnu_attribute
=no
25994 if test $in_tree_gas = yes; then
25995 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25996 then gcc_cv_as_powerpc_gnu_attribute
=yes
25998 elif test x
$gcc_cv_as != x
; then
25999 $as_echo '.gnu_attribute 4,1' > conftest.s
26000 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26002 (eval $ac_try) 2>&5
26004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26005 test $ac_status = 0; }; }
26007 gcc_cv_as_powerpc_gnu_attribute
=yes
26009 echo "configure: failed program was" >&5
26012 rm -f conftest.o conftest.s
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26016 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26017 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26019 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26024 $as_echo_n "checking assembler for tls marker support... " >&6; }
26025 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26026 $as_echo_n "(cached) " >&6
26028 gcc_cv_as_powerpc_tls_markers
=no
26029 if test $in_tree_gas = yes; then
26030 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26031 then gcc_cv_as_powerpc_tls_markers
=yes
26033 elif test x
$gcc_cv_as != x
; then
26034 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26035 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26037 (eval $ac_try) 2>&5
26039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26040 test $ac_status = 0; }; }
26042 gcc_cv_as_powerpc_tls_markers
=yes
26044 echo "configure: failed program was" >&5
26047 rm -f conftest.o conftest.s
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26051 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26052 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26054 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26061 $as_echo_n "checking assembler for .ref support... " >&6; }
26062 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26063 $as_echo_n "(cached) " >&6
26065 gcc_cv_as_aix_ref
=no
26066 if test $in_tree_gas = yes; then
26067 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26068 then gcc_cv_as_aix_ref
=yes
26070 elif test x
$gcc_cv_as != x
; then
26071 $as_echo ' .csect stuff[rw]
26077 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26079 (eval $ac_try) 2>&5
26081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26082 test $ac_status = 0; }; }
26084 gcc_cv_as_aix_ref
=yes
26086 echo "configure: failed program was" >&5
26089 rm -f conftest.o conftest.s
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26093 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26094 if test $gcc_cv_as_aix_ref = yes; then
26096 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26105 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26106 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26107 $as_echo_n "(cached) " >&6
26109 gcc_cv_as_mips_explicit_relocs
=no
26110 if test $in_tree_gas = yes; then
26111 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26112 then gcc_cv_as_mips_explicit_relocs
=yes
26114 elif test x
$gcc_cv_as != x
; then
26115 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26116 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26118 (eval $ac_try) 2>&5
26120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26121 test $ac_status = 0; }; }
26123 gcc_cv_as_mips_explicit_relocs
=yes
26125 echo "configure: failed program was" >&5
26128 rm -f conftest.o conftest.s
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26132 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26133 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26134 if test x
$target_cpu_default = x
26135 then target_cpu_default
=MASK_EXPLICIT_RELOCS
26136 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26140 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26141 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26142 $as_echo_n "(cached) " >&6
26144 gcc_cv_as_mips_no_shared
=no
26145 if test $in_tree_gas = yes; then
26146 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26147 then gcc_cv_as_mips_no_shared
=yes
26149 elif test x
$gcc_cv_as != x
; then
26150 $as_echo 'nop' > conftest.s
26151 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26153 (eval $ac_try) 2>&5
26155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26156 test $ac_status = 0; }; }
26158 gcc_cv_as_mips_no_shared
=yes
26160 echo "configure: failed program was" >&5
26163 rm -f conftest.o conftest.s
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26167 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26168 if test $gcc_cv_as_mips_no_shared = yes; then
26170 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26175 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26176 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26177 $as_echo_n "(cached) " >&6
26179 gcc_cv_as_mips_gnu_attribute
=no
26180 if test $in_tree_gas = yes; then
26181 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26182 then gcc_cv_as_mips_gnu_attribute
=yes
26184 elif test x
$gcc_cv_as != x
; then
26185 $as_echo '.gnu_attribute 4,1' > conftest.s
26186 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26188 (eval $ac_try) 2>&5
26190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26191 test $ac_status = 0; }; }
26193 gcc_cv_as_mips_gnu_attribute
=yes
26195 echo "configure: failed program was" >&5
26198 rm -f conftest.o conftest.s
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26202 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26203 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26205 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26210 $as_echo_n "checking assembler for .module support... " >&6; }
26211 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26212 $as_echo_n "(cached) " >&6
26214 gcc_cv_as_mips_dot_module
=no
26215 if test x
$gcc_cv_as != x
; then
26216 $as_echo '.module fp=32' > conftest.s
26217 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26219 (eval $ac_try) 2>&5
26221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26222 test $ac_status = 0; }; }
26224 gcc_cv_as_mips_dot_module
=yes
26226 echo "configure: failed program was" >&5
26229 rm -f conftest.o conftest.s
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26233 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26234 if test $gcc_cv_as_mips_dot_module = yes; then
26236 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26239 if test x
$gcc_cv_as_mips_dot_module = xno \
26240 && test x
$with_fp_32 != x
; then
26241 as_fn_error
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26245 $as_echo_n "checking assembler for .micromips support... " >&6; }
26246 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26247 $as_echo_n "(cached) " >&6
26249 gcc_cv_as_micromips_support
=no
26250 if test x
$gcc_cv_as != x
; then
26251 $as_echo '.set micromips' > conftest.s
26252 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26254 (eval $ac_try) 2>&5
26256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26257 test $ac_status = 0; }; }
26259 gcc_cv_as_micromips_support
=yes
26261 echo "configure: failed program was" >&5
26264 rm -f conftest.o conftest.s
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26268 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26269 if test $gcc_cv_as_micromips_support = yes; then
26271 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26276 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26277 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26278 $as_echo_n "(cached) " >&6
26280 gcc_cv_as_mips_dtprelword
=no
26281 if test $in_tree_gas = yes; then
26282 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26283 then gcc_cv_as_mips_dtprelword
=yes
26285 elif test x
$gcc_cv_as != x
; then
26286 $as_echo '.section .tdata,"awT",@progbits
26290 .dtprelword x+0x8000' > conftest.s
26291 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26293 (eval $ac_try) 2>&5
26295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26296 test $ac_status = 0; }; }
26298 gcc_cv_as_mips_dtprelword
=yes
26300 echo "configure: failed program was" >&5
26303 rm -f conftest.o conftest.s
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26307 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26308 if test $gcc_cv_as_mips_dtprelword = yes; then
26310 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26315 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26316 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26317 $as_echo_n "(cached) " >&6
26319 gcc_cv_as_mips_dspr1_mult
=no
26320 if test x
$gcc_cv_as != x
; then
26321 $as_echo ' .set mips32r2
26329 multu $ac3,$4,$5' > conftest.s
26330 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26332 (eval $ac_try) 2>&5
26334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26335 test $ac_status = 0; }; }
26337 gcc_cv_as_mips_dspr1_mult
=yes
26339 echo "configure: failed program was" >&5
26342 rm -f conftest.o conftest.s
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26346 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26347 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26349 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26354 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26355 gcc_cv_as_ld_jalr_reloc
=no
26356 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26357 if test $in_tree_ld = yes ; then
26358 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 \
26359 && test $in_tree_ld_is_elf = yes; then
26360 gcc_cv_as_ld_jalr_reloc
=yes
26362 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26363 echo ' .ent x' > conftest.s
26364 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26365 echo ' lw $25,%call16(y)($28)' >> conftest.s
26366 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26367 echo '1: jalr $25' >> conftest.s
26368 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26369 echo '1: jalr $25' >> conftest.s
26370 echo ' .end x' >> conftest.s
26371 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
26372 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
26373 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
26374 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
26375 gcc_cv_as_ld_jalr_reloc
=yes
26381 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26382 if test x
$target_cpu_default = x
; then
26383 target_cpu_default
=MASK_RELAX_PIC_CALLS
26385 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26389 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26392 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26393 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26394 $as_echo_n "(cached) " >&6
26396 gcc_cv_ld_mips_personality_relaxation
=no
26397 if test $in_tree_ld = yes ; then
26398 if test "$gcc_cv_gld_major_version" -eq 2 \
26399 -a "$gcc_cv_gld_minor_version" -ge 21 \
26400 -o "$gcc_cv_gld_major_version" -gt 2; then
26401 gcc_cv_ld_mips_personality_relaxation
=yes
26403 elif test x
$gcc_cv_as != x \
26404 -a x
$gcc_cv_ld != x \
26405 -a x
$gcc_cv_readelf != x
; then
26406 cat > conftest.s
<<EOF
26408 .cfi_personality 0x80,indirect_ptr
26415 .section .data,"aw",@progbits
26419 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26420 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26421 if $gcc_cv_readelf -d conftest
2>&1 \
26422 |
grep TEXTREL
> /dev
/null
2>&1; then
26424 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26425 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26428 gcc_cv_ld_mips_personality_relaxation
=yes
26432 rm -f conftest.s conftest.o conftest
26434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26435 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26436 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26438 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26443 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26444 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26445 $as_echo_n "(cached) " >&6
26447 gcc_cv_as_mips_nan
=no
26448 if test x
$gcc_cv_as != x
; then
26449 $as_echo '' > conftest.s
26450 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26452 (eval $ac_try) 2>&5
26454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26455 test $ac_status = 0; }; }
26457 gcc_cv_as_mips_nan
=yes
26459 echo "configure: failed program was" >&5
26462 rm -f conftest.o conftest.s
26465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26466 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26467 if test $gcc_cv_as_mips_nan = yes; then
26469 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26472 if test x
$gcc_cv_as_mips_nan = xno \
26473 && test x
$with_nan != x
; then
26474 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26479 # Mips and HP-UX need the GNU assembler.
26480 # Linux on IA64 might be able to use the Intel assembler.
26483 mips
*-*-* |
*-*-hpux* )
26484 if test x
$gas_flag = xyes \
26485 ||
test x
"$host" != x
"$build" \
26486 ||
test ! -x "$gcc_cv_as" \
26487 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26490 echo "*** This configuration requires the GNU assembler" >&2
26496 # ??? Not all targets support dwarf2 debug_line, even within a version
26497 # of gas. Moreover, we need to emit a valid instruction to trigger any
26498 # info to the output file. So, as supported targets are added to gas 2.11,
26499 # add some instruction here to (also) show we expect this might work.
26500 # ??? Once 2.11 is released, probably need to add first known working
26501 # version to the per-target configury.
26502 case "$cpu_type" in
26503 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26504 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26505 | xstormy16 | xtensa
)
26515 if test x
"$insn" != x
; then
26517 .file 1 \"conftest.s\"
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26521 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26522 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26523 $as_echo_n "(cached) " >&6
26525 gcc_cv_as_dwarf2_debug_line
=no
26526 if test $in_tree_gas = yes; then
26527 if test $in_tree_gas_is_elf = yes \
26528 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26529 then gcc_cv_as_dwarf2_debug_line
=yes
26531 elif test x
$gcc_cv_as != x
; then
26532 $as_echo "$conftest_s" > conftest.s
26533 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26535 (eval $ac_try) 2>&5
26537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26538 test $ac_status = 0; }; }
26540 if test x
$gcc_cv_objdump != x \
26541 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26542 |
grep debug_line
> /dev
/null
2>&1; then
26543 gcc_cv_as_dwarf2_debug_line
=yes
26546 echo "configure: failed program was" >&5
26549 rm -f conftest.o conftest.s
26552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26553 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26556 # The .debug_line file table must be in the exact order that
26557 # we specified the files, since these indices are also used
26558 # by DW_AT_decl_file. Approximate this test by testing if
26559 # the assembler bitches if the same index is assigned twice.
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26561 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26562 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26563 $as_echo_n "(cached) " >&6
26565 gcc_cv_as_dwarf2_file_buggy
=no
26566 if test x
$gcc_cv_as != x
; then
26567 $as_echo ' .file 1 "foo.s"
26568 .file 1 "bar.s"' > conftest.s
26569 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26571 (eval $ac_try) 2>&5
26573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26574 test $ac_status = 0; }; }
26576 gcc_cv_as_dwarf2_file_buggy
=yes
26578 echo "configure: failed program was" >&5
26581 rm -f conftest.o conftest.s
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26585 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26588 if test $gcc_cv_as_dwarf2_debug_line = yes \
26589 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26591 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26596 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26597 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26598 $as_echo_n "(cached) " >&6
26600 gcc_cv_as_gdwarf2_flag
=no
26601 if test $in_tree_gas = yes; then
26602 if test $in_tree_gas_is_elf = yes \
26603 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26604 then gcc_cv_as_gdwarf2_flag
=yes
26606 elif test x
$gcc_cv_as != x
; then
26607 $as_echo "$insn" > conftest.s
26608 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26610 (eval $ac_try) 2>&5
26612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26613 test $ac_status = 0; }; }
26615 gcc_cv_as_gdwarf2_flag
=yes
26617 echo "configure: failed program was" >&5
26620 rm -f conftest.o conftest.s
26623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26624 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26625 if test $gcc_cv_as_gdwarf2_flag = yes; then
26627 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26632 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26633 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26634 $as_echo_n "(cached) " >&6
26636 gcc_cv_as_gstabs_flag
=no
26637 if test $in_tree_gas = yes; then
26638 if test $in_tree_gas_is_elf = yes \
26639 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26640 then gcc_cv_as_gstabs_flag
=yes
26642 elif test x
$gcc_cv_as != x
; then
26643 $as_echo "$insn" > conftest.s
26644 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26646 (eval $ac_try) 2>&5
26648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26649 test $ac_status = 0; }; }
26651 gcc_cv_as_gstabs_flag
=yes
26653 echo "configure: failed program was" >&5
26656 rm -f conftest.o conftest.s
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26660 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26661 if test $gcc_cv_as_gstabs_flag = yes; then
26663 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26668 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26669 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26670 $as_echo_n "(cached) " >&6
26672 gcc_cv_as_debug_prefix_map_flag
=no
26673 if test $in_tree_gas = yes; then
26674 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26675 then gcc_cv_as_debug_prefix_map_flag
=yes
26677 elif test x
$gcc_cv_as != x
; then
26678 $as_echo "$insn" > conftest.s
26679 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26681 (eval $ac_try) 2>&5
26683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26684 test $ac_status = 0; }; }
26686 gcc_cv_as_debug_prefix_map_flag
=yes
26688 echo "configure: failed program was" >&5
26691 rm -f conftest.o conftest.s
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26695 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26696 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26698 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
26704 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
26705 if test "${gcc_cv_as_compress_debug+set}" = set; then :
26706 $as_echo_n "(cached) " >&6
26708 gcc_cv_as_compress_debug
=no
26709 if test x
$gcc_cv_as != x
; then
26710 $as_echo '' > conftest.s
26711 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
26712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26713 (eval $ac_try) 2>&5
26715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26716 test $ac_status = 0; }; }
26718 # gas compiled without zlib cannot compress debug sections and warns
26719 # about it, but still exits successfully. So check for this, too.
26720 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
26722 gcc_cv_as_compress_debug
=0
26723 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
26725 gcc_cv_as_compress_debug
=1
26726 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
26727 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
26729 gcc_cv_as_compress_debug
=0
26730 # FIXME: Future gas versions will support ELF gABI style via
26731 # --compress-debug-sections[=type].
26734 echo "configure: failed program was" >&5
26737 rm -f conftest.o conftest.s
26740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
26741 $as_echo "$gcc_cv_as_compress_debug" >&6; }
26744 cat >>confdefs.h
<<_ACEOF
26745 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
26749 cat >>confdefs.h
<<_ACEOF
26750 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
26754 cat >>confdefs.h
<<_ACEOF
26755 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26760 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26761 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26762 $as_echo_n "(cached) " >&6
26764 gcc_cv_as_lcomm_with_alignment
=no
26765 if test x
$gcc_cv_as != x
; then
26766 $as_echo '.lcomm bar,4,16' > conftest.s
26767 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26769 (eval $ac_try) 2>&5
26771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26772 test $ac_status = 0; }; }
26774 gcc_cv_as_lcomm_with_alignment
=yes
26776 echo "configure: failed program was" >&5
26779 rm -f conftest.o conftest.s
26782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26783 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26784 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26786 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26790 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26791 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26792 && test "$prefix" != "NONE"; then
26794 cat >>confdefs.h
<<_ACEOF
26795 #define PREFIX_INCLUDE_DIR "$prefix/include"
26800 # Determine the version of glibc, if any, used on the target.
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26802 $as_echo_n "checking for target glibc version... " >&6; }
26804 # Check whether --with-glibc-version was given.
26805 if test "${with_glibc_version+set}" = set; then :
26806 withval
=$with_glibc_version;
26807 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26808 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26809 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26811 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
26815 glibc_version_major
=0
26816 glibc_version_minor
=0
26817 if test -f $target_header_dir/features.h \
26818 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26819 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26820 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26821 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26826 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26828 cat >>confdefs.h
<<_ACEOF
26829 #define TARGET_GLIBC_MAJOR $glibc_version_major
26833 cat >>confdefs.h
<<_ACEOF
26834 #define TARGET_GLIBC_MINOR $glibc_version_minor
26838 # Check whether --enable-gnu-unique-object was given.
26839 if test "${enable_gnu_unique_object+set}" = set; then :
26840 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26842 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26843 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26847 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26848 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26849 $as_echo_n "(cached) " >&6
26851 gcc_cv_as_gnu_unique_object
=no
26852 if test $in_tree_gas = yes; then
26853 if test $in_tree_gas_is_elf = yes \
26854 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26855 then gcc_cv_as_gnu_unique_object
=yes
26857 elif test x
$gcc_cv_as != x
; then
26858 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26859 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26861 (eval $ac_try) 2>&5
26863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26864 test $ac_status = 0; }; }
26866 gcc_cv_as_gnu_unique_object
=yes
26868 echo "configure: failed program was" >&5
26871 rm -f conftest.o conftest.s
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26875 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26876 if test $gcc_cv_as_gnu_unique_object = yes; then
26877 # We need to unquote above to to use the definition from config.gcc.
26878 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26880 if test $glibc_version_major -gt 2 \
26881 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26882 enable_gnu_unique_object
=yes
26888 if test x
$enable_gnu_unique_object = xyes
; then
26890 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26895 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26896 if test "${gcc_cv_as_line_zero+set}" = set; then :
26897 $as_echo_n "(cached) " >&6
26899 gcc_cv_as_line_zero
=no
26900 if test $in_tree_gas = yes; then
26901 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26902 then gcc_cv_as_line_zero
=yes
26904 elif test "x$gcc_cv_as" != x
; then
26905 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26906 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26908 (eval $ac_try) 2>&5
26910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26911 test $ac_status = 0; }; } &&
26912 test "x`cat conftest.out`" = x
26914 gcc_cv_as_line_zero
=yes
26916 echo "configure: failed program was" >&5
26918 echo "configure: error output was" >&5
26919 cat conftest.out
>&5
26921 rm -f conftest.o conftest.s conftest.out
26924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26925 $as_echo "$gcc_cv_as_line_zero" >&6; }
26926 if test "x$gcc_cv_as_line_zero" = xyes
; then
26928 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26933 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26934 gcc_cv_ld_eh_frame_hdr
=no
26935 if test $in_tree_ld = yes ; then
26936 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 \
26937 && test $in_tree_ld_is_elf = yes; then
26938 gcc_cv_ld_eh_frame_hdr
=yes
26940 elif test x
$gcc_cv_ld != x
; then
26941 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26942 # Check if linker supports --eh-frame-hdr option
26943 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26944 gcc_cv_ld_eh_frame_hdr
=yes
26949 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26950 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26951 gcc_cv_ld_eh_frame_hdr
=yes
26958 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26960 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26964 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26967 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26968 gcc_cv_ld_eh_frame_ciev3
=no
26969 if test $in_tree_ld = yes ; then
26970 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 \
26971 && test $in_tree_ld_is_elf = yes; then
26972 gcc_cv_ld_eh_frame_ciev3
=yes
26974 elif test x
$gcc_cv_ld != x
; then
26975 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26976 gcc_cv_ld_eh_frame_ciev3
=yes
26977 if test 0"$ld_date" -lt 20040513; then
26978 if test -n "$ld_date"; then
26979 # If there was date string, but was earlier than 2004-05-13, fail
26980 gcc_cv_ld_eh_frame_ciev3
=no
26981 elif test "$ld_vers_major" -lt 2; then
26982 gcc_cv_ld_eh_frame_ciev3
=no
26983 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26984 gcc_cv_ld_eh_frame_ciev3
=no
26990 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26991 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
26992 gcc_cv_ld_eh_frame_ciev3
=yes
26999 cat >>confdefs.h
<<_ACEOF
27000 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27004 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27007 $as_echo_n "checking linker position independent executable support... " >&6; }
27009 if test $in_tree_ld = yes ; then
27010 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 \
27011 && test $in_tree_ld_is_elf = yes; then
27014 elif test x
$gcc_cv_ld != x
; then
27015 # Check if linker supports -pie option
27016 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
27020 if test x
"$gcc_cv_ld_pie" = xyes
; then
27022 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27026 $as_echo "$gcc_cv_ld_pie" >&6; }
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27029 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27030 gcc_cv_ld_eh_gc_sections
=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" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
27033 && test $in_tree_ld_is_elf = yes; then
27034 gcc_cv_ld_eh_gc_sections
=yes
27036 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27037 cat > conftest.s
<<EOF
27040 .type _start, @function
27043 .size _start, .-_start
27044 .section .text.foo,"ax",@progbits
27045 .type foo, @function
27049 .section .gcc_except_table.foo,"a",@progbits
27052 .section .eh_frame,"a",@progbits
27055 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27056 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27057 |
grep "gc-sections option ignored" > /dev
/null
; then
27058 gcc_cv_ld_eh_gc_sections
=no
27059 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27060 |
grep gcc_except_table
> /dev
/null
; then
27061 gcc_cv_ld_eh_gc_sections
=yes
27062 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27063 if test x
$gcc_cv_as_comdat_group != xyes
; then
27064 gcc_cv_ld_eh_gc_sections
=no
27065 cat > conftest.s
<<EOF
27068 .type _start, @function
27071 .size _start, .-_start
27072 .section .gnu.linkonce.t.foo,"ax",@progbits
27073 .type foo, @function
27077 .section .gcc_except_table.foo,"a",@progbits
27080 .section .eh_frame,"a",@progbits
27083 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27084 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27085 |
grep "gc-sections option ignored" > /dev
/null
; then
27086 gcc_cv_ld_eh_gc_sections
=no
27087 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27088 |
grep gcc_except_table
> /dev
/null
; then
27089 gcc_cv_ld_eh_gc_sections
=yes
27095 rm -f conftest.s conftest.o conftest
27099 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27100 gcc_cv_ld_eh_gc_sections
=no
27103 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
27105 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27109 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27112 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27113 gcc_cv_ld_eh_gc_sections_bug
=no
27114 if test $in_tree_ld = yes ; then
27115 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 \
27116 && test $in_tree_ld_is_elf = yes; then
27117 gcc_cv_ld_eh_gc_sections_bug
=yes
27119 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
27120 gcc_cv_ld_eh_gc_sections_bug
=yes
27121 cat > conftest.s
<<EOF
27124 .type _start, @function
27127 .size _start, .-_start
27128 .section .text.startup.foo,"ax",@progbits
27129 .type foo, @function
27133 .section .gcc_except_table.foo,"a",@progbits
27136 .section .eh_frame,"a",@progbits
27139 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27140 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27141 |
grep "gc-sections option ignored" > /dev
/null
; then
27143 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27144 |
grep gcc_except_table
> /dev
/null
; then
27145 gcc_cv_ld_eh_gc_sections_bug
=no
27148 rm -f conftest.s conftest.o conftest
27150 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
27152 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27156 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27159 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27160 # gold/gld support compressed debug sections since binutils 2.19/2.21
27161 if test $in_tree_ld = yes ; then
27162 gcc_cv_ld_compress_debug
=0
27163 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 \
27164 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27165 gcc_cv_ld_compress_debug
=2
27166 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
27167 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 \
27168 && test $in_tree_ld_is_elf = yes; then
27169 gcc_cv_ld_compress_debug
=1
27171 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27172 gcc_cv_ld_compress_debug
=1
27173 if test 0"$ld_date" -lt 20050308; then
27174 if test -n "$ld_date"; then
27175 # If there was date string, but was earlier than 2005-03-08, fail
27176 gcc_cv_ld_compress_debug
=0
27177 elif test "$ld_vers_major" -lt 2; then
27178 gcc_cv_ld_compress_debug
=0
27179 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27180 gcc_cv_ld_compress_debug
=0
27183 if test $ld_is_gold = yes; then
27184 gcc_cv_ld_compress_debug
=2
27185 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
27188 case "${target}" in
27190 # Introduced in Solaris 11.2.
27191 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
27192 gcc_cv_ld_compress_debug
=3
27193 gcc_cv_ld_compress_debug_option
="-z compress-sections"
27195 gcc_cv_ld_compress_debug
=0
27199 # Assume linkers other than GNU ld don't support compessed debug
27201 gcc_cv_ld_compress_debug
=0
27206 cat >>confdefs.h
<<_ACEOF
27207 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27211 cat >>confdefs.h
<<_ACEOF
27212 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27216 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27223 $as_echo_n "checking linker --as-needed support... " >&6; }
27224 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27225 $as_echo_n "(cached) " >&6
27227 gcc_cv_ld_as_needed
=no
27228 gcc_cv_ld_as_needed_option
='--as-needed'
27229 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
27230 if test $in_tree_ld = yes ; then
27231 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 \
27232 && test $in_tree_ld_is_elf = yes; then
27233 gcc_cv_ld_as_needed
=yes
27235 elif test x
$gcc_cv_ld != x
; then
27236 # Check if linker supports --as-needed and --no-as-needed options
27237 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
27238 gcc_cv_ld_as_needed
=yes
27241 # Solaris 2 ld always supports -z ignore/-z record.
27243 gcc_cv_ld_as_needed
=yes
27244 gcc_cv_ld_as_needed_option
="-z ignore"
27245 gcc_cv_ld_no_as_needed_option
="-z record"
27250 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27251 # dl_iterate_phdr, i.e. since Solaris 11.
27253 *-*-solaris2.1
[1-9]*)
27255 i?
86-*-* | x86_64-
*-*)
27256 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27257 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27258 gcc_cv_ld_as_needed
=no
27264 gcc_cv_ld_as_needed
=no
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27270 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27271 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
27273 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27276 cat >>confdefs.h
<<_ACEOF
27277 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27281 cat >>confdefs.h
<<_ACEOF
27282 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27288 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27289 saved_LDFLAGS
="$LDFLAGS"
27290 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
27291 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27293 /* end confdefs.h. */
27294 int main(void) {return 0;}
27296 if ac_fn_c_try_link
"$LINENO"; then :
27297 gcc_cv_ld_clearcap
=yes; break
27299 gcc_cv_ld_clearcap
=no
27301 rm -f core conftest.err conftest.
$ac_objext \
27302 conftest
$ac_exeext conftest.
$ac_ext
27304 LDFLAGS
="$saved_LDFLAGS"
27305 if test "x$gcc_cv_ld_clearcap" = xyes
; then
27307 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27309 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27313 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27315 case "$target:$tm_file" in
27316 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
27319 emul_name
="-melf64lppc"
27322 emul_name
="-melf64ppc"
27325 emul_name
="-melf64ppc_fbsd"
27328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27329 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27330 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27331 $as_echo_n "(cached) " >&6
27333 gcc_cv_ld_no_dot_syms
=no
27334 if test x
"$ld_is_gold" = xyes
; then
27335 gcc_cv_ld_no_dot_syms
=yes
27336 elif test $in_tree_ld = yes ; then
27337 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
27338 gcc_cv_ld_no_dot_syms
=yes
27340 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27341 cat > conftest1.s
<<EOF
27345 cat > conftest2.s
<<EOF
27346 .section ".opd","aw"
27349 .type foo,@function
27351 .quad .LEfoo,.TOC.@tocbase,0
27357 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27358 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27359 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
27360 gcc_cv_ld_no_dot_syms
=yes
27362 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27367 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27368 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
27370 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27375 $as_echo_n "checking linker large toc support... " >&6; }
27376 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27377 $as_echo_n "(cached) " >&6
27379 gcc_cv_ld_large_toc
=no
27380 if test x
"$ld_is_gold" = xyes
; then
27381 gcc_cv_ld_large_toc
=yes
27382 elif test $in_tree_ld = yes ; then
27383 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
27384 gcc_cv_ld_large_toc
=yes
27386 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27387 cat > conftest.s
<<EOF
27388 .section ".tbss","awT",@nobits
27394 addis 9,13,ie0@got@tprel@ha
27395 ld 9,ie0@got@tprel@l(9)
27397 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27398 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
27399 gcc_cv_ld_large_toc
=yes
27401 rm -f conftest conftest.o conftest.s
27405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27406 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27407 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27409 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27418 $as_echo_n "checking linker large toc support... " >&6; }
27419 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27420 $as_echo_n "(cached) " >&6
27422 gcc_cv_ld_large_toc
=no
27423 if test x
$gcc_cv_as != x
; then
27424 cat > conftest.s
<<EOF
27434 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
27435 gcc_cv_ld_large_toc
=yes
27437 rm -f conftest conftest.o conftest.s
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27442 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27443 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27445 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27452 $as_echo_n "checking linker --build-id support... " >&6; }
27453 if test "${gcc_cv_ld_buildid+set}" = set; then :
27454 $as_echo_n "(cached) " >&6
27456 gcc_cv_ld_buildid
=no
27457 if test $in_tree_ld = yes ; then
27458 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27459 "$gcc_cv_gld_minor_version" -ge 18 -o \
27460 "$gcc_cv_gld_major_version" -gt 2 \
27461 && test $in_tree_ld_is_elf = yes; then
27462 gcc_cv_ld_buildid
=yes
27464 elif test x
$gcc_cv_ld != x
; then
27465 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
27466 gcc_cv_ld_buildid
=yes
27470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27471 $as_echo "$gcc_cv_ld_buildid" >&6; }
27472 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27474 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27478 # Check whether --enable-linker-build-id was given.
27479 if test "${enable_linker_build_id+set}" = set; then :
27480 enableval
=$enable_linker_build_id;
27482 enable_linker_build_id
=no
27486 if test x
"$enable_linker_build_id" = xyes
; then
27487 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27489 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27493 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27497 # In binutils 2.21, GNU ld gained support for new emulations fully
27498 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27500 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27501 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27502 $as_echo_n "(cached) " >&6
27504 gcc_cv_ld_sol2_emulation
=no
27505 if test $in_tree_ld = yes ; then
27506 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27507 "$gcc_cv_gld_minor_version" -ge 21 -o \
27508 "$gcc_cv_gld_major_version" -gt 2 \
27509 && test $in_tree_ld_is_elf = yes; then
27510 gcc_cv_ld_sol2_emulation
=yes
27512 elif test x
$gcc_cv_ld != x
; then
27513 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
27514 grep _sol2
> /dev
/null
; then
27515 gcc_cv_ld_sol2_emulation
=yes
27519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27520 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27521 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
27523 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27528 $as_echo_n "checking linker --sysroot support... " >&6; }
27529 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27530 $as_echo_n "(cached) " >&6
27532 gcc_cv_ld_sysroot
=no
27533 if test $in_tree_ld = yes ; then
27534 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
27535 gcc_cv_ld_sysroot
=yes
27537 elif test x
$gcc_cv_ld != x
; then
27538 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
27539 gcc_cv_ld_sysroot
=yes
27543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27544 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27545 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
27547 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27551 # Test for stack protector support in target C library.
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27553 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27554 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27555 $as_echo_n "(cached) " >&6
27557 gcc_cv_libc_provides_ssp
=no
27559 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
27560 # glibc 2.4 and later provides __stack_chk_fail and
27561 # either __stack_chk_guard, or TLS access to stack guard canary.
27563 if test $glibc_version_major -gt 2 \
27564 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27565 gcc_cv_libc_provides_ssp
=yes
27568 if test -f $target_header_dir/features.h \
27569 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27570 $target_header_dir/features.h
> /dev
/null
; then
27571 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27572 $target_header_dir/features.h
> /dev
/null
&& \
27573 test -f $target_header_dir/bits
/uClibc_config.h
&& \
27574 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27575 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
27576 gcc_cv_libc_provides_ssp
=yes
27578 # all versions of Bionic support stack protector
27579 elif test -f $target_header_dir/sys
/cdefs.h \
27580 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27581 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
27582 gcc_cv_libc_provides_ssp
=yes
27587 # Avoid complicated tests (see
27588 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27589 # simply assert that glibc does provide this, which is true for all
27590 # realistically usable GNU/Hurd configurations.
27591 gcc_cv_libc_provides_ssp
=yes;;
27592 *-*-darwin* |
*-*-freebsd*)
27593 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27594 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
27595 gcc_cv_libc_provides_ssp
=yes
27597 echo "no __stack_chk_fail on this target"
27601 *) gcc_cv_libc_provides_ssp
=no
;;
27604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27605 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27607 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
27609 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27613 # Test for <sys/sdt.h> on the target.
27615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27616 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27618 if test -f $target_header_dir/sys
/sdt.h
; then
27621 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27625 $as_echo "$have_sys_sdt_h" >&6; }
27627 # Check if TFmode long double should be used by default or not.
27628 # Some glibc targets used DFmode long double, but with glibc 2.4
27629 # and later they can use TFmode.
27631 powerpc
*-*-linux* | \
27632 sparc
*-*-linux* | \
27636 # Check whether --with-long-double-128 was given.
27637 if test "${with_long_double_128+set}" = set; then :
27638 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
27641 if test $glibc_version_major -gt 2 \
27642 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27643 gcc_cv_target_ldbl128
=yes
27646 gcc_cv_target_ldbl128
=no
27647 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27648 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
27649 && gcc_cv_target_ldbl128
=yes
27656 if test x
$gcc_cv_target_ldbl128 = xyes
; then
27658 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27663 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27664 gcc_cv_target_dl_iterate_phdr
=unknown
27666 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27667 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27668 # libdl there, both complicating its use and breaking compatibility
27669 # between Solaris 10 updates.
27670 *-*-solaris2.1
[1-9]*)
27671 # <link.h> needs both a dl_iterate_phdr declaration and support for
27672 # compilation with largefile support.
27673 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
27674 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
27675 gcc_cv_target_dl_iterate_phdr
=yes
27677 gcc_cv_target_dl_iterate_phdr
=no
27680 *-*-dragonfly* |
*-*-freebsd*)
27681 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
27682 gcc_cv_target_dl_iterate_phdr
=yes
27684 gcc_cv_target_dl_iterate_phdr
=no
27689 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
27691 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27695 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27697 # We no longer support different GC mechanisms. Emit an error if
27698 # the user configures with --with-gc.
27700 # Check whether --with-gc was given.
27701 if test "${with_gc+set}" = set; then :
27702 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27706 # Libraries to use on the host. This will normally be set by the top
27707 # level Makefile. Here we simply capture the value for our Makefile.
27708 if test -z "${HOST_LIBS+set}"; then
27713 # Use the system's zlib library.
27715 zlibinc
="-I\$(srcdir)/../zlib"
27717 # Check whether --with-system-zlib was given.
27718 if test "${with_system_zlib+set}" = set; then :
27719 withval
=$with_system_zlib; zlibdir
=
27728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27729 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27730 # Check whether --enable-maintainer-mode was given.
27731 if test "${enable_maintainer_mode+set}" = set; then :
27732 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27739 $as_echo "$maintainer_mode" >&6; }
27741 if test "$maintainer_mode" = "yes"; then
27748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27749 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27750 # Check whether --enable-link-mutex was given.
27751 if test "${enable_link_mutex+set}" = set; then :
27752 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27758 $as_echo "$do_link_mutex" >&6; }
27760 if test "$do_link_mutex" = "yes"; then
27763 DO_LINK_MUTEX
=false
27771 # Make empty files to contain the specs and options for each language.
27772 # Then add #include lines to for a compiler that has specs and/or options.
27778 # These (without "all_") are set in each config-lang.in.
27779 # `language' must be a single word so is spelled singularly.
27782 all_outputs
='Makefile'
27783 # List of language makefile fragments.
27784 all_lang_makefrags
=
27785 # Additional files for gengtype
27786 all_gtfiles
="$target_gtfiles"
27788 # These are the languages that are set in --enable-languages,
27789 # and are available in the GCC tree.
27790 all_selected_languages
=
27792 # Add the language fragments.
27793 # Languages are added via two mechanisms. Some information must be
27794 # recorded in makefile variables, these are defined in config-lang.in.
27795 # We accumulate them and plug them into the main Makefile.
27796 # The other mechanism is a set of hooks for each of the main targets
27797 # like `clean', `install', etc.
27799 language_hooks
="Make-hooks"
27801 for lang
in ${srcdir}/*/config-lang.
in
27803 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27805 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27806 if test "x$lang_alias" = x
27808 echo "$lang doesn't set \$language." 1>&2
27811 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27812 subdirs
="$subdirs $subdir"
27814 # $gcc_subdir is where the gcc integration files are to be found
27815 # for a language, both for internal compiler purposes (compiler
27816 # sources implementing front-end to GCC tree converters), and for
27817 # build infrastructure purposes (Make-lang.in, etc.)
27819 # This will be <subdir> (relative to $srcdir) if a line like
27820 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27821 # is found in <langdir>/config-lang.in, and will remain <langdir>
27824 # Except for the language alias (fetched above), the regular
27825 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27826 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27827 # only this and the language alias.
27829 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27830 if [ "$gcc_subdir" = "" ]; then
27831 gcc_subdir
="$subdir"
27834 case ",$enable_languages," in
27836 all_selected_languages
="$all_selected_languages $lang_alias"
27837 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27838 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27849 .
${srcdir}/$gcc_subdir/config-lang.
in
27850 if test "x$language" = x
27852 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27857 case ",$enable_languages," in
27858 *,$lang_alias,*) ;;
27860 for i
in $subdir_requires; do
27861 test -f "${srcdir}/$i/config-lang.in" && continue
27869 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27870 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27871 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27872 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27874 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27875 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27877 all_languages
="$all_languages $language"
27878 all_compilers
="$all_compilers $compilers"
27879 all_outputs
="$all_outputs $outputs"
27880 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27881 case ",$enable_languages," in
27884 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27894 for language
in $all_selected_languages
27896 check_languages
="$check_languages check-$language"
27899 # We link each language in with a set of hooks, reached indirectly via
27900 # lang.${target}. Only do so for selected languages.
27904 target_list
="all.cross start.encap rest.encap tags \
27905 install-common install-man install-info install-pdf install-html dvi \
27906 pdf html uninstall info man srcextra srcman srcinfo \
27907 mostlyclean clean distclean maintainer-clean install-plugin"
27909 for t
in $target_list
27912 for lang
in $all_selected_languages
27916 echo "lang.$t: $x" >> Make-hooks
27920 # Option include files
27923 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27924 option_includes
="option-includes.mk"
27933 echo "dir ." > .gdbinit
27934 echo "dir ${srcdir}" >> .gdbinit
27935 if test x
$gdb_needs_out_file_path = xyes
27937 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27939 if test "x$subdirs" != x
; then
27942 echo "dir ${srcdir}/$s" >> .gdbinit
27945 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27946 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27948 # Put a breakpoint on __asan_report_error to help with debugging buffer
27951 *-fsanitize=address
*)
27952 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27956 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27960 # Find a directory in which to install a shared libgcc.
27962 # Check whether --enable-version-specific-runtime-libs was given.
27963 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27964 enableval
=$enable_version_specific_runtime_libs;
27968 # Substitute configuration variables
28034 if test x
${build} = x
${host} ; then
28035 if test x
${host} = x
${target} ; then
28036 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28038 echo "Links are now set up to build a cross-compiler" 1>&2
28039 echo " from ${host} to ${target}." 1>&2
28042 if test x
${host} = x
${target} ; then
28043 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28044 echo " for ${target}." 1>&2
28046 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28047 echo " from ${host} to ${target}." 1>&2
28056 if test "x${ISLLIBS}" != "x" ; then
28058 $as_echo "#define HAVE_isl 1" >>confdefs.h
28062 # Check for plugin support
28063 # Check whether --enable-plugin was given.
28064 if test "${enable_plugin+set}" = set; then :
28065 enableval
=$enable_plugin; enable_plugin
=$enableval
28067 enable_plugin
=yes; default_plugin
=yes
28075 if test x
$build = x
$host; then
28076 export_sym_check
="nm${exeext} -g"
28077 elif test x
$host = x
$target; then
28078 export_sym_check
="$gcc_cv_nm -g"
28084 if test x
$build = x
$host; then
28085 export_sym_check
="objdump${exeext} -T"
28086 elif test x
$host = x
$target; then
28087 export_sym_check
="$gcc_cv_objdump -T"
28094 if test x
"$enable_plugin" = x
"yes"; then
28096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28097 $as_echo_n "checking for exported symbols... " >&6; }
28098 if test "x$export_sym_check" != x
; then
28099 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28100 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
28101 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
28102 : # No need to use a flag
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28104 $as_echo "yes" >&6; }
28106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28107 $as_echo "yes" >&6; }
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28109 $as_echo_n "checking for -rdynamic... " >&6; }
28110 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
28111 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
28112 plugin_rdynamic
=yes
28113 pluginlibs
="-rdynamic"
28118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28119 $as_echo "$plugin_rdynamic" >&6; }
28122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28123 $as_echo "unable to check" >&6; }
28128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28129 $as_echo_n "checking for library containing dlopen... " >&6; }
28130 if test "${ac_cv_search_dlopen+set}" = set; then :
28131 $as_echo_n "(cached) " >&6
28133 ac_func_search_save_LIBS
=$LIBS
28134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28135 /* end confdefs.h. */
28137 /* Override any GCC internal prototype to avoid an error.
28138 Use char because int might match the return type of a GCC
28139 builtin and then its argument prototype would still apply. */
28152 for ac_lib
in '' dl
; do
28153 if test -z "$ac_lib"; then
28154 ac_res
="none required"
28157 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28159 if ac_fn_c_try_link
"$LINENO"; then :
28160 ac_cv_search_dlopen
=$ac_res
28162 rm -f core conftest.err conftest.
$ac_objext \
28164 if test "${ac_cv_search_dlopen+set}" = set; then :
28168 if test "${ac_cv_search_dlopen+set}" = set; then :
28171 ac_cv_search_dlopen
=no
28173 rm conftest.
$ac_ext
28174 LIBS
=$ac_func_search_save_LIBS
28176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28177 $as_echo "$ac_cv_search_dlopen" >&6; }
28178 ac_res
=$ac_cv_search_dlopen
28179 if test "$ac_res" != no
; then :
28180 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28184 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
28185 pluginlibs
="$pluginlibs -ldl"
28189 # Check that we can build shared objects with -fPIC -shared
28190 saved_LDFLAGS
="$LDFLAGS"
28191 saved_CFLAGS
="$CFLAGS"
28194 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28195 CFLAGS
="$CFLAGS -fPIC"
28196 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
28199 CFLAGS
="$CFLAGS -fPIC"
28200 LDFLAGS
="$LDFLAGS -fPIC -shared"
28203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28204 $as_echo_n "checking for -fPIC -shared... " >&6; }
28205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28206 /* end confdefs.h. */
28216 if ac_fn_c_try_link
"$LINENO"; then :
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28218 $as_echo "yes" >&6; }; have_pic_shared
=yes
28220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28221 $as_echo "no" >&6; }; have_pic_shared
=no
28223 rm -f core conftest.err conftest.
$ac_objext \
28224 conftest
$ac_exeext conftest.
$ac_ext
28225 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
28229 LDFLAGS
="$saved_LDFLAGS"
28230 CFLAGS
="$saved_CFLAGS"
28232 # If plugin support had been requested but not available, fail.
28233 if test x
"$enable_plugin" = x
"no" ; then
28234 if test x
"$default_plugin" != x
"yes"; then
28236 Building GCC with plugin support requires a host that supports
28237 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28244 if test x
"$enable_plugin" = x
"yes"; then
28246 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28251 # Enable --enable-host-shared
28252 # Check whether --enable-host-shared was given.
28253 if test "${enable_host_shared+set}" = set; then :
28254 enableval
=$enable_host_shared; PICFLAG
=-fPIC
28263 # Check whether --enable-libquadmath-support was given.
28264 if test "${enable_libquadmath_support+set}" = set; then :
28265 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
28267 ENABLE_LIBQUADMATH_SUPPORT
=yes
28270 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28272 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28277 # Specify what hash style to use by default.
28279 # Check whether --with-linker-hash-style was given.
28280 if test "${with_linker_hash_style+set}" = set; then :
28281 withval
=$with_linker_hash_style; case x
"$withval" in
28283 LINKER_HASH_STYLE
=sysv
28286 LINKER_HASH_STYLE
=gnu
28289 LINKER_HASH_STYLE
=both
28292 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28296 LINKER_HASH_STYLE
=''
28299 if test x
"${LINKER_HASH_STYLE}" != x
; then
28301 cat >>confdefs.h
<<_ACEOF
28302 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28307 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28308 # of jit/jit-playback.c.
28309 cat > gcc-driver-name.h
<<EOF
28310 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28313 # Configure the subdirectories
28314 # AC_CONFIG_SUBDIRS($subdirs)
28316 # Create the Makefile
28317 # and configure language subdirectories
28318 ac_config_files
="$ac_config_files $all_outputs"
28321 ac_config_commands
="$ac_config_commands default"
28323 cat >confcache
<<\_ACEOF
28324 # This file is a shell script that caches the results of configure
28325 # tests run on this system so they can be shared between configure
28326 # scripts and configure runs, see configure's option --config-cache.
28327 # It is not useful on other systems. If it contains results you don't
28328 # want to keep, you may remove or edit it.
28330 # config.status only pays attention to the cache file if you give it
28331 # the --recheck option to rerun configure.
28333 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28334 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28335 # following values.
28339 # The following way of writing the cache mishandles newlines in values,
28340 # but we know of no workaround that is simple, portable, and efficient.
28341 # So, we kill variables containing newlines.
28342 # Ultrix sh set writes to stderr and can't be redirected directly,
28343 # and sets the high bit in the cache file unless we assign to the vars.
28345 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28346 eval ac_val
=\$
$ac_var
28350 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28351 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28354 _ | IFS | as_nl
) ;; #(
28355 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
28356 *) { eval $ac_var=; unset $ac_var;} ;;
28362 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28363 *${as_nl}ac_space
=\
*)
28364 # `set' does not quote correctly, so add quotes: double-quote
28365 # substitution turns \\\\ into \\, and sed turns \\ into \.
28368 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28371 # `set' quotes correctly as required by POSIX, so do not add quotes.
28372 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28381 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28383 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28385 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
28386 if test -w "$cache_file"; then
28387 test "x$cache_file" != "x/dev/null" &&
28388 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28389 $as_echo "$as_me: updating cache $cache_file" >&6;}
28390 cat confcache
>$cache_file
28392 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28393 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28398 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
28399 # Let make expand exec_prefix.
28400 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
28402 DEFS
=-DHAVE_CONFIG_H
28406 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
28407 # 1. Remove the extension, and $U if already installed.
28408 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
28409 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
28410 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28411 # will be set to the directory where LIBOBJS objects are built.
28412 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28413 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
28415 LIBOBJS
=$ac_libobjs
28417 LTLIBOBJS
=$ac_ltlibobjs
28422 : ${CONFIG_STATUS=./config.status}
28424 ac_clean_files_save
=$ac_clean_files
28425 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
28426 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28427 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28429 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28431 # Generated by $as_me.
28432 # Run this file to recreate the current configuration.
28433 # Compiler output produced by configure, useful for debugging
28434 # configure, is in config.log if it exists.
28437 ac_cs_recheck=false
28440 SHELL=\${CONFIG_SHELL-$SHELL}
28443 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
28444 ## -------------------- ##
28445 ## M4sh Initialization. ##
28446 ## -------------------- ##
28448 # Be more Bourne compatible
28449 DUALCASE
=1; export DUALCASE
# for MKS sh
28450 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
28453 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28454 # is contrary to our usage. Disable this feature.
28455 alias -g '${1+"$@"}'='"$@"'
28456 setopt NO_GLOB_SUBST
28458 case `(set -o) 2>/dev/null` in #(
28470 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28471 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28472 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28473 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28474 # Prefer a ksh shell builtin over an external printf program on Solaris,
28475 # but without wasting forks for bash or zsh.
28476 if test -z "$BASH_VERSION$ZSH_VERSION" \
28477 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28478 as_echo='print
-r --'
28479 as_echo_n='print
-rn --'
28480 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28481 as_echo='printf %s
\n'
28482 as_echo_n='printf %s
'
28484 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28485 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
28486 as_echo_n='/usr
/ucb
/echo -n'
28488 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28489 as_echo_n_body='eval
28493 expr "X$arg" : "X\\(.*\\)$as_nl";
28494 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28496 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
28498 export as_echo_n_body
28499 as_echo_n='sh
-c $as_echo_n_body as_echo
'
28501 export as_echo_body
28502 as_echo='sh
-c $as_echo_body as_echo
'
28505 # The user is always right.
28506 if test "${PATH_SEPARATOR+set}" != set; then
28508 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28509 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28516 # We need space, tab and new line, in precisely that order. Quoting is
28517 # there to prevent editors from complaining about space-tab.
28518 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28519 # splitting by setting IFS to empty value.)
28522 # Find who we are. Look in the path if we contain no directory separator.
28524 *[\\/]* ) as_myself=$0 ;;
28525 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28526 for as_dir in $PATH
28529 test -z "$as_dir" && as_dir=.
28530 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28536 # We did not find ourselves, most probably we were run as `sh COMMAND'
28537 # in which case we are not to be found in the path.
28538 if test "x$as_myself" = x
; then
28541 if test ! -f "$as_myself"; then
28542 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28546 # Unset variables that we do not need and which cause bugs (e.g. in
28547 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28548 # suppresses any "Segmentation fault" message there. '((' could
28549 # trigger a bug in pdksh 5.2.14.
28550 for as_var
in BASH_ENV ENV MAIL MAILPATH
28551 do eval test x\
${$as_var+set} = xset \
28552 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
28565 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
28568 # as_fn_error ERROR [LINENO LOG_FD]
28569 # ---------------------------------
28570 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28571 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28572 # script with status $?, using 1 if that was 0.
28575 as_status
=$?
; test $as_status -eq 0 && as_status
=1
28577 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
28578 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28580 $as_echo "$as_me: error: $1" >&2
28581 as_fn_exit
$as_status
28585 # as_fn_set_status STATUS
28586 # -----------------------
28587 # Set $? to STATUS, without forking.
28588 as_fn_set_status
()
28591 } # as_fn_set_status
28593 # as_fn_exit STATUS
28594 # -----------------
28595 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28599 as_fn_set_status
$1
28605 # Portably unset VAR.
28608 { eval $1=; unset $1;}
28610 as_unset
=as_fn_unset
28611 # as_fn_append VAR VALUE
28612 # ----------------------
28613 # Append the text in VALUE to the end of the definition contained in VAR. Take
28614 # advantage of any shell optimizations that allow amortized linear growth over
28615 # repeated appends, instead of the typical quadratic growth present in naive
28617 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
28618 eval 'as_fn_append ()
28629 # as_fn_arith ARG...
28630 # ------------------
28631 # Perform arithmetic evaluation on the ARGs, and store the result in the
28632 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28633 # must be portable across $(()) and expr.
28634 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
28635 eval 'as_fn_arith ()
28642 as_val
=`expr "$@" || test $? -eq 1`
28647 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28648 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28654 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28655 as_basename
=basename
28660 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
28666 as_me
=`$as_basename -- "$0" ||
28667 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28668 X"$0" : 'X\(//\)$' \| \
28669 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28671 sed '/^.*\/\([^/][^/]*\)\/*$/{
28685 # Avoid depending upon Character Ranges.
28686 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28687 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28688 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28689 as_cr_digits
='0123456789'
28690 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28692 ECHO_C
= ECHO_N
= ECHO_T
=
28693 case `echo -n x` in #(((((
28695 case `echo 'xy\c'` in
28696 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28698 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
28705 rm -f conf$$ conf$$.exe conf$$.
file
28706 if test -d conf$$.dir
; then
28707 rm -f conf$$.dir
/conf$$.
file
28710 mkdir conf$$.dir
2>/dev
/null
28712 if (echo >conf$$.
file) 2>/dev
/null
; then
28713 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28715 # ... but there are two gotchas:
28716 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28717 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28718 # In both cases, we have to default to `cp -p'.
28719 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28721 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28729 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28730 rmdir conf$$.dir
2>/dev
/null
28735 # Create "$as_dir" as a directory, including parents if necessary.
28740 -*) as_dir
=.
/$as_dir;;
28742 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28746 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28747 *) as_qdir
=$as_dir;;
28749 as_dirs
="'$as_qdir' $as_dirs"
28750 as_dir
=`$as_dirname -- "$as_dir" ||
28751 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28752 X"$as_dir" : 'X\(//\)[^/]' \| \
28753 X"$as_dir" : 'X\(//\)$' \| \
28754 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28755 $as_echo X"$as_dir" |
28756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28760 /^X\(\/\/\)[^/].*/{
28773 test -d "$as_dir" && break
28775 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28776 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
28780 if mkdir
-p .
2>/dev
/null
; then
28781 as_mkdir_p
='mkdir -p "$as_dir"'
28783 test -d .
/-p && rmdir .
/-p
28787 if test -x / >/dev
/null
2>&1; then
28788 as_test_x
='test -x'
28790 if ls -dL / >/dev
/null
2>&1; then
28797 if test -d "$1"; then
28803 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28804 ???[sx]*):;;*)false;;esac;fi
28808 as_executable_p
=$as_test_x
28810 # Sed expression to map a string onto a valid CPP name.
28811 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28813 # Sed expression to map a string onto a valid variable name.
28814 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28818 ## ----------------------------------- ##
28819 ## Main body of $CONFIG_STATUS script. ##
28820 ## ----------------------------------- ##
28822 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28825 # Save the log message, to keep $0 and so on meaningful, and to
28826 # report actual input values of CONFIG_FILES etc. instead of their
28827 # values after options handling.
28829 This file was extended by $as_me, which was
28830 generated by GNU Autoconf 2.64. Invocation command line was
28832 CONFIG_FILES = $CONFIG_FILES
28833 CONFIG_HEADERS = $CONFIG_HEADERS
28834 CONFIG_LINKS = $CONFIG_LINKS
28835 CONFIG_COMMANDS = $CONFIG_COMMANDS
28838 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28843 case $ac_config_files in *"
28844 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28847 case $ac_config_headers in *"
28848 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28853 # Files that config.status was made for.
28854 config_files="$ac_config_files"
28855 config_headers="$ac_config_headers"
28856 config_links="$ac_config_links"
28857 config_commands="$ac_config_commands"
28861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28863 \`$as_me' instantiates files and other configuration actions
28864 from templates according to the current configuration. Unless the files
28865 and actions are specified as TAGs, all are instantiated by default.
28867 Usage: $0 [OPTION]... [TAG]...
28869 -h, --help print this help, then exit
28870 -V, --version print version number and configuration settings, then exit
28871 -q, --quiet, --silent
28872 do not print progress messages
28873 -d, --debug don't remove temporary files
28874 --recheck update $as_me by reconfiguring in the same conditions
28875 --file=FILE[:TEMPLATE]
28876 instantiate the configuration file FILE
28877 --header=FILE[:TEMPLATE]
28878 instantiate the configuration header FILE
28880 Configuration files:
28883 Configuration headers:
28886 Configuration links:
28889 Configuration commands:
28892 Report bugs to the package provider."
28895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28898 configured by $0, generated by GNU Autoconf 2.64,
28899 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28901 Copyright (C) 2009 Free Software Foundation, Inc.
28902 This config.status script is free software; the Free Software Foundation
28903 gives unlimited permission to copy, distribute and modify it."
28908 test -n "\$AWK" || AWK=awk
28911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28912 # The default lists apply if the user does not specify any file.
28918 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28919 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28930 # Handling of the options.
28931 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28933 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28934 $as_echo "$ac_cs_version"; exit ;;
28935 --debug |
--debu |
--deb |
--de |
--d |
-d )
28937 --file |
--fil |
--fi |
--f )
28940 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28942 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28943 ac_need_defaults
=false
;;
28944 --header |
--heade |
--head |
--hea )
28947 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28949 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28950 ac_need_defaults
=false
;;
28952 # Conflict between --help and --header
28953 as_fn_error
"ambiguous option: \`$1'
28954 Try \`$0 --help' for more information.";;
28955 --help |
--hel |
-h )
28956 $as_echo "$ac_cs_usage"; exit ;;
28957 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28958 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28961 # This is an error.
28962 -*) as_fn_error
"unrecognized option: \`$1'
28963 Try \`$0 --help' for more information." ;;
28965 *) as_fn_append ac_config_targets
" $1"
28966 ac_need_defaults
=false
;;
28972 ac_configure_extra_args
=
28974 if $ac_cs_silent; then
28976 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28981 if \$ac_cs_recheck; then
28982 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28984 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28985 CONFIG_SHELL='$SHELL'
28986 export CONFIG_SHELL
28991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28995 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28996 ## Running $as_me. ##
29002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29006 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29007 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29014 # Handling of arguments.
29015 for ac_config_target
in $ac_config_targets
29017 case $ac_config_target in
29018 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
29019 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
29020 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
29021 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
29022 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29023 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
29024 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29025 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
29026 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
29028 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29033 # If the user did not use the arguments to specify the items to instantiate,
29034 # then the envvar interface is used. Set only those that are not.
29035 # We use the long form for the default assignment because of an extremely
29036 # bizarre bug on SunOS 4.1.3.
29037 if $ac_need_defaults; then
29038 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29039 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29040 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
29041 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29044 # Have a temporary directory for convenience. Make it in the build tree
29045 # simply because there is no reason against having it here, and in addition,
29046 # creating and moving files from /tmp can sometimes cause problems.
29047 # Hook for its removal unless debugging.
29048 # Note that there is a small window in which the directory will not be cleaned:
29049 # after its creation but before its name has been assigned to `$tmp'.
29053 trap 'exit_status=$?
29054 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29056 trap 'as_fn_exit 1' 1 2 13 15
29058 # Create a (secure) tmp directory for tmp files.
29061 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29062 test -n "$tmp" && test -d "$tmp"
29065 tmp
=.
/conf$$
-$RANDOM
29066 (umask 077 && mkdir
"$tmp")
29067 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
29069 # Set up the scripts for CONFIG_FILES section.
29070 # No need to generate them if there are no CONFIG_FILES.
29071 # This happens for instance with `./config.status config.h'.
29072 if test -n "$CONFIG_FILES"; then
29074 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
29075 ac_cs_awk_getline
=:
29076 ac_cs_awk_pipe_init
=
29077 ac_cs_awk_read_file
='
29078 while ((getline aline < (F[key])) > 0)
29081 ac_cs_awk_pipe_fini
=
29083 ac_cs_awk_getline
=false
29084 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
29085 ac_cs_awk_read_file
='
29087 print "cat " F[key] " &&"
29088 '$ac_cs_awk_pipe_init
29089 # The final `:' finishes the AND list.
29090 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
29092 ac_cr
=`echo X | tr X '\015'`
29093 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29094 # But we know of no other shell where ac_cr would be empty at this
29095 # point, so we can use a bashism as a fallback.
29096 if test "x$ac_cr" = x
; then
29097 eval ac_cr
=\$
\'\\r
\'
29099 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29100 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29103 ac_cs_awk_cr
=$ac_cr
29106 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29109 # Create commands to substitute file output variables.
29111 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29112 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29113 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
29116 } >conf$
$files.sh
&&
29117 . .
/conf$
$files.sh ||
29118 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
29119 rm -f conf$
$files.sh
29122 echo "cat >conf$$subs.awk <<_ACEOF" &&
29123 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29125 } >conf$$subs.sh ||
29126 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29127 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29129 for ac_last_try in false false false false false :; do
29130 . ./conf$$subs.sh ||
29131 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29133 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
29134 if test $ac_delim_n = $ac_delim_num; then
29136 elif $ac_last_try; then
29137 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29139 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29142 rm -f conf$$subs.sh
29144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29145 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
29149 s/^/S["/; s
/!.
*/"]=/
29159 s/\(.\{148\}\).*/\1/
29161 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
29166 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29173 s/\(.\{148\}\).*/\1/
29175 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
29179 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29184 ' <conf$$subs.awk | sed '
29189 ' >>$CONFIG_STATUS || ac_write_fail=1
29190 rm -f conf$$subs.awk
29191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29193 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
29194 for (key in S) S_is_set[key] = 1
29196 \$ac_cs_awk_pipe_init
29200 nfields = split(line, field, "@
")
29202 len = length(field[1])
29203 for (i = 2; i < nfields; i++) {
29205 keylen = length(key)
29206 if (S_is_set[key]) {
29208 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29209 len += length(value) + length(field[++i])
29214 if (nfields == 3 && !substed) {
29216 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29217 \$ac_cs_awk_read_file
29223 \$ac_cs_awk_pipe_fini
29226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29227 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29228 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
29231 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
29232 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
29235 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29236 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
29237 # trailing colons and then remove the whole line if VPATH becomes empty
29238 # (actually we leave an empty line to preserve line numbers).
29239 if test "x
$srcdir" = x.; then
29240 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29241 s/:*\$(srcdir):*/:/
29242 s/:*\${srcdir}:*/:/
29244 s/^\([^=]*=[ ]*\):*/\1/
29250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29251 fi # test -n "$CONFIG_FILES"
29253 # Set up the scripts for CONFIG_HEADERS section.
29254 # No need to generate them if there are no CONFIG_HEADERS.
29255 # This happens for instance with `./config.status Makefile'.
29256 if test -n "$CONFIG_HEADERS"; then
29257 cat >"$tmp/defines.
awk" <<\_ACAWK ||
29261 # Transform confdefs.h into an awk script `defines.awk', embedded as
29262 # here-document in config.status, that substitutes the proper values into
29263 # config.h.in to produce config.h.
29265 # Create a delimiter string that does not exist in confdefs.h, to ease
29266 # handling of long lines.
29268 for ac_last_try in false false :; do
29269 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
29270 if test -z "$ac_t"; then
29272 elif $ac_last_try; then
29273 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
29275 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29279 # For the awk script, D is an array of macro values keyed by name,
29280 # likewise P contains macro parameters if any. Preserve backslash
29281 # newline sequences.
29283 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29285 s/.\{148\}/&'"$ac_delim"'/g
29288 s/^[ ]*#[ ]*define[ ][ ]*/ /
29295 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
29297 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
29301 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
29302 D["\
1"]=" \
3\\\\\\n
"\\/p
29304 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
29309 s/.\{148\}/&'"$ac_delim"'/g
29314 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
29317 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
29319 ' <confdefs.h | sed '
29320 s/'"$ac_delim"'/"\\\
29321 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29324 for (key in D) D_is_set[key] = 1
29327 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29329 split(line, arg, " ")
29330 if (arg[1] == "#") {
29334 defundef
= substr
(arg
[1], 2)
29337 split(mac1
, mac2
, "(") #)
29339 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
29340 if (D_is_set
[macro
]) {
29341 # Preserve the white space surrounding the "#".
29342 print prefix
"define", macro P
[macro
] D
[macro
]
29345 # Replace #undef with comments. This is necessary, for example,
29346 # in the case of _POSIX_SOURCE, which is predefined and required
29347 # on some systems where configure will not decide to define it.
29348 if (defundef
== "undef") {
29349 print
"/*", prefix defundef
, macro
, "*/"
29357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29358 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
29359 fi # test -n "$CONFIG_HEADERS"
29362 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29367 :[FHLC
]) ac_mode
=$ac_tag; continue;;
29369 case $ac_mode$ac_tag in
29371 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
29372 :[FH
]-) ac_tag
=-:-;;
29373 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
29390 -) ac_f
="$tmp/stdin";;
29391 *) # Look for the file first in the build tree, then in the source tree
29392 # (if the path is not absolute). The absolute path cannot be DOS-style,
29393 # because $ac_f cannot contain `:'.
29397 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
29399 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
29401 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29402 as_fn_append ac_file_inputs
" '$ac_f'"
29405 # Let's still pretend it is `configure' which instantiates (i.e., don't
29406 # use $as_me), people would be surprised to read:
29407 # /* config.h. Generated by config.status. */
29408 configure_input
='Generated from '`
29409 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29411 if test x
"$ac_file" != x-
; then
29412 configure_input
="$ac_file. $configure_input"
29413 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29414 $as_echo "$as_me: creating $ac_file" >&6;}
29416 # Neutralize special characters interpreted by sed in replacement strings.
29417 case $configure_input in #(
29418 *\
&* |
*\|
* |
*\\* )
29419 ac_sed_conf_input
=`$as_echo "$configure_input" |
29420 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29421 *) ac_sed_conf_input
=$configure_input;;
29425 *:-:* |
*:-) cat >"$tmp/stdin" \
29426 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
29431 ac_dir
=`$as_dirname -- "$ac_file" ||
29432 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29433 X"$ac_file" : 'X\(//\)[^/]' \| \
29434 X"$ac_file" : 'X\(//\)$' \| \
29435 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29436 $as_echo X"$ac_file" |
29437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29441 /^X\(\/\/\)[^/].*/{
29454 as_dir
="$ac_dir"; as_fn_mkdir_p
29458 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29460 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29461 # A ".." for each directory in $ac_dir_suffix.
29462 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29463 case $ac_top_builddir_sub in
29464 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29465 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
29468 ac_abs_top_builddir
=$ac_pwd
29469 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
29470 # for backward compatibility:
29471 ac_top_builddir
=$ac_top_build_prefix
29474 .
) # We are building in place.
29476 ac_top_srcdir
=$ac_top_builddir_sub
29477 ac_abs_top_srcdir
=$ac_pwd ;;
29478 [\\/]* | ?
:[\\/]* ) # Absolute name.
29479 ac_srcdir
=$srcdir$ac_dir_suffix;
29480 ac_top_srcdir
=$srcdir
29481 ac_abs_top_srcdir
=$srcdir ;;
29482 *) # Relative name.
29483 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
29484 ac_top_srcdir
=$ac_top_build_prefix$srcdir
29485 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
29487 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
29498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29499 # If the template does not know about datarootdir, expand it.
29500 # FIXME: This hack should be removed a few years after 2.60.
29501 ac_datarootdir_hack
=; ac_datarootdir_seen
=
29512 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29513 *datarootdir
*) ac_datarootdir_seen
=yes;;
29514 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
29515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29516 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29519 ac_datarootdir_hack='
29520 s&@datadir@&$datadir&g
29521 s&@docdir@&$docdir&g
29522 s&@infodir@&$infodir&g
29523 s&@localedir@&$localedir&g
29524 s&@mandir@&$mandir&g
29525 s&\\\${datarootdir}&$datarootdir&g' ;;
29529 # Neutralize VPATH when `$srcdir' = `.'.
29530 # Shell code in configure.ac might set extrasub.
29531 # FIXME: do we really want to maintain this feature?
29532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29533 ac_sed_extra="$ac_vpsub
29536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29538 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
29539 s|@configure_input@|
$ac_sed_conf_input|
;t t
29540 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
29541 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
29542 s
&@srcdir@
&$ac_srcdir&;t t
29543 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
29544 s
&@top_srcdir@
&$ac_top_srcdir&;t t
29545 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
29546 s
&@builddir@
&$ac_builddir&;t t
29547 s
&@abs_builddir@
&$ac_abs_builddir&;t t
29548 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
29549 $ac_datarootdir_hack
29551 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29552 if $ac_cs_awk_getline; then
29553 $AWK -f "$tmp/subs.
awk"
29555 $AWK -f "$tmp/subs.
awk" | $SHELL
29557 || as_fn_error "could not create
$ac_file" "$LINENO" 5
29559 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29560 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
29561 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
29562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
29563 which seems to be undefined. Please make sure it is defined." >&5
29564 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
29565 which seems to be undefined. Please make sure it is defined." >&2;}
29569 -) cat "$tmp/out" && rm -f "$tmp/out";;
29570 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29572 || as_fn_error "could not create $ac_file" "$LINENO" 5
29578 if test x"$ac_file" != x-; then
29580 $as_echo "/* $configure_input */" \
29581 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29582 } >"$tmp/config.h" \
29583 || as_fn_error "could not create $ac_file" "$LINENO" 5
29584 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29585 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29586 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29589 mv "$tmp/config.h" "$ac_file" \
29590 || as_fn_error "could not create $ac_file" "$LINENO" 5
29593 $as_echo "/* $configure_input */" \
29594 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29595 || as_fn_error "could not create -" "$LINENO" 5
29603 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
29606 # Prefer the file from the source tree if names are identical.
29607 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29608 ac_source=$srcdir/$ac_source
29611 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29612 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29614 if test ! -r "$ac_source"; then
29615 as_fn_error "$ac_source: file not found" "$LINENO" 5
29619 # Try a relative symlink, then a hard link, then a copy.
29621 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29622 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29624 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29625 ln "$ac_source" "$ac_file" 2>/dev/null ||
29626 cp -p "$ac_source" "$ac_file" ||
29627 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29630 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29631 $as_echo "$as_me: executing $ac_file commands" >&6;}
29636 case $ac_file$ac_mode in
29637 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29639 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29640 for lang in $subdirs c-family common
29642 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29644 "as":F) chmod +x as ;;
29645 "collect-ld":F) chmod +x collect-ld ;;
29646 "nm":F) chmod +x nm ;;
29648 case ${CONFIG_HEADERS} in
29649 *auto-host.h:config.in*)
29652 # Make sure all the subdirs exist.
29653 for d in $subdirs doc build common c-family
29655 test -d $d || mkdir $d
29665 ac_clean_files=$ac_clean_files_save
29667 test $ac_write_fail = 0 ||
29668 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29671 # configure is writing to config.log, and then calls config.status.
29672 # config.status does its own redirection, appending to config.log.
29673 # Unfortunately, on DOS this fails, as config.log is still kept open
29674 # by configure, so config.status won't be able to
write to it
; its
29675 # output is simply discarded. So we exec the FD to /dev/null,
29676 # effectively closing config.log, so it can be properly (re)opened and
29677 # appended to by config.status. When coming back to configure, we
29678 # need to make the FD available again.
29679 if test "$no_create" != yes; then
29681 ac_config_status_args
=
29682 test "$silent" = yes &&
29683 ac_config_status_args
="$ac_config_status_args --quiet"
29685 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
29687 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29688 # would make configure fail if this is the last instruction.
29689 $ac_cs_success || as_fn_exit $?
29691 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
29692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29693 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}