2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
564 ac_unique_file
="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default
="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars
='LTLIBOBJS
627 common_out_object_file
643 gcc_gxx_include_dir_add_sysroot
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
653 TM_MULTILIB_EXCEPTIONS_CONFIG
662 build_xm_include_list
664 build_install_headers_dir
666 all_selected_languages
684 ORIGINAL_NM_FOR_TARGET
686 ORIGINAL_LD_GOLD_FOR_TARGET
687 ORIGINAL_LD_BFD_FOR_TARGET
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
691 ORIGINAL_AS_FOR_TARGET
733 NATIVE_SYSTEM_HEADER_DIR
766 real_target_noncanonical
767 enable_as_accelerator
781 valgrind_path_defines
810 CROSS_SYSTEM_HEADER_DIR
811 TARGET_SYSTEM_ROOT_DEFINE
813 SYSROOT_CFLAGS_FOR_TARGET
858 program_transform_name
869 ac_subst_files
='option_includes
872 enable_option_checking
875 with_native_system_header_dir
880 enable_generated_files_in_srcdir
887 enable_build_format_warnings
891 enable_gather_detailed_mem_stats
892 enable_valgrind_annotations
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
928 enable_fix_cortex_a53_843419
930 enable_gnu_unique_object
931 enable_linker_build_id
935 enable_maintainer_mode
937 enable_version_specific_runtime_libs
940 enable_libquadmath_support
941 with_linker_hash_style
942 with_diagnostics_color
945 ac_precious_vars
='build_alias
964 # Initialize some variables set by options.
966 ac_init_version
=false
967 ac_unrecognized_opts
=
969 # The variables have the same names as the options, with
970 # dashes changed to underlines.
978 program_transform_name
=s
,x
,x
,
986 # Installation directory options.
987 # These are left unexpanded so users can "make install exec_prefix=/foo"
988 # and all the variables that are supposed to be based on exec_prefix
989 # by default will actually change.
990 # Use braces instead of parens because sh, perl, etc. also accept them.
991 # (The list follows the same order as the GNU Coding Standards.)
992 bindir
='${exec_prefix}/bin'
993 sbindir
='${exec_prefix}/sbin'
994 libexecdir
='${exec_prefix}/libexec'
995 datarootdir
='${prefix}/share'
996 datadir
='${datarootdir}'
997 sysconfdir
='${prefix}/etc'
998 sharedstatedir
='${prefix}/com'
999 localstatedir
='${prefix}/var'
1000 includedir
='${prefix}/include'
1001 oldincludedir
='/usr/include'
1002 docdir
='${datarootdir}/doc/${PACKAGE}'
1003 infodir
='${datarootdir}/info'
1008 libdir
='${exec_prefix}/lib'
1009 localedir
='${datarootdir}/locale'
1010 mandir
='${datarootdir}/man'
1016 # If the previous option needs an argument, assign it.
1017 if test -n "$ac_prev"; then
1018 eval $ac_prev=\
$ac_option
1024 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1028 # Accept the important Cygnus configure options, so we can diagnose typos.
1030 case $ac_dashdash$ac_option in
1034 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1036 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1037 bindir
=$ac_optarg ;;
1039 -build |
--build |
--buil |
--bui |
--bu)
1040 ac_prev
=build_alias
;;
1041 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1042 build_alias
=$ac_optarg ;;
1044 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1045 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1046 ac_prev
=cache_file
;;
1047 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1048 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1049 cache_file
=$ac_optarg ;;
1051 --config-cache |
-C)
1052 cache_file
=config.cache
;;
1054 -datadir |
--datadir |
--datadi |
--datad)
1056 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1057 datadir
=$ac_optarg ;;
1059 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1060 |
--dataroo |
--dataro |
--datar)
1061 ac_prev
=datarootdir
;;
1062 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1063 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1064 datarootdir
=$ac_optarg ;;
1066 -disable-* |
--disable-*)
1067 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1070 as_fn_error
"invalid feature name: $ac_useropt"
1071 ac_useropt_orig
=$ac_useropt
1072 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1075 "enable_
$ac_useropt"
1077 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1078 ac_unrecognized_sep
=', ';;
1080 eval enable_
$ac_useropt=no
;;
1082 -docdir |
--docdir |
--docdi |
--doc |
--do)
1084 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1085 docdir
=$ac_optarg ;;
1087 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1089 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1090 dvidir
=$ac_optarg ;;
1092 -enable-* |
--enable-*)
1093 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1096 as_fn_error
"invalid feature name: $ac_useropt"
1097 ac_useropt_orig
=$ac_useropt
1098 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1101 "enable_
$ac_useropt"
1103 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1104 ac_unrecognized_sep
=', ';;
1106 eval enable_
$ac_useropt=\
$ac_optarg ;;
1108 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1109 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1110 |
--exec |
--exe |
--ex)
1111 ac_prev
=exec_prefix
;;
1112 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1113 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1114 |
--exec=* |
--exe=* |
--ex=*)
1115 exec_prefix
=$ac_optarg ;;
1117 -gas |
--gas |
--ga |
--g)
1118 # Obsolete; use --with-gas.
1121 -help |
--help |
--hel |
--he |
-h)
1122 ac_init_help
=long
;;
1123 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1124 ac_init_help
=recursive
;;
1125 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1126 ac_init_help
=short
;;
1128 -host |
--host |
--hos |
--ho)
1129 ac_prev
=host_alias
;;
1130 -host=* |
--host=* |
--hos=* |
--ho=*)
1131 host_alias
=$ac_optarg ;;
1133 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1135 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1137 htmldir
=$ac_optarg ;;
1139 -includedir |
--includedir |
--includedi |
--included |
--include \
1140 |
--includ |
--inclu |
--incl |
--inc)
1141 ac_prev
=includedir
;;
1142 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1143 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1144 includedir
=$ac_optarg ;;
1146 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1148 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1149 infodir
=$ac_optarg ;;
1151 -libdir |
--libdir |
--libdi |
--libd)
1153 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1154 libdir
=$ac_optarg ;;
1156 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1157 |
--libexe |
--libex |
--libe)
1158 ac_prev
=libexecdir
;;
1159 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1160 |
--libexe=* |
--libex=* |
--libe=*)
1161 libexecdir
=$ac_optarg ;;
1163 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1164 ac_prev
=localedir
;;
1165 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1166 localedir
=$ac_optarg ;;
1168 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1169 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1170 ac_prev
=localstatedir
;;
1171 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1172 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1173 localstatedir
=$ac_optarg ;;
1175 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1177 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1178 mandir
=$ac_optarg ;;
1180 -nfp |
--nfp |
--nf)
1181 # Obsolete; use --without-fp.
1184 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1185 |
--no-cr |
--no-c |
-n)
1188 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1189 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1192 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1193 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1194 |
--oldin |
--oldi |
--old |
--ol |
--o)
1195 ac_prev
=oldincludedir
;;
1196 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1197 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1198 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1199 oldincludedir
=$ac_optarg ;;
1201 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1203 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1204 prefix
=$ac_optarg ;;
1206 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1207 |
--program-pre |
--program-pr |
--program-p)
1208 ac_prev
=program_prefix
;;
1209 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1210 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1211 program_prefix
=$ac_optarg ;;
1213 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1214 |
--program-suf |
--program-su |
--program-s)
1215 ac_prev
=program_suffix
;;
1216 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1217 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1218 program_suffix
=$ac_optarg ;;
1220 -program-transform-name |
--program-transform-name \
1221 |
--program-transform-nam |
--program-transform-na \
1222 |
--program-transform-n |
--program-transform- \
1223 |
--program-transform |
--program-transfor \
1224 |
--program-transfo |
--program-transf \
1225 |
--program-trans |
--program-tran \
1226 |
--progr-tra |
--program-tr |
--program-t)
1227 ac_prev
=program_transform_name
;;
1228 -program-transform-name=* |
--program-transform-name=* \
1229 |
--program-transform-nam=* |
--program-transform-na=* \
1230 |
--program-transform-n=* |
--program-transform-=* \
1231 |
--program-transform=* |
--program-transfor=* \
1232 |
--program-transfo=* |
--program-transf=* \
1233 |
--program-trans=* |
--program-tran=* \
1234 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1235 program_transform_name
=$ac_optarg ;;
1237 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1239 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1240 pdfdir
=$ac_optarg ;;
1242 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1244 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1247 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1248 |
-silent |
--silent |
--silen |
--sile |
--sil)
1251 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1253 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1255 sbindir
=$ac_optarg ;;
1257 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1258 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1259 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1261 ac_prev
=sharedstatedir
;;
1262 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1263 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1264 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1266 sharedstatedir
=$ac_optarg ;;
1268 -site |
--site |
--sit)
1270 -site=* |
--site=* |
--sit=*)
1273 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1275 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1276 srcdir
=$ac_optarg ;;
1278 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1279 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1280 ac_prev
=sysconfdir
;;
1281 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1282 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1283 sysconfdir
=$ac_optarg ;;
1285 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1286 ac_prev
=target_alias
;;
1287 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1288 target_alias
=$ac_optarg ;;
1290 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1293 -version |
--version |
--versio |
--versi |
--vers |
-V)
1294 ac_init_version
=: ;;
1297 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1300 as_fn_error
"invalid package name: $ac_useropt"
1301 ac_useropt_orig
=$ac_useropt
1302 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303 case $ac_user_opts in
1307 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1308 ac_unrecognized_sep
=', ';;
1310 eval with_
$ac_useropt=\
$ac_optarg ;;
1312 -without-* |
--without-*)
1313 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1314 # Reject names that are not valid shell variable names.
1315 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1316 as_fn_error
"invalid package name: $ac_useropt"
1317 ac_useropt_orig
=$ac_useropt
1318 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1319 case $ac_user_opts in
1323 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1324 ac_unrecognized_sep
=', ';;
1326 eval with_
$ac_useropt=no
;;
1329 # Obsolete; use --with-x.
1332 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1333 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1334 ac_prev
=x_includes
;;
1335 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1336 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1337 x_includes
=$ac_optarg ;;
1339 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1340 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1341 ac_prev
=x_libraries
;;
1342 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1343 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1344 x_libraries
=$ac_optarg ;;
1346 -*) as_fn_error
"unrecognized option: \`$ac_option'
1347 Try \`$0 --help' for more information."
1351 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1352 # Reject names that are not valid shell variable names.
1353 case $ac_envvar in #(
1354 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1355 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1357 eval $ac_envvar=\
$ac_optarg
1358 export $ac_envvar ;;
1361 # FIXME: should be removed in autoconf 3.0.
1362 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1363 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1364 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1365 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1371 if test -n "$ac_prev"; then
1372 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1373 as_fn_error
"missing argument to $ac_option"
1376 if test -n "$ac_unrecognized_opts"; then
1377 case $enable_option_checking in
1379 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1380 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1384 # Check all directory arguments for consistency.
1385 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1386 datadir sysconfdir sharedstatedir localstatedir includedir \
1387 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1388 libdir localedir mandir
1390 eval ac_val
=\$
$ac_var
1391 # Remove trailing slashes.
1394 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1395 eval $ac_var=\
$ac_val;;
1397 # Be sure to have absolute directory names.
1399 [\\/$
]* | ?
:[\\/]* ) continue;;
1400 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1402 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1405 # There might be people who depend on the old broken behavior: `$host'
1406 # used to hold the argument of --host etc.
1407 # FIXME: To remove some day.
1410 target
=$target_alias
1412 # FIXME: To remove some day.
1413 if test "x$host_alias" != x
; then
1414 if test "x$build_alias" = x
; then
1415 cross_compiling
=maybe
1416 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1417 If a cross compiler is detected then cross compile mode will be used." >&2
1418 elif test "x$build_alias" != "x$host_alias"; then
1424 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1426 test "$silent" = yes && exec 6>/dev
/null
1429 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1430 ac_ls_di
=`ls -di .` &&
1431 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1432 as_fn_error
"working directory cannot be determined"
1433 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1434 as_fn_error
"pwd does not report name of working directory"
1437 # Find the source files, if location was not specified.
1438 if test -z "$srcdir"; then
1439 ac_srcdir_defaulted
=yes
1440 # Try the directory containing this script, then the parent directory.
1441 ac_confdir
=`$as_dirname -- "$as_myself" ||
1442 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1443 X"$as_myself" : 'X\(//\)[^/]' \| \
1444 X"$as_myself" : 'X\(//\)$' \| \
1445 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1446 $as_echo X"$as_myself" |
1447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1465 if test ! -r "$srcdir/$ac_unique_file"; then
1469 ac_srcdir_defaulted
=no
1471 if test ! -r "$srcdir/$ac_unique_file"; then
1472 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1473 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1475 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1477 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1479 # When building in place, set srcdir=.
1480 if test "$ac_abs_confdir" = "$ac_pwd"; then
1483 # Remove unnecessary trailing slashes from srcdir.
1484 # Double slashes in file names in object file debugging info
1485 # mess up M-x gdb in Emacs.
1487 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1489 for ac_var
in $ac_precious_vars; do
1490 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1491 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1492 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1493 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1497 # Report the --help message.
1499 if test "$ac_init_help" = "long"; then
1500 # Omit some internal or obsolete options to make the list less imposing.
1501 # This message is too long to be a string in the A/UX 3.1 sh.
1503 \`configure' configures this package to adapt to many kinds of systems.
1505 Usage: $0 [OPTION]... [VAR=VALUE]...
1507 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1508 VAR=VALUE. See below for descriptions of some of the useful variables.
1510 Defaults for the options are specified in brackets.
1513 -h, --help display this help and exit
1514 --help=short display options specific to this package
1515 --help=recursive display the short help of all the included packages
1516 -V, --version display version information and exit
1517 -q, --quiet, --silent do not print \`checking...' messages
1518 --cache-file=FILE cache test results in FILE [disabled]
1519 -C, --config-cache alias for \`--cache-file=config.cache'
1520 -n, --no-create do not create output files
1521 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1523 Installation directories:
1524 --prefix=PREFIX install architecture-independent files in PREFIX
1525 [$ac_default_prefix]
1526 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1529 By default, \`make install' will install all the files in
1530 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1531 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1532 for instance \`--prefix=\$HOME'.
1534 For better control, use the options below.
1536 Fine tuning of the installation directories:
1537 --bindir=DIR user executables [EPREFIX/bin]
1538 --sbindir=DIR system admin executables [EPREFIX/sbin]
1539 --libexecdir=DIR program executables [EPREFIX/libexec]
1540 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1541 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1542 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1543 --libdir=DIR object code libraries [EPREFIX/lib]
1544 --includedir=DIR C header files [PREFIX/include]
1545 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1546 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1547 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1548 --infodir=DIR info documentation [DATAROOTDIR/info]
1549 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1550 --mandir=DIR man documentation [DATAROOTDIR/man]
1551 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1552 --htmldir=DIR html documentation [DOCDIR]
1553 --dvidir=DIR dvi documentation [DOCDIR]
1554 --pdfdir=DIR pdf documentation [DOCDIR]
1555 --psdir=DIR ps documentation [DOCDIR]
1561 --program-prefix=PREFIX prepend PREFIX to installed program names
1562 --program-suffix=SUFFIX append SUFFIX to installed program names
1563 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1566 --build=BUILD configure
for building on BUILD
[guessed
]
1567 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1568 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1572 if test -n "$ac_init_help"; then
1577 --disable-option-checking ignore unrecognized
--enable/--with options
1578 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1579 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1580 --enable-generated-files-in-srcdir
1581 put copies of generated files
in source dir intended
1582 for creating
source tarballs
for users without
1583 texinfo bison or flex
1584 --disable-largefile omit support
for large files
1585 --disable-build-format-warnings
1586 don
't use -Wformat while building GCC
1587 --enable-werror-always enable -Werror despite compiler version
1588 --enable-checking[=LIST]
1589 enable expensive run-time checks. With LIST, enable
1590 only specific categories of checks. Categories are:
1591 yes,no,all,none,release. Flags are:
1592 assert,df,fold,gc,gcac,gimple,misc,
1593 rtlflag,rtl,runtime,tree,valgrind,types
1594 --enable-coverage[=LEVEL]
1595 enable compiler's code coverage collection. Use to
1596 measure compiler performance and
locate unused parts
1597 of the compiler. With LEVEL
, specify optimization.
1598 Values are opt
, noopt
, default is noopt
1599 --enable-gather-detailed-mem-stats
1600 enable detailed memory allocation stats gathering
1601 --enable-valgrind-annotations
1602 enable valgrind runtime interaction
1603 --enable-multilib enable library support
for multiple ABIs
1604 --enable-multiarch enable support
for multiarch paths
1605 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1606 --enable-decimal-float={no
,yes,bid
,dpd
}
1607 enable decimal float extension to C. Selecting
'bid'
1608 or
'dpd' choses
which decimal floating point format
1610 --enable-fixed-point enable fixed-point arithmetic extension to C
1611 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1613 --enable-tls enable or disable generation of tls code overriding
1614 the assembler check
for tls support
1615 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1616 GNU Objective-C runtime
1617 --disable-shared don't provide a shared libgcc
1618 --enable-languages=LIST specify
which front-ends to build
1619 --disable-rpath do not hardcode runtime library paths
1620 --enable-sjlj-exceptions
1621 arrange to use setjmp
/longjmp exception handling
1622 --enable-secureplt enable -msecure-plt by default
for PowerPC
1623 --enable-leading-mingw64-underscores
1624 enable leading underscores on
64 bit mingw targets
1625 --enable-cld enable -mcld by default
for 32bit x86
1626 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1628 --disable-win32-registry
1629 disable lookup of installation paths
in the Registry
1631 --enable-win32-registry enable registry lookup
(default
)
1632 --enable-win32-registry=KEY
1633 use KEY instead of GCC version as the last portion
1635 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1636 --enable-static[=PKGS
] build static libraries
[default
=yes]
1637 --enable-fast-install[=PKGS
]
1638 optimize
for fast installation
[default
=yes]
1639 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1640 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1641 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1642 --enable-gnu-indirect-function
1643 enable the use of the @gnu_indirect_function to
1645 --enable-initfini-array use .init_array
/.fini_array sections
1646 --enable-comdat enable COMDAT group support
1648 --enable-fix-cortex-a53-835769
1649 enable workaround
for AArch64 Cortex-A53 erratum
1651 --disable-fix-cortex-a53-835769
1652 disable workaround
for AArch64 Cortex-A53 erratum
1656 --enable-fix-cortex-a53-843419
1657 enable workaround
for AArch64 Cortex-A53 erratum
1659 --disable-fix-cortex-a53-843419
1660 disable workaround
for AArch64 Cortex-A53 erratum
1663 --enable-gnu-unique-object
1664 enable the use of the @gnu_unique_object ELF
1665 extension on glibc systems
1666 --enable-linker-build-id
1667 compiler will always pass
--build-id to linker
1668 --enable-maintainer-mode
1669 enable make rules and dependencies not useful
(and
1670 sometimes confusing
) to the casual installer
1671 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1672 thrashing on the build machine
1673 --enable-version-specific-runtime-libs
1674 specify that runtime libraries should be installed
1675 in a compiler-specific directory
1676 --enable-plugin enable plugin support
1677 --enable-host-shared build
host code as shared libraries
1678 --disable-libquadmath-support
1679 disable libquadmath support
for Fortran
1680 --enable-default-pie enable Position Independent Executable as default
1683 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1684 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1685 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1686 --with-local-prefix=DIR specifies directory to put
local include
1687 --with-native-system-header-dir=dir
1688 use dir as the directory to
look for standard
1689 system header files
in. Defaults to
/usr
/include.
1690 --with-build-sysroot=sysroot
1691 use sysroot as the system root during the build
1692 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1693 --with-gxx-include-dir=DIR
1694 specifies directory to put g
++ header files
1695 --with-cpp-install-dir=DIR
1696 install the user visible C preprocessor
in DIR
1697 (relative to PREFIX
) as well as PREFIX
/bin
1698 --with-gnu-ld arrange to work with GNU ld
1699 --with-ld arrange to use the specified ld
(full pathname
)
1700 --with-demangler-in-ld try to use demangler
in GNU ld
1701 --with-gnu-as arrange to work with GNU as
1702 --with-as arrange to use the specified as
(full pathname
)
1703 --with-stabs arrange to use stabs instead of
host debug format
1704 --with-dwarf2 force the default debug format to be DWARF
2
1705 --with-specs=SPECS add SPECS to driver command-line processing
1706 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1707 --with-bugurl=URL Direct users to URL to report a bug
1708 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1709 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1710 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1711 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1712 --with-pic try to use only PIC/non-PIC objects [default=use
1714 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1715 --with-plugin-ld=[ARG] specify the plugin linker
1716 --with-glibc-version=M.N
1717 assume GCC used with glibc version M.N or later
1718 --with-long-double-128 use 128-bit long double by default
1719 --with-gc={page,zone} this option is not supported anymore. It used to
1720 choose the garbage collection mechanism to use with
1722 --with-system-zlib use installed libz
1723 --with-linker-hash-style={sysv,gnu,both}
1724 specify the linker hash style
1725 --with-diagnostics-color={never,auto,auto-if-env,always}
1726 specify the default of -fdiagnostics-color option
1727 auto-if-env stands for -fdiagnostics-color=auto if
1728 GCC_COLOR environment variable is present and
1729 -fdiagnostics-color=never otherwise
1731 Some influential environment variables:
1732 CC C compiler command
1733 CFLAGS C compiler flags
1734 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1735 nonstandard directory <lib dir>
1736 LIBS libraries to pass to the linker, e.g. -l<library>
1737 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1738 you have headers in a nonstandard directory <include dir>
1739 CXX C++ compiler command
1740 CXXFLAGS C++ compiler flags
1741 CXXCPP C++ preprocessor
1743 GMPLIBS How to link GMP
1744 GMPINC How to find GMP include files
1745 ISLLIBS How to link ISL
1746 ISLINC How to find ISL include files
1748 Use these variables to override the choices made by `configure' or to
help
1749 it to
find libraries and programs with nonstandard names
/locations.
1751 Report bugs to the package provider.
1756 if test "$ac_init_help" = "recursive"; then
1757 # If there are subdirs, report their specific --help.
1758 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1759 test -d "$ac_dir" ||
1760 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1765 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1767 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1768 # A ".." for each directory in $ac_dir_suffix.
1769 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1770 case $ac_top_builddir_sub in
1771 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1772 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1775 ac_abs_top_builddir
=$ac_pwd
1776 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1777 # for backward compatibility:
1778 ac_top_builddir
=$ac_top_build_prefix
1781 .
) # We are building in place.
1783 ac_top_srcdir
=$ac_top_builddir_sub
1784 ac_abs_top_srcdir
=$ac_pwd ;;
1785 [\\/]* | ?
:[\\/]* ) # Absolute name.
1786 ac_srcdir
=$srcdir$ac_dir_suffix;
1787 ac_top_srcdir
=$srcdir
1788 ac_abs_top_srcdir
=$srcdir ;;
1790 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1791 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1792 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1794 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1796 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1797 # Check for guested configure.
1798 if test -f "$ac_srcdir/configure.gnu"; then
1800 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1801 elif test -f "$ac_srcdir/configure"; then
1803 $SHELL "$ac_srcdir/configure" --help=recursive
1805 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1807 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1811 test -n "$ac_init_help" && exit $ac_status
1812 if $ac_init_version; then
1815 generated by GNU Autoconf
2.64
1817 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1818 This configure
script is free software
; the Free Software Foundation
1819 gives unlimited permission to copy
, distribute and modify it.
1824 ## ------------------------ ##
1825 ## Autoconf initialization. ##
1826 ## ------------------------ ##
1828 # ac_fn_c_try_compile LINENO
1829 # --------------------------
1830 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1831 ac_fn_c_try_compile
()
1833 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1834 rm -f conftest.
$ac_objext
1835 if { { ac_try
="$ac_compile"
1837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_compile") 2>conftest.err
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && {
1851 test -z "$ac_c_werror_flag" ||
1852 test ! -s conftest.err
1853 } && test -s conftest.$ac_objext; then :
1856 $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1861 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864 } # ac_fn_c_try_compile
1866 # ac_fn_cxx_try_compile LINENO
1867 # ----------------------------
1868 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1869 ac_fn_cxx_try_compile ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 rm -f conftest.$ac_objext
1873 if { { ac_try="$ac_compile"
1875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1876 *) ac_try_echo
=$ac_try;;
1878 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 $as_echo "$ac_try_echo"; } >&5
1880 (eval "$ac_compile") 2>conftest.err
1882 if test -s conftest.err
; then
1883 grep -v '^ *+' conftest.err
>conftest.er1
1884 cat conftest.er1
>&5
1885 mv -f conftest.er1 conftest.err
1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888 test $ac_status = 0; } && {
1889 test -z "$ac_cxx_werror_flag" ||
1890 test ! -s conftest.err
1891 } && test -s conftest.
$ac_objext; then :
1894 $as_echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.
$ac_ext >&5
1899 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1902 } # ac_fn_cxx_try_compile
1904 # ac_fn_cxx_try_cpp LINENO
1905 # ------------------------
1906 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1907 ac_fn_cxx_try_cpp
()
1909 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1910 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1912 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1913 *) ac_try_echo=$ac_try;;
1915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916 $as_echo "$ac_try_echo"; } >&5
1917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1919 if test -s conftest.err; then
1920 grep -v '^ *+' conftest.err >conftest.er1
1921 cat conftest.er1 >&5
1922 mv -f conftest.er1 conftest.err
1924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1925 test $ac_status = 0; } >/dev/null && {
1926 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1927 test ! -s conftest.err
1931 $as_echo "$as_me: failed program was:" >&5
1932 sed 's/^/| /' conftest.$ac_ext >&5
1936 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1939 } # ac_fn_cxx_try_cpp
1941 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1942 # ---------------------------------------------------------
1943 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1944 # the include files in INCLUDES and setting the cache variable VAR
1946 ac_fn_cxx_check_header_mongrel ()
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951 $as_echo_n "checking for $2... " >&6; }
1952 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1953 $as_echo_n "(cached) " >&6
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1959 # Is the header compilable?
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1961 $as_echo_n "checking $2 usability... " >&6; }
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1967 if ac_fn_cxx_try_compile "$LINENO"; then :
1968 ac_header_compiler=yes
1970 ac_header_compiler=no
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1974 $as_echo "$ac_header_compiler" >&6; }
1976 # Is the header present?
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1978 $as_echo_n "checking $2 presence... " >&6; }
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1983 if ac_fn_cxx_try_cpp "$LINENO"; then :
1984 ac_header_preproc=yes
1986 ac_header_preproc=no
1988 rm -f conftest.err conftest.$ac_ext
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1990 $as_echo "$ac_header_preproc" >&6; }
1992 # So? What about this header?
1993 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1996 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1998 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2002 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2004 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2006 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2008 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2010 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2016 $as_echo_n "(cached) " >&6
2018 eval "$3=\$ac_header_compiler"
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2024 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2026 } # ac_fn_cxx_check_header_mongrel
2028 # ac_fn_cxx_try_run LINENO
2029 # ------------------------
2030 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2031 # that executables *can* be run.
2032 ac_fn_cxx_try_run ()
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 if { { ac_try="$ac_link"
2037 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2038 *) ac_try_echo
=$ac_try;;
2040 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2041 $as_echo "$ac_try_echo"; } >&5
2042 (eval "$ac_link") 2>&5
2044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2045 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2046 { { case "(($ac_try" in
2047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2048 *) ac_try_echo=$ac_try;;
2050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051 $as_echo "$ac_try_echo"; } >&5
2052 (eval "$ac_try") 2>&5
2054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2055 test $ac_status = 0; }; }; then :
2058 $as_echo "$as_me: program exited with status $ac_status" >&5
2059 $as_echo "$as_me: failed program was:" >&5
2060 sed 's/^/| /' conftest.$ac_ext >&5
2062 ac_retval=$ac_status
2064 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2065 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2068 } # ac_fn_cxx_try_run
2070 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2071 # ---------------------------------------------------------
2072 # Tests whether HEADER exists and can be compiled using the include files in
2073 # INCLUDES, setting the cache variable VAR accordingly.
2074 ac_fn_cxx_check_header_compile ()
2076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2078 $as_echo_n "checking for $2... " >&6; }
2079 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2080 $as_echo_n "(cached) " >&6
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2087 if ac_fn_cxx_try_compile "$LINENO"; then :
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096 $as_echo "$ac_res" >&6; }
2097 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2099 } # ac_fn_cxx_check_header_compile
2101 # ac_fn_c_try_cpp LINENO
2102 # ----------------------
2103 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 if { { ac_try="$ac_cpp conftest.$ac_ext"
2109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2110 *) ac_try_echo
=$ac_try;;
2112 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2113 $as_echo "$ac_try_echo"; } >&5
2114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2116 if test -s conftest.err
; then
2117 grep -v '^ *+' conftest.err
>conftest.er1
2118 cat conftest.er1
>&5
2119 mv -f conftest.er1 conftest.err
2121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2122 test $ac_status = 0; } >/dev
/null
&& {
2123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2124 test ! -s conftest.err
2128 $as_echo "$as_me: failed program was:" >&5
2129 sed 's/^/| /' conftest.
$ac_ext >&5
2133 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2138 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2139 # ----------------------------------------------
2140 # Tries to find the compile-time value of EXPR in a program that includes
2141 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2143 ac_fn_cxx_compute_int
()
2145 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2146 if test "$cross_compiling" = yes; then
2147 # Depending upon the size, compute the lo and hi bounds.
2148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2154 static int test_array [1 - 2 * !(($2) >= 0)];
2161 if ac_fn_cxx_try_compile
"$LINENO"; then :
2164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2170 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2177 if ac_fn_cxx_try_compile
"$LINENO"; then :
2178 ac_hi
=$ac_mid; break
2180 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2181 if test $ac_lo -le $ac_mid; then
2185 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2196 static int test_array [1 - 2 * !(($2) < 0)];
2203 if ac_fn_cxx_try_compile
"$LINENO"; then :
2206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2212 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2219 if ac_fn_cxx_try_compile
"$LINENO"; then :
2220 ac_lo
=$ac_mid; break
2222 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2223 if test $ac_mid -le $ac_hi; then
2227 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2237 # Binary search between lo and hi bounds.
2238 while test "x$ac_lo" != "x$ac_hi"; do
2239 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2246 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2253 if ac_fn_cxx_try_compile
"$LINENO"; then :
2256 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2261 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2268 static long int longval () { return $2; }
2269 static unsigned long int ulongval () { return $2; }
2276 FILE *f = fopen ("conftest.val", "w");
2281 long int i = longval ();
2284 fprintf (f, "%ld", i);
2288 unsigned long int i = ulongval ();
2291 fprintf (f, "%lu", i);
2293 /* Do not output a trailing newline, as this causes \r\n confusion
2294 on some platforms. */
2295 return ferror (f) || fclose (f) != 0;
2301 if ac_fn_cxx_try_run
"$LINENO"; then :
2302 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2306 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2307 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2311 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2314 } # ac_fn_cxx_compute_int
2316 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2317 # ---------------------------------------------
2318 # Tests whether TYPE exists after having included INCLUDES, setting cache
2319 # variable VAR accordingly.
2320 ac_fn_cxx_check_type
()
2322 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2324 $as_echo_n "checking for $2... " >&6; }
2325 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2326 $as_echo_n "(cached) " >&6
2329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h. */
2341 if ac_fn_cxx_try_compile
"$LINENO"; then :
2342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2343 /* end confdefs.h. */
2354 if ac_fn_cxx_try_compile
"$LINENO"; then :
2359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2365 $as_echo "$ac_res" >&6; }
2366 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2368 } # ac_fn_cxx_check_type
2370 # ac_fn_c_find_intX_t LINENO BITS VAR
2371 # -----------------------------------
2372 # Finds a signed integer type with width BITS, setting cache variable VAR
2374 ac_fn_c_find_intX_t
()
2376 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2378 $as_echo_n "checking for int$2_t... " >&6; }
2379 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2380 $as_echo_n "(cached) " >&6
2383 for ac_type
in int
$2_t 'int' 'long int' \
2384 'long long int' 'short int' 'signed char'; do
2385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2387 $ac_includes_default
2391 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2398 if ac_fn_cxx_try_compile
"$LINENO"; then :
2399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h. */
2401 $ac_includes_default
2405 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2406 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2413 if ac_fn_cxx_try_compile
"$LINENO"; then :
2420 eval "$3=\$ac_type" ;;
2423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2427 if test "x$as_val" = x
""no
; then :
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2436 $as_echo "$ac_res" >&6; }
2437 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2439 } # ac_fn_c_find_intX_t
2441 # ac_fn_cxx_try_link LINENO
2442 # -------------------------
2443 # Try to link conftest.$ac_ext, and return whether this succeeded.
2444 ac_fn_cxx_try_link
()
2446 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2447 rm -f conftest.
$ac_objext conftest
$ac_exeext
2448 if { { ac_try
="$ac_link"
2450 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2451 *) ac_try_echo=$ac_try;;
2453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2454 $as_echo "$ac_try_echo"; } >&5
2455 (eval "$ac_link") 2>conftest.err
2457 if test -s conftest.err; then
2458 grep -v '^ *+' conftest.err >conftest.er1
2459 cat conftest.er1 >&5
2460 mv -f conftest.er1 conftest.err
2462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2463 test $ac_status = 0; } && {
2464 test -z "$ac_cxx_werror_flag" ||
2465 test ! -s conftest.err
2466 } && test -s conftest$ac_exeext && {
2467 test "$cross_compiling" = yes ||
2468 $as_test_x conftest$ac_exeext
2472 $as_echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2477 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2478 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2479 # interfere with the next link command; also delete a directory that is
2480 # left behind by Apple's compiler. We do this before executing the actions.
2481 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2482 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2485 } # ac_fn_cxx_try_link
2487 # ac_fn_c_find_uintX_t LINENO BITS VAR
2488 # ------------------------------------
2489 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2491 ac_fn_c_find_uintX_t ()
2493 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2495 $as_echo_n "checking for uint$2_t... " >&6; }
2496 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2497 $as_echo_n "(cached) " >&6
2500 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2501 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2503 /* end confdefs.h. */
2504 $ac_includes_default
2508 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2515 if ac_fn_cxx_try_compile "$LINENO"; then :
2520 eval "$3=\$ac_type" ;;
2523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2525 if test "x$as_val" = x""no; then :
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2534 $as_echo "$ac_res" >&6; }
2535 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2537 } # ac_fn_c_find_uintX_t
2539 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2540 # ------------------------------------------------
2541 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2542 ac_fn_cxx_check_header_preproc ()
2544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2546 $as_echo_n "checking for $2... " >&6; }
2547 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2548 $as_echo_n "(cached) " >&6
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h. */
2554 if ac_fn_cxx_try_cpp "$LINENO"; then :
2559 rm -f conftest.err conftest.$ac_ext
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2563 $as_echo "$ac_res" >&6; }
2564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2566 } # ac_fn_cxx_check_header_preproc
2568 # ac_fn_cxx_check_func LINENO FUNC VAR
2569 # ------------------------------------
2570 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2571 ac_fn_cxx_check_func ()
2573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2575 $as_echo_n "checking for $2... " >&6; }
2576 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2577 $as_echo_n "(cached) " >&6
2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h. */
2581 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2583 #define $2 innocuous_$2
2585 /* System header to define __stub macros and hopefully few prototypes,
2586 which can conflict with char $2 (); below.
2587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2588 <limits.h> exists even on freestanding compilers. */
2591 # include <limits.h>
2593 # include <assert.h>
2598 /* Override any GCC internal prototype to avoid an error.
2599 Use char because int might match the return type of a GCC
2600 builtin and then its argument prototype would still apply. */
2605 /* The GNU C library defines this for functions which it implements
2606 to always fail with ENOSYS. Some functions are actually named
2607 something starting with __ and the normal name is an alias. */
2608 #if defined __stub_$2 || defined __stub___$2
2620 if ac_fn_cxx_try_link "$LINENO"; then :
2625 rm -f core conftest.err conftest.$ac_objext \
2626 conftest$ac_exeext conftest.$ac_ext
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2630 $as_echo "$ac_res" >&6; }
2631 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2633 } # ac_fn_cxx_check_func
2635 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2636 # --------------------------------------
2637 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2638 ac_fn_cxx_check_decl ()
2640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2641 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2642 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2644 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2645 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2646 $as_echo_n "(cached) " >&6
2648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649 /* end confdefs.h. */
2654 #ifndef $as_decl_name
2656 (void) $as_decl_use;
2658 (void) $as_decl_name;
2666 if ac_fn_cxx_try_compile "$LINENO"; then :
2671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2675 $as_echo "$ac_res" >&6; }
2676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2678 } # ac_fn_cxx_check_decl
2680 # ac_fn_c_try_link LINENO
2681 # -----------------------
2682 # Try to link conftest.$ac_ext, and return whether this succeeded.
2685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2686 rm -f conftest.$ac_objext conftest$ac_exeext
2687 if { { ac_try="$ac_link"
2689 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2690 *) ac_try_echo
=$ac_try;;
2692 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2693 $as_echo "$ac_try_echo"; } >&5
2694 (eval "$ac_link") 2>conftest.err
2696 if test -s conftest.err
; then
2697 grep -v '^ *+' conftest.err
>conftest.er1
2698 cat conftest.er1
>&5
2699 mv -f conftest.er1 conftest.err
2701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2702 test $ac_status = 0; } && {
2703 test -z "$ac_c_werror_flag" ||
2704 test ! -s conftest.err
2705 } && test -s conftest
$ac_exeext && {
2706 test "$cross_compiling" = yes ||
2707 $as_test_x conftest
$ac_exeext
2711 $as_echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.
$ac_ext >&5
2716 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2717 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2718 # interfere with the next link command; also delete a directory that is
2719 # left behind by Apple's compiler. We do this before executing the actions.
2720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2721 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2724 } # ac_fn_c_try_link
2726 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2727 # ----------------------------------------------
2728 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2729 ac_fn_c_check_header_preproc
()
2731 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2733 $as_echo_n "checking for $2... " >&6; }
2734 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2735 $as_echo_n "(cached) " >&6
2737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h. */
2741 if ac_fn_c_try_cpp
"$LINENO"; then :
2746 rm -f conftest.err conftest.
$ac_ext
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2750 $as_echo "$ac_res" >&6; }
2751 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2753 } # ac_fn_c_check_header_preproc
2755 # ac_fn_c_check_func LINENO FUNC VAR
2756 # ----------------------------------
2757 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2758 ac_fn_c_check_func
()
2760 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2762 $as_echo_n "checking for $2... " >&6; }
2763 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2764 $as_echo_n "(cached) " >&6
2766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2767 /* end confdefs.h. */
2768 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2770 #define $2 innocuous_$2
2772 /* System header to define __stub macros and hopefully few prototypes,
2773 which can conflict with char $2 (); below.
2774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2775 <limits.h> exists even on freestanding compilers. */
2778 # include <limits.h>
2780 # include <assert.h>
2785 /* Override any GCC internal prototype to avoid an error.
2786 Use char because int might match the return type of a GCC
2787 builtin and then its argument prototype would still apply. */
2792 /* The GNU C library defines this for functions which it implements
2793 to always fail with ENOSYS. Some functions are actually named
2794 something starting with __ and the normal name is an alias. */
2795 #if defined __stub_$2 || defined __stub___$2
2807 if ac_fn_c_try_link
"$LINENO"; then :
2812 rm -f core conftest.err conftest.
$ac_objext \
2813 conftest
$ac_exeext conftest.
$ac_ext
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2817 $as_echo "$ac_res" >&6; }
2818 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2820 } # ac_fn_c_check_func
2821 cat >config.log
<<_ACEOF
2822 This file contains any messages produced by compilers while
2823 running configure, to aid debugging if configure makes a mistake.
2825 It was created by $as_me, which was
2826 generated by GNU Autoconf 2.64. Invocation command line was
2838 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2839 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2840 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2841 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2842 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2844 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2845 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2847 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2848 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2849 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2850 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2851 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2852 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2853 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2861 test -z "$as_dir" && as_dir
=.
2862 $as_echo "PATH: $as_dir"
2878 # Keep a trace of the command line.
2879 # Strip out --no-create and --no-recursion so they do not pile up.
2880 # Strip out --silent because we don't want to record it for future runs.
2881 # Also quote any args containing shell meta-characters.
2882 # Make two passes to allow for proper duplicate-argument suppression.
2886 ac_must_keep_next
=false
2892 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2893 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2894 |
-silent |
--silent |
--silen |
--sile |
--sil)
2897 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2900 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2902 as_fn_append ac_configure_args1
" '$ac_arg'"
2903 if test $ac_must_keep_next = true
; then
2904 ac_must_keep_next
=false
# Got value, back to normal.
2907 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2908 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2909 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2910 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2911 case "$ac_configure_args0 " in
2912 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2915 -* ) ac_must_keep_next
=true
;;
2918 as_fn_append ac_configure_args
" '$ac_arg'"
2923 { ac_configure_args0
=; unset ac_configure_args0
;}
2924 { ac_configure_args1
=; unset ac_configure_args1
;}
2926 # When interrupted or exit'd, cleanup temporary files, and complete
2927 # config.log. We remove comments because anyway the quotes in there
2928 # would cause problems or look ugly.
2929 # WARNING: Use '\'' to represent an apostrophe within the trap.
2930 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2931 trap 'exit_status=$?
2932 # Save into config.log some information that might help in debugging.
2937 ## ---------------- ##
2938 ## Cache variables. ##
2939 ## ---------------- ##
2942 # The following way of writing the cache mishandles newlines in values,
2944 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2945 eval ac_val=\$$ac_var
2949 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2950 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2953 _ | IFS | as_nl) ;; #(
2954 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2955 *) { eval $ac_var=; unset $ac_var;} ;;
2960 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2961 *${as_nl}ac_space=\ *)
2963 "s/'\''/'\''\\\\'\'''\''/g;
2964 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2967 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2975 ## ----------------- ##
2976 ## Output variables. ##
2977 ## ----------------- ##
2980 for ac_var in $ac_subst_vars
2982 eval ac_val=\$$ac_var
2984 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2986 $as_echo "$ac_var='\''$ac_val'\''"
2990 if test -n "$ac_subst_files"; then
2992 ## ------------------- ##
2993 ## File substitutions. ##
2994 ## ------------------- ##
2997 for ac_var
in $ac_subst_files
2999 eval ac_val
=\$
$ac_var
3001 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3003 $as_echo "$ac_var='\''$ac_val'\''"
3008 if test -s confdefs.h; then
3018 test "$ac_signal" != 0 &&
3019 $as_echo "$as_me: caught signal $ac_signal"
3020 $as_echo "$as_me: exit $exit_status"
3022 rm -f core *.core core.conftest.* &&
3023 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3026 for ac_signal
in 1 2 13 15; do
3027 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3031 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3032 rm -f -r conftest
* confdefs.h
3034 $as_echo "/* confdefs.h */" > confdefs.h
3036 # Predefined preprocessor variables.
3038 cat >>confdefs.h
<<_ACEOF
3039 #define PACKAGE_NAME "$PACKAGE_NAME"
3042 cat >>confdefs.h
<<_ACEOF
3043 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3046 cat >>confdefs.h
<<_ACEOF
3047 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3050 cat >>confdefs.h
<<_ACEOF
3051 #define PACKAGE_STRING "$PACKAGE_STRING"
3054 cat >>confdefs.h
<<_ACEOF
3055 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3058 cat >>confdefs.h
<<_ACEOF
3059 #define PACKAGE_URL "$PACKAGE_URL"
3063 # Let the site file select an alternate cache file if it wants to.
3064 # Prefer an explicitly selected file to automatically selected ones.
3067 if test -n "$CONFIG_SITE"; then
3068 ac_site_file1
=$CONFIG_SITE
3069 elif test "x$prefix" != xNONE
; then
3070 ac_site_file1
=$prefix/share
/config.site
3071 ac_site_file2
=$prefix/etc
/config.site
3073 ac_site_file1
=$ac_default_prefix/share
/config.site
3074 ac_site_file2
=$ac_default_prefix/etc
/config.site
3076 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3078 test "x$ac_site_file" = xNONE
&& continue
3079 if test -r "$ac_site_file"; then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3081 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3082 sed 's/^/| /' "$ac_site_file" >&5
3087 if test -r "$cache_file"; then
3088 # Some versions of bash will fail to source /dev/null (special
3089 # files actually), so we avoid doing that.
3090 if test -f "$cache_file"; then
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3092 $as_echo "$as_me: loading cache $cache_file" >&6;}
3094 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3095 *) .
"./$cache_file";;
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3100 $as_echo "$as_me: creating cache $cache_file" >&6;}
3104 # Check that the precious variables saved in the cache have kept the same
3106 ac_cache_corrupted
=false
3107 for ac_var
in $ac_precious_vars; do
3108 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3109 eval ac_new_set
=\
$ac_env_${ac_var}_set
3110 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3111 eval ac_new_val
=\
$ac_env_${ac_var}_value
3112 case $ac_old_set,$ac_new_set in
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3115 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3116 ac_cache_corrupted
=: ;;
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3119 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3120 ac_cache_corrupted
=: ;;
3123 if test "x$ac_old_val" != "x$ac_new_val"; then
3124 # differences in whitespace do not lead to failure.
3125 ac_old_val_w
=`echo x $ac_old_val`
3126 ac_new_val_w
=`echo x $ac_new_val`
3127 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3129 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3130 ac_cache_corrupted
=:
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3133 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3134 eval $ac_var=\
$ac_old_val
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3137 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3139 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3142 # Pass precious variables to config.status.
3143 if test "$ac_new_set" = set; then
3145 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3146 *) ac_arg
=$ac_var=$ac_new_val ;;
3148 case " $ac_configure_args " in
3149 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3150 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3154 if $ac_cache_corrupted; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3158 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3159 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3161 ## -------------------- ##
3162 ## Main body of script. ##
3163 ## -------------------- ##
3166 ac_cpp
='$CPP $CPPFLAGS'
3167 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3168 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3169 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3176 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3179 gcc_version
=`cat $srcdir/BASE-VER`
3181 # Determine the host, build, and target systems
3183 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3184 for ac_t
in install-sh
install.sh shtool
; do
3185 if test -f "$ac_dir/$ac_t"; then
3187 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3192 if test -z "$ac_aux_dir"; then
3193 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3196 # These three variables are undocumented and unsupported,
3197 # and are intended to be withdrawn in a future Autoconf release.
3198 # They can cause serious problems if a builder's source tree is in a directory
3199 # whose full name contains unusual characters.
3200 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3201 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3202 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3205 # Make sure we can run config.sub.
3206 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3207 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3210 $as_echo_n "checking build system type... " >&6; }
3211 if test "${ac_cv_build+set}" = set; then :
3212 $as_echo_n "(cached) " >&6
3214 ac_build_alias
=$build_alias
3215 test "x$ac_build_alias" = x
&&
3216 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3217 test "x$ac_build_alias" = x
&&
3218 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3219 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3220 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3224 $as_echo "$ac_cv_build" >&6; }
3225 case $ac_cv_build in
3227 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3230 ac_save_IFS
=$IFS; IFS
='-'
3236 # Remember, the first character of IFS is used to create $*,
3237 # except with old shells:
3240 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3244 $as_echo_n "checking host system type... " >&6; }
3245 if test "${ac_cv_host+set}" = set; then :
3246 $as_echo_n "(cached) " >&6
3248 if test "x$host_alias" = x
; then
3249 ac_cv_host
=$ac_cv_build
3251 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3252 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3257 $as_echo "$ac_cv_host" >&6; }
3260 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3263 ac_save_IFS
=$IFS; IFS
='-'
3269 # Remember, the first character of IFS is used to create $*,
3270 # except with old shells:
3273 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3277 $as_echo_n "checking target system type... " >&6; }
3278 if test "${ac_cv_target+set}" = set; then :
3279 $as_echo_n "(cached) " >&6
3281 if test "x$target_alias" = x
; then
3282 ac_cv_target
=$ac_cv_host
3284 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3285 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3290 $as_echo "$ac_cv_target" >&6; }
3291 case $ac_cv_target in
3293 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3295 target
=$ac_cv_target
3296 ac_save_IFS
=$IFS; IFS
='-'
3302 # Remember, the first character of IFS is used to create $*,
3303 # except with old shells:
3306 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3309 # The aliases save the names the user supplied, while $host etc.
3310 # will get canonicalized.
3311 test -n "$target_alias" &&
3312 test "$program_prefix$program_suffix$program_transform_name" = \
3314 program_prefix
=${target_alias}-
3316 # Determine the noncanonical target name, for directory use.
3317 case ${build_alias} in
3318 "") build_noncanonical
=${build} ;;
3319 *) build_noncanonical
=${build_alias} ;;
3322 case ${host_alias} in
3323 "") host_noncanonical
=${build_noncanonical} ;;
3324 *) host_noncanonical
=${host_alias} ;;
3327 case ${target_alias} in
3328 "") target_noncanonical
=${host_noncanonical} ;;
3329 *) target_noncanonical
=${target_alias} ;;
3335 # Used for constructing correct paths for offload compilers.
3336 real_target_noncanonical
=${target_noncanonical}
3339 # Determine the target- and build-specific subdirectories
3341 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3342 # have matching libraries, they should use host libraries: Makefile.tpl
3343 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3344 # However, they still use the build modules, because the corresponding
3345 # host modules (e.g. bison) are only built for the host when bootstrap
3347 # - build_subdir is where we find build modules, and never changes.
3348 # - build_libsubdir is where we find build libraries, and can be overridden.
3350 # Prefix 'build-' so this never conflicts with target_subdir.
3351 build_subdir
="build-${build_noncanonical}"
3353 # Check whether --with-build-libsubdir was given.
3354 if test "${with_build_libsubdir+set}" = set; then :
3355 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3357 build_libsubdir
="$build_subdir"
3360 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3361 if ( test $srcdir = .
&& test -d gcc
) \
3362 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3363 host_subdir
="host-${host_noncanonical}"
3368 target_subdir
=${target_noncanonical}
3371 # Set program_transform_name
3372 test "$program_prefix" != NONE
&&
3373 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3374 # Use a double $ so make ignores it.
3375 test "$program_suffix" != NONE
&&
3376 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3377 # Double any \ or $.
3378 # By default was `s,x,x', remove it if useless.
3379 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3380 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3383 # Check for bogus environment variables.
3384 # Test if LIBRARY_PATH contains the notation for the current directory
3385 # since this would lead to problems installing/building glibc.
3386 # LIBRARY_PATH contains the current directory if one of the following
3388 # - one of the terminals (":" and ";") is the first or last sign
3389 # - two terminals occur directly after each other
3390 # - the path contains an element with a dot in it
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3392 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3393 case ${LIBRARY_PATH} in
3394 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3395 library_path_setting
="contains current directory"
3398 library_path_setting
="ok"
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3402 $as_echo "$library_path_setting" >&6; }
3403 if test "$library_path_setting" != "ok"; then
3405 *** LIBRARY_PATH shouldn't contain the current directory when
3406 *** building gcc. Please change the environment variable
3407 *** and run configure again." "$LINENO" 5
3410 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3411 # since this would lead to problems installing/building glibc.
3412 # GCC_EXEC_PREFIX contains the current directory if one of the following
3414 # - one of the terminals (":" and ";") is the first or last sign
3415 # - two terminals occur directly after each other
3416 # - the path contains an element with a dot in it
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3418 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3419 case ${GCC_EXEC_PREFIX} in
3420 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3421 gcc_exec_prefix_setting
="contains current directory"
3424 gcc_exec_prefix_setting
="ok"
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3428 $as_echo "$gcc_exec_prefix_setting" >&6; }
3429 if test "$gcc_exec_prefix_setting" != "ok"; then
3431 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3432 *** building gcc. Please change the environment variable
3433 *** and run configure again." "$LINENO" 5
3440 # Specify the local prefix
3443 # Check whether --with-local-prefix was given.
3444 if test "${with_local_prefix+set}" = set; then :
3445 withval
=$with_local_prefix; case "${withval}" in
3446 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3448 *) local_prefix
=$with_local_prefix ;;
3453 # Default local prefix if it is empty
3454 if test x
$local_prefix = x
; then
3455 local_prefix
=/usr
/local
3459 # Check whether --with-native-system-header-dir was given.
3460 if test "${with_native_system_header_dir+set}" = set; then :
3461 withval
=$with_native_system_header_dir;
3462 case ${with_native_system_header_dir} in
3463 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3464 /* |
[A-Za-z
]:[\\/]*) ;;
3465 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3467 configured_native_system_header_dir
="${withval}"
3470 configured_native_system_header_dir
=
3475 # Check whether --with-build-sysroot was given.
3476 if test "${with_build_sysroot+set}" = set; then :
3477 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
3478 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
3481 SYSROOT_CFLAGS_FOR_TARGET
=
3486 if test "x$prefix" = xNONE
; then
3487 test_prefix
=/usr
/local
3491 if test "x$exec_prefix" = xNONE
; then
3492 test_exec_prefix
=$test_prefix
3494 test_exec_prefix
=$exec_prefix
3498 # Check whether --with-sysroot was given.
3499 if test "${with_sysroot+set}" = set; then :
3500 withval
=$with_sysroot;
3501 case ${with_sysroot} in
3503 */) with_sysroot
=`echo $with_sysroot | sed 's,/$,,'` ;;
3505 case ${with_sysroot} in
3506 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3507 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
3510 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3511 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3513 case ${TARGET_SYSTEM_ROOT} in
3514 "${test_prefix}"|
"${test_prefix}/"*|\
3515 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
3516 '${prefix}'|
'${prefix}/'*|\
3517 '${exec_prefix}'|
'${exec_prefix}/'*)
3518 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3519 TARGET_SYSTEM_ROOT_DEFINE
="$t"
3526 TARGET_SYSTEM_ROOT_DEFINE
=
3527 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
3535 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3536 # passed in by the toplevel make and thus we'd get different behavior
3537 # depending on where we built the sources.
3538 gcc_gxx_include_dir
=
3539 # Specify the g++ header file directory
3541 # Check whether --with-gxx-include-dir was given.
3542 if test "${with_gxx_include_dir+set}" = set; then :
3543 withval
=$with_gxx_include_dir; case "${withval}" in
3544 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3546 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3551 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3552 if test x
${gcc_gxx_include_dir} = x
; then
3553 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3554 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3556 libstdcxx_incdir
='include/c++/$(version)'
3557 if test x
$host != x
$target; then
3558 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3560 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3564 gcc_gxx_include_dir_add_sysroot
=0
3565 if test "${with_sysroot+set}" = set; then
3566 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3567 if test "${gcc_gxx_without_sysroot}"; then
3568 if test x
${with_sysroot} != x
/; then
3569 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3571 gcc_gxx_include_dir_add_sysroot
=1
3576 # Check whether --with-cpp_install_dir was given.
3577 if test "${with_cpp_install_dir+set}" = set; then :
3578 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3579 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3580 elif test x
$withval != xno
; then
3581 cpp_install_dir
=$withval
3586 # We would like to our source tree to be readonly. However when releases or
3587 # pre-releases are generated, the flex/bison generated files as well as the
3588 # various formats of manuals need to be included along with the rest of the
3589 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3593 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3594 # Check whether --enable-generated-files-in-srcdir was given.
3595 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3596 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3598 generated_files_in_srcdir
=no
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3603 $as_echo "$generated_files_in_srcdir" >&6; }
3605 if test "$generated_files_in_srcdir" = "yes"; then
3612 # -------------------
3613 # Find default linker
3614 # -------------------
3618 # Check whether --with-gnu-ld was given.
3619 if test "${with_gnu_ld+set}" = set; then :
3620 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3626 # With pre-defined ld
3628 # Check whether --with-ld was given.
3629 if test "${with_ld+set}" = set; then :
3630 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3633 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3634 if test ! -x "$DEFAULT_LINKER"; then
3635 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3636 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3640 cat >>confdefs.h
<<_ACEOF
3641 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3647 $as_echo_n "checking whether a default linker was specified... " >&6; }
3648 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3649 if test x
"$gnu_ld_flag" = x
"no"; then
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3651 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3654 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658 $as_echo "no" >&6; }
3661 # With demangler in GNU ld
3663 # Check whether --with-demangler-in-ld was given.
3664 if test "${with_demangler_in_ld+set}" = set; then :
3665 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3671 # ----------------------
3672 # Find default assembler
3673 # ----------------------
3677 # Check whether --with-gnu-as was given.
3678 if test "${with_gnu_as+set}" = set; then :
3679 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3686 # Check whether --with-as was given.
3687 if test "${with_as+set}" = set; then :
3688 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3691 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3692 if test ! -x "$DEFAULT_ASSEMBLER"; then
3693 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3694 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3698 cat >>confdefs.h
<<_ACEOF
3699 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3705 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3706 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3707 if test x
"$gas_flag" = x
"no"; then
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3709 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3712 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716 $as_echo "no" >&6; }
3723 # If a non-executable a.out is present (e.g. created by GNU as above even if
3724 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3725 # file, even when creating an executable, so an execution test fails.
3726 # Remove possible default executable files to avoid this.
3728 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3729 # Autoconf includes it.
3730 rm -f a.out a.exe b.out
3732 # Find the native compiler
3734 ac_cpp
='$CPP $CPPFLAGS'
3735 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3738 if test -n "$ac_tool_prefix"; then
3739 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3740 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742 $as_echo_n "checking for $ac_word... " >&6; }
3743 if test "${ac_cv_prog_CC+set}" = set; then :
3744 $as_echo_n "(cached) " >&6
3746 if test -n "$CC"; then
3747 ac_cv_prog_CC
="$CC" # Let the user override the test.
3749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3753 test -z "$as_dir" && as_dir
=.
3754 for ac_exec_ext
in '' $ac_executable_extensions; do
3755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3756 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 if test -n "$CC"; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3769 $as_echo "$CC" >&6; }
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3777 if test -z "$ac_cv_prog_CC"; then
3779 # Extract the first word of "gcc", so it can be a program name with args.
3780 set dummy gcc
; ac_word
=$2
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782 $as_echo_n "checking for $ac_word... " >&6; }
3783 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3784 $as_echo_n "(cached) " >&6
3786 if test -n "$ac_ct_CC"; then
3787 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3793 test -z "$as_dir" && as_dir
=.
3794 for ac_exec_ext
in '' $ac_executable_extensions; do
3795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3796 ac_cv_prog_ac_ct_CC
="gcc"
3797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3807 if test -n "$ac_ct_CC"; then
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3809 $as_echo "$ac_ct_CC" >&6; }
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3815 if test "x$ac_ct_CC" = x
; then
3818 case $cross_compiling:$ac_tool_warned in
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3822 ac_tool_warned
=yes ;;
3830 if test -z "$CC"; then
3831 if test -n "$ac_tool_prefix"; then
3832 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3833 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3835 $as_echo_n "checking for $ac_word... " >&6; }
3836 if test "${ac_cv_prog_CC+set}" = set; then :
3837 $as_echo_n "(cached) " >&6
3839 if test -n "$CC"; then
3840 ac_cv_prog_CC
="$CC" # Let the user override the test.
3842 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3846 test -z "$as_dir" && as_dir
=.
3847 for ac_exec_ext
in '' $ac_executable_extensions; do
3848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3849 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 if test -n "$CC"; then
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3862 $as_echo "$CC" >&6; }
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865 $as_echo "no" >&6; }
3871 if test -z "$CC"; then
3872 # Extract the first word of "cc", so it can be a program name with args.
3873 set dummy cc
; ac_word
=$2
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875 $as_echo_n "checking for $ac_word... " >&6; }
3876 if test "${ac_cv_prog_CC+set}" = set; then :
3877 $as_echo_n "(cached) " >&6
3879 if test -n "$CC"; then
3880 ac_cv_prog_CC
="$CC" # Let the user override the test.
3883 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3887 test -z "$as_dir" && as_dir
=.
3888 for ac_exec_ext
in '' $ac_executable_extensions; do
3889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3890 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3891 ac_prog_rejected
=yes
3895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 if test $ac_prog_rejected = yes; then
3903 # We found a bogon in the path, so make sure we never use it.
3904 set dummy
$ac_cv_prog_CC
3906 if test $# != 0; then
3907 # We chose a different compiler from the bogus one.
3908 # However, it has the same basename, so the bogon will be chosen
3909 # first if we set CC to just the basename; use the full file name.
3911 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3917 if test -n "$CC"; then
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3919 $as_echo "$CC" >&6; }
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 $as_echo "no" >&6; }
3927 if test -z "$CC"; then
3928 if test -n "$ac_tool_prefix"; then
3929 for ac_prog
in cl.exe
3931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3932 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934 $as_echo_n "checking for $ac_word... " >&6; }
3935 if test "${ac_cv_prog_CC+set}" = set; then :
3936 $as_echo_n "(cached) " >&6
3938 if test -n "$CC"; then
3939 ac_cv_prog_CC
="$CC" # Let the user override the test.
3941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3945 test -z "$as_dir" && as_dir
=.
3946 for ac_exec_ext
in '' $ac_executable_extensions; do
3947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3948 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3959 if test -n "$CC"; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3961 $as_echo "$CC" >&6; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964 $as_echo "no" >&6; }
3968 test -n "$CC" && break
3971 if test -z "$CC"; then
3973 for ac_prog
in cl.exe
3975 # Extract the first word of "$ac_prog", so it can be a program name with args.
3976 set dummy
$ac_prog; ac_word
=$2
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3982 if test -n "$ac_ct_CC"; then
3983 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3989 test -z "$as_dir" && as_dir
=.
3990 for ac_exec_ext
in '' $ac_executable_extensions; do
3991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3992 ac_cv_prog_ac_ct_CC
="$ac_prog"
3993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4003 if test -n "$ac_ct_CC"; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4005 $as_echo "$ac_ct_CC" >&6; }
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008 $as_echo "no" >&6; }
4012 test -n "$ac_ct_CC" && break
4015 if test "x$ac_ct_CC" = x
; then
4018 case $cross_compiling:$ac_tool_warned in
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4022 ac_tool_warned
=yes ;;
4031 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4033 as_fn_error
"no acceptable C compiler found in \$PATH
4034 See \`config.log' for more details." "$LINENO" 5; }
4036 # Provide some information about the compiler.
4037 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4040 for ac_option
in --version -v -V -qversion; do
4041 { { ac_try
="$ac_compiler $ac_option >&5"
4043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4047 $as_echo "$ac_try_echo"; } >&5
4048 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4050 if test -s conftest.err; then
4052 ... rest of stderr output deleted ...
4053 10q' conftest.err >conftest.er1
4054 cat conftest.er1 >&5
4055 rm -f conftest.er1 conftest.err
4057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058 test $ac_status = 0; }
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4072 ac_clean_files_save=$ac_clean_files
4073 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4074 # Try to create an executable without -o first, disregard a.out.
4075 # It will help us diagnose broken compilers, and finding out an intuition
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4078 $as_echo_n "checking for C compiler default output file name... " >&6; }
4079 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4081 # The possible output files:
4082 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4085 for ac_file in $ac_files
4088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4089 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4094 if { { ac_try="$ac_link_default"
4096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4097 *) ac_try_echo
=$ac_try;;
4099 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4100 $as_echo "$ac_try_echo"; } >&5
4101 (eval "$ac_link_default") 2>&5
4103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4104 test $ac_status = 0; }; then :
4105 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4106 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4107 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4108 # so that the user can short-circuit this test for compilers unknown to
4110 for ac_file
in $ac_files ''
4112 test -f "$ac_file" ||
continue
4114 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4117 # We found the default executable, but exeext='' is most
4121 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4123 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4125 # We set ac_cv_exeext here because the later test for it is not
4126 # safe: cross compilers may not add the suffix if given an `-o'
4127 # argument, so we may need to know it at that point already.
4128 # Even if this section looks crufty: it has the advantage of
4135 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4141 $as_echo "$ac_file" >&6; }
4142 if test -z "$ac_file"; then :
4143 $as_echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.
$ac_ext >&5
4146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4148 { as_fn_set_status
77
4149 as_fn_error
"C compiler cannot create executables
4150 See \`config.log' for more details." "$LINENO" 5; }; }
4152 ac_exeext
=$ac_cv_exeext
4154 # Check that the compiler produces executables we can run. If not, either
4155 # the compiler is broken, or we cross compile.
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4157 $as_echo_n "checking whether the C compiler works... " >&6; }
4158 # If not cross compiling, check that we can run a simple program.
4159 if test "$cross_compiling" != yes; then
4160 if { ac_try
='./$ac_file'
4161 { { case "(($ac_try" in
4162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4166 $as_echo "$ac_try_echo"; } >&5
4167 (eval "$ac_try") 2>&5
4169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4170 test $ac_status = 0; }; }; then
4173 if test "$cross_compiling" = maybe; then
4176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4178 as_fn_error "cannot run C compiled programs.
4179 If you meant to cross compile
, use \
`--host'.
4180 See \`config.log
' for more details." "$LINENO" 5; }
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4185 $as_echo "yes" >&6; }
4187 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4188 ac_clean_files=$ac_clean_files_save
4189 # Check that the compiler produces executables we can run. If not, either
4190 # the compiler is broken, or we cross compile.
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4192 $as_echo_n "checking whether we are cross compiling... " >&6; }
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4194 $as_echo "$cross_compiling" >&6; }
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4197 $as_echo_n "checking for suffix of executables... " >&6; }
4198 if { { ac_try="$ac_link"
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4204 $as_echo "$ac_try_echo"; } >&5
4205 (eval "$ac_link") 2>&5
4207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208 test $ac_status = 0; }; then :
4209 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4210 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4211 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4213 for ac_file
in conftest.exe conftest conftest.
*; do
4214 test -f "$ac_file" ||
continue
4216 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4217 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4225 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4226 See \`config.log' for more details." "$LINENO" 5; }
4228 rm -f conftest
$ac_cv_exeext
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4230 $as_echo "$ac_cv_exeext" >&6; }
4232 rm -f conftest.
$ac_ext
4233 EXEEXT
=$ac_cv_exeext
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4236 $as_echo_n "checking for suffix of object files... " >&6; }
4237 if test "${ac_cv_objext+set}" = set; then :
4238 $as_echo_n "(cached) " >&6
4240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4251 rm -f conftest.o conftest.obj
4252 if { { ac_try
="$ac_compile"
4254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4258 $as_echo "$ac_try_echo"; } >&5
4259 (eval "$ac_compile") 2>&5
4261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4262 test $ac_status = 0; }; then :
4263 for ac_file in conftest.o conftest.obj conftest.*; do
4264 test -f "$ac_file" || continue;
4266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4267 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4272 $as_echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4277 as_fn_error "cannot compute suffix of object files
: cannot compile
4278 See \
`config.log' for more details." "$LINENO" 5; }
4280 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4283 $as_echo "$ac_cv_objext" >&6; }
4284 OBJEXT=$ac_cv_objext
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4287 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4288 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4289 $as_echo_n "(cached) " >&6
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4305 if ac_fn_c_try_compile "$LINENO"; then :
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4315 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4316 if test $ac_compiler_gnu = yes; then
4321 ac_test_CFLAGS=${CFLAGS+set}
4322 ac_save_CFLAGS=$CFLAGS
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4324 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4325 if test "${ac_cv_prog_cc_g+set}" = set; then :
4326 $as_echo_n "(cached) " >&6
4328 ac_save_c_werror_flag=$ac_c_werror_flag
4329 ac_c_werror_flag=yes
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4343 if ac_fn_c_try_compile "$LINENO"; then :
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4358 if ac_fn_c_try_compile "$LINENO"; then :
4361 ac_c_werror_flag=$ac_save_c_werror_flag
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4374 if ac_fn_c_try_compile "$LINENO"; then :
4377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 ac_c_werror_flag=$ac_save_c_werror_flag
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4385 $as_echo "$ac_cv_prog_cc_g" >&6; }
4386 if test "$ac_test_CFLAGS" = set; then
4387 CFLAGS=$ac_save_CFLAGS
4388 elif test $ac_cv_prog_cc_g = yes; then
4389 if test "$GCC" = yes; then
4395 if test "$GCC" = yes; then
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4402 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4403 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4404 $as_echo_n "(cached) " >&6
4406 ac_cv_prog_cc_c89=no
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h. */
4412 #include <sys/types.h>
4413 #include <sys/stat.h>
4414 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4415 struct buf { int x; };
4416 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4417 static char *e (p, i)
4423 static char *f (char * (*g) (char **, int), char **p, ...)
4428 s = g (p, va_arg (v,int));
4433 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4434 function prototypes and stuff, but not '\xHH' hex character constants.
4435 These don't provoke an error unfortunately, instead are silently treated
4436 as 'x'. The following induces an error, until -std is added to get
4437 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4438 array size at least. It's necessary to write '\x00'==0 to get something
4439 that's true only with -std. */
4440 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4442 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4443 inside strings and character constants. */
4445 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4447 int test (int i, double x);
4448 struct s1 {int (*f) (int a);};
4449 struct s2 {int (*f) (double a);};
4450 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4456 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4461 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4462 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4464 CC="$ac_save_CC $ac_arg"
4465 if ac_fn_c_try_compile "$LINENO"; then :
4466 ac_cv_prog_cc_c89=$ac_arg
4468 rm -f core conftest.err conftest.$ac_objext
4469 test "x$ac_cv_prog_cc_c89" != "xno" && break
4471 rm -f conftest.$ac_ext
4476 case "x$ac_cv_prog_cc_c89" in
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4479 $as_echo "none needed" >&6; } ;;
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4482 $as_echo "unsupported" >&6; } ;;
4484 CC="$CC $ac_cv_prog_cc_c89"
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4486 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4488 if test "x$ac_cv_prog_cc_c89" != xno; then :
4493 ac_cpp='$CPP $CPPFLAGS'
4494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4499 ac_cpp='$CXXCPP $CPPFLAGS'
4500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4503 if test -z "$CXX"; then
4504 if test -n "$CCC"; then
4507 if test -n "$ac_tool_prefix"; then
4508 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4511 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513 $as_echo_n "checking for $ac_word... " >&6; }
4514 if test "${ac_cv_prog_CXX+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
4517 if test -n "$CXX"; then
4518 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4527 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 if test -n "$CXX"; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4540 $as_echo "$CXX" >&6; }
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4547 test -n "$CXX" && break
4550 if test -z "$CXX"; then
4552 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4554 # Extract the first word of "$ac_prog", so it can be a program name with args.
4555 set dummy $ac_prog; ac_word=$2
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 $as_echo_n "checking for $ac_word... " >&6; }
4558 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4561 if test -n "$ac_ct_CXX"; then
4562 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4571 ac_cv_prog_ac_ct_CXX="$ac_prog"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4582 if test -n "$ac_ct_CXX"; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4584 $as_echo "$ac_ct_CXX" >&6; }
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 $as_echo "no" >&6; }
4591 test -n "$ac_ct_CXX" && break
4594 if test "x$ac_ct_CXX" = x; then
4597 case $cross_compiling:$ac_tool_warned in
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4601 ac_tool_warned=yes ;;
4609 # Provide some information about the compiler.
4610 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4613 for ac_option in --version -v -V -qversion; do
4614 { { ac_try="$ac_compiler $ac_option >&5"
4616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4617 *) ac_try_echo
=$ac_try;;
4619 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4620 $as_echo "$ac_try_echo"; } >&5
4621 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4623 if test -s conftest.err
; then
4625 ... rest of stderr output deleted ...
4626 10q' conftest.err
>conftest.er1
4627 cat conftest.er1
>&5
4628 rm -f conftest.er1 conftest.err
4630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4631 test $ac_status = 0; }
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4635 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4636 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4637 $as_echo_n "(cached) " >&6
4639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h. */
4653 if ac_fn_cxx_try_compile
"$LINENO"; then :
4658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4659 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4663 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4664 if test $ac_compiler_gnu = yes; then
4669 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4670 ac_save_CXXFLAGS
=$CXXFLAGS
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4672 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4673 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4674 $as_echo_n "(cached) " >&6
4676 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4677 ac_cxx_werror_flag
=yes
4680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4691 if ac_fn_cxx_try_compile
"$LINENO"; then :
4692 ac_cv_prog_cxx_g
=yes
4695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4706 if ac_fn_cxx_try_compile
"$LINENO"; then :
4709 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4722 if ac_fn_cxx_try_compile
"$LINENO"; then :
4723 ac_cv_prog_cxx_g
=yes
4725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4730 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4733 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4734 if test "$ac_test_CXXFLAGS" = set; then
4735 CXXFLAGS
=$ac_save_CXXFLAGS
4736 elif test $ac_cv_prog_cxx_g = yes; then
4737 if test "$GXX" = yes; then
4743 if test "$GXX" = yes; then
4750 ac_cpp
='$CPP $CPPFLAGS'
4751 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4758 if test -n "$ac_tool_prefix"; then
4759 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4760 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762 $as_echo_n "checking for $ac_word... " >&6; }
4763 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4764 $as_echo_n "(cached) " >&6
4766 if test -n "$GNATBIND"; then
4767 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4773 test -z "$as_dir" && as_dir
=.
4774 for ac_exec_ext
in '' $ac_executable_extensions; do
4775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4776 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 GNATBIND
=$ac_cv_prog_GNATBIND
4787 if test -n "$GNATBIND"; then
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4789 $as_echo "$GNATBIND" >&6; }
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792 $as_echo "no" >&6; }
4797 if test -z "$ac_cv_prog_GNATBIND"; then
4798 ac_ct_GNATBIND
=$GNATBIND
4799 # Extract the first word of "gnatbind", so it can be a program name with args.
4800 set dummy gnatbind
; ac_word
=$2
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4802 $as_echo_n "checking for $ac_word... " >&6; }
4803 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4804 $as_echo_n "(cached) " >&6
4806 if test -n "$ac_ct_GNATBIND"; then
4807 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4813 test -z "$as_dir" && as_dir
=.
4814 for ac_exec_ext
in '' $ac_executable_extensions; do
4815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4816 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4827 if test -n "$ac_ct_GNATBIND"; then
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4829 $as_echo "$ac_ct_GNATBIND" >&6; }
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832 $as_echo "no" >&6; }
4835 if test "x$ac_ct_GNATBIND" = x
; then
4838 case $cross_compiling:$ac_tool_warned in
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4842 ac_tool_warned
=yes ;;
4844 GNATBIND
=$ac_ct_GNATBIND
4847 GNATBIND
="$ac_cv_prog_GNATBIND"
4850 if test -n "$ac_tool_prefix"; then
4851 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4852 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4856 $as_echo_n "(cached) " >&6
4858 if test -n "$GNATMAKE"; then
4859 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4865 test -z "$as_dir" && as_dir
=.
4866 for ac_exec_ext
in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 GNATMAKE
=$ac_cv_prog_GNATMAKE
4879 if test -n "$GNATMAKE"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4881 $as_echo "$GNATMAKE" >&6; }
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4889 if test -z "$ac_cv_prog_GNATMAKE"; then
4890 ac_ct_GNATMAKE
=$GNATMAKE
4891 # Extract the first word of "gnatmake", so it can be a program name with args.
4892 set dummy gnatmake
; ac_word
=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4896 $as_echo_n "(cached) " >&6
4898 if test -n "$ac_ct_GNATMAKE"; then
4899 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4905 test -z "$as_dir" && as_dir
=.
4906 for ac_exec_ext
in '' $ac_executable_extensions; do
4907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4908 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4919 if test -n "$ac_ct_GNATMAKE"; then
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4921 $as_echo "$ac_ct_GNATMAKE" >&6; }
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924 $as_echo "no" >&6; }
4927 if test "x$ac_ct_GNATMAKE" = x
; then
4930 case $cross_compiling:$ac_tool_warned in
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4934 ac_tool_warned
=yes ;;
4936 GNATMAKE
=$ac_ct_GNATMAKE
4939 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4943 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4944 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4945 $as_echo_n "(cached) " >&6
4947 cat >conftest.adb
<<EOF
4948 procedure conftest is begin null; end conftest;
4950 acx_cv_cc_gcc_supports_ada
=no
4951 # There is a bug in old released versions of GCC which causes the
4952 # driver to exit successfully when the appropriate language module
4953 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4954 # Therefore we must check for the error message as well as an
4955 # unsuccessful exit.
4956 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4957 # given a .adb file, but produce no object file. So we must check
4958 # if an object file was really produced to guard against this.
4959 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4960 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4961 acx_cv_cc_gcc_supports_ada
=yes
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4966 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4968 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4975 # Do configure tests with the C++ compiler, since that's what we build with.
4977 ac_cpp
='$CXXCPP $CPPFLAGS'
4978 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4983 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4984 # optimizations to be activated explicitly by the toplevel.
4986 */prev-gcc
/xgcc
*) ;;
4987 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4988 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4993 # Determine PICFLAG for target gnatlib.
4999 # PIC is the default on some targets or must not be used.
5001 # For darwin, common symbols are not allowed in MH_DYLIB files
5003 # If we are using a compiler supporting mdynamic-no-pic
5004 # and the option has been tested as safe to add, then cancel
5005 # it here, since the code generated is incompatible with shared
5007 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5008 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5012 # PIC is the default.
5015 # PIC is the default for 64-bit PA HP-UX.
5017 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5019 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5021 i
[34567]86-*-interix[3-9]*)
5022 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5023 # Instead, we relocate shared libraries at runtime.
5025 i
[34567]86-*-nto-qnx*)
5026 # QNX uses GNU C++, but need to define -shared option too, otherwise
5028 PICFLAG_FOR_TARGET
='-fPIC -shared'
5030 i
[34567]86-pc-msdosdjgpp*)
5031 # DJGPP does not support shared libraries at all.
5034 # On IA64 HP-UX, PIC is the default but the pic flag
5035 # sets the default TLS model and affects inlining.
5036 PICFLAG_FOR_TARGET
=-fPIC
5039 # PIC is the default.
5041 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5042 # All AIX code is PIC.
5045 # Some targets support both -fPIC and -fpic, but prefer the latter.
5047 i
[34567]86-*-* | x86_64-
*-*)
5048 PICFLAG_FOR_TARGET
=-fpic
5050 # FIXME: Override -fPIC default in libgcc only?
5051 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5052 PICFLAG_FOR_TARGET
=-fpic
5054 # FIXME: Simplify to sh*-*-netbsd*?
5055 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5056 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5057 PICFLAG_FOR_TARGET
=-fpic
5059 # Default to -fPIC unless specified otherwise.
5061 PICFLAG_FOR_TARGET
=-fPIC
5065 # If the user explicitly uses -fpic/-fPIC, keep that.
5066 case "${CFLAGS_FOR_TARGET}" in
5068 PICFLAG_FOR_TARGET
=-fpic
5071 PICFLAG_FOR_TARGET
=-fPIC
5077 # -------------------------
5078 # Check C compiler features
5079 # -------------------------
5083 ac_cpp
='$CXXCPP $CPPFLAGS'
5084 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5088 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5089 if test -z "$CXXCPP"; then
5090 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5091 $as_echo_n "(cached) " >&6
5093 # Double quotes because CXXCPP needs to be expanded
5094 for CXXCPP
in "$CXX -E" "/lib/cpp"
5097 for ac_cxx_preproc_warn_flag
in '' yes
5099 # Use a header file that comes with gcc, so configuring glibc
5100 # with a fresh cross-compiler works.
5101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5102 # <limits.h> exists even on freestanding compilers.
5103 # On the NeXT, cc -E runs the code through the compiler's parser,
5104 # not just through cpp. "Syntax error" is here to catch this case.
5105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5108 # include <limits.h>
5110 # include <assert.h>
5114 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5117 # Broken: fails on valid input.
5120 rm -f conftest.err conftest.
$ac_ext
5122 # OK, works on sane cases. Now check whether nonexistent headers
5123 # can be detected and how.
5124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h. */
5126 #include <ac_nonexistent.h>
5128 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5129 # Broken: success on invalid input.
5132 # Passes both tests.
5136 rm -f conftest.err conftest.
$ac_ext
5139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5140 rm -f conftest.err conftest.
$ac_ext
5141 if $ac_preproc_ok; then :
5146 ac_cv_prog_CXXCPP
=$CXXCPP
5149 CXXCPP
=$ac_cv_prog_CXXCPP
5151 ac_cv_prog_CXXCPP
=$CXXCPP
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5154 $as_echo "$CXXCPP" >&6; }
5156 for ac_cxx_preproc_warn_flag
in '' yes
5158 # Use a header file that comes with gcc, so configuring glibc
5159 # with a fresh cross-compiler works.
5160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5161 # <limits.h> exists even on freestanding compilers.
5162 # On the NeXT, cc -E runs the code through the compiler's parser,
5163 # not just through cpp. "Syntax error" is here to catch this case.
5164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5165 /* end confdefs.h. */
5167 # include <limits.h>
5169 # include <assert.h>
5173 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5176 # Broken: fails on valid input.
5179 rm -f conftest.err conftest.
$ac_ext
5181 # OK, works on sane cases. Now check whether nonexistent headers
5182 # can be detected and how.
5183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5185 #include <ac_nonexistent.h>
5187 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5188 # Broken: success on invalid input.
5191 # Passes both tests.
5195 rm -f conftest.err conftest.
$ac_ext
5198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5199 rm -f conftest.err conftest.
$ac_ext
5200 if $ac_preproc_ok; then :
5203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5205 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
5206 See \`config.log' for more details." "$LINENO" 5; }
5210 ac_cpp
='$CXXCPP $CPPFLAGS'
5211 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5212 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5213 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5217 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5218 if test "${ac_cv_path_GREP+set}" = set; then :
5219 $as_echo_n "(cached) " >&6
5221 if test -z "$GREP"; then
5222 ac_path_GREP_found
=false
5223 # Loop through the user's path and test for each of PROGNAME-LIST
5224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5225 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5228 test -z "$as_dir" && as_dir
=.
5229 for ac_prog
in grep ggrep
; do
5230 for ac_exec_ext
in '' $ac_executable_extensions; do
5231 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5232 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5233 # Check for GNU ac_path_GREP and select it if it is found.
5234 # Check for GNU $ac_path_GREP
5235 case `"$ac_path_GREP" --version 2>&1` in
5237 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5240 $as_echo_n 0123456789 >"conftest.in"
5243 cat "conftest.in" "conftest.in" >"conftest.tmp"
5244 mv "conftest.tmp" "conftest.in"
5245 cp "conftest.in" "conftest.nl"
5246 $as_echo 'GREP' >> "conftest.nl"
5247 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5248 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5249 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5250 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5251 # Best one so far, save it but keep looking for a better one
5252 ac_cv_path_GREP
="$ac_path_GREP"
5253 ac_path_GREP_max
=$ac_count
5255 # 10*(2^10) chars as input seems more than enough
5256 test $ac_count -gt 10 && break
5258 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5261 $ac_path_GREP_found && break 3
5266 if test -z "$ac_cv_path_GREP"; then
5267 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5270 ac_cv_path_GREP
=$GREP
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5275 $as_echo "$ac_cv_path_GREP" >&6; }
5276 GREP
="$ac_cv_path_GREP"
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5280 $as_echo_n "checking for egrep... " >&6; }
5281 if test "${ac_cv_path_EGREP+set}" = set; then :
5282 $as_echo_n "(cached) " >&6
5284 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5285 then ac_cv_path_EGREP
="$GREP -E"
5287 if test -z "$EGREP"; then
5288 ac_path_EGREP_found
=false
5289 # Loop through the user's path and test for each of PROGNAME-LIST
5290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5291 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5294 test -z "$as_dir" && as_dir
=.
5295 for ac_prog
in egrep; do
5296 for ac_exec_ext
in '' $ac_executable_extensions; do
5297 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5298 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5299 # Check for GNU ac_path_EGREP and select it if it is found.
5300 # Check for GNU $ac_path_EGREP
5301 case `"$ac_path_EGREP" --version 2>&1` in
5303 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5306 $as_echo_n 0123456789 >"conftest.in"
5309 cat "conftest.in" "conftest.in" >"conftest.tmp"
5310 mv "conftest.tmp" "conftest.in"
5311 cp "conftest.in" "conftest.nl"
5312 $as_echo 'EGREP' >> "conftest.nl"
5313 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5314 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5315 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5316 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5317 # Best one so far, save it but keep looking for a better one
5318 ac_cv_path_EGREP
="$ac_path_EGREP"
5319 ac_path_EGREP_max
=$ac_count
5321 # 10*(2^10) chars as input seems more than enough
5322 test $ac_count -gt 10 && break
5324 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5327 $ac_path_EGREP_found && break 3
5332 if test -z "$ac_cv_path_EGREP"; then
5333 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5336 ac_cv_path_EGREP
=$EGREP
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5342 $as_echo "$ac_cv_path_EGREP" >&6; }
5343 EGREP
="$ac_cv_path_EGREP"
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5347 $as_echo_n "checking for ANSI C header files... " >&6; }
5348 if test "${ac_cv_header_stdc+set}" = set; then :
5349 $as_echo_n "(cached) " >&6
5351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h. */
5366 if ac_fn_cxx_try_compile
"$LINENO"; then :
5367 ac_cv_header_stdc
=yes
5369 ac_cv_header_stdc
=no
5371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5373 if test $ac_cv_header_stdc = yes; then
5374 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5381 $EGREP "memchr" >/dev
/null
2>&1; then :
5384 ac_cv_header_stdc
=no
5390 if test $ac_cv_header_stdc = yes; then
5391 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5398 $EGREP "free" >/dev
/null
2>&1; then :
5401 ac_cv_header_stdc
=no
5407 if test $ac_cv_header_stdc = yes; then
5408 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5409 if test "$cross_compiling" = yes; then :
5412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5416 #if ((' ' & 0x0FF) == 0x020)
5417 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5418 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5420 # define ISLOWER(c) \
5421 (('a' <= (c) && (c) <= 'i') \
5422 || ('j' <= (c) && (c) <= 'r') \
5423 || ('s' <= (c) && (c) <= 'z'))
5424 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5427 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5432 for (i = 0; i < 256; i++)
5433 if (XOR (islower (i), ISLOWER (i))
5434 || toupper (i) != TOUPPER (i))
5439 if ac_fn_cxx_try_run
"$LINENO"; then :
5442 ac_cv_header_stdc
=no
5444 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5445 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5451 $as_echo "$ac_cv_header_stdc" >&6; }
5452 if test $ac_cv_header_stdc = yes; then
5454 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5458 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5459 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5460 inttypes.h stdint.h unistd.h
5462 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5463 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5465 eval as_val
=\$
$as_ac_Header
5466 if test "x$as_val" = x
""yes; then :
5467 cat >>confdefs.h
<<_ACEOF
5468 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5477 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5478 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5485 if test "$MINIX" = yes; then
5487 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5490 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5493 $as_echo "#define _MINIX 1" >>confdefs.h
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5499 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5500 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5501 $as_echo_n "(cached) " >&6
5503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5504 /* end confdefs.h. */
5506 # define __EXTENSIONS__ 1
5507 $ac_includes_default
5516 if ac_fn_cxx_try_compile
"$LINENO"; then :
5517 ac_cv_safe_to_define___extensions__
=yes
5519 ac_cv_safe_to_define___extensions__
=no
5521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5524 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5525 test $ac_cv_safe_to_define___extensions__ = yes &&
5526 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5528 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5530 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5532 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5534 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5538 ac_cpp
='$CPP $CPPFLAGS'
5539 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5540 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5541 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5543 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5544 # On Suns, sometimes $CPP names a directory.
5545 if test -n "$CPP" && test -d "$CPP"; then
5548 if test -z "$CPP"; then
5549 if test "${ac_cv_prog_CPP+set}" = set; then :
5550 $as_echo_n "(cached) " >&6
5552 # Double quotes because CPP needs to be expanded
5553 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5556 for ac_c_preproc_warn_flag
in '' yes
5558 # Use a header file that comes with gcc, so configuring glibc
5559 # with a fresh cross-compiler works.
5560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5561 # <limits.h> exists even on freestanding compilers.
5562 # On the NeXT, cc -E runs the code through the compiler's parser,
5563 # not just through cpp. "Syntax error" is here to catch this case.
5564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5567 # include <limits.h>
5569 # include <assert.h>
5573 if ac_fn_c_try_cpp
"$LINENO"; then :
5576 # Broken: fails on valid input.
5579 rm -f conftest.err conftest.
$ac_ext
5581 # OK, works on sane cases. Now check whether nonexistent headers
5582 # can be detected and how.
5583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h. */
5585 #include <ac_nonexistent.h>
5587 if ac_fn_c_try_cpp
"$LINENO"; then :
5588 # Broken: success on invalid input.
5591 # Passes both tests.
5595 rm -f conftest.err conftest.
$ac_ext
5598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5599 rm -f conftest.err conftest.
$ac_ext
5600 if $ac_preproc_ok; then :
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5613 $as_echo "$CPP" >&6; }
5615 for ac_c_preproc_warn_flag
in '' yes
5617 # Use a header file that comes with gcc, so configuring glibc
5618 # with a fresh cross-compiler works.
5619 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5620 # <limits.h> exists even on freestanding compilers.
5621 # On the NeXT, cc -E runs the code through the compiler's parser,
5622 # not just through cpp. "Syntax error" is here to catch this case.
5623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5626 # include <limits.h>
5628 # include <assert.h>
5632 if ac_fn_c_try_cpp
"$LINENO"; then :
5635 # Broken: fails on valid input.
5638 rm -f conftest.err conftest.
$ac_ext
5640 # OK, works on sane cases. Now check whether nonexistent headers
5641 # can be detected and how.
5642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #include <ac_nonexistent.h>
5646 if ac_fn_c_try_cpp
"$LINENO"; then :
5647 # Broken: success on invalid input.
5650 # Passes both tests.
5654 rm -f conftest.err conftest.
$ac_ext
5657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5658 rm -f conftest.err conftest.
$ac_ext
5659 if $ac_preproc_ok; then :
5662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5664 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5665 See \`config.log' for more details." "$LINENO" 5; }
5669 ac_cpp
='$CXXCPP $CPPFLAGS'
5670 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5671 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5672 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5675 $as_echo_n "checking for inline... " >&6; }
5676 if test "${ac_cv_c_inline+set}" = set; then :
5677 $as_echo_n "(cached) " >&6
5680 for ac_kw
in inline __inline__ __inline
; do
5681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5682 /* end confdefs.h. */
5685 static $ac_kw foo_t static_foo () {return 0; }
5686 $ac_kw foo_t foo () {return 0; }
5690 if ac_fn_cxx_try_compile
"$LINENO"; then :
5691 ac_cv_c_inline
=$ac_kw
5693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5694 test "$ac_cv_c_inline" != no
&& break
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5699 $as_echo "$ac_cv_c_inline" >&6; }
5701 case $ac_cv_c_inline in
5704 case $ac_cv_c_inline in
5706 *) ac_val
=$ac_cv_c_inline;;
5708 cat >>confdefs.h
<<_ACEOF
5710 #define inline $ac_val
5717 # Check whether --enable-largefile was given.
5718 if test "${enable_largefile+set}" = set; then :
5719 enableval
=$enable_largefile;
5722 if test "$enable_largefile" != no
; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5725 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5726 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5727 $as_echo_n "(cached) " >&6
5729 ac_cv_sys_largefile_CC
=no
5730 if test "$GCC" != yes; then
5733 # IRIX 6.2 and later do not support large files by default,
5734 # so use the C compiler's -n32 option if that helps.
5735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h. */
5737 #include <sys/types.h>
5738 /* Check that off_t can represent 2**63 - 1 correctly.
5739 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5740 since some C++ compilers masquerading as C compilers
5741 incorrectly reject 9223372036854775807. */
5742 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5743 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5744 && LARGE_OFF_T % 2147483647 == 1)
5754 if ac_fn_cxx_try_compile
"$LINENO"; then :
5757 rm -f core conftest.err conftest.
$ac_objext
5759 if ac_fn_cxx_try_compile
"$LINENO"; then :
5760 ac_cv_sys_largefile_CC
=' -n32'; break
5762 rm -f core conftest.err conftest.
$ac_objext
5766 rm -f conftest.
$ac_ext
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5770 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5771 if test "$ac_cv_sys_largefile_CC" != no
; then
5772 CC
=$CC$ac_cv_sys_largefile_CC
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5776 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5777 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5778 $as_echo_n "(cached) " >&6
5781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5782 /* end confdefs.h. */
5783 #include <sys/types.h>
5784 /* Check that off_t can represent 2**63 - 1 correctly.
5785 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5786 since some C++ compilers masquerading as C compilers
5787 incorrectly reject 9223372036854775807. */
5788 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5789 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5790 && LARGE_OFF_T % 2147483647 == 1)
5800 if ac_fn_cxx_try_compile
"$LINENO"; then :
5801 ac_cv_sys_file_offset_bits
=no
; break
5803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5806 #define _FILE_OFFSET_BITS 64
5807 #include <sys/types.h>
5808 /* Check that off_t can represent 2**63 - 1 correctly.
5809 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5810 since some C++ compilers masquerading as C compilers
5811 incorrectly reject 9223372036854775807. */
5812 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5813 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5814 && LARGE_OFF_T % 2147483647 == 1)
5824 if ac_fn_cxx_try_compile
"$LINENO"; then :
5825 ac_cv_sys_file_offset_bits
=64; break
5827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5828 ac_cv_sys_file_offset_bits
=unknown
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5833 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5834 case $ac_cv_sys_file_offset_bits in #(
5837 cat >>confdefs.h
<<_ACEOF
5838 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5843 if test $ac_cv_sys_file_offset_bits = unknown
; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5845 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5846 if test "${ac_cv_sys_large_files+set}" = set; then :
5847 $as_echo_n "(cached) " >&6
5850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5851 /* end confdefs.h. */
5852 #include <sys/types.h>
5853 /* Check that off_t can represent 2**63 - 1 correctly.
5854 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5855 since some C++ compilers masquerading as C compilers
5856 incorrectly reject 9223372036854775807. */
5857 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5858 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5859 && LARGE_OFF_T % 2147483647 == 1)
5869 if ac_fn_cxx_try_compile
"$LINENO"; then :
5870 ac_cv_sys_large_files
=no
; break
5872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5875 #define _LARGE_FILES 1
5876 #include <sys/types.h>
5877 /* Check that off_t can represent 2**63 - 1 correctly.
5878 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5879 since some C++ compilers masquerading as C compilers
5880 incorrectly reject 9223372036854775807. */
5881 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5882 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5883 && LARGE_OFF_T % 2147483647 == 1)
5893 if ac_fn_cxx_try_compile
"$LINENO"; then :
5894 ac_cv_sys_large_files
=1; break
5896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5897 ac_cv_sys_large_files
=unknown
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5902 $as_echo "$ac_cv_sys_large_files" >&6; }
5903 case $ac_cv_sys_large_files in #(
5906 cat >>confdefs.h
<<_ACEOF
5907 #define _LARGE_FILES $ac_cv_sys_large_files
5916 # sizeof(char) is 1 by definition.
5917 # The cast to long int works around a bug in the HP C Compiler
5918 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5919 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5920 # This bug is HP SR number 8606223364.
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5922 $as_echo_n "checking size of void *... " >&6; }
5923 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5924 $as_echo_n "(cached) " >&6
5926 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5929 if test "$ac_cv_type_void_p" = yes; then
5930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5932 { as_fn_set_status
77
5933 as_fn_error
"cannot compute sizeof (void *)
5934 See \`config.log' for more details." "$LINENO" 5; }; }
5936 ac_cv_sizeof_void_p
=0
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5942 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5946 cat >>confdefs.h
<<_ACEOF
5947 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5951 # The cast to long int works around a bug in the HP C Compiler
5952 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5953 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5954 # This bug is HP SR number 8606223364.
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5956 $as_echo_n "checking size of short... " >&6; }
5957 if test "${ac_cv_sizeof_short+set}" = set; then :
5958 $as_echo_n "(cached) " >&6
5960 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5963 if test "$ac_cv_type_short" = yes; then
5964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5966 { as_fn_set_status
77
5967 as_fn_error
"cannot compute sizeof (short)
5968 See \`config.log' for more details." "$LINENO" 5; }; }
5970 ac_cv_sizeof_short
=0
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5976 $as_echo "$ac_cv_sizeof_short" >&6; }
5980 cat >>confdefs.h
<<_ACEOF
5981 #define SIZEOF_SHORT $ac_cv_sizeof_short
5985 # The cast to long int works around a bug in the HP C Compiler
5986 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5987 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5988 # This bug is HP SR number 8606223364.
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5990 $as_echo_n "checking size of int... " >&6; }
5991 if test "${ac_cv_sizeof_int+set}" = set; then :
5992 $as_echo_n "(cached) " >&6
5994 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5997 if test "$ac_cv_type_int" = yes; then
5998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6000 { as_fn_set_status
77
6001 as_fn_error
"cannot compute sizeof (int)
6002 See \`config.log' for more details." "$LINENO" 5; }; }
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6010 $as_echo "$ac_cv_sizeof_int" >&6; }
6014 cat >>confdefs.h
<<_ACEOF
6015 #define SIZEOF_INT $ac_cv_sizeof_int
6019 # The cast to long int works around a bug in the HP C Compiler
6020 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6021 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6022 # This bug is HP SR number 8606223364.
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6024 $as_echo_n "checking size of long... " >&6; }
6025 if test "${ac_cv_sizeof_long+set}" = set; then :
6026 $as_echo_n "(cached) " >&6
6028 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6031 if test "$ac_cv_type_long" = yes; then
6032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6034 { as_fn_set_status
77
6035 as_fn_error
"cannot compute sizeof (long)
6036 See \`config.log' for more details." "$LINENO" 5; }; }
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6044 $as_echo "$ac_cv_sizeof_long" >&6; }
6048 cat >>confdefs.h
<<_ACEOF
6049 #define SIZEOF_LONG $ac_cv_sizeof_long
6053 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6054 if test "x$ac_cv_type_long_long" = x
""yes; then :
6056 cat >>confdefs.h
<<_ACEOF
6057 #define HAVE_LONG_LONG 1
6060 # The cast to long int works around a bug in the HP C Compiler
6061 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6062 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6063 # This bug is HP SR number 8606223364.
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6065 $as_echo_n "checking size of long long... " >&6; }
6066 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6067 $as_echo_n "(cached) " >&6
6069 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6072 if test "$ac_cv_type_long_long" = yes; then
6073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6075 { as_fn_set_status
77
6076 as_fn_error
"cannot compute sizeof (long long)
6077 See \`config.log' for more details." "$LINENO" 5; }; }
6079 ac_cv_sizeof_long_long
=0
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6085 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6089 cat >>confdefs.h
<<_ACEOF
6090 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6096 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6097 case $ac_cv_c_int8_t in #(
6101 cat >>confdefs.h
<<_ACEOF
6102 #define int8_t $ac_cv_c_int8_t
6107 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6108 case $ac_cv_c_int16_t in #(
6112 cat >>confdefs.h
<<_ACEOF
6113 #define int16_t $ac_cv_c_int16_t
6118 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6119 case $ac_cv_c_int32_t in #(
6123 cat >>confdefs.h
<<_ACEOF
6124 #define int32_t $ac_cv_c_int32_t
6129 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6130 case $ac_cv_c_int64_t in #(
6134 cat >>confdefs.h
<<_ACEOF
6135 #define int64_t $ac_cv_c_int64_t
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6142 $as_echo_n "checking for long long int... " >&6; }
6143 if test "${ac_cv_type_long_long_int+set}" = set; then :
6144 $as_echo_n "(cached) " >&6
6146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6147 /* end confdefs.h. */
6149 /* For now, do not test the preprocessor; as of 2007 there are too many
6150 implementations with broken preprocessors. Perhaps this can
6151 be revisited in 2012. In the meantime, code should not expect
6152 #if to work with literals wider than 32 bits. */
6153 /* Test literals. */
6154 long long int ll = 9223372036854775807ll;
6155 long long int nll = -9223372036854775807LL;
6156 unsigned long long int ull = 18446744073709551615ULL;
6157 /* Test constant expressions. */
6158 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6160 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6166 /* Test availability of runtime routines for shift and division. */
6167 long long int llmax = 9223372036854775807ll;
6168 unsigned long long int ullmax = 18446744073709551615ull;
6169 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6170 | (llmax / ll) | (llmax % ll)
6171 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6172 | (ullmax / ull) | (ullmax % ull));
6178 if ac_fn_cxx_try_link
"$LINENO"; then :
6179 if test "$cross_compiling" = yes; then :
6180 ac_cv_type_long_long_int
=yes
6182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6187 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6188 # define LLONG_MAX (HALF - 1 + HALF)
6193 long long int n = 1;
6197 long long int m = n << i;
6200 if (LLONG_MAX / 2 < m)
6208 if ac_fn_cxx_try_run
"$LINENO"; then :
6209 ac_cv_type_long_long_int
=yes
6211 ac_cv_type_long_long_int
=no
6213 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6214 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6218 ac_cv_type_long_long_int
=no
6220 rm -f core conftest.err conftest.
$ac_objext \
6221 conftest
$ac_exeext conftest.
$ac_ext
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6224 $as_echo "$ac_cv_type_long_long_int" >&6; }
6225 if test $ac_cv_type_long_long_int = yes; then
6227 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6233 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6234 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6236 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6239 test $ac_cv_type_long_long_int = yes \
6240 && ac_type
='long long int' \
6241 || ac_type
='long int'
6243 cat >>confdefs.h
<<_ACEOF
6244 #define intmax_t $ac_type
6251 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6252 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6254 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6257 for ac_type
in 'int' 'long int' 'long long int'; do
6258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6259 /* end confdefs.h. */
6260 $ac_includes_default
6264 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6271 if ac_fn_cxx_try_compile
"$LINENO"; then :
6273 cat >>confdefs.h
<<_ACEOF
6274 #define intptr_t $ac_type
6279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6280 test -z "$ac_type" && break
6285 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6286 case $ac_cv_c_uint8_t in #(
6290 $as_echo "#define _UINT8_T 1" >>confdefs.h
6293 cat >>confdefs.h
<<_ACEOF
6294 #define uint8_t $ac_cv_c_uint8_t
6299 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6300 case $ac_cv_c_uint16_t in #(
6305 cat >>confdefs.h
<<_ACEOF
6306 #define uint16_t $ac_cv_c_uint16_t
6311 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6312 case $ac_cv_c_uint32_t in #(
6316 $as_echo "#define _UINT32_T 1" >>confdefs.h
6319 cat >>confdefs.h
<<_ACEOF
6320 #define uint32_t $ac_cv_c_uint32_t
6325 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6326 case $ac_cv_c_uint64_t in #(
6330 $as_echo "#define _UINT64_T 1" >>confdefs.h
6333 cat >>confdefs.h
<<_ACEOF
6334 #define uint64_t $ac_cv_c_uint64_t
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6341 $as_echo_n "checking for unsigned long long int... " >&6; }
6342 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6343 $as_echo_n "(cached) " >&6
6345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6348 /* For now, do not test the preprocessor; as of 2007 there are too many
6349 implementations with broken preprocessors. Perhaps this can
6350 be revisited in 2012. In the meantime, code should not expect
6351 #if to work with literals wider than 32 bits. */
6352 /* Test literals. */
6353 long long int ll = 9223372036854775807ll;
6354 long long int nll = -9223372036854775807LL;
6355 unsigned long long int ull = 18446744073709551615ULL;
6356 /* Test constant expressions. */
6357 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6359 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6365 /* Test availability of runtime routines for shift and division. */
6366 long long int llmax = 9223372036854775807ll;
6367 unsigned long long int ullmax = 18446744073709551615ull;
6368 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6369 | (llmax / ll) | (llmax % ll)
6370 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6371 | (ullmax / ull) | (ullmax % ull));
6377 if ac_fn_cxx_try_link
"$LINENO"; then :
6378 ac_cv_type_unsigned_long_long_int
=yes
6380 ac_cv_type_unsigned_long_long_int
=no
6382 rm -f core conftest.err conftest.
$ac_objext \
6383 conftest
$ac_exeext conftest.
$ac_ext
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6386 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6387 if test $ac_cv_type_unsigned_long_long_int = yes; then
6389 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6395 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6396 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6398 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6401 test $ac_cv_type_unsigned_long_long_int = yes \
6402 && ac_type
='unsigned long long int' \
6403 || ac_type
='unsigned long int'
6405 cat >>confdefs.h
<<_ACEOF
6406 #define uintmax_t $ac_type
6413 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6414 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6416 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6419 for ac_type
in 'unsigned int' 'unsigned long int' \
6420 'unsigned long long int'; do
6421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 $ac_includes_default
6427 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6434 if ac_fn_cxx_try_compile
"$LINENO"; then :
6436 cat >>confdefs.h
<<_ACEOF
6437 #define uintptr_t $ac_type
6442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6443 test -z "$ac_type" && break
6460 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6461 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6464 # check what underlying integer type int64_t uses
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6466 $as_echo_n "checking for int64_t underlying type... " >&6; }
6467 if test "${ac_cv_int64_t_type+set}" = set; then :
6468 $as_echo_n "(cached) " >&6
6471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6474 #ifdef HAVE_STDINT_H
6477 template <typename T> struct X { };
6479 struct X<long> { typedef long t; };
6489 if ac_fn_cxx_try_compile
"$LINENO"; then :
6490 ac_cv_int64_t_type
=long
6492 ac_cv_int64_t_type
="long long"
6494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6497 $as_echo "$ac_cv_int64_t_type" >&6; }
6498 if test "$ac_cv_int64_t_type" = "long"; then
6500 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6506 #ifdef HAVE_STDINT_H
6509 template <typename T> struct X { };
6511 struct X<long long> { typedef long long t; };
6521 if ac_fn_cxx_try_compile
"$LINENO"; then :
6524 as_fn_error
"error verifying int64_t uses long long" "$LINENO" 5
6526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6532 # ---------------------
6533 # Warnings and checking
6534 # ---------------------
6536 # Check $CC warning features (if it's GCC).
6537 # We want to use -pedantic, but we don't want warnings about
6540 # * overlong strings
6541 # * C++11 narrowing conversions in { }
6542 # So, we only use -pedantic if we can disable those warnings.
6544 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6545 # Check whether --enable-build-format-warnings was given.
6546 if test "${enable_build_format_warnings+set}" = set; then :
6547 enableval
=$enable_build_format_warnings;
6549 enable_build_format_warnings
=yes
6552 if test $enable_build_format_warnings = no
; then :
6558 ac_cpp
='$CXXCPP $CPPFLAGS'
6559 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6560 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6561 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6564 save_CXXFLAGS
="$CXXFLAGS"
6565 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6566 # Do the check with the no- prefix removed since gcc silently
6567 # accepts any -Wno-* option on purpose
6568 case $real_option in
6569 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6570 *) option
=$real_option ;;
6572 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6575 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6576 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6577 $as_echo_n "(cached) " >&6
6580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6591 if ac_fn_cxx_try_compile
"$LINENO"; then :
6592 eval "$as_acx_Woption=yes"
6594 eval "$as_acx_Woption=no"
6596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6599 eval ac_res
=\$
$as_acx_Woption
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6601 $as_echo "$ac_res" >&6; }
6602 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6603 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6606 CXXFLAGS
="$save_CXXFLAGS"
6608 ac_cpp
='$CXXCPP $CPPFLAGS'
6609 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6610 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6611 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6616 ac_cpp
='$CPP $CPPFLAGS'
6617 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6618 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6619 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6622 save_CFLAGS
="$CFLAGS"
6623 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6624 # Do the check with the no- prefix removed since gcc silently
6625 # accepts any -Wno-* option on purpose
6626 case $real_option in
6627 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6628 *) option
=$real_option ;;
6630 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6633 $as_echo_n "checking whether $CC supports $option... " >&6; }
6634 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6635 $as_echo_n "(cached) " >&6
6638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6639 /* end confdefs.h. */
6649 if ac_fn_c_try_compile
"$LINENO"; then :
6650 eval "$as_acx_Woption=yes"
6652 eval "$as_acx_Woption=no"
6654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6657 eval ac_res
=\$
$as_acx_Woption
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6659 $as_echo "$ac_res" >&6; }
6660 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6661 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6664 CFLAGS
="$save_CFLAGS"
6666 ac_cpp
='$CXXCPP $CPPFLAGS'
6667 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6668 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6669 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6673 ac_cpp
='$CXXCPP $CPPFLAGS'
6674 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6675 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6676 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6679 save_CXXFLAGS
="$CXXFLAGS"
6680 for real_option
in -Wmissing-format-attribute; do
6681 # Do the check with the no- prefix removed since gcc silently
6682 # accepts any -Wno-* option on purpose
6683 case $real_option in
6684 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6685 *) option
=$real_option ;;
6687 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6690 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6691 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6692 $as_echo_n "(cached) " >&6
6695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6706 if ac_fn_cxx_try_compile
"$LINENO"; then :
6707 eval "$as_acx_Woption=yes"
6709 eval "$as_acx_Woption=no"
6711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6714 eval ac_res
=\$
$as_acx_Woption
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6716 $as_echo "$ac_res" >&6; }
6717 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6718 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6721 CXXFLAGS
="$save_CXXFLAGS"
6723 ac_cpp
='$CXXCPP $CPPFLAGS'
6724 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6725 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6726 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6730 ac_cpp
='$CXXCPP $CPPFLAGS'
6731 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6732 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6733 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6735 save_CXXFLAGS
="$CXXFLAGS"
6736 for real_option
in -Woverloaded-virtual; do
6737 # Do the check with the no- prefix removed since gcc silently
6738 # accepts any -Wno-* option on purpose
6739 case $real_option in
6740 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6741 *) option
=$real_option ;;
6743 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6746 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6747 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6748 $as_echo_n "(cached) " >&6
6751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h. */
6762 if ac_fn_cxx_try_compile
"$LINENO"; then :
6763 eval "$as_acx_Woption=yes"
6765 eval "$as_acx_Woption=no"
6767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6770 eval ac_res
=\$
$as_acx_Woption
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6772 $as_echo "$ac_res" >&6; }
6773 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6774 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6777 CXXFLAGS
="$save_CXXFLAGS"
6779 ac_cpp
='$CXXCPP $CPPFLAGS'
6780 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6781 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6782 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6786 ac_cpp
='$CPP $CPPFLAGS'
6787 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6788 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6792 save_CFLAGS
="$CFLAGS"
6793 for real_option
in -Wold-style-definition -Wc++-compat; do
6794 # Do the check with the no- prefix removed since gcc silently
6795 # accepts any -Wno-* option on purpose
6796 case $real_option in
6797 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6798 *) option
=$real_option ;;
6800 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6803 $as_echo_n "checking whether $CC supports $option... " >&6; }
6804 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6805 $as_echo_n "(cached) " >&6
6808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6819 if ac_fn_c_try_compile
"$LINENO"; then :
6820 eval "$as_acx_Woption=yes"
6822 eval "$as_acx_Woption=no"
6824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6827 eval ac_res
=\$
$as_acx_Woption
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6829 $as_echo "$ac_res" >&6; }
6830 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6831 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6834 CFLAGS
="$save_CFLAGS"
6836 ac_cpp
='$CXXCPP $CPPFLAGS'
6837 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6838 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6839 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6843 ac_cpp
='$CXXCPP $CPPFLAGS'
6844 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6845 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6846 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6848 # Do the check with the no- prefix removed from the warning options
6849 # since gcc silently accepts any -Wno-* option on purpose
6850 if test "$GXX" = yes; then :
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6852 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6853 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6854 $as_echo_n "(cached) " >&6
6856 save_CXXFLAGS
="$CXXFLAGS"
6857 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6869 if ac_fn_cxx_try_compile
"$LINENO"; then :
6870 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6872 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6875 CXXFLAGS
="$save_CXXFLAGS"
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6878 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6879 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6880 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6885 ac_cpp
='$CXXCPP $CPPFLAGS'
6886 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6887 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6888 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6892 ac_cpp
='$CXXCPP $CPPFLAGS'
6893 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6894 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6895 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6897 # Check whether --enable-werror-always was given.
6898 if test "${enable_werror_always+set}" = set; then :
6899 enableval
=$enable_werror_always;
6901 enable_werror_always
=no
6904 if test $enable_werror_always = yes; then :
6905 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6909 ac_cpp
='$CXXCPP $CPPFLAGS'
6910 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6911 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6912 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6916 # The above macros do nothing if the compiler is not GCC. However, the
6917 # Makefile has more goo to add other flags, so these variables are used
6918 # to enable warnings only for GCC.
6921 if test "x$GCC" = "xyes"; then
6922 warn_cflags
='$(GCC_WARN_CFLAGS)'
6923 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6928 # Disable exceptions and RTTI if building with g++
6930 ac_cpp
='$CPP $CPPFLAGS'
6931 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6932 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6933 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6936 save_CFLAGS
="$CFLAGS"
6937 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6938 # Do the check with the no- prefix removed since gcc silently
6939 # accepts any -Wno-* option on purpose
6940 case $real_option in
6941 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6942 *) option
=$real_option ;;
6944 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6947 $as_echo_n "checking whether $CC supports $option... " >&6; }
6948 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6949 $as_echo_n "(cached) " >&6
6952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h. */
6963 if ac_fn_c_try_compile
"$LINENO"; then :
6964 eval "$as_acx_Woption=yes"
6966 eval "$as_acx_Woption=no"
6968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6971 eval ac_res
=\$
$as_acx_Woption
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6973 $as_echo "$ac_res" >&6; }
6974 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6975 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6978 CFLAGS
="$save_CFLAGS"
6980 ac_cpp
='$CXXCPP $CPPFLAGS'
6981 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6982 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6983 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6987 # Enable expensive internal checks
6989 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6993 # Check whether --enable-checking was given.
6994 if test "${enable_checking+set}" = set; then :
6995 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6998 # Determine the default checks.
6999 if test x
$is_release = x
; then
7000 ac_checking_flags
=yes
7002 ac_checking_flags
=release
7006 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7007 for check
in release
$ac_checking_flags
7010 # these set all the flags to specific states
7011 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7012 ac_fold_checking
= ; ac_gc_checking
=1 ;
7013 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7014 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7015 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7016 ac_types_checking
=1 ;;
7017 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7018 ac_fold_checking
= ; ac_gc_checking
= ;
7019 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7020 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7021 ac_tree_checking
= ; ac_valgrind_checking
= ;
7022 ac_types_checking
= ;;
7023 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7024 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
7025 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7026 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7027 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7028 ac_types_checking
=1 ;;
7029 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7030 ac_fold_checking
= ; ac_gc_checking
= ;
7031 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7032 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7033 ac_tree_checking
= ; ac_valgrind_checking
= ;
7034 ac_types_checking
= ;;
7035 # these enable particular checks
7036 assert
) ac_assert_checking
=1 ;;
7037 df
) ac_df_checking
=1 ;;
7038 fold) ac_fold_checking
=1 ;;
7039 gc
) ac_gc_checking
=1 ;;
7040 gcac
) ac_gc_always_collect
=1 ;;
7041 gimple
) ac_gimple_checking
=1 ;;
7042 misc
) ac_checking
=1 ;;
7043 rtl
) ac_rtl_checking
=1 ;;
7044 rtlflag
) ac_rtlflag_checking
=1 ;;
7045 runtime
) ac_runtime_checking
=1 ;;
7046 tree
) ac_tree_checking
=1 ;;
7047 types
) ac_types_checking
=1 ;;
7048 valgrind
) ac_valgrind_checking
=1 ;;
7049 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
7055 if test x
$ac_checking != x
; then
7057 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
7059 nocommon_flag
=-fno-common
7062 if test x
$ac_df_checking != x
; then
7064 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7067 if test x
$ac_assert_checking != x
; then
7069 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7072 if test x
$ac_gimple_checking != x
; then
7074 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7078 if test x
$ac_runtime_checking != x
; then
7080 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7083 if test x
$ac_tree_checking != x
; then
7085 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7089 if test x
$ac_types_checking != x
; then
7091 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7095 if test x
$ac_rtl_checking != x
; then
7097 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7100 if test x
$ac_rtlflag_checking != x
; then
7102 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7105 if test x
$ac_gc_checking != x
; then
7107 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7110 if test x
$ac_gc_always_collect != x
; then
7112 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7115 if test x
$ac_fold_checking != x
; then
7117 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7120 valgrind_path_defines
=
7123 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7124 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
7132 # It is certainly possible that there's valgrind but no valgrind.h.
7133 # GCC relies on making annotations so we must have both.
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7135 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7138 #include <valgrind/memcheck.h>
7139 #ifndef VALGRIND_DISCARD
7140 #error VALGRIND_DISCARD not defined
7143 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7144 gcc_cv_header_valgrind_memcheck_h
=yes
7146 gcc_cv_header_valgrind_memcheck_h
=no
7148 rm -f conftest.err conftest.
$ac_ext
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7150 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7152 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h. */
7155 #include <memcheck.h>
7156 #ifndef VALGRIND_DISCARD
7157 #error VALGRIND_DISCARD not defined
7160 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7161 gcc_cv_header_memcheck_h
=yes
7163 gcc_cv_header_memcheck_h
=no
7165 rm -f conftest.err conftest.
$ac_ext
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7167 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7168 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7170 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7173 if test $gcc_cv_header_memcheck_h = yes; then
7175 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7179 if test x
$ac_valgrind_checking != x
; then
7181 # Prepare PATH_SEPARATOR.
7182 # The user is always right.
7183 if test "${PATH_SEPARATOR+set}" != set; then
7184 echo "#! /bin/sh" >conf$$.sh
7185 echo "exit 0" >>conf$$.sh
7187 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7195 # Find out how to test for executable files. Don't use a zero-byte file,
7196 # as systems may use methods other than mode bits to determine executability.
7197 cat >conf$$.
file <<_ASEOF
7201 chmod +x conf$$.
file
7202 if test -x conf$$.
file >/dev
/null
2>&1; then
7203 ac_executable_p
="test -x"
7205 ac_executable_p
="test -f"
7209 # Extract the first word of "valgrind", so it can be a program name with args.
7210 set dummy valgrind
; ac_word
=$2
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212 $as_echo_n "checking for $ac_word... " >&6; }
7213 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7214 $as_echo_n "(cached) " >&6
7216 case "$valgrind_path" in
7218 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7221 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7222 for ac_dir
in $PATH; do
7224 test -z "$ac_dir" && ac_dir
=.
7225 for ac_exec_ext
in '' $ac_executable_extensions; do
7226 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7227 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7228 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7238 valgrind_path
="$ac_cv_path_valgrind_path"
7239 if test -n "$valgrind_path"; then
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7241 $as_echo "$valgrind_path" >&6; }
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244 $as_echo "no" >&6; }
7247 if test "x$valgrind_path" = "x" \
7248 ||
(test $have_valgrind_h = no \
7249 && test $gcc_cv_header_memcheck_h = no \
7250 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7251 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7253 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7254 valgrind_command
="$valgrind_path -q"
7256 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7262 # Enable code coverage collection
7263 # Check whether --enable-coverage was given.
7264 if test "${enable_coverage+set}" = set; then :
7265 enableval
=$enable_coverage; case "${enableval}" in
7267 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7270 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7273 # a.k.a. --disable-coverage
7277 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7286 # Check whether --enable-gather-detailed-mem-stats was given.
7287 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7288 enableval
=$enable_gather_detailed_mem_stats;
7290 enable_gather_detailed_mem_stats
=no
7293 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7295 cat >>confdefs.h
<<_ACEOF
7296 #define GATHER_STATISTICS $gather_stats
7300 # Check whether --enable-valgrind-annotations was given.
7301 if test "${enable_valgrind_annotations+set}" = set; then :
7302 enableval
=$enable_valgrind_annotations;
7304 enable_valgrind_annotations
=no
7307 if test x
$enable_valgrind_annotations != xno \
7308 ||
test x
$ac_valgrind_checking != x
; then
7309 if (test $have_valgrind_h = no \
7310 && test $gcc_cv_header_memcheck_h = no \
7311 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7312 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7315 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7319 # -------------------------------
7320 # Miscenalleous configure options
7321 # -------------------------------
7325 # Check whether --with-stabs was given.
7326 if test "${with_stabs+set}" = set; then :
7327 withval
=$with_stabs; stabs
="$with_stabs"
7333 # Determine whether or not multilibs are enabled.
7334 # Check whether --enable-multilib was given.
7335 if test "${enable_multilib+set}" = set; then :
7336 enableval
=$enable_multilib;
7343 # Determine whether or not multiarch is enabled.
7344 # Check whether --enable-multiarch was given.
7345 if test "${enable_multiarch+set}" = set; then :
7346 enableval
=$enable_multiarch; case "${enableval}" in
7347 yes|no|auto
) enable_multiarch
=$enableval;;
7348 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7351 enable_multiarch
=auto
7354 if test x
${enable_multiarch} = xauto
; then
7355 if test x
${with_native_system_header_dir} != x
; then
7356 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7359 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7360 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7365 $as_echo_n "checking for multiarch configuration... " >&6; }
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7368 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7370 # needed for setting the multiarch name for soft-float/hard-float ABIs
7374 # Enable __cxa_atexit for C++.
7375 # Check whether --enable-__cxa_atexit was given.
7376 if test "${enable___cxa_atexit+set}" = set; then :
7377 enableval
=$enable___cxa_atexit;
7381 # Enable C extension for decimal float if target supports it.
7383 # Check whether --enable-decimal-float was given.
7384 if test "${enable_decimal_float+set}" = set; then :
7385 enableval
=$enable_decimal_float;
7386 case $enable_decimal_float in
7387 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7388 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7389 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7395 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7396 i?
86*-*-elfiamcu | i?
86*-*-gnu* | \
7397 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7398 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7399 enable_decimal_float
=yes
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7403 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7404 enable_decimal_float
=no
7411 # x86's use BID format instead of DPD
7412 case x
$enable_decimal_float in
7415 i?
86*-*-* | x86_64
*-*-*)
7416 enable_decimal_float
=bid
7419 enable_decimal_float
=dpd
7422 default_decimal_float
=$enable_decimal_float
7425 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7426 # dependency on libdecnumber.
7427 default_decimal_float
=dpd
7434 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7436 cat >>confdefs.h
<<_ACEOF
7437 #define ENABLE_DECIMAL_FLOAT $dfp
7441 # Use default_decimal_float for dependency.
7442 enable_decimal_float
=$default_decimal_float
7444 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7446 cat >>confdefs.h
<<_ACEOF
7447 #define ENABLE_DECIMAL_BID_FORMAT $bid
7451 # Enable C extension for fixed-point arithmetic.
7452 # Check whether --enable-fixed-point was given.
7453 if test "${enable_fixed_point+set}" = set; then :
7454 enableval
=$enable_fixed_point;
7459 enable_fixed_point
=yes
7463 enable_fixed_point
=yes
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7467 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7468 enable_fixed_point
=no
7476 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7478 cat >>confdefs.h
<<_ACEOF
7479 #define ENABLE_FIXED_POINT $fixedpoint
7484 # Pass with no value to take the default
7485 # Pass with a value to specify a thread package
7486 # Check whether --enable-threads was given.
7487 if test "${enable_threads+set}" = set; then :
7488 enableval
=$enable_threads;
7494 # Check whether --enable-tls was given.
7495 if test "${enable_tls+set}" = set; then :
7496 enableval
=$enable_tls;
7499 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7500 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7508 # Check whether --enable-objc-gc was given.
7509 if test "${enable_objc_gc+set}" = set; then :
7510 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7521 # Check whether --with-dwarf2 was given.
7522 if test "${with_dwarf2+set}" = set; then :
7523 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7529 # Check whether --enable-shared was given.
7530 if test "${enable_shared+set}" = set; then :
7531 enableval
=$enable_shared;
7532 case $enable_shared in
7536 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7537 for pkg
in $enableval; do
7538 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7553 # Check whether --with-specs was given.
7554 if test "${with_specs+set}" = set; then :
7555 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7565 # Check whether --with-pkgversion was given.
7566 if test "${with_pkgversion+set}" = set; then :
7567 withval
=$with_pkgversion; case "$withval" in
7568 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7570 *) PKGVERSION
="($withval) " ;;
7581 # Check whether --with-bugurl was given.
7582 if test "${with_bugurl+set}" = set; then :
7583 withval
=$with_bugurl; case "$withval" in
7584 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7587 *) BUGURL
="$withval"
7591 BUGURL
="http://gcc.gnu.org/bugs.html"
7601 REPORT_BUGS_TO
="<$BUGURL>"
7602 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7609 # Sanity check enable_languages in case someone does not run the toplevel
7610 # configure # script.
7611 # Check whether --enable-languages was given.
7612 if test "${enable_languages+set}" = set; then :
7613 enableval
=$enable_languages; case ,${enable_languages}, in
7615 # go safe -- we cannot be much sure without the toplevel
7617 # analysis of which target libs are present and usable
7621 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7626 enable_languages
=c
,${enable_languages}
7634 if test x
"$enable_as_accelerator_for" != x
; then
7636 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7638 enable_as_accelerator
=yes
7641 # In this case we expect offload compiler to be built as native, so we
7642 # need to rename the driver to avoid clashes with host's drivers.
7643 program_transform_name
="s&^&${target}-&" ;;
7645 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7646 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7647 accel_dir_suffix
=/accel
/${target_noncanonical}
7648 real_target_noncanonical
=${enable_as_accelerator_for}
7654 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7655 tgt
=`echo $tgt | sed 's/=.*//'`
7656 if test x
"$offload_targets" = x
; then
7657 offload_targets
=$tgt
7659 offload_targets
="$offload_targets:$tgt"
7663 cat >>confdefs.h
<<_ACEOF
7664 #define OFFLOAD_TARGETS "$offload_targets"
7667 if test x
"$offload_targets" != x
; then
7669 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7674 # Check whether --with-multilib-list was given.
7675 if test "${with_multilib_list+set}" = set; then :
7676 withval
=$with_multilib_list; :
7678 with_multilib_list
=default
7682 # -------------------------
7683 # Checks for other programs
7684 # -------------------------
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7687 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7689 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7690 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7691 $as_echo_n "(cached) " >&6
7693 cat >conftest.
make <<\_ACEOF
7696 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7698 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7699 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7701 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7703 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7707 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7709 $as_echo "yes" >&6; }
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713 $as_echo "no" >&6; }
7714 SET_MAKE
="MAKE=${MAKE-make}"
7718 # Find some useful tools
7719 for ac_prog
in gawk mawk nawk
awk
7721 # Extract the first word of "$ac_prog", so it can be a program name with args.
7722 set dummy
$ac_prog; ac_word
=$2
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724 $as_echo_n "checking for $ac_word... " >&6; }
7725 if test "${ac_cv_prog_AWK+set}" = set; then :
7726 $as_echo_n "(cached) " >&6
7728 if test -n "$AWK"; then
7729 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7731 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7735 test -z "$as_dir" && as_dir
=.
7736 for ac_exec_ext
in '' $ac_executable_extensions; do
7737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7738 ac_cv_prog_AWK
="$ac_prog"
7739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7749 if test -n "$AWK"; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7751 $as_echo "$AWK" >&6; }
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7758 test -n "$AWK" && break
7761 # We need awk to create options.c and options.h.
7762 # Bail out if it's missing.
7764 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7768 $as_echo_n "checking whether ln -s works... " >&6; }
7769 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
7772 rm -f conftestdata_t
7773 echo >conftestdata_f
7774 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7776 gcc_cv_prog_LN_S
="ln -s"
7778 if ln conftestdata_f conftestdata_t
2>/dev
/null
7782 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7784 gcc_cv_prog_LN_S
="cp -p"
7790 rm -f conftestdata_f conftestdata_t
7793 LN_S
="$gcc_cv_prog_LN_S"
7794 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7796 $as_echo "yes" >&6; }
7798 if test "$gcc_cv_prog_LN_S" = "ln"; then
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7800 $as_echo "no, using ln" >&6; }
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7803 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7808 $as_echo_n "checking whether ln works... " >&6; }
7809 if test "${acx_cv_prog_LN+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7812 rm -f conftestdata_t
7813 echo >conftestdata_f
7814 if ln conftestdata_f conftestdata_t
2>/dev
/null
7820 rm -f conftestdata_f conftestdata_t
7823 if test $acx_cv_prog_LN = no
; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7826 $as_echo "no, using $LN" >&6; }
7828 LN
="$acx_cv_prog_LN"
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7830 $as_echo "yes" >&6; }
7833 if test -n "$ac_tool_prefix"; then
7834 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7835 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7837 $as_echo_n "checking for $ac_word... " >&6; }
7838 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7839 $as_echo_n "(cached) " >&6
7841 if test -n "$RANLIB"; then
7842 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7844 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7848 test -z "$as_dir" && as_dir
=.
7849 for ac_exec_ext
in '' $ac_executable_extensions; do
7850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7851 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7861 RANLIB
=$ac_cv_prog_RANLIB
7862 if test -n "$RANLIB"; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7864 $as_echo "$RANLIB" >&6; }
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867 $as_echo "no" >&6; }
7872 if test -z "$ac_cv_prog_RANLIB"; then
7873 ac_ct_RANLIB
=$RANLIB
7874 # Extract the first word of "ranlib", so it can be a program name with args.
7875 set dummy ranlib
; ac_word
=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
7881 if test -n "$ac_ct_RANLIB"; then
7882 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7888 test -z "$as_dir" && as_dir
=.
7889 for ac_exec_ext
in '' $ac_executable_extensions; do
7890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7891 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7902 if test -n "$ac_ct_RANLIB"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7904 $as_echo "$ac_ct_RANLIB" >&6; }
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7910 if test "x$ac_ct_RANLIB" = x
; then
7913 case $cross_compiling:$ac_tool_warned in
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7917 ac_tool_warned
=yes ;;
7919 RANLIB
=$ac_ct_RANLIB
7922 RANLIB
="$ac_cv_prog_RANLIB"
7928 # Find a good install program. We prefer a C program (faster),
7929 # so one script is as good as another. But avoid the broken or
7930 # incompatible versions:
7931 # SysV /etc/install, /usr/sbin/install
7932 # SunOS /usr/etc/install
7933 # IRIX /sbin/install
7935 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7936 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7937 # ./install, which can be erroneously created by make from ./install.sh.
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7939 $as_echo_n "checking for a BSD compatible install... " >&6; }
7940 if test -z "$INSTALL"; then
7941 if test "${ac_cv_path_install+set}" = set; then :
7942 $as_echo_n "(cached) " >&6
7944 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7945 for ac_dir
in $PATH; do
7946 # Account for people who put trailing slashes in PATH elements.
7948 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7950 # OSF1 and SCO ODT 3.0 have their own names for install.
7951 for ac_prog
in ginstall scoinst
install; do
7952 if test -f $ac_dir/$ac_prog; then
7953 if test $ac_prog = install &&
7954 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7955 # AIX install. It has an incompatible calling convention.
7956 # OSF/1 installbsd also uses dspmsg, but is usable.
7959 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7970 if test "${ac_cv_path_install+set}" = set; then
7971 INSTALL
="$ac_cv_path_install"
7973 # As a last resort, use the slow shell script. We don't cache a
7974 # path for INSTALL within a source directory, because that will
7975 # break other packages using the cache if that directory is
7976 # removed, or if the path is relative.
7977 INSTALL
="$ac_install_sh"
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7981 $as_echo "$INSTALL" >&6; }
7983 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7984 # It thinks the first close brace ends the variable substitution.
7985 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7987 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7990 # See if cmp has --ignore-initial.
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7992 $as_echo_n "checking for cmp's capabilities... " >&6; }
7993 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7994 $as_echo_n "(cached) " >&6
7998 gcc_cv_prog_cmp_skip
=slowcompare
7999 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8000 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8003 gcc_cv_prog_cmp_skip
=gnucompare
8006 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8007 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8008 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8011 gcc_cv_prog_cmp_skip
=fastcompare
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8019 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8020 make_compare_target
=$gcc_cv_prog_cmp_skip
8024 # See if we have the mktemp command.
8025 # Extract the first word of "mktemp", so it can be a program name with args.
8026 set dummy mktemp
; ac_word
=$2
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028 $as_echo_n "checking for $ac_word... " >&6; }
8029 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8030 $as_echo_n "(cached) " >&6
8032 if test -n "$have_mktemp_command"; then
8033 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8039 test -z "$as_dir" && as_dir
=.
8040 for ac_exec_ext
in '' $ac_executable_extensions; do
8041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8042 ac_cv_prog_have_mktemp_command
="yes"
8043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8053 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8054 if test -n "$have_mktemp_command"; then
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8056 $as_echo "$have_mktemp_command" >&6; }
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059 $as_echo "no" >&6; }
8064 # See if makeinfo has been installed and is modern enough
8065 # that we can use it.
8067 # Extract the first word of "makeinfo", so it can be a program name with args.
8068 set dummy makeinfo
; ac_word
=$2
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070 $as_echo_n "checking for $ac_word... " >&6; }
8071 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8072 $as_echo_n "(cached) " >&6
8074 if test -n "$MAKEINFO"; then
8075 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8077 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8081 test -z "$as_dir" && as_dir
=.
8082 for ac_exec_ext
in '' $ac_executable_extensions; do
8083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8084 ac_cv_prog_MAKEINFO
="makeinfo"
8085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 MAKEINFO
=$ac_cv_prog_MAKEINFO
8095 if test -n "$MAKEINFO"; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8097 $as_echo "$MAKEINFO" >&6; }
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }
8104 if test -n "$MAKEINFO"; then
8105 # Found it, now check the version.
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8107 $as_echo_n "checking for modern makeinfo... " >&6; }
8108 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8109 $as_echo_n "(cached) " >&6
8111 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8112 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8114 case $ac_prog_version in
8115 '') gcc_cv_prog_makeinfo_modern
=no
;;
8116 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8117 *) gcc_cv_prog_makeinfo_modern
=no
;;
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8122 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8124 gcc_cv_prog_makeinfo_modern
=no
8126 if test $gcc_cv_prog_makeinfo_modern = no
; then
8127 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8130 if test $gcc_cv_prog_makeinfo_modern = no
; then
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8132 *** Makeinfo is missing or too old.
8133 *** Info documentation will not be built." >&5
8134 $as_echo "$as_me: WARNING:
8135 *** Makeinfo is missing or too old.
8136 *** Info documentation will not be built." >&2;}
8143 # Is pod2man recent enough to regenerate manpages?
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8145 $as_echo_n "checking for recent Pod::Man... " >&6; }
8146 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8148 $as_echo "yes" >&6; }
8149 GENERATED_MANPAGES
=generated-manpages
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8157 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8162 # Extract the first word of "$ac_prog", so it can be a program name with args.
8163 set dummy
$ac_prog; ac_word
=$2
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8165 $as_echo_n "checking for $ac_word... " >&6; }
8166 if test "${ac_cv_prog_FLEX+set}" = set; then :
8167 $as_echo_n "(cached) " >&6
8169 if test -n "$FLEX"; then
8170 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8176 test -z "$as_dir" && as_dir
=.
8177 for ac_exec_ext
in '' $ac_executable_extensions; do
8178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8179 ac_cv_prog_FLEX
="$ac_prog"
8180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 FLEX
=$ac_cv_prog_FLEX
8190 if test -n "$FLEX"; then
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8192 $as_echo "$FLEX" >&6; }
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195 $as_echo "no" >&6; }
8199 test -n "$FLEX" && break
8201 test -n "$FLEX" || FLEX
="$MISSING flex"
8205 for ac_prog
in bison
8207 # Extract the first word of "$ac_prog", so it can be a program name with args.
8208 set dummy
$ac_prog; ac_word
=$2
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210 $as_echo_n "checking for $ac_word... " >&6; }
8211 if test "${ac_cv_prog_BISON+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
8214 if test -n "$BISON"; then
8215 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8221 test -z "$as_dir" && as_dir
=.
8222 for ac_exec_ext
in '' $ac_executable_extensions; do
8223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8224 ac_cv_prog_BISON
="$ac_prog"
8225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 BISON
=$ac_cv_prog_BISON
8235 if test -n "$BISON"; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8237 $as_echo "$BISON" >&6; }
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240 $as_echo "no" >&6; }
8244 test -n "$BISON" && break
8246 test -n "$BISON" || BISON
="$MISSING bison"
8249 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8250 # check for build == host before using them.
8253 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8254 && test -d ..
/binutils
; then
8255 NM
='${objdir}/../binutils/nm-new'
8257 # Extract the first word of "nm", so it can be a program name with args.
8258 set dummy nm
; ac_word
=$2
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8260 $as_echo_n "checking for $ac_word... " >&6; }
8261 if test "${ac_cv_prog_NM+set}" = set; then :
8262 $as_echo_n "(cached) " >&6
8264 if test -n "$NM"; then
8265 ac_cv_prog_NM
="$NM" # Let the user override the test.
8267 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8271 test -z "$as_dir" && as_dir
=.
8272 for ac_exec_ext
in '' $ac_executable_extensions; do
8273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8282 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8286 if test -n "$NM"; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8288 $as_echo "$NM" >&6; }
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 $as_echo "no" >&6; }
8298 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8299 && test -d ..
/binutils
; then
8300 AR
='${objdir}/../binutils/ar'
8302 # Extract the first word of "ar", so it can be a program name with args.
8303 set dummy
ar; ac_word
=$2
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8305 $as_echo_n "checking for $ac_word... " >&6; }
8306 if test "${ac_cv_prog_AR+set}" = set; then :
8307 $as_echo_n "(cached) " >&6
8309 if test -n "$AR"; then
8310 ac_cv_prog_AR
="$AR" # Let the user override the test.
8312 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8316 test -z "$as_dir" && as_dir
=.
8317 for ac_exec_ext
in '' $ac_executable_extensions; do
8318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8327 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8331 if test -n "$AR"; then
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8333 $as_echo "$AR" >&6; }
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 $as_echo "no" >&6; }
8342 # The jit documentation looks better if built with sphinx, but can be
8343 # built with texinfo if sphinx is not available.
8344 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8345 # Extract the first word of "sphinx-build", so it can be a program name with args.
8346 set dummy sphinx-build
; ac_word
=$2
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8348 $as_echo_n "checking for $ac_word... " >&6; }
8349 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8350 $as_echo_n "(cached) " >&6
8352 if test -n "$doc_build_sys"; then
8353 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8359 test -z "$as_dir" && as_dir
=.
8360 for ac_exec_ext
in '' $ac_executable_extensions; do
8361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8362 ac_cv_prog_doc_build_sys
="sphinx"
8363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8373 doc_build_sys
=$ac_cv_prog_doc_build_sys
8374 if test -n "$doc_build_sys"; then
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8376 $as_echo "$doc_build_sys" >&6; }
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8379 $as_echo "no" >&6; }
8384 # --------------------
8385 # Checks for C headers
8386 # --------------------
8388 # Need to reject headers which give warnings, so that the -Werror bootstrap
8389 # works later. *sigh* This needs to come before all header checks.
8391 ac_c_preproc_warn_flag
=yes
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8394 $as_echo_n "checking for ANSI C header files... " >&6; }
8395 if test "${ac_cv_header_stdc+set}" = set; then :
8396 $as_echo_n "(cached) " >&6
8398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8413 if ac_fn_cxx_try_compile
"$LINENO"; then :
8414 ac_cv_header_stdc
=yes
8416 ac_cv_header_stdc
=no
8418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8420 if test $ac_cv_header_stdc = yes; then
8421 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h. */
8427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8428 $EGREP "memchr" >/dev
/null
2>&1; then :
8431 ac_cv_header_stdc
=no
8437 if test $ac_cv_header_stdc = yes; then
8438 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8445 $EGREP "free" >/dev
/null
2>&1; then :
8448 ac_cv_header_stdc
=no
8454 if test $ac_cv_header_stdc = yes; then
8455 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8456 if test "$cross_compiling" = yes; then :
8459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8463 #if ((' ' & 0x0FF) == 0x020)
8464 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8465 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8467 # define ISLOWER(c) \
8468 (('a' <= (c) && (c) <= 'i') \
8469 || ('j' <= (c) && (c) <= 'r') \
8470 || ('s' <= (c) && (c) <= 'z'))
8471 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8474 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8479 for (i = 0; i < 256; i++)
8480 if (XOR (islower (i), ISLOWER (i))
8481 || toupper (i) != TOUPPER (i))
8486 if ac_fn_cxx_try_run
"$LINENO"; then :
8489 ac_cv_header_stdc
=no
8491 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8492 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8498 $as_echo "$ac_cv_header_stdc" >&6; }
8499 if test $ac_cv_header_stdc = yes; then
8501 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8506 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8507 if test "${ac_cv_header_time+set}" = set; then :
8508 $as_echo_n "(cached) " >&6
8510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h. */
8512 #include <sys/types.h>
8513 #include <sys/time.h>
8519 if ((struct tm *) 0)
8525 if ac_fn_cxx_try_compile
"$LINENO"; then :
8526 ac_cv_header_time
=yes
8528 ac_cv_header_time
=no
8530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8533 $as_echo "$ac_cv_header_time" >&6; }
8534 if test $ac_cv_header_time = yes; then
8536 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8541 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8542 if test "${gcc_cv_header_string+set}" = set; then :
8543 $as_echo_n "(cached) " >&6
8545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8546 /* end confdefs.h. */
8548 #include <strings.h>
8557 if ac_fn_cxx_try_compile
"$LINENO"; then :
8558 gcc_cv_header_string
=yes
8560 gcc_cv_header_string
=no
8562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8565 $as_echo "$gcc_cv_header_string" >&6; }
8566 if test $gcc_cv_header_string = yes; then
8568 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8573 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8574 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8575 $as_echo_n "(cached) " >&6
8577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8578 /* end confdefs.h. */
8579 #include <sys/types.h>
8580 #include <sys/wait.h>
8582 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8585 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8593 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8598 if ac_fn_cxx_try_compile
"$LINENO"; then :
8599 ac_cv_header_sys_wait_h
=yes
8601 ac_cv_header_sys_wait_h
=no
8603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8606 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8607 if test $ac_cv_header_sys_wait_h = yes; then
8609 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8614 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8615 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8616 $as_echo_n "(cached) " >&6
8618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h. */
8620 #include <sys/types.h>
8621 #include <termios.h>
8627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8628 $EGREP "yes" >/dev
/null
2>&1; then :
8629 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8631 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8637 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8639 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8641 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8642 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8643 $as_echo_n "(cached) " >&6
8645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8646 /* end confdefs.h. */
8647 #include <sys/types.h>
8648 #include <sys/ioctl.h>
8654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8655 $EGREP "yes" >/dev
/null
2>&1; then :
8656 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8658 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8664 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8666 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8668 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8673 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8674 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8675 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8676 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8678 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8679 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8680 eval as_val
=\$
$as_ac_Header
8681 if test "x$as_val" = x
""yes; then :
8682 cat >>confdefs.h
<<_ACEOF
8683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8690 # Check for thread headers.
8691 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8692 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8698 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8699 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8706 # These tests can't be done till we know if we have limits.h.
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8708 $as_echo_n "checking for CHAR_BIT... " >&6; }
8709 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8710 $as_echo_n "(cached) " >&6
8712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8714 #ifdef HAVE_LIMITS_H
8721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8722 $EGREP "found" >/dev
/null
2>&1; then :
8723 gcc_cv_decl_char_bit
=yes
8725 gcc_cv_decl_char_bit
=no
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8732 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8733 if test $gcc_cv_decl_char_bit = no
; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8735 $as_echo_n "checking number of bits in a byte... " >&6; }
8736 if test "${gcc_cv_c_nbby+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
8741 while test $i -lt 65; do
8742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8749 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8750 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8756 if ac_fn_cxx_try_compile
"$LINENO"; then :
8757 gcc_cv_c_nbby
=$i; break
8759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8762 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8766 $as_echo "$gcc_cv_c_nbby" >&6; }
8767 if test $gcc_cv_c_nbby = failed
; then
8768 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8771 cat >>confdefs.h
<<_ACEOF
8772 #define CHAR_BIT $gcc_cv_c_nbby
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8778 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8779 if test "${ac_cv_c_bigendian+set}" = set; then :
8780 $as_echo_n "(cached) " >&6
8782 ac_cv_c_bigendian
=unknown
8783 # See if we're dealing with a universal compiler.
8784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8785 /* end confdefs.h. */
8786 #ifndef __APPLE_CC__
8787 not a universal capable compiler
8792 if ac_fn_cxx_try_compile
"$LINENO"; then :
8794 # Check for potential -arch flags. It is not universal unless
8795 # there are at least two -arch flags with different values.
8798 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8799 if test -n "$ac_prev"; then
8801 i?
86 | x86_64 | ppc | ppc64
)
8802 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8805 ac_cv_c_bigendian
=universal
8811 elif test "x$ac_word" = "x-arch"; then
8816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8817 if test $ac_cv_c_bigendian = unknown
; then
8818 # See if sys/param.h defines the BYTE_ORDER macro.
8819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8820 /* end confdefs.h. */
8821 #include <sys/types.h>
8822 #include <sys/param.h>
8827 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8828 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8837 if ac_fn_cxx_try_compile
"$LINENO"; then :
8838 # It does; now see whether it defined to BIG_ENDIAN or not.
8839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8841 #include <sys/types.h>
8842 #include <sys/param.h>
8847 #if BYTE_ORDER != BIG_ENDIAN
8855 if ac_fn_cxx_try_compile
"$LINENO"; then :
8856 ac_cv_c_bigendian
=yes
8858 ac_cv_c_bigendian
=no
8860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8864 if test $ac_cv_c_bigendian = unknown
; then
8865 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8873 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8881 if ac_fn_cxx_try_compile
"$LINENO"; then :
8882 # It does; now see whether it defined to _BIG_ENDIAN or not.
8883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h. */
8898 if ac_fn_cxx_try_compile
"$LINENO"; then :
8899 ac_cv_c_bigendian
=yes
8901 ac_cv_c_bigendian
=no
8903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8907 if test $ac_cv_c_bigendian = unknown
; then
8908 # Compile a test program.
8909 if test "$cross_compiling" = yes; then :
8910 # Try to guess by grepping values from an object file.
8911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h. */
8913 short int ascii_mm[] =
8914 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8915 short int ascii_ii[] =
8916 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8917 int use_ascii (int i) {
8918 return ascii_mm[i] + ascii_ii[i];
8920 short int ebcdic_ii[] =
8921 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8922 short int ebcdic_mm[] =
8923 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8924 int use_ebcdic (int i) {
8925 return ebcdic_mm[i] + ebcdic_ii[i];
8932 return use_ascii (foo) == use_ebcdic (foo);
8937 if ac_fn_cxx_try_compile
"$LINENO"; then :
8938 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8939 ac_cv_c_bigendian
=yes
8941 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8942 if test "$ac_cv_c_bigendian" = unknown
; then
8943 ac_cv_c_bigendian
=no
8945 # finding both strings is unlikely to happen, but who knows?
8946 ac_cv_c_bigendian
=unknown
8950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8953 /* end confdefs.h. */
8954 $ac_includes_default
8959 /* Are we little or big endian? From Harbison&Steele. */
8963 char c[sizeof (long int)];
8966 return u.c[sizeof (long int) - 1] == 1;
8972 if ac_fn_cxx_try_run
"$LINENO"; then :
8973 ac_cv_c_bigendian
=no
8975 ac_cv_c_bigendian
=yes
8977 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8978 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8984 $as_echo "$ac_cv_c_bigendian" >&6; }
8985 case $ac_cv_c_bigendian in #(
8987 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8993 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8997 as_fn_error
"unknown endianness
8998 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9002 # ----------------------
9003 # Checks for C++ headers
9004 # ----------------------
9007 ac_cpp
='$CXXCPP $CPPFLAGS'
9008 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9009 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9010 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9012 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9013 if test -z "$CXXCPP"; then
9014 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9015 $as_echo_n "(cached) " >&6
9017 # Double quotes because CXXCPP needs to be expanded
9018 for CXXCPP
in "$CXX -E" "/lib/cpp"
9021 for ac_cxx_preproc_warn_flag
in '' yes
9023 # Use a header file that comes with gcc, so configuring glibc
9024 # with a fresh cross-compiler works.
9025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9026 # <limits.h> exists even on freestanding compilers.
9027 # On the NeXT, cc -E runs the code through the compiler's parser,
9028 # not just through cpp. "Syntax error" is here to catch this case.
9029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9030 /* end confdefs.h. */
9032 # include <limits.h>
9034 # include <assert.h>
9038 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9041 # Broken: fails on valid input.
9044 rm -f conftest.err conftest.
$ac_ext
9046 # OK, works on sane cases. Now check whether nonexistent headers
9047 # can be detected and how.
9048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9050 #include <ac_nonexistent.h>
9052 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9053 # Broken: success on invalid input.
9056 # Passes both tests.
9060 rm -f conftest.err conftest.
$ac_ext
9063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9064 rm -f conftest.err conftest.
$ac_ext
9065 if $ac_preproc_ok; then :
9070 ac_cv_prog_CXXCPP
=$CXXCPP
9073 CXXCPP
=$ac_cv_prog_CXXCPP
9075 ac_cv_prog_CXXCPP
=$CXXCPP
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9078 $as_echo "$CXXCPP" >&6; }
9080 for ac_cxx_preproc_warn_flag
in '' yes
9082 # Use a header file that comes with gcc, so configuring glibc
9083 # with a fresh cross-compiler works.
9084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9085 # <limits.h> exists even on freestanding compilers.
9086 # On the NeXT, cc -E runs the code through the compiler's parser,
9087 # not just through cpp. "Syntax error" is here to catch this case.
9088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h. */
9091 # include <limits.h>
9093 # include <assert.h>
9097 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9100 # Broken: fails on valid input.
9103 rm -f conftest.err conftest.
$ac_ext
9105 # OK, works on sane cases. Now check whether nonexistent headers
9106 # can be detected and how.
9107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9108 /* end confdefs.h. */
9109 #include <ac_nonexistent.h>
9111 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9112 # Broken: success on invalid input.
9115 # Passes both tests.
9119 rm -f conftest.err conftest.
$ac_ext
9122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9123 rm -f conftest.err conftest.
$ac_ext
9124 if $ac_preproc_ok; then :
9127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9130 See \`config.log' for more details." >&5
9131 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9132 See \`config.log' for more details." >&2;}; }
9136 ac_cpp
='$CXXCPP $CPPFLAGS'
9137 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9138 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9139 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9142 for ac_header
in unordered_map
9144 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9145 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
9146 cat >>confdefs.h
<<_ACEOF
9147 #define HAVE_UNORDERED_MAP 1
9153 for ac_header
in tr1/unordered_map
9155 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9156 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9157 cat >>confdefs.h
<<_ACEOF
9158 #define HAVE_TR1_UNORDERED_MAP 1
9164 for ac_header
in ext
/hash_map
9166 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9167 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9168 cat >>confdefs.h
<<_ACEOF
9169 #define HAVE_EXT_HASH_MAP 1
9177 # Dependency checking.
9180 rm -rf .tst
2>/dev
/null
9181 mkdir .tst
2>/dev
/null
9182 if test -d .tst
; then
9187 rmdir .tst
2>/dev
/null
9189 DEPDIR
="${am__leading_dot}deps"
9191 ac_config_commands
="$ac_config_commands depdir"
9194 ac_config_commands
="$ac_config_commands gccdepdir"
9197 depcc
="$CXX" am_compiler_list
=
9199 am_depcomp
=$ac_aux_dir/depcomp
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9201 $as_echo_n "checking dependency style of $depcc... " >&6; }
9202 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9203 $as_echo_n "(cached) " >&6
9205 if test -f "$am_depcomp"; then
9206 # We make a subdir and do the tests there. Otherwise we can end up
9207 # making bogus files that we don't know about and never remove. For
9208 # instance it was reported that on HP-UX the gcc test will end up
9209 # making a dummy file named `D' -- because `-MD' means `put the output
9212 # Copy depcomp to subdir because otherwise we won't find it if we're
9213 # using a relative directory.
9214 cp "$am_depcomp" conftest.dir
9216 # We will build objects and dependencies in a subdirectory because
9217 # it helps to detect inapplicable dependency modes. For instance
9218 # both Tru64's cc and ICC support -MD to output dependencies as a
9219 # side effect of compilation, but ICC will put the dependencies in
9220 # the current directory while Tru64 will put them in the object
9224 am_cv_CXX_dependencies_compiler_type
=none
9225 if test "$am_compiler_list" = ""; then
9226 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9228 for depmode
in $am_compiler_list; do
9229 if test $depmode = none
; then break; fi
9231 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9232 # Setup a source with many dependencies, because some compilers
9233 # like to wrap large dependency lists on column 80 (with \), and
9234 # we should not choose a depcomp mode which is confused by this.
9236 # We need to recreate these files for each test, as the compiler may
9237 # overwrite some of them when testing with obscure command lines.
9238 # This happens at least with the AIX C compiler.
9240 for i
in 1 2 3 4 5 6; do
9241 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9242 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9243 # Solaris 8's {/usr,}/bin/sh.
9244 touch sub
/conftst
$i.h
9246 echo "include sub/conftest.Po" > confmf
9248 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9249 # mode. It turns out that the SunPro C++ compiler does not properly
9250 # handle `-M -o', and we need to detect this.
9251 depcmd
="depmode=$depmode \
9252 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9253 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9254 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9255 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9256 if env
$depcmd > conftest.err
2>&1 &&
9257 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9258 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9259 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9260 # icc doesn't choke on unknown options, it will just issue warnings
9261 # or remarks (even with -Werror). So we grep stderr for any message
9262 # that says an option was ignored or not supported.
9263 # When given -MP, icc 7.0 and 7.1 complain thusly:
9264 # icc: Command line warning: ignoring option '-M'; no argument required
9265 # The diagnosis changed in icc 8.0:
9266 # icc: Command line remark: option '-MP' not supported
9267 if (grep 'ignoring option' conftest.err ||
9268 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9269 am_cv_CXX_dependencies_compiler_type
=$depmode
9270 $as_echo "$as_me:$LINENO: success" >&5
9274 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9275 sed -e 's/^/| /' < conftest.err
>&5
9281 am_cv_CXX_dependencies_compiler_type
=none
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9286 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9287 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9288 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9289 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9299 # These libraries may be used by collect2.
9300 # We may need a special search path to get them linked.
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9302 $as_echo_n "checking for collect2 libraries... " >&6; }
9303 if test "${gcc_cv_collect2_libs+set}" = set; then :
9304 $as_echo_n "(cached) " >&6
9307 for libs
in '' -lld -lmld \
9308 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9309 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9313 /* end confdefs.h. */
9315 /* Override any GCC internal prototype to avoid an error.
9316 Use char because int might match the return type of a GCC
9317 builtin and then its argument prototype would still apply. */
9330 if ac_fn_cxx_try_link
"$LINENO"; then :
9331 gcc_cv_collect2_libs
="$libs"; break
9333 rm -f core conftest.err conftest.
$ac_objext \
9334 conftest
$ac_exeext conftest.
$ac_ext
9337 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9340 $as_echo "$gcc_cv_collect2_libs" >&6; }
9341 case $gcc_cv_collect2_libs in
9343 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9347 # When building Ada code on Alpha, we need exc_resume which is usually in
9348 # -lexc. So test for it.
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9352 $as_echo_n "checking for library containing exc_resume... " >&6; }
9353 if test "${ac_cv_search_exc_resume+set}" = set; then :
9354 $as_echo_n "(cached) " >&6
9356 ac_func_search_save_LIBS
=$LIBS
9357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h. */
9360 /* Override any GCC internal prototype to avoid an error.
9361 Use char because int might match the return type of a GCC
9362 builtin and then its argument prototype would still apply. */
9370 return exc_resume ();
9375 for ac_lib
in '' exc
; do
9376 if test -z "$ac_lib"; then
9377 ac_res
="none required"
9380 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9382 if ac_fn_cxx_try_link
"$LINENO"; then :
9383 ac_cv_search_exc_resume
=$ac_res
9385 rm -f core conftest.err conftest.
$ac_objext \
9387 if test "${ac_cv_search_exc_resume+set}" = set; then :
9391 if test "${ac_cv_search_exc_resume+set}" = set; then :
9394 ac_cv_search_exc_resume
=no
9397 LIBS
=$ac_func_search_save_LIBS
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9400 $as_echo "$ac_cv_search_exc_resume" >&6; }
9401 ac_res
=$ac_cv_search_exc_resume
9402 if test "$ac_res" != no
; then :
9403 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9411 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9415 $as_echo_n "checking for library containing kstat_open... " >&6; }
9416 if test "${ac_cv_search_kstat_open+set}" = set; then :
9417 $as_echo_n "(cached) " >&6
9419 ac_func_search_save_LIBS
=$LIBS
9420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h. */
9423 /* Override any GCC internal prototype to avoid an error.
9424 Use char because int might match the return type of a GCC
9425 builtin and then its argument prototype would still apply. */
9433 return kstat_open ();
9438 for ac_lib
in '' kstat
; do
9439 if test -z "$ac_lib"; then
9440 ac_res
="none required"
9443 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9445 if ac_fn_cxx_try_link
"$LINENO"; then :
9446 ac_cv_search_kstat_open
=$ac_res
9448 rm -f core conftest.err conftest.
$ac_objext \
9450 if test "${ac_cv_search_kstat_open+set}" = set; then :
9454 if test "${ac_cv_search_kstat_open+set}" = set; then :
9457 ac_cv_search_kstat_open
=no
9460 LIBS
=$ac_func_search_save_LIBS
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9463 $as_echo "$ac_cv_search_kstat_open" >&6; }
9464 ac_res
=$ac_cv_search_kstat_open
9465 if test "$ac_res" != no
; then :
9466 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9470 EXTRA_GCC_LIBS
="$LIBS"
9474 # Some systems put ldexp and frexp in libm instead of libc; assume
9475 # they're both in the same place. jcf-dump needs them.
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9479 $as_echo_n "checking for library containing ldexp... " >&6; }
9480 if test "${ac_cv_search_ldexp+set}" = set; then :
9481 $as_echo_n "(cached) " >&6
9483 ac_func_search_save_LIBS
=$LIBS
9484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h. */
9487 /* Override any GCC internal prototype to avoid an error.
9488 Use char because int might match the return type of a GCC
9489 builtin and then its argument prototype would still apply. */
9502 for ac_lib
in '' m
; do
9503 if test -z "$ac_lib"; then
9504 ac_res
="none required"
9507 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9509 if ac_fn_cxx_try_link
"$LINENO"; then :
9510 ac_cv_search_ldexp
=$ac_res
9512 rm -f core conftest.err conftest.
$ac_objext \
9514 if test "${ac_cv_search_ldexp+set}" = set; then :
9518 if test "${ac_cv_search_ldexp+set}" = set; then :
9521 ac_cv_search_ldexp
=no
9524 LIBS
=$ac_func_search_save_LIBS
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9527 $as_echo "$ac_cv_search_ldexp" >&6; }
9528 ac_res
=$ac_cv_search_ldexp
9529 if test "$ac_res" != no
; then :
9530 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9538 # Use <inttypes.h> only if it exists,
9539 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9542 $as_echo_n "checking for inttypes.h... " >&6; }
9543 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9544 $as_echo_n "(cached) " >&6
9546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9547 /* end confdefs.h. */
9548 #define __STDC_FORMAT_MACROS
9549 #include <sys/types.h>
9550 #include <inttypes.h>
9562 if ac_fn_cxx_try_compile
"$LINENO"; then :
9563 gcc_cv_header_inttypes_h
=yes
9565 gcc_cv_header_inttypes_h
=no
9567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9571 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9572 if test $gcc_cv_header_inttypes_h = yes; then
9574 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9580 for ac_func
in times clock kill getrlimit setrlimit atoq \
9581 popen sysconf strsignal getrusage nl_langinfo \
9582 gettimeofday mbstowcs wcswidth mmap setlocale \
9583 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
9585 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9586 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9587 eval as_val
=\$
$as_ac_var
9588 if test "x$as_val" = x
""yes; then :
9589 cat >>confdefs.h
<<_ACEOF
9590 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9597 if test x
$ac_cv_func_mbstowcs = xyes
; then
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9599 $as_echo_n "checking whether mbstowcs works... " >&6; }
9600 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9601 $as_echo_n "(cached) " >&6
9603 if test "$cross_compiling" = yes; then :
9604 gcc_cv_func_mbstowcs_works
=yes
9606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9607 /* end confdefs.h. */
9615 if ac_fn_cxx_try_run
"$LINENO"; then :
9616 gcc_cv_func_mbstowcs_works
=yes
9618 gcc_cv_func_mbstowcs_works
=no
9620 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9621 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9626 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9627 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9629 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9634 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9635 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9639 cat >>confdefs.h
<<_ACEOF
9645 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9646 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9650 cat >>confdefs.h
<<_ACEOF
9651 #define caddr_t char *
9658 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9659 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9660 gcc_header_sys_mman_h
=yes
9662 gcc_header_sys_mman_h
=no
9665 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9666 if test "x$ac_cv_func_mmap" = x
""yes; then :
9672 if test "$gcc_header_sys_mman_h" != yes \
9673 ||
test "$gcc_func_mmap" != yes; then
9674 gcc_cv_func_mmap_file
=no
9675 gcc_cv_func_mmap_dev_zero
=no
9676 gcc_cv_func_mmap_anon
=no
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9679 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9680 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9681 $as_echo_n "(cached) " >&6
9683 # Add a system to this blacklist if
9684 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9685 # memory area containing the same data that you'd get if you applied
9686 # read() to the same fd. The only system known to have a problem here
9687 # is VMS, where text files have record structure.
9690 gcc_cv_func_mmap_file
=no
;;
9692 gcc_cv_func_mmap_file
=yes;;
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9696 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9698 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9699 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9700 $as_echo_n "(cached) " >&6
9702 # Add a system to this blacklist if it has mmap() but /dev/zero
9703 # does not exist, or if mmapping /dev/zero does not give anonymous
9704 # zeroed pages with both the following properties:
9705 # 1. If you map N consecutive pages in with one call, and then
9706 # unmap any subset of those pages, the pages that were not
9707 # explicitly unmapped remain accessible.
9708 # 2. If you map two adjacent blocks of memory and then unmap them
9709 # both at once, they must both go away.
9710 # Systems known to be in this category are Windows (all variants),
9713 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9714 gcc_cv_func_mmap_dev_zero
=no
;;
9716 gcc_cv_func_mmap_dev_zero
=yes;;
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9720 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9722 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9724 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9725 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9726 $as_echo_n "(cached) " >&6
9728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9729 /* end confdefs.h. */
9730 #include <sys/types.h>
9731 #include <sys/mman.h>
9734 #ifndef MAP_ANONYMOUS
9735 #define MAP_ANONYMOUS MAP_ANON
9741 int n = MAP_ANONYMOUS;
9746 if ac_fn_cxx_try_compile
"$LINENO"; then :
9747 gcc_cv_decl_map_anon
=yes
9749 gcc_cv_decl_map_anon
=no
9751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9754 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9756 if test $gcc_cv_decl_map_anon = no
; then
9757 gcc_cv_func_mmap_anon
=no
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9760 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9761 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9762 $as_echo_n "(cached) " >&6
9764 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9765 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9766 # doesn't give anonymous zeroed pages with the same properties listed
9767 # above for use of /dev/zero.
9768 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9770 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9771 gcc_cv_func_mmap_anon
=no
;;
9773 gcc_cv_func_mmap_anon
=yes;;
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9777 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9781 if test $gcc_cv_func_mmap_file = yes; then
9783 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9786 if test $gcc_cv_func_mmap_dev_zero = yes; then
9788 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9791 if test $gcc_cv_func_mmap_anon = yes; then
9793 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9800 # Under VMS, vfork works very differently than on Unix. The standard test
9801 # won't work, and it isn't easily adaptable. It makes more sense to
9803 ac_cv_func_vfork_works
=yes
9806 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9807 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9811 cat >>confdefs.h
<<_ACEOF
9817 for ac_header
in vfork.h
9819 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9820 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9821 cat >>confdefs.h
<<_ACEOF
9822 #define HAVE_VFORK_H 1
9828 for ac_func
in fork vfork
9830 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9831 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9832 eval as_val
=\$
$as_ac_var
9833 if test "x$as_val" = x
""yes; then :
9834 cat >>confdefs.h
<<_ACEOF
9835 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9841 if test "x$ac_cv_func_fork" = xyes
; then
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9843 $as_echo_n "checking for working fork... " >&6; }
9844 if test "${ac_cv_func_fork_works+set}" = set; then :
9845 $as_echo_n "(cached) " >&6
9847 if test "$cross_compiling" = yes; then :
9848 ac_cv_func_fork_works
=cross
9850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9852 $ac_includes_default
9857 /* By Ruediger Kuhlmann. */
9864 if ac_fn_cxx_try_run
"$LINENO"; then :
9865 ac_cv_func_fork_works
=yes
9867 ac_cv_func_fork_works
=no
9869 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9870 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9875 $as_echo "$ac_cv_func_fork_works" >&6; }
9878 ac_cv_func_fork_works
=$ac_cv_func_fork
9880 if test "x$ac_cv_func_fork_works" = xcross
; then
9882 *-*-amigaos* |
*-*-msdosdjgpp*)
9883 # Override, as these systems have only a dummy fork() stub
9884 ac_cv_func_fork_works
=no
9887 ac_cv_func_fork_works
=yes
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9891 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9893 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9894 if test "x$ac_cv_func_vfork" = xyes
; then
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9896 $as_echo_n "checking for working vfork... " >&6; }
9897 if test "${ac_cv_func_vfork_works+set}" = set; then :
9898 $as_echo_n "(cached) " >&6
9900 if test "$cross_compiling" = yes; then :
9901 ac_cv_func_vfork_works
=cross
9903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9904 /* end confdefs.h. */
9905 /* Thanks to Paul Eggert for this test. */
9906 $ac_includes_default
9907 #include <sys/wait.h>
9911 /* On some sparc systems, changes by the child to local and incoming
9912 argument registers are propagated back to the parent. The compiler
9913 is told about this with #include <vfork.h>, but some compilers
9914 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9915 static variable whose address is put into a register that is
9916 clobbered by the vfork. */
9919 sparc_address_test (int arg)
9921 sparc_address_test (arg) int arg;
9942 pid_t parent = getpid ();
9945 sparc_address_test (0);
9950 /* Here is another test for sparc vfork register problems. This
9951 test uses lots of local variables, at least as many local
9952 variables as main has allocated so far including compiler
9953 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9954 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9955 reuse the register of parent for one of the local variables,
9956 since it will think that parent can't possibly be used any more
9957 in this routine. Assigning to the local variable will thus
9958 munge parent in the parent process. */
9960 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9961 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9962 /* Convince the compiler that p..p7 are live; otherwise, it might
9963 use the same hardware register for all 8 local variables. */
9964 if (p != p1 || p != p2 || p != p3 || p != p4
9965 || p != p5 || p != p6 || p != p7)
9968 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9969 from child file descriptors. If the child closes a descriptor
9970 before it execs or exits, this munges the parent's descriptor
9971 as well. Test for this by closing stdout in the child. */
9972 _exit(close(fileno(stdout)) != 0);
9977 while (wait(&status) != child)
9980 /* Was there some problem with vforking? */
9983 /* Did the child fail? (This shouldn't happen.) */
9986 /* Did the vfork/compiler bug occur? */
9987 || parent != getpid()
9989 /* Did the file descriptor bug occur? */
9990 || fstat(fileno(stdout), &st) != 0
9995 if ac_fn_cxx_try_run
"$LINENO"; then :
9996 ac_cv_func_vfork_works
=yes
9998 ac_cv_func_vfork_works
=no
10000 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10001 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10006 $as_echo "$ac_cv_func_vfork_works" >&6; }
10009 if test "x$ac_cv_func_fork_works" = xcross
; then
10010 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10012 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10015 if test "x$ac_cv_func_vfork_works" = xyes
; then
10017 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10021 $as_echo "#define vfork fork" >>confdefs.h
10024 if test "x$ac_cv_func_fork_works" = xyes
; then
10026 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10032 if test "X$prefix" = "XNONE"; then
10033 acl_final_prefix
="$ac_default_prefix"
10035 acl_final_prefix
="$prefix"
10037 if test "X$exec_prefix" = "XNONE"; then
10038 acl_final_exec_prefix
='${prefix}'
10040 acl_final_exec_prefix
="$exec_prefix"
10042 acl_save_prefix
="$prefix"
10043 prefix
="$acl_final_prefix"
10044 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10045 prefix
="$acl_save_prefix"
10048 # Check whether --with-gnu-ld was given.
10049 if test "${with_gnu_ld+set}" = set; then :
10050 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10055 # Prepare PATH_SEPARATOR.
10056 # The user is always right.
10057 if test "${PATH_SEPARATOR+set}" != set; then
10058 echo "#! /bin/sh" >conf$$.sh
10059 echo "exit 0" >>conf$$.sh
10061 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10069 if test "$GCC" = yes; then
10070 # Check if gcc -print-prog-name=ld gives a path.
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10072 $as_echo_n "checking for ld used by GCC... " >&6; }
10075 # gcc leaves a trailing carriage return which upsets mingw
10076 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10078 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10081 # Accept absolute paths.
10082 [\\/]* |
[A-Za-z
]:[\\/]*)
10083 re_direlt
='/[^/][^/]*/\.\./'
10084 # Canonicalize the path of ld
10085 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10086 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10087 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10089 test -z "$LD" && LD
="$ac_prog"
10092 # If it fails, then pretend we aren't using GCC.
10096 # If it is relative, then search for the first ld in PATH.
10097 with_gnu_ld
=unknown
10100 elif test "$with_gnu_ld" = yes; then
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10102 $as_echo_n "checking for GNU ld... " >&6; }
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10105 $as_echo_n "checking for non-GNU ld... " >&6; }
10107 if test "${acl_cv_path_LD+set}" = set; then :
10108 $as_echo_n "(cached) " >&6
10110 if test -z "$LD"; then
10111 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10112 for ac_dir
in $PATH; do
10113 test -z "$ac_dir" && ac_dir
=.
10114 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10115 acl_cv_path_LD
="$ac_dir/$ac_prog"
10116 # Check to see if the program is GNU ld. I'd rather use --version,
10117 # but apparently some GNU ld's only accept -v.
10118 # Break only if it was the GNU/non-GNU ld that we prefer.
10119 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10120 test "$with_gnu_ld" != no
&& break
10122 test "$with_gnu_ld" != yes && break
10128 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10132 LD
="$acl_cv_path_LD"
10133 if test -n "$LD"; then
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10135 $as_echo "$LD" >&6; }
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10138 $as_echo "no" >&6; }
10140 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10142 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10143 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10144 $as_echo_n "(cached) " >&6
10146 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10147 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10148 acl_cv_prog_gnu_ld
=yes
10150 acl_cv_prog_gnu_ld
=no
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10154 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10155 with_gnu_ld
=$acl_cv_prog_gnu_ld
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10160 $as_echo_n "checking for shared library run path origin... " >&6; }
10161 if test "${acl_cv_rpath+set}" = set; then :
10162 $as_echo_n "(cached) " >&6
10165 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10166 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10168 rm -f .
/conftest.sh
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10173 $as_echo "$acl_cv_rpath" >&6; }
10175 libext
="$acl_cv_libext"
10176 shlibext
="$acl_cv_shlibext"
10177 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10178 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10179 hardcode_direct
="$acl_cv_hardcode_direct"
10180 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10181 # Check whether --enable-rpath was given.
10182 if test "${enable_rpath+set}" = set; then :
10183 enableval
=$enable_rpath; :
10197 acl_save_prefix
="$prefix"
10198 prefix
="$acl_final_prefix"
10199 acl_save_exec_prefix
="$exec_prefix"
10200 exec_prefix
="$acl_final_exec_prefix"
10202 eval additional_includedir
=\"$includedir\"
10203 eval additional_libdir
=\"$libdir\"
10205 exec_prefix
="$acl_save_exec_prefix"
10206 prefix
="$acl_save_prefix"
10209 # Check whether --with-libiconv-prefix was given.
10210 if test "${with_libiconv_prefix+set}" = set; then :
10211 withval
=$with_libiconv_prefix;
10212 if test "X$withval" = "Xno"; then
10215 if test "X$withval" = "X"; then
10217 acl_save_prefix
="$prefix"
10218 prefix
="$acl_final_prefix"
10219 acl_save_exec_prefix
="$exec_prefix"
10220 exec_prefix
="$acl_final_exec_prefix"
10222 eval additional_includedir
=\"$includedir\"
10223 eval additional_libdir
=\"$libdir\"
10225 exec_prefix
="$acl_save_exec_prefix"
10226 prefix
="$acl_save_prefix"
10229 additional_includedir
="$withval/include"
10230 additional_libdir
="$withval/lib"
10241 names_already_handled
=
10242 names_next_round
='iconv '
10243 while test -n "$names_next_round"; do
10244 names_this_round
="$names_next_round"
10246 for name
in $names_this_round; do
10248 for n
in $names_already_handled; do
10249 if test "$n" = "$name"; then
10250 already_handled
=yes
10254 if test -z "$already_handled"; then
10255 names_already_handled
="$names_already_handled $name"
10256 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10257 eval value
=\"\
$HAVE_LIB$uppername\"
10258 if test -n "$value"; then
10259 if test "$value" = yes; then
10260 eval value
=\"\
$LIB$uppername\"
10261 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10262 eval value
=\"\
$LTLIB$uppername\"
10263 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10272 if test $use_additional = yes; then
10273 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10274 found_dir
="$additional_libdir"
10275 found_so
="$additional_libdir/lib$name.$shlibext"
10276 if test -f "$additional_libdir/lib$name.la"; then
10277 found_la
="$additional_libdir/lib$name.la"
10280 if test -f "$additional_libdir/lib$name.$libext"; then
10281 found_dir
="$additional_libdir"
10282 found_a
="$additional_libdir/lib$name.$libext"
10283 if test -f "$additional_libdir/lib$name.la"; then
10284 found_la
="$additional_libdir/lib$name.la"
10289 if test "X$found_dir" = "X"; then
10290 for x
in $LDFLAGS $LTLIBICONV; do
10292 acl_save_prefix
="$prefix"
10293 prefix
="$acl_final_prefix"
10294 acl_save_exec_prefix
="$exec_prefix"
10295 exec_prefix
="$acl_final_exec_prefix"
10297 exec_prefix
="$acl_save_exec_prefix"
10298 prefix
="$acl_save_prefix"
10302 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10303 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10305 found_so
="$dir/lib$name.$shlibext"
10306 if test -f "$dir/lib$name.la"; then
10307 found_la
="$dir/lib$name.la"
10310 if test -f "$dir/lib$name.$libext"; then
10312 found_a
="$dir/lib$name.$libext"
10313 if test -f "$dir/lib$name.la"; then
10314 found_la
="$dir/lib$name.la"
10320 if test "X$found_dir" != "X"; then
10325 if test "X$found_dir" != "X"; then
10326 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10327 if test "X$found_so" != "X"; then
10328 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10329 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10332 for x
in $ltrpathdirs; do
10333 if test "X$x" = "X$found_dir"; then
10338 if test -z "$haveit"; then
10339 ltrpathdirs
="$ltrpathdirs $found_dir"
10341 if test "$hardcode_direct" = yes; then
10342 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10344 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10345 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10347 for x
in $rpathdirs; do
10348 if test "X$x" = "X$found_dir"; then
10353 if test -z "$haveit"; then
10354 rpathdirs
="$rpathdirs $found_dir"
10358 for x
in $LDFLAGS $LIBICONV; do
10360 acl_save_prefix
="$prefix"
10361 prefix
="$acl_final_prefix"
10362 acl_save_exec_prefix
="$exec_prefix"
10363 exec_prefix
="$acl_final_exec_prefix"
10365 exec_prefix
="$acl_save_exec_prefix"
10366 prefix
="$acl_save_prefix"
10368 if test "X$x" = "X-L$found_dir"; then
10373 if test -z "$haveit"; then
10374 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10376 if test "$hardcode_minus_L" != no
; then
10377 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10379 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10385 if test "X$found_a" != "X"; then
10386 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10388 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10391 additional_includedir
=
10392 case "$found_dir" in
10394 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10395 additional_includedir
="$basedir/include"
10398 if test "X$additional_includedir" != "X"; then
10399 if test "X$additional_includedir" != "X/usr/include"; then
10401 if test "X$additional_includedir" = "X/usr/local/include"; then
10402 if test -n "$GCC"; then
10404 linux
*) haveit
=yes;;
10408 if test -z "$haveit"; then
10409 for x
in $CPPFLAGS $INCICONV; do
10411 acl_save_prefix
="$prefix"
10412 prefix
="$acl_final_prefix"
10413 acl_save_exec_prefix
="$exec_prefix"
10414 exec_prefix
="$acl_final_exec_prefix"
10416 exec_prefix
="$acl_save_exec_prefix"
10417 prefix
="$acl_save_prefix"
10419 if test "X$x" = "X-I$additional_includedir"; then
10424 if test -z "$haveit"; then
10425 if test -d "$additional_includedir"; then
10426 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10432 if test -n "$found_la"; then
10433 save_libdir
="$libdir"
10434 case "$found_la" in
10435 */* |
*\\*) .
"$found_la" ;;
10436 *) .
"./$found_la" ;;
10438 libdir
="$save_libdir"
10439 for dep
in $dependency_libs; do
10442 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10443 if test "X$additional_libdir" != "X/usr/lib"; then
10445 if test "X$additional_libdir" = "X/usr/local/lib"; then
10446 if test -n "$GCC"; then
10448 linux
*) haveit
=yes;;
10452 if test -z "$haveit"; then
10454 for x
in $LDFLAGS $LIBICONV; do
10456 acl_save_prefix
="$prefix"
10457 prefix
="$acl_final_prefix"
10458 acl_save_exec_prefix
="$exec_prefix"
10459 exec_prefix
="$acl_final_exec_prefix"
10461 exec_prefix
="$acl_save_exec_prefix"
10462 prefix
="$acl_save_prefix"
10464 if test "X$x" = "X-L$additional_libdir"; then
10469 if test -z "$haveit"; then
10470 if test -d "$additional_libdir"; then
10471 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10475 for x
in $LDFLAGS $LTLIBICONV; do
10477 acl_save_prefix
="$prefix"
10478 prefix
="$acl_final_prefix"
10479 acl_save_exec_prefix
="$exec_prefix"
10480 exec_prefix
="$acl_final_exec_prefix"
10482 exec_prefix
="$acl_save_exec_prefix"
10483 prefix
="$acl_save_prefix"
10485 if test "X$x" = "X-L$additional_libdir"; then
10490 if test -z "$haveit"; then
10491 if test -d "$additional_libdir"; then
10492 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10499 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10500 if test "$enable_rpath" != no
; then
10502 for x
in $rpathdirs; do
10503 if test "X$x" = "X$dir"; then
10508 if test -z "$haveit"; then
10509 rpathdirs
="$rpathdirs $dir"
10512 for x
in $ltrpathdirs; do
10513 if test "X$x" = "X$dir"; then
10518 if test -z "$haveit"; then
10519 ltrpathdirs
="$ltrpathdirs $dir"
10524 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10527 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10530 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10531 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10537 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10538 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10544 if test "X$rpathdirs" != "X"; then
10545 if test -n "$hardcode_libdir_separator"; then
10547 for found_dir
in $rpathdirs; do
10548 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10550 acl_save_libdir
="$libdir"
10552 eval flag
=\"$hardcode_libdir_flag_spec\"
10553 libdir
="$acl_save_libdir"
10554 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10556 for found_dir
in $rpathdirs; do
10557 acl_save_libdir
="$libdir"
10558 libdir
="$found_dir"
10559 eval flag
=\"$hardcode_libdir_flag_spec\"
10560 libdir
="$acl_save_libdir"
10561 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10565 if test "X$ltrpathdirs" != "X"; then
10566 for found_dir
in $ltrpathdirs; do
10567 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10577 am_save_CPPFLAGS
="$CPPFLAGS"
10579 for element
in $INCICONV; do
10581 for x
in $CPPFLAGS; do
10583 acl_save_prefix
="$prefix"
10584 prefix
="$acl_final_prefix"
10585 acl_save_exec_prefix
="$exec_prefix"
10586 exec_prefix
="$acl_final_exec_prefix"
10588 exec_prefix
="$acl_save_exec_prefix"
10589 prefix
="$acl_save_prefix"
10591 if test "X$x" = "X$element"; then
10596 if test -z "$haveit"; then
10597 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10603 $as_echo_n "checking for iconv... " >&6; }
10604 if test "${am_cv_func_iconv+set}" = set; then :
10605 $as_echo_n "(cached) " >&6
10608 am_cv_func_iconv
="no, consider installing GNU libiconv"
10610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10611 /* end confdefs.h. */
10612 #include <stdlib.h>
10617 iconv_t cd = iconv_open("","");
10618 iconv(cd,NULL,NULL,NULL,NULL);
10624 if ac_fn_cxx_try_link
"$LINENO"; then :
10625 am_cv_func_iconv
=yes
10627 rm -f core conftest.err conftest.
$ac_objext \
10628 conftest
$ac_exeext conftest.
$ac_ext
10629 if test "$am_cv_func_iconv" != yes; then
10630 am_save_LIBS
="$LIBS"
10631 LIBS
="$LIBS $LIBICONV"
10632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h. */
10634 #include <stdlib.h>
10639 iconv_t cd = iconv_open("","");
10640 iconv(cd,NULL,NULL,NULL,NULL);
10646 if ac_fn_cxx_try_link
"$LINENO"; then :
10647 am_cv_lib_iconv
=yes
10648 am_cv_func_iconv
=yes
10650 rm -f core conftest.err conftest.
$ac_objext \
10651 conftest
$ac_exeext conftest.
$ac_ext
10652 LIBS
="$am_save_LIBS"
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10657 $as_echo "$am_cv_func_iconv" >&6; }
10658 if test "$am_cv_func_iconv" = yes; then
10660 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10663 if test "$am_cv_lib_iconv" = yes; then
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10665 $as_echo_n "checking how to link with libiconv... " >&6; }
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10667 $as_echo "$LIBICONV" >&6; }
10669 CPPFLAGS
="$am_save_CPPFLAGS"
10676 if test "$am_cv_func_iconv" = yes; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10678 $as_echo_n "checking for iconv declaration... " >&6; }
10679 if test "${am_cv_proto_iconv+set}" = set; then :
10680 $as_echo_n "(cached) " >&6
10683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10684 /* end confdefs.h. */
10686 #include <stdlib.h>
10692 #if defined(__STDC__) || defined(__cplusplus)
10693 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10706 if ac_fn_cxx_try_compile
"$LINENO"; then :
10707 am_cv_proto_iconv_arg1
=""
10709 am_cv_proto_iconv_arg1
="const"
10711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10712 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);"
10715 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10717 }$am_cv_proto_iconv" >&5
10719 }$am_cv_proto_iconv" >&6; }
10721 cat >>confdefs.h
<<_ACEOF
10722 #define ICONV_CONST $am_cv_proto_iconv_arg1
10728 # Until we have in-tree GNU iconv:
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10734 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10735 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10736 $as_echo_n "(cached) " >&6
10738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10740 #include <locale.h>
10749 if ac_fn_cxx_try_link
"$LINENO"; then :
10750 am_cv_val_LC_MESSAGES
=yes
10752 am_cv_val_LC_MESSAGES
=no
10754 rm -f core conftest.err conftest.
$ac_objext \
10755 conftest
$ac_exeext conftest.
$ac_ext
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10758 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10759 if test $am_cv_val_LC_MESSAGES = yes; then
10761 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10768 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10769 if test "${am_cv_langinfo_codeset+set}" = set; then :
10770 $as_echo_n "(cached) " >&6
10772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10773 /* end confdefs.h. */
10774 #include <langinfo.h>
10778 char* cs = nl_langinfo(CODESET);
10783 if ac_fn_cxx_try_link
"$LINENO"; then :
10784 am_cv_langinfo_codeset
=yes
10786 am_cv_langinfo_codeset
=no
10788 rm -f core conftest.err conftest.
$ac_objext \
10789 conftest
$ac_exeext conftest.
$ac_ext
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10793 $as_echo "$am_cv_langinfo_codeset" >&6; }
10794 if test $am_cv_langinfo_codeset = yes; then
10796 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10801 # We will need to find libiberty.h and ansidecl.h
10802 saved_CFLAGS
="$CFLAGS"
10803 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10804 saved_CXXFLAGS
="$CXXFLAGS"
10805 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10807 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10808 # normal autoconf function for these. But force definition of
10809 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10810 # basename handling in libiberty.h.
10811 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10812 #undef HAVE_DECL_BASENAME
10813 #define HAVE_DECL_BASENAME 1
10814 #include \"ansidecl.h\"
10815 #include \"system.h\"
10817 if test "x$ac_cv_have_decl_basename_const_charp_" = x
""yes; then :
10823 cat >>confdefs.h
<<_ACEOF
10824 #define HAVE_DECL_BASENAME $ac_have_decl
10826 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10827 #undef HAVE_DECL_BASENAME
10828 #define HAVE_DECL_BASENAME 1
10829 #include \"ansidecl.h\"
10830 #include \"system.h\"
10832 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x
""yes; then :
10838 cat >>confdefs.h
<<_ACEOF
10839 #define HAVE_DECL_STRSTR $ac_have_decl
10843 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10844 madvise stpcpy strnlen strsignal strverscmp \
10845 strtol strtoul strtoll strtoull \
10846 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10847 free getopt
clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10849 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10851 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10852 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10853 $as_echo_n "(cached) " >&6
10855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h. */
10858 #define $ac_tr_decl 1
10860 #include "ansidecl.h"
10861 #include "system.h"
10867 char *(*pfn) = (char *(*)) $ac_func ;
10873 if ac_fn_cxx_try_compile
"$LINENO"; then :
10874 eval "gcc_cv_have_decl_$ac_func=yes"
10876 eval "gcc_cv_have_decl_$ac_func=no"
10878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10881 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10883 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10884 #define $ac_tr_decl 1
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10889 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10890 #define $ac_tr_decl 0
10898 for ac_func
in getrlimit setrlimit getrusage
10900 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10902 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10903 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10904 $as_echo_n "(cached) " >&6
10906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10907 /* end confdefs.h. */
10909 #define $ac_tr_decl 1
10911 #include "ansidecl.h"
10912 #include "system.h"
10913 #ifdef HAVE_SYS_RESOURCE_H
10914 #include <sys/resource.h>
10922 char *(*pfn) = (char *(*)) $ac_func ;
10928 if ac_fn_cxx_try_compile
"$LINENO"; then :
10929 eval "gcc_cv_have_decl_$ac_func=yes"
10931 eval "gcc_cv_have_decl_$ac_func=no"
10933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10936 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10938 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10939 #define $ac_tr_decl 1
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10944 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10945 #define $ac_tr_decl 0
10953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10954 /* end confdefs.h. */
10956 #include "ansidecl.h"
10957 #include "system.h"
10958 #ifdef HAVE_SYS_RESOURCE_H
10959 #include <sys/resource.h>
10970 if ac_fn_cxx_try_compile
"$LINENO"; then :
10974 $as_echo "#define rlim_t long" >>confdefs.h
10977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10979 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10980 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10981 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10982 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10983 for ac_func
in ldgetname
10985 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10987 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10988 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10989 $as_echo_n "(cached) " >&6
10991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10992 /* end confdefs.h. */
10994 #define $ac_tr_decl 1
10996 #include "ansidecl.h"
10997 #include "system.h"
10998 #ifdef HAVE_LDFCN_H
11009 char *(*pfn) = (char *(*)) $ac_func ;
11015 if ac_fn_cxx_try_compile
"$LINENO"; then :
11016 eval "gcc_cv_have_decl_$ac_func=yes"
11018 eval "gcc_cv_have_decl_$ac_func=no"
11020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11023 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11025 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11026 #define $ac_tr_decl 1
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11031 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11032 #define $ac_tr_decl 0
11040 for ac_func
in times
11042 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11044 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11045 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11046 $as_echo_n "(cached) " >&6
11048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h. */
11051 #define $ac_tr_decl 1
11053 #include "ansidecl.h"
11054 #include "system.h"
11055 #ifdef HAVE_SYS_TIMES_H
11056 #include <sys/times.h>
11064 char *(*pfn) = (char *(*)) $ac_func ;
11070 if ac_fn_cxx_try_compile
"$LINENO"; then :
11071 eval "gcc_cv_have_decl_$ac_func=yes"
11073 eval "gcc_cv_have_decl_$ac_func=no"
11075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11078 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11080 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11081 #define $ac_tr_decl 1
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11087 #define $ac_tr_decl 0
11095 for ac_func
in sigaltstack
11097 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11099 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11100 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11101 $as_echo_n "(cached) " >&6
11103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11104 /* end confdefs.h. */
11106 #define $ac_tr_decl 1
11108 #include "ansidecl.h"
11109 #include "system.h"
11110 #include <signal.h>
11117 char *(*pfn) = (char *(*)) $ac_func ;
11123 if ac_fn_cxx_try_compile
"$LINENO"; then :
11124 eval "gcc_cv_have_decl_$ac_func=yes"
11126 eval "gcc_cv_have_decl_$ac_func=no"
11128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11131 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11133 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11134 #define $ac_tr_decl 1
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11140 #define $ac_tr_decl 0
11148 # More time-related stuff.
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11150 $as_echo_n "checking for struct tms... " >&6; }
11151 if test "${ac_cv_struct_tms+set}" = set; then :
11152 $as_echo_n "(cached) " >&6
11155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h. */
11158 #include "ansidecl.h"
11159 #include "system.h"
11160 #ifdef HAVE_SYS_TIMES_H
11161 #include <sys/times.h>
11172 if ac_fn_cxx_try_compile
"$LINENO"; then :
11173 ac_cv_struct_tms
=yes
11175 ac_cv_struct_tms
=no
11177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11180 $as_echo "$ac_cv_struct_tms" >&6; }
11181 if test $ac_cv_struct_tms = yes; then
11183 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11187 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11188 # revisit after autoconf 2.50.
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11190 $as_echo_n "checking for clock_t... " >&6; }
11191 if test "${gcc_cv_type_clock_t+set}" = set; then :
11192 $as_echo_n "(cached) " >&6
11195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11196 /* end confdefs.h. */
11198 #include "ansidecl.h"
11199 #include "system.h"
11209 if ac_fn_cxx_try_compile
"$LINENO"; then :
11210 gcc_cv_type_clock_t
=yes
11212 gcc_cv_type_clock_t
=no
11214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11217 $as_echo "$gcc_cv_type_clock_t" >&6; }
11218 if test $gcc_cv_type_clock_t = yes; then
11220 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11224 # Check if F_SETLKW is supported by fcntl.
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11226 $as_echo_n "checking for F_SETLKW... " >&6; }
11227 if test "${ac_cv_f_setlkw+set}" = set; then :
11228 $as_echo_n "(cached) " >&6
11231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11232 /* end confdefs.h. */
11244 return fcntl (1, F_SETLKW, &fl);
11249 if ac_fn_cxx_try_compile
"$LINENO"; then :
11254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11257 $as_echo "$ac_cv_f_setlkw" >&6; }
11258 if test $ac_cv_f_setlkw = yes; then
11260 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11264 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11265 CFLAGS
="$saved_CFLAGS"
11266 CXXFLAGS
="$saved_CXXFLAGS"
11268 # mkdir takes a single argument on some systems.
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11270 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11271 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11272 $as_echo_n "(cached) " >&6
11274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11275 /* end confdefs.h. */
11277 #include <sys/types.h>
11278 #ifdef HAVE_SYS_STAT_H
11279 # include <sys/stat.h>
11281 #ifdef HAVE_UNISTD_H
11282 # include <unistd.h>
11284 #ifdef HAVE_DIRECT_H
11285 # include <direct.h>
11295 if ac_fn_cxx_try_compile
"$LINENO"; then :
11296 gcc_cv_mkdir_takes_one_arg
=no
11298 gcc_cv_mkdir_takes_one_arg
=yes
11300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11303 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11304 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11306 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11317 # With Setjmp/Longjmp based exception handling.
11318 # Check whether --enable-sjlj-exceptions was given.
11319 if test "${enable_sjlj_exceptions+set}" = set; then :
11320 enableval
=$enable_sjlj_exceptions; case $target in
11322 if test $enableval != yes; then
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11324 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11329 force_sjlj_exceptions
=yes
11333 force_sjlj_exceptions
=yes
11337 force_sjlj_exceptions
=yes
11341 force_sjlj_exceptions
=no
11346 if test $force_sjlj_exceptions = yes; then
11347 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11349 cat >>confdefs.h
<<_ACEOF
11350 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11355 # --------------------------------------------------------
11356 # Build, host, and target specific configuration fragments
11357 # --------------------------------------------------------
11359 # Collect build-machine-specific information.
11360 .
${srcdir}/config.build
11362 # Collect host-machine-specific information.
11363 .
${srcdir}/config.
host
11367 # Collect target-machine-specific information.
11368 .
${srcdir}/config.gcc
11370 extra_objs
="${host_extra_objs} ${extra_objs}"
11371 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11373 # Default the target-machine variables that were not explicitly set.
11374 if test x
"$tm_file" = x
11375 then tm_file
=$cpu_type/$cpu_type.h
; fi
11377 if test x
"$extra_headers" = x
11378 then extra_headers
=; fi
11380 if test x
$md_file = x
11381 then md_file
=$cpu_type/$cpu_type.md
; fi
11383 if test x
$out_file = x
11384 then out_file
=$cpu_type/$cpu_type.c
; fi
11386 if test x
"$tmake_file" = x
11387 then tmake_file
=$cpu_type/t-
$cpu_type
11390 # Support --enable-initfini-array.
11391 if test x
$enable_initfini_array != xno
; then
11392 tm_file
="${tm_file} initfini-array.h"
11395 if test x
"$dwarf2" = xyes
11396 then tm_file
="$tm_file tm-dwarf2.h"
11399 # Say what files are being used for the output code and MD file.
11400 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11401 echo "Using \`$srcdir/config/$md_file' as machine description file."
11403 # If any of the xm_file variables contain nonexistent files, warn
11404 # about them and drop them.
11407 for x
in $build_xm_file; do
11408 if test -f $srcdir/config
/$x
11410 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11411 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11414 build_xm_file
="$bx"
11417 for x
in $host_xm_file; do
11418 if test -f $srcdir/config
/$x
11420 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11421 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11427 for x
in $xm_file; do
11428 if test -f $srcdir/config
/$x
11430 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11431 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11437 for f
in $tm_file; do
11440 if test $count = ax
; then
11441 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11443 echo "Using the following target machine macro files:"
11444 for f
in $tm_file; do
11445 echo " $srcdir/config/$f"
11449 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11451 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11455 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11457 cat >>confdefs.h
<<_ACEOF
11458 #define HAVE_GNU_LD $gnu_ld_bool
11462 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11464 cat >>confdefs.h
<<_ACEOF
11465 #define HAVE_GNU_AS $gnu_as_bool
11470 for f
in $host_xm_file; do
11473 if test $count = a
; then
11475 elif test $count = ax
; then
11476 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11478 echo "Using the following host machine macro files:"
11479 for f
in $host_xm_file; do
11480 echo " $srcdir/config/$f"
11483 echo "Using ${out_host_hook_obj} for host machine hooks."
11485 if test "$host_xm_file" != "$build_xm_file"; then
11487 for f
in $build_xm_file; do
11490 if test $count = a
; then
11492 elif test $count = ax
; then
11493 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11495 echo "Using the following build machine macro files:"
11496 for f
in $build_xm_file; do
11497 echo " $srcdir/config/$f"
11502 if test -n "$configured_native_system_header_dir"; then
11503 native_system_header_dir
=$configured_native_system_header_dir
11505 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11509 powerpc
*-*-darwin*)
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11511 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11512 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11513 $as_echo_n "(cached) " >&6
11515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11516 /* end confdefs.h. */
11518 #include <sys/cdefs.h>
11519 #include <sys/signal.h>
11520 #include <ucontext.h>
11521 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11524 if ac_fn_cxx_try_compile
"$LINENO"; then :
11525 gcc_cv_mcontext_underscores
=no
11527 gcc_cv_mcontext_underscores
=yes
11529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11532 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11533 if test $gcc_cv_mcontext_underscores = yes; then
11535 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11545 # Check if a valid thread package
11546 case ${enable_threads} in
11549 target_thread_file
='single'
11553 target_thread_file
='single'
11555 aix | dce | lynx | mipssde | posix | rtems | \
11556 single | tpf | vxworks | win32
)
11557 target_thread_file
=${enable_threads}
11560 echo "${enable_threads} is an unknown thread package" 1>&2
11565 if test x
${thread_file} = x
; then
11566 # No thread file set by target-specific clauses in config.gcc,
11567 # so use file chosen by default logic above
11568 thread_file
=${target_thread_file}
11576 if test x
$enable___cxa_atexit = xyes || \
11577 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11578 if test x
$host = x
$target; then
11580 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11581 # keyed to flag_use_cxa_atexit
11589 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11590 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11593 echo "__cxa_atexit can't be enabled on this target"
11599 # We can't check for __cxa_atexit when building a cross, so assume
11603 if test x
$use_cxa_atexit = xyes
; then
11605 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11610 # Look for a file containing extra machine modes.
11611 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11612 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11615 cat >>confdefs.h
<<_ACEOF
11616 #define EXTRA_MODES_FILE "config/$extra_modes"
11621 # Convert extra_options into a form suitable for Makefile use.
11624 for f
in $extra_options; do
11625 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11626 all_opt_files
="$all_opt_files $srcdir/config/$f"
11630 # auto-host.h is the file containing items generated by autoconf and is
11631 # the first file included by config.h.
11632 # If host=build, it is correct to have bconfig include auto-host.h
11633 # as well. If host!=build, we are in error and need to do more
11634 # work to find out the build config parameters.
11635 if test x
$host = x
$build
11637 build_auto
=auto-host.h
11639 # We create a subdir, then run autoconf in the subdir.
11640 # To prevent recursion we set host and build for the new
11641 # invocation of configure to the build for this invocation
11648 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11649 *) realsrcdir
=..
/${srcdir};;
11651 # Clearing GMPINC is necessary to prevent host headers being
11652 # used by the build compiler. Defining GENERATOR_FILE stops
11653 # system.h from including gmp.h.
11654 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11655 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11656 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11657 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11658 ${realsrcdir}/configure \
11659 --enable-languages=${enable_languages-all} \
11660 --target=$target_alias --host=$build_alias --build=$build_alias
11662 # We just finished tests for the build machine, so rename
11663 # the file auto-build.h in the gcc directory.
11664 mv auto-host.h ..
/auto-build.h
11667 build_auto
=auto-build.h
11671 tm_file
="${tm_file} defaults.h"
11672 tm_p_file
="${tm_p_file} tm-preds.h"
11673 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11674 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11675 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11676 # put this back in temporarily.
11677 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11683 # Compile in configure arguments.
11684 if test -f configargs.h
; then
11685 # Being re-configured.
11686 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11687 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11689 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11692 # Double all backslashes and backslash all quotes to turn
11693 # gcc_config_arguments into a C string.
11694 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11695 $gcc_config_arguments
11697 gcc_config_arguments_str
=`cat conftest.out`
11700 cat > configargs.h
<<EOF
11701 /* Generated automatically. */
11702 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11703 static const char thread_model[] = "$thread_file";
11705 static const struct {
11706 const char *name, *value;
11707 } configure_default_options[] = $configure_default_options;
11710 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11711 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11712 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11713 if test -f $srcdir/REVISION
; then
11714 gcc_REVISION
=`cat $srcdir/REVISION`
11718 cat > plugin-version.h
<<EOF
11719 #include "configargs.h"
11721 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11722 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11723 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11724 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11726 static char basever[] = "$gcc_BASEVER";
11727 static char datestamp[] = "$gcc_DATESTAMP";
11728 static char devphase[] = "$gcc_DEVPHASE";
11729 static char revision[] = "$gcc_REVISION";
11731 /* FIXME plugins: We should make the version information more precise.
11732 One way to do is to add a checksum. */
11734 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11735 devphase, revision,
11736 configuration_arguments};
11739 # Internationalization
11740 # If we haven't got the data from the intl directory,
11741 # assume NLS is disabled.
11750 if test -f ..
/intl
/config.intl
; then
11751 . ..
/intl
/config.intl
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11754 $as_echo_n "checking whether NLS is requested... " >&6; }
11755 if test x
"$USE_NLS" != xyes
; then
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757 $as_echo "no" >&6; }
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11760 $as_echo "yes" >&6; }
11762 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11766 $as_echo_n "checking for catalogs to be installed... " >&6; }
11767 # Look for .po and .gmo files in the source directory.
11770 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11771 # If there aren't any .gmo files the shell will give us the
11772 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11774 case "$cat" in *\
**)
11777 # The quadruple backslash is collapsed to a double backslash
11778 # by the backticks, then collapsed again by the double quotes,
11779 # leaving us with one backslash in the sed expression (right
11780 # before the dot that mustn't act as a wildcard).
11781 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11782 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11783 # The user is allowed to set LINGUAS to a list of languages to
11784 # install catalogs for. If it's empty that means "all of them."
11785 if test "x$LINGUAS" = x
; then
11786 CATALOGS
="$CATALOGS $cat"
11787 XLINGUAS
="$XLINGUAS $lang"
11789 case "$LINGUAS" in *$lang*)
11790 CATALOGS
="$CATALOGS $cat"
11791 XLINGUAS
="$XLINGUAS $lang"
11796 LINGUAS
="$XLINGUAS"
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11798 $as_echo "$LINGUAS" >&6; }
11811 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11812 # -liconv on the link line twice.
11813 case "$LIBINTL" in *$LIBICONV*)
11817 # Check whether --enable-secureplt was given.
11818 if test "${enable_secureplt+set}" = set; then :
11819 enableval
=$enable_secureplt;
11823 # Check whether --enable-leading-mingw64-underscores was given.
11824 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11825 enableval
=$enable_leading_mingw64_underscores;
11828 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11830 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11834 # Check whether --enable-cld was given.
11835 if test "${enable_cld+set}" = set; then :
11836 enableval
=$enable_cld;
11842 # Check whether --enable-frame-pointer was given.
11843 if test "${enable_frame_pointer+set}" = set; then :
11844 enableval
=$enable_frame_pointer;
11848 linux
* | darwin
[8912]*)
11849 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11851 enable_frame_pointer
=no
11854 enable_frame_pointer
=yes
11861 # Windows32 Registry support for specifying GCC installation paths.
11862 # Check whether --enable-win32-registry was given.
11863 if test "${enable_win32_registry+set}" = set; then :
11864 enableval
=$enable_win32_registry;
11869 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11870 if test "x$enable_win32_registry" != xno
; then
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11872 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11873 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11874 $as_echo_n "(cached) " >&6
11876 ac_func_search_save_LIBS
=$LIBS
11877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11878 /* end confdefs.h. */
11880 /* Override any GCC internal prototype to avoid an error.
11881 Use char because int might match the return type of a GCC
11882 builtin and then its argument prototype would still apply. */
11886 char RegOpenKeyExA ();
11890 return RegOpenKeyExA ();
11895 for ac_lib
in '' advapi32
; do
11896 if test -z "$ac_lib"; then
11897 ac_res
="none required"
11900 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11902 if ac_fn_cxx_try_link
"$LINENO"; then :
11903 ac_cv_search_RegOpenKeyExA
=$ac_res
11905 rm -f core conftest.err conftest.
$ac_objext \
11907 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11911 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11914 ac_cv_search_RegOpenKeyExA
=no
11916 rm conftest.
$ac_ext
11917 LIBS
=$ac_func_search_save_LIBS
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11920 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11921 ac_res
=$ac_cv_search_RegOpenKeyExA
11922 if test "$ac_res" != no
; then :
11923 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11926 enable_win32_registry
=no
11931 if test "x$enable_win32_registry" != xno
; then
11933 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11936 if test "x$enable_win32_registry" != xyes \
11937 && test "x$enable_win32_registry" != x
; then
11939 cat >>confdefs.h
<<_ACEOF
11940 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11948 # Get an absolute path to the GCC top-level source directory
11949 holddir
=`${PWDCMD-pwd}`
11951 topdir
=`${PWDCMD-pwd}`
11954 # Conditionalize the makefile for this host machine.
11956 for f
in ${host_xmake_file}
11958 if test -f ${srcdir}/config
/$f
11960 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11964 # Conditionalize the makefile for this target machine.
11966 for f
in ${tmake_file}
11968 if test -f ${srcdir}/config
/$f
11970 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11973 tmake_file
="${tmake_file_}"
11975 out_object_file
=`basename $out_file .c`.o
11976 common_out_object_file
=`basename $common_out_file .c`.o
11978 tm_file_list
="options.h"
11979 tm_include_list
="options.h insn-constants.h"
11980 for f
in $tm_file; do
11983 f
=`echo $f | sed 's/^..//'`
11984 tm_file_list
="${tm_file_list} $f"
11985 tm_include_list
="${tm_include_list} $f"
11988 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11989 tm_include_list
="${tm_include_list} $f"
11992 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11993 tm_include_list
="${tm_include_list} config/$f"
12000 for f
in $tm_p_file; do
12003 tm_p_file_list
="${tm_p_file_list} $f"
12004 tm_p_include_list
="${tm_p_include_list} $f"
12007 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12008 tm_p_include_list
="${tm_p_include_list} config/$f"
12014 for f
in $xm_file; do
12017 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12018 xm_include_list
="${xm_include_list} $f"
12021 xm_file_list
="${xm_file_list} $f"
12022 xm_include_list
="${xm_include_list} $f"
12025 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12026 xm_include_list
="${xm_include_list} config/$f"
12032 host_xm_include_list
=
12033 for f
in $host_xm_file; do
12036 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12037 host_xm_include_list
="${host_xm_include_list} $f"
12040 host_xm_file_list
="${host_xm_file_list} $f"
12041 host_xm_include_list
="${host_xm_include_list} $f"
12044 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12045 host_xm_include_list
="${host_xm_include_list} config/$f"
12050 build_xm_file_list
=
12051 for f
in $build_xm_file; do
12054 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12055 build_xm_include_list
="${build_xm_include_list} $f"
12057 auto-build.h | auto-host.h
)
12058 build_xm_file_list
="${build_xm_file_list} $f"
12059 build_xm_include_list
="${build_xm_include_list} $f"
12062 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12063 build_xm_include_list
="${build_xm_include_list} config/$f"
12068 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12069 # cross-compiler which does not use the native headers and libraries.
12070 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12073 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12075 if test "x$with_build_sysroot" != x
; then
12076 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12078 # This value is used, even on a native system, because
12079 # CROSS_SYSTEM_HEADER_DIR is just
12080 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12081 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
12084 if test x
$host != x
$target
12086 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12088 SYSTEM_HEADER_DIR
=$build_system_header_dir
12089 case "$host","$target" in
12090 # Darwin crosses can use the host system's libraries and headers,
12091 # because of the fat library support. Of course, it must be the
12092 # same version of Darwin on both sides. Allow the user to
12093 # just say --target=foo-darwin without a version number to mean
12094 # "the version on this system".
12095 *-*-darwin*,*-*-darwin*)
12096 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12097 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12098 if test $hostos = $targetos -o $targetos = darwin
; then
12100 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12105 i?
86-*-*,x86_64-
*-* \
12106 | powerpc
*-*-*,powerpc64
*-*-*)
12107 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12112 if test "x$with_headers" = x
; then
12119 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12120 SYSTEM_HEADER_DIR
=$build_system_header_dir
12123 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
12124 if test "x$with_headers" != x
; then
12125 target_header_dir
=$with_headers
12126 elif test "x$with_sysroot" = x
; then
12127 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12128 elif test "x$with_build_sysroot" != "x"; then
12129 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12130 elif test "x$with_sysroot" = xyes
; then
12131 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12133 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12136 target_header_dir
=${native_system_header_dir}
12139 # If this is a cross-compiler that does not
12140 # have its own set of headers then define
12143 # If this is using newlib, without having the headers available now,
12144 # then define inhibit_libc in LIBGCC2_CFLAGS.
12145 # This prevents libgcc2 from containing any code which requires libc
12147 : ${inhibit_libc=false}
12148 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12149 test x
$with_newlib = xyes
; } &&
12150 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12155 # When building gcc with a cross-compiler, we need to adjust things so
12156 # that the generator programs are still built with the native compiler.
12157 # Also, we cannot run fixincludes.
12159 # These are the normal (build=host) settings:
12160 CC_FOR_BUILD
='$(CC)'
12161 CXX_FOR_BUILD
='$(CXX)'
12162 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12163 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12164 BUILD_LDFLAGS
='$(LDFLAGS)'
12165 STMP_FIXINC
=stmp-fixinc
12167 # And these apply if build != host, or we are generating coverage data
12168 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12170 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12171 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12172 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12175 # Expand extra_headers to include complete path.
12176 # This substitutes for lots of t-* files.
12177 extra_headers_list
=
12178 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12179 for file in ${extra_headers} ; do
12180 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12183 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12184 if test x
"$use_gcc_tgmath" = xyes
12185 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12188 # Define collect2 in Makefile.
12189 case $host_can_use_collect2 in
12191 *) collect2
='collect2$(exeext)' ;;
12195 # Add a definition of USE_COLLECT2 if system wants one.
12196 case $use_collect2 in
12197 no
) use_collect2
= ;;
12200 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12201 xm_defines
="${xm_defines} USE_COLLECT2"
12202 case $host_can_use_collect2 in
12204 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12211 cat >>confdefs.h
<<_ACEOF
12212 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12216 # ---------------------------
12217 # Assembler & linker features
12218 # ---------------------------
12220 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12221 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12222 # However when ld-new is first executed from the build tree, libtool will
12223 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12224 # to the build tree. While doing this we need to use the previous-stage
12225 # linker, or we have an infinite loop. The presence of a shell script as
12226 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12227 # the gcc/collect-ld script. So we need to know how libtool works, or
12228 # exec-tool will fail.
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12234 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12239 macro_version
='2.2.7a'
12240 macro_revision
='1.3134'
12254 ltmain
="$ac_aux_dir/ltmain.sh"
12256 # Backslashify metacharacters that are still active within
12257 # double-quoted strings.
12258 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12260 # Same as above, but do not quote variable references.
12261 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12263 # Sed substitution to delay expansion of an escaped shell variable in a
12264 # double_quote_subst'ed string.
12265 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12267 # Sed substitution to delay expansion of an escaped single quote.
12268 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12270 # Sed substitution to avoid accidental globbing in evaled expressions
12271 no_glob_subst
='s/\*/\\\*/g'
12273 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12274 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12275 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12278 $as_echo_n "checking how to print strings... " >&6; }
12279 # Test print first, because it will be a builtin if present.
12280 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12281 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12283 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12286 # Use this function as a fallback that always works.
12287 func_fallback_echo ()
12289 eval 'cat <<_LTECHO_EOF
12293 ECHO='func_fallback_echo
'
12296 # func_echo_all arg...
12297 # Invoke $ECHO with all args, space-separated.
12304 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12305 $as_echo "printf" >&6; } ;;
12306 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12307 $as_echo "print -r" >&6; } ;;
12308 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12309 $as_echo "cat" >&6; } ;;
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12326 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12327 if test "${ac_cv_path_SED+set}" = set; then :
12328 $as_echo_n "(cached) " >&6
12330 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12331 for ac_i in 1 2 3 4 5 6 7; do
12332 ac_script="$ac_script$as_nl$ac_script"
12334 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12335 { ac_script=; unset ac_script;}
12336 if test -z "$SED"; then
12337 ac_path_SED_found=false
12338 # Loop through the user's path and
test for each of PROGNAME-LIST
12339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12340 for as_dir
in $PATH
12343 test -z "$as_dir" && as_dir
=.
12344 for ac_prog
in sed gsed
; do
12345 for ac_exec_ext
in '' $ac_executable_extensions; do
12346 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12347 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12348 # Check for GNU ac_path_SED and select it if it is found.
12349 # Check for GNU $ac_path_SED
12350 case `"$ac_path_SED" --version 2>&1` in
12352 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12355 $as_echo_n 0123456789 >"conftest.in"
12358 cat "conftest.in" "conftest.in" >"conftest.tmp"
12359 mv "conftest.tmp" "conftest.in"
12360 cp "conftest.in" "conftest.nl"
12361 $as_echo '' >> "conftest.nl"
12362 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12363 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12364 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12365 if test $ac_count -gt ${ac_path_SED_max-0}; then
12366 # Best one so far, save it but keep looking for a better one
12367 ac_cv_path_SED
="$ac_path_SED"
12368 ac_path_SED_max
=$ac_count
12370 # 10*(2^10) chars as input seems more than enough
12371 test $ac_count -gt 10 && break
12373 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12376 $ac_path_SED_found && break 3
12381 if test -z "$ac_cv_path_SED"; then
12382 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12385 ac_cv_path_SED
=$SED
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12390 $as_echo "$ac_cv_path_SED" >&6; }
12391 SED
="$ac_cv_path_SED"
12394 test -z "$SED" && SED
=sed
12395 Xsed
="$SED -e 1s/^X//"
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12408 $as_echo_n "checking for fgrep... " >&6; }
12409 if test "${ac_cv_path_FGREP+set}" = set; then :
12410 $as_echo_n "(cached) " >&6
12412 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12413 then ac_cv_path_FGREP
="$GREP -F"
12415 if test -z "$FGREP"; then
12416 ac_path_FGREP_found
=false
12417 # Loop through the user's path and test for each of PROGNAME-LIST
12418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12419 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12422 test -z "$as_dir" && as_dir
=.
12423 for ac_prog
in fgrep
; do
12424 for ac_exec_ext
in '' $ac_executable_extensions; do
12425 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12426 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12427 # Check for GNU ac_path_FGREP and select it if it is found.
12428 # Check for GNU $ac_path_FGREP
12429 case `"$ac_path_FGREP" --version 2>&1` in
12431 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12434 $as_echo_n 0123456789 >"conftest.in"
12437 cat "conftest.in" "conftest.in" >"conftest.tmp"
12438 mv "conftest.tmp" "conftest.in"
12439 cp "conftest.in" "conftest.nl"
12440 $as_echo 'FGREP' >> "conftest.nl"
12441 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12442 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12443 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12444 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12445 # Best one so far, save it but keep looking for a better one
12446 ac_cv_path_FGREP
="$ac_path_FGREP"
12447 ac_path_FGREP_max
=$ac_count
12449 # 10*(2^10) chars as input seems more than enough
12450 test $ac_count -gt 10 && break
12452 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12455 $ac_path_FGREP_found && break 3
12460 if test -z "$ac_cv_path_FGREP"; then
12461 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12464 ac_cv_path_FGREP
=$FGREP
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12470 $as_echo "$ac_cv_path_FGREP" >&6; }
12471 FGREP
="$ac_cv_path_FGREP"
12474 test -z "$GREP" && GREP
=grep
12494 # Check whether --with-gnu-ld was given.
12495 if test "${with_gnu_ld+set}" = set; then :
12496 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12502 if test "$GCC" = yes; then
12503 # Check if gcc -print-prog-name=ld gives a path.
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12505 $as_echo_n "checking for ld used by $CC... " >&6; }
12508 # gcc leaves a trailing carriage return which upsets mingw
12509 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12511 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12514 # Accept absolute paths.
12516 re_direlt
='/[^/][^/]*/\.\./'
12517 # Canonicalize the pathname of ld
12518 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12519 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12520 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12522 test -z "$LD" && LD
="$ac_prog"
12525 # If it fails, then pretend we aren't using GCC.
12529 # If it is relative, then search for the first ld in PATH.
12530 with_gnu_ld
=unknown
12533 elif test "$with_gnu_ld" = yes; then
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12535 $as_echo_n "checking for GNU ld... " >&6; }
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12538 $as_echo_n "checking for non-GNU ld... " >&6; }
12540 if test "${lt_cv_path_LD+set}" = set; then :
12541 $as_echo_n "(cached) " >&6
12543 if test -z "$LD"; then
12544 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12545 for ac_dir
in $PATH; do
12547 test -z "$ac_dir" && ac_dir
=.
12548 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12549 lt_cv_path_LD
="$ac_dir/$ac_prog"
12550 # Check to see if the program is GNU ld. I'd rather use --version,
12551 # but apparently some variants of GNU ld only accept -v.
12552 # Break only if it was the GNU/non-GNU ld that we prefer.
12553 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12554 *GNU
* |
*'with BFD'*)
12555 test "$with_gnu_ld" != no
&& break
12558 test "$with_gnu_ld" != yes && break
12565 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12569 LD
="$lt_cv_path_LD"
12570 if test -n "$LD"; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12572 $as_echo "$LD" >&6; }
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 $as_echo "no" >&6; }
12577 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12579 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12580 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12581 $as_echo_n "(cached) " >&6
12583 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12584 case `$LD -v 2>&1 </dev/null` in
12585 *GNU
* |
*'with BFD'*)
12586 lt_cv_prog_gnu_ld
=yes
12589 lt_cv_prog_gnu_ld
=no
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12594 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12595 with_gnu_ld
=$lt_cv_prog_gnu_ld
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12606 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12607 if test "${lt_cv_path_NM+set}" = set; then :
12608 $as_echo_n "(cached) " >&6
12610 if test -n "$NM"; then
12611 # Let the user override the test.
12612 lt_cv_path_NM
="$NM"
12614 lt_nm_to_check
="${ac_tool_prefix}nm"
12615 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12616 lt_nm_to_check
="$lt_nm_to_check nm"
12618 for lt_tmp_nm
in $lt_nm_to_check; do
12619 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12620 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12622 test -z "$ac_dir" && ac_dir
=.
12623 tmp_nm
="$ac_dir/$lt_tmp_nm"
12624 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12625 # Check to see if the nm accepts a BSD-compat flag.
12626 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12627 # nm: unknown option "B" ignored
12628 # Tru64's nm complains that /dev/null is an invalid object file
12629 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12630 */dev
/null
* |
*'Invalid file or object type'*)
12631 lt_cv_path_NM
="$tmp_nm -B"
12635 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12637 lt_cv_path_NM
="$tmp_nm -p"
12641 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12642 continue # so that we can try to find one that supports BSD flags
12651 : ${lt_cv_path_NM=no}
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12655 $as_echo "$lt_cv_path_NM" >&6; }
12656 if test "$lt_cv_path_NM" != "no"; then
12657 NM
="$lt_cv_path_NM"
12659 # Didn't find any BSD compatible name lister, look for dumpbin.
12660 if test -n "$DUMPBIN"; then :
12661 # Let the user override the test.
12663 if test -n "$ac_tool_prefix"; then
12664 for ac_prog
in dumpbin
"link -dump"
12666 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12667 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12669 $as_echo_n "checking for $ac_word... " >&6; }
12670 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12671 $as_echo_n "(cached) " >&6
12673 if test -n "$DUMPBIN"; then
12674 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12677 for as_dir
in $PATH
12680 test -z "$as_dir" && as_dir
=.
12681 for ac_exec_ext
in '' $ac_executable_extensions; do
12682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12683 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12693 DUMPBIN
=$ac_cv_prog_DUMPBIN
12694 if test -n "$DUMPBIN"; then
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12696 $as_echo "$DUMPBIN" >&6; }
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12699 $as_echo "no" >&6; }
12703 test -n "$DUMPBIN" && break
12706 if test -z "$DUMPBIN"; then
12707 ac_ct_DUMPBIN
=$DUMPBIN
12708 for ac_prog
in dumpbin
"link -dump"
12710 # Extract the first word of "$ac_prog", so it can be a program name with args.
12711 set dummy
$ac_prog; ac_word
=$2
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12713 $as_echo_n "checking for $ac_word... " >&6; }
12714 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12715 $as_echo_n "(cached) " >&6
12717 if test -n "$ac_ct_DUMPBIN"; then
12718 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12721 for as_dir
in $PATH
12724 test -z "$as_dir" && as_dir
=.
12725 for ac_exec_ext
in '' $ac_executable_extensions; do
12726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12727 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12737 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12738 if test -n "$ac_ct_DUMPBIN"; then
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12740 $as_echo "$ac_ct_DUMPBIN" >&6; }
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12743 $as_echo "no" >&6; }
12747 test -n "$ac_ct_DUMPBIN" && break
12750 if test "x$ac_ct_DUMPBIN" = x
; then
12753 case $cross_compiling:$ac_tool_warned in
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12757 ac_tool_warned
=yes ;;
12759 DUMPBIN
=$ac_ct_DUMPBIN
12763 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12765 DUMPBIN
="$DUMPBIN -symbols"
12773 if test "$DUMPBIN" != ":"; then
12777 test -z "$NM" && NM
=nm
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12785 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12786 if test "${lt_cv_nm_interface+set}" = set; then :
12787 $as_echo_n "(cached) " >&6
12789 lt_cv_nm_interface
="BSD nm"
12790 echo "int some_variable = 0;" > conftest.
$ac_ext
12791 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12792 (eval "$ac_compile" 2>conftest.err
)
12793 cat conftest.err
>&5
12794 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12795 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12796 cat conftest.err
>&5
12797 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12798 cat conftest.out
>&5
12799 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12800 lt_cv_nm_interface
="MS dumpbin"
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12805 $as_echo "$lt_cv_nm_interface" >&6; }
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12808 $as_echo_n "checking whether ln -s works... " >&6; }
12810 if test "$LN_S" = "ln -s"; then
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12812 $as_echo "yes" >&6; }
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12815 $as_echo "no, using $LN_S" >&6; }
12818 # find the maximum length of command line arguments
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12820 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12821 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12822 $as_echo_n "(cached) " >&6
12829 # On DJGPP, this test can blow up pretty badly due to problems in libc
12830 # (any single argument exceeding 2000 bytes causes a buffer overrun
12831 # during glob expansion). Even if it were fixed, the result of this
12832 # check would be larger than it should be.
12833 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12837 # Under GNU Hurd, this test is not required because there is
12838 # no limit to the length of command line arguments.
12839 # Libtool will interpret -1 as no limit whatsoever
12840 lt_cv_sys_max_cmd_len
=-1;
12843 cygwin
* | mingw
* | cegcc
*)
12844 # On Win9x/ME, this test blows up -- it succeeds, but takes
12845 # about 5 minutes as the teststring grows exponentially.
12846 # Worse, since 9x/ME are not pre-emptively multitasking,
12847 # you end up with a "frozen" computer, even though with patience
12848 # the test eventually succeeds (with a max line length of 256k).
12849 # Instead, let's just punt: use the minimum linelength reported by
12850 # all of the supported platforms: 8192 (on NT/2K/XP).
12851 lt_cv_sys_max_cmd_len
=8192;
12855 # On MiNT this can take a long time and run out of memory.
12856 lt_cv_sys_max_cmd_len
=8192;
12860 # On AmigaOS with pdksh, this test takes hours, literally.
12861 # So we just punt and use a minimum line length of 8192.
12862 lt_cv_sys_max_cmd_len
=8192;
12865 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12866 # This has been around since 386BSD, at least. Likely further.
12867 if test -x /sbin
/sysctl
; then
12868 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12869 elif test -x /usr
/sbin
/sysctl
; then
12870 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12872 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12874 # And add a safety zone
12875 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12876 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12880 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12881 lt_cv_sys_max_cmd_len
=196608
12885 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12886 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12887 # nice to cause kernel panics so lets avoid the loop below.
12888 # First set a reasonable default.
12889 lt_cv_sys_max_cmd_len
=16384
12891 if test -x /sbin
/sysconfig
; then
12892 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12893 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12898 lt_cv_sys_max_cmd_len
=102400
12900 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12901 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12902 if test -n "$kargmax"; then
12903 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12905 lt_cv_sys_max_cmd_len
=32768
12909 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12910 if test -n "$lt_cv_sys_max_cmd_len"; then
12911 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12912 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12914 # Make teststring a little bigger before we do anything with it.
12915 # a 1K string should be a reasonable start.
12916 for i
in 1 2 3 4 5 6 7 8 ; do
12917 teststring
=$teststring$teststring
12919 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12920 # If test is not a shell built-in, we'll probably end up computing a
12921 # maximum length that is only half of the actual maximum length, but
12923 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12924 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12925 test $i != 17 # 1/2 MB should be enough
12928 teststring
=$teststring$teststring
12930 # Only check the string length outside the loop.
12931 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12933 # Add a significant safety factor because C++ compilers can tack on
12934 # massive amounts of additional arguments before passing them to the
12935 # linker. It appears as though 1/2 is a usable value.
12936 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12943 if test -n $lt_cv_sys_max_cmd_len ; then
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12945 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12948 $as_echo "none" >&6; }
12950 max_cmd_len
=$lt_cv_sys_max_cmd_len
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12962 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12963 # Try some XSI features
12965 ( _lt_dummy
="a/b/c"
12966 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12968 && eval 'test $(( 1 + 1 )) -eq 2 \
12969 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12972 $as_echo "$xsi_shell" >&6; }
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12976 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12978 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12980 && lt_shell_append=yes
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12982 $as_echo "$lt_shell_append" >&6; }
12985 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12995 # test EBCDIC or ASCII
12996 case `echo X|tr X '\101'` in
12997 A) # ASCII based system
12998 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12999 lt_SP2NL='tr \040 \012'
13000 lt_NL2SP='tr \015\012 \040\040'
13002 *) # EBCDIC based system
13003 lt_SP2NL='tr \100 \n'
13004 lt_NL2SP='tr \r\n \100\100'
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13017 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13018 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13019 $as_echo_n "(cached
) " >&6
13021 lt_cv_ld_reload_flag='-r'
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13024 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13025 reload_flag=$lt_cv_ld_reload_flag
13026 case $reload_flag in
13028 *) reload_flag=" $reload_flag" ;;
13030 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13033 if test "$GCC" = yes; then
13034 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13036 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13049 if test -n "$ac_tool_prefix"; then
13050 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13051 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13053 $as_echo_n "checking
for $ac_word...
" >&6; }
13054 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13055 $as_echo_n "(cached
) " >&6
13057 if test -n "$OBJDUMP"; then
13058 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13061 for as_dir in $PATH
13064 test -z "$as_dir" && as_dir=.
13065 for ac_exec_ext in '' $ac_executable_extensions; do
13066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13067 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13068 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13077 OBJDUMP=$ac_cv_prog_OBJDUMP
13078 if test -n "$OBJDUMP"; then
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13080 $as_echo "$OBJDUMP" >&6; }
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13083 $as_echo "no
" >&6; }
13088 if test -z "$ac_cv_prog_OBJDUMP"; then
13089 ac_ct_OBJDUMP=$OBJDUMP
13090 # Extract the first word of "objdump
", so it can be a program name with args.
13091 set dummy objdump; ac_word=$2
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13093 $as_echo_n "checking
for $ac_word...
" >&6; }
13094 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13095 $as_echo_n "(cached
) " >&6
13097 if test -n "$ac_ct_OBJDUMP"; then
13098 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13101 for as_dir in $PATH
13104 test -z "$as_dir" && as_dir=.
13105 for ac_exec_ext in '' $ac_executable_extensions; do
13106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13107 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13108 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13117 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13118 if test -n "$ac_ct_OBJDUMP"; then
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13120 $as_echo "$ac_ct_OBJDUMP" >&6; }
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13123 $as_echo "no
" >&6; }
13126 if test "x
$ac_ct_OBJDUMP" = x; then
13129 case $cross_compiling:$ac_tool_warned in
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13132 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13133 ac_tool_warned=yes ;;
13135 OBJDUMP=$ac_ct_OBJDUMP
13138 OBJDUMP="$ac_cv_prog_OBJDUMP"
13141 test -z "$OBJDUMP" && OBJDUMP=objdump
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13152 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13153 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13154 $as_echo_n "(cached
) " >&6
13156 lt_cv_file_magic_cmd='$MAGIC_CMD'
13157 lt_cv_file_magic_test_file=
13158 lt_cv_deplibs_check_method='unknown'
13159 # Need to set the preceding variable on all platforms that support
13160 # interlibrary dependencies.
13161 # 'none' -- dependencies not supported.
13162 # `unknown' -- same as none, but documents that we really don't know.
13163 # 'pass_all' -- all dependencies passed with no checks.
13164 # 'test_compile' -- check by making test program.
13165 # 'file_magic [[regex]]' -- check by looking for files in library path
13166 # which responds to the $file_magic_cmd with a given extended regex.
13167 # If you have `file' or equivalent on your system and you're not sure
13168 # whether `pass_all' will *always* work, you probably want this one.
13172 lt_cv_deplibs_check_method=pass_all
13176 lt_cv_deplibs_check_method=pass_all
13180 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13181 lt_cv_file_magic_cmd='/usr/bin/file -L'
13182 lt_cv_file_magic_test_file=/shlib/libc.so
13186 # func_win32_libid is a shell function defined in ltmain.sh
13187 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13188 lt_cv_file_magic_cmd='func_win32_libid'
13192 # Base MSYS/MinGW do not provide the 'file' command needed by
13193 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13194 # unless we find 'file', for example because we are cross-compiling.
13195 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13196 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13197 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13198 lt_cv_file_magic_cmd='func_win32_libid'
13200 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13201 lt_cv_file_magic_cmd='$OBJDUMP -f'
13206 # use the weaker test based on 'objdump'. See mingw*.
13207 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13208 lt_cv_file_magic_cmd='$OBJDUMP -f'
13211 darwin* | rhapsody*)
13212 lt_cv_deplibs_check_method=pass_all
13215 freebsd* | dragonfly*)
13216 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13219 # Not sure whether the presence of OpenBSD here was a mistake.
13220 # Let's accept both of them until this is cleared up.
13221 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13222 lt_cv_file_magic_cmd=/usr/bin/file
13223 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13227 lt_cv_deplibs_check_method=pass_all
13232 lt_cv_deplibs_check_method=pass_all
13236 lt_cv_deplibs_check_method=pass_all
13239 hpux10.20* | hpux11*)
13240 lt_cv_file_magic_cmd=/usr/bin/file
13243 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13244 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13247 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]'
13248 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13251 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13252 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13258 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13259 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13262 irix5* | irix6* | nonstopux*)
13264 *-32|*"-32 ") libmagic=32-bit;;
13265 *-n32|*"-n32 ") libmagic=N32;;
13266 *-64|*"-64 ") libmagic=64-bit;;
13267 *) libmagic=never-match;;
13269 lt_cv_deplibs_check_method=pass_all
13272 # This must be Linux ELF.
13273 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13274 lt_cv_deplibs_check_method=pass_all
13278 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13286 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13287 lt_cv_file_magic_cmd=/usr/bin/file
13288 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13292 lt_cv_deplibs_check_method=pass_all
13296 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13303 osf3* | osf4* | osf5*)
13304 lt_cv_deplibs_check_method=pass_all
13308 lt_cv_deplibs_check_method=pass_all
13312 lt_cv_deplibs_check_method=pass_all
13315 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13316 lt_cv_deplibs_check_method=pass_all
13320 case $host_vendor in
13322 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]'
13323 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13326 lt_cv_deplibs_check_method=pass_all
13329 lt_cv_file_magic_cmd='/bin/file'
13330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13333 lt_cv_file_magic_cmd='/bin/file'
13334 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13335 lt_cv_file_magic_test_file=/lib/libc.so
13338 lt_cv_deplibs_check_method=pass_all
13341 lt_cv_deplibs_check_method=pass_all
13347 lt_cv_deplibs_check_method=pass_all
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13353 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13354 file_magic_cmd=$lt_cv_file_magic_cmd
13355 deplibs_check_method=$lt_cv_deplibs_check_method
13356 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13369 if test -n "$ac_tool_prefix"; then
13370 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13371 set dummy ${ac_tool_prefix}ar; ac_word=$2
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13373 $as_echo_n "checking
for $ac_word...
" >&6; }
13374 if test "${ac_cv_prog_AR+set}" = set; then :
13375 $as_echo_n "(cached
) " >&6
13377 if test -n "$AR"; then
13378 ac_cv_prog_AR="$AR" # Let the user override the test.
13380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13381 for as_dir in $PATH
13384 test -z "$as_dir" && as_dir=.
13385 for ac_exec_ext in '' $ac_executable_extensions; do
13386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13387 ac_cv_prog_AR="${ac_tool_prefix}ar"
13388 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13398 if test -n "$AR"; then
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13400 $as_echo "$AR" >&6; }
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13403 $as_echo "no
" >&6; }
13408 if test -z "$ac_cv_prog_AR"; then
13410 # Extract the first word of "ar", so it can be a program name with args.
13411 set dummy ar; ac_word=$2
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13413 $as_echo_n "checking
for $ac_word...
" >&6; }
13414 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13415 $as_echo_n "(cached
) " >&6
13417 if test -n "$ac_ct_AR"; then
13418 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13421 for as_dir in $PATH
13424 test -z "$as_dir" && as_dir=.
13425 for ac_exec_ext in '' $ac_executable_extensions; do
13426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13427 ac_cv_prog_ac_ct_AR="ar"
13428 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13437 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13438 if test -n "$ac_ct_AR"; then
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13440 $as_echo "$ac_ct_AR" >&6; }
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13443 $as_echo "no
" >&6; }
13446 if test "x
$ac_ct_AR" = x; then
13449 case $cross_compiling:$ac_tool_warned in
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13452 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13453 ac_tool_warned=yes ;;
13458 AR="$ac_cv_prog_AR"
13461 test -z "$AR" && AR=ar
13462 test -z "$AR_FLAGS" && AR_FLAGS=cru
13474 if test -n "$ac_tool_prefix"; then
13475 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13476 set dummy ${ac_tool_prefix}strip; ac_word=$2
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13478 $as_echo_n "checking
for $ac_word...
" >&6; }
13479 if test "${ac_cv_prog_STRIP+set}" = set; then :
13480 $as_echo_n "(cached
) " >&6
13482 if test -n "$STRIP"; then
13483 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13486 for as_dir in $PATH
13489 test -z "$as_dir" && as_dir=.
13490 for ac_exec_ext in '' $ac_executable_extensions; do
13491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13492 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13493 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13502 STRIP=$ac_cv_prog_STRIP
13503 if test -n "$STRIP"; then
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13505 $as_echo "$STRIP" >&6; }
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13508 $as_echo "no
" >&6; }
13513 if test -z "$ac_cv_prog_STRIP"; then
13515 # Extract the first word of "strip
", so it can be a program name with args.
13516 set dummy strip; ac_word=$2
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13518 $as_echo_n "checking
for $ac_word...
" >&6; }
13519 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13520 $as_echo_n "(cached
) " >&6
13522 if test -n "$ac_ct_STRIP"; then
13523 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526 for as_dir in $PATH
13529 test -z "$as_dir" && as_dir=.
13530 for ac_exec_ext in '' $ac_executable_extensions; do
13531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13532 ac_cv_prog_ac_ct_STRIP="strip
"
13533 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13542 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13543 if test -n "$ac_ct_STRIP"; then
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13545 $as_echo "$ac_ct_STRIP" >&6; }
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13548 $as_echo "no
" >&6; }
13551 if test "x
$ac_ct_STRIP" = x; then
13554 case $cross_compiling:$ac_tool_warned in
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13557 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13558 ac_tool_warned=yes ;;
13563 STRIP="$ac_cv_prog_STRIP"
13566 test -z "$STRIP" && STRIP=:
13573 if test -n "$ac_tool_prefix"; then
13574 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13575 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13577 $as_echo_n "checking
for $ac_word...
" >&6; }
13578 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13579 $as_echo_n "(cached
) " >&6
13581 if test -n "$RANLIB"; then
13582 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13585 for as_dir in $PATH
13588 test -z "$as_dir" && as_dir=.
13589 for ac_exec_ext in '' $ac_executable_extensions; do
13590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13591 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13592 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13601 RANLIB=$ac_cv_prog_RANLIB
13602 if test -n "$RANLIB"; then
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13604 $as_echo "$RANLIB" >&6; }
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13607 $as_echo "no
" >&6; }
13612 if test -z "$ac_cv_prog_RANLIB"; then
13613 ac_ct_RANLIB=$RANLIB
13614 # Extract the first word of "ranlib
", so it can be a program name with args.
13615 set dummy ranlib; ac_word=$2
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13617 $as_echo_n "checking
for $ac_word...
" >&6; }
13618 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13619 $as_echo_n "(cached
) " >&6
13621 if test -n "$ac_ct_RANLIB"; then
13622 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13625 for as_dir in $PATH
13628 test -z "$as_dir" && as_dir=.
13629 for ac_exec_ext in '' $ac_executable_extensions; do
13630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13631 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13632 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13641 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13642 if test -n "$ac_ct_RANLIB"; then
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13644 $as_echo "$ac_ct_RANLIB" >&6; }
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13647 $as_echo "no
" >&6; }
13650 if test "x
$ac_ct_RANLIB" = x; then
13653 case $cross_compiling:$ac_tool_warned in
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13656 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13657 ac_tool_warned=yes ;;
13659 RANLIB=$ac_ct_RANLIB
13662 RANLIB="$ac_cv_prog_RANLIB"
13665 test -z "$RANLIB" && RANLIB=:
13672 # Determine commands to create old-style static archives.
13673 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13674 old_postinstall_cmds='chmod 644 $oldlib'
13675 old_postuninstall_cmds=
13677 if test -n "$RANLIB"; then
13680 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13683 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13686 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13691 lock_old_archive_extraction=yes ;;
13693 lock_old_archive_extraction=no ;;
13734 # If no C compiler was specified, use CC.
13737 # If no C compiler flags were specified, use CFLAGS.
13738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13740 # Allow CC to be a program name with arguments.
13744 # Check for command to grab the raw symbol name followed by C symbol from nm.
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13746 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13747 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13748 $as_echo_n "(cached
) " >&6
13751 # These are sane defaults that work on at least a few old systems.
13752 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13754 # Character class describing NM global symbol codes.
13755 symcode='[BCDEGRST]'
13757 # Regexp to match symbols that can be accessed directly from C.
13758 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13760 # Define system-specific variables.
13765 cygwin* | mingw* | pw32* | cegcc*)
13766 symcode='[ABCDGISTW]'
13769 if test "$host_cpu" = ia64; then
13770 symcode='[ABCDEGRST]'
13773 irix* | nonstopux*)
13774 symcode='[BCDEGRST]'
13777 symcode='[BCDEGQRST]'
13788 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13796 # If we're using GNU nm, then use its standard symbol codes.
13797 case `$NM -V 2>&1` in
13798 *GNU* | *'with BFD'*)
13799 symcode='[ABCDGIRSTW]' ;;
13802 # Transform an extracted symbol line into a proper C declaration.
13803 # Some systems (esp. on ia64) link data and code symbols differently,
13804 # so use this general approach.
13805 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13807 # Transform an extracted symbol line into symbol name and symbol address
13808 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13809 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'"
13811 # Handle CRLF in mingw tool chain
13815 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13819 # Try without a prefix underscore, then with it.
13820 for ac_symprfx in "" "_
"; do
13822 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13823 symxfrm="\\1 $ac_symprfx\\2 \\2"
13825 # Write the raw and C identifiers.
13826 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13827 # Fake it for dumpbin and say T for any non-static function
13828 # and D for any global variable.
13829 # Also find C++ and __fastcall symbols from MSVC++,
13830 # which start with @ or ?.
13831 lt_cv_sys_global_symbol_pipe="$AWK '"\
13832 " {last_section=section; section=\$ 3};"\
13833 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13834 " \$ 0!~/External *\|/{next};"\
13835 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13836 " {if(hide[section]) next};"\
13837 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13838 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13839 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13840 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13841 " ' prfx
=^
$ac_symprfx"
13843 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13846 # Check to see that the pipe works correctly.
13850 cat > conftest.$ac_ext <<_LT_EOF
13855 void nm_test_func(void);
13856 void nm_test_func(void){}
13860 int main(){nm_test_var='a';nm_test_func();return(0);}
13863 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13864 (eval $ac_compile) 2>&5
13866 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13867 test $ac_status = 0; }; then
13868 # Now try to grab the symbols.
13870 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13871 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13873 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13874 test $ac_status = 0; } && test -s "$nlist"; then
13875 # Try sorting and uniquifying the output.
13876 if sort "$nlist" | uniq > "$nlist"T; then
13877 mv -f "$nlist"T "$nlist"
13882 # Make sure that we snagged all the symbols we need.
13883 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13884 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13885 cat <<_LT_EOF > conftest.$ac_ext
13891 # Now generate the symbol file.
13892 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13894 cat <<_LT_EOF >> conftest.$ac_ext
13896 /* The mapping between symbol names and symbols. */
13901 lt__PROGRAM__LTX_preloaded_symbols[] =
13903 { "@PROGRAM@
", (void *) 0 },
13905 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13906 cat <<\_LT_EOF >> conftest.$ac_ext
13910 /* This works around a problem in FreeBSD linker */
13911 #ifdef FREEBSD_WORKAROUND
13912 static const void *lt_preloaded_setup() {
13913 return lt__PROGRAM__LTX_preloaded_symbols;
13921 # Now try linking the two files.
13922 mv conftest.$ac_objext conftstm.$ac_objext
13923 lt_save_LIBS="$LIBS"
13924 lt_save_CFLAGS="$CFLAGS"
13925 LIBS="conftstm.
$ac_objext"
13926 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13927 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13928 (eval $ac_link) 2>&5
13930 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13931 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13934 LIBS="$lt_save_LIBS"
13935 CFLAGS="$lt_save_CFLAGS"
13937 echo "cannot
find nm_test_func
in $nlist" >&5
13940 echo "cannot
find nm_test_var
in $nlist" >&5
13943 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13946 echo "$progname: failed program was
:" >&5
13947 cat conftest.$ac_ext >&5
13949 rm -rf conftest* conftst*
13951 # Do not use the global_symbol_pipe unless it works.
13952 if test "$pipe_works" = yes; then
13955 lt_cv_sys_global_symbol_pipe=
13961 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13962 lt_cv_sys_global_symbol_to_cdecl=
13964 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13966 $as_echo "failed
" >&6; }
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13969 $as_echo "ok
" >&6; }
13993 # Check whether --enable-libtool-lock was given.
13994 if test "${enable_libtool_lock+set}" = set; then :
13995 enableval=$enable_libtool_lock;
13998 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14000 # Some flags need to be propagated to the compiler or linker for good
14004 # Find out which ABI we are using.
14005 echo 'int i;' > conftest.$ac_ext
14006 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14007 (eval $ac_compile) 2>&5
14009 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14010 test $ac_status = 0; }; then
14011 case `/usr/bin/file conftest.$ac_objext` in
14013 HPUX_IA64_MODE="32"
14016 HPUX_IA64_MODE="64"
14023 # Find out which ABI we are using.
14024 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14025 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14026 (eval $ac_compile) 2>&5
14028 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14029 test $ac_status = 0; }; then
14030 if test "$lt_cv_prog_gnu_ld" = yes; then
14031 case `/usr/bin/file conftest.$ac_objext` in
14033 LD="${LD-ld} -melf32bsmip"
14036 LD="${LD-ld} -melf32bmipn32"
14039 LD="${LD-ld} -melf64bmip"
14043 case `/usr/bin/file conftest.$ac_objext` in
14059 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14060 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14061 # Find out which ABI we are using.
14062 echo 'int i;' > conftest.$ac_ext
14063 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14064 (eval $ac_compile) 2>&5
14066 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14067 test $ac_status = 0; }; then
14068 case `/usr/bin/file conftest.o` in
14071 x86_64-*kfreebsd*-gnu)
14072 LD="${LD-ld} -m elf_i386_fbsd
"
14075 case `/usr/bin/file conftest.o` in
14077 LD="${LD-ld} -m elf32_x86_64
"
14080 LD="${LD-ld} -m elf_i386
"
14084 powerpc64le-*linux*)
14085 LD="${LD-ld} -m elf32lppclinux
"
14088 LD="${LD-ld} -m elf32ppclinux
"
14091 LD="${LD-ld} -m elf_s390
"
14094 LD="${LD-ld} -m elf32_sparc
"
14100 x86_64-*kfreebsd*-gnu)
14101 LD="${LD-ld} -m elf_x86_64_fbsd
"
14104 LD="${LD-ld} -m elf_x86_64
"
14107 LD="${LD-ld} -m elf64lppc
"
14110 LD="${LD-ld} -m elf64ppc
"
14112 s390*-*linux*|s390*-*tpf*)
14113 LD="${LD-ld} -m elf64_s390
"
14116 LD="${LD-ld} -m elf64_sparc
"
14126 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14127 SAVE_CFLAGS="$CFLAGS"
14128 CFLAGS="$CFLAGS -belf"
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14130 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14131 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14132 $as_echo_n "(cached
) " >&6
14135 ac_cpp='$CPP $CPPFLAGS'
14136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141 /* end confdefs.h. */
14151 if ac_fn_c_try_link "$LINENO"; then :
14152 lt_cv_cc_needs_belf=yes
14154 lt_cv_cc_needs_belf=no
14156 rm -f core conftest.err conftest.$ac_objext \
14157 conftest$ac_exeext conftest.$ac_ext
14159 ac_cpp='$CPP $CPPFLAGS'
14160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14166 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14167 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14168 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14169 CFLAGS="$SAVE_CFLAGS"
14173 # Find out which ABI we are using.
14174 echo 'int i;' > conftest.$ac_ext
14175 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14176 (eval $ac_compile) 2>&5
14178 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14179 test $ac_status = 0; }; then
14180 case `/usr/bin/file conftest.o` in
14182 case $lt_cv_prog_gnu_ld in
14183 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14185 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14197 need_locks="$enable_libtool_lock"
14201 rhapsody* | darwin*)
14202 if test -n "$ac_tool_prefix"; then
14203 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14204 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14206 $as_echo_n "checking
for $ac_word...
" >&6; }
14207 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14208 $as_echo_n "(cached
) " >&6
14210 if test -n "$DSYMUTIL"; then
14211 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14214 for as_dir in $PATH
14217 test -z "$as_dir" && as_dir=.
14218 for ac_exec_ext in '' $ac_executable_extensions; do
14219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14220 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14221 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14230 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14231 if test -n "$DSYMUTIL"; then
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14233 $as_echo "$DSYMUTIL" >&6; }
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14236 $as_echo "no
" >&6; }
14241 if test -z "$ac_cv_prog_DSYMUTIL"; then
14242 ac_ct_DSYMUTIL=$DSYMUTIL
14243 # Extract the first word of "dsymutil
", so it can be a program name with args.
14244 set dummy dsymutil; ac_word=$2
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14246 $as_echo_n "checking
for $ac_word...
" >&6; }
14247 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14248 $as_echo_n "(cached
) " >&6
14250 if test -n "$ac_ct_DSYMUTIL"; then
14251 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14254 for as_dir in $PATH
14257 test -z "$as_dir" && as_dir=.
14258 for ac_exec_ext in '' $ac_executable_extensions; do
14259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14260 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14261 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14270 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14271 if test -n "$ac_ct_DSYMUTIL"; then
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14273 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14276 $as_echo "no
" >&6; }
14279 if test "x
$ac_ct_DSYMUTIL" = x; then
14282 case $cross_compiling:$ac_tool_warned in
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14285 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14286 ac_tool_warned=yes ;;
14288 DSYMUTIL=$ac_ct_DSYMUTIL
14291 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14294 if test -n "$ac_tool_prefix"; then
14295 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14296 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14298 $as_echo_n "checking
for $ac_word...
" >&6; }
14299 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14300 $as_echo_n "(cached
) " >&6
14302 if test -n "$NMEDIT"; then
14303 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14306 for as_dir in $PATH
14309 test -z "$as_dir" && as_dir=.
14310 for ac_exec_ext in '' $ac_executable_extensions; do
14311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14312 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14313 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14322 NMEDIT=$ac_cv_prog_NMEDIT
14323 if test -n "$NMEDIT"; then
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14325 $as_echo "$NMEDIT" >&6; }
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14328 $as_echo "no
" >&6; }
14333 if test -z "$ac_cv_prog_NMEDIT"; then
14334 ac_ct_NMEDIT=$NMEDIT
14335 # Extract the first word of "nmedit
", so it can be a program name with args.
14336 set dummy nmedit; ac_word=$2
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14338 $as_echo_n "checking
for $ac_word...
" >&6; }
14339 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14340 $as_echo_n "(cached
) " >&6
14342 if test -n "$ac_ct_NMEDIT"; then
14343 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14346 for as_dir in $PATH
14349 test -z "$as_dir" && as_dir=.
14350 for ac_exec_ext in '' $ac_executable_extensions; do
14351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14352 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14353 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14362 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14363 if test -n "$ac_ct_NMEDIT"; then
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14365 $as_echo "$ac_ct_NMEDIT" >&6; }
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14368 $as_echo "no
" >&6; }
14371 if test "x
$ac_ct_NMEDIT" = x; then
14374 case $cross_compiling:$ac_tool_warned in
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14377 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14378 ac_tool_warned=yes ;;
14380 NMEDIT=$ac_ct_NMEDIT
14383 NMEDIT="$ac_cv_prog_NMEDIT"
14386 if test -n "$ac_tool_prefix"; then
14387 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14388 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14390 $as_echo_n "checking
for $ac_word...
" >&6; }
14391 if test "${ac_cv_prog_LIPO+set}" = set; then :
14392 $as_echo_n "(cached
) " >&6
14394 if test -n "$LIPO"; then
14395 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14398 for as_dir in $PATH
14401 test -z "$as_dir" && as_dir=.
14402 for ac_exec_ext in '' $ac_executable_extensions; do
14403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14404 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14405 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14414 LIPO=$ac_cv_prog_LIPO
14415 if test -n "$LIPO"; then
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14417 $as_echo "$LIPO" >&6; }
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14420 $as_echo "no
" >&6; }
14425 if test -z "$ac_cv_prog_LIPO"; then
14427 # Extract the first word of "lipo
", so it can be a program name with args.
14428 set dummy lipo; ac_word=$2
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14430 $as_echo_n "checking
for $ac_word...
" >&6; }
14431 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14432 $as_echo_n "(cached
) " >&6
14434 if test -n "$ac_ct_LIPO"; then
14435 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14438 for as_dir in $PATH
14441 test -z "$as_dir" && as_dir=.
14442 for ac_exec_ext in '' $ac_executable_extensions; do
14443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14444 ac_cv_prog_ac_ct_LIPO="lipo
"
14445 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14454 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14455 if test -n "$ac_ct_LIPO"; then
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14457 $as_echo "$ac_ct_LIPO" >&6; }
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14460 $as_echo "no
" >&6; }
14463 if test "x
$ac_ct_LIPO" = x; then
14466 case $cross_compiling:$ac_tool_warned in
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14469 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14470 ac_tool_warned=yes ;;
14475 LIPO="$ac_cv_prog_LIPO"
14478 if test -n "$ac_tool_prefix"; then
14479 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14480 set dummy ${ac_tool_prefix}otool; ac_word=$2
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14482 $as_echo_n "checking
for $ac_word...
" >&6; }
14483 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14484 $as_echo_n "(cached
) " >&6
14486 if test -n "$OTOOL"; then
14487 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14490 for as_dir in $PATH
14493 test -z "$as_dir" && as_dir=.
14494 for ac_exec_ext in '' $ac_executable_extensions; do
14495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14496 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14497 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14506 OTOOL=$ac_cv_prog_OTOOL
14507 if test -n "$OTOOL"; then
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14509 $as_echo "$OTOOL" >&6; }
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14512 $as_echo "no
" >&6; }
14517 if test -z "$ac_cv_prog_OTOOL"; then
14519 # Extract the first word of "otool
", so it can be a program name with args.
14520 set dummy otool; ac_word=$2
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14522 $as_echo_n "checking
for $ac_word...
" >&6; }
14523 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14524 $as_echo_n "(cached
) " >&6
14526 if test -n "$ac_ct_OTOOL"; then
14527 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14530 for as_dir in $PATH
14533 test -z "$as_dir" && as_dir=.
14534 for ac_exec_ext in '' $ac_executable_extensions; do
14535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14536 ac_cv_prog_ac_ct_OTOOL="otool
"
14537 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14546 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14547 if test -n "$ac_ct_OTOOL"; then
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14549 $as_echo "$ac_ct_OTOOL" >&6; }
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14552 $as_echo "no
" >&6; }
14555 if test "x
$ac_ct_OTOOL" = x; then
14558 case $cross_compiling:$ac_tool_warned in
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14561 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14562 ac_tool_warned=yes ;;
14567 OTOOL="$ac_cv_prog_OTOOL"
14570 if test -n "$ac_tool_prefix"; then
14571 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14572 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14574 $as_echo_n "checking
for $ac_word...
" >&6; }
14575 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14576 $as_echo_n "(cached
) " >&6
14578 if test -n "$OTOOL64"; then
14579 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14582 for as_dir in $PATH
14585 test -z "$as_dir" && as_dir=.
14586 for ac_exec_ext in '' $ac_executable_extensions; do
14587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14588 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14589 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14598 OTOOL64=$ac_cv_prog_OTOOL64
14599 if test -n "$OTOOL64"; then
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14601 $as_echo "$OTOOL64" >&6; }
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14604 $as_echo "no
" >&6; }
14609 if test -z "$ac_cv_prog_OTOOL64"; then
14610 ac_ct_OTOOL64=$OTOOL64
14611 # Extract the first word of "otool64
", so it can be a program name with args.
14612 set dummy otool64; ac_word=$2
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14614 $as_echo_n "checking
for $ac_word...
" >&6; }
14615 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14616 $as_echo_n "(cached
) " >&6
14618 if test -n "$ac_ct_OTOOL64"; then
14619 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14622 for as_dir in $PATH
14625 test -z "$as_dir" && as_dir=.
14626 for ac_exec_ext in '' $ac_executable_extensions; do
14627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14628 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14629 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14638 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14639 if test -n "$ac_ct_OTOOL64"; then
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14641 $as_echo "$ac_ct_OTOOL64" >&6; }
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14644 $as_echo "no
" >&6; }
14647 if test "x
$ac_ct_OTOOL64" = x; then
14650 case $cross_compiling:$ac_tool_warned in
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14653 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14654 ac_tool_warned=yes ;;
14656 OTOOL64=$ac_ct_OTOOL64
14659 OTOOL64="$ac_cv_prog_OTOOL64"
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14689 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14690 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14691 $as_echo_n "(cached
) " >&6
14693 lt_cv_apple_cc_single_mod=no
14694 if test -z "${LT_MULTI_MODULE}"; then
14695 # By default we will add the -single_module flag. You can override
14696 # by either setting the environment variable LT_MULTI_MODULE
14697 # non-empty at configure time, or by adding -multi_module to the
14699 rm -rf libconftest.dylib*
14700 echo "int foo
(void
){return 1;}" > conftest.c
14701 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14702 -dynamiclib -Wl,-single_module conftest.c
" >&5
14703 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14704 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14706 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14707 lt_cv_apple_cc_single_mod=yes
14709 cat conftest.err >&5
14711 rm -rf libconftest.dylib*
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14716 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14718 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14719 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14720 $as_echo_n "(cached
) " >&6
14722 lt_cv_ld_exported_symbols_list=no
14723 save_LDFLAGS=$LDFLAGS
14724 echo "_main
" > conftest.sym
14725 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14727 /* end confdefs.h. */
14737 if ac_fn_c_try_link "$LINENO"; then :
14738 lt_cv_ld_exported_symbols_list=yes
14740 lt_cv_ld_exported_symbols_list=no
14742 rm -f core conftest.err conftest.$ac_objext \
14743 conftest$ac_exeext conftest.$ac_ext
14744 LDFLAGS="$save_LDFLAGS"
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14748 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14750 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14751 if test "${lt_cv_ld_force_load+set}" = set; then :
14752 $as_echo_n "(cached
) " >&6
14754 lt_cv_ld_force_load=no
14755 cat > conftest.c << _LT_EOF
14756 int forced_loaded() { return 2;}
14758 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14759 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14760 echo "$AR cru libconftest.a conftest.o
" >&5
14761 $AR cru libconftest.a conftest.o 2>&5
14762 cat > conftest.c << _LT_EOF
14763 int main() { return 0;}
14765 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14766 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14768 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14769 lt_cv_ld_force_load=yes
14771 cat conftest.err >&5
14773 rm -f conftest.err libconftest.a conftest conftest.c
14774 rm -rf conftest.dSYM
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14778 $as_echo "$lt_cv_ld_force_load" >&6; }
14780 rhapsody* | darwin1.[012])
14781 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14783 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14784 darwin*) # darwin 5.x on
14785 # if running on 10.5 or later, the deployment target defaults
14786 # to the OS version, if on x86, and 10.4, the deployment
14787 # target defaults to 10.4. Don't you love it?
14788 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14789 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14790 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14792 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14794 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14798 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14799 _lt_dar_single_mod='$single_module'
14801 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14802 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14804 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14806 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14807 _lt_dsymutil='~$DSYMUTIL $lib || :'
14815 for ac_header in dlfcn.h
14817 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14818 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14819 cat >>confdefs.h <<_ACEOF
14820 #define HAVE_DLFCN_H 1
14837 enable_win32_dll=no
14840 # Check whether --enable-shared was given.
14841 if test "${enable_shared+set}" = set; then :
14842 enableval=$enable_shared; p=${PACKAGE-default}
14844 yes) enable_shared=yes ;;
14845 no) enable_shared=no ;;
14848 # Look at the argument we got. We use all the common list separators.
14849 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14850 for pkg in $enableval; do
14852 if test "X
$pkg" = "X
$p"; then
14871 # Check whether --enable-static was given.
14872 if test "${enable_static+set}" = set; then :
14873 enableval=$enable_static; p=${PACKAGE-default}
14875 yes) enable_static=yes ;;
14876 no) enable_static=no ;;
14879 # Look at the argument we got. We use all the common list separators.
14880 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14881 for pkg in $enableval; do
14883 if test "X
$pkg" = "X
$p"; then
14903 # Check whether --with-pic was given.
14904 if test "${with_pic+set}" = set; then :
14905 withval=$with_pic; pic_mode="$withval"
14911 test -z "$pic_mode" && pic_mode=default
14919 # Check whether --enable-fast-install was given.
14920 if test "${enable_fast_install+set}" = set; then :
14921 enableval=$enable_fast_install; p=${PACKAGE-default}
14923 yes) enable_fast_install=yes ;;
14924 no) enable_fast_install=no ;;
14926 enable_fast_install=no
14927 # Look at the argument we got. We use all the common list separators.
14928 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14929 for pkg in $enableval; do
14931 if test "X
$pkg" = "X
$p"; then
14932 enable_fast_install=yes
14939 enable_fast_install=yes
14952 # This can be used to rebuild libtool when needed
14953 LIBTOOL_DEPS="$ltmain"
14955 # Always use our own libtool.
14956 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14983 test -z "$LN_S" && LN_S="ln -s"
14998 if test -n "${ZSH_VERSION+set}" ; then
14999 setopt NO_GLOB_SUBST
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15003 $as_echo_n "checking
for objdir...
" >&6; }
15004 if test "${lt_cv_objdir+set}" = set; then :
15005 $as_echo_n "(cached
) " >&6
15007 rm -f .libs 2>/dev/null
15008 mkdir .libs 2>/dev/null
15009 if test -d .libs; then
15012 # MS-DOS does not allow filenames that begin with a dot.
15015 rmdir .libs 2>/dev/null
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15018 $as_echo "$lt_cv_objdir" >&6; }
15019 objdir=$lt_cv_objdir
15025 cat >>confdefs.h <<_ACEOF
15026 #define LT_OBJDIR "$lt_cv_objdir/"
15034 # AIX sometimes has problems with the GCC collect2 program. For some
15035 # reason, if we set the COLLECT_NAMES environment variable, the problems
15036 # vanish in a puff of smoke.
15037 if test "X
${COLLECT_NAMES+set}" != Xset; then
15039 export COLLECT_NAMES
15044 # Global variables:
15046 can_build_shared=yes
15048 # All known linkers require a `.a' archive for static linking (except MSVC,
15049 # which needs '.lib').
15052 with_gnu_ld="$lt_cv_prog_gnu_ld"
15055 old_CFLAGS="$CFLAGS"
15057 # Set sane defaults for various variables
15058 test -z "$CC" && CC=cc
15059 test -z "$LTCC" && LTCC=$CC
15060 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15061 test -z "$LD" && LD=ld
15062 test -z "$ac_objext" && ac_objext=o
15064 for cc_temp in $compiler""; do
15066 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15067 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15072 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15075 # Only perform the check for file, if the check method requires it
15076 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15077 case $deplibs_check_method in
15079 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15081 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15082 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15083 $as_echo_n "(cached
) " >&6
15087 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15090 lt_save_MAGIC_CMD="$MAGIC_CMD"
15091 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15092 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15093 for ac_dir in $ac_dummy; do
15095 test -z "$ac_dir" && ac_dir=.
15096 if test -f $ac_dir/${ac_tool_prefix}file; then
15097 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15098 if test -n "$file_magic_test_file"; then
15099 case $deplibs_check_method in
15101 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15102 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15103 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15104 $EGREP "$file_magic_regex" > /dev/null; then
15109 *** Warning: the command libtool uses to detect shared libraries,
15110 *** $file_magic_cmd, produces output that libtool cannot recognize.
15111 *** The result is that libtool may fail to recognize shared libraries
15112 *** as such. This will affect the creation of libtool libraries that
15113 *** depend on shared libraries, but programs linked with such libtool
15114 *** libraries will work regardless of this problem. Nevertheless, you
15115 *** may want to report the problem to your system manager and/or to
15116 *** bug-libtool@gnu.org
15126 MAGIC_CMD="$lt_save_MAGIC_CMD"
15131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15132 if test -n "$MAGIC_CMD"; then
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15134 $as_echo "$MAGIC_CMD" >&6; }
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15137 $as_echo "no
" >&6; }
15144 if test -z "$lt_cv_path_MAGIC_CMD"; then
15145 if test -n "$ac_tool_prefix"; then
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15147 $as_echo_n "checking
for file...
" >&6; }
15148 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15149 $as_echo_n "(cached
) " >&6
15153 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15156 lt_save_MAGIC_CMD="$MAGIC_CMD"
15157 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15158 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15159 for ac_dir in $ac_dummy; do
15161 test -z "$ac_dir" && ac_dir=.
15162 if test -f $ac_dir/file; then
15163 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15164 if test -n "$file_magic_test_file"; then
15165 case $deplibs_check_method in
15167 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15168 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15169 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15170 $EGREP "$file_magic_regex" > /dev/null; then
15175 *** Warning: the command libtool uses to detect shared libraries,
15176 *** $file_magic_cmd, produces output that libtool cannot recognize.
15177 *** The result is that libtool may fail to recognize shared libraries
15178 *** as such. This will affect the creation of libtool libraries that
15179 *** depend on shared libraries, but programs linked with such libtool
15180 *** libraries will work regardless of this problem. Nevertheless, you
15181 *** may want to report the problem to your system manager and/or to
15182 *** bug-libtool@gnu.org
15192 MAGIC_CMD="$lt_save_MAGIC_CMD"
15197 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15198 if test -n "$MAGIC_CMD"; then
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15200 $as_echo "$MAGIC_CMD" >&6; }
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15203 $as_echo "no
" >&6; }
15216 # Use C for the default configuration in the libtool script
15220 ac_cpp='$CPP $CPPFLAGS'
15221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15226 # Source file extension for C test sources.
15229 # Object file extension for compiled C test sources.
15233 # Code to be used in simple compile tests
15234 lt_simple_compile_test_code="int some_variable
= 0;"
15236 # Code to be used in simple link tests
15237 lt_simple_link_test_code='int main(){return(0);}'
15245 # If no C compiler was specified, use CC.
15248 # If no C compiler flags were specified, use CFLAGS.
15249 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15251 # Allow CC to be a program name with arguments.
15254 # Save the default compiler, since it gets overwritten when the other
15255 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15256 compiler_DEFAULT=$CC
15258 # save warnings/boilerplate of simple test code
15259 ac_outfile=conftest.$ac_objext
15260 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15261 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15262 _lt_compiler_boilerplate=`cat conftest.err`
15265 ac_outfile=conftest.$ac_objext
15266 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15267 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15268 _lt_linker_boilerplate=`cat conftest.err`
15273 ## There is no encapsulation within the following macros, do not change
15274 ## the running order or otherwise move them around unless you know exactly
15275 ## what you are doing...
15276 if test -n "$compiler"; then
15278 lt_prog_compiler_no_builtin_flag=
15280 if test "$GCC" = yes; then
15281 case $cc_basename in
15283 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15285 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15289 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15290 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15291 $as_echo_n "(cached
) " >&6
15293 lt_cv_prog_compiler_rtti_exceptions=no
15294 ac_outfile=conftest.$ac_objext
15295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15296 lt_compiler_flag="-fno-rtti -fno-exceptions"
15297 # Insert the option either (1) after the last *FLAGS variable, or
15298 # (2) before a word containing "conftest.
", or (3) at the end.
15299 # Note that $ac_compile itself does not contain backslashes and begins
15300 # with a dollar sign (not a hyphen), so the echo should work correctly.
15301 # The option is referenced via a variable to avoid confusing sed.
15302 lt_compile=`echo "$ac_compile" | $SED \
15303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15305 -e 's:$: $lt_compiler_flag:'`
15306 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15307 (eval "$lt_compile" 2>conftest.err)
15309 cat conftest.err >&5
15310 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15311 if (exit $ac_status) && test -s "$ac_outfile"; then
15312 # The compiler can only warn and ignore the option if not recognized
15313 # So say no if there are warnings other than the usual output.
15314 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15316 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15317 lt_cv_prog_compiler_rtti_exceptions=yes
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15324 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15326 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15327 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15339 lt_prog_compiler_wl=
15340 lt_prog_compiler_pic=
15341 lt_prog_compiler_static=
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15344 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15346 if test "$GCC" = yes; then
15347 lt_prog_compiler_wl='-Wl,'
15348 lt_prog_compiler_static='-static'
15352 # All AIX code is PIC.
15353 if test "$host_cpu" = ia64; then
15354 # AIX 5 now supports IA64 processor
15355 lt_prog_compiler_static='-Bstatic'
15357 lt_prog_compiler_pic='-fPIC'
15363 # see comment about AmigaOS4 .so support
15364 lt_prog_compiler_pic='-fPIC'
15367 # FIXME: we need at least 68020 code to build shared libraries, but
15368 # adding the `-m68020' flag to GCC prevents building anything better,
15370 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15375 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15376 # PIC is the default for these OSes.
15379 mingw* | cygwin* | pw32* | os2* | cegcc*)
15380 # This hack is so that the source file can tell whether it is being
15381 # built for inclusion in a dll (and should export symbols for example).
15382 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15383 # (--disable-auto-import) libraries
15384 lt_prog_compiler_pic='-DDLL_EXPORT'
15387 darwin* | rhapsody*)
15388 # PIC is the default on this platform
15389 # Common symbols not allowed in MH_DYLIB files
15390 lt_prog_compiler_pic='-fno-common'
15394 # PIC is the default for Haiku.
15395 # The "-static" flag exists, but is broken.
15396 lt_prog_compiler_static=
15400 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15401 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15402 # sets the default TLS model and affects inlining.
15408 lt_prog_compiler_pic='-fPIC'
15414 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15415 # Instead, we relocate shared libraries at runtime.
15419 # Just because we use GCC doesn't mean we suddenly get shared libraries
15420 # on systems that don't support them.
15421 lt_prog_compiler_can_build_shared=no
15426 # QNX uses GNU C++, but need to define -shared option too, otherwise
15427 # it will coredump.
15428 lt_prog_compiler_pic='-fPIC -shared'
15432 if test -d /usr/nec; then
15433 lt_prog_compiler_pic=-Kconform_pic
15438 lt_prog_compiler_pic='-fPIC'
15442 case $cc_basename in
15443 nvcc*) # Cuda Compiler Driver 2.2
15444 lt_prog_compiler_wl='-Xlinker '
15445 lt_prog_compiler_pic='-Xcompiler -fPIC'
15449 # PORTME Check for flag to pass linker flags through the system compiler.
15452 lt_prog_compiler_wl='-Wl,'
15453 if test "$host_cpu" = ia64; then
15454 # AIX 5 now supports IA64 processor
15455 lt_prog_compiler_static='-Bstatic'
15457 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15461 mingw* | cygwin* | pw32* | os2* | cegcc*)
15462 # This hack is so that the source file can tell whether it is being
15463 # built for inclusion in a dll (and should export symbols for example).
15464 lt_prog_compiler_pic='-DDLL_EXPORT'
15467 hpux9* | hpux10* | hpux11*)
15468 lt_prog_compiler_wl='-Wl,'
15469 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15470 # not for PA HP-UX.
15476 lt_prog_compiler_pic='+Z'
15479 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15480 lt_prog_compiler_static='${wl}-a ${wl}archive'
15483 irix5* | irix6* | nonstopux*)
15484 lt_prog_compiler_wl='-Wl,'
15485 # PIC (with -KPIC) is the default.
15486 lt_prog_compiler_static='-non_shared'
15489 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15490 case $cc_basename in
15491 # old Intel for x86_64 which still supported -KPIC.
15493 lt_prog_compiler_wl='-Wl,'
15494 lt_prog_compiler_pic='-KPIC'
15495 lt_prog_compiler_static='-static'
15497 # icc used to be incompatible with GCC.
15498 # ICC 10 doesn't accept -KPIC any more.
15500 lt_prog_compiler_wl='-Wl,'
15501 lt_prog_compiler_pic='-fPIC'
15502 lt_prog_compiler_static='-static'
15504 # Lahey Fortran 8.1.
15506 lt_prog_compiler_wl='-Wl,'
15507 lt_prog_compiler_pic='--shared'
15508 lt_prog_compiler_static='--static'
15510 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15511 # Portland Group compilers (*not* the Pentium gcc compiler,
15512 # which looks to be a dead project)
15513 lt_prog_compiler_wl='-Wl,'
15514 lt_prog_compiler_pic='-fpic'
15515 lt_prog_compiler_static='-Bstatic'
15518 lt_prog_compiler_wl='-Wl,'
15519 # All Alpha code is PIC.
15520 lt_prog_compiler_static='-non_shared'
15522 xl* | bgxl* | bgf* | mpixl*)
15523 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15524 lt_prog_compiler_wl='-Wl,'
15525 lt_prog_compiler_pic='-qpic'
15526 lt_prog_compiler_static='-qstaticlink'
15529 case `$CC -V 2>&1 | sed 5q` in
15530 *Sun\ F* | *Sun*Fortran*)
15531 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15532 lt_prog_compiler_pic='-KPIC'
15533 lt_prog_compiler_static='-Bstatic'
15534 lt_prog_compiler_wl=''
15538 lt_prog_compiler_pic='-KPIC'
15539 lt_prog_compiler_static='-Bstatic'
15540 lt_prog_compiler_wl='-Wl,'
15548 lt_prog_compiler_pic='-KPIC'
15549 lt_prog_compiler_static='-Bstatic'
15553 # QNX uses GNU C++, but need to define -shared option too, otherwise
15554 # it will coredump.
15555 lt_prog_compiler_pic='-fPIC -shared'
15558 osf3* | osf4* | osf5*)
15559 lt_prog_compiler_wl='-Wl,'
15560 # All OSF/1 code is PIC.
15561 lt_prog_compiler_static='-non_shared'
15565 lt_prog_compiler_static='-non_shared'
15569 lt_prog_compiler_pic='-KPIC'
15570 lt_prog_compiler_static='-Bstatic'
15571 case $cc_basename in
15572 f77* | f90* | f95*)
15573 lt_prog_compiler_wl='-Qoption ld ';;
15575 lt_prog_compiler_wl='-Wl,';;
15580 lt_prog_compiler_wl='-Qoption ld '
15581 lt_prog_compiler_pic='-PIC'
15582 lt_prog_compiler_static='-Bstatic'
15585 sysv4 | sysv4.2uw2* | sysv4.3*)
15586 lt_prog_compiler_wl='-Wl,'
15587 lt_prog_compiler_pic='-KPIC'
15588 lt_prog_compiler_static='-Bstatic'
15592 if test -d /usr/nec ;then
15593 lt_prog_compiler_pic='-Kconform_pic'
15594 lt_prog_compiler_static='-Bstatic'
15598 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15599 lt_prog_compiler_wl='-Wl,'
15600 lt_prog_compiler_pic='-KPIC'
15601 lt_prog_compiler_static='-Bstatic'
15605 lt_prog_compiler_wl='-Wl,'
15606 lt_prog_compiler_can_build_shared=no
15610 lt_prog_compiler_pic='-pic'
15611 lt_prog_compiler_static='-Bstatic'
15615 lt_prog_compiler_can_build_shared=no
15621 # For platforms which do not support PIC, -DPIC is meaningless:
15623 lt_prog_compiler_pic=
15626 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15630 $as_echo "$lt_prog_compiler_pic" >&6; }
15638 # Check to make sure the PIC flag actually works.
15640 if test -n "$lt_prog_compiler_pic"; then
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15642 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15643 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15644 $as_echo_n "(cached
) " >&6
15646 lt_cv_prog_compiler_pic_works=no
15647 ac_outfile=conftest.$ac_objext
15648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15649 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15650 # Insert the option either (1) after the last *FLAGS variable, or
15651 # (2) before a word containing "conftest.
", or (3) at the end.
15652 # Note that $ac_compile itself does not contain backslashes and begins
15653 # with a dollar sign (not a hyphen), so the echo should work correctly.
15654 # The option is referenced via a variable to avoid confusing sed.
15655 lt_compile=`echo "$ac_compile" | $SED \
15656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15658 -e 's:$: $lt_compiler_flag:'`
15659 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15660 (eval "$lt_compile" 2>conftest.err)
15662 cat conftest.err >&5
15663 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15664 if (exit $ac_status) && test -s "$ac_outfile"; then
15665 # The compiler can only warn and ignore the option if not recognized
15666 # So say no if there are warnings other than the usual output.
15667 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15669 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15670 lt_cv_prog_compiler_pic_works=yes
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15677 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15679 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15680 case $lt_prog_compiler_pic in
15682 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15685 lt_prog_compiler_pic=
15686 lt_prog_compiler_can_build_shared=no
15697 # Check to make sure the static flag actually works.
15699 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15701 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15702 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15703 $as_echo_n "(cached
) " >&6
15705 lt_cv_prog_compiler_static_works=no
15706 save_LDFLAGS="$LDFLAGS"
15707 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15708 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15709 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15710 # The linker can only warn and ignore the option if not recognized
15711 # So say no if there are warnings
15712 if test -s conftest.err; then
15713 # Append any errors to the config.log.
15714 cat conftest.err 1>&5
15715 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15717 if diff conftest.exp conftest.er2 >/dev/null; then
15718 lt_cv_prog_compiler_static_works=yes
15721 lt_cv_prog_compiler_static_works=yes
15725 LDFLAGS="$save_LDFLAGS"
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15729 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15731 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15734 lt_prog_compiler_static=
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15744 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15745 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15746 $as_echo_n "(cached
) " >&6
15748 lt_cv_prog_compiler_c_o=no
15749 $RM -r conftest 2>/dev/null
15753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15755 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15756 # Insert the option either (1) after the last *FLAGS variable, or
15757 # (2) before a word containing "conftest.
", or (3) at the end.
15758 # Note that $ac_compile itself does not contain backslashes and begins
15759 # with a dollar sign (not a hyphen), so the echo should work correctly.
15760 lt_compile=`echo "$ac_compile" | $SED \
15761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15763 -e 's:$: $lt_compiler_flag:'`
15764 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15765 (eval "$lt_compile" 2>out/conftest.err)
15767 cat out/conftest.err >&5
15768 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15769 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15771 # The compiler can only warn and ignore the option if not recognized
15772 # So say no if there are warnings
15773 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15774 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15775 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15776 lt_cv_prog_compiler_c_o=yes
15781 # SGI C++ compiler will create directory out/ii_files/ for
15782 # template instantiation
15783 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15784 $RM out/* && rmdir out
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15791 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15799 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15800 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15801 $as_echo_n "(cached
) " >&6
15803 lt_cv_prog_compiler_c_o=no
15804 $RM -r conftest 2>/dev/null
15808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15810 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15811 # Insert the option either (1) after the last *FLAGS variable, or
15812 # (2) before a word containing "conftest.
", or (3) at the end.
15813 # Note that $ac_compile itself does not contain backslashes and begins
15814 # with a dollar sign (not a hyphen), so the echo should work correctly.
15815 lt_compile=`echo "$ac_compile" | $SED \
15816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15818 -e 's:$: $lt_compiler_flag:'`
15819 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15820 (eval "$lt_compile" 2>out/conftest.err)
15822 cat out/conftest.err >&5
15823 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15824 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15826 # The compiler can only warn and ignore the option if not recognized
15827 # So say no if there are warnings
15828 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15829 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15830 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15831 lt_cv_prog_compiler_c_o=yes
15836 # SGI C++ compiler will create directory out/ii_files/ for
15837 # template instantiation
15838 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15839 $RM out/* && rmdir out
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15846 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15851 hard_links="nottested
"
15852 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15853 # do not overwrite the value of need_locks provided by the user
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15855 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15858 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15860 ln conftest.a conftest.b 2>&5 || hard_links=no
15861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15863 $as_echo "$hard_links" >&6; }
15864 if test "$hard_links" = no; then
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15866 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15879 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15882 allow_undefined_flag=
15883 always_export_symbols=no
15885 archive_expsym_cmds=
15886 compiler_needs_object=no
15887 enable_shared_with_static_runtimes=no
15888 export_dynamic_flag_spec=
15889 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15890 hardcode_automatic=no
15892 hardcode_direct_absolute=no
15893 hardcode_libdir_flag_spec=
15894 hardcode_libdir_flag_spec_ld=
15895 hardcode_libdir_separator=
15896 hardcode_minus_L=no
15897 hardcode_shlibpath_var=unsupported
15899 link_all_deplibs=unknown
15901 module_expsym_cmds=
15902 old_archive_from_new_cmds=
15903 old_archive_from_expsyms_cmds=
15904 thread_safe_flag_spec=
15905 whole_archive_flag_spec=
15906 # include_expsyms should be a list of space-separated symbols to be *always*
15907 # included in the symbol list
15909 # exclude_expsyms can be an extended regexp of symbols to exclude
15910 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15911 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15912 # as well as any symbol that contains `d'.
15913 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15914 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15915 # platforms (ab)use it in PIC code, but their linkers get confused if
15916 # the symbol is explicitly referenced. Since portable code cannot
15917 # rely on this symbol name, it's probably fine to never include it in
15918 # preloaded symbol tables.
15919 # Exclude shared library initialization/finalization symbols.
15920 extract_expsyms_cmds=
15923 cygwin* | mingw* | pw32* | cegcc*)
15924 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15925 # When not using gcc, we currently assume that we are using
15926 # Microsoft Visual C++.
15927 if test "$GCC" != yes; then
15932 # we just hope/assume this is gcc and not c89 (= MSVC++)
15942 # On some targets, GNU ld is compatible enough with the native linker
15943 # that we're better off using the native interface for both.
15944 lt_use_gnu_ld_interface=no
15945 if test "$with_gnu_ld" = yes; then
15948 # The AIX port of GNU ld has always aspired to compatibility
15949 # with the native linker. However, as the warning in the GNU ld
15950 # block says, versions before 2.19.5* couldn't really create working
15951 # shared libraries, regardless of the interface used.
15952 case `$LD -v 2>&1` in
15953 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15954 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15955 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15957 lt_use_gnu_ld_interface=yes
15962 lt_use_gnu_ld_interface=yes
15967 if test "$lt_use_gnu_ld_interface" = yes; then
15968 # If archive_cmds runs LD, not CC, wlarc should be empty
15971 # Set some defaults for GNU ld with shared library support. These
15972 # are reset later if shared libraries are not supported. Putting them
15973 # here allows them to be overridden if necessary.
15974 runpath_var=LD_RUN_PATH
15975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15976 export_dynamic_flag_spec='${wl}--export-dynamic'
15977 # ancient GNU ld didn't support --whole-archive et. al.
15978 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15979 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15981 whole_archive_flag_spec=
15983 supports_anon_versioning=no
15984 case `$LD -v 2>&1` in
15985 *GNU\ gold*) supports_anon_versioning=yes ;;
15986 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15987 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15988 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15989 *\ 2.11.*) ;; # other 2.11 versions
15990 *) supports_anon_versioning=yes ;;
15993 # See if GNU ld supports shared libraries.
15996 # On AIX/PPC, the GNU linker is very broken
15997 if test "$host_cpu" != ia64; then
16001 *** Warning: the GNU linker, at least up to release 2.19, is reported
16002 *** to be unable to reliably create shared libraries on AIX.
16003 *** Therefore, libtool is disabling shared libraries support. If you
16004 *** really care for shared libraries, you may want to install binutils
16005 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16006 *** You will then need to restart the configuration process.
16015 # see comment about AmigaOS4 .so support
16016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16017 archive_expsym_cmds=''
16020 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)'
16021 hardcode_libdir_flag_spec
='-L$libdir'
16022 hardcode_minus_L
=yes
16028 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16029 allow_undefined_flag
=unsupported
16030 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16031 # support --undefined. This deserves some investigation. FIXME
16032 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16038 cygwin
* | mingw
* | pw32
* | cegcc
*)
16039 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16040 # as there is no search path for DLLs.
16041 hardcode_libdir_flag_spec
='-L$libdir'
16042 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16043 allow_undefined_flag
=unsupported
16044 always_export_symbols
=no
16045 enable_shared_with_static_runtimes
=yes
16046 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16048 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16049 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16050 # If the export-symbols file already is a .def file (1st line
16051 # is EXPORTS), use it as is; otherwise, prepend...
16052 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16053 cp $export_symbols $output_objdir/$soname.def;
16055 echo EXPORTS > $output_objdir/$soname.def;
16056 cat $export_symbols >> $output_objdir/$soname.def;
16058 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16065 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16066 link_all_deplibs
=yes
16071 hardcode_shlibpath_var
=no
16072 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16073 export_dynamic_flag_spec
='${wl}-E'
16074 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16075 # Instead, shared libraries are loaded at an image base (0x10000000 by
16076 # default) and relocated if they conflict, which is a slow very memory
16077 # consuming and fragmenting process. To avoid this, we pick a random,
16078 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16079 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16080 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16081 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'
16084 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16086 if test "$host_os" = linux-dietlibc
; then
16087 case $cc_basename in
16088 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16091 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16092 && test "$tmp_diet" = no
16094 tmp_addflag
=' $pic_flag'
16095 tmp_sharedflag
='-shared'
16096 case $cc_basename,$host_cpu in
16097 pgcc
*) # Portland Group C compiler
16098 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'
16099 tmp_addflag
=' $pic_flag'
16101 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16102 # Portland Group f77 and f90 compilers
16103 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'
16104 tmp_addflag
=' $pic_flag -Mnomain' ;;
16105 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16106 tmp_addflag
=' -i_dynamic' ;;
16107 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16108 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16109 ifc
* | ifort
*) # Intel Fortran compiler
16110 tmp_addflag
=' -nofor_main' ;;
16111 lf95
*) # Lahey Fortran 8.1
16112 whole_archive_flag_spec
=
16113 tmp_sharedflag
='--shared' ;;
16114 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16115 tmp_sharedflag
='-qmkshrobj'
16117 nvcc
*) # Cuda Compiler Driver 2.2
16118 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'
16119 compiler_needs_object
=yes
16122 case `$CC -V 2>&1 | sed 5q` in
16123 *Sun\ C
*) # Sun C 5.9
16124 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'
16125 compiler_needs_object
=yes
16126 tmp_sharedflag
='-G' ;;
16127 *Sun\ F
*) # Sun Fortran 8.3
16128 tmp_sharedflag
='-G' ;;
16130 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16132 if test "x$supports_anon_versioning" = xyes
; then
16133 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16134 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16135 echo "local: *; };" >> $output_objdir/$libname.ver~
16136 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16139 case $cc_basename in
16140 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16141 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16142 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16143 hardcode_libdir_flag_spec
=
16144 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16145 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16146 if test "x$supports_anon_versioning" = xyes
; then
16147 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16148 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16149 echo "local: *; };" >> $output_objdir/$libname.ver~
16150 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16160 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16161 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16164 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16165 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16170 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16174 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16175 *** create shared libraries on Solaris systems. Therefore, libtool
16176 *** is disabling shared libraries support. We urge you to upgrade GNU
16177 *** binutils to release 2.9.1 or newer. Another option is to modify
16178 *** your PATH or compiler configuration so that the native linker is
16179 *** used, and then restart.
16182 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16183 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16184 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16190 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16191 case `$LD -v 2>&1` in
16192 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16196 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16197 *** reliably create shared libraries on SCO systems. Therefore, libtool
16198 *** is disabling shared libraries support. We urge you to upgrade GNU
16199 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16200 *** your PATH or compiler configuration so that the native linker is
16201 *** used, and then restart.
16206 # For security reasons, it is highly recommended that you always
16207 # use absolute paths for naming shared libraries, and exclude the
16208 # DT_RUNPATH tag from executables and libraries. But doing so
16209 # requires that you compile everything twice, which is a pain.
16210 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16211 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16212 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16213 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16222 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16224 hardcode_direct
=yes
16225 hardcode_shlibpath_var
=no
16229 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16230 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16231 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16238 if test "$ld_shlibs" = no
; then
16240 hardcode_libdir_flag_spec
=
16241 export_dynamic_flag_spec
=
16242 whole_archive_flag_spec
=
16245 # PORTME fill in a description of your system's linker (not GNU ld)
16248 allow_undefined_flag
=unsupported
16249 always_export_symbols
=yes
16250 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'
16251 # Note: this linker hardcodes the directories in LIBPATH if there
16252 # are no directories specified by -L.
16253 hardcode_minus_L
=yes
16254 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16255 # Neither direct hardcoding nor static linking is supported with a
16257 hardcode_direct
=unsupported
16262 if test "$host_cpu" = ia64
; then
16263 # On IA64, the linker does run time linking by default, so we don't
16264 # have to do anything special.
16265 aix_use_runtimelinking
=no
16266 exp_sym_flag
='-Bexport'
16269 # If we're using GNU nm, then we don't want the "-C" option.
16270 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16271 # Also, AIX nm treats weak defined symbols like other global
16272 # defined symbols, whereas GNU nm marks them as "W".
16273 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16274 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'
16276 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'
16278 aix_use_runtimelinking
=no
16280 # Test if we are trying to use run time linking or normal
16281 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16282 # need to do runtime linking.
16283 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16284 for ld_flag
in $LDFLAGS; do
16285 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16286 aix_use_runtimelinking
=yes
16293 exp_sym_flag
='-bexport'
16294 no_entry_flag
='-bnoentry'
16297 # When large executables or shared objects are built, AIX ld can
16298 # have problems creating the table of contents. If linking a library
16299 # or program results in "error TOC overflow" add -mminimal-toc to
16300 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16301 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16304 hardcode_direct
=yes
16305 hardcode_direct_absolute
=yes
16306 hardcode_libdir_separator
=':'
16307 link_all_deplibs
=yes
16308 file_list_spec
='${wl}-f,'
16310 if test "$GCC" = yes; then
16311 case $host_os in aix4.
[012]|aix4.
[012].
*)
16312 # We only want to do this on AIX 4.2 and lower, the check
16313 # below for broken collect2 doesn't work under 4.3+
16314 collect2name
=`${CC} -print-prog-name=collect2`
16315 if test -f "$collect2name" &&
16316 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16318 # We have reworked collect2
16321 # We have old collect2
16322 hardcode_direct
=unsupported
16323 # It fails to find uninstalled libraries when the uninstalled
16324 # path is not listed in the libpath. Setting hardcode_minus_L
16325 # to unsupported forces relinking
16326 hardcode_minus_L
=yes
16327 hardcode_libdir_flag_spec
='-L$libdir'
16328 hardcode_libdir_separator
=
16332 shared_flag
='-shared'
16333 if test "$aix_use_runtimelinking" = yes; then
16334 shared_flag
="$shared_flag "'${wl}-G'
16338 if test "$host_cpu" = ia64
; then
16339 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16340 # chokes on -Wl,-G. The following line is correct:
16343 if test "$aix_use_runtimelinking" = yes; then
16344 shared_flag
='${wl}-G'
16346 shared_flag
='${wl}-bM:SRE'
16351 export_dynamic_flag_spec
='${wl}-bexpall'
16352 # It seems that -bexpall does not export symbols beginning with
16353 # underscore (_), so it is better to generate a list of symbols to export.
16354 always_export_symbols
=yes
16355 if test "$aix_use_runtimelinking" = yes; then
16356 # Warning - without using the other runtime loading flags (-brtl),
16357 # -berok will link without error, but may produce a broken library.
16358 allow_undefined_flag
='-berok'
16359 # Determine the default libpath from the value encoded in an
16360 # empty executable.
16361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16362 /* end confdefs.h. */
16372 if ac_fn_c_try_link
"$LINENO"; then :
16374 lt_aix_libpath_sed
='
16375 /Import File Strings/,/^$/ {
16381 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16382 # Check for a 64-bit object if we didn't find anything.
16383 if test -z "$aix_libpath"; then
16384 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16387 rm -f core conftest.err conftest.
$ac_objext \
16388 conftest
$ac_exeext conftest.
$ac_ext
16389 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16391 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16392 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"
16394 if test "$host_cpu" = ia64
; then
16395 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16396 allow_undefined_flag
="-z nodefs"
16397 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"
16399 # Determine the default libpath from the value encoded in an
16400 # empty executable.
16401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16402 /* end confdefs.h. */
16412 if ac_fn_c_try_link
"$LINENO"; then :
16414 lt_aix_libpath_sed
='
16415 /Import File Strings/,/^$/ {
16421 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16422 # Check for a 64-bit object if we didn't find anything.
16423 if test -z "$aix_libpath"; then
16424 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16427 rm -f core conftest.err conftest.
$ac_objext \
16428 conftest
$ac_exeext conftest.
$ac_ext
16429 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16431 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16432 # Warning - without using the other run time loading flags,
16433 # -berok will link without error, but may produce a broken library.
16434 no_undefined_flag
=' ${wl}-bernotok'
16435 allow_undefined_flag
=' ${wl}-berok'
16436 if test "$with_gnu_ld" = yes; then
16437 # We only use this code for GNU lds that support --whole-archive.
16438 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16440 # Exported symbols can be pulled into shared objects from archives
16441 whole_archive_flag_spec
='$convenience'
16443 archive_cmds_need_lc
=yes
16444 # This is similar to how AIX traditionally builds its shared libraries.
16445 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'
16453 # see comment about AmigaOS4 .so support
16454 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16455 archive_expsym_cmds
=''
16458 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)'
16459 hardcode_libdir_flag_spec
='-L$libdir'
16460 hardcode_minus_L
=yes
16466 export_dynamic_flag_spec
=-rdynamic
16469 cygwin
* | mingw
* | pw32
* | cegcc
*)
16470 # When not using gcc, we currently assume that we are using
16471 # Microsoft Visual C++.
16472 # hardcode_libdir_flag_spec is actually meaningless, as there is
16473 # no search path for DLLs.
16474 hardcode_libdir_flag_spec
=' '
16475 allow_undefined_flag
=unsupported
16476 # Tell ltmain to make .lib files, not .a files.
16478 # Tell ltmain to make .dll files, not .so files.
16480 # FIXME: Setting linknames here is a bad hack.
16481 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16482 # The linker will automatically build a .lib file if we build a DLL.
16483 old_archive_from_new_cmds
='true'
16484 # FIXME: Should let the user specify the lib program.
16485 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16486 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16487 enable_shared_with_static_runtimes
=yes
16490 darwin
* | rhapsody
*)
16493 archive_cmds_need_lc
=no
16495 hardcode_automatic
=yes
16496 hardcode_shlibpath_var
=unsupported
16497 if test "$lt_cv_ld_force_load" = "yes"; then
16498 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\"`'
16500 whole_archive_flag_spec
=''
16502 link_all_deplibs
=yes
16503 allow_undefined_flag
="$_lt_dar_allow_undefined"
16504 case $cc_basename in
16505 ifort
*) _lt_dar_can_shared
=yes ;;
16506 *) _lt_dar_can_shared
=$GCC ;;
16508 if test "$_lt_dar_can_shared" = "yes"; then
16509 output_verbose_link_cmd
=func_echo_all
16510 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16511 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16512 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}"
16513 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}"
16522 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16523 hardcode_libdir_flag_spec
='-L$libdir'
16524 hardcode_shlibpath_var
=no
16527 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16528 # support. Future versions do this automatically, but an explicit c++rt0.o
16529 # does not break anything, and helps significantly (at the cost of a little
16532 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16533 hardcode_libdir_flag_spec
='-R$libdir'
16534 hardcode_direct
=yes
16535 hardcode_shlibpath_var
=no
16538 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16540 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16541 hardcode_direct
=yes
16542 hardcode_minus_L
=yes
16543 hardcode_shlibpath_var
=no
16546 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16547 freebsd
* | dragonfly
*)
16548 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16549 hardcode_libdir_flag_spec
='-R$libdir'
16550 hardcode_direct
=yes
16551 hardcode_shlibpath_var
=no
16555 if test "$GCC" = yes; then
16556 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'
16558 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'
16560 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16561 hardcode_libdir_separator
=:
16562 hardcode_direct
=yes
16564 # hardcode_minus_L: Not really in the search PATH,
16565 # but as the default location of the library.
16566 hardcode_minus_L
=yes
16567 export_dynamic_flag_spec
='${wl}-E'
16571 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16572 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16574 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16576 if test "$with_gnu_ld" = no
; then
16577 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16578 hardcode_libdir_flag_spec_ld
='+b $libdir'
16579 hardcode_libdir_separator
=:
16580 hardcode_direct
=yes
16581 hardcode_direct_absolute
=yes
16582 export_dynamic_flag_spec
='${wl}-E'
16583 # hardcode_minus_L: Not really in the search PATH,
16584 # but as the default location of the library.
16585 hardcode_minus_L
=yes
16590 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16593 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16596 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16599 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16605 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16608 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16612 # Older versions of the 11.00 compiler do not understand -b yet
16613 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16615 $as_echo_n "checking if $CC understands -b... " >&6; }
16616 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16617 $as_echo_n "(cached) " >&6
16619 lt_cv_prog_compiler__b
=no
16620 save_LDFLAGS
="$LDFLAGS"
16621 LDFLAGS
="$LDFLAGS -b"
16622 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16623 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16624 # The linker can only warn and ignore the option if not recognized
16625 # So say no if there are warnings
16626 if test -s conftest.err
; then
16627 # Append any errors to the config.log.
16628 cat conftest.err
1>&5
16629 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16630 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16631 if diff conftest.exp conftest.er2
>/dev
/null
; then
16632 lt_cv_prog_compiler__b
=yes
16635 lt_cv_prog_compiler__b
=yes
16639 LDFLAGS
="$save_LDFLAGS"
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16643 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16645 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16646 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16648 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16654 if test "$with_gnu_ld" = no
; then
16655 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16656 hardcode_libdir_separator
=:
16661 hardcode_shlibpath_var
=no
16664 hardcode_direct
=yes
16665 hardcode_direct_absolute
=yes
16666 export_dynamic_flag_spec
='${wl}-E'
16668 # hardcode_minus_L: Not really in the search PATH,
16669 # but as the default location of the library.
16670 hardcode_minus_L
=yes
16676 irix5
* | irix6
* | nonstopux
*)
16677 if test "$GCC" = yes; then
16678 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'
16679 # Try to use the -exported_symbol ld option, if it does not
16680 # work, assume that -exports_file does not work either and
16681 # implicitly export all symbols.
16682 save_LDFLAGS
="$LDFLAGS"
16683 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16685 /* end confdefs.h. */
16688 if ac_fn_c_try_link
"$LINENO"; then :
16689 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'
16692 rm -f core conftest.err conftest.
$ac_objext \
16693 conftest
$ac_exeext conftest.
$ac_ext
16694 LDFLAGS
="$save_LDFLAGS"
16696 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'
16697 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'
16699 archive_cmds_need_lc
='no'
16700 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16701 hardcode_libdir_separator
=:
16703 link_all_deplibs
=yes
16707 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16708 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16710 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16712 hardcode_libdir_flag_spec
='-R$libdir'
16713 hardcode_direct
=yes
16714 hardcode_shlibpath_var
=no
16718 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16719 hardcode_direct
=yes
16720 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16721 hardcode_libdir_separator
=:
16722 hardcode_shlibpath_var
=no
16729 if test -f /usr
/libexec
/ld.so
; then
16730 hardcode_direct
=yes
16731 hardcode_shlibpath_var
=no
16732 hardcode_direct_absolute
=yes
16733 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16734 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16735 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16736 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16737 export_dynamic_flag_spec
='${wl}-E'
16740 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16741 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16742 hardcode_libdir_flag_spec
='-R$libdir'
16745 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16746 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16756 hardcode_libdir_flag_spec
='-L$libdir'
16757 hardcode_minus_L
=yes
16758 allow_undefined_flag
=unsupported
16759 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'
16760 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16764 if test "$GCC" = yes; then
16765 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16766 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'
16768 allow_undefined_flag
=' -expect_unresolved \*'
16769 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'
16771 archive_cmds_need_lc
='no'
16772 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16773 hardcode_libdir_separator
=:
16776 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16777 if test "$GCC" = yes; then
16778 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16779 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'
16780 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16782 allow_undefined_flag
=' -expect_unresolved \*'
16783 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'
16784 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~
16785 $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'
16787 # Both c and cxx compiler support -rpath directly
16788 hardcode_libdir_flag_spec
='-rpath $libdir'
16790 archive_cmds_need_lc
='no'
16791 hardcode_libdir_separator
=:
16795 no_undefined_flag
=' -z defs'
16796 if test "$GCC" = yes; then
16798 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16799 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16800 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16802 case `$CC -V 2>&1` in
16805 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16806 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16807 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16811 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16812 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16813 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16817 hardcode_libdir_flag_spec
='-R$libdir'
16818 hardcode_shlibpath_var
=no
16820 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16822 # The compiler driver will combine and reorder linker options,
16823 # but understands `-z linker_flag'. GCC discards it without `$wl',
16824 # but is careful enough not to reorder.
16825 # Supported since Solaris 2.6 (maybe 2.5.1?)
16826 if test "$GCC" = yes; then
16827 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16829 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16833 link_all_deplibs
=yes
16837 if test "x$host_vendor" = xsequent
; then
16838 # Use $CC to link under sequent, because it throws in some extra .o
16839 # files that make .init and .fini sections work.
16840 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16842 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16844 hardcode_libdir_flag_spec
='-L$libdir'
16845 hardcode_direct
=yes
16846 hardcode_minus_L
=yes
16847 hardcode_shlibpath_var
=no
16851 case $host_vendor in
16853 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16854 hardcode_direct
=yes # is this really true???
16857 ## LD is ld it makes a PLAMLIB
16858 ## CC just makes a GrossModule.
16859 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16860 reload_cmds
='$CC -r -o $output$reload_objs'
16864 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16865 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16868 runpath_var
='LD_RUN_PATH'
16869 hardcode_shlibpath_var
=no
16873 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16874 hardcode_shlibpath_var
=no
16875 export_dynamic_flag_spec
='-Bexport'
16879 if test -d /usr
/nec
; then
16880 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16881 hardcode_shlibpath_var
=no
16882 runpath_var
=LD_RUN_PATH
16883 hardcode_runpath_var
=yes
16888 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16889 no_undefined_flag
='${wl}-z,text'
16890 archive_cmds_need_lc
=no
16891 hardcode_shlibpath_var
=no
16892 runpath_var
='LD_RUN_PATH'
16894 if test "$GCC" = yes; then
16895 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16896 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16898 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16899 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16903 sysv5
* | sco3.2v5
* | sco5v6
*)
16904 # Note: We can NOT use -z defs as we might desire, because we do not
16905 # link with -lc, and that would cause any symbols used from libc to
16906 # always be unresolved, which means just about no library would
16907 # ever link correctly. If we're not using GNU ld we use -z text
16908 # though, which does catch some bad symbols but isn't as heavy-handed
16910 no_undefined_flag
='${wl}-z,text'
16911 allow_undefined_flag
='${wl}-z,nodefs'
16912 archive_cmds_need_lc
=no
16913 hardcode_shlibpath_var
=no
16914 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16915 hardcode_libdir_separator
=':'
16916 link_all_deplibs
=yes
16917 export_dynamic_flag_spec
='${wl}-Bexport'
16918 runpath_var
='LD_RUN_PATH'
16920 if test "$GCC" = yes; then
16921 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16922 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16924 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16925 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16930 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16931 hardcode_libdir_flag_spec
='-L$libdir'
16932 hardcode_shlibpath_var
=no
16940 if test x
$host_vendor = xsni
; then
16942 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16943 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16950 $as_echo "$ld_shlibs" >&6; }
16951 test "$ld_shlibs" = no
&& can_build_shared
=no
16953 with_gnu_ld
=$with_gnu_ld
16970 # Do we need to explicitly link libc?
16972 case "x$archive_cmds_need_lc" in
16974 # Assume -lc should be added
16975 archive_cmds_need_lc
=yes
16977 if test "$enable_shared" = yes && test "$GCC" = yes; then
16978 case $archive_cmds in
16980 # FIXME: we may have to deal with multi-command sequences.
16983 # Test whether the compiler implicitly links with -lc since on some
16984 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16985 # to ld, don't add -lc before -lgcc.
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16987 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16988 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16989 $as_echo_n "(cached) " >&6
16992 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16995 (eval $ac_compile) 2>&5
16997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16998 test $ac_status = 0; } 2>conftest.err
; then
17001 libobjs
=conftest.
$ac_objext
17003 wl
=$lt_prog_compiler_wl
17004 pic_flag
=$lt_prog_compiler_pic
17010 lt_save_allow_undefined_flag
=$allow_undefined_flag
17011 allow_undefined_flag
=
17012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17013 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17016 test $ac_status = 0; }
17018 lt_cv_archive_cmds_need_lc
=no
17020 lt_cv_archive_cmds_need_lc
=yes
17022 allow_undefined_flag
=$lt_save_allow_undefined_flag
17024 cat conftest.err
1>&5
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17030 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17031 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17195 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17197 if test "$GCC" = yes; then
17199 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17200 *) lt_awk_arg
="/^libraries:/" ;;
17203 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17204 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17206 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17207 case $lt_search_path_spec in
17209 # if the path contains ";" then we assume it to be the separator
17210 # otherwise default to the standard path separator (i.e. ":") - it is
17211 # assumed that no part of a normal pathname contains ";" but that should
17212 # okay in the real world where ";" in dirpaths is itself problematic.
17213 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17216 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17219 # Ok, now we have the path, separated by spaces, we can step through it
17220 # and add multilib dir if necessary.
17221 lt_tmp_lt_search_path_spec
=
17222 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17223 for lt_sys_path
in $lt_search_path_spec; do
17224 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17225 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17227 test -d "$lt_sys_path" && \
17228 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17231 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17232 BEGIN {RS=" "; FS="/|\n";} {
17235 for (lt_i = NF; lt_i > 0; lt_i--) {
17236 if ($lt_i != "" && $lt_i != ".") {
17237 if ($lt_i == "..") {
17240 if (lt_count == 0) {
17241 lt_foo="/" $lt_i lt_foo;
17248 if (lt_foo != "") { lt_freq[lt_foo]++; }
17249 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17251 # AWK program above erroneously prepends '/' to C:/dos/paths
17254 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17255 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17257 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17259 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17261 library_names_spec
=
17262 libname_spec
='lib$name'
17266 postuninstall_cmds
=
17270 shlibpath_overrides_runpath
=unknown
17272 dynamic_linker
="$host_os ld.so"
17273 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17274 need_lib_prefix
=unknown
17275 hardcode_into_libs
=no
17277 # when you set need_version to no, make sure it does not cause -set_version
17278 # flags to be left without arguments
17279 need_version
=unknown
17284 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17285 shlibpath_var
=LIBPATH
17287 # AIX 3 has no versioning support, so we append a major version to the name.
17288 soname_spec
='${libname}${release}${shared_ext}$major'
17295 hardcode_into_libs
=yes
17296 if test "$host_cpu" = ia64
; then
17297 # AIX 5 supports IA64
17298 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17299 shlibpath_var
=LD_LIBRARY_PATH
17301 # With GCC up to 2.95.x, collect2 would create an import file
17302 # for dependence libraries. The import file would start with
17303 # the line `#! .'. This would cause the generated library to
17304 # depend on `.', always an invalid library. This was fixed in
17305 # development snapshots of GCC prior to 3.0.
17307 aix4 | aix4.
[01] | aix4.
[01].
*)
17308 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17310 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17313 can_build_shared
=no
17317 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17318 # soname into executable. Probably we can add versioning support to
17319 # collect2, so additional links can be useful in future.
17320 if test "$aix_use_runtimelinking" = yes; then
17321 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17322 # instead of lib<name>.a to let people know that these are not
17323 # typical AIX shared libraries.
17324 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17326 # We preserve .a as extension for shared libraries through AIX4.2
17327 # and later when we are not doing run time linking.
17328 library_names_spec
='${libname}${release}.a $libname.a'
17329 soname_spec
='${libname}${release}${shared_ext}$major'
17331 shlibpath_var
=LIBPATH
17338 # Since July 2007 AmigaOS4 officially supports .so libraries.
17339 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17340 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17343 library_names_spec
='$libname.ixlibrary $libname.a'
17344 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17345 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'
17351 library_names_spec
='${libname}${shared_ext}'
17352 dynamic_linker
="$host_os ld.so"
17353 shlibpath_var
=LIBRARY_PATH
17359 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17360 soname_spec
='${libname}${release}${shared_ext}$major'
17361 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17362 shlibpath_var
=LD_LIBRARY_PATH
17363 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17364 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17365 # the default ld.so.conf also contains /usr/contrib/lib and
17366 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17367 # libtool to hard-code these into programs
17370 cygwin
* | mingw
* | pw32
* | cegcc
*)
17371 version_type
=windows
17376 case $GCC,$host_os in
17377 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17378 library_names_spec
='$libname.dll.a'
17379 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17380 postinstall_cmds
='base_file=`basename \${file}`~
17381 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17382 dldir=$destdir/`dirname \$dlpath`~
17383 test -d \$dldir || mkdir -p \$dldir~
17384 $install_prog $dir/$dlname \$dldir/$dlname~
17385 chmod a+x \$dldir/$dlname~
17386 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17387 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17389 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17390 dlpath=$dir/\$dldll~
17392 shlibpath_overrides_runpath
=yes
17396 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17397 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17399 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17402 # MinGW DLLs use traditional 'lib' prefix
17403 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17406 # pw32 DLLs use 'pw' prefix rather than 'lib'
17407 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17413 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17416 dynamic_linker
='Win32 ld.exe'
17417 # FIXME: first we should search . and the directory the executable is in
17421 darwin
* | rhapsody
*)
17422 dynamic_linker
="$host_os dyld"
17423 version_type
=darwin
17426 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17427 soname_spec
='${libname}${release}${major}$shared_ext'
17428 shlibpath_overrides_runpath
=yes
17429 shlibpath_var
=DYLD_LIBRARY_PATH
17430 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17432 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17433 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17440 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17441 soname_spec
='${libname}${release}${shared_ext}$major'
17442 shlibpath_var
=LD_LIBRARY_PATH
17445 freebsd
* | dragonfly
*)
17446 # DragonFly does not have aout. When/if they implement a new
17447 # versioning mechanism, adjust this.
17448 if test -x /usr
/bin
/objformat
; then
17449 objformat
=`/usr/bin/objformat`
17452 freebsd
[23].
*) objformat
=aout
;;
17453 *) objformat
=elf
;;
17456 version_type
=freebsd-
$objformat
17457 case $version_type in
17459 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17464 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17468 shlibpath_var
=LD_LIBRARY_PATH
17471 shlibpath_overrides_runpath
=yes
17473 freebsd3.
[01]* | freebsdelf3.
[01]*)
17474 shlibpath_overrides_runpath
=yes
17475 hardcode_into_libs
=yes
17477 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17478 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17479 shlibpath_overrides_runpath
=no
17480 hardcode_into_libs
=yes
17482 *) # from 4.6 on, and DragonFly
17483 shlibpath_overrides_runpath
=yes
17484 hardcode_into_libs
=yes
17493 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17494 soname_spec
='${libname}${release}${shared_ext}$major'
17495 shlibpath_var
=LD_LIBRARY_PATH
17496 hardcode_into_libs
=yes
17503 dynamic_linker
="$host_os runtime_loader"
17504 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17505 soname_spec
='${libname}${release}${shared_ext}$major'
17506 shlibpath_var
=LIBRARY_PATH
17507 shlibpath_overrides_runpath
=yes
17508 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17509 hardcode_into_libs
=yes
17512 hpux9
* | hpux10
* | hpux11
*)
17513 # Give a soname corresponding to the major version so that dld.sl refuses to
17514 # link against other versions.
17521 hardcode_into_libs
=yes
17522 dynamic_linker
="$host_os dld.so"
17523 shlibpath_var
=LD_LIBRARY_PATH
17524 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17525 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17526 soname_spec
='${libname}${release}${shared_ext}$major'
17527 if test "X$HPUX_IA64_MODE" = X32
; then
17528 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17530 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17532 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17536 hardcode_into_libs
=yes
17537 dynamic_linker
="$host_os dld.sl"
17538 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17539 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17540 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17541 soname_spec
='${libname}${release}${shared_ext}$major'
17542 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17543 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17547 dynamic_linker
="$host_os dld.sl"
17548 shlibpath_var
=SHLIB_PATH
17549 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17550 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17551 soname_spec
='${libname}${release}${shared_ext}$major'
17554 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17555 postinstall_cmds
='chmod 555 $lib'
17556 # or fails outright, so override atomically:
17557 install_override_mode
=555
17564 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17565 soname_spec
='${libname}${release}${shared_ext}$major'
17566 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17567 shlibpath_var
=LD_LIBRARY_PATH
17568 shlibpath_overrides_runpath
=no
17569 hardcode_into_libs
=yes
17572 irix5
* | irix6
* | nonstopux
*)
17574 nonstopux
*) version_type
=nonstopux
;;
17576 if test "$lt_cv_prog_gnu_ld" = yes; then
17584 soname_spec
='${libname}${release}${shared_ext}$major'
17585 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17587 irix5
* | nonstopux
*)
17588 libsuff
= shlibsuff
=
17591 case $LD in # libtool.m4 will add one of these switches to LD
17592 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17593 libsuff
= shlibsuff
= libmagic
=32-bit;;
17594 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17595 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17596 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17597 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17598 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17602 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17603 shlibpath_overrides_runpath
=no
17604 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17605 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17606 hardcode_into_libs
=yes
17609 # No shared lib support for Linux oldld, aout, or coff.
17610 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17614 # This must be Linux ELF.
17615 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17619 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17620 soname_spec
='${libname}${release}${shared_ext}$major'
17621 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17622 shlibpath_var
=LD_LIBRARY_PATH
17623 shlibpath_overrides_runpath
=no
17625 # Some binutils ld are patched to set DT_RUNPATH
17626 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17627 $as_echo_n "(cached) " >&6
17629 lt_cv_shlibpath_overrides_runpath
=no
17630 save_LDFLAGS
=$LDFLAGS
17631 save_libdir
=$libdir
17632 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17633 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17635 /* end confdefs.h. */
17645 if ac_fn_c_try_link
"$LINENO"; then :
17646 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17647 lt_cv_shlibpath_overrides_runpath
=yes
17650 rm -f core conftest.err conftest.
$ac_objext \
17651 conftest
$ac_exeext conftest.
$ac_ext
17652 LDFLAGS
=$save_LDFLAGS
17653 libdir
=$save_libdir
17657 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17659 # This implies no fast_install, which is unacceptable.
17660 # Some rework will be needed to allow for fast_install
17661 # before this can be enabled.
17662 hardcode_into_libs
=yes
17664 # Append ld.so.conf contents to the search path
17665 if test -f /etc
/ld.so.conf
; then
17666 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' ' '`
17667 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17670 # We used to test for /lib/ld.so.1 and disable shared libraries on
17671 # powerpc, because MkLinux only supported shared libraries with the
17672 # GNU dynamic linker. Since this was broken with cross compilers,
17673 # most powerpc-linux boxes support dynamic linking these days and
17674 # people can always --disable-shared, the test was removed, and we
17675 # assume the GNU/Linux dynamic linker is in use.
17676 dynamic_linker
='GNU/Linux ld.so'
17683 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17684 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17685 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17686 dynamic_linker
='NetBSD (a.out) ld.so'
17688 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17689 soname_spec
='${libname}${release}${shared_ext}$major'
17690 dynamic_linker
='NetBSD ld.elf_so'
17692 shlibpath_var
=LD_LIBRARY_PATH
17693 shlibpath_overrides_runpath
=yes
17694 hardcode_into_libs
=yes
17699 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17700 shlibpath_var
=LD_LIBRARY_PATH
17701 shlibpath_overrides_runpath
=yes
17708 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17709 soname_spec
='${libname}${release}${shared_ext}$major'
17710 shlibpath_var
=LD_LIBRARY_PATH
17711 shlibpath_overrides_runpath
=no
17712 hardcode_into_libs
=yes
17713 dynamic_linker
='ldqnx.so'
17718 sys_lib_dlsearch_path_spec
="/usr/lib"
17720 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17722 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17723 *) need_version
=no
;;
17725 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17726 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17727 shlibpath_var
=LD_LIBRARY_PATH
17728 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17730 openbsd2.
[89] | openbsd2.
[89].
*)
17731 shlibpath_overrides_runpath
=no
17734 shlibpath_overrides_runpath
=yes
17738 shlibpath_overrides_runpath
=yes
17743 libname_spec
='$name'
17746 library_names_spec
='$libname${shared_ext} $libname.a'
17747 dynamic_linker
='OS/2 ld.exe'
17748 shlibpath_var
=LIBPATH
17751 osf3
* | osf4
* | osf5
*)
17755 soname_spec
='${libname}${release}${shared_ext}$major'
17756 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17757 shlibpath_var
=LD_LIBRARY_PATH
17758 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17759 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17770 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17771 soname_spec
='${libname}${release}${shared_ext}$major'
17772 shlibpath_var
=LD_LIBRARY_PATH
17773 shlibpath_overrides_runpath
=yes
17774 hardcode_into_libs
=yes
17775 # ldd complains unless libraries are executable
17776 postinstall_cmds
='chmod +x $lib'
17781 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17782 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17783 shlibpath_var
=LD_LIBRARY_PATH
17784 shlibpath_overrides_runpath
=yes
17785 if test "$with_gnu_ld" = yes; then
17793 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17794 soname_spec
='${libname}${release}${shared_ext}$major'
17795 shlibpath_var
=LD_LIBRARY_PATH
17796 case $host_vendor in
17798 shlibpath_overrides_runpath
=no
17800 runpath_var
=LD_RUN_PATH
17808 shlibpath_overrides_runpath
=no
17809 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17815 if test -d /usr
/nec
;then
17817 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17818 soname_spec
='$libname${shared_ext}.$major'
17819 shlibpath_var
=LD_LIBRARY_PATH
17823 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17824 version_type
=freebsd-elf
17827 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17828 soname_spec
='${libname}${release}${shared_ext}$major'
17829 shlibpath_var
=LD_LIBRARY_PATH
17830 shlibpath_overrides_runpath
=yes
17831 hardcode_into_libs
=yes
17832 if test "$with_gnu_ld" = yes; then
17833 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17835 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17838 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17842 sys_lib_dlsearch_path_spec
='/usr/lib'
17846 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17850 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17851 shlibpath_var
=LD_LIBRARY_PATH
17852 shlibpath_overrides_runpath
=no
17853 hardcode_into_libs
=yes
17858 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17859 soname_spec
='${libname}${release}${shared_ext}$major'
17860 shlibpath_var
=LD_LIBRARY_PATH
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17868 $as_echo "$dynamic_linker" >&6; }
17869 test "$dynamic_linker" = no
&& can_build_shared
=no
17871 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17872 if test "$GCC" = yes; then
17873 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17876 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17877 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17879 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17880 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17975 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17977 if test -n "$hardcode_libdir_flag_spec" ||
17978 test -n "$runpath_var" ||
17979 test "X$hardcode_automatic" = "Xyes" ; then
17981 # We can hardcode non-existent directories.
17982 if test "$hardcode_direct" != no
&&
17983 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17984 # have to relink, otherwise we might link with an installed library
17985 # when we should be linking with a yet-to-be-installed one
17986 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17987 test "$hardcode_minus_L" != no
; then
17988 # Linking always hardcodes the temporary library directory.
17989 hardcode_action
=relink
17991 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17992 hardcode_action
=immediate
17995 # We cannot hardcode anything, or else we can only hardcode existing
17997 hardcode_action
=unsupported
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18000 $as_echo "$hardcode_action" >&6; }
18002 if test "$hardcode_action" = relink ||
18003 test "$inherit_rpath" = yes; then
18004 # Fast installation is not supported
18005 enable_fast_install
=no
18006 elif test "$shlibpath_overrides_runpath" = yes ||
18007 test "$enable_shared" = no
; then
18008 # Fast installation is not necessary
18009 enable_fast_install
=needless
18017 if test "x$enable_dlopen" != xyes
; then
18018 enable_dlopen
=unknown
18019 enable_dlopen_self
=unknown
18020 enable_dlopen_self_static
=unknown
18027 lt_cv_dlopen
="load_add_on"
18029 lt_cv_dlopen_self
=yes
18032 mingw
* | pw32
* | cegcc
*)
18033 lt_cv_dlopen
="LoadLibrary"
18038 lt_cv_dlopen
="dlopen"
18043 # if libdl is installed we need to link against it
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18045 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18046 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18047 $as_echo_n "(cached) " >&6
18049 ac_check_lib_save_LIBS
=$LIBS
18051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18052 /* end confdefs.h. */
18054 /* Override any GCC internal prototype to avoid an error.
18055 Use char because int might match the return type of a GCC
18056 builtin and then its argument prototype would still apply. */
18069 if ac_fn_c_try_link
"$LINENO"; then :
18070 ac_cv_lib_dl_dlopen
=yes
18072 ac_cv_lib_dl_dlopen
=no
18074 rm -f core conftest.err conftest.
$ac_objext \
18075 conftest
$ac_exeext conftest.
$ac_ext
18076 LIBS
=$ac_check_lib_save_LIBS
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18079 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18080 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18081 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18084 lt_cv_dlopen
="dyld"
18086 lt_cv_dlopen_self
=yes
18093 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18094 if test "x$ac_cv_func_shl_load" = x
""yes; then :
18095 lt_cv_dlopen
="shl_load"
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18098 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18099 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18100 $as_echo_n "(cached) " >&6
18102 ac_check_lib_save_LIBS
=$LIBS
18104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18105 /* end confdefs.h. */
18107 /* Override any GCC internal prototype to avoid an error.
18108 Use char because int might match the return type of a GCC
18109 builtin and then its argument prototype would still apply. */
18117 return shl_load ();
18122 if ac_fn_c_try_link
"$LINENO"; then :
18123 ac_cv_lib_dld_shl_load
=yes
18125 ac_cv_lib_dld_shl_load
=no
18127 rm -f core conftest.err conftest.
$ac_objext \
18128 conftest
$ac_exeext conftest.
$ac_ext
18129 LIBS
=$ac_check_lib_save_LIBS
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18132 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18133 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
18134 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18136 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18137 if test "x$ac_cv_func_dlopen" = x
""yes; then :
18138 lt_cv_dlopen
="dlopen"
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18141 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18142 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18143 $as_echo_n "(cached) " >&6
18145 ac_check_lib_save_LIBS
=$LIBS
18147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18148 /* end confdefs.h. */
18150 /* Override any GCC internal prototype to avoid an error.
18151 Use char because int might match the return type of a GCC
18152 builtin and then its argument prototype would still apply. */
18165 if ac_fn_c_try_link
"$LINENO"; then :
18166 ac_cv_lib_dl_dlopen
=yes
18168 ac_cv_lib_dl_dlopen
=no
18170 rm -f core conftest.err conftest.
$ac_objext \
18171 conftest
$ac_exeext conftest.
$ac_ext
18172 LIBS
=$ac_check_lib_save_LIBS
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18175 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18176 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18177 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18180 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18181 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18182 $as_echo_n "(cached) " >&6
18184 ac_check_lib_save_LIBS
=$LIBS
18185 LIBS
="-lsvld $LIBS"
18186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18187 /* end confdefs.h. */
18189 /* Override any GCC internal prototype to avoid an error.
18190 Use char because int might match the return type of a GCC
18191 builtin and then its argument prototype would still apply. */
18204 if ac_fn_c_try_link
"$LINENO"; then :
18205 ac_cv_lib_svld_dlopen
=yes
18207 ac_cv_lib_svld_dlopen
=no
18209 rm -f core conftest.err conftest.
$ac_objext \
18210 conftest
$ac_exeext conftest.
$ac_ext
18211 LIBS
=$ac_check_lib_save_LIBS
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18214 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18215 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18216 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18219 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18220 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18221 $as_echo_n "(cached) " >&6
18223 ac_check_lib_save_LIBS
=$LIBS
18225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h. */
18228 /* Override any GCC internal prototype to avoid an error.
18229 Use char because int might match the return type of a GCC
18230 builtin and then its argument prototype would still apply. */
18238 return dld_link ();
18243 if ac_fn_c_try_link
"$LINENO"; then :
18244 ac_cv_lib_dld_dld_link
=yes
18246 ac_cv_lib_dld_dld_link
=no
18248 rm -f core conftest.err conftest.
$ac_objext \
18249 conftest
$ac_exeext conftest.
$ac_ext
18250 LIBS
=$ac_check_lib_save_LIBS
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18253 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18254 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18255 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18276 if test "x$lt_cv_dlopen" != xno
; then
18282 case $lt_cv_dlopen in
18284 save_CPPFLAGS
="$CPPFLAGS"
18285 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18287 save_LDFLAGS
="$LDFLAGS"
18288 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18291 LIBS
="$lt_cv_dlopen_libs $LIBS"
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18294 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18295 if test "${lt_cv_dlopen_self+set}" = set; then :
18296 $as_echo_n "(cached) " >&6
18298 if test "$cross_compiling" = yes; then :
18299 lt_cv_dlopen_self
=cross
18301 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18302 lt_status
=$lt_dlunknown
18303 cat > conftest.
$ac_ext <<_LT_EOF
18304 #line 18304 "configure"
18305 #include "confdefs.h"
18314 # define LT_DLGLOBAL RTLD_GLOBAL
18317 # define LT_DLGLOBAL DL_GLOBAL
18319 # define LT_DLGLOBAL 0
18323 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18324 find out it does not work in some platform. */
18325 #ifndef LT_DLLAZY_OR_NOW
18327 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18330 # define LT_DLLAZY_OR_NOW DL_LAZY
18333 # define LT_DLLAZY_OR_NOW RTLD_NOW
18336 # define LT_DLLAZY_OR_NOW DL_NOW
18338 # define LT_DLLAZY_OR_NOW 0
18345 /* When -fvisbility=hidden is used, assume the code has been annotated
18346 correspondingly for the symbols needed. */
18347 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18348 void fnord () __attribute__((visibility("default")));
18351 void fnord () { int i=42; }
18354 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18355 int status = $lt_dlunknown;
18359 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18362 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18363 else puts (dlerror ());
18365 /* dlclose (self); */
18373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18374 (eval $ac_link) 2>&5
18376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18377 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18378 (.
/conftest
; exit; ) >&5 2>/dev
/null
18380 case x
$lt_status in
18381 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18382 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18383 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18386 # compilation failed
18387 lt_cv_dlopen_self
=no
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18395 $as_echo "$lt_cv_dlopen_self" >&6; }
18397 if test "x$lt_cv_dlopen_self" = xyes
; then
18398 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18400 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18401 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18402 $as_echo_n "(cached) " >&6
18404 if test "$cross_compiling" = yes; then :
18405 lt_cv_dlopen_self_static
=cross
18407 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18408 lt_status
=$lt_dlunknown
18409 cat > conftest.
$ac_ext <<_LT_EOF
18410 #line 18410 "configure"
18411 #include "confdefs.h"
18420 # define LT_DLGLOBAL RTLD_GLOBAL
18423 # define LT_DLGLOBAL DL_GLOBAL
18425 # define LT_DLGLOBAL 0
18429 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18430 find out it does not work in some platform. */
18431 #ifndef LT_DLLAZY_OR_NOW
18433 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18436 # define LT_DLLAZY_OR_NOW DL_LAZY
18439 # define LT_DLLAZY_OR_NOW RTLD_NOW
18442 # define LT_DLLAZY_OR_NOW DL_NOW
18444 # define LT_DLLAZY_OR_NOW 0
18451 /* When -fvisbility=hidden is used, assume the code has been annotated
18452 correspondingly for the symbols needed. */
18453 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18454 void fnord () __attribute__((visibility("default")));
18457 void fnord () { int i=42; }
18460 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18461 int status = $lt_dlunknown;
18465 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18468 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18469 else puts (dlerror ());
18471 /* dlclose (self); */
18479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18480 (eval $ac_link) 2>&5
18482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18483 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18484 (.
/conftest
; exit; ) >&5 2>/dev
/null
18486 case x
$lt_status in
18487 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18488 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18489 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18492 # compilation failed
18493 lt_cv_dlopen_self_static
=no
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18501 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18504 CPPFLAGS
="$save_CPPFLAGS"
18505 LDFLAGS
="$save_LDFLAGS"
18510 case $lt_cv_dlopen_self in
18511 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18512 *) enable_dlopen_self
=unknown
;;
18515 case $lt_cv_dlopen_self_static in
18516 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18517 *) enable_dlopen_self_static
=unknown
;;
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18540 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18541 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18542 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18543 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18545 $as_echo "yes" >&6; }
18547 # FIXME - insert some real tests, host_os isn't really good enough
18550 if test -n "$STRIP" ; then
18551 striplib
="$STRIP -x"
18552 old_striplib
="$STRIP -S"
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18554 $as_echo "yes" >&6; }
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18557 $as_echo "no" >&6; }
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18562 $as_echo "no" >&6; }
18578 # Report which library types will actually be built
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18580 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18582 $as_echo "$can_build_shared" >&6; }
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18585 $as_echo_n "checking whether to build shared libraries... " >&6; }
18586 test "$can_build_shared" = "no" && enable_shared
=no
18588 # On AIX, shared libraries and static libraries use the same namespace, and
18589 # are all built from PIC.
18592 test "$enable_shared" = yes && enable_static
=no
18593 if test -n "$RANLIB"; then
18594 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18595 postinstall_cmds
='$RANLIB $lib'
18600 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18601 test "$enable_shared" = yes && enable_static
=no
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18606 $as_echo "$enable_shared" >&6; }
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18609 $as_echo_n "checking whether to build static libraries... " >&6; }
18610 # Make sure either enable_shared or enable_static is yes.
18611 test "$enable_shared" = yes || enable_static
=yes
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18613 $as_echo "$enable_static" >&6; }
18620 ac_cpp
='$CXXCPP $CPPFLAGS'
18621 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18622 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18623 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18627 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18628 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18629 (test "X$CXX" != "Xg++"))) ; then
18631 ac_cpp
='$CXXCPP $CPPFLAGS'
18632 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18633 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18634 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18636 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18637 if test -z "$CXXCPP"; then
18638 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18639 $as_echo_n "(cached) " >&6
18641 # Double quotes because CXXCPP needs to be expanded
18642 for CXXCPP
in "$CXX -E" "/lib/cpp"
18644 ac_preproc_ok
=false
18645 for ac_cxx_preproc_warn_flag
in '' yes
18647 # Use a header file that comes with gcc, so configuring glibc
18648 # with a fresh cross-compiler works.
18649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18650 # <limits.h> exists even on freestanding compilers.
18651 # On the NeXT, cc -E runs the code through the compiler's parser,
18652 # not just through cpp. "Syntax error" is here to catch this case.
18653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18654 /* end confdefs.h. */
18656 # include <limits.h>
18658 # include <assert.h>
18662 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18665 # Broken: fails on valid input.
18668 rm -f conftest.err conftest.
$ac_ext
18670 # OK, works on sane cases. Now check whether nonexistent headers
18671 # can be detected and how.
18672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18673 /* end confdefs.h. */
18674 #include <ac_nonexistent.h>
18676 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18677 # Broken: success on invalid input.
18680 # Passes both tests.
18684 rm -f conftest.err conftest.
$ac_ext
18687 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18688 rm -f conftest.err conftest.
$ac_ext
18689 if $ac_preproc_ok; then :
18694 ac_cv_prog_CXXCPP
=$CXXCPP
18697 CXXCPP
=$ac_cv_prog_CXXCPP
18699 ac_cv_prog_CXXCPP
=$CXXCPP
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18702 $as_echo "$CXXCPP" >&6; }
18703 ac_preproc_ok
=false
18704 for ac_cxx_preproc_warn_flag
in '' yes
18706 # Use a header file that comes with gcc, so configuring glibc
18707 # with a fresh cross-compiler works.
18708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18709 # <limits.h> exists even on freestanding compilers.
18710 # On the NeXT, cc -E runs the code through the compiler's parser,
18711 # not just through cpp. "Syntax error" is here to catch this case.
18712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18713 /* end confdefs.h. */
18715 # include <limits.h>
18717 # include <assert.h>
18721 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18724 # Broken: fails on valid input.
18727 rm -f conftest.err conftest.
$ac_ext
18729 # OK, works on sane cases. Now check whether nonexistent headers
18730 # can be detected and how.
18731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18732 /* end confdefs.h. */
18733 #include <ac_nonexistent.h>
18735 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18736 # Broken: success on invalid input.
18739 # Passes both tests.
18743 rm -f conftest.err conftest.
$ac_ext
18746 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18747 rm -f conftest.err conftest.
$ac_ext
18748 if $ac_preproc_ok; then :
18751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18753 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18754 See \`config.log' for more details." "$LINENO" 5; }
18758 ac_cpp
='$CXXCPP $CPPFLAGS'
18759 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18760 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18761 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18764 _lt_caught_CXX_error
=yes
18768 ac_cpp
='$CXXCPP $CPPFLAGS'
18769 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18770 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18771 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18773 archive_cmds_need_lc_CXX
=no
18774 allow_undefined_flag_CXX
=
18775 always_export_symbols_CXX
=no
18776 archive_expsym_cmds_CXX
=
18777 compiler_needs_object_CXX
=no
18778 export_dynamic_flag_spec_CXX
=
18779 hardcode_direct_CXX
=no
18780 hardcode_direct_absolute_CXX
=no
18781 hardcode_libdir_flag_spec_CXX
=
18782 hardcode_libdir_flag_spec_ld_CXX
=
18783 hardcode_libdir_separator_CXX
=
18784 hardcode_minus_L_CXX
=no
18785 hardcode_shlibpath_var_CXX
=unsupported
18786 hardcode_automatic_CXX
=no
18787 inherit_rpath_CXX
=no
18789 module_expsym_cmds_CXX
=
18790 link_all_deplibs_CXX
=unknown
18791 old_archive_cmds_CXX
=$old_archive_cmds
18792 reload_flag_CXX
=$reload_flag
18793 reload_cmds_CXX
=$reload_cmds
18794 no_undefined_flag_CXX
=
18795 whole_archive_flag_spec_CXX
=
18796 enable_shared_with_static_runtimes_CXX
=no
18798 # Source file extension for C++ test sources.
18801 # Object file extension for compiled C++ test sources.
18805 # No sense in running all these tests if we already determined that
18806 # the CXX compiler isn't working. Some variables (like enable_shared)
18807 # are currently assumed to apply to all compilers on this platform,
18808 # and will be corrupted by setting them based on a non-working compiler.
18809 if test "$_lt_caught_CXX_error" != yes; then
18810 # Code to be used in simple compile tests
18811 lt_simple_compile_test_code
="int some_variable = 0;"
18813 # Code to be used in simple link tests
18814 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18816 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18823 # If no C compiler was specified, use CC.
18826 # If no C compiler flags were specified, use CFLAGS.
18827 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18829 # Allow CC to be a program name with arguments.
18833 # save warnings/boilerplate of simple test code
18834 ac_outfile
=conftest.
$ac_objext
18835 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18836 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18837 _lt_compiler_boilerplate
=`cat conftest.err`
18840 ac_outfile
=conftest.
$ac_objext
18841 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18842 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18843 _lt_linker_boilerplate
=`cat conftest.err`
18847 # Allow CC to be a program name with arguments.
18852 lt_save_with_gnu_ld
=$with_gnu_ld
18853 lt_save_path_LD
=$lt_cv_path_LD
18854 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18855 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18857 $as_unset lt_cv_prog_gnu_ld
18859 if test -n "${lt_cv_path_LDCXX+set}"; then
18860 lt_cv_path_LD
=$lt_cv_path_LDCXX
18862 $as_unset lt_cv_path_LD
18864 test -z "${LDCXX+set}" || LD
=$LDCXX
18868 for cc_temp
in $compiler""; do
18870 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18871 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18876 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18879 if test -n "$compiler"; then
18880 # We don't want -fno-exception when compiling C++ code, so set the
18881 # no_builtin_flag separately
18882 if test "$GXX" = yes; then
18883 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18885 lt_prog_compiler_no_builtin_flag_CXX
=
18888 if test "$GXX" = yes; then
18889 # Set up default GNU C++ configuration
18893 # Check whether --with-gnu-ld was given.
18894 if test "${with_gnu_ld+set}" = set; then :
18895 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18901 if test "$GCC" = yes; then
18902 # Check if gcc -print-prog-name=ld gives a path.
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18904 $as_echo_n "checking for ld used by $CC... " >&6; }
18907 # gcc leaves a trailing carriage return which upsets mingw
18908 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18910 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18913 # Accept absolute paths.
18915 re_direlt
='/[^/][^/]*/\.\./'
18916 # Canonicalize the pathname of ld
18917 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18918 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18919 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18921 test -z "$LD" && LD
="$ac_prog"
18924 # If it fails, then pretend we aren't using GCC.
18928 # If it is relative, then search for the first ld in PATH.
18929 with_gnu_ld
=unknown
18932 elif test "$with_gnu_ld" = yes; then
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18934 $as_echo_n "checking for GNU ld... " >&6; }
18936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18937 $as_echo_n "checking for non-GNU ld... " >&6; }
18939 if test "${lt_cv_path_LD+set}" = set; then :
18940 $as_echo_n "(cached) " >&6
18942 if test -z "$LD"; then
18943 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18944 for ac_dir
in $PATH; do
18946 test -z "$ac_dir" && ac_dir
=.
18947 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18948 lt_cv_path_LD
="$ac_dir/$ac_prog"
18949 # Check to see if the program is GNU ld. I'd rather use --version,
18950 # but apparently some variants of GNU ld only accept -v.
18951 # Break only if it was the GNU/non-GNU ld that we prefer.
18952 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18953 *GNU
* |
*'with BFD'*)
18954 test "$with_gnu_ld" != no
&& break
18957 test "$with_gnu_ld" != yes && break
18964 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18968 LD
="$lt_cv_path_LD"
18969 if test -n "$LD"; then
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18971 $as_echo "$LD" >&6; }
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18974 $as_echo "no" >&6; }
18976 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18978 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18979 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18980 $as_echo_n "(cached) " >&6
18982 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18983 case `$LD -v 2>&1 </dev/null` in
18984 *GNU
* |
*'with BFD'*)
18985 lt_cv_prog_gnu_ld
=yes
18988 lt_cv_prog_gnu_ld
=no
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18993 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18994 with_gnu_ld
=$lt_cv_prog_gnu_ld
19002 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19003 # archiving commands below assume that GNU ld is being used.
19004 if test "$with_gnu_ld" = yes; then
19005 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19006 archive_expsym_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19008 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19009 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19011 # If archive_cmds runs LD, not CC, wlarc should be empty
19012 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19013 # investigate it a little bit more. (MM)
19016 # ancient GNU ld didn't support --whole-archive et. al.
19017 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19018 $GREP 'no-whole-archive' > /dev
/null
; then
19019 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19021 whole_archive_flag_spec_CXX
=
19027 # A generic and very simple default shared library creation
19028 # command for GNU C++ for the case where it uses the native
19029 # linker, instead of GNU ld. If possible, this setting should
19030 # overridden to take advantage of the native linker features on
19031 # the platform it is being used on.
19032 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19035 # Commands to make compiler produce verbose output that lists
19036 # what "hidden" libraries, object files and flags are used when
19037 # linking a shared library.
19038 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19046 # PORTME: fill in a description of your system's C++ link characteristics
19047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19048 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19052 # FIXME: insert proper C++ library support
19056 if test "$host_cpu" = ia64
; then
19057 # On IA64, the linker does run time linking by default, so we don't
19058 # have to do anything special.
19059 aix_use_runtimelinking
=no
19060 exp_sym_flag
='-Bexport'
19063 aix_use_runtimelinking
=no
19065 # Test if we are trying to use run time linking or normal
19066 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19067 # need to do runtime linking.
19068 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19069 for ld_flag
in $LDFLAGS; do
19072 aix_use_runtimelinking
=yes
19080 exp_sym_flag
='-bexport'
19081 no_entry_flag
='-bnoentry'
19084 # When large executables or shared objects are built, AIX ld can
19085 # have problems creating the table of contents. If linking a library
19086 # or program results in "error TOC overflow" add -mminimal-toc to
19087 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19088 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19090 archive_cmds_CXX
=''
19091 hardcode_direct_CXX
=yes
19092 hardcode_direct_absolute_CXX
=yes
19093 hardcode_libdir_separator_CXX
=':'
19094 link_all_deplibs_CXX
=yes
19095 file_list_spec_CXX
='${wl}-f,'
19097 if test "$GXX" = yes; then
19098 case $host_os in aix4.
[012]|aix4.
[012].
*)
19099 # We only want to do this on AIX 4.2 and lower, the check
19100 # below for broken collect2 doesn't work under 4.3+
19101 collect2name
=`${CC} -print-prog-name=collect2`
19102 if test -f "$collect2name" &&
19103 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19105 # We have reworked collect2
19108 # We have old collect2
19109 hardcode_direct_CXX
=unsupported
19110 # It fails to find uninstalled libraries when the uninstalled
19111 # path is not listed in the libpath. Setting hardcode_minus_L
19112 # to unsupported forces relinking
19113 hardcode_minus_L_CXX
=yes
19114 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19115 hardcode_libdir_separator_CXX
=
19118 shared_flag
='-shared'
19119 if test "$aix_use_runtimelinking" = yes; then
19120 shared_flag
="$shared_flag "'${wl}-G'
19124 if test "$host_cpu" = ia64
; then
19125 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19126 # chokes on -Wl,-G. The following line is correct:
19129 if test "$aix_use_runtimelinking" = yes; then
19130 shared_flag
='${wl}-G'
19132 shared_flag
='${wl}-bM:SRE'
19137 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19138 # It seems that -bexpall does not export symbols beginning with
19139 # underscore (_), so it is better to generate a list of symbols to
19141 always_export_symbols_CXX
=yes
19142 if test "$aix_use_runtimelinking" = yes; then
19143 # Warning - without using the other runtime loading flags (-brtl),
19144 # -berok will link without error, but may produce a broken library.
19145 allow_undefined_flag_CXX
='-berok'
19146 # Determine the default libpath from the value encoded in an empty
19148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19149 /* end confdefs.h. */
19159 if ac_fn_cxx_try_link
"$LINENO"; then :
19161 lt_aix_libpath_sed
='
19162 /Import File Strings/,/^$/ {
19168 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19169 # Check for a 64-bit object if we didn't find anything.
19170 if test -z "$aix_libpath"; then
19171 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19174 rm -f core conftest.err conftest.
$ac_objext \
19175 conftest
$ac_exeext conftest.
$ac_ext
19176 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19178 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19180 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"
19182 if test "$host_cpu" = ia64
; then
19183 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19184 allow_undefined_flag_CXX
="-z nodefs"
19185 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"
19187 # Determine the default libpath from the value encoded in an
19188 # empty executable.
19189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19190 /* end confdefs.h. */
19200 if ac_fn_cxx_try_link
"$LINENO"; then :
19202 lt_aix_libpath_sed
='
19203 /Import File Strings/,/^$/ {
19209 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19210 # Check for a 64-bit object if we didn't find anything.
19211 if test -z "$aix_libpath"; then
19212 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19215 rm -f core conftest.err conftest.
$ac_objext \
19216 conftest
$ac_exeext conftest.
$ac_ext
19217 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19219 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19220 # Warning - without using the other run time loading flags,
19221 # -berok will link without error, but may produce a broken library.
19222 no_undefined_flag_CXX
=' ${wl}-bernotok'
19223 allow_undefined_flag_CXX
=' ${wl}-berok'
19224 if test "$with_gnu_ld" = yes; then
19225 # We only use this code for GNU lds that support --whole-archive.
19226 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19228 # Exported symbols can be pulled into shared objects from archives
19229 whole_archive_flag_spec_CXX
='$convenience'
19231 archive_cmds_need_lc_CXX
=yes
19232 # This is similar to how AIX traditionally builds its shared
19234 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'
19240 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19241 allow_undefined_flag_CXX
=unsupported
19242 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19243 # support --undefined. This deserves some investigation. FIXME
19244 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19251 case $cc_basename in
19253 # FIXME: insert proper C++ library support
19259 cygwin
* | mingw
* | pw32
* | cegcc
*)
19260 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19261 # as there is no search path for DLLs.
19262 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19263 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19264 allow_undefined_flag_CXX
=unsupported
19265 always_export_symbols_CXX
=no
19266 enable_shared_with_static_runtimes_CXX
=yes
19268 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19269 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'
19270 # If the export-symbols file already is a .def file (1st line
19271 # is EXPORTS), use it as is; otherwise, prepend...
19272 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19273 cp $export_symbols $output_objdir/$soname.def;
19275 echo EXPORTS > $output_objdir/$soname.def;
19276 cat $export_symbols >> $output_objdir/$soname.def;
19278 $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'
19283 darwin
* | rhapsody
*)
19286 archive_cmds_need_lc_CXX
=no
19287 hardcode_direct_CXX
=no
19288 hardcode_automatic_CXX
=yes
19289 hardcode_shlibpath_var_CXX
=unsupported
19290 if test "$lt_cv_ld_force_load" = "yes"; then
19291 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\"`'
19293 whole_archive_flag_spec_CXX
=''
19295 link_all_deplibs_CXX
=yes
19296 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19297 case $cc_basename in
19298 ifort
*) _lt_dar_can_shared
=yes ;;
19299 *) _lt_dar_can_shared
=$GCC ;;
19301 if test "$_lt_dar_can_shared" = "yes"; then
19302 output_verbose_link_cmd
=func_echo_all
19303 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}"
19304 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19305 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}"
19306 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}"
19307 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19308 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}"
19309 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}"
19319 case $cc_basename in
19321 # FIXME: insert proper C++ library support
19325 # Green Hills C++ Compiler
19326 # FIXME: insert proper C++ library support
19330 # FIXME: insert proper C++ library support
19337 # C++ shared libraries reported to be fairly broken before
19343 archive_cmds_need_lc_CXX
=no
19346 freebsd
* | dragonfly
*)
19347 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19356 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19357 link_all_deplibs_CXX
=yes
19361 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19362 hardcode_libdir_separator_CXX
=:
19363 export_dynamic_flag_spec_CXX
='${wl}-E'
19364 hardcode_direct_CXX
=yes
19365 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19366 # but as the default
19367 # location of the library.
19369 case $cc_basename in
19371 # FIXME: insert proper C++ library support
19375 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'
19376 # Commands to make compiler produce verbose output that lists
19377 # what "hidden" libraries, object files and flags are used when
19378 # linking a shared library.
19380 # There doesn't appear to be a way to prevent this compiler from
19381 # explicitly linking system object files so we need to strip them
19382 # from the output so that they don't get included in the library
19384 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"'
19387 if test "$GXX" = yes; then
19388 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'
19390 # FIXME: insert proper C++ library support
19398 if test $with_gnu_ld = no
; then
19399 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19400 hardcode_libdir_separator_CXX
=:
19406 export_dynamic_flag_spec_CXX
='${wl}-E'
19412 hardcode_direct_CXX
=no
19413 hardcode_shlibpath_var_CXX
=no
19416 hardcode_direct_CXX
=yes
19417 hardcode_direct_absolute_CXX
=yes
19418 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19419 # but as the default
19420 # location of the library.
19424 case $cc_basename in
19426 # FIXME: insert proper C++ library support
19432 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19435 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19438 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19441 # Commands to make compiler produce verbose output that lists
19442 # what "hidden" libraries, object files and flags are used when
19443 # linking a shared library.
19445 # There doesn't appear to be a way to prevent this compiler from
19446 # explicitly linking system object files so we need to strip them
19447 # from the output so that they don't get included in the library
19449 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"'
19452 if test "$GXX" = yes; then
19453 if test $with_gnu_ld = no
; then
19456 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19459 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19462 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'
19467 # FIXME: insert proper C++ library support
19475 hardcode_direct_CXX
=no
19476 hardcode_shlibpath_var_CXX
=no
19477 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19478 export_dynamic_flag_spec_CXX
='${wl}-E'
19479 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19480 # Instead, shared libraries are loaded at an image base (0x10000000 by
19481 # default) and relocated if they conflict, which is a slow very memory
19482 # consuming and fragmenting process. To avoid this, we pick a random,
19483 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19484 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19485 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'
19486 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'
19489 case $cc_basename in
19492 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'
19494 # Archives containing C++ object files must be created using
19495 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19496 # necessary to make sure instantiated templates are included
19498 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19501 if test "$GXX" = yes; then
19502 if test "$with_gnu_ld" = no
; then
19503 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'
19505 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'
19508 link_all_deplibs_CXX
=yes
19511 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19512 hardcode_libdir_separator_CXX
=:
19513 inherit_rpath_CXX
=yes
19516 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19517 case $cc_basename in
19519 # Kuck and Associates, Inc. (KAI) C++ Compiler
19521 # KCC will only create a shared library if the output file
19522 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19523 # to its proper name (with version) after linking.
19524 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'
19525 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'
19526 # Commands to make compiler produce verbose output that lists
19527 # what "hidden" libraries, object files and flags are used when
19528 # linking a shared library.
19530 # There doesn't appear to be a way to prevent this compiler from
19531 # explicitly linking system object files so we need to strip them
19532 # from the output so that they don't get included in the library
19534 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"'
19536 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19537 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19539 # Archives containing C++ object files must be created using
19540 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19541 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19546 # version 8.0 and above of icpc choke on multiply defined symbols
19547 # if we add $predep_objects and $postdep_objects, however 7.1 and
19548 # earlier do not add the objects themselves.
19549 case `$CC -V 2>&1` in
19551 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19552 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'
19554 *) # Version 8.0 or newer
19557 ia64
*) tmp_idyn
=' -i_dynamic';;
19559 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19560 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'
19563 archive_cmds_need_lc_CXX
=no
19564 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19565 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19566 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19569 # Portland Group C++ compiler
19571 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19572 prelink_cmds_CXX
='tpldir=Template.dir~
19574 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19575 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19576 old_archive_cmds_CXX
='tpldir=Template.dir~
19578 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19579 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19581 archive_cmds_CXX
='tpldir=Template.dir~
19583 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19584 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19585 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19587 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19588 $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'
19590 *) # Version 6 and above use weak symbols
19591 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19592 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'
19596 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19597 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19598 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'
19602 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19603 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'
19605 runpath_var
=LD_RUN_PATH
19606 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19607 hardcode_libdir_separator_CXX
=:
19609 # Commands to make compiler produce verbose output that lists
19610 # what "hidden" libraries, object files and flags are used when
19611 # linking a shared library.
19613 # There doesn't appear to be a way to prevent this compiler from
19614 # explicitly linking system object files so we need to strip them
19615 # from the output so that they don't get included in the library
19617 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'
19619 xl
* | mpixl
* | bgxl
*)
19620 # IBM XL 8.0 on PPC, with GNU ld
19621 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19622 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19623 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19624 if test "x$supports_anon_versioning" = xyes
; then
19625 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19626 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19627 echo "local: *; };" >> $output_objdir/$libname.ver~
19628 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19632 case `$CC -V 2>&1 | sed 5q` in
19635 no_undefined_flag_CXX
=' -zdefs'
19636 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19637 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'
19638 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19639 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'
19640 compiler_needs_object_CXX
=yes
19642 # Not sure whether something based on
19643 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19645 output_verbose_link_cmd
='func_echo_all'
19647 # Archives containing C++ object files must be created using
19648 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19649 # necessary to make sure instantiated templates are included
19651 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19659 # FIXME: insert proper C++ library support
19664 # FIXME: insert proper C++ library support
19669 case $cc_basename in
19671 # FIXME: insert proper C++ library support
19675 # FIXME: insert proper C++ library support
19682 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19683 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19685 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19686 hardcode_direct_CXX
=yes
19687 hardcode_shlibpath_var_CXX
=no
19689 # Workaround some broken pre-1.5 toolchains
19690 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19698 # C++ shared libraries are fairly broken
19703 if test -f /usr
/libexec
/ld.so
; then
19704 hardcode_direct_CXX
=yes
19705 hardcode_shlibpath_var_CXX
=no
19706 hardcode_direct_absolute_CXX
=yes
19707 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19708 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19709 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19710 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19711 export_dynamic_flag_spec_CXX
='${wl}-E'
19712 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19714 output_verbose_link_cmd
=func_echo_all
19720 osf3
* | osf4
* | osf5
*)
19721 case $cc_basename in
19723 # Kuck and Associates, Inc. (KAI) C++ Compiler
19725 # KCC will only create a shared library if the output file
19726 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19727 # to its proper name (with version) after linking.
19728 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'
19730 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19731 hardcode_libdir_separator_CXX
=:
19733 # Archives containing C++ object files must be created using
19734 # the KAI C++ compiler.
19736 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19737 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19741 # Rational C++ 2.4.1
19742 # FIXME: insert proper C++ library support
19748 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19749 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'
19750 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19753 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19754 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'
19755 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19756 echo "-hidden">> $lib.exp~
19757 $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~
19759 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19763 hardcode_libdir_separator_CXX
=:
19765 # Commands to make compiler produce verbose output that lists
19766 # what "hidden" libraries, object files and flags are used when
19767 # linking a shared library.
19769 # There doesn't appear to be a way to prevent this compiler from
19770 # explicitly linking system object files so we need to strip them
19771 # from the output so that they don't get included in the library
19773 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"'
19776 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19777 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19780 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'
19783 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'
19787 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19788 hardcode_libdir_separator_CXX
=:
19790 # Commands to make compiler produce verbose output that lists
19791 # what "hidden" libraries, object files and flags are used when
19792 # linking a shared library.
19793 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19796 # FIXME: insert proper C++ library support
19804 # FIXME: insert proper C++ library support
19809 case $cc_basename in
19812 # FIXME: insert proper C++ library support
19817 # FIXME: insert proper C++ library support
19821 # FIXME: insert proper C++ library support
19828 case $cc_basename in
19830 # Sun C++ 4.2, 5.x and Centerline C++
19831 archive_cmds_need_lc_CXX
=yes
19832 no_undefined_flag_CXX
=' -zdefs'
19833 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19834 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19835 $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'
19837 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19838 hardcode_shlibpath_var_CXX
=no
19840 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19842 # The compiler driver will combine and reorder linker options,
19843 # but understands `-z linker_flag'.
19844 # Supported since Solaris 2.6 (maybe 2.5.1?)
19845 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19848 link_all_deplibs_CXX
=yes
19850 output_verbose_link_cmd
='func_echo_all'
19852 # Archives containing C++ object files must be created using
19853 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19854 # necessary to make sure instantiated templates are included
19856 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19859 # Green Hills C++ Compiler
19860 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19862 # The C++ compiler must be used to create the archive.
19863 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19866 # GNU C++ compiler with Solaris linker
19867 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19868 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19869 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19870 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19871 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19872 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19874 # Commands to make compiler produce verbose output that lists
19875 # what "hidden" libraries, object files and flags are used when
19876 # linking a shared library.
19877 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19879 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19881 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19882 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19883 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19885 # Commands to make compiler produce verbose output that lists
19886 # what "hidden" libraries, object files and flags are used when
19887 # linking a shared library.
19888 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19891 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19893 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19895 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19903 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19904 no_undefined_flag_CXX
='${wl}-z,text'
19905 archive_cmds_need_lc_CXX
=no
19906 hardcode_shlibpath_var_CXX
=no
19907 runpath_var
='LD_RUN_PATH'
19909 case $cc_basename in
19911 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19912 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19915 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19916 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19921 sysv5
* | sco3.2v5
* | sco5v6
*)
19922 # Note: We can NOT use -z defs as we might desire, because we do not
19923 # link with -lc, and that would cause any symbols used from libc to
19924 # always be unresolved, which means just about no library would
19925 # ever link correctly. If we're not using GNU ld we use -z text
19926 # though, which does catch some bad symbols but isn't as heavy-handed
19928 no_undefined_flag_CXX
='${wl}-z,text'
19929 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19930 archive_cmds_need_lc_CXX
=no
19931 hardcode_shlibpath_var_CXX
=no
19932 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19933 hardcode_libdir_separator_CXX
=':'
19934 link_all_deplibs_CXX
=yes
19935 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19936 runpath_var
='LD_RUN_PATH'
19938 case $cc_basename in
19940 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19941 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19942 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19943 '"$old_archive_cmds_CXX"
19944 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19945 '"$reload_cmds_CXX"
19948 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19949 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19955 case $cc_basename in
19957 # NonStop-UX NCC 3.20
19958 # FIXME: insert proper C++ library support
19962 # FIXME: insert proper C++ library support
19969 # FIXME: insert proper C++ library support
19974 # FIXME: insert proper C++ library support
19979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19980 $as_echo "$ld_shlibs_CXX" >&6; }
19981 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19987 ## There is no encapsulation within the following macros, do not change
19988 ## the running order or otherwise move them around unless you know exactly
19989 ## what you are doing...
19990 # Dependencies to place before and after the object being linked:
19991 predep_objects_CXX
=
19992 postdep_objects_CXX
=
19995 compiler_lib_search_path_CXX
=
19997 cat > conftest.
$ac_ext <<_LT_EOF
20001 Foo (void) { a = 0; }
20007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20008 (eval $ac_compile) 2>&5
20010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20011 test $ac_status = 0; }; then
20012 # Parse the compiler output and extract the necessary
20013 # objects, libraries and library flags.
20015 # Sentinel used to keep track of whether or not we are before
20016 # the conftest object file.
20017 pre_test_object_deps_done
=no
20019 for p
in `eval "$output_verbose_link_cmd"`; do
20023 # Some compilers place space between "-{L,R}" and the path.
20024 # Remove the space.
20025 if test $p = "-L" ||
20026 test $p = "-R"; then
20033 if test "$pre_test_object_deps_done" = no
; then
20036 # Internal compiler library paths should come after those
20037 # provided the user. The postdeps already come after the
20038 # user supplied libs so there is no need to process them.
20039 if test -z "$compiler_lib_search_path_CXX"; then
20040 compiler_lib_search_path_CXX
="${prev}${p}"
20042 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20045 # The "-l" case would never come before the object being
20046 # linked, so don't bother handling this case.
20049 if test -z "$postdeps_CXX"; then
20050 postdeps_CXX
="${prev}${p}"
20052 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20058 # This assumes that the test object file only shows up
20059 # once in the compiler output.
20060 if test "$p" = "conftest.$objext"; then
20061 pre_test_object_deps_done
=yes
20065 if test "$pre_test_object_deps_done" = no
; then
20066 if test -z "$predep_objects_CXX"; then
20067 predep_objects_CXX
="$p"
20069 predep_objects_CXX
="$predep_objects_CXX $p"
20072 if test -z "$postdep_objects_CXX"; then
20073 postdep_objects_CXX
="$p"
20075 postdep_objects_CXX
="$postdep_objects_CXX $p"
20080 *) ;; # Ignore the rest.
20088 echo "libtool.m4: error: problem compiling CXX test program"
20091 $RM -f confest.
$objext
20093 # PORTME: override above test on systems where it is broken
20096 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20097 # hack all around it, let's just trust "g++" to DTRT.
20098 predep_objects_CXX
=
20099 postdep_objects_CXX
=
20104 case `$CC -V 2>&1 | sed 5q` in
20108 # The more standards-conforming stlport4 library is
20109 # incompatible with the Cstd library. Avoid specifying
20110 # it if it's in CXXFLAGS. Ignore libCrun as
20111 # -library=stlport4 depends on it.
20112 case " $CXX $CXXFLAGS " in
20113 *" -library=stlport4 "*)
20114 solaris_use_stlport4
=yes
20118 if test "$solaris_use_stlport4" != yes; then
20119 postdeps_CXX
='-library=Cstd -library=Crun'
20126 case $cc_basename in
20128 # The more standards-conforming stlport4 library is
20129 # incompatible with the Cstd library. Avoid specifying
20130 # it if it's in CXXFLAGS. Ignore libCrun as
20131 # -library=stlport4 depends on it.
20132 case " $CXX $CXXFLAGS " in
20133 *" -library=stlport4 "*)
20134 solaris_use_stlport4
=yes
20138 # Adding this requires a known-good setup of shared libraries for
20139 # Sun compiler versions before 5.6, else PIC objects from an old
20140 # archive will be linked into the output, leading to subtle bugs.
20141 if test "$solaris_use_stlport4" != yes; then
20142 postdeps_CXX
='-library=Cstd -library=Crun'
20150 case " $postdeps_CXX " in
20151 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20153 compiler_lib_search_dirs_CXX
=
20154 if test -n "${compiler_lib_search_path_CXX}"; then
20155 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20188 lt_prog_compiler_wl_CXX
=
20189 lt_prog_compiler_pic_CXX
=
20190 lt_prog_compiler_static_CXX
=
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20193 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20195 # C++ specific cases for pic, static, wl, etc.
20196 if test "$GXX" = yes; then
20197 lt_prog_compiler_wl_CXX
='-Wl,'
20198 lt_prog_compiler_static_CXX
='-static'
20202 # All AIX code is PIC.
20203 if test "$host_cpu" = ia64
; then
20204 # AIX 5 now supports IA64 processor
20205 lt_prog_compiler_static_CXX
='-Bstatic'
20207 lt_prog_compiler_pic_CXX
='-fPIC'
20213 # see comment about AmigaOS4 .so support
20214 lt_prog_compiler_pic_CXX
='-fPIC'
20217 # FIXME: we need at least 68020 code to build shared libraries, but
20218 # adding the `-m68020' flag to GCC prevents building anything better,
20220 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20225 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20226 # PIC is the default for these OSes.
20228 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20229 # This hack is so that the source file can tell whether it is being
20230 # built for inclusion in a dll (and should export symbols for example).
20231 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20232 # (--disable-auto-import) libraries
20233 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20235 darwin
* | rhapsody
*)
20236 # PIC is the default on this platform
20237 # Common symbols not allowed in MH_DYLIB files
20238 lt_prog_compiler_pic_CXX
='-fno-common'
20241 # DJGPP does not support shared libraries at all
20242 lt_prog_compiler_pic_CXX
=
20245 # PIC is the default for Haiku.
20246 # The "-static" flag exists, but is broken.
20247 lt_prog_compiler_static_CXX
=
20250 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20251 # Instead, we relocate shared libraries at runtime.
20254 if test -d /usr
/nec
; then
20255 lt_prog_compiler_pic_CXX
=-Kconform_pic
20259 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20260 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20261 # sets the default TLS model and affects inlining.
20266 lt_prog_compiler_pic_CXX
='-fPIC'
20271 # QNX uses GNU C++, but need to define -shared option too, otherwise
20272 # it will coredump.
20273 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20276 lt_prog_compiler_pic_CXX
='-fPIC'
20282 # All AIX code is PIC.
20283 if test "$host_cpu" = ia64
; then
20284 # AIX 5 now supports IA64 processor
20285 lt_prog_compiler_static_CXX
='-Bstatic'
20287 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20291 case $cc_basename in
20293 # Green Hills C++ Compiler
20294 # _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"
20299 case $cc_basename in
20301 lt_prog_compiler_pic_CXX
='-KPIC'
20304 # Green Hills C++ Compiler
20305 lt_prog_compiler_pic_CXX
='-pic'
20311 freebsd
* | dragonfly
*)
20312 # FreeBSD uses GNU C++
20314 hpux9
* | hpux10
* | hpux11
*)
20315 case $cc_basename in
20317 lt_prog_compiler_wl_CXX
='-Wl,'
20318 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20319 if test "$host_cpu" != ia64
; then
20320 lt_prog_compiler_pic_CXX
='+Z'
20324 lt_prog_compiler_wl_CXX
='-Wl,'
20325 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20331 lt_prog_compiler_pic_CXX
='+Z'
20340 # This is c89, which is MS Visual C++ (no shared libs)
20341 # Anyone wants to do a port?
20343 irix5
* | irix6
* | nonstopux
*)
20344 case $cc_basename in
20346 lt_prog_compiler_wl_CXX
='-Wl,'
20347 lt_prog_compiler_static_CXX
='-non_shared'
20348 # CC pic flag -KPIC is the default.
20354 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20355 case $cc_basename in
20358 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20359 lt_prog_compiler_pic_CXX
='-fPIC'
20362 # old Intel C++ for x86_64 which still supported -KPIC.
20363 lt_prog_compiler_wl_CXX
='-Wl,'
20364 lt_prog_compiler_pic_CXX
='-KPIC'
20365 lt_prog_compiler_static_CXX
='-static'
20368 # Intel C++, used to be incompatible with GCC.
20369 # ICC 10 doesn't accept -KPIC any more.
20370 lt_prog_compiler_wl_CXX
='-Wl,'
20371 lt_prog_compiler_pic_CXX
='-fPIC'
20372 lt_prog_compiler_static_CXX
='-static'
20375 # Portland Group C++ compiler
20376 lt_prog_compiler_wl_CXX
='-Wl,'
20377 lt_prog_compiler_pic_CXX
='-fpic'
20378 lt_prog_compiler_static_CXX
='-Bstatic'
20382 # Make sure the PIC flag is empty. It appears that all Alpha
20383 # Linux and Compaq Tru64 Unix objects are PIC.
20384 lt_prog_compiler_pic_CXX
=
20385 lt_prog_compiler_static_CXX
='-non_shared'
20387 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20388 # IBM XL 8.0, 9.0 on PPC and BlueGene
20389 lt_prog_compiler_wl_CXX
='-Wl,'
20390 lt_prog_compiler_pic_CXX
='-qpic'
20391 lt_prog_compiler_static_CXX
='-qstaticlink'
20394 case `$CC -V 2>&1 | sed 5q` in
20397 lt_prog_compiler_pic_CXX
='-KPIC'
20398 lt_prog_compiler_static_CXX
='-Bstatic'
20399 lt_prog_compiler_wl_CXX
='-Qoption ld '
20410 case $cc_basename in
20412 lt_prog_compiler_pic_CXX
='-W c,exportall'
20421 # QNX uses GNU C++, but need to define -shared option too, otherwise
20422 # it will coredump.
20423 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20425 osf3
* | osf4
* | osf5
*)
20426 case $cc_basename in
20428 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20431 # Rational C++ 2.4.1
20432 lt_prog_compiler_pic_CXX
='-pic'
20435 # Digital/Compaq C++
20436 lt_prog_compiler_wl_CXX
='-Wl,'
20437 # Make sure the PIC flag is empty. It appears that all Alpha
20438 # Linux and Compaq Tru64 Unix objects are PIC.
20439 lt_prog_compiler_pic_CXX
=
20440 lt_prog_compiler_static_CXX
='-non_shared'
20449 case $cc_basename in
20451 # Sun C++ 4.2, 5.x and Centerline C++
20452 lt_prog_compiler_pic_CXX
='-KPIC'
20453 lt_prog_compiler_static_CXX
='-Bstatic'
20454 lt_prog_compiler_wl_CXX
='-Qoption ld '
20457 # Green Hills C++ Compiler
20458 lt_prog_compiler_pic_CXX
='-PIC'
20465 case $cc_basename in
20468 lt_prog_compiler_pic_CXX
='-pic'
20469 lt_prog_compiler_static_CXX
='-Bstatic'
20473 lt_prog_compiler_pic_CXX
='-pic'
20479 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20480 case $cc_basename in
20482 lt_prog_compiler_wl_CXX
='-Wl,'
20483 lt_prog_compiler_pic_CXX
='-KPIC'
20484 lt_prog_compiler_static_CXX
='-Bstatic'
20489 case $cc_basename in
20491 # NonStop-UX NCC 3.20
20492 lt_prog_compiler_pic_CXX
='-KPIC'
20501 lt_prog_compiler_can_build_shared_CXX
=no
20507 # For platforms which do not support PIC, -DPIC is meaningless:
20509 lt_prog_compiler_pic_CXX
=
20512 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20516 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20521 # Check to make sure the PIC flag actually works.
20523 if test -n "$lt_prog_compiler_pic_CXX"; then
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20525 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20526 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20527 $as_echo_n "(cached) " >&6
20529 lt_cv_prog_compiler_pic_works_CXX
=no
20530 ac_outfile
=conftest.
$ac_objext
20531 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20532 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20533 # Insert the option either (1) after the last *FLAGS variable, or
20534 # (2) before a word containing "conftest.", or (3) at the end.
20535 # Note that $ac_compile itself does not contain backslashes and begins
20536 # with a dollar sign (not a hyphen), so the echo should work correctly.
20537 # The option is referenced via a variable to avoid confusing sed.
20538 lt_compile
=`echo "$ac_compile" | $SED \
20539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20541 -e 's:$: $lt_compiler_flag:'`
20542 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20543 (eval "$lt_compile" 2>conftest.err
)
20545 cat conftest.err
>&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 if (exit $ac_status) && test -s "$ac_outfile"; then
20548 # The compiler can only warn and ignore the option if not recognized
20549 # So say no if there are warnings other than the usual output.
20550 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20551 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20552 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20553 lt_cv_prog_compiler_pic_works_CXX
=yes
20559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20560 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20562 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20563 case $lt_prog_compiler_pic_CXX in
20565 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20568 lt_prog_compiler_pic_CXX
=
20569 lt_prog_compiler_can_build_shared_CXX
=no
20577 # Check to make sure the static flag actually works.
20579 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20581 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20582 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20583 $as_echo_n "(cached) " >&6
20585 lt_cv_prog_compiler_static_works_CXX
=no
20586 save_LDFLAGS
="$LDFLAGS"
20587 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20588 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20589 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20590 # The linker can only warn and ignore the option if not recognized
20591 # So say no if there are warnings
20592 if test -s conftest.err
; then
20593 # Append any errors to the config.log.
20594 cat conftest.err
1>&5
20595 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20596 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20597 if diff conftest.exp conftest.er2
>/dev
/null
; then
20598 lt_cv_prog_compiler_static_works_CXX
=yes
20601 lt_cv_prog_compiler_static_works_CXX
=yes
20605 LDFLAGS
="$save_LDFLAGS"
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20609 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20611 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20614 lt_prog_compiler_static_CXX
=
20620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20621 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20622 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20623 $as_echo_n "(cached) " >&6
20625 lt_cv_prog_compiler_c_o_CXX
=no
20626 $RM -r conftest
2>/dev
/null
20630 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20632 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20633 # Insert the option either (1) after the last *FLAGS variable, or
20634 # (2) before a word containing "conftest.", or (3) at the end.
20635 # Note that $ac_compile itself does not contain backslashes and begins
20636 # with a dollar sign (not a hyphen), so the echo should work correctly.
20637 lt_compile
=`echo "$ac_compile" | $SED \
20638 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20639 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20640 -e 's:$: $lt_compiler_flag:'`
20641 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20642 (eval "$lt_compile" 2>out
/conftest.err
)
20644 cat out
/conftest.err
>&5
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20648 # The compiler can only warn and ignore the option if not recognized
20649 # So say no if there are warnings
20650 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20651 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20652 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20653 lt_cv_prog_compiler_c_o_CXX
=yes
20658 # SGI C++ compiler will create directory out/ii_files/ for
20659 # template instantiation
20660 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20661 $RM out
/* && rmdir out
20667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20668 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20673 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20674 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20675 $as_echo_n "(cached) " >&6
20677 lt_cv_prog_compiler_c_o_CXX
=no
20678 $RM -r conftest
2>/dev
/null
20682 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20684 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20685 # Insert the option either (1) after the last *FLAGS variable, or
20686 # (2) before a word containing "conftest.", or (3) at the end.
20687 # Note that $ac_compile itself does not contain backslashes and begins
20688 # with a dollar sign (not a hyphen), so the echo should work correctly.
20689 lt_compile
=`echo "$ac_compile" | $SED \
20690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20692 -e 's:$: $lt_compiler_flag:'`
20693 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20694 (eval "$lt_compile" 2>out
/conftest.err
)
20696 cat out
/conftest.err
>&5
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20700 # The compiler can only warn and ignore the option if not recognized
20701 # So say no if there are warnings
20702 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20703 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20704 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20705 lt_cv_prog_compiler_c_o_CXX
=yes
20710 # SGI C++ compiler will create directory out/ii_files/ for
20711 # template instantiation
20712 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20713 $RM out
/* && rmdir out
20719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20720 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20725 hard_links
="nottested"
20726 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20727 # do not overwrite the value of need_locks provided by the user
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20729 $as_echo_n "checking if we can lock with hard links... " >&6; }
20732 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20734 ln conftest.a conftest.b
2>&5 || hard_links
=no
20735 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20737 $as_echo "$hard_links" >&6; }
20738 if test "$hard_links" = no
; then
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20740 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20750 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20752 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20755 # If we're using GNU nm, then we don't want the "-C" option.
20756 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20757 # Also, AIX nm treats weak defined symbols like other global defined
20758 # symbols, whereas GNU nm marks them as "W".
20759 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20760 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'
20762 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'
20766 export_symbols_cmds_CXX
="$ltdll_cmds"
20768 cygwin
* | mingw
* | cegcc
*)
20769 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'
20772 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20775 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20778 $as_echo "$ld_shlibs_CXX" >&6; }
20779 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20781 with_gnu_ld_CXX
=$with_gnu_ld
20789 # Do we need to explicitly link libc?
20791 case "x$archive_cmds_need_lc_CXX" in
20793 # Assume -lc should be added
20794 archive_cmds_need_lc_CXX
=yes
20796 if test "$enable_shared" = yes && test "$GCC" = yes; then
20797 case $archive_cmds_CXX in
20799 # FIXME: we may have to deal with multi-command sequences.
20802 # Test whether the compiler implicitly links with -lc since on some
20803 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20804 # to ld, don't add -lc before -lgcc.
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20806 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20807 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20808 $as_echo_n "(cached) " >&6
20811 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20814 (eval $ac_compile) 2>&5
20816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20817 test $ac_status = 0; } 2>conftest.err
; then
20820 libobjs
=conftest.
$ac_objext
20822 wl
=$lt_prog_compiler_wl_CXX
20823 pic_flag
=$lt_prog_compiler_pic_CXX
20829 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20830 allow_undefined_flag_CXX
=
20831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20832 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20835 test $ac_status = 0; }
20837 lt_cv_archive_cmds_need_lc_CXX
=no
20839 lt_cv_archive_cmds_need_lc_CXX
=yes
20841 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20843 cat conftest.err
1>&5
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20849 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20850 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20921 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20923 library_names_spec
=
20924 libname_spec
='lib$name'
20928 postuninstall_cmds
=
20932 shlibpath_overrides_runpath
=unknown
20934 dynamic_linker
="$host_os ld.so"
20935 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20936 need_lib_prefix
=unknown
20937 hardcode_into_libs
=no
20939 # when you set need_version to no, make sure it does not cause -set_version
20940 # flags to be left without arguments
20941 need_version
=unknown
20946 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20947 shlibpath_var
=LIBPATH
20949 # AIX 3 has no versioning support, so we append a major version to the name.
20950 soname_spec
='${libname}${release}${shared_ext}$major'
20957 hardcode_into_libs
=yes
20958 if test "$host_cpu" = ia64
; then
20959 # AIX 5 supports IA64
20960 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20961 shlibpath_var
=LD_LIBRARY_PATH
20963 # With GCC up to 2.95.x, collect2 would create an import file
20964 # for dependence libraries. The import file would start with
20965 # the line `#! .'. This would cause the generated library to
20966 # depend on `.', always an invalid library. This was fixed in
20967 # development snapshots of GCC prior to 3.0.
20969 aix4 | aix4.
[01] | aix4.
[01].
*)
20970 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20972 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20975 can_build_shared
=no
20979 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20980 # soname into executable. Probably we can add versioning support to
20981 # collect2, so additional links can be useful in future.
20982 if test "$aix_use_runtimelinking" = yes; then
20983 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20984 # instead of lib<name>.a to let people know that these are not
20985 # typical AIX shared libraries.
20986 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20988 # We preserve .a as extension for shared libraries through AIX4.2
20989 # and later when we are not doing run time linking.
20990 library_names_spec
='${libname}${release}.a $libname.a'
20991 soname_spec
='${libname}${release}${shared_ext}$major'
20993 shlibpath_var
=LIBPATH
21000 # Since July 2007 AmigaOS4 officially supports .so libraries.
21001 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21002 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21005 library_names_spec
='$libname.ixlibrary $libname.a'
21006 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21007 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'
21013 library_names_spec
='${libname}${shared_ext}'
21014 dynamic_linker
="$host_os ld.so"
21015 shlibpath_var
=LIBRARY_PATH
21021 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21022 soname_spec
='${libname}${release}${shared_ext}$major'
21023 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21024 shlibpath_var
=LD_LIBRARY_PATH
21025 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21026 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21027 # the default ld.so.conf also contains /usr/contrib/lib and
21028 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21029 # libtool to hard-code these into programs
21032 cygwin
* | mingw
* | pw32
* | cegcc
*)
21033 version_type
=windows
21038 case $GCC,$host_os in
21039 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21040 library_names_spec
='$libname.dll.a'
21041 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21042 postinstall_cmds
='base_file=`basename \${file}`~
21043 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21044 dldir=$destdir/`dirname \$dlpath`~
21045 test -d \$dldir || mkdir -p \$dldir~
21046 $install_prog $dir/$dlname \$dldir/$dlname~
21047 chmod a+x \$dldir/$dlname~
21048 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21049 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21051 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21052 dlpath=$dir/\$dldll~
21054 shlibpath_overrides_runpath
=yes
21058 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21059 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21063 # MinGW DLLs use traditional 'lib' prefix
21064 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21067 # pw32 DLLs use 'pw' prefix rather than 'lib'
21068 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21074 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21077 dynamic_linker
='Win32 ld.exe'
21078 # FIXME: first we should search . and the directory the executable is in
21082 darwin
* | rhapsody
*)
21083 dynamic_linker
="$host_os dyld"
21084 version_type
=darwin
21087 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21088 soname_spec
='${libname}${release}${major}$shared_ext'
21089 shlibpath_overrides_runpath
=yes
21090 shlibpath_var
=DYLD_LIBRARY_PATH
21091 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21093 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21100 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21101 soname_spec
='${libname}${release}${shared_ext}$major'
21102 shlibpath_var
=LD_LIBRARY_PATH
21105 freebsd
* | dragonfly
*)
21106 # DragonFly does not have aout. When/if they implement a new
21107 # versioning mechanism, adjust this.
21108 if test -x /usr
/bin
/objformat
; then
21109 objformat
=`/usr/bin/objformat`
21112 freebsd
[23].
*) objformat
=aout
;;
21113 *) objformat
=elf
;;
21116 version_type
=freebsd-
$objformat
21117 case $version_type in
21119 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21124 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21128 shlibpath_var
=LD_LIBRARY_PATH
21131 shlibpath_overrides_runpath
=yes
21133 freebsd3.
[01]* | freebsdelf3.
[01]*)
21134 shlibpath_overrides_runpath
=yes
21135 hardcode_into_libs
=yes
21137 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21138 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21139 shlibpath_overrides_runpath
=no
21140 hardcode_into_libs
=yes
21142 *) # from 4.6 on, and DragonFly
21143 shlibpath_overrides_runpath
=yes
21144 hardcode_into_libs
=yes
21153 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21154 soname_spec
='${libname}${release}${shared_ext}$major'
21155 shlibpath_var
=LD_LIBRARY_PATH
21156 hardcode_into_libs
=yes
21163 dynamic_linker
="$host_os runtime_loader"
21164 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21165 soname_spec
='${libname}${release}${shared_ext}$major'
21166 shlibpath_var
=LIBRARY_PATH
21167 shlibpath_overrides_runpath
=yes
21168 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21169 hardcode_into_libs
=yes
21172 hpux9
* | hpux10
* | hpux11
*)
21173 # Give a soname corresponding to the major version so that dld.sl refuses to
21174 # link against other versions.
21181 hardcode_into_libs
=yes
21182 dynamic_linker
="$host_os dld.so"
21183 shlibpath_var
=LD_LIBRARY_PATH
21184 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21185 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21186 soname_spec
='${libname}${release}${shared_ext}$major'
21187 if test "X$HPUX_IA64_MODE" = X32
; then
21188 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21190 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21192 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21196 hardcode_into_libs
=yes
21197 dynamic_linker
="$host_os dld.sl"
21198 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21199 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21200 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21201 soname_spec
='${libname}${release}${shared_ext}$major'
21202 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21203 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21207 dynamic_linker
="$host_os dld.sl"
21208 shlibpath_var
=SHLIB_PATH
21209 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21210 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21211 soname_spec
='${libname}${release}${shared_ext}$major'
21214 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21215 postinstall_cmds
='chmod 555 $lib'
21216 # or fails outright, so override atomically:
21217 install_override_mode
=555
21224 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21225 soname_spec
='${libname}${release}${shared_ext}$major'
21226 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21227 shlibpath_var
=LD_LIBRARY_PATH
21228 shlibpath_overrides_runpath
=no
21229 hardcode_into_libs
=yes
21232 irix5
* | irix6
* | nonstopux
*)
21234 nonstopux
*) version_type
=nonstopux
;;
21236 if test "$lt_cv_prog_gnu_ld" = yes; then
21244 soname_spec
='${libname}${release}${shared_ext}$major'
21245 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21247 irix5
* | nonstopux
*)
21248 libsuff
= shlibsuff
=
21251 case $LD in # libtool.m4 will add one of these switches to LD
21252 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21253 libsuff
= shlibsuff
= libmagic
=32-bit;;
21254 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21255 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21256 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21257 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21258 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21262 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21263 shlibpath_overrides_runpath
=no
21264 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21265 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21266 hardcode_into_libs
=yes
21269 # No shared lib support for Linux oldld, aout, or coff.
21270 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21274 # This must be Linux ELF.
21275 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21279 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21280 soname_spec
='${libname}${release}${shared_ext}$major'
21281 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21282 shlibpath_var
=LD_LIBRARY_PATH
21283 shlibpath_overrides_runpath
=no
21285 # Some binutils ld are patched to set DT_RUNPATH
21286 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21287 $as_echo_n "(cached) " >&6
21289 lt_cv_shlibpath_overrides_runpath
=no
21290 save_LDFLAGS
=$LDFLAGS
21291 save_libdir
=$libdir
21292 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21293 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21295 /* end confdefs.h. */
21305 if ac_fn_cxx_try_link
"$LINENO"; then :
21306 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21307 lt_cv_shlibpath_overrides_runpath
=yes
21310 rm -f core conftest.err conftest.
$ac_objext \
21311 conftest
$ac_exeext conftest.
$ac_ext
21312 LDFLAGS
=$save_LDFLAGS
21313 libdir
=$save_libdir
21317 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21319 # This implies no fast_install, which is unacceptable.
21320 # Some rework will be needed to allow for fast_install
21321 # before this can be enabled.
21322 hardcode_into_libs
=yes
21324 # Append ld.so.conf contents to the search path
21325 if test -f /etc
/ld.so.conf
; then
21326 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' ' '`
21327 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21330 # We used to test for /lib/ld.so.1 and disable shared libraries on
21331 # powerpc, because MkLinux only supported shared libraries with the
21332 # GNU dynamic linker. Since this was broken with cross compilers,
21333 # most powerpc-linux boxes support dynamic linking these days and
21334 # people can always --disable-shared, the test was removed, and we
21335 # assume the GNU/Linux dynamic linker is in use.
21336 dynamic_linker
='GNU/Linux ld.so'
21343 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21344 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21345 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21346 dynamic_linker
='NetBSD (a.out) ld.so'
21348 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21349 soname_spec
='${libname}${release}${shared_ext}$major'
21350 dynamic_linker
='NetBSD ld.elf_so'
21352 shlibpath_var
=LD_LIBRARY_PATH
21353 shlibpath_overrides_runpath
=yes
21354 hardcode_into_libs
=yes
21359 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21360 shlibpath_var
=LD_LIBRARY_PATH
21361 shlibpath_overrides_runpath
=yes
21368 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21369 soname_spec
='${libname}${release}${shared_ext}$major'
21370 shlibpath_var
=LD_LIBRARY_PATH
21371 shlibpath_overrides_runpath
=no
21372 hardcode_into_libs
=yes
21373 dynamic_linker
='ldqnx.so'
21378 sys_lib_dlsearch_path_spec
="/usr/lib"
21380 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21382 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21383 *) need_version
=no
;;
21385 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21386 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21387 shlibpath_var
=LD_LIBRARY_PATH
21388 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21390 openbsd2.
[89] | openbsd2.
[89].
*)
21391 shlibpath_overrides_runpath
=no
21394 shlibpath_overrides_runpath
=yes
21398 shlibpath_overrides_runpath
=yes
21403 libname_spec
='$name'
21406 library_names_spec
='$libname${shared_ext} $libname.a'
21407 dynamic_linker
='OS/2 ld.exe'
21408 shlibpath_var
=LIBPATH
21411 osf3
* | osf4
* | osf5
*)
21415 soname_spec
='${libname}${release}${shared_ext}$major'
21416 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21417 shlibpath_var
=LD_LIBRARY_PATH
21418 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21419 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21430 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21431 soname_spec
='${libname}${release}${shared_ext}$major'
21432 shlibpath_var
=LD_LIBRARY_PATH
21433 shlibpath_overrides_runpath
=yes
21434 hardcode_into_libs
=yes
21435 # ldd complains unless libraries are executable
21436 postinstall_cmds
='chmod +x $lib'
21441 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21442 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21443 shlibpath_var
=LD_LIBRARY_PATH
21444 shlibpath_overrides_runpath
=yes
21445 if test "$with_gnu_ld" = yes; then
21453 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21454 soname_spec
='${libname}${release}${shared_ext}$major'
21455 shlibpath_var
=LD_LIBRARY_PATH
21456 case $host_vendor in
21458 shlibpath_overrides_runpath
=no
21460 runpath_var
=LD_RUN_PATH
21468 shlibpath_overrides_runpath
=no
21469 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21475 if test -d /usr
/nec
;then
21477 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21478 soname_spec
='$libname${shared_ext}.$major'
21479 shlibpath_var
=LD_LIBRARY_PATH
21483 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21484 version_type
=freebsd-elf
21487 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21488 soname_spec
='${libname}${release}${shared_ext}$major'
21489 shlibpath_var
=LD_LIBRARY_PATH
21490 shlibpath_overrides_runpath
=yes
21491 hardcode_into_libs
=yes
21492 if test "$with_gnu_ld" = yes; then
21493 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21495 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21498 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21502 sys_lib_dlsearch_path_spec
='/usr/lib'
21506 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21510 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21511 shlibpath_var
=LD_LIBRARY_PATH
21512 shlibpath_overrides_runpath
=no
21513 hardcode_into_libs
=yes
21518 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21519 soname_spec
='${libname}${release}${shared_ext}$major'
21520 shlibpath_var
=LD_LIBRARY_PATH
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21528 $as_echo "$dynamic_linker" >&6; }
21529 test "$dynamic_linker" = no
&& can_build_shared
=no
21531 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21532 if test "$GCC" = yes; then
21533 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21536 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21537 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21539 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21540 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21581 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21582 hardcode_action_CXX
=
21583 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21584 test -n "$runpath_var_CXX" ||
21585 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21587 # We can hardcode non-existent directories.
21588 if test "$hardcode_direct_CXX" != no
&&
21589 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21590 # have to relink, otherwise we might link with an installed library
21591 # when we should be linking with a yet-to-be-installed one
21592 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21593 test "$hardcode_minus_L_CXX" != no
; then
21594 # Linking always hardcodes the temporary library directory.
21595 hardcode_action_CXX
=relink
21597 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21598 hardcode_action_CXX
=immediate
21601 # We cannot hardcode anything, or else we can only hardcode existing
21603 hardcode_action_CXX
=unsupported
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21606 $as_echo "$hardcode_action_CXX" >&6; }
21608 if test "$hardcode_action_CXX" = relink ||
21609 test "$inherit_rpath_CXX" = yes; then
21610 # Fast installation is not supported
21611 enable_fast_install
=no
21612 elif test "$shlibpath_overrides_runpath" = yes ||
21613 test "$enable_shared" = no
; then
21614 # Fast installation is not necessary
21615 enable_fast_install
=needless
21624 fi # test -n "$compiler"
21630 with_gnu_ld
=$lt_save_with_gnu_ld
21631 lt_cv_path_LDCXX
=$lt_cv_path_LD
21632 lt_cv_path_LD
=$lt_save_path_LD
21633 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21634 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21635 fi # test "$_lt_caught_CXX_error" != yes
21638 ac_cpp
='$CXXCPP $CPPFLAGS'
21639 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21640 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21641 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21658 # Only expand once:
21664 # Identify the assembler which will work hand-in-glove with the newly
21665 # built GCC, so that we can examine its features. This is the assembler
21666 # which will be driven by the driver program.
21668 # If build != host, and we aren't building gas in-tree, we identify a
21669 # build->target assembler and hope that it will have the same features
21670 # as the host->target assembler we'll be using.
21671 gcc_cv_gas_major_version
=
21672 gcc_cv_gas_minor_version
=
21673 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21675 if test "${gcc_cv_as+set}" = set; then :
21679 if test -x "$DEFAULT_ASSEMBLER"; then
21680 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21681 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21682 && test -f ..
/gas
/Makefile \
21683 && test x
$build = x
$host; then
21684 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21685 elif test -x as
$build_exeext; then
21686 # Build using assembler in the current directory.
21687 gcc_cv_as
=.
/as
$build_exeext
21688 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21689 gcc_cv_as
="$AS_FOR_TARGET"
21691 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21692 set dummy
$AS_FOR_TARGET; ac_word
=$2
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21694 $as_echo_n "checking for $ac_word... " >&6; }
21695 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21696 $as_echo_n "(cached) " >&6
21700 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21703 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21704 for as_dir
in $PATH
21707 test -z "$as_dir" && as_dir
=.
21708 for ac_exec_ext
in '' $ac_executable_extensions; do
21709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21710 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21721 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21722 if test -n "$gcc_cv_as"; then
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21724 $as_echo "$gcc_cv_as" >&6; }
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21727 $as_echo "no" >&6; }
21734 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21736 case "$ORIGINAL_AS_FOR_TARGET" in
21737 .
/as | .
/as
$build_exeext) ;;
21738 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21743 $as_echo_n "checking what assembler to use... " >&6; }
21744 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21745 # Single tree build which includes gas. We want to prefer it
21746 # over whatever linker top-level may have detected, since
21747 # we'll use what we're building after installation anyway.
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21749 $as_echo "newly built gas" >&6; }
21751 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21752 for f
in $gcc_cv_as_bfd_srcdir/configure \
21753 $gcc_cv_as_gas_srcdir/configure \
21754 $gcc_cv_as_gas_srcdir/configure.ac \
21755 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21756 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21757 if test x
$gcc_cv_gas_version != x
; then
21761 case $gcc_cv_gas_version in
21763 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21765 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21766 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21767 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21768 case $gcc_cv_gas_patch_version in
21769 "") gcc_cv_gas_patch_version
="0" ;;
21771 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21772 + $gcc_cv_gas_minor_version \) \* 1000 \
21773 + $gcc_cv_gas_patch_version`
21775 in_tree_gas_is_elf
=no
21776 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21777 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21778 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21780 in_tree_gas_is_elf
=yes
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21784 $as_echo "$gcc_cv_as" >&6; }
21789 # Check whether --enable-ld was given.
21790 if test "${enable_ld+set}" = set; then :
21791 enableval
=$enable_ld; case "${enableval}" in
21799 install_gold_as_default
=no
21800 # Check whether --enable-gold was given.
21801 if test "${enable_gold+set}" = set; then :
21802 enableval
=$enable_gold; case "${enableval}" in
21804 install_gold_as_default
=yes
21807 if test x
${default_ld} != x
; then
21808 install_gold_as_default
=yes
21814 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21820 # Identify the linker which will work hand-in-glove with the newly
21821 # built GCC, so that we can examine its features. This is the linker
21822 # which will be driven by the driver program.
21824 # If build != host, and we aren't building gas in-tree, we identify a
21825 # build->target linker and hope that it will have the same features
21826 # as the host->target linker we'll be using.
21827 gcc_cv_gld_major_version
=
21828 gcc_cv_gld_minor_version
=
21829 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21830 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21831 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21833 if test "${gcc_cv_ld+set}" = set; then :
21837 if test -x "$DEFAULT_LINKER"; then
21838 gcc_cv_ld
="$DEFAULT_LINKER"
21839 elif test $install_gold_as_default = yes \
21840 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21841 && test -f ..
/gold
/Makefile \
21842 && test x
$build = x
$host; then
21843 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
21844 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21845 && test -f ..
/ld
/Makefile \
21846 && test x
$build = x
$host; then
21847 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21848 elif test -x collect-ld
$build_exeext; then
21849 # Build using linker in the current directory.
21850 gcc_cv_ld
=.
/collect-ld
$build_exeext
21851 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21852 gcc_cv_ld
="$LD_FOR_TARGET"
21854 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21855 set dummy
$LD_FOR_TARGET; ac_word
=$2
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21857 $as_echo_n "checking for $ac_word... " >&6; }
21858 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21859 $as_echo_n "(cached) " >&6
21863 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21867 for as_dir
in $PATH
21870 test -z "$as_dir" && as_dir
=.
21871 for ac_exec_ext
in '' $ac_executable_extensions; do
21872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21873 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21884 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21885 if test -n "$gcc_cv_ld"; then
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21887 $as_echo "$gcc_cv_ld" >&6; }
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21890 $as_echo "no" >&6; }
21897 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21898 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21899 # if the PLUGIN_LD is set ld-new, just have it as ld
21900 # as that is the installed named.
21901 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21902 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21903 PLUGIN_LD_SUFFIX
=ld
21906 # Check whether --with-plugin-ld was given.
21907 if test "${with_plugin_ld+set}" = set; then :
21908 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21909 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21910 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21916 cat >>confdefs.h
<<_ACEOF
21917 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21921 # Check to see if we are using gold instead of ld
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21923 $as_echo_n "checking whether we are using gold... " >&6; }
21925 if test x
$gcc_cv_ld != x
; then
21926 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21927 |
grep "GNU gold" > /dev
/null
; then
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21932 $as_echo "$ld_is_gold" >&6; }
21934 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21936 case "$ORIGINAL_LD_FOR_TARGET" in
21937 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21938 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21943 $as_echo_n "checking what linker to use... " >&6; }
21944 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21945 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21946 # Single tree build which includes ld. We want to prefer it
21947 # over whatever linker top-level may have detected, since
21948 # we'll use what we're building after installation anyway.
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21950 $as_echo "newly built ld" >&6; }
21952 in_tree_ld_is_elf
=no
21953 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21954 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21955 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21956 in_tree_ld_is_elf
=yes
21957 elif test "$ld_is_gold" = yes; then
21958 in_tree_ld_is_elf
=yes
21960 for f
in $gcc_cv_ld_bfd_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure.ac
$gcc_cv_ld_gld_srcdir/Makefile.
in
21962 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21963 if test x
$gcc_cv_gld_version != x
; then
21967 case $gcc_cv_gld_version in
21969 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21971 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21972 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21973 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
21974 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21977 $as_echo "$gcc_cv_ld" >&6; }
21979 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21980 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
21981 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
21987 # Figure out what nm we will be using.
21988 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21989 if test "${gcc_cv_nm+set}" = set; then :
21993 if test -f $gcc_cv_binutils_srcdir/configure.ac \
21994 && test -f ..
/binutils
/Makefile \
21995 && test x
$build = x
$host; then
21996 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21997 elif test -x nm
$build_exeext; then
21998 gcc_cv_nm
=.
/nm
$build_exeext
21999 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22000 gcc_cv_nm
="$NM_FOR_TARGET"
22002 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22003 set dummy
$NM_FOR_TARGET; ac_word
=$2
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22005 $as_echo_n "checking for $ac_word... " >&6; }
22006 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22007 $as_echo_n "(cached) " >&6
22011 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22015 for as_dir
in $PATH
22018 test -z "$as_dir" && as_dir
=.
22019 for ac_exec_ext
in '' $ac_executable_extensions; do
22020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22021 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22032 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22033 if test -n "$gcc_cv_nm"; then
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22035 $as_echo "$gcc_cv_nm" >&6; }
22037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22038 $as_echo "no" >&6; }
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22046 $as_echo_n "checking what nm to use... " >&6; }
22047 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22048 # Single tree build which includes binutils.
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22050 $as_echo "newly built nm" >&6; }
22053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22054 $as_echo "$gcc_cv_nm" >&6; }
22058 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22060 case "$ORIGINAL_NM_FOR_TARGET" in
22061 .
/nm | .
/nm
$build_exeext) ;;
22062 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22067 # Figure out what objdump we will be using.
22068 if test "${gcc_cv_objdump+set}" = set; then :
22072 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22073 && test -f ..
/binutils
/Makefile \
22074 && test x
$build = x
$host; then
22075 # Single tree build which includes binutils.
22076 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22077 elif test -x objdump
$build_exeext; then
22078 gcc_cv_objdump
=.
/objdump
$build_exeext
22079 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22080 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22082 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22083 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22085 $as_echo_n "checking for $ac_word... " >&6; }
22086 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22087 $as_echo_n "(cached) " >&6
22089 case $gcc_cv_objdump in
22091 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22095 for as_dir
in $PATH
22098 test -z "$as_dir" && as_dir
=.
22099 for ac_exec_ext
in '' $ac_executable_extensions; do
22100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22101 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22112 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22113 if test -n "$gcc_cv_objdump"; then
22114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22115 $as_echo "$gcc_cv_objdump" >&6; }
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22118 $as_echo "no" >&6; }
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22126 $as_echo_n "checking what objdump to use... " >&6; }
22127 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22128 # Single tree build which includes binutils.
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22130 $as_echo "newly built objdump" >&6; }
22131 elif test x
$gcc_cv_objdump = x
; then
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22133 $as_echo "not found" >&6; }
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22136 $as_echo "$gcc_cv_objdump" >&6; }
22139 # Figure out what readelf we will be using.
22140 if test "${gcc_cv_readelf+set}" = set; then :
22144 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22145 && test -f ..
/binutils
/Makefile \
22146 && test x
$build = x
$host; then
22147 # Single tree build which includes binutils.
22148 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22149 elif test -x readelf
$build_exeext; then
22150 gcc_cv_readelf
=.
/readelf
$build_exeext
22152 # Extract the first word of "readelf", so it can be a program name with args.
22153 set dummy readelf
; ac_word
=$2
22154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22155 $as_echo_n "checking for $ac_word... " >&6; }
22156 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22157 $as_echo_n "(cached) " >&6
22159 case $gcc_cv_readelf in
22161 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22165 for as_dir
in $PATH
22168 test -z "$as_dir" && as_dir
=.
22169 for ac_exec_ext
in '' $ac_executable_extensions; do
22170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22171 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22182 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22183 if test -n "$gcc_cv_readelf"; then
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22185 $as_echo "$gcc_cv_readelf" >&6; }
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22188 $as_echo "no" >&6; }
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22196 $as_echo_n "checking what readelf to use... " >&6; }
22197 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22198 # Single tree build which includes binutils.
22199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22200 $as_echo "newly built readelf" >&6; }
22201 elif test x
$gcc_cv_readelf = x
; then
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22203 $as_echo "not found" >&6; }
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22206 $as_echo "$gcc_cv_readelf" >&6; }
22209 # Figure out what assembler alignment features are present.
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22211 $as_echo_n "checking assembler flags... " >&6; }
22212 if test "${gcc_cv_as_flags+set}" = set; then :
22213 $as_echo_n "(cached) " >&6
22216 i
[34567]86-*-linux*)
22217 gcc_cv_as_flags
=--32
22219 x86_64-
*-linux-gnux32)
22220 gcc_cv_as_flags
=--x32
22223 gcc_cv_as_flags
=--64
22225 powerpc
*-*-darwin*)
22226 gcc_cv_as_flags
="-arch ppc"
22229 gcc_cv_as_flags
=" "
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22234 $as_echo "$gcc_cv_as_flags" >&6; }
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22237 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22238 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22239 $as_echo_n "(cached) " >&6
22241 gcc_cv_as_balign_and_p2align
=no
22242 if test $in_tree_gas = yes; then
22243 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22244 then gcc_cv_as_balign_and_p2align
=yes
22246 elif test x
$gcc_cv_as != x
; then
22247 $as_echo '.balign 4
22248 .p2align 2' > conftest.s
22249 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22251 (eval $ac_try) 2>&5
22253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22254 test $ac_status = 0; }; }
22256 gcc_cv_as_balign_and_p2align
=yes
22258 echo "configure: failed program was" >&5
22261 rm -f conftest.o conftest.s
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22265 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22266 if test $gcc_cv_as_balign_and_p2align = yes; then
22268 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22273 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22274 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22275 $as_echo_n "(cached) " >&6
22277 gcc_cv_as_max_skip_p2align
=no
22278 if test $in_tree_gas = yes; then
22279 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22280 then gcc_cv_as_max_skip_p2align
=yes
22282 elif test x
$gcc_cv_as != x
; then
22283 $as_echo '.p2align 4,,7' > conftest.s
22284 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22286 (eval $ac_try) 2>&5
22288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22289 test $ac_status = 0; }; }
22291 gcc_cv_as_max_skip_p2align
=yes
22293 echo "configure: failed program was" >&5
22296 rm -f conftest.o conftest.s
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22300 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22301 if test $gcc_cv_as_max_skip_p2align = yes; then
22303 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22308 $as_echo_n "checking assembler for .literal16... " >&6; }
22309 if test "${gcc_cv_as_literal16+set}" = set; then :
22310 $as_echo_n "(cached) " >&6
22312 gcc_cv_as_literal16
=no
22313 if test $in_tree_gas = yes; then
22314 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22315 then gcc_cv_as_literal16
=yes
22317 elif test x
$gcc_cv_as != x
; then
22318 $as_echo '.literal16' > 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_literal16
=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_literal16" >&5
22335 $as_echo "$gcc_cv_as_literal16" >&6; }
22336 if test $gcc_cv_as_literal16 = yes; then
22338 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22343 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22344 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22345 $as_echo_n "(cached) " >&6
22347 gcc_cv_as_subsection_m1
=no
22348 if test $in_tree_gas = yes; then
22349 if test $in_tree_gas_is_elf = yes \
22350 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22351 then gcc_cv_as_subsection_m1
=yes
22353 elif test x
$gcc_cv_as != x
; then
22354 $as_echo 'conftest_label1: .word 0
22356 conftest_label2: .word 0
22357 .previous' > conftest.s
22358 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22360 (eval $ac_try) 2>&5
22362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22363 test $ac_status = 0; }; }
22365 if test x
$gcc_cv_nm != x
; then
22366 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22367 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22368 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22370 else gcc_cv_as_subsection_m1
=yes
22372 rm -f conftest.nm1 conftest.nm2
22375 echo "configure: failed program was" >&5
22378 rm -f conftest.o conftest.s
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22382 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22383 if test $gcc_cv_as_subsection_m1 = yes; then
22385 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22390 $as_echo_n "checking assembler for .weak... " >&6; }
22391 if test "${gcc_cv_as_weak+set}" = set; then :
22392 $as_echo_n "(cached) " >&6
22395 if test $in_tree_gas = yes; then
22396 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22397 then gcc_cv_as_weak
=yes
22399 elif test x
$gcc_cv_as != x
; then
22400 $as_echo ' .weak foobar' > conftest.s
22401 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22403 (eval $ac_try) 2>&5
22405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22406 test $ac_status = 0; }; }
22410 echo "configure: failed program was" >&5
22413 rm -f conftest.o conftest.s
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22417 $as_echo "$gcc_cv_as_weak" >&6; }
22418 if test $gcc_cv_as_weak = yes; then
22420 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22425 $as_echo_n "checking assembler for .weakref... " >&6; }
22426 if test "${gcc_cv_as_weakref+set}" = set; then :
22427 $as_echo_n "(cached) " >&6
22429 gcc_cv_as_weakref
=no
22430 if test $in_tree_gas = yes; then
22431 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22432 then gcc_cv_as_weakref
=yes
22434 elif test x
$gcc_cv_as != x
; then
22435 $as_echo ' .weakref foobar, barfnot' > conftest.s
22436 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22438 (eval $ac_try) 2>&5
22440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22441 test $ac_status = 0; }; }
22443 gcc_cv_as_weakref
=yes
22445 echo "configure: failed program was" >&5
22448 rm -f conftest.o conftest.s
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22452 $as_echo "$gcc_cv_as_weakref" >&6; }
22453 if test $gcc_cv_as_weakref = yes; then
22455 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22460 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22461 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22462 $as_echo_n "(cached) " >&6
22464 gcc_cv_as_nsubspa_comdat
=no
22465 if test $in_tree_gas = yes; then
22466 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22467 then gcc_cv_as_nsubspa_comdat
=yes
22469 elif test x
$gcc_cv_as != x
; then
22470 $as_echo ' .SPACE $TEXT$
22471 .NSUBSPA $CODE$,COMDAT' > conftest.s
22472 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22474 (eval $ac_try) 2>&5
22476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22477 test $ac_status = 0; }; }
22479 gcc_cv_as_nsubspa_comdat
=yes
22481 echo "configure: failed program was" >&5
22484 rm -f conftest.o conftest.s
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22488 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22489 if test $gcc_cv_as_nsubspa_comdat = yes; then
22491 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22495 # .hidden needs to be supported in both the assembler and the linker,
22496 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22497 # This is irritatingly difficult to feature test for; we have to check the
22498 # date string after the version number. If we've got an in-tree
22499 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22501 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22503 $as_echo_n "checking assembler for .hidden... " >&6; }
22504 if test "${gcc_cv_as_hidden+set}" = set; then :
22505 $as_echo_n "(cached) " >&6
22507 gcc_cv_as_hidden
=no
22508 if test $in_tree_gas = yes; then
22509 if test $in_tree_gas_is_elf = yes \
22510 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22511 then gcc_cv_as_hidden
=yes
22513 elif test x
$gcc_cv_as != x
; then
22514 $as_echo ' .hidden foobar
22515 foobar:' > conftest.s
22516 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22518 (eval $ac_try) 2>&5
22520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22521 test $ac_status = 0; }; }
22523 gcc_cv_as_hidden
=yes
22525 echo "configure: failed program was" >&5
22528 rm -f conftest.o conftest.s
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22532 $as_echo "$gcc_cv_as_hidden" >&6; }
22534 case "${target}" in
22536 # Darwin as has some visibility support, though with a different syntax.
22537 gcc_cv_as_hidden
=yes
22541 # gnu_indirect_function type is an extension proposed at
22542 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22543 # selection of function implementation
22544 # Check whether --enable-gnu-indirect-function was given.
22545 if test "${enable_gnu_indirect_function+set}" = set; then :
22546 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22548 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22549 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22552 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22556 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22558 cat >>confdefs.h
<<_ACEOF
22559 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22564 if test $in_tree_ld != yes ; then
22565 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22566 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22567 if test x
"$ld_is_gold" = xyes
; then
22568 # GNU gold --version looks like this:
22570 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22572 # We extract the binutils version which is more familiar and specific
22573 # than the gold version.
22574 ld_vers
=`echo $ld_ver | sed -n \
22575 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22577 # GNU ld --version looks like this:
22579 # GNU ld (GNU Binutils) 2.21.51.20110225
22580 ld_vers
=`echo $ld_ver | sed -n \
22581 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22583 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'`
22584 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22585 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22586 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22588 case "${target}" in
22590 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22593 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22594 # /usr/ccs/bin/ld has been configured.
22595 ld_ver
=`$gcc_cv_ld -V 2>&1`
22596 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22597 ld_vers
=`echo $ld_ver | sed -n \
22598 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22599 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22600 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22608 $as_echo_n "checking linker for .hidden support... " >&6; }
22609 if test "${gcc_cv_ld_hidden+set}" = set; then :
22610 $as_echo_n "(cached) " >&6
22612 if test $in_tree_ld = yes ; then
22613 gcc_cv_ld_hidden
=no
22614 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 \
22615 && test $in_tree_ld_is_elf = yes; then
22616 gcc_cv_ld_hidden
=yes
22619 gcc_cv_ld_hidden
=yes
22620 if test x
"$ld_is_gold" = xyes
; then
22622 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22623 case "${target}" in
22624 mmix-knuth-mmixware
)
22625 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22626 gcc_cv_ld_hidden
=no
22629 if test 0"$ld_date" -lt 20020404; then
22630 if test -n "$ld_date"; then
22631 # If there was date string, but was earlier than 2002-04-04, fail
22632 gcc_cv_ld_hidden
=no
22633 elif test -z "$ld_vers"; then
22634 # If there was no date string nor ld version number, something is wrong
22635 gcc_cv_ld_hidden
=no
22637 test -z "$ld_vers_patch" && ld_vers_patch
=0
22638 if test "$ld_vers_major" -lt 2; then
22639 gcc_cv_ld_hidden
=no
22640 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22641 gcc_cv_ld_hidden
="no"
22642 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22643 gcc_cv_ld_hidden
=no
22648 case "${target}" in
22650 # Darwin ld has some visibility support.
22651 gcc_cv_ld_hidden
=yes
22653 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22654 gcc_cv_ld_hidden
=yes
22656 *-*-solaris2.1
[0-9]*)
22657 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22658 # .symbolic was only added in Solaris 9 12/02.
22659 gcc_cv_ld_hidden
=yes
22662 gcc_cv_ld_hidden
=no
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22669 $as_echo "$gcc_cv_ld_hidden" >&6; }
22670 libgcc_visibility
=no
22673 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22674 libgcc_visibility
=yes
22676 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22681 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22682 gcc_cv_ld_ro_rw_mix
=unknown
22683 if test $in_tree_ld = yes ; then
22684 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 \
22685 && test $in_tree_ld_is_elf = yes; then
22686 gcc_cv_ld_ro_rw_mix
=read-write
22688 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22689 echo '.section myfoosect, "a"' > conftest1.s
22690 echo '.section myfoosect, "aw"' > conftest2.s
22691 echo '.byte 1' >> conftest2.s
22692 echo '.section myfoosect, "a"' > conftest3.s
22693 echo '.byte 0' >> conftest3.s
22694 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22695 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22696 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22697 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22698 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22699 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22700 | sed -e '/myfoosect/!d' -e N`
22701 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22702 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22703 gcc_cv_ld_ro_rw_mix
=read-only
22705 gcc_cv_ld_ro_rw_mix
=read-write
22709 rm -f conftest.
* conftest
[123].
*
22711 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22713 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22717 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22719 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22720 case "${target}" in
22723 # Solaris 2 ld -V output looks like this for a regular version:
22725 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22727 # but test versions add stuff at the end:
22729 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22731 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22732 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22733 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22734 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22735 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22736 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22742 # Check whether --enable-initfini-array was given.
22743 if test "${enable_initfini_array+set}" = set; then :
22744 enableval
=$enable_initfini_array;
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22748 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22749 if test "${gcc_cv_initfini_array+set}" = set; then :
22750 $as_echo_n "(cached) " >&6
22752 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22753 case "${target}" in
22755 if test "$cross_compiling" = yes; then :
22756 gcc_cv_initfini_array
=no
22758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22759 /* end confdefs.h. */
22762 #error Not an ELF OS
22764 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22765 if it can be used. */
22767 int main (void) { return x; }
22768 int foo (void) { x = 0; }
22769 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22772 if ac_fn_cxx_try_run
"$LINENO"; then :
22773 gcc_cv_initfini_array
=yes
22775 gcc_cv_initfini_array
=no
22777 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22778 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22782 gcc_cv_initfini_array
=no
22783 if test $in_tree_ld = yes ; then
22784 if test "$gcc_cv_gld_major_version" -eq 2 \
22785 -a "$gcc_cv_gld_minor_version" -ge 22 \
22786 -o "$gcc_cv_gld_major_version" -gt 2 \
22787 && test $in_tree_ld_is_elf = yes; then
22788 gcc_cv_initfini_array
=yes
22790 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22791 cat > conftest.s
<<\EOF
22792 .section .dtors
,"a",%progbits
22794 .byte
'A', 'A', 'A', 'A'
22795 .section .ctors
,"a",%progbits
22797 .byte
'B', 'B', 'B', 'B'
22798 .section .fini_array
.65530,"a",%progbits
22800 .byte
'C', 'C', 'C', 'C'
22801 .section .init_array
.65530,"a",%progbits
22803 .byte
'D', 'D', 'D', 'D'
22804 .section .dtors
.64528,"a",%progbits
22806 .byte
'E', 'E', 'E', 'E'
22807 .section .ctors
.64528,"a",%progbits
22809 .byte
'F', 'F', 'F', 'F'
22810 .section .fini_array
.01005,"a",%progbits
22812 .byte
'G', 'G', 'G', 'G'
22813 .section .init_array
.01005,"a",%progbits
22815 .byte
'H', 'H', 'H', 'H'
22820 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22821 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22822 && $gcc_cv_objdump -s -j .init_array conftest \
22823 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22824 && $gcc_cv_objdump -s -j .fini_array conftest \
22825 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22826 gcc_cv_initfini_array
=yes
22828 rm -f conftest conftest.
*
22830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22831 /* end confdefs.h. */
22834 # error Not an ELF OS
22836 #include <stdlib.h>
22837 #if defined __GLIBC_PREREQ
22838 # if __GLIBC_PREREQ (2, 4)
22840 # error GLIBC 2.4 required
22843 # if defined __sun__ && defined __svr4__
22844 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22846 # error The C library not known to support .init_array/.fini_array
22851 if ac_fn_cxx_try_cpp
"$LINENO"; then :
22854 gcc_cv_initfini_array
=no
22856 rm -f conftest.err conftest.
$ac_ext;;
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22860 $as_echo_n "checking cross compile... guessing... " >&6; }
22861 gcc_cv_initfini_array
=no
22864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22865 $as_echo "$gcc_cv_initfini_array" >&6; }
22866 enable_initfini_array
=$gcc_cv_initfini_array
22870 if test $enable_initfini_array = yes; then
22872 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22876 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22878 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22879 if test "${gcc_cv_as_leb128+set}" = set; then :
22880 $as_echo_n "(cached) " >&6
22882 gcc_cv_as_leb128
=no
22883 if test $in_tree_gas = yes; then
22884 if test $in_tree_gas_is_elf = yes \
22885 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22886 then gcc_cv_as_leb128
=yes
22888 elif test x
$gcc_cv_as != x
; then
22895 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22897 (eval $ac_try) 2>&5
22899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22900 test $ac_status = 0; }; }
22902 # GAS versions before 2.11 do not support uleb128,
22903 # despite appearing to.
22904 # ??? There exists an elf-specific test that will crash
22905 # the assembler. Perhaps it's better to figure out whether
22906 # arbitrary sections are supported and try the test.
22907 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22908 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22909 as_vers
=`echo $as_ver | sed -n \
22910 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22911 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22912 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22913 if test $as_major -eq 2 && test $as_minor -lt 11
22915 else gcc_cv_as_leb128
=yes
22919 echo "configure: failed program was" >&5
22922 rm -f conftest.o conftest.s
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22926 $as_echo "$gcc_cv_as_leb128" >&6; }
22927 if test $gcc_cv_as_leb128 = yes; then
22929 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22933 # Check if we have assembler support for unwind directives.
22934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22935 $as_echo_n "checking assembler for cfi directives... " >&6; }
22936 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22937 $as_echo_n "(cached) " >&6
22939 gcc_cv_as_cfi_directive
=no
22940 if test x
$gcc_cv_as != x
; then
22946 .cfi_escape 1, 2, 3, 4, 5
22947 .cfi_endproc' > conftest.s
22948 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22950 (eval $ac_try) 2>&5
22952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22953 test $ac_status = 0; }; }
22957 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22958 # read-only and read-write sections, we need to make sure that the
22959 # assembler used emits read-write .eh_frame sections.
22960 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22961 if test "x$gcc_cv_objdump" != x
; then
22962 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22963 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22964 gcc_cv_as_cfi_directive
=no
22967 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22968 # On Solaris/x86, make sure that GCC and assembler agree on using
22969 # read-only .eh_frame sections for 64-bit.
22970 if test x
$gas = xyes
; then
22971 as_ix86_64_opt
="--64"
22973 as_ix86_64_opt
="-xarch=amd64"
22975 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22976 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22977 sed -e /.eh_frame
/!d
-e N | \
22978 grep READONLY
> /dev
/null
; then
22979 gcc_cv_as_cfi_directive
=yes
22981 gcc_cv_as_cfi_directive
=no
22985 gcc_cv_as_cfi_directive
=yes
22990 # no objdump, err on the side of caution
22991 gcc_cv_as_cfi_directive
=no
22994 gcc_cv_as_cfi_directive
=yes
22998 gcc_cv_as_cfi_directive
=yes
23002 echo "configure: failed program was" >&5
23005 rm -f conftest.o conftest.s
23008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23009 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23011 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23013 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23014 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23015 $as_echo_n "(cached) " >&6
23017 gcc_cv_as_cfi_advance_working
=no
23018 if test x
$gcc_cv_as != x
; then
23021 .cfi_adjust_cfa_offset 64
23023 .cfi_adjust_cfa_offset 128
23024 .cfi_endproc' > conftest.s
23025 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23027 (eval $ac_try) 2>&5
23029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23030 test $ac_status = 0; }; }
23033 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23034 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23035 gcc_cv_as_cfi_advance_working
=yes
23039 echo "configure: failed program was" >&5
23042 rm -f conftest.o conftest.s
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23046 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23049 # no objdump, err on the side of caution
23050 gcc_cv_as_cfi_advance_working
=no
23054 cat >>confdefs.h
<<_ACEOF
23055 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23056 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23062 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23063 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23064 $as_echo_n "(cached) " >&6
23066 gcc_cv_as_cfi_personality_directive
=no
23067 if test x
$gcc_cv_as != x
; then
23070 .cfi_personality 0, symbol
23071 .cfi_endproc' > conftest.s
23072 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23074 (eval $ac_try) 2>&5
23076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23077 test $ac_status = 0; }; }
23079 gcc_cv_as_cfi_personality_directive
=yes
23081 echo "configure: failed program was" >&5
23084 rm -f conftest.o conftest.s
23087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23088 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23091 cat >>confdefs.h
<<_ACEOF
23092 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23093 then echo 1; else echo 0; fi`
23097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23098 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23099 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23100 $as_echo_n "(cached) " >&6
23102 gcc_cv_as_cfi_sections_directive
=no
23103 if test x
$gcc_cv_as != x
; then
23105 .cfi_sections .debug_frame, .eh_frame
23107 .cfi_endproc' > conftest.s
23108 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23110 (eval $ac_try) 2>&5
23112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23113 test $ac_status = 0; }; }
23116 win32 | pe | cygwin
* | mingw32
* | uwin
*)
23117 # Need to check that we generated the correct relocation for the
23118 # .debug_frame section. This was fixed for binutils 2.21.
23119 gcc_cv_as_cfi_sections_directive
=no
23120 if test "x$gcc_cv_objdump" != x
; then
23121 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23122 grep secrel
> /dev
/null
; then
23123 gcc_cv_as_cfi_sections_directive
=yes
23128 gcc_cv_as_cfi_sections_directive
=yes
23132 echo "configure: failed program was" >&5
23135 rm -f conftest.o conftest.s
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23139 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23143 cat >>confdefs.h
<<_ACEOF
23144 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23145 then echo 1; else echo 0; fi`
23149 # GAS versions up to and including 2.11.0 may mis-optimize
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23152 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23153 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23154 $as_echo_n "(cached) " >&6
23156 gcc_cv_as_eh_frame
=no
23157 if test $in_tree_gas = yes; then
23158 if test $in_tree_gas_is_elf = yes \
23159 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23160 then gcc_cv_as_eh_frame
=yes
23162 elif test x
$gcc_cv_as != x
; then
23169 .section .eh_frame,"aw",@progbits
23171 .4byte .LECIE1-.LSCIE1
23185 .4byte .LEFDE1-.LASFDE1
23187 .4byte .LASFDE1-__FRAME_BEGIN__
23194 .LEFDE1:' > conftest.s
23195 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23197 (eval $ac_try) 2>&5
23199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23200 test $ac_status = 0; }; }
23202 cat > conftest.lit
<<EOF
23203 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23204 0010 01000000 12000000 18000000 00000000 ................
23205 0020 08000000 04080000 0044 .........D
23207 cat > conftest.big
<<EOF
23208 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23209 0010 00000001 00000012 00000018 00000000 ................
23210 0020 00000008 04000000 0844 .........D
23212 # If the assembler didn't choke, and we can objdump,
23213 # and we got the correct data, then succeed.
23214 # The text in the here-document typically retains its unix-style line
23215 # endings, while the output of objdump will use host line endings.
23216 # Therefore, use diff -b for the comparisons.
23217 if test x
$gcc_cv_objdump != x \
23218 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23219 |
tail -3 > conftest.got \
23220 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23221 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23223 gcc_cv_as_eh_frame
=yes
23224 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23226 (eval $ac_try) 2>&5
23228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23229 test $ac_status = 0; }; }; then
23230 gcc_cv_as_eh_frame
=buggy
23232 # Uh oh, what do we do now?
23233 gcc_cv_as_eh_frame
=no
23236 echo "configure: failed program was" >&5
23239 rm -f conftest.o conftest.s
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23243 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23246 if test $gcc_cv_as_eh_frame = buggy
; then
23248 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23253 $as_echo_n "checking assembler for section merging support... " >&6; }
23254 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23255 $as_echo_n "(cached) " >&6
23257 gcc_cv_as_shf_merge
=no
23258 if test $in_tree_gas = yes; then
23259 if test $in_tree_gas_is_elf = yes \
23260 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23261 then gcc_cv_as_shf_merge
=yes
23263 elif test x
$gcc_cv_as != x
; then
23264 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23265 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23267 (eval $ac_try) 2>&5
23269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23270 test $ac_status = 0; }; }
23272 gcc_cv_as_shf_merge
=yes
23274 echo "configure: failed program was" >&5
23277 rm -f conftest.o conftest.s
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23281 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23283 if test $gcc_cv_as_shf_merge = no
; then
23284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23285 $as_echo_n "checking assembler for section merging support... " >&6; }
23286 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23287 $as_echo_n "(cached) " >&6
23289 gcc_cv_as_shf_merge
=no
23290 if test $in_tree_gas = yes; then
23291 if test $in_tree_gas_is_elf = yes \
23292 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23293 then gcc_cv_as_shf_merge
=yes
23295 elif test x
$gcc_cv_as != x
; then
23296 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23297 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23299 (eval $ac_try) 2>&5
23301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23302 test $ac_status = 0; }; }
23304 gcc_cv_as_shf_merge
=yes
23306 echo "configure: failed program was" >&5
23309 rm -f conftest.o conftest.s
23312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23313 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23317 cat >>confdefs.h
<<_ACEOF
23318 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23323 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23324 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23325 $as_echo_n "(cached) " >&6
23327 gcc_cv_as_comdat_group
=no
23328 if test $in_tree_gas = yes; then
23329 if test $in_tree_gas_is_elf = yes \
23330 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23331 then gcc_cv_as_comdat_group
=yes
23333 elif test x
$gcc_cv_as != x
; then
23334 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23335 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23337 (eval $ac_try) 2>&5
23339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23340 test $ac_status = 0; }; }
23342 gcc_cv_as_comdat_group
=yes
23344 echo "configure: failed program was" >&5
23347 rm -f conftest.o conftest.s
23350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23351 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23353 if test $gcc_cv_as_comdat_group = yes; then
23354 gcc_cv_as_comdat_group_percent
=no
23355 gcc_cv_as_comdat_group_group
=no
23357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23358 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23359 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23360 $as_echo_n "(cached) " >&6
23362 gcc_cv_as_comdat_group_percent
=no
23363 if test $in_tree_gas = yes; then
23364 if test $in_tree_gas_is_elf = yes \
23365 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23366 then gcc_cv_as_comdat_group_percent
=yes
23368 elif test x
$gcc_cv_as != x
; then
23369 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23370 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23372 (eval $ac_try) 2>&5
23374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23375 test $ac_status = 0; }; }
23377 gcc_cv_as_comdat_group_percent
=yes
23379 echo "configure: failed program was" >&5
23382 rm -f conftest.o conftest.s
23385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23386 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23388 if test $gcc_cv_as_comdat_group_percent = yes; then
23389 gcc_cv_as_comdat_group_group
=no
23391 case "${target}" in
23392 # Sun as uses a completely different syntax.
23394 case "${target}" in
23395 sparc
*-*-solaris2*)
23397 .group foo,".text%foo",#comdat
23398 .section ".text%foo", #alloc,#execinstr,#progbits
23403 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23405 .group foo,.text%foo,#comdat
23406 .section .text%foo, "ax", @progbits
23412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23413 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23414 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23415 $as_echo_n "(cached) " >&6
23417 gcc_cv_as_comdat_group_group
=no
23418 if test x
$gcc_cv_as != x
; then
23419 $as_echo "$conftest_s" > conftest.s
23420 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23422 (eval $ac_try) 2>&5
23424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23425 test $ac_status = 0; }; }
23427 gcc_cv_as_comdat_group_group
=yes
23429 echo "configure: failed program was" >&5
23432 rm -f conftest.o conftest.s
23435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23436 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23440 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23441 gcc_cv_as_comdat_group_group
=no
23445 if test x
"$ld_is_gold" = xyes
; then
23447 elif test $in_tree_ld = yes ; then
23449 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 \
23450 && test $in_tree_ld_is_elf = yes; then
23453 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23455 if test 0"$ld_date" -lt 20050308; then
23456 if test -n "$ld_date"; then
23457 # If there was date string, but was earlier than 2005-03-08, fail
23459 elif test "$ld_vers_major" -lt 2; then
23461 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23466 case "${target}" in
23467 *-*-solaris2.1
[1-9]*)
23469 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23470 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23473 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23474 # least ld version 1.2267.
23475 if test "$ld_vers_major" -gt 1; then
23477 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23479 elif test "$ld_vers_minor" -ge 2267; then
23484 # Assume linkers other than GNU ld don't support COMDAT group.
23489 # Allow overriding the automatic COMDAT group tests above.
23490 # Check whether --enable-comdat was given.
23491 if test "${enable_comdat+set}" = set; then :
23492 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23495 if test $comdat_group = no
; then
23496 gcc_cv_as_comdat_group
=no
23497 gcc_cv_as_comdat_group_percent
=no
23498 gcc_cv_as_comdat_group_group
=no
23501 cat >>confdefs.h
<<_ACEOF
23502 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23503 || test $gcc_cv_as_comdat_group_percent = yes \
23504 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23509 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23510 if test "${gcc_cv_as_discriminator+set}" = set; then :
23511 $as_echo_n "(cached) " >&6
23513 gcc_cv_as_discriminator
=no
23514 if test $in_tree_gas = yes; then
23515 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23516 then gcc_cv_as_discriminator
=yes
23518 elif test x
$gcc_cv_as != x
; then
23521 .loc 1 1 0 discriminator 1' > conftest.s
23522 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23524 (eval $ac_try) 2>&5
23526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23527 test $ac_status = 0; }; }
23529 gcc_cv_as_discriminator
=yes
23531 echo "configure: failed program was" >&5
23534 rm -f conftest.o conftest.s
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23538 $as_echo "$gcc_cv_as_discriminator" >&6; }
23539 if test $gcc_cv_as_discriminator = yes; then
23541 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23545 # Thread-local storage - the check is heavily parameterized.
23553 .section ".tdata","awT",@progbits
23556 ldq $27,__tls_get_addr($29) !literal!1
23557 lda $16,foo($29) !tlsgd!1
23558 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23559 ldq $27,__tls_get_addr($29) !literal!2
23560 lda $16,foo($29) !tlsldm!2
23561 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23562 ldq $1,foo($29) !gotdtprel
23563 ldah $2,foo($29) !dtprelhi
23564 lda $3,foo($2) !dtprello
23565 lda $4,foo($29) !dtprel
23566 ldq $1,foo($29) !gottprel
23567 ldah $2,foo($29) !tprelhi
23568 lda $3,foo($2) !tprello
23569 lda $4,foo($29) !tprel'
23572 tls_as_opt
=--fatal-warnings
23574 cris-
*-*|crisv32-
*-*)
23576 .section ".tdata","awT",@progbits
23583 tls_as_opt
=--fatal-warnings
23587 .section ".tdata","awT",@progbits
23590 call #gettlsoff(x)'
23599 .section ".tdata","awT",@progbits
23603 addil LT%foo-$tls_gdidx$,gp
23604 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23607 addil LT%foo-$tls_ldidx$,gp
23609 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23610 addil LR%foo-$tls_dtpoff$,%ret0
23611 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23613 addil LT%foo-$tls_ieoff$,gp
23614 ldw RT%foo-$tls_ieoff$(%r1),%t2
23617 addil LR%foo-$tls_leoff$,%t1
23618 ldo RR%foo-$tls_leoff$(%r1),%t2'
23621 tls_as_opt
=--fatal-warnings
23625 .section ".tdata","awT",%progbits
23628 .word foo(gottpoff)
23636 i
[34567]86-*-* | x86_64-
*-*)
23638 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
23645 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23647 .section .tdata,"awt",@progbits'
23652 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23656 .section ".tdata","awT",@progbits'
23660 tls_as_opt
="--fatal-warnings"
23664 conftest_s
="$conftest_s
23668 leal foo@tlsgd(,%ebx,1), %eax
23669 leal foo@tlsldm(%ebx), %eax
23670 leal foo@dtpoff(%eax), %edx
23671 movl foo@gottpoff(%ebx), %eax
23672 subl foo@gottpoff(%ebx), %eax
23673 addl foo@gotntpoff(%ebx), %eax
23674 movl foo@indntpoff, %eax
23675 movl \$foo@tpoff, %eax
23676 subl \$foo@tpoff, %eax
23677 leal foo@ntpoff(%ecx), %eax"
23680 if test x
$on_solaris = xyes
; then
23682 yes) tls_as_opt
="$tls_as_opt --64" ;;
23683 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
23686 conftest_s
="$conftest_s
23690 leaq foo@tlsgd(%rip), %rdi
23691 leaq foo@tlsld(%rip), %rdi
23692 leaq foo@dtpoff(%rax), %rdx
23693 movq foo@gottpoff(%rip), %rax
23694 movq \$foo@tpoff, %rax"
23700 .section ".tdata","awT",@progbits
23703 addl r16 = @ltoff(@dtpmod(foo#)), gp
23704 addl r17 = @ltoff(@dtprel(foo#)), gp
23705 addl r18 = @ltoff(@tprel(foo#)), gp
23706 addl r19 = @dtprel(foo#), gp
23707 adds r21 = @dtprel(foo#), r13
23708 movl r23 = @dtprel(foo#)
23709 addl r20 = @tprel(foo#), gp
23710 adds r22 = @tprel(foo#), r13
23711 movl r24 = @tprel(foo#)'
23714 tls_as_opt
=--fatal-warnings
23718 .section .tdata,"awT",@progbits
23722 addik r5,r20,x@TLSGD
23723 addik r5,r20,x@TLSLDM'
23726 tls_as_opt
='--fatal-warnings'
23730 .section .tdata,"awT",@progbits
23734 addiu $4, $28, %tlsgd(x)
23735 addiu $4, $28, %tlsldm(x)
23736 lui $4, %dtprel_hi(x)
23737 addiu $4, $4, %dtprel_lo(x)
23738 lw $4, %gottprel(x)($28)
23739 lui $4, %tprel_hi(x)
23740 addiu $4, $4, %tprel_lo(x)'
23743 tls_as_opt
='-32 --fatal-warnings'
23747 .section .tdata,"awT",@progbits
23752 move.l x@TLSGD(%a5),%a0
23753 move.l x@TLSLDM(%a5),%a0
23754 move.l x@TLSLDO(%a5),%a0
23755 move.l x@TLSIE(%a5),%a0
23756 move.l x@TLSLE(%a5),%a0'
23759 tls_as_opt
='--fatal-warnings'
23763 .section ".tdata","awT",@progbits'
23766 tls_as_opt
="--fatal-warnings"
23770 .section ".tdata","awT",%progbits
23774 add x0, x0, #:tlsgd_lo12:x
23779 tls_as_opt
='--fatal-warnings'
23783 .extern __get_tpointer
23801 .section ".tdata","awT",@progbits
23809 addi 3,2,ld0@got@tlsgd
23815 addi 3,2,x1@got@tlsld
23821 addis 9,3,x2@dtprel@ha
23822 addi 9,9,x2@dtprel@l
23825 ld 9,x3@got@dtprel(2)
23831 tls_as_opt
="-a64 --fatal-warnings"
23835 .section ".tdata","awT",@progbits
23843 addi 3,31,ld0@got@tlsgd
23845 addi 3,31,x1@got@tlsld
23848 addis 9,3,x2@dtprel@ha
23849 addi 9,9,x2@dtprel@l
23850 lwz 9,x3@got@tprel(31)
23853 addis 9,2,x2@tprel@ha
23854 addi 9,9,x2@tprel@l'
23857 tls_as_opt
="-a32 --fatal-warnings"
23861 .section ".tdata","awT",@progbits
23868 .long foo@GOTNTPOFF
23869 .long foo@INDNTPOFF
23870 l %r1,foo@GOTNTPOFF(%r12)
23871 l %r1,0(%r1):tls_load:foo
23872 bas %r14,0(%r1,%r13):tls_gdcall:foo
23873 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23876 tls_as_opt
="-m31 --fatal-warnings"
23880 .section ".tdata","awT",@progbits
23887 .quad foo@GOTNTPOFF
23888 lg %r1,foo@GOTNTPOFF(%r12)
23889 larl %r1,foo@INDNTPOFF
23890 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23891 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23894 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23896 sh-
*-* | sh
[34]-*-*)
23898 .section ".tdata","awT",@progbits
23908 tls_as_opt
=--fatal-warnings
23912 sparc
*-sun-solaris2.
*)
23919 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23921 .section ".tdata",#alloc,#write,#tls'
23926 .section ".tdata","awT",@progbits'
23929 tls_as_opt
="-32 --fatal-warnings"
23931 conftest_s
="$conftest_s
23934 sethi %tgd_hi22(foo), %o0
23935 add %o0, %tgd_lo10(foo), %o1
23936 add %l7, %o1, %o0, %tgd_add(foo)
23937 call __tls_get_addr, %tgd_call(foo)
23938 sethi %tldm_hi22(foo), %l1
23939 add %l1, %tldm_lo10(foo), %l2
23940 add %l7, %l2, %o0, %tldm_add(foo)
23941 call __tls_get_addr, %tldm_call(foo)
23942 sethi %tldo_hix22(foo), %l3
23943 xor %l3, %tldo_lox10(foo), %l4
23944 add %o0, %l4, %l5, %tldo_add(foo)
23945 sethi %tie_hi22(foo), %o3
23946 add %o3, %tie_lo10(foo), %o3
23947 ld [%l7 + %o3], %o2, %tie_ld(foo)
23948 add %g7, %o2, %o4, %tie_add(foo)
23949 sethi %tle_hix22(foo), %l1
23950 xor %l1, %tle_lox10(foo), %o5
23951 ld [%g7 + %o5], %o1"
23955 .section ".tdata","awT",@progbits
23958 addli r0, zero, tls_gd(foo)
23959 auli r0, zero, tls_gd_ha16(foo)
23960 addli r0, r0, tls_gd_lo16(foo)
23962 addli r0, zero, tls_ie(foo)
23963 auli r0, r0, tls_ie_ha16(foo)
23964 addli r0, r0, tls_ie_lo16(foo)'
23967 tls_as_opt
="--fatal-warnings"
23971 .section ".tdata","awT",@progbits
23974 shl16insli r0, zero, hw0_last_tls_gd(foo)
23975 shl16insli r0, zero, hw1_last_tls_gd(foo)
23976 shl16insli r0, r0, hw0_tls_gd(foo)
23978 shl16insli r0, zero, hw1_last_tls_ie(foo)
23979 shl16insli r0, r0, hw0_tls_ie(foo)'
23982 tls_as_opt
="--fatal-warnings"
23986 .section ".tdata","awT",@progbits
23989 movi a8, foo@TLSFUNC
23990 movi a10, foo@TLSARG
23991 callx8.tls a8, foo@TLSCALL'
23997 if test "x$enable_tls" = xno
; then
23998 : # TLS explicitly disabled.
23999 elif test "x$enable_tls" = xyes
; then
24000 set_have_as_tls
=yes # TLS explicitly enabled.
24001 elif test -z "$tls_first_major"; then
24002 : # If we don't have a check, assume no support.
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24005 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24006 if test "${gcc_cv_as_tls+set}" = set; then :
24007 $as_echo_n "(cached) " >&6
24010 if test $in_tree_gas = yes; then
24011 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24012 then gcc_cv_as_tls
=yes
24014 elif test x
$gcc_cv_as != x
; then
24015 $as_echo "$conftest_s" > conftest.s
24016 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24018 (eval $ac_try) 2>&5
24020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24021 test $ac_status = 0; }; }
24025 echo "configure: failed program was" >&5
24028 rm -f conftest.o conftest.s
24031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24032 $as_echo "$gcc_cv_as_tls" >&6; }
24033 if test $gcc_cv_as_tls = yes; then
24034 set_have_as_tls
=yes
24037 if test $set_have_as_tls = yes ; then
24039 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24043 # Target-specific assembler checks.
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24046 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24047 gcc_cv_ld_static_dynamic
=no
24048 gcc_cv_ld_static_option
='-Bstatic'
24049 gcc_cv_ld_dynamic_option
='-Bdynamic'
24050 if test $in_tree_ld = yes ; then
24051 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
24052 gcc_cv_ld_static_dynamic
=yes
24054 elif test x
$gcc_cv_ld != x
; then
24055 # Check if linker supports -Bstatic/-Bdynamic option
24056 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
24057 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
24058 gcc_cv_ld_static_dynamic
=yes
24061 # AIX ld uses -b flags
24062 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24063 gcc_cv_ld_static_dynamic
=yes
24064 gcc_cv_ld_static_option
="-bstatic"
24065 gcc_cv_ld_dynamic_option
="-bdynamic"
24067 # HP-UX ld uses -a flags to select between shared and archive.
24069 if test x
"$gnu_ld" = xno
; then
24070 gcc_cv_ld_static_dynamic
=yes
24071 gcc_cv_ld_static_option
="-aarchive_shared"
24072 gcc_cv_ld_dynamic_option
="-adefault"
24075 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24077 gcc_cv_ld_static_dynamic
=yes
24082 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24084 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24087 cat >>confdefs.h
<<_ACEOF
24088 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24092 cat >>confdefs.h
<<_ACEOF
24093 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24098 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24100 if test x
"$demangler_in_ld" = xyes
; then
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24102 $as_echo_n "checking linker --demangle support... " >&6; }
24103 gcc_cv_ld_demangle
=no
24104 if test $in_tree_ld = yes; then
24105 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 \
24106 gcc_cv_ld_demangle
=yes
24108 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24109 # Check if the GNU linker supports --demangle option
24110 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
24111 gcc_cv_ld_demangle
=yes
24114 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24116 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24120 $as_echo "$gcc_cv_ld_demangle" >&6; }
24123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24124 $as_echo_n "checking linker plugin support... " >&6; }
24125 gcc_cv_lto_plugin
=0
24126 if test -f liblto_plugin.la
; then
24127 save_ld_ver
="$ld_ver"
24128 save_ld_vers_major
="$ld_vers_major"
24129 save_ld_vers_minor
="$ld_vers_minor"
24130 save_ld_is_gold
="$ld_is_gold"
24134 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24136 # FIXME: ld_is_gold?
24137 ld_vers_major
="$gcc_cv_gld_major_version"
24138 ld_vers_minor
="$gcc_cv_gld_minor_version"
24140 # Determine plugin linker version.
24141 # FIXME: Partial duplicate from above, generalize.
24142 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24143 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24144 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24146 ld_vers
=`echo $ld_ver | sed -n \
24147 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24149 ld_vers
=`echo $ld_ver | sed -n \
24150 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24152 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24153 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24157 # Determine plugin support.
24158 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24159 # Require GNU ld or gold 2.21+ for plugin support by default.
24160 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24161 gcc_cv_lto_plugin
=2
24162 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24163 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24164 gcc_cv_lto_plugin
=1
24168 ld_ver
="$save_ld_ver"
24169 ld_vers_major
="$save_ld_vers_major"
24170 ld_vers_minor
="$save_ld_vers_minor"
24171 ld_is_gold
="$save_ld_is_gold"
24174 cat >>confdefs.h
<<_ACEOF
24175 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24179 $as_echo "$gcc_cv_lto_plugin" >&6; }
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24184 $as_echo_n "checking assembler for -mabi option... " >&6; }
24185 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24186 $as_echo_n "(cached) " >&6
24188 gcc_cv_as_aarch64_mabi
=no
24189 if test x
$gcc_cv_as != x
; then
24190 $as_echo '.text' > conftest.s
24191 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24193 (eval $ac_try) 2>&5
24195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24196 test $ac_status = 0; }; }
24198 gcc_cv_as_aarch64_mabi
=yes
24200 echo "configure: failed program was" >&5
24203 rm -f conftest.o conftest.s
24206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24207 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24209 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24211 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24214 if test x
$with_abi = xilp32
; then
24215 as_fn_error
"Assembler does not support -mabi=ilp32.\
24216 Upgrade the Assembler." "$LINENO" 5
24218 if test x
"$with_multilib_list" = xdefault
; then
24219 TM_MULTILIB_CONFIG
=lp64
24221 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24222 for aarch64_multilib
in ${aarch64_multilibs}; do
24223 case ${aarch64_multilib} in
24225 as_fn_error
"Assembler does not support -mabi=ilp32.\
24226 Upgrade the Assembler." "$LINENO" 5
24234 # Check if we have binutils support for relocations types needed by -fpic
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24236 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24237 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24238 $as_echo_n "(cached) " >&6
24240 gcc_cv_as_aarch64_picreloc
=no
24241 if test x
$gcc_cv_as != x
; then
24244 ldr x0, [x2, #:gotpage_lo15:globalsym]
24246 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24248 (eval $ac_try) 2>&5
24250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24251 test $ac_status = 0; }; }
24253 gcc_cv_as_aarch64_picreloc
=yes
24255 echo "configure: failed program was" >&5
24258 rm -f conftest.o conftest.s
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24262 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24263 if test $gcc_cv_as_aarch64_picreloc = yes; then
24265 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24268 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24269 # Check whether --enable-fix-cortex-a53-835769 was given.
24270 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24271 enableval
=$enable_fix_cortex_a53_835769;
24274 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24279 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24280 Valid choices are 'yes' and 'no'." "$LINENO" 5
24287 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24288 # Check whether --enable-fix-cortex-a53-843419 was given.
24289 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24290 enableval
=$enable_fix_cortex_a53_843419;
24293 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24298 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24299 Valid choices are 'yes' and 'no'." "$LINENO" 5
24308 # All TARGET_ABI_OSF targets.
24309 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24311 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24312 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24313 $as_echo_n "(cached) " >&6
24315 gcc_cv_as_alpha_explicit_relocs
=no
24316 if test $in_tree_gas = yes; then
24317 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24318 then gcc_cv_as_alpha_explicit_relocs
=yes
24320 elif test x
$gcc_cv_as != x
; then
24321 $as_echo ' .set nomacro
24323 extbl $3, $2, $3 !lituse_bytoff!1
24324 ldq $2, a($29) !literal!1
24325 ldq $4, b($29) !literal!2
24326 ldq_u $3, 0($2) !lituse_base!1
24327 ldq $27, f($29) !literal!5
24328 jsr $26, ($27), f !lituse_jsr!5
24329 ldah $29, 0($26) !gpdisp!3
24330 lda $0, c($29) !gprel
24331 ldah $1, d($29) !gprelhigh
24332 lda $1, d($1) !gprellow
24333 lda $29, 0($29) !gpdisp!3' > conftest.s
24334 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24336 (eval $ac_try) 2>&5
24338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24339 test $ac_status = 0; }; }
24341 gcc_cv_as_alpha_explicit_relocs
=yes
24343 echo "configure: failed program was" >&5
24346 rm -f conftest.o conftest.s
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24350 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24351 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24353 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24357 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24358 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24359 $as_echo_n "(cached) " >&6
24361 gcc_cv_as_alpha_jsrdirect_relocs
=no
24362 if test $in_tree_gas = yes; then
24363 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24364 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24366 elif test x
$gcc_cv_as != x
; then
24367 $as_echo ' .set nomacro
24369 ldq $27, a($29) !literal!1
24370 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24371 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24373 (eval $ac_try) 2>&5
24375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24376 test $ac_status = 0; }; }
24378 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24380 echo "configure: failed program was" >&5
24383 rm -f conftest.o conftest.s
24386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24387 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24388 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24390 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24397 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24398 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24399 $as_echo_n "(cached) " >&6
24401 gcc_cv_as_avr_mlink_relax
=no
24402 if test x
$gcc_cv_as != x
; then
24403 $as_echo '.text' > conftest.s
24404 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24406 (eval $ac_try) 2>&5
24408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24409 test $ac_status = 0; }; }
24411 gcc_cv_as_avr_mlink_relax
=yes
24413 echo "configure: failed program was" >&5
24416 rm -f conftest.o conftest.s
24419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24420 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24421 if test $gcc_cv_as_avr_mlink_relax = yes; then
24423 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24428 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24429 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24430 $as_echo_n "(cached) " >&6
24432 gcc_cv_as_avr_mrmw
=no
24433 if test x
$gcc_cv_as != x
; then
24434 $as_echo '.text' > conftest.s
24435 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24437 (eval $ac_try) 2>&5
24439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24440 test $ac_status = 0; }; }
24442 gcc_cv_as_avr_mrmw
=yes
24444 echo "configure: failed program was" >&5
24447 rm -f conftest.o conftest.s
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24451 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24452 if test $gcc_cv_as_avr_mrmw = yes; then
24454 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24461 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24462 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24463 $as_echo_n "(cached) " >&6
24465 gcc_cv_as_cris_no_mul_bug
=no
24466 if test $in_tree_gas = yes; then
24467 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24468 then gcc_cv_as_cris_no_mul_bug
=yes
24470 elif test x
$gcc_cv_as != x
; then
24471 $as_echo '.text' > conftest.s
24472 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24474 (eval $ac_try) 2>&5
24476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24477 test $ac_status = 0; }; }
24479 gcc_cv_as_cris_no_mul_bug
=yes
24481 echo "configure: failed program was" >&5
24484 rm -f conftest.o conftest.s
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24488 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24489 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24491 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24498 $as_echo_n "checking assembler for .register... " >&6; }
24499 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24500 $as_echo_n "(cached) " >&6
24502 gcc_cv_as_sparc_register_op
=no
24503 if test x
$gcc_cv_as != x
; then
24504 $as_echo '.register %g2, #scratch' > conftest.s
24505 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24507 (eval $ac_try) 2>&5
24509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24510 test $ac_status = 0; }; }
24512 gcc_cv_as_sparc_register_op
=yes
24514 echo "configure: failed program was" >&5
24517 rm -f conftest.o conftest.s
24520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24521 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24522 if test $gcc_cv_as_sparc_register_op = yes; then
24524 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24529 $as_echo_n "checking assembler for #nobits... " >&6; }
24530 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24531 $as_echo_n "(cached) " >&6
24533 gcc_cv_as_sparc_nobits
=no
24534 if test x
$gcc_cv_as != x
; then
24535 $as_echo '.section "nobits",#alloc,#write,#nobits
24536 .section "progbits",#alloc,#write,#progbits' > conftest.s
24537 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24539 (eval $ac_try) 2>&5
24541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24542 test $ac_status = 0; }; }
24544 gcc_cv_as_sparc_nobits
=yes
24546 echo "configure: failed program was" >&5
24549 rm -f conftest.o conftest.s
24552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24553 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24556 cat >>confdefs.h
<<_ACEOF
24557 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24562 $as_echo_n "checking assembler for -relax option... " >&6; }
24563 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24564 $as_echo_n "(cached) " >&6
24566 gcc_cv_as_sparc_relax
=no
24567 if test x
$gcc_cv_as != x
; then
24568 $as_echo '.text' > conftest.s
24569 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24571 (eval $ac_try) 2>&5
24573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24574 test $ac_status = 0; }; }
24576 gcc_cv_as_sparc_relax
=yes
24578 echo "configure: failed program was" >&5
24581 rm -f conftest.o conftest.s
24584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24585 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24586 if test $gcc_cv_as_sparc_relax = yes; then
24588 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24593 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24594 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24595 $as_echo_n "(cached) " >&6
24597 gcc_cv_as_sparc_gotdata_op
=no
24598 if test x
$gcc_cv_as != x
; then
24604 sethi %gdop_hix22(foo), %g1
24605 xor %g1, %gdop_lox10(foo), %g1
24606 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24607 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24609 (eval $ac_try) 2>&5
24611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24612 test $ac_status = 0; }; }
24614 if test x
$gcc_cv_ld != x \
24615 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24616 if test x
$gcc_cv_objdump != x
; then
24617 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24618 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24619 gcc_cv_as_sparc_gotdata_op
=no
24621 gcc_cv_as_sparc_gotdata_op
=yes
24627 echo "configure: failed program was" >&5
24630 rm -f conftest.o conftest.s
24633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24634 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24635 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24637 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24642 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24643 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24644 $as_echo_n "(cached) " >&6
24646 gcc_cv_as_sparc_ua_pcrel
=no
24647 if test x
$gcc_cv_as != x
; then
24654 .uaword %r_disp32(foo)' > conftest.s
24655 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24657 (eval $ac_try) 2>&5
24659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24660 test $ac_status = 0; }; }
24662 if test x
$gcc_cv_ld != x \
24663 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24664 gcc_cv_as_sparc_ua_pcrel
=yes
24668 echo "configure: failed program was" >&5
24671 rm -f conftest.o conftest.s
24674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24675 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24676 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24678 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24682 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24683 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24684 $as_echo_n "(cached) " >&6
24686 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24687 if test x
$gcc_cv_as != x
; then
24691 .uaword %r_disp32(foo)
24692 .byte 0x32, 0x33, 0x34
24696 .skip 4' > conftest.s
24697 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24699 (eval $ac_try) 2>&5
24701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24702 test $ac_status = 0; }; }
24704 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24705 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24706 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24707 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24708 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24709 |
grep 'DISP32' > /dev
/null
2>&1; then
24712 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24717 echo "configure: failed program was" >&5
24720 rm -f conftest.o conftest.s
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24724 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24725 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24727 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24731 fi # unaligned pcrel relocs
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24734 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24735 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24736 $as_echo_n "(cached) " >&6
24738 gcc_cv_as_sparc_offsetable_lo10
=no
24739 if test x
$gcc_cv_as != x
; then
24741 or %g1, %lo(ab) + 12, %g1
24742 or %g1, %lo(ab + 12), %g1' > conftest.s
24743 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -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 if test x
$gcc_cv_objdump != x \
24751 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24752 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24753 gcc_cv_as_sparc_offsetable_lo10
=yes
24756 echo "configure: failed program was" >&5
24759 rm -f conftest.o conftest.s
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24763 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24764 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24766 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24771 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24772 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24773 $as_echo_n "(cached) " >&6
24775 gcc_cv_as_sparc_fmaf
=no
24776 if test x
$gcc_cv_as != x
; then
24778 .register %g2, #scratch
24779 .register %g3, #scratch
24781 fmaddd %f0, %f2, %f4, %f6
24782 addxccc %g1, %g2, %g3
24783 fsrl32 %f2, %f4, %f8
24784 fnaddd %f10, %f12, %f14' > conftest.s
24785 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24787 (eval $ac_try) 2>&5
24789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24790 test $ac_status = 0; }; }
24792 gcc_cv_as_sparc_fmaf
=yes
24794 echo "configure: failed program was" >&5
24797 rm -f conftest.o conftest.s
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24801 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24802 if test $gcc_cv_as_sparc_fmaf = yes; then
24804 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24809 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24810 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24811 $as_echo_n "(cached) " >&6
24813 gcc_cv_as_sparc_sparc4
=no
24814 if test x
$gcc_cv_as != x
; then
24816 .register %g2, #scratch
24817 .register %g3, #scratch
24820 1: cwbneg %g2, %g3, 1f
24823 aes_kexpand0 %f4, %f6, %f8
24824 des_round %f38, %f40, %f42, %f44
24825 camellia_f %f54, %f56, %f58, %f60
24826 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24827 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24829 (eval $ac_try) 2>&5
24831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24832 test $ac_status = 0; }; }
24834 gcc_cv_as_sparc_sparc4
=yes
24836 echo "configure: failed program was" >&5
24839 rm -f conftest.o conftest.s
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24843 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24844 if test $gcc_cv_as_sparc_sparc4 = yes; then
24846 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24851 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24852 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24853 $as_echo_n "(cached) " >&6
24855 gcc_cv_as_sparc_leon
=no
24856 if test x
$gcc_cv_as != x
; then
24858 .register %g2, #scratch
24859 .register %g3, #scratch
24863 casa [%g2] 0xb, %g3, %g1' > conftest.s
24864 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24866 (eval $ac_try) 2>&5
24868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24869 test $ac_status = 0; }; }
24871 gcc_cv_as_sparc_leon
=yes
24873 echo "configure: failed program was" >&5
24876 rm -f conftest.o conftest.s
24879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24880 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24881 if test $gcc_cv_as_sparc_leon = yes; then
24883 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24888 i
[34567]86-*-* | x86_64-
*-*)
24891 # Full C++ conformance when using a shared libstdc++-v3 requires some
24892 # support from the Cygwin DLL, which in more recent versions exports
24893 # wrappers to aid in interposing and redirecting operators new, delete,
24894 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24895 # are configuring for a version of Cygwin that exports the wrappers.
24896 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
24897 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24898 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24899 gcc_ac_cygwin_dll_wrappers
=yes
24901 gcc_ac_cygwin_dll_wrappers
=no
24905 # Can't check presence of libc functions during cross-compile, so
24906 # we just have to assume we're building for an up-to-date target.
24907 gcc_ac_cygwin_dll_wrappers
=yes
24910 cat >>confdefs.h
<<_ACEOF
24911 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24916 cygwin
* | pe | mingw32
* | interix
*)
24917 # Recent binutils allows the three-operand form of ".comm" on PE. This
24918 # definition is used unconditionally to initialise the default state of
24919 # the target option variable that governs usage of the feature.
24920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24921 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24922 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24923 $as_echo_n "(cached) " >&6
24925 gcc_cv_as_comm_has_align
=no
24926 if test $in_tree_gas = yes; then
24927 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24928 then gcc_cv_as_comm_has_align
=yes
24930 elif test x
$gcc_cv_as != x
; then
24931 $as_echo '.comm foo,1,32' > conftest.s
24932 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24934 (eval $ac_try) 2>&5
24936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24937 test $ac_status = 0; }; }
24939 gcc_cv_as_comm_has_align
=yes
24941 echo "configure: failed program was" >&5
24944 rm -f conftest.o conftest.s
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24948 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24951 cat >>confdefs.h
<<_ACEOF
24952 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24955 # Used for DWARF 2 in PE
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24957 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24958 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24959 $as_echo_n "(cached) " >&6
24961 gcc_cv_as_ix86_pe_secrel32
=no
24962 if test $in_tree_gas = yes; then
24963 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24964 then gcc_cv_as_ix86_pe_secrel32
=yes
24966 elif test x
$gcc_cv_as != x
; then
24970 .secrel32 foo' > conftest.s
24971 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24973 (eval $ac_try) 2>&5
24975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24976 test $ac_status = 0; }; }
24978 if test x
$gcc_cv_ld != x \
24979 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24980 gcc_cv_as_ix86_pe_secrel32
=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_pe_secrel32" >&5
24991 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24992 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24994 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24997 # Test if the assembler supports the extended form of the .section
24998 # directive that specifies section alignment. LTO support uses this,
24999 # but normally only after installation, so we warn but don't fail the
25000 # configure if LTO is enabled but the assembler does not support it.
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25002 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25003 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25004 $as_echo_n "(cached) " >&6
25006 gcc_cv_as_section_has_align
=no
25007 if test $in_tree_gas = yes; then
25008 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25009 then gcc_cv_as_section_has_align
=yes
25011 elif test x
$gcc_cv_as != x
; then
25012 $as_echo '.section lto_test,"dr0"' > conftest.s
25013 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25015 (eval $ac_try) 2>&5
25017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25018 test $ac_status = 0; }; }
25020 gcc_cv_as_section_has_align
=yes
25022 echo "configure: failed program was" >&5
25025 rm -f conftest.o conftest.s
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25029 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25031 if test x
$gcc_cv_as_section_has_align != xyes
; then
25032 case ",$enable_languages," in
25034 { $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
25035 $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;}
25042 # Test if the assembler supports the section flag 'e' for specifying
25043 # an excluded section.
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25045 $as_echo_n "checking assembler for .section with e... " >&6; }
25046 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25047 $as_echo_n "(cached) " >&6
25049 gcc_cv_as_section_has_e
=no
25050 if test $in_tree_gas = yes; then
25051 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25052 then gcc_cv_as_section_has_e
=yes
25054 elif test x
$gcc_cv_as != x
; then
25055 $as_echo '.section foo1,"e"
25056 .byte 0,0,0,0' > conftest.s
25057 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25059 (eval $ac_try) 2>&5
25061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25062 test $ac_status = 0; }; }
25064 gcc_cv_as_section_has_e
=yes
25066 echo "configure: failed program was" >&5
25069 rm -f conftest.o conftest.s
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25073 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25076 cat >>confdefs.h
<<_ACEOF
25077 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25082 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25083 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25084 $as_echo_n "(cached) " >&6
25086 gcc_cv_as_ix86_filds
=no
25087 if test x
$gcc_cv_as != x
; then
25088 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25089 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25091 (eval $ac_try) 2>&5
25093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25094 test $ac_status = 0; }; }
25096 gcc_cv_as_ix86_filds
=yes
25098 echo "configure: failed program was" >&5
25101 rm -f conftest.o conftest.s
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25105 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25106 if test $gcc_cv_as_ix86_filds = yes; then
25108 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25113 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25114 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25115 $as_echo_n "(cached) " >&6
25117 gcc_cv_as_ix86_fildq
=no
25118 if test x
$gcc_cv_as != x
; then
25119 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25120 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25122 (eval $ac_try) 2>&5
25124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25125 test $ac_status = 0; }; }
25127 gcc_cv_as_ix86_fildq
=yes
25129 echo "configure: failed program was" >&5
25132 rm -f conftest.o conftest.s
25135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25136 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25137 if test $gcc_cv_as_ix86_fildq = yes; then
25139 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25144 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25145 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25146 $as_echo_n "(cached) " >&6
25148 gcc_cv_as_ix86_cmov_sun_syntax
=no
25149 if test x
$gcc_cv_as != x
; then
25150 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25151 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25153 (eval $ac_try) 2>&5
25155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25156 test $ac_status = 0; }; }
25158 gcc_cv_as_ix86_cmov_sun_syntax
=yes
25160 echo "configure: failed program was" >&5
25163 rm -f conftest.o conftest.s
25166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25167 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25168 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25170 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25175 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25176 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25177 $as_echo_n "(cached) " >&6
25179 gcc_cv_as_ix86_ffreep
=no
25180 if test x
$gcc_cv_as != x
; then
25181 $as_echo 'ffreep %st(1)' > conftest.s
25182 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25184 (eval $ac_try) 2>&5
25186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25187 test $ac_status = 0; }; }
25189 gcc_cv_as_ix86_ffreep
=yes
25191 echo "configure: failed program was" >&5
25194 rm -f conftest.o conftest.s
25197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25198 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25199 if test $gcc_cv_as_ix86_ffreep = yes; then
25201 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25206 $as_echo_n "checking assembler for .quad directive... " >&6; }
25207 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25208 $as_echo_n "(cached) " >&6
25210 gcc_cv_as_ix86_quad
=no
25211 if test x
$gcc_cv_as != x
; then
25212 $as_echo '.quad 0' > conftest.s
25213 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25215 (eval $ac_try) 2>&5
25217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25218 test $ac_status = 0; }; }
25220 gcc_cv_as_ix86_quad
=yes
25222 echo "configure: failed program was" >&5
25225 rm -f conftest.o conftest.s
25228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25229 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25230 if test $gcc_cv_as_ix86_quad = yes; then
25232 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25237 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25238 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25239 $as_echo_n "(cached) " >&6
25241 gcc_cv_as_ix86_sahf
=no
25242 if test x
$gcc_cv_as != x
; then
25245 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25247 (eval $ac_try) 2>&5
25249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25250 test $ac_status = 0; }; }
25252 gcc_cv_as_ix86_sahf
=yes
25254 echo "configure: failed program was" >&5
25257 rm -f conftest.o conftest.s
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25261 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25262 if test $gcc_cv_as_ix86_sahf = yes; then
25264 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25269 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25270 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25271 $as_echo_n "(cached) " >&6
25273 gcc_cv_as_ix86_interunit_movq
=no
25274 if test x
$gcc_cv_as != x
; then
25277 movq %rax, %xmm0' > conftest.s
25278 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25280 (eval $ac_try) 2>&5
25282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25283 test $ac_status = 0; }; }
25285 gcc_cv_as_ix86_interunit_movq
=yes
25287 echo "configure: failed program was" >&5
25290 rm -f conftest.o conftest.s
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25294 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25297 cat >>confdefs.h
<<_ACEOF
25298 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25303 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25304 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25305 $as_echo_n "(cached) " >&6
25307 gcc_cv_as_ix86_hle
=no
25308 if test x
$gcc_cv_as != x
; then
25309 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25310 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25312 (eval $ac_try) 2>&5
25314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25315 test $ac_status = 0; }; }
25317 gcc_cv_as_ix86_hle
=yes
25319 echo "configure: failed program was" >&5
25322 rm -f conftest.o conftest.s
25325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25326 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25327 if test $gcc_cv_as_ix86_hle = yes; then
25329 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25334 $as_echo_n "checking assembler for swap suffix... " >&6; }
25335 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25336 $as_echo_n "(cached) " >&6
25338 gcc_cv_as_ix86_swap
=no
25339 if test x
$gcc_cv_as != x
; then
25340 $as_echo 'movl.s %esp, %ebp' > conftest.s
25341 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25343 (eval $ac_try) 2>&5
25345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25346 test $ac_status = 0; }; }
25348 gcc_cv_as_ix86_swap
=yes
25350 echo "configure: failed program was" >&5
25353 rm -f conftest.o conftest.s
25356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25357 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25358 if test $gcc_cv_as_ix86_swap = yes; then
25360 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25365 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25366 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25367 $as_echo_n "(cached) " >&6
25369 gcc_cv_as_ix86_diff_sect_delta
=no
25370 if test x
$gcc_cv_as != x
; then
25371 $as_echo '.section .rodata
25377 .L2: nop' > conftest.s
25378 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25380 (eval $ac_try) 2>&5
25382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25383 test $ac_status = 0; }; }
25385 gcc_cv_as_ix86_diff_sect_delta
=yes
25387 echo "configure: failed program was" >&5
25390 rm -f conftest.o conftest.s
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25394 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25395 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25397 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25401 # These two are used unconditionally by i386.[ch]; it is to be defined
25402 # to 1 if the feature is present, 0 otherwise.
25403 as_ix86_gotoff_in_data_opt
=
25404 if test x
$gas = xyes
; then
25405 as_ix86_gotoff_in_data_opt
="--32"
25407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25408 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25409 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25410 $as_echo_n "(cached) " >&6
25412 gcc_cv_as_ix86_gotoff_in_data
=no
25413 if test $in_tree_gas = yes; then
25414 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25415 then gcc_cv_as_ix86_gotoff_in_data
=yes
25417 elif test x
$gcc_cv_as != x
; then
25422 .long .L0@GOTOFF' > conftest.s
25423 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25425 (eval $ac_try) 2>&5
25427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25428 test $ac_status = 0; }; }
25430 gcc_cv_as_ix86_gotoff_in_data
=yes
25432 echo "configure: failed program was" >&5
25435 rm -f conftest.o conftest.s
25438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25439 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25442 cat >>confdefs.h
<<_ACEOF
25443 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25448 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25449 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25450 $as_echo_n "(cached) " >&6
25452 gcc_cv_as_ix86_rep_lock_prefix
=no
25453 if test x
$gcc_cv_as != x
; then
25454 $as_echo 'rep movsl
25459 lock addl %edi, (%eax,%esi)
25460 lock orl $0, (%esp)' > conftest.s
25461 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25463 (eval $ac_try) 2>&5
25465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25466 test $ac_status = 0; }; }
25468 gcc_cv_as_ix86_rep_lock_prefix
=yes
25470 echo "configure: failed program was" >&5
25473 rm -f conftest.o conftest.s
25476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25477 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25478 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25480 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25485 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25486 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25487 $as_echo_n "(cached) " >&6
25489 gcc_cv_as_ix86_ud2
=no
25490 if test x
$gcc_cv_as != x
; then
25491 $as_echo 'ud2' > conftest.s
25492 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25494 (eval $ac_try) 2>&5
25496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25497 test $ac_status = 0; }; }
25499 gcc_cv_as_ix86_ud2
=yes
25501 echo "configure: failed program was" >&5
25504 rm -f conftest.o conftest.s
25507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25508 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25509 if test $gcc_cv_as_ix86_ud2 = yes; then
25511 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25516 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25517 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25518 $as_echo_n "(cached) " >&6
25520 gcc_cv_as_ix86_tlsgdplt
=no
25521 if test x
$gcc_cv_as != x
; then
25522 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25523 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25525 (eval $ac_try) 2>&5
25527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25528 test $ac_status = 0; }; }
25530 if test x
$gcc_cv_ld != x \
25531 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25532 gcc_cv_as_ix86_tlsgdplt
=yes
25536 echo "configure: failed program was" >&5
25539 rm -f conftest.o conftest.s
25542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25543 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25544 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25546 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25551 .section .tdata,"aw'$tls_section_flag'",@progbits
25553 .section .text,"ax",@progbits
25554 call tls_ld@tlsldmplt'
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25556 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25557 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25558 $as_echo_n "(cached) " >&6
25560 gcc_cv_as_ix86_tlsldmplt
=no
25561 if test x
$gcc_cv_as != x
; then
25562 $as_echo "$conftest_s" > conftest.s
25563 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25565 (eval $ac_try) 2>&5
25567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25568 test $ac_status = 0; }; }
25570 if test x
$gcc_cv_ld != x \
25571 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25572 gcc_cv_as_ix86_tlsldmplt
=yes
25576 echo "configure: failed program was" >&5
25579 rm -f conftest.o conftest.s
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25583 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25586 cat >>confdefs.h
<<_ACEOF
25587 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25591 # Enforce 32-bit output with gas and gld.
25592 if test x
$gas = xyes
; then
25593 as_ix86_tls_ldm_opt
="--32"
25595 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25596 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
25597 ld_ix86_tls_ldm_opt
="-melf_i386_sol2"
25599 ld_ix86_tls_ldm_opt
="-melf_i386"
25603 .section .text,"ax",@progbits
25605 .type _start, @function
25607 leal value@tlsldm(%ebx), %eax
25608 call ___tls_get_addr@plt
25610 .section .tdata,"aw'$tls_section_flag'",@progbits
25611 .type value, @object
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25614 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25615 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25616 $as_echo_n "(cached) " >&6
25618 gcc_cv_as_ix86_tlsldm
=no
25619 if test x
$gcc_cv_as != x
; then
25620 $as_echo "$conftest_s" > conftest.s
25621 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25623 (eval $ac_try) 2>&5
25625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25626 test $ac_status = 0; }; }
25628 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25629 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
25630 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
25631 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
25632 gcc_cv_as_ix86_tlsldm
=yes
25637 echo "configure: failed program was" >&5
25640 rm -f conftest.o conftest.s
25643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25644 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25647 cat >>confdefs.h
<<_ACEOF
25648 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25656 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25657 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25658 $as_echo_n "(cached) " >&6
25660 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25661 if test $in_tree_gas = yes; then
25662 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25663 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25665 elif test x
$gcc_cv_as != x
; then
25667 addl r15 = @ltoffx(x#), gp
25669 ld8.mov r16 = [r15], x#' > conftest.s
25670 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25672 (eval $ac_try) 2>&5
25674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25675 test $ac_status = 0; }; }
25677 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25679 echo "configure: failed program was" >&5
25682 rm -f conftest.o conftest.s
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25686 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25687 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25689 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25697 *-*-aix*) conftest_s
=' .machine "pwr5"
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25702 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25703 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25704 $as_echo_n "(cached) " >&6
25706 gcc_cv_as_machine_directive
=no
25707 if test x
$gcc_cv_as != x
; then
25708 $as_echo ' .machine ppc7400' > conftest.s
25709 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25711 (eval $ac_try) 2>&5
25713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25714 test $ac_status = 0; }; }
25716 gcc_cv_as_machine_directive
=yes
25718 echo "configure: failed program was" >&5
25721 rm -f conftest.o conftest.s
25724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25725 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25727 if test x
$gcc_cv_as_machine_directive != xyes
; then
25728 echo "*** This target requires an assembler supporting \".machine\"" >&2
25729 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25730 test x
$build = x
$target && exit 1
25734 *) conftest_s
=' .machine power4
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25740 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25741 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25742 $as_echo_n "(cached) " >&6
25744 gcc_cv_as_powerpc_mfcrf
=no
25745 if test $in_tree_gas = yes; then
25746 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25747 then gcc_cv_as_powerpc_mfcrf
=yes
25749 elif test x
$gcc_cv_as != x
; then
25750 $as_echo "$conftest_s" > conftest.s
25751 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25753 (eval $ac_try) 2>&5
25755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25756 test $ac_status = 0; }; }
25758 gcc_cv_as_powerpc_mfcrf
=yes
25760 echo "configure: failed program was" >&5
25763 rm -f conftest.o conftest.s
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25767 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25768 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25770 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25775 *-*-aix*) conftest_s
=' .machine "pwr5"
25778 *) conftest_s
=' .machine power5
25783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25784 $as_echo_n "checking assembler for popcntb support... " >&6; }
25785 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25786 $as_echo_n "(cached) " >&6
25788 gcc_cv_as_powerpc_popcntb
=no
25789 if test $in_tree_gas = yes; then
25790 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25791 then gcc_cv_as_powerpc_popcntb
=yes
25793 elif test x
$gcc_cv_as != x
; then
25794 $as_echo "$conftest_s" > conftest.s
25795 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25797 (eval $ac_try) 2>&5
25799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25800 test $ac_status = 0; }; }
25802 gcc_cv_as_powerpc_popcntb
=yes
25804 echo "configure: failed program was" >&5
25807 rm -f conftest.o conftest.s
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25811 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25812 if test $gcc_cv_as_powerpc_popcntb = yes; then
25814 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25819 *-*-aix*) conftest_s
=' .machine "pwr5x"
25822 *) conftest_s
=' .machine power5
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25828 $as_echo_n "checking assembler for fp round support... " >&6; }
25829 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25830 $as_echo_n "(cached) " >&6
25832 gcc_cv_as_powerpc_fprnd
=no
25833 if test $in_tree_gas = yes; then
25834 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25835 then gcc_cv_as_powerpc_fprnd
=yes
25837 elif test x
$gcc_cv_as != x
; then
25838 $as_echo "$conftest_s" > conftest.s
25839 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25841 (eval $ac_try) 2>&5
25843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25844 test $ac_status = 0; }; }
25846 gcc_cv_as_powerpc_fprnd
=yes
25848 echo "configure: failed program was" >&5
25851 rm -f conftest.o conftest.s
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25855 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25856 if test $gcc_cv_as_powerpc_fprnd = yes; then
25858 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25863 *-*-aix*) conftest_s
=' .machine "pwr6"
25866 *) conftest_s
=' .machine power6
25871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25872 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25873 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25874 $as_echo_n "(cached) " >&6
25876 gcc_cv_as_powerpc_mfpgpr
=no
25877 if test $in_tree_gas = yes; then
25878 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25879 then gcc_cv_as_powerpc_mfpgpr
=yes
25881 elif test x
$gcc_cv_as != x
; then
25882 $as_echo "$conftest_s" > conftest.s
25883 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25885 (eval $ac_try) 2>&5
25887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25888 test $ac_status = 0; }; }
25890 gcc_cv_as_powerpc_mfpgpr
=yes
25892 echo "configure: failed program was" >&5
25895 rm -f conftest.o conftest.s
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25899 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25900 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25902 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25907 *-*-aix*) conftest_s
=' .csect .text[PR]
25909 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25913 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25914 *) conftest_s
=' .text
25916 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25920 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25921 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25922 $as_echo_n "(cached) " >&6
25924 gcc_cv_as_powerpc_rel16
=no
25925 if test $in_tree_gas = yes; then
25926 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25927 then gcc_cv_as_powerpc_rel16
=yes
25929 elif test x
$gcc_cv_as != x
; then
25930 $as_echo "$conftest_s" > conftest.s
25931 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25933 (eval $ac_try) 2>&5
25935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25936 test $ac_status = 0; }; }
25938 gcc_cv_as_powerpc_rel16
=yes
25940 echo "configure: failed program was" >&5
25943 rm -f conftest.o conftest.s
25946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25947 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25948 if test $gcc_cv_as_powerpc_rel16 = yes; then
25950 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25955 *-*-aix*) conftest_s
=' .machine "pwr6"
25958 *) conftest_s
=' .machine power6
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25964 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25965 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25966 $as_echo_n "(cached) " >&6
25968 gcc_cv_as_powerpc_cmpb
=no
25969 if test $in_tree_gas = yes; then
25970 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25971 then gcc_cv_as_powerpc_cmpb
=yes
25973 elif test x
$gcc_cv_as != x
; then
25974 $as_echo "$conftest_s" > conftest.s
25975 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25977 (eval $ac_try) 2>&5
25979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25980 test $ac_status = 0; }; }
25982 gcc_cv_as_powerpc_cmpb
=yes
25984 echo "configure: failed program was" >&5
25987 rm -f conftest.o conftest.s
25990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25991 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25992 if test $gcc_cv_as_powerpc_cmpb = yes; then
25994 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25999 *-*-aix*) conftest_s
=' .machine "pwr6"
26002 *) conftest_s
=' .machine power6
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26008 $as_echo_n "checking assembler for decimal float support... " >&6; }
26009 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26010 $as_echo_n "(cached) " >&6
26012 gcc_cv_as_powerpc_dfp
=no
26013 if test $in_tree_gas = yes; then
26014 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26015 then gcc_cv_as_powerpc_dfp
=yes
26017 elif test x
$gcc_cv_as != x
; then
26018 $as_echo "$conftest_s" > conftest.s
26019 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26021 (eval $ac_try) 2>&5
26023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26024 test $ac_status = 0; }; }
26026 gcc_cv_as_powerpc_dfp
=yes
26028 echo "configure: failed program was" >&5
26031 rm -f conftest.o conftest.s
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26035 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26036 if test $gcc_cv_as_powerpc_dfp = yes; then
26038 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26043 *-*-aix*) conftest_s
=' .machine "pwr7"
26046 *) conftest_s
=' .machine power7
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26052 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26053 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26054 $as_echo_n "(cached) " >&6
26056 gcc_cv_as_powerpc_vsx
=no
26057 if test $in_tree_gas = yes; then
26058 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26059 then gcc_cv_as_powerpc_vsx
=yes
26061 elif test x
$gcc_cv_as != x
; then
26062 $as_echo "$conftest_s" > conftest.s
26063 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26065 (eval $ac_try) 2>&5
26067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26068 test $ac_status = 0; }; }
26070 gcc_cv_as_powerpc_vsx
=yes
26072 echo "configure: failed program was" >&5
26075 rm -f conftest.o conftest.s
26078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26079 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26080 if test $gcc_cv_as_powerpc_vsx = yes; then
26082 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26087 *-*-aix*) conftest_s
=' .machine "pwr7"
26090 *) conftest_s
=' .machine power7
26095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26096 $as_echo_n "checking assembler for popcntd support... " >&6; }
26097 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26098 $as_echo_n "(cached) " >&6
26100 gcc_cv_as_powerpc_popcntd
=no
26101 if test $in_tree_gas = yes; then
26102 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26103 then gcc_cv_as_powerpc_popcntd
=yes
26105 elif test x
$gcc_cv_as != x
; then
26106 $as_echo "$conftest_s" > conftest.s
26107 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26109 (eval $ac_try) 2>&5
26111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26112 test $ac_status = 0; }; }
26114 gcc_cv_as_powerpc_popcntd
=yes
26116 echo "configure: failed program was" >&5
26119 rm -f conftest.o conftest.s
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26123 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26124 if test $gcc_cv_as_powerpc_popcntd = yes; then
26126 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26131 *-*-aix*) conftest_s
=' .machine "pwr8"
26132 .csect .text[PR]';;
26133 *) conftest_s
=' .machine power8
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26138 $as_echo_n "checking assembler for power8 support... " >&6; }
26139 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26140 $as_echo_n "(cached) " >&6
26142 gcc_cv_as_powerpc_power8
=no
26143 if test $in_tree_gas = yes; then
26144 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26145 then gcc_cv_as_powerpc_power8
=yes
26147 elif test x
$gcc_cv_as != x
; then
26148 $as_echo "$conftest_s" > conftest.s
26149 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26151 (eval $ac_try) 2>&5
26153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26154 test $ac_status = 0; }; }
26156 gcc_cv_as_powerpc_power8
=yes
26158 echo "configure: failed program was" >&5
26161 rm -f conftest.o conftest.s
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26165 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26166 if test $gcc_cv_as_powerpc_power8 = yes; then
26168 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26173 *-*-aix*) conftest_s
=' .csect .text[PR]
26175 *) conftest_s
=' .text
26179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26180 $as_echo_n "checking assembler for lwsync support... " >&6; }
26181 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26182 $as_echo_n "(cached) " >&6
26184 gcc_cv_as_powerpc_lwsync
=no
26185 if test $in_tree_gas = yes; then
26186 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26187 then gcc_cv_as_powerpc_lwsync
=yes
26189 elif test x
$gcc_cv_as != x
; then
26190 $as_echo "$conftest_s" > conftest.s
26191 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26193 (eval $ac_try) 2>&5
26195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26196 test $ac_status = 0; }; }
26198 gcc_cv_as_powerpc_lwsync
=yes
26200 echo "configure: failed program was" >&5
26203 rm -f conftest.o conftest.s
26206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26207 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26208 if test $gcc_cv_as_powerpc_lwsync = yes; then
26210 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26215 *-*-aix*) conftest_s
=' .machine "476"
26218 *) conftest_s
=' .machine "476"
26223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26224 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26225 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26226 $as_echo_n "(cached) " >&6
26228 gcc_cv_as_powerpc_dci
=no
26229 if test $in_tree_gas = yes; then
26230 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26231 then gcc_cv_as_powerpc_dci
=yes
26233 elif test x
$gcc_cv_as != x
; then
26234 $as_echo "$conftest_s" > conftest.s
26235 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26237 (eval $ac_try) 2>&5
26239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26240 test $ac_status = 0; }; }
26242 gcc_cv_as_powerpc_dci
=yes
26244 echo "configure: failed program was" >&5
26247 rm -f conftest.o conftest.s
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26251 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26252 if test $gcc_cv_as_powerpc_dci = yes; then
26254 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26259 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26260 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26261 $as_echo_n "(cached) " >&6
26263 gcc_cv_as_powerpc_gnu_attribute
=no
26264 if test $in_tree_gas = yes; then
26265 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26266 then gcc_cv_as_powerpc_gnu_attribute
=yes
26268 elif test x
$gcc_cv_as != x
; then
26269 $as_echo '.gnu_attribute 4,1' > conftest.s
26270 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26272 (eval $ac_try) 2>&5
26274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26275 test $ac_status = 0; }; }
26277 gcc_cv_as_powerpc_gnu_attribute
=yes
26279 echo "configure: failed program was" >&5
26282 rm -f conftest.o conftest.s
26285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26286 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26287 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26289 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26294 $as_echo_n "checking assembler for tls marker support... " >&6; }
26295 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26296 $as_echo_n "(cached) " >&6
26298 gcc_cv_as_powerpc_tls_markers
=no
26299 if test $in_tree_gas = yes; then
26300 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26301 then gcc_cv_as_powerpc_tls_markers
=yes
26303 elif test x
$gcc_cv_as != x
; then
26304 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26305 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26307 (eval $ac_try) 2>&5
26309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26310 test $ac_status = 0; }; }
26312 gcc_cv_as_powerpc_tls_markers
=yes
26314 echo "configure: failed program was" >&5
26317 rm -f conftest.o conftest.s
26320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26321 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26322 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26324 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26331 $as_echo_n "checking assembler for .ref support... " >&6; }
26332 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26333 $as_echo_n "(cached) " >&6
26335 gcc_cv_as_aix_ref
=no
26336 if test $in_tree_gas = yes; then
26337 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26338 then gcc_cv_as_aix_ref
=yes
26340 elif test x
$gcc_cv_as != x
; then
26341 $as_echo ' .csect stuff[rw]
26347 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26349 (eval $ac_try) 2>&5
26351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26352 test $ac_status = 0; }; }
26354 gcc_cv_as_aix_ref
=yes
26356 echo "configure: failed program was" >&5
26359 rm -f conftest.o conftest.s
26362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26363 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26364 if test $gcc_cv_as_aix_ref = yes; then
26366 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26375 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26376 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26377 $as_echo_n "(cached) " >&6
26379 gcc_cv_as_mips_explicit_relocs
=no
26380 if test $in_tree_gas = yes; then
26381 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26382 then gcc_cv_as_mips_explicit_relocs
=yes
26384 elif test x
$gcc_cv_as != x
; then
26385 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26386 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26388 (eval $ac_try) 2>&5
26390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26391 test $ac_status = 0; }; }
26393 gcc_cv_as_mips_explicit_relocs
=yes
26395 echo "configure: failed program was" >&5
26398 rm -f conftest.o conftest.s
26401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26402 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26403 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26404 if test x
$target_cpu_default = x
26405 then target_cpu_default
=MASK_EXPLICIT_RELOCS
26406 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26410 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26411 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26412 $as_echo_n "(cached) " >&6
26414 gcc_cv_as_mips_no_shared
=no
26415 if test $in_tree_gas = yes; then
26416 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26417 then gcc_cv_as_mips_no_shared
=yes
26419 elif test x
$gcc_cv_as != x
; then
26420 $as_echo 'nop' > conftest.s
26421 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26423 (eval $ac_try) 2>&5
26425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26426 test $ac_status = 0; }; }
26428 gcc_cv_as_mips_no_shared
=yes
26430 echo "configure: failed program was" >&5
26433 rm -f conftest.o conftest.s
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26437 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26438 if test $gcc_cv_as_mips_no_shared = yes; then
26440 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26445 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26446 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26447 $as_echo_n "(cached) " >&6
26449 gcc_cv_as_mips_gnu_attribute
=no
26450 if test $in_tree_gas = yes; then
26451 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26452 then gcc_cv_as_mips_gnu_attribute
=yes
26454 elif test x
$gcc_cv_as != x
; then
26455 $as_echo '.gnu_attribute 4,1' > conftest.s
26456 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26458 (eval $ac_try) 2>&5
26460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26461 test $ac_status = 0; }; }
26463 gcc_cv_as_mips_gnu_attribute
=yes
26465 echo "configure: failed program was" >&5
26468 rm -f conftest.o conftest.s
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26472 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26473 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26475 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26480 $as_echo_n "checking assembler for .module support... " >&6; }
26481 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26482 $as_echo_n "(cached) " >&6
26484 gcc_cv_as_mips_dot_module
=no
26485 if test x
$gcc_cv_as != x
; then
26486 $as_echo '.module mips2
26487 .module fp=xx' > conftest.s
26488 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26490 (eval $ac_try) 2>&5
26492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26493 test $ac_status = 0; }; }
26495 gcc_cv_as_mips_dot_module
=yes
26497 echo "configure: failed program was" >&5
26500 rm -f conftest.o conftest.s
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26504 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26505 if test $gcc_cv_as_mips_dot_module = yes; then
26507 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26510 if test x
$gcc_cv_as_mips_dot_module = xno \
26511 && test x
$with_fp_32 != x
; then
26512 as_fn_error
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26516 $as_echo_n "checking assembler for .micromips support... " >&6; }
26517 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26518 $as_echo_n "(cached) " >&6
26520 gcc_cv_as_micromips_support
=no
26521 if test x
$gcc_cv_as != x
; then
26522 $as_echo '.set micromips' > conftest.s
26523 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26525 (eval $ac_try) 2>&5
26527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26528 test $ac_status = 0; }; }
26530 gcc_cv_as_micromips_support
=yes
26532 echo "configure: failed program was" >&5
26535 rm -f conftest.o conftest.s
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26539 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26540 if test $gcc_cv_as_micromips_support = yes; then
26542 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26547 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26548 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26549 $as_echo_n "(cached) " >&6
26551 gcc_cv_as_mips_dtprelword
=no
26552 if test $in_tree_gas = yes; then
26553 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26554 then gcc_cv_as_mips_dtprelword
=yes
26556 elif test x
$gcc_cv_as != x
; then
26557 $as_echo '.section .tdata,"awT",@progbits
26561 .dtprelword x+0x8000' > conftest.s
26562 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26564 (eval $ac_try) 2>&5
26566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26567 test $ac_status = 0; }; }
26569 gcc_cv_as_mips_dtprelword
=yes
26571 echo "configure: failed program was" >&5
26574 rm -f conftest.o conftest.s
26577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26578 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26579 if test $gcc_cv_as_mips_dtprelword = yes; then
26581 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26586 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26587 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26588 $as_echo_n "(cached) " >&6
26590 gcc_cv_as_mips_dspr1_mult
=no
26591 if test x
$gcc_cv_as != x
; then
26592 $as_echo ' .set mips32r2
26600 multu $ac3,$4,$5' > conftest.s
26601 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26603 (eval $ac_try) 2>&5
26605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26606 test $ac_status = 0; }; }
26608 gcc_cv_as_mips_dspr1_mult
=yes
26610 echo "configure: failed program was" >&5
26613 rm -f conftest.o conftest.s
26616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26617 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26618 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26620 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26625 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26626 gcc_cv_as_ld_jalr_reloc
=no
26627 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26628 if test $in_tree_ld = yes ; then
26629 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 \
26630 && test $in_tree_ld_is_elf = yes; then
26631 gcc_cv_as_ld_jalr_reloc
=yes
26633 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26634 echo ' .ent x' > conftest.s
26635 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26636 echo ' lw $25,%call16(y)($28)' >> conftest.s
26637 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26638 echo '1: jalr $25' >> conftest.s
26639 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26640 echo '1: jalr $25' >> conftest.s
26641 echo ' .end x' >> conftest.s
26642 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
26643 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
26644 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
26645 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
26646 gcc_cv_as_ld_jalr_reloc
=yes
26652 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26653 if test x
$target_cpu_default = x
; then
26654 target_cpu_default
=MASK_RELAX_PIC_CALLS
26656 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26660 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26663 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26664 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26665 $as_echo_n "(cached) " >&6
26667 gcc_cv_ld_mips_personality_relaxation
=no
26668 if test $in_tree_ld = yes ; then
26669 if test "$gcc_cv_gld_major_version" -eq 2 \
26670 -a "$gcc_cv_gld_minor_version" -ge 21 \
26671 -o "$gcc_cv_gld_major_version" -gt 2; then
26672 gcc_cv_ld_mips_personality_relaxation
=yes
26674 elif test x
$gcc_cv_as != x \
26675 -a x
$gcc_cv_ld != x \
26676 -a x
$gcc_cv_readelf != x
; then
26677 cat > conftest.s
<<EOF
26679 .cfi_personality 0x80,indirect_ptr
26686 .section .data,"aw",@progbits
26690 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26691 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26692 if $gcc_cv_readelf -d conftest
2>&1 \
26693 |
grep TEXTREL
> /dev
/null
2>&1; then
26695 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26696 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26699 gcc_cv_ld_mips_personality_relaxation
=yes
26703 rm -f conftest.s conftest.o conftest
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26706 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26707 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26709 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26714 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26715 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26716 $as_echo_n "(cached) " >&6
26718 gcc_cv_as_mips_nan
=no
26719 if test x
$gcc_cv_as != x
; then
26720 $as_echo '' > conftest.s
26721 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26723 (eval $ac_try) 2>&5
26725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26726 test $ac_status = 0; }; }
26728 gcc_cv_as_mips_nan
=yes
26730 echo "configure: failed program was" >&5
26733 rm -f conftest.o conftest.s
26736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26737 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26738 if test $gcc_cv_as_mips_nan = yes; then
26740 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26743 if test x
$gcc_cv_as_mips_nan = xno \
26744 && test x
$with_nan != x
; then
26745 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26750 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26751 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
26752 $as_echo_n "(cached) " >&6
26754 gcc_cv_as_s390_gnu_attribute
=no
26755 if test $in_tree_gas = yes; then
26756 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26757 then gcc_cv_as_s390_gnu_attribute
=yes
26759 elif test x
$gcc_cv_as != x
; then
26760 $as_echo '.gnu_attribute 8,1' > conftest.s
26761 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26763 (eval $ac_try) 2>&5
26765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26766 test $ac_status = 0; }; }
26768 gcc_cv_as_s390_gnu_attribute
=yes
26770 echo "configure: failed program was" >&5
26773 rm -f conftest.o conftest.s
26776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
26777 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
26778 if test $gcc_cv_as_s390_gnu_attribute = yes; then
26780 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26786 # Mips and HP-UX need the GNU assembler.
26787 # Linux on IA64 might be able to use the Intel assembler.
26790 mips
*-*-* |
*-*-hpux* )
26791 if test x
$gas_flag = xyes \
26792 ||
test x
"$host" != x
"$build" \
26793 ||
test ! -x "$gcc_cv_as" \
26794 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26797 echo "*** This configuration requires the GNU assembler" >&2
26803 # ??? Not all targets support dwarf2 debug_line, even within a version
26804 # of gas. Moreover, we need to emit a valid instruction to trigger any
26805 # info to the output file. So, as supported targets are added to gas 2.11,
26806 # add some instruction here to (also) show we expect this might work.
26807 # ??? Once 2.11 is released, probably need to add first known working
26808 # version to the per-target configury.
26809 case "$cpu_type" in
26810 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26811 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26812 | visium | xstormy16 | xtensa
)
26822 if test x
"$insn" != x
; then
26824 .file 1 \"conftest.s\"
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26828 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26829 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26830 $as_echo_n "(cached) " >&6
26832 gcc_cv_as_dwarf2_debug_line
=no
26833 if test $in_tree_gas = yes; then
26834 if test $in_tree_gas_is_elf = yes \
26835 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26836 then gcc_cv_as_dwarf2_debug_line
=yes
26838 elif test x
$gcc_cv_as != x
; then
26839 $as_echo "$conftest_s" > conftest.s
26840 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26842 (eval $ac_try) 2>&5
26844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26845 test $ac_status = 0; }; }
26847 if test x
$gcc_cv_objdump != x \
26848 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26849 |
grep debug_line
> /dev
/null
2>&1; then
26850 gcc_cv_as_dwarf2_debug_line
=yes
26853 echo "configure: failed program was" >&5
26856 rm -f conftest.o conftest.s
26859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26860 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26863 # The .debug_line file table must be in the exact order that
26864 # we specified the files, since these indices are also used
26865 # by DW_AT_decl_file. Approximate this test by testing if
26866 # the assembler bitches if the same index is assigned twice.
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26868 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26869 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26870 $as_echo_n "(cached) " >&6
26872 gcc_cv_as_dwarf2_file_buggy
=no
26873 if test x
$gcc_cv_as != x
; then
26874 $as_echo ' .file 1 "foo.s"
26875 .file 1 "bar.s"' > conftest.s
26876 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26878 (eval $ac_try) 2>&5
26880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26881 test $ac_status = 0; }; }
26883 gcc_cv_as_dwarf2_file_buggy
=yes
26885 echo "configure: failed program was" >&5
26888 rm -f conftest.o conftest.s
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26892 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26895 if test $gcc_cv_as_dwarf2_debug_line = yes \
26896 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26898 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26903 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26904 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26905 $as_echo_n "(cached) " >&6
26907 gcc_cv_as_gdwarf2_flag
=no
26908 if test $in_tree_gas = yes; then
26909 if test $in_tree_gas_is_elf = yes \
26910 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26911 then gcc_cv_as_gdwarf2_flag
=yes
26913 elif test x
$gcc_cv_as != x
; then
26914 $as_echo "$insn" > conftest.s
26915 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26917 (eval $ac_try) 2>&5
26919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26920 test $ac_status = 0; }; }
26922 gcc_cv_as_gdwarf2_flag
=yes
26924 echo "configure: failed program was" >&5
26927 rm -f conftest.o conftest.s
26930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26931 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26932 if test $gcc_cv_as_gdwarf2_flag = yes; then
26934 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26939 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26940 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26941 $as_echo_n "(cached) " >&6
26943 gcc_cv_as_gstabs_flag
=no
26944 if test $in_tree_gas = yes; then
26945 if test $in_tree_gas_is_elf = yes \
26946 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26947 then gcc_cv_as_gstabs_flag
=yes
26949 elif test x
$gcc_cv_as != x
; then
26950 $as_echo "$insn" > conftest.s
26951 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26953 (eval $ac_try) 2>&5
26955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26956 test $ac_status = 0; }; }
26958 gcc_cv_as_gstabs_flag
=yes
26960 echo "configure: failed program was" >&5
26963 rm -f conftest.o conftest.s
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26967 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26968 if test $gcc_cv_as_gstabs_flag = yes; then
26970 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26975 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26976 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26977 $as_echo_n "(cached) " >&6
26979 gcc_cv_as_debug_prefix_map_flag
=no
26980 if test $in_tree_gas = yes; then
26981 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26982 then gcc_cv_as_debug_prefix_map_flag
=yes
26984 elif test x
$gcc_cv_as != x
; then
26985 $as_echo "$insn" > conftest.s
26986 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26988 (eval $ac_try) 2>&5
26990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26991 test $ac_status = 0; }; }
26993 gcc_cv_as_debug_prefix_map_flag
=yes
26995 echo "configure: failed program was" >&5
26998 rm -f conftest.o conftest.s
27001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27002 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27003 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27005 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27011 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27012 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27013 $as_echo_n "(cached) " >&6
27015 gcc_cv_as_compress_debug
=no
27016 if test x
$gcc_cv_as != x
; then
27017 $as_echo '' > conftest.s
27018 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27020 (eval $ac_try) 2>&5
27022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27023 test $ac_status = 0; }; }
27025 # gas compiled without zlib cannot compress debug sections and warns
27026 # about it, but still exits successfully. So check for this, too.
27027 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
27029 gcc_cv_as_compress_debug
=0
27030 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
27032 gcc_cv_as_compress_debug
=1
27033 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27034 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27036 gcc_cv_as_compress_debug
=0
27037 # FIXME: Future gas versions will support ELF gABI style via
27038 # --compress-debug-sections[=type].
27041 echo "configure: failed program was" >&5
27044 rm -f conftest.o conftest.s
27047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27048 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27051 cat >>confdefs.h
<<_ACEOF
27052 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27056 cat >>confdefs.h
<<_ACEOF
27057 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27061 cat >>confdefs.h
<<_ACEOF
27062 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27067 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27068 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27069 $as_echo_n "(cached) " >&6
27071 gcc_cv_as_lcomm_with_alignment
=no
27072 if test x
$gcc_cv_as != x
; then
27073 $as_echo '.lcomm bar,4,16' > conftest.s
27074 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27076 (eval $ac_try) 2>&5
27078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27079 test $ac_status = 0; }; }
27081 gcc_cv_as_lcomm_with_alignment
=yes
27083 echo "configure: failed program was" >&5
27086 rm -f conftest.o conftest.s
27089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27090 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27091 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27093 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27097 if test x
$with_sysroot = x
&& test x
$host = x
$target \
27098 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27099 && test "$prefix" != "NONE"; then
27101 cat >>confdefs.h
<<_ACEOF
27102 #define PREFIX_INCLUDE_DIR "$prefix/include"
27107 # Determine the version of glibc, if any, used on the target.
27108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27109 $as_echo_n "checking for target glibc version... " >&6; }
27111 # Check whether --with-glibc-version was given.
27112 if test "${with_glibc_version+set}" = set; then :
27113 withval
=$with_glibc_version;
27114 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27115 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27116 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27118 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
27122 glibc_version_major
=0
27123 glibc_version_minor
=0
27124 if test -f $target_header_dir/features.h \
27125 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27126 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27127 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27128 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27133 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27135 cat >>confdefs.h
<<_ACEOF
27136 #define TARGET_GLIBC_MAJOR $glibc_version_major
27140 cat >>confdefs.h
<<_ACEOF
27141 #define TARGET_GLIBC_MINOR $glibc_version_minor
27145 # Check whether --enable-gnu-unique-object was given.
27146 if test "${enable_gnu_unique_object+set}" = set; then :
27147 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27149 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27150 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27154 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27155 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27156 $as_echo_n "(cached) " >&6
27158 gcc_cv_as_gnu_unique_object
=no
27159 if test $in_tree_gas = yes; then
27160 if test $in_tree_gas_is_elf = yes \
27161 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27162 then gcc_cv_as_gnu_unique_object
=yes
27164 elif test x
$gcc_cv_as != x
; then
27165 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27166 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27168 (eval $ac_try) 2>&5
27170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27171 test $ac_status = 0; }; }
27173 gcc_cv_as_gnu_unique_object
=yes
27175 echo "configure: failed program was" >&5
27178 rm -f conftest.o conftest.s
27181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27182 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27183 if test $gcc_cv_as_gnu_unique_object = yes; then
27184 # We need to unquote above to to use the definition from config.gcc.
27185 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27187 if test $glibc_version_major -gt 2 \
27188 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27189 enable_gnu_unique_object
=yes
27195 if test x
$enable_gnu_unique_object = xyes
; then
27197 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27202 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27203 if test "${gcc_cv_as_line_zero+set}" = set; then :
27204 $as_echo_n "(cached) " >&6
27206 gcc_cv_as_line_zero
=no
27207 if test $in_tree_gas = yes; then
27208 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27209 then gcc_cv_as_line_zero
=yes
27211 elif test "x$gcc_cv_as" != x
; then
27212 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27213 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27215 (eval $ac_try) 2>&5
27217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27218 test $ac_status = 0; }; } &&
27219 test "x`cat conftest.out`" = x
27221 gcc_cv_as_line_zero
=yes
27223 echo "configure: failed program was" >&5
27225 echo "configure: error output was" >&5
27226 cat conftest.out
>&5
27228 rm -f conftest.o conftest.s conftest.out
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27232 $as_echo "$gcc_cv_as_line_zero" >&6; }
27233 if test "x$gcc_cv_as_line_zero" = xyes
; then
27235 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27240 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27241 gcc_cv_ld_eh_frame_hdr
=no
27242 if test $in_tree_ld = yes ; then
27243 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 \
27244 && test $in_tree_ld_is_elf = yes; then
27245 gcc_cv_ld_eh_frame_hdr
=yes
27247 elif test x
$gcc_cv_ld != x
; then
27248 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27249 # Check if linker supports --eh-frame-hdr option
27250 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
27251 gcc_cv_ld_eh_frame_hdr
=yes
27256 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27257 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
27258 gcc_cv_ld_eh_frame_hdr
=yes
27265 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
27267 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27271 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27274 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27275 gcc_cv_ld_eh_frame_ciev3
=no
27276 if test $in_tree_ld = yes ; then
27277 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 \
27278 && test $in_tree_ld_is_elf = yes; then
27279 gcc_cv_ld_eh_frame_ciev3
=yes
27281 elif test x
$gcc_cv_ld != x
; then
27282 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27283 gcc_cv_ld_eh_frame_ciev3
=yes
27284 if test 0"$ld_date" -lt 20040513; then
27285 if test -n "$ld_date"; then
27286 # If there was date string, but was earlier than 2004-05-13, fail
27287 gcc_cv_ld_eh_frame_ciev3
=no
27288 elif test "$ld_vers_major" -lt 2; then
27289 gcc_cv_ld_eh_frame_ciev3
=no
27290 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27291 gcc_cv_ld_eh_frame_ciev3
=no
27297 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27298 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
27299 gcc_cv_ld_eh_frame_ciev3
=yes
27306 cat >>confdefs.h
<<_ACEOF
27307 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27311 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27314 $as_echo_n "checking linker position independent executable support... " >&6; }
27316 if test $in_tree_ld = yes ; then
27317 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 \
27318 && test $in_tree_ld_is_elf = yes; then
27321 elif test x
$gcc_cv_ld != x
; then
27322 # Check if linker supports -pie option
27323 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
27327 if test x
"$gcc_cv_ld_pie" = xyes
; then
27329 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27333 $as_echo "$gcc_cv_ld_pie" >&6; }
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27336 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27337 gcc_cv_ld_pie_copyreloc
=no
27338 if test $gcc_cv_ld_pie = yes ; then
27339 if test $in_tree_ld = yes ; then
27340 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
27341 gcc_cv_ld_pie_copyreloc
=yes
27343 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27344 # Check if linker supports -pie option with copy reloc
27346 i?
86-*-linux* | x86_64-
*-linux*)
27347 cat > conftest1.s
<<EOF
27350 .type a_glob, @object
27355 cat > conftest2.s
<<EOF
27358 .type main, @function
27360 movl %eax, a_glob(%rip)
27363 .section .data.rel,"aw",@progbits
27368 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27369 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
27370 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27371 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
27372 gcc_cv_ld_pie_copyreloc
=yes
27374 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27380 cat >>confdefs.h
<<_ACEOF
27381 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27385 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27388 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27389 gcc_cv_ld_eh_gc_sections
=no
27390 if test $in_tree_ld = yes ; then
27391 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 \
27392 && test $in_tree_ld_is_elf = yes; then
27393 gcc_cv_ld_eh_gc_sections
=yes
27395 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27396 cat > conftest.s
<<EOF
27399 .type _start, @function
27402 .size _start, .-_start
27403 .section .text.foo,"ax",@progbits
27404 .type foo, @function
27408 .section .gcc_except_table.foo,"a",@progbits
27411 .section .eh_frame,"a",@progbits
27414 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27415 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27416 |
grep "gc-sections option ignored" > /dev
/null
; then
27417 gcc_cv_ld_eh_gc_sections
=no
27418 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27419 |
grep gcc_except_table
> /dev
/null
; then
27420 gcc_cv_ld_eh_gc_sections
=yes
27421 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27422 if test x
$gcc_cv_as_comdat_group != xyes
; then
27423 gcc_cv_ld_eh_gc_sections
=no
27424 cat > conftest.s
<<EOF
27427 .type _start, @function
27430 .size _start, .-_start
27431 .section .gnu.linkonce.t.foo,"ax",@progbits
27432 .type foo, @function
27436 .section .gcc_except_table.foo,"a",@progbits
27439 .section .eh_frame,"a",@progbits
27442 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27443 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27444 |
grep "gc-sections option ignored" > /dev
/null
; then
27445 gcc_cv_ld_eh_gc_sections
=no
27446 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27447 |
grep gcc_except_table
> /dev
/null
; then
27448 gcc_cv_ld_eh_gc_sections
=yes
27454 rm -f conftest.s conftest.o conftest
27458 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27459 gcc_cv_ld_eh_gc_sections
=no
27462 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
27464 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27468 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27471 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27472 gcc_cv_ld_eh_gc_sections_bug
=no
27473 if test $in_tree_ld = yes ; then
27474 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 \
27475 && test $in_tree_ld_is_elf = yes; then
27476 gcc_cv_ld_eh_gc_sections_bug
=yes
27478 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
27479 gcc_cv_ld_eh_gc_sections_bug
=yes
27480 cat > conftest.s
<<EOF
27483 .type _start, @function
27486 .size _start, .-_start
27487 .section .text.startup.foo,"ax",@progbits
27488 .type foo, @function
27492 .section .gcc_except_table.foo,"a",@progbits
27495 .section .eh_frame,"a",@progbits
27498 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27499 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27500 |
grep "gc-sections option ignored" > /dev
/null
; then
27502 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27503 |
grep gcc_except_table
> /dev
/null
; then
27504 gcc_cv_ld_eh_gc_sections_bug
=no
27507 rm -f conftest.s conftest.o conftest
27509 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
27511 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27515 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27518 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27519 # gold/gld support compressed debug sections since binutils 2.19/2.21
27520 if test $in_tree_ld = yes ; then
27521 gcc_cv_ld_compress_debug
=0
27522 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 \
27523 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27524 gcc_cv_ld_compress_debug
=2
27525 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
27526 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 \
27527 && test $in_tree_ld_is_elf = yes; then
27528 gcc_cv_ld_compress_debug
=1
27530 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27531 gcc_cv_ld_compress_debug
=1
27532 if test 0"$ld_date" -lt 20050308; then
27533 if test -n "$ld_date"; then
27534 # If there was date string, but was earlier than 2005-03-08, fail
27535 gcc_cv_ld_compress_debug
=0
27536 elif test "$ld_vers_major" -lt 2; then
27537 gcc_cv_ld_compress_debug
=0
27538 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27539 gcc_cv_ld_compress_debug
=0
27542 if test $ld_is_gold = yes; then
27543 gcc_cv_ld_compress_debug
=2
27544 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
27547 case "${target}" in
27549 # Introduced in Solaris 11.2.
27550 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
27551 gcc_cv_ld_compress_debug
=3
27552 gcc_cv_ld_compress_debug_option
="-z compress-sections"
27554 gcc_cv_ld_compress_debug
=0
27558 # Assume linkers other than GNU ld don't support compessed debug
27560 gcc_cv_ld_compress_debug
=0
27565 cat >>confdefs.h
<<_ACEOF
27566 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27570 cat >>confdefs.h
<<_ACEOF
27571 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27575 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27582 $as_echo_n "checking linker --as-needed support... " >&6; }
27583 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27584 $as_echo_n "(cached) " >&6
27586 gcc_cv_ld_as_needed
=no
27587 gcc_cv_ld_as_needed_option
='--as-needed'
27588 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
27589 if test $in_tree_ld = yes ; then
27590 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 \
27591 && test $in_tree_ld_is_elf = yes; then
27592 gcc_cv_ld_as_needed
=yes
27594 elif test x
$gcc_cv_ld != x
; then
27595 # Check if linker supports --as-needed and --no-as-needed options
27596 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
27597 gcc_cv_ld_as_needed
=yes
27600 # Solaris 2 ld always supports -z ignore/-z record.
27602 gcc_cv_ld_as_needed
=yes
27603 gcc_cv_ld_as_needed_option
="-z ignore"
27604 gcc_cv_ld_no_as_needed_option
="-z record"
27609 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27610 # dl_iterate_phdr, i.e. since Solaris 11.
27612 *-*-solaris2.1
[1-9]*)
27614 i?
86-*-* | x86_64-
*-*)
27615 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27616 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27617 gcc_cv_ld_as_needed
=no
27623 gcc_cv_ld_as_needed
=no
27628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27629 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27630 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
27632 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27635 cat >>confdefs.h
<<_ACEOF
27636 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27640 cat >>confdefs.h
<<_ACEOF
27641 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27647 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27648 saved_LDFLAGS
="$LDFLAGS"
27649 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
27650 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27652 /* end confdefs.h. */
27653 int main(void) {return 0;}
27655 if ac_fn_cxx_try_link
"$LINENO"; then :
27656 gcc_cv_ld_clearcap
=yes; break
27658 gcc_cv_ld_clearcap
=no
27660 rm -f core conftest.err conftest.
$ac_objext \
27661 conftest
$ac_exeext conftest.
$ac_ext
27663 LDFLAGS
="$saved_LDFLAGS"
27664 if test "x$gcc_cv_ld_clearcap" = xyes
; then
27666 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27668 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27672 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27674 case "$target:$tm_file" in
27675 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
27678 emul_name
="-melf64lppc"
27681 emul_name
="-melf64ppc"
27684 emul_name
="-melf64ppc_fbsd"
27687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27688 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27689 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27690 $as_echo_n "(cached) " >&6
27692 gcc_cv_ld_no_dot_syms
=no
27693 if test x
"$ld_is_gold" = xyes
; then
27694 gcc_cv_ld_no_dot_syms
=yes
27695 elif test $in_tree_ld = yes ; then
27696 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
27697 gcc_cv_ld_no_dot_syms
=yes
27699 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27700 cat > conftest1.s
<<EOF
27704 cat > conftest2.s
<<EOF
27705 .section ".opd","aw"
27708 .type foo,@function
27710 .quad .LEfoo,.TOC.@tocbase,0
27716 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27717 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27718 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
27719 gcc_cv_ld_no_dot_syms
=yes
27721 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27726 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27727 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
27729 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27734 $as_echo_n "checking linker large toc support... " >&6; }
27735 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27736 $as_echo_n "(cached) " >&6
27738 gcc_cv_ld_large_toc
=no
27739 if test x
"$ld_is_gold" = xyes
; then
27740 gcc_cv_ld_large_toc
=yes
27741 elif test $in_tree_ld = yes ; then
27742 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
27743 gcc_cv_ld_large_toc
=yes
27745 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27746 cat > conftest.s
<<EOF
27747 .section ".tbss","awT",@nobits
27753 addis 9,13,ie0@got@tprel@ha
27754 ld 9,ie0@got@tprel@l(9)
27756 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27757 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
27758 gcc_cv_ld_large_toc
=yes
27760 rm -f conftest conftest.o conftest.s
27764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27765 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27766 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27768 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
27773 $as_echo_n "checking linker toc pointer alignment... " >&6; }
27774 if test "${gcc_cv_ld_toc_align+set}" = set; then :
27775 $as_echo_n "(cached) " >&6
27777 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
27778 cat > conftest.s
<<EOF
27783 .section .data.rel.ro,"aw",@progbits
27788 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27789 && $gcc_cv_ld $emul_name -o conftest conftest.o
> /dev
/null
2>&1; then
27790 gcc_cv_ld_toc_align
=`$gcc_cv_nm conftest | ${AWK} '/\.TOC\./ { match ($0, "0[[:xdigit:]]*", a); print strtonum ("0x" substr(a[0], length(a[0])-3)) }'`
27792 rm -f conftest conftest.o conftest.s
27796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
27797 $as_echo "$gcc_cv_ld_toc_align" >&6; }
27798 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
27800 cat >>confdefs.h
<<_ACEOF
27801 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
27810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27811 $as_echo_n "checking linker large toc support... " >&6; }
27812 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27813 $as_echo_n "(cached) " >&6
27815 gcc_cv_ld_large_toc
=no
27816 if test x
$gcc_cv_as != x
; then
27817 cat > conftest.s
<<EOF
27827 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
27828 gcc_cv_ld_large_toc
=yes
27830 rm -f conftest conftest.o conftest.s
27834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27835 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27836 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27838 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27845 $as_echo_n "checking linker --build-id support... " >&6; }
27846 if test "${gcc_cv_ld_buildid+set}" = set; then :
27847 $as_echo_n "(cached) " >&6
27849 gcc_cv_ld_buildid
=no
27850 if test $in_tree_ld = yes ; then
27851 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27852 "$gcc_cv_gld_minor_version" -ge 18 -o \
27853 "$gcc_cv_gld_major_version" -gt 2 \
27854 && test $in_tree_ld_is_elf = yes; then
27855 gcc_cv_ld_buildid
=yes
27857 elif test x
$gcc_cv_ld != x
; then
27858 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
27859 gcc_cv_ld_buildid
=yes
27863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27864 $as_echo "$gcc_cv_ld_buildid" >&6; }
27865 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27867 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27871 # Check whether --enable-linker-build-id was given.
27872 if test "${enable_linker_build_id+set}" = set; then :
27873 enableval
=$enable_linker_build_id;
27875 enable_linker_build_id
=no
27879 if test x
"$enable_linker_build_id" = xyes
; then
27880 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27882 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27886 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27890 # In binutils 2.21, GNU ld gained support for new emulations fully
27891 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27893 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27894 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27895 $as_echo_n "(cached) " >&6
27897 gcc_cv_ld_sol2_emulation
=no
27898 if test $in_tree_ld = yes ; then
27899 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27900 "$gcc_cv_gld_minor_version" -ge 21 -o \
27901 "$gcc_cv_gld_major_version" -gt 2 \
27902 && test $in_tree_ld_is_elf = yes; then
27903 gcc_cv_ld_sol2_emulation
=yes
27905 elif test x
$gcc_cv_ld != x
; then
27906 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
27907 grep _sol2
> /dev
/null
; then
27908 gcc_cv_ld_sol2_emulation
=yes
27912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27913 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27914 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
27916 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27921 $as_echo_n "checking linker --sysroot support... " >&6; }
27922 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27923 $as_echo_n "(cached) " >&6
27925 gcc_cv_ld_sysroot
=no
27926 if test $in_tree_ld = yes ; then
27927 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
27928 gcc_cv_ld_sysroot
=yes
27930 elif test x
$gcc_cv_ld != x
; then
27931 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
27932 gcc_cv_ld_sysroot
=yes
27936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27937 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27938 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
27940 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27944 # Test for stack protector support in target C library.
27945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27946 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27947 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27948 $as_echo_n "(cached) " >&6
27950 gcc_cv_libc_provides_ssp
=no
27953 # All versions of musl provide stack protector
27954 gcc_cv_libc_provides_ssp
=yes;;
27955 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
27956 # glibc 2.4 and later provides __stack_chk_fail and
27957 # either __stack_chk_guard, or TLS access to stack guard canary.
27959 if test $glibc_version_major -gt 2 \
27960 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27961 gcc_cv_libc_provides_ssp
=yes
27964 if test -f $target_header_dir/features.h \
27965 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27966 $target_header_dir/features.h
> /dev
/null
; then
27967 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27968 $target_header_dir/features.h
> /dev
/null
&& \
27969 test -f $target_header_dir/bits
/uClibc_config.h
&& \
27970 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27971 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
27972 gcc_cv_libc_provides_ssp
=yes
27974 # all versions of Bionic support stack protector
27975 elif test -f $target_header_dir/sys
/cdefs.h \
27976 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27977 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
27978 gcc_cv_libc_provides_ssp
=yes
27983 # Avoid complicated tests (see
27984 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27985 # simply assert that glibc does provide this, which is true for all
27986 # realistically usable GNU/Hurd configurations.
27987 # All supported versions of musl provide it as well
27988 gcc_cv_libc_provides_ssp
=yes;;
27989 *-*-darwin* |
*-*-freebsd*)
27990 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27991 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
27992 gcc_cv_libc_provides_ssp
=yes
27994 echo "no __stack_chk_fail on this target"
27998 *) gcc_cv_libc_provides_ssp
=no
;;
28001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28002 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28004 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28006 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28010 # Test for <sys/sdt.h> on the target.
28012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28013 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28015 if test -f $target_header_dir/sys
/sdt.h
; then
28018 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28022 $as_echo "$have_sys_sdt_h" >&6; }
28024 # Check if TFmode long double should be used by default or not.
28025 # Some glibc targets used DFmode long double, but with glibc 2.4
28026 # and later they can use TFmode.
28028 powerpc
*-*-linux* | \
28029 sparc
*-*-linux* | \
28033 # Check whether --with-long-double-128 was given.
28034 if test "${with_long_double_128+set}" = set; then :
28035 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
28038 if test $glibc_version_major -gt 2 \
28039 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28040 gcc_cv_target_ldbl128
=yes
28043 gcc_cv_target_ldbl128
=no
28044 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28045 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
28046 && gcc_cv_target_ldbl128
=yes
28053 if test x
$gcc_cv_target_ldbl128 = xyes
; then
28055 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28060 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28061 gcc_cv_target_dl_iterate_phdr
=unknown
28063 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28064 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28065 # libdl there, both complicating its use and breaking compatibility
28066 # between Solaris 10 updates.
28067 *-*-solaris2.1
[1-9]*)
28068 # <link.h> needs both a dl_iterate_phdr declaration and support for
28069 # compilation with largefile support.
28070 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
28071 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
28072 gcc_cv_target_dl_iterate_phdr
=yes
28074 gcc_cv_target_dl_iterate_phdr
=no
28077 *-*-dragonfly* |
*-*-freebsd*)
28078 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
28079 gcc_cv_target_dl_iterate_phdr
=yes
28081 gcc_cv_target_dl_iterate_phdr
=no
28085 gcc_cv_target_dl_iterate_phdr
=yes
28089 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
28091 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28095 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28097 # We no longer support different GC mechanisms. Emit an error if
28098 # the user configures with --with-gc.
28100 # Check whether --with-gc was given.
28101 if test "${with_gc+set}" = set; then :
28102 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28106 # Libraries to use on the host. This will normally be set by the top
28107 # level Makefile. Here we simply capture the value for our Makefile.
28108 if test -z "${HOST_LIBS+set}"; then
28113 # Use the system's zlib library.
28115 # Use the system's zlib library.
28116 zlibdir
="-L\$(top_builddir)/../zlib"
28117 zlibinc
="-I\$(top_srcdir)/../zlib"
28119 # Check whether --with-system-zlib was given.
28120 if test "${with_system_zlib+set}" = set; then :
28121 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
28133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28134 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28135 # Check whether --enable-maintainer-mode was given.
28136 if test "${enable_maintainer_mode+set}" = set; then :
28137 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
28143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28144 $as_echo "$maintainer_mode" >&6; }
28146 if test "$maintainer_mode" = "yes"; then
28153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28154 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28155 # Check whether --enable-link-mutex was given.
28156 if test "${enable_link_mutex+set}" = set; then :
28157 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
28162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28163 $as_echo "$do_link_mutex" >&6; }
28165 if test "$do_link_mutex" = "yes"; then
28168 DO_LINK_MUTEX
=false
28176 # Make empty files to contain the specs and options for each language.
28177 # Then add #include lines to for a compiler that has specs and/or options.
28183 # These (without "all_") are set in each config-lang.in.
28184 # `language' must be a single word so is spelled singularly.
28187 all_outputs
='Makefile'
28188 # List of language makefile fragments.
28189 all_lang_makefrags
=
28190 # Additional files for gengtype
28191 all_gtfiles
="$target_gtfiles"
28193 # These are the languages that are set in --enable-languages,
28194 # and are available in the GCC tree.
28195 all_selected_languages
=
28197 # Add the language fragments.
28198 # Languages are added via two mechanisms. Some information must be
28199 # recorded in makefile variables, these are defined in config-lang.in.
28200 # We accumulate them and plug them into the main Makefile.
28201 # The other mechanism is a set of hooks for each of the main targets
28202 # like `clean', `install', etc.
28204 language_hooks
="Make-hooks"
28206 for lang
in ${srcdir}/*/config-lang.
in
28208 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28210 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28211 if test "x$lang_alias" = x
28213 echo "$lang doesn't set \$language." 1>&2
28216 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28217 subdirs
="$subdirs $subdir"
28219 # $gcc_subdir is where the gcc integration files are to be found
28220 # for a language, both for internal compiler purposes (compiler
28221 # sources implementing front-end to GCC tree converters), and for
28222 # build infrastructure purposes (Make-lang.in, etc.)
28224 # This will be <subdir> (relative to $srcdir) if a line like
28225 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28226 # is found in <langdir>/config-lang.in, and will remain <langdir>
28229 # Except for the language alias (fetched above), the regular
28230 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28231 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28232 # only this and the language alias.
28234 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28235 if [ "$gcc_subdir" = "" ]; then
28236 gcc_subdir
="$subdir"
28239 case ",$enable_languages," in
28241 all_selected_languages
="$all_selected_languages $lang_alias"
28242 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
28243 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28254 .
${srcdir}/$gcc_subdir/config-lang.
in
28255 if test "x$language" = x
28257 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28262 case ",$enable_languages," in
28263 *,$lang_alias,*) ;;
28265 for i
in $subdir_requires; do
28266 test -f "${srcdir}/$i/config-lang.in" && continue
28274 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28275 if test -f $srcdir/$gcc_subdir/lang.opt
; then
28276 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28277 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28279 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
28280 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28282 all_languages
="$all_languages $language"
28283 all_compilers
="$all_compilers $compilers"
28284 all_outputs
="$all_outputs $outputs"
28285 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
28286 case ",$enable_languages," in
28289 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28299 for language
in $all_selected_languages
28301 check_languages
="$check_languages check-$language"
28304 # We link each language in with a set of hooks, reached indirectly via
28305 # lang.${target}. Only do so for selected languages.
28309 target_list
="all.cross start.encap rest.encap tags \
28310 install-common install-man install-info install-pdf install-html dvi \
28311 pdf html uninstall info man srcextra srcman srcinfo \
28312 mostlyclean clean distclean maintainer-clean install-plugin"
28314 for t
in $target_list
28317 for lang
in $all_selected_languages
28321 echo "lang.$t: $x" >> Make-hooks
28325 # Option include files
28328 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
28329 option_includes
="option-includes.mk"
28338 echo "dir ." > .gdbinit
28339 echo "dir ${srcdir}" >> .gdbinit
28340 if test x
$gdb_needs_out_file_path = xyes
28342 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28344 if test "x$subdirs" != x
; then
28347 echo "dir ${srcdir}/$s" >> .gdbinit
28350 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28351 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28353 # Put a breakpoint on __asan_report_error to help with debugging buffer
28356 *-fsanitize=address
*)
28357 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28361 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28365 # Find a directory in which to install a shared libgcc.
28367 # Check whether --enable-version-specific-runtime-libs was given.
28368 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28369 enableval
=$enable_version_specific_runtime_libs;
28373 # Substitute configuration variables
28437 if test x
${build} = x
${host} ; then
28438 if test x
${host} = x
${target} ; then
28439 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28441 echo "Links are now set up to build a cross-compiler" 1>&2
28442 echo " from ${host} to ${target}." 1>&2
28445 if test x
${host} = x
${target} ; then
28446 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28447 echo " for ${target}." 1>&2
28449 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28450 echo " from ${host} to ${target}." 1>&2
28459 if test "x${ISLLIBS}" != "x" ; then
28461 $as_echo "#define HAVE_isl 1" >>confdefs.h
28465 # Check whether isl_schedule_constraints_compute_schedule is available;
28466 # it's new in ISL-0.13.
28467 # Check whether isl_options_set_schedule_serialize_sccs is available;
28468 # it's new in ISL-0.15.
28469 if test "x${ISLLIBS}" != "x" ; then
28470 saved_CXXFLAGS
="$CXXFLAGS"
28471 CXXFLAGS
="$CXXFLAGS $ISLINC"
28473 LIBS
="$LIBS $ISLLIBS $GMPLIBS"
28475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
28476 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
28477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28478 /* end confdefs.h. */
28479 #include <isl/schedule.h>
28483 isl_schedule_constraints_compute_schedule (NULL);
28488 if ac_fn_cxx_try_link
"$LINENO"; then :
28489 ac_has_isl_schedule_constraints_compute_schedule
=yes
28491 ac_has_isl_schedule_constraints_compute_schedule
=no
28493 rm -f core conftest.err conftest.
$ac_objext \
28494 conftest
$ac_exeext conftest.
$ac_ext
28495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
28496 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
28498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
28499 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
28500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28501 /* end confdefs.h. */
28502 #include <isl/schedule.h>
28506 isl_options_set_schedule_serialize_sccs (NULL, 0);
28511 if ac_fn_cxx_try_link
"$LINENO"; then :
28512 ac_has_isl_options_set_schedule_serialize_sccs
=yes
28514 ac_has_isl_options_set_schedule_serialize_sccs
=no
28516 rm -f core conftest.err conftest.
$ac_objext \
28517 conftest
$ac_exeext conftest.
$ac_ext
28518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
28519 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
28522 CXXFLAGS
="$saved_CXXFLAGS"
28524 if test x
"$ac_has_isl_schedule_constraints_compute_schedule" = x
"yes"; then
28526 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
28530 if test x
"$ac_has_isl_options_set_schedule_serialize_sccs" = x
"yes"; then
28532 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
28537 # Check for plugin support
28538 # Check whether --enable-plugin was given.
28539 if test "${enable_plugin+set}" = set; then :
28540 enableval
=$enable_plugin; enable_plugin
=$enableval
28542 enable_plugin
=yes; default_plugin
=yes
28550 if test x
$build = x
$host; then
28551 export_sym_check
="nm${exeext} -g"
28552 elif test x
$host = x
$target; then
28553 export_sym_check
="$gcc_cv_nm -g"
28559 if test x
$build = x
$host; then
28560 export_sym_check
="objdump${exeext} -T"
28561 elif test x
$host = x
$target; then
28562 export_sym_check
="$gcc_cv_objdump -T"
28569 if test x
"$enable_plugin" = x
"yes"; then
28571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28572 $as_echo_n "checking for exported symbols... " >&6; }
28573 if test "x$export_sym_check" != x
; then
28574 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28575 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
28576 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
28577 : # No need to use a flag
28578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28579 $as_echo "yes" >&6; }
28581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28582 $as_echo "yes" >&6; }
28583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28584 $as_echo_n "checking for -rdynamic... " >&6; }
28585 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
28586 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
28587 plugin_rdynamic
=yes
28588 pluginlibs
="-rdynamic"
28593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28594 $as_echo "$plugin_rdynamic" >&6; }
28597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28598 $as_echo "unable to check" >&6; }
28603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28604 $as_echo_n "checking for library containing dlopen... " >&6; }
28605 if test "${ac_cv_search_dlopen+set}" = set; then :
28606 $as_echo_n "(cached) " >&6
28608 ac_func_search_save_LIBS
=$LIBS
28609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28610 /* end confdefs.h. */
28612 /* Override any GCC internal prototype to avoid an error.
28613 Use char because int might match the return type of a GCC
28614 builtin and then its argument prototype would still apply. */
28627 for ac_lib
in '' dl
; do
28628 if test -z "$ac_lib"; then
28629 ac_res
="none required"
28632 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28634 if ac_fn_cxx_try_link
"$LINENO"; then :
28635 ac_cv_search_dlopen
=$ac_res
28637 rm -f core conftest.err conftest.
$ac_objext \
28639 if test "${ac_cv_search_dlopen+set}" = set; then :
28643 if test "${ac_cv_search_dlopen+set}" = set; then :
28646 ac_cv_search_dlopen
=no
28648 rm conftest.
$ac_ext
28649 LIBS
=$ac_func_search_save_LIBS
28651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28652 $as_echo "$ac_cv_search_dlopen" >&6; }
28653 ac_res
=$ac_cv_search_dlopen
28654 if test "$ac_res" != no
; then :
28655 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28659 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
28660 pluginlibs
="$pluginlibs -ldl"
28664 # Check that we can build shared objects with -fPIC -shared
28665 saved_LDFLAGS
="$LDFLAGS"
28666 saved_CFLAGS
="$CFLAGS"
28669 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28670 CFLAGS
="$CFLAGS -fPIC"
28671 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
28674 CFLAGS
="$CFLAGS -fPIC"
28675 LDFLAGS
="$LDFLAGS -fPIC -shared"
28678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28679 $as_echo_n "checking for -fPIC -shared... " >&6; }
28680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28681 /* end confdefs.h. */
28691 if ac_fn_cxx_try_link
"$LINENO"; then :
28692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28693 $as_echo "yes" >&6; }; have_pic_shared
=yes
28695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28696 $as_echo "no" >&6; }; have_pic_shared
=no
28698 rm -f core conftest.err conftest.
$ac_objext \
28699 conftest
$ac_exeext conftest.
$ac_ext
28700 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
28704 LDFLAGS
="$saved_LDFLAGS"
28705 CFLAGS
="$saved_CFLAGS"
28707 # If plugin support had been requested but not available, fail.
28708 if test x
"$enable_plugin" = x
"no" ; then
28709 if test x
"$default_plugin" != x
"yes"; then
28711 Building GCC with plugin support requires a host that supports
28712 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28719 if test x
"$enable_plugin" = x
"yes"; then
28721 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28726 # Enable --enable-host-shared
28727 # Check whether --enable-host-shared was given.
28728 if test "${enable_host_shared+set}" = set; then :
28729 enableval
=$enable_host_shared; PICFLAG
=-fPIC
28738 # Check whether --enable-libquadmath-support was given.
28739 if test "${enable_libquadmath_support+set}" = set; then :
28740 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
28742 ENABLE_LIBQUADMATH_SUPPORT
=yes
28745 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28747 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28752 # Specify what hash style to use by default.
28754 # Check whether --with-linker-hash-style was given.
28755 if test "${with_linker_hash_style+set}" = set; then :
28756 withval
=$with_linker_hash_style; case x
"$withval" in
28758 LINKER_HASH_STYLE
=sysv
28761 LINKER_HASH_STYLE
=gnu
28764 LINKER_HASH_STYLE
=both
28767 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28771 LINKER_HASH_STYLE
=''
28774 if test x
"${LINKER_HASH_STYLE}" != x
; then
28776 cat >>confdefs.h
<<_ACEOF
28777 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28782 # Specify what should be the default of -fdiagnostics-color option.
28784 # Check whether --with-diagnostics-color was given.
28785 if test "${with_diagnostics_color+set}" = set; then :
28786 withval
=$with_diagnostics_color; case x
"$withval" in
28788 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
28791 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
28794 DIAGNOSTICS_COLOR_DEFAULT
=-1
28797 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
28800 as_fn_error
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
28804 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
28808 cat >>confdefs.h
<<_ACEOF
28809 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
28813 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28814 # of jit/jit-playback.c.
28815 cat > gcc-driver-name.h
<<EOF
28816 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28819 # Check whether --enable-default-pie was given.
28820 # Check whether --enable-default-pie was given.
28821 if test "${enable_default_pie+set}" = set; then :
28822 enableval
=$enable_default_pie; enable_default_pie
=$enableval
28824 enable_default_pie
=no
28827 if test x
$enable_default_pie == xyes
; then
28829 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
28834 # Check if -fno-PIE works.
28835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
28836 $as_echo_n "checking for -fno-PIE option... " >&6; }
28837 if test "${gcc_cv_c_no_fpie+set}" = set; then :
28838 $as_echo_n "(cached) " >&6
28840 saved_CXXFLAGS
="$CXXFLAGS"
28841 CXXFLAGS
="$CXXFLAGS -fno-PIE"
28842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28843 /* end confdefs.h. */
28844 int main(void) {return 0;}
28846 if ac_fn_cxx_try_compile
"$LINENO"; then :
28847 gcc_cv_c_no_fpie
=yes
28849 gcc_cv_c_no_fpie
=no
28851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28852 CXXFLAGS
="$saved_CXXFLAGS"
28854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
28855 $as_echo "$gcc_cv_c_no_fpie" >&6; }
28856 if test "$gcc_cv_c_no_fpie" = "yes"; then
28857 NO_PIE_CFLAGS
="-fno-PIE"
28861 # Check if -no-pie works.
28862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
28863 $as_echo_n "checking for -no-pie option... " >&6; }
28864 if test "${gcc_cv_no_pie+set}" = set; then :
28865 $as_echo_n "(cached) " >&6
28867 saved_LDFLAGS
="$LDFLAGS"
28868 LDFLAGS
="$LDFLAGS -no-pie"
28869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28870 /* end confdefs.h. */
28871 int main(void) {return 0;}
28873 if ac_fn_cxx_try_link
"$LINENO"; then :
28878 rm -f core conftest.err conftest.
$ac_objext \
28879 conftest
$ac_exeext conftest.
$ac_ext
28880 LDFLAGS
="$saved_LDFLAGS"
28882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
28883 $as_echo "$gcc_cv_no_pie" >&6; }
28884 if test "$gcc_cv_no_pie" = "yes"; then
28885 NO_PIE_FLAG
="-no-pie"
28889 # Check linker supports '-z bndplt'
28890 ld_bndplt_support
=no
28891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
28892 $as_echo_n "checking linker -z bndplt option... " >&6; }
28893 if test x
"$ld_is_gold" = xno
; then
28894 if test $in_tree_ld = yes ; then
28895 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
28896 ld_bndplt_support
=yes
28898 elif test x
$gcc_cv_ld != x
; then
28899 # Check if linker supports -a bndplt option
28900 if $gcc_cv_ld --help 2>/dev
/null |
grep -- '-z bndplt' > /dev
/null
; then
28901 ld_bndplt_support
=yes
28905 if test x
"$ld_bndplt_support" = xyes
; then
28907 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
28910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
28911 $as_echo "$ld_bndplt_support" >&6; }
28913 # Configure the subdirectories
28914 # AC_CONFIG_SUBDIRS($subdirs)
28916 # Create the Makefile
28917 # and configure language subdirectories
28918 ac_config_files
="$ac_config_files $all_outputs"
28921 ac_config_commands
="$ac_config_commands default"
28923 cat >confcache
<<\_ACEOF
28924 # This file is a shell script that caches the results of configure
28925 # tests run on this system so they can be shared between configure
28926 # scripts and configure runs, see configure's option --config-cache.
28927 # It is not useful on other systems. If it contains results you don't
28928 # want to keep, you may remove or edit it.
28930 # config.status only pays attention to the cache file if you give it
28931 # the --recheck option to rerun configure.
28933 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28934 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28935 # following values.
28939 # The following way of writing the cache mishandles newlines in values,
28940 # but we know of no workaround that is simple, portable, and efficient.
28941 # So, we kill variables containing newlines.
28942 # Ultrix sh set writes to stderr and can't be redirected directly,
28943 # and sets the high bit in the cache file unless we assign to the vars.
28945 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28946 eval ac_val
=\$
$ac_var
28950 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28951 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28954 _ | IFS | as_nl
) ;; #(
28955 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
28956 *) { eval $ac_var=; unset $ac_var;} ;;
28962 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28963 *${as_nl}ac_space
=\
*)
28964 # `set' does not quote correctly, so add quotes: double-quote
28965 # substitution turns \\\\ into \\, and sed turns \\ into \.
28968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28971 # `set' quotes correctly as required by POSIX, so do not add quotes.
28972 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28981 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28983 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28985 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
28986 if test -w "$cache_file"; then
28987 test "x$cache_file" != "x/dev/null" &&
28988 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28989 $as_echo "$as_me: updating cache $cache_file" >&6;}
28990 cat confcache
>$cache_file
28992 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28993 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28998 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
28999 # Let make expand exec_prefix.
29000 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29002 DEFS
=-DHAVE_CONFIG_H
29006 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29007 # 1. Remove the extension, and $U if already installed.
29008 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29009 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
29010 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29011 # will be set to the directory where LIBOBJS objects are built.
29012 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29013 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
29015 LIBOBJS
=$ac_libobjs
29017 LTLIBOBJS
=$ac_ltlibobjs
29022 : ${CONFIG_STATUS=./config.status}
29024 ac_clean_files_save
=$ac_clean_files
29025 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29026 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29027 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29029 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29031 # Generated by $as_me.
29032 # Run this file to recreate the current configuration.
29033 # Compiler output produced by configure, useful for debugging
29034 # configure, is in config.log if it exists.
29037 ac_cs_recheck=false
29040 SHELL=\${CONFIG_SHELL-$SHELL}
29043 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
29044 ## -------------------- ##
29045 ## M4sh Initialization. ##
29046 ## -------------------- ##
29048 # Be more Bourne compatible
29049 DUALCASE
=1; export DUALCASE
# for MKS sh
29050 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
29053 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29054 # is contrary to our usage. Disable this feature.
29055 alias -g '${1+"$@"}'='"$@"'
29056 setopt NO_GLOB_SUBST
29058 case `(set -o) 2>/dev/null` in #(
29070 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29071 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29072 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29073 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29074 # Prefer a ksh shell builtin over an external printf program on Solaris,
29075 # but without wasting forks for bash or zsh.
29076 if test -z "$BASH_VERSION$ZSH_VERSION" \
29077 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29078 as_echo='print
-r --'
29079 as_echo_n='print
-rn --'
29080 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29081 as_echo='printf %s
\n'
29082 as_echo_n='printf %s
'
29084 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29085 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
29086 as_echo_n='/usr
/ucb
/echo -n'
29088 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29089 as_echo_n_body='eval
29093 expr "X$arg" : "X\\(.*\\)$as_nl";
29094 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29096 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
29098 export as_echo_n_body
29099 as_echo_n='sh
-c $as_echo_n_body as_echo
'
29101 export as_echo_body
29102 as_echo='sh
-c $as_echo_body as_echo
'
29105 # The user is always right.
29106 if test "${PATH_SEPARATOR+set}" != set; then
29108 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29109 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29116 # We need space, tab and new line, in precisely that order. Quoting is
29117 # there to prevent editors from complaining about space-tab.
29118 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29119 # splitting by setting IFS to empty value.)
29122 # Find who we are. Look in the path if we contain no directory separator.
29124 *[\\/]* ) as_myself=$0 ;;
29125 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29126 for as_dir in $PATH
29129 test -z "$as_dir" && as_dir=.
29130 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29136 # We did not find ourselves, most probably we were run as `sh COMMAND'
29137 # in which case we are not to be found in the path.
29138 if test "x$as_myself" = x
; then
29141 if test ! -f "$as_myself"; then
29142 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29146 # Unset variables that we do not need and which cause bugs (e.g. in
29147 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29148 # suppresses any "Segmentation fault" message there. '((' could
29149 # trigger a bug in pdksh 5.2.14.
29150 for as_var
in BASH_ENV ENV MAIL MAILPATH
29151 do eval test x\
${$as_var+set} = xset \
29152 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
29165 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
29168 # as_fn_error ERROR [LINENO LOG_FD]
29169 # ---------------------------------
29170 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29171 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29172 # script with status $?, using 1 if that was 0.
29175 as_status
=$?
; test $as_status -eq 0 && as_status
=1
29177 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
29178 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29180 $as_echo "$as_me: error: $1" >&2
29181 as_fn_exit
$as_status
29185 # as_fn_set_status STATUS
29186 # -----------------------
29187 # Set $? to STATUS, without forking.
29188 as_fn_set_status
()
29191 } # as_fn_set_status
29193 # as_fn_exit STATUS
29194 # -----------------
29195 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29199 as_fn_set_status
$1
29205 # Portably unset VAR.
29208 { eval $1=; unset $1;}
29210 as_unset
=as_fn_unset
29211 # as_fn_append VAR VALUE
29212 # ----------------------
29213 # Append the text in VALUE to the end of the definition contained in VAR. Take
29214 # advantage of any shell optimizations that allow amortized linear growth over
29215 # repeated appends, instead of the typical quadratic growth present in naive
29217 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
29218 eval 'as_fn_append ()
29229 # as_fn_arith ARG...
29230 # ------------------
29231 # Perform arithmetic evaluation on the ARGs, and store the result in the
29232 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29233 # must be portable across $(()) and expr.
29234 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
29235 eval 'as_fn_arith ()
29242 as_val
=`expr "$@" || test $? -eq 1`
29247 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29248 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29254 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29255 as_basename
=basename
29260 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29266 as_me
=`$as_basename -- "$0" ||
29267 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29268 X"$0" : 'X\(//\)$' \| \
29269 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29271 sed '/^.*\/\([^/][^/]*\)\/*$/{
29285 # Avoid depending upon Character Ranges.
29286 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29287 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29288 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29289 as_cr_digits
='0123456789'
29290 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29292 ECHO_C
= ECHO_N
= ECHO_T
=
29293 case `echo -n x` in #(((((
29295 case `echo 'xy\c'` in
29296 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29298 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
29305 rm -f conf$$ conf$$.exe conf$$.
file
29306 if test -d conf$$.dir
; then
29307 rm -f conf$$.dir
/conf$$.
file
29310 mkdir conf$$.dir
2>/dev
/null
29312 if (echo >conf$$.
file) 2>/dev
/null
; then
29313 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29315 # ... but there are two gotchas:
29316 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29317 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29318 # In both cases, we have to default to `cp -p'.
29319 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29321 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29329 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29330 rmdir conf$$.dir
2>/dev
/null
29335 # Create "$as_dir" as a directory, including parents if necessary.
29340 -*) as_dir
=.
/$as_dir;;
29342 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
29346 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29347 *) as_qdir
=$as_dir;;
29349 as_dirs
="'$as_qdir' $as_dirs"
29350 as_dir
=`$as_dirname -- "$as_dir" ||
29351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29352 X"$as_dir" : 'X\(//\)[^/]' \| \
29353 X"$as_dir" : 'X\(//\)$' \| \
29354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29355 $as_echo X"$as_dir" |
29356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29360 /^X\(\/\/\)[^/].*/{
29373 test -d "$as_dir" && break
29375 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29376 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
29380 if mkdir
-p .
2>/dev
/null
; then
29381 as_mkdir_p
='mkdir -p "$as_dir"'
29383 test -d .
/-p && rmdir .
/-p
29387 if test -x / >/dev
/null
2>&1; then
29388 as_test_x
='test -x'
29390 if ls -dL / >/dev
/null
2>&1; then
29397 if test -d "$1"; then
29403 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29404 ???[sx]*):;;*)false;;esac;fi
29408 as_executable_p
=$as_test_x
29410 # Sed expression to map a string onto a valid CPP name.
29411 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29413 # Sed expression to map a string onto a valid variable name.
29414 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29418 ## ----------------------------------- ##
29419 ## Main body of $CONFIG_STATUS script. ##
29420 ## ----------------------------------- ##
29422 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
29424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29425 # Save the log message, to keep $0 and so on meaningful, and to
29426 # report actual input values of CONFIG_FILES etc. instead of their
29427 # values after options handling.
29429 This file was extended by $as_me, which was
29430 generated by GNU Autoconf 2.64. Invocation command line was
29432 CONFIG_FILES = $CONFIG_FILES
29433 CONFIG_HEADERS = $CONFIG_HEADERS
29434 CONFIG_LINKS = $CONFIG_LINKS
29435 CONFIG_COMMANDS = $CONFIG_COMMANDS
29438 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29443 case $ac_config_files in *"
29444 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
29447 case $ac_config_headers in *"
29448 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
29452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29453 # Files that config.status was made for.
29454 config_files="$ac_config_files"
29455 config_headers="$ac_config_headers"
29456 config_links="$ac_config_links"
29457 config_commands="$ac_config_commands"
29461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29463 \`$as_me' instantiates files and other configuration actions
29464 from templates according to the current configuration. Unless the files
29465 and actions are specified as TAGs, all are instantiated by default.
29467 Usage: $0 [OPTION]... [TAG]...
29469 -h, --help print this help, then exit
29470 -V, --version print version number and configuration settings, then exit
29471 -q, --quiet, --silent
29472 do not print progress messages
29473 -d, --debug don't remove temporary files
29474 --recheck update $as_me by reconfiguring in the same conditions
29475 --file=FILE[:TEMPLATE]
29476 instantiate the configuration file FILE
29477 --header=FILE[:TEMPLATE]
29478 instantiate the configuration header FILE
29480 Configuration files:
29483 Configuration headers:
29486 Configuration links:
29489 Configuration commands:
29492 Report bugs to the package provider."
29495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29498 configured by $0, generated by GNU Autoconf 2.64,
29499 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29501 Copyright (C) 2009 Free Software Foundation, Inc.
29502 This config.status script is free software; the Free Software Foundation
29503 gives unlimited permission to copy, distribute and modify it."
29508 test -n "\$AWK" || AWK=awk
29511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29512 # The default lists apply if the user does not specify any file.
29518 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29519 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29530 # Handling of the options.
29531 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29533 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29534 $as_echo "$ac_cs_version"; exit ;;
29535 --debug |
--debu |
--deb |
--de |
--d |
-d )
29537 --file |
--fil |
--fi |
--f )
29540 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29542 as_fn_append CONFIG_FILES
" '$ac_optarg'"
29543 ac_need_defaults
=false
;;
29544 --header |
--heade |
--head |
--hea )
29547 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29549 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
29550 ac_need_defaults
=false
;;
29552 # Conflict between --help and --header
29553 as_fn_error
"ambiguous option: \`$1'
29554 Try \`$0 --help' for more information.";;
29555 --help |
--hel |
-h )
29556 $as_echo "$ac_cs_usage"; exit ;;
29557 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29558 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29561 # This is an error.
29562 -*) as_fn_error
"unrecognized option: \`$1'
29563 Try \`$0 --help' for more information." ;;
29565 *) as_fn_append ac_config_targets
" $1"
29566 ac_need_defaults
=false
;;
29572 ac_configure_extra_args
=
29574 if $ac_cs_silent; then
29576 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29581 if \$ac_cs_recheck; then
29582 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29584 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29585 CONFIG_SHELL='$SHELL'
29586 export CONFIG_SHELL
29591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29595 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29596 ## Running $as_me. ##
29602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29606 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29607 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29614 # Handling of arguments.
29615 for ac_config_target
in $ac_config_targets
29617 case $ac_config_target in
29618 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
29619 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
29620 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
29621 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
29622 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29623 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
29624 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29625 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
29626 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
29628 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29633 # If the user did not use the arguments to specify the items to instantiate,
29634 # then the envvar interface is used. Set only those that are not.
29635 # We use the long form for the default assignment because of an extremely
29636 # bizarre bug on SunOS 4.1.3.
29637 if $ac_need_defaults; then
29638 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29639 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29640 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
29641 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29644 # Have a temporary directory for convenience. Make it in the build tree
29645 # simply because there is no reason against having it here, and in addition,
29646 # creating and moving files from /tmp can sometimes cause problems.
29647 # Hook for its removal unless debugging.
29648 # Note that there is a small window in which the directory will not be cleaned:
29649 # after its creation but before its name has been assigned to `$tmp'.
29653 trap 'exit_status=$?
29654 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29656 trap 'as_fn_exit 1' 1 2 13 15
29658 # Create a (secure) tmp directory for tmp files.
29661 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29662 test -n "$tmp" && test -d "$tmp"
29665 tmp
=.
/conf$$
-$RANDOM
29666 (umask 077 && mkdir
"$tmp")
29667 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
29669 # Set up the scripts for CONFIG_FILES section.
29670 # No need to generate them if there are no CONFIG_FILES.
29671 # This happens for instance with `./config.status config.h'.
29672 if test -n "$CONFIG_FILES"; then
29674 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
29675 ac_cs_awk_getline
=:
29676 ac_cs_awk_pipe_init
=
29677 ac_cs_awk_read_file
='
29678 while ((getline aline < (F[key])) > 0)
29681 ac_cs_awk_pipe_fini
=
29683 ac_cs_awk_getline
=false
29684 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
29685 ac_cs_awk_read_file
='
29687 print "cat " F[key] " &&"
29688 '$ac_cs_awk_pipe_init
29689 # The final `:' finishes the AND list.
29690 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
29692 ac_cr
=`echo X | tr X '\015'`
29693 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29694 # But we know of no other shell where ac_cr would be empty at this
29695 # point, so we can use a bashism as a fallback.
29696 if test "x$ac_cr" = x
; then
29697 eval ac_cr
=\$
\'\\r
\'
29699 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29700 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29703 ac_cs_awk_cr
=$ac_cr
29706 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29709 # Create commands to substitute file output variables.
29711 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29712 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29713 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
29716 } >conf$
$files.sh
&&
29717 . .
/conf$
$files.sh ||
29718 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
29719 rm -f conf$
$files.sh
29722 echo "cat >conf$$subs.awk <<_ACEOF" &&
29723 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29725 } >conf$$subs.sh ||
29726 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29727 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29729 for ac_last_try in false false false false false :; do
29730 . ./conf$$subs.sh ||
29731 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29733 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
29734 if test $ac_delim_n = $ac_delim_num; then
29736 elif $ac_last_try; then
29737 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29739 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29742 rm -f conf$$subs.sh
29744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29745 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
29749 s/^/S["/; s
/!.
*/"]=/
29759 s/\(.\{148\}\).*/\1/
29761 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
29766 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29773 s/\(.\{148\}\).*/\1/
29775 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
29779 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29784 ' <conf$$subs.awk | sed '
29789 ' >>$CONFIG_STATUS || ac_write_fail=1
29790 rm -f conf$$subs.awk
29791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29793 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
29794 for (key in S) S_is_set[key] = 1
29796 \$ac_cs_awk_pipe_init
29800 nfields = split(line, field, "@
")
29802 len = length(field[1])
29803 for (i = 2; i < nfields; i++) {
29805 keylen = length(key)
29806 if (S_is_set[key]) {
29808 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29809 len += length(value) + length(field[++i])
29814 if (nfields == 3 && !substed) {
29816 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29817 \$ac_cs_awk_read_file
29823 \$ac_cs_awk_pipe_fini
29826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29827 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29828 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
29831 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
29832 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
29835 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29836 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
29837 # trailing colons and then remove the whole line if VPATH becomes empty
29838 # (actually we leave an empty line to preserve line numbers).
29839 if test "x
$srcdir" = x.; then
29840 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29841 s/:*\$(srcdir):*/:/
29842 s/:*\${srcdir}:*/:/
29844 s/^\([^=]*=[ ]*\):*/\1/
29850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29851 fi # test -n "$CONFIG_FILES"
29853 # Set up the scripts for CONFIG_HEADERS section.
29854 # No need to generate them if there are no CONFIG_HEADERS.
29855 # This happens for instance with `./config.status Makefile'.
29856 if test -n "$CONFIG_HEADERS"; then
29857 cat >"$tmp/defines.
awk" <<\_ACAWK ||
29861 # Transform confdefs.h into an awk script `defines.awk', embedded as
29862 # here-document in config.status, that substitutes the proper values into
29863 # config.h.in to produce config.h.
29865 # Create a delimiter string that does not exist in confdefs.h, to ease
29866 # handling of long lines.
29868 for ac_last_try in false false :; do
29869 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
29870 if test -z "$ac_t"; then
29872 elif $ac_last_try; then
29873 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
29875 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29879 # For the awk script, D is an array of macro values keyed by name,
29880 # likewise P contains macro parameters if any. Preserve backslash
29881 # newline sequences.
29883 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29885 s/.\{148\}/&'"$ac_delim"'/g
29888 s/^[ ]*#[ ]*define[ ][ ]*/ /
29895 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
29897 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
29901 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
29902 D["\
1"]=" \
3\\\\\\n
"\\/p
29904 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
29909 s/.\{148\}/&'"$ac_delim"'/g
29914 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
29917 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
29919 ' <confdefs.h | sed '
29920 s/'"$ac_delim"'/"\\\
29921 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29924 for (key in D) D_is_set[key] = 1
29927 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29929 split(line, arg, " ")
29930 if (arg[1] == "#") {
29934 defundef
= substr
(arg
[1], 2)
29937 split(mac1
, mac2
, "(") #)
29939 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
29940 if (D_is_set
[macro
]) {
29941 # Preserve the white space surrounding the "#".
29942 print prefix
"define", macro P
[macro
] D
[macro
]
29945 # Replace #undef with comments. This is necessary, for example,
29946 # in the case of _POSIX_SOURCE, which is predefined and required
29947 # on some systems where configure will not decide to define it.
29948 if (defundef
== "undef") {
29949 print
"/*", prefix defundef
, macro
, "*/"
29957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29958 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
29959 fi # test -n "$CONFIG_HEADERS"
29962 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29967 :[FHLC
]) ac_mode
=$ac_tag; continue;;
29969 case $ac_mode$ac_tag in
29971 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
29972 :[FH
]-) ac_tag
=-:-;;
29973 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
29990 -) ac_f
="$tmp/stdin";;
29991 *) # Look for the file first in the build tree, then in the source tree
29992 # (if the path is not absolute). The absolute path cannot be DOS-style,
29993 # because $ac_f cannot contain `:'.
29997 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
29999 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
30001 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30002 as_fn_append ac_file_inputs
" '$ac_f'"
30005 # Let's still pretend it is `configure' which instantiates (i.e., don't
30006 # use $as_me), people would be surprised to read:
30007 # /* config.h. Generated by config.status. */
30008 configure_input
='Generated from '`
30009 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30011 if test x
"$ac_file" != x-
; then
30012 configure_input
="$ac_file. $configure_input"
30013 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30014 $as_echo "$as_me: creating $ac_file" >&6;}
30016 # Neutralize special characters interpreted by sed in replacement strings.
30017 case $configure_input in #(
30018 *\
&* |
*\|
* |
*\\* )
30019 ac_sed_conf_input
=`$as_echo "$configure_input" |
30020 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30021 *) ac_sed_conf_input
=$configure_input;;
30025 *:-:* |
*:-) cat >"$tmp/stdin" \
30026 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
30031 ac_dir
=`$as_dirname -- "$ac_file" ||
30032 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30033 X"$ac_file" : 'X\(//\)[^/]' \| \
30034 X"$ac_file" : 'X\(//\)$' \| \
30035 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30036 $as_echo X"$ac_file" |
30037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30041 /^X\(\/\/\)[^/].*/{
30054 as_dir
="$ac_dir"; as_fn_mkdir_p
30058 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30060 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30061 # A ".." for each directory in $ac_dir_suffix.
30062 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30063 case $ac_top_builddir_sub in
30064 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30065 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30068 ac_abs_top_builddir
=$ac_pwd
30069 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30070 # for backward compatibility:
30071 ac_top_builddir
=$ac_top_build_prefix
30074 .
) # We are building in place.
30076 ac_top_srcdir
=$ac_top_builddir_sub
30077 ac_abs_top_srcdir
=$ac_pwd ;;
30078 [\\/]* | ?
:[\\/]* ) # Absolute name.
30079 ac_srcdir
=$srcdir$ac_dir_suffix;
30080 ac_top_srcdir
=$srcdir
30081 ac_abs_top_srcdir
=$srcdir ;;
30082 *) # Relative name.
30083 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30084 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30085 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30087 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30099 # If the template does not know about datarootdir, expand it.
30100 # FIXME: This hack should be removed a few years after 2.60.
30101 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30112 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30113 *datarootdir
*) ac_datarootdir_seen
=yes;;
30114 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30116 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30119 ac_datarootdir_hack='
30120 s&@datadir@&$datadir&g
30121 s&@docdir@&$docdir&g
30122 s&@infodir@&$infodir&g
30123 s&@localedir@&$localedir&g
30124 s&@mandir@&$mandir&g
30125 s&\\\${datarootdir}&$datarootdir&g' ;;
30129 # Neutralize VPATH when `$srcdir' = `.'.
30130 # Shell code in configure.ac might set extrasub.
30131 # FIXME: do we really want to maintain this feature?
30132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30133 ac_sed_extra="$ac_vpsub
30136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30138 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30139 s|@configure_input@|
$ac_sed_conf_input|
;t t
30140 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30141 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30142 s
&@srcdir@
&$ac_srcdir&;t t
30143 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30144 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30145 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30146 s
&@builddir@
&$ac_builddir&;t t
30147 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30148 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30149 $ac_datarootdir_hack
30151 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30152 if $ac_cs_awk_getline; then
30153 $AWK -f "$tmp/subs.
awk"
30155 $AWK -f "$tmp/subs.
awk" | $SHELL
30157 || as_fn_error "could not create
$ac_file" "$LINENO" 5
30159 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30160 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
30161 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
30162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30163 which seems to be undefined. Please make sure it is defined." >&5
30164 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30165 which seems to be undefined. Please make sure it is defined." >&2;}
30169 -) cat "$tmp/out" && rm -f "$tmp/out";;
30170 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30172 || as_fn_error "could not create $ac_file" "$LINENO" 5
30178 if test x"$ac_file" != x-; then
30180 $as_echo "/* $configure_input */" \
30181 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30182 } >"$tmp/config.h" \
30183 || as_fn_error "could not create $ac_file" "$LINENO" 5
30184 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30185 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30186 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30189 mv "$tmp/config.h" "$ac_file" \
30190 || as_fn_error "could not create $ac_file" "$LINENO" 5
30193 $as_echo "/* $configure_input */" \
30194 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30195 || as_fn_error "could not create -" "$LINENO" 5
30203 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
30206 # Prefer the file from the source tree if names are identical.
30207 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30208 ac_source=$srcdir/$ac_source
30211 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30212 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30214 if test ! -r "$ac_source"; then
30215 as_fn_error "$ac_source: file not found" "$LINENO" 5
30219 # Try a relative symlink, then a hard link, then a copy.
30221 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30222 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30224 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30225 ln "$ac_source" "$ac_file" 2>/dev/null ||
30226 cp -p "$ac_source" "$ac_file" ||
30227 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30230 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30231 $as_echo "$as_me: executing $ac_file commands" >&6;}
30236 case $ac_file$ac_mode in
30237 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30239 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30240 for lang in $subdirs c-family common
30242 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30244 "as":F) chmod +x as ;;
30245 "collect-ld":F) chmod +x collect-ld ;;
30246 "nm":F) chmod +x nm ;;
30248 case ${CONFIG_HEADERS} in
30249 *auto-host.h:config.in*)
30252 # Make sure all the subdirs exist.
30253 for d in $subdirs doc build common c-family
30255 test -d $d || mkdir $d
30265 ac_clean_files=$ac_clean_files_save
30267 test $ac_write_fail = 0 ||
30268 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30271 # configure is writing to config.log, and then calls config.status.
30272 # config.status does its own redirection, appending to config.log.
30273 # Unfortunately, on DOS this fails, as config.log is still kept open
30274 # by configure, so config.status won't be able to
write to it
; its
30275 # output is simply discarded. So we exec the FD to /dev/null,
30276 # effectively closing config.log, so it can be properly (re)opened and
30277 # appended to by config.status. When coming back to configure, we
30278 # need to make the FD available again.
30279 if test "$no_create" != yes; then
30281 ac_config_status_args
=
30282 test "$silent" = yes &&
30283 ac_config_status_args
="$ac_config_status_args --quiet"
30285 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30287 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30288 # would make configure fail if this is the last instruction.
30289 $ac_cs_success || as_fn_exit $?
30291 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
30292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30293 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}