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
624 common_out_object_file
640 gcc_gxx_include_dir_add_sysroot
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
650 TM_MULTILIB_EXCEPTIONS_CONFIG
659 build_xm_include_list
661 build_install_headers_dir
663 all_selected_languages
680 ORIGINAL_NM_FOR_TARGET
682 ORIGINAL_LD_FOR_TARGET
683 ORIGINAL_PLUGIN_LD_FOR_TARGET
685 ORIGINAL_AS_FOR_TARGET
727 NATIVE_SYSTEM_HEADER_DIR
760 CROSS_SYSTEM_HEADER_DIR
761 TARGET_SYSTEM_ROOT_DEFINE
763 SYSROOT_CFLAGS_FOR_TARGET
773 valgrind_path_defines
848 program_transform_name
859 ac_subst_files
='option_includes
862 enable_option_checking
867 enable_generated_files_in_srcdir
877 enable_gather_detailed_mem_stats
889 with_native_system_header_dir
899 enable_sjlj_exceptions
901 enable_leading_mingw64_underscores
904 enable_win32_registry
910 enable_gnu_indirect_function
911 enable_initfini_array
913 enable_gnu_unique_object
914 enable_linker_build_id
918 enable_maintainer_mode
919 enable_version_specific_runtime_libs
921 enable_libquadmath_support
922 with_linker_hash_style
924 ac_precious_vars
='build_alias
945 # Initialize some variables set by options.
947 ac_init_version
=false
948 ac_unrecognized_opts
=
950 # The variables have the same names as the options, with
951 # dashes changed to underlines.
959 program_transform_name
=s
,x
,x
,
967 # Installation directory options.
968 # These are left unexpanded so users can "make install exec_prefix=/foo"
969 # and all the variables that are supposed to be based on exec_prefix
970 # by default will actually change.
971 # Use braces instead of parens because sh, perl, etc. also accept them.
972 # (The list follows the same order as the GNU Coding Standards.)
973 bindir
='${exec_prefix}/bin'
974 sbindir
='${exec_prefix}/sbin'
975 libexecdir
='${exec_prefix}/libexec'
976 datarootdir
='${prefix}/share'
977 datadir
='${datarootdir}'
978 sysconfdir
='${prefix}/etc'
979 sharedstatedir
='${prefix}/com'
980 localstatedir
='${prefix}/var'
981 includedir
='${prefix}/include'
982 oldincludedir
='/usr/include'
983 docdir
='${datarootdir}/doc/${PACKAGE}'
984 infodir
='${datarootdir}/info'
989 libdir
='${exec_prefix}/lib'
990 localedir
='${datarootdir}/locale'
991 mandir
='${datarootdir}/man'
997 # If the previous option needs an argument, assign it.
998 if test -n "$ac_prev"; then
999 eval $ac_prev=\
$ac_option
1005 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009 # Accept the important Cygnus configure options, so we can diagnose typos.
1011 case $ac_dashdash$ac_option in
1015 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1017 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1018 bindir
=$ac_optarg ;;
1020 -build |
--build |
--buil |
--bui |
--bu)
1021 ac_prev
=build_alias
;;
1022 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1023 build_alias
=$ac_optarg ;;
1025 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1026 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1027 ac_prev
=cache_file
;;
1028 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1029 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1030 cache_file
=$ac_optarg ;;
1032 --config-cache |
-C)
1033 cache_file
=config.cache
;;
1035 -datadir |
--datadir |
--datadi |
--datad)
1037 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1038 datadir
=$ac_optarg ;;
1040 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1041 |
--dataroo |
--dataro |
--datar)
1042 ac_prev
=datarootdir
;;
1043 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1044 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1045 datarootdir
=$ac_optarg ;;
1047 -disable-* |
--disable-*)
1048 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1051 as_fn_error
"invalid feature name: $ac_useropt"
1052 ac_useropt_orig
=$ac_useropt
1053 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1056 "enable_
$ac_useropt"
1058 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1059 ac_unrecognized_sep
=', ';;
1061 eval enable_
$ac_useropt=no
;;
1063 -docdir |
--docdir |
--docdi |
--doc |
--do)
1065 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1066 docdir
=$ac_optarg ;;
1068 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1070 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1071 dvidir
=$ac_optarg ;;
1073 -enable-* |
--enable-*)
1074 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1077 as_fn_error
"invalid feature name: $ac_useropt"
1078 ac_useropt_orig
=$ac_useropt
1079 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1082 "enable_
$ac_useropt"
1084 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1085 ac_unrecognized_sep
=', ';;
1087 eval enable_
$ac_useropt=\
$ac_optarg ;;
1089 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1090 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1091 |
--exec |
--exe |
--ex)
1092 ac_prev
=exec_prefix
;;
1093 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1094 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1095 |
--exec=* |
--exe=* |
--ex=*)
1096 exec_prefix
=$ac_optarg ;;
1098 -gas |
--gas |
--ga |
--g)
1099 # Obsolete; use --with-gas.
1102 -help |
--help |
--hel |
--he |
-h)
1103 ac_init_help
=long
;;
1104 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1105 ac_init_help
=recursive
;;
1106 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1107 ac_init_help
=short
;;
1109 -host |
--host |
--hos |
--ho)
1110 ac_prev
=host_alias
;;
1111 -host=* |
--host=* |
--hos=* |
--ho=*)
1112 host_alias
=$ac_optarg ;;
1114 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1116 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1118 htmldir
=$ac_optarg ;;
1120 -includedir |
--includedir |
--includedi |
--included |
--include \
1121 |
--includ |
--inclu |
--incl |
--inc)
1122 ac_prev
=includedir
;;
1123 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1124 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1125 includedir
=$ac_optarg ;;
1127 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1129 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1130 infodir
=$ac_optarg ;;
1132 -libdir |
--libdir |
--libdi |
--libd)
1134 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1135 libdir
=$ac_optarg ;;
1137 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1138 |
--libexe |
--libex |
--libe)
1139 ac_prev
=libexecdir
;;
1140 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1141 |
--libexe=* |
--libex=* |
--libe=*)
1142 libexecdir
=$ac_optarg ;;
1144 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1145 ac_prev
=localedir
;;
1146 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1147 localedir
=$ac_optarg ;;
1149 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1150 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1151 ac_prev
=localstatedir
;;
1152 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1153 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1154 localstatedir
=$ac_optarg ;;
1156 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1158 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1159 mandir
=$ac_optarg ;;
1161 -nfp |
--nfp |
--nf)
1162 # Obsolete; use --without-fp.
1165 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1166 |
--no-cr |
--no-c |
-n)
1169 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1170 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1173 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1174 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1175 |
--oldin |
--oldi |
--old |
--ol |
--o)
1176 ac_prev
=oldincludedir
;;
1177 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1178 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1179 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1180 oldincludedir
=$ac_optarg ;;
1182 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1184 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1185 prefix
=$ac_optarg ;;
1187 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1188 |
--program-pre |
--program-pr |
--program-p)
1189 ac_prev
=program_prefix
;;
1190 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1191 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1192 program_prefix
=$ac_optarg ;;
1194 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1195 |
--program-suf |
--program-su |
--program-s)
1196 ac_prev
=program_suffix
;;
1197 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1198 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1199 program_suffix
=$ac_optarg ;;
1201 -program-transform-name |
--program-transform-name \
1202 |
--program-transform-nam |
--program-transform-na \
1203 |
--program-transform-n |
--program-transform- \
1204 |
--program-transform |
--program-transfor \
1205 |
--program-transfo |
--program-transf \
1206 |
--program-trans |
--program-tran \
1207 |
--progr-tra |
--program-tr |
--program-t)
1208 ac_prev
=program_transform_name
;;
1209 -program-transform-name=* |
--program-transform-name=* \
1210 |
--program-transform-nam=* |
--program-transform-na=* \
1211 |
--program-transform-n=* |
--program-transform-=* \
1212 |
--program-transform=* |
--program-transfor=* \
1213 |
--program-transfo=* |
--program-transf=* \
1214 |
--program-trans=* |
--program-tran=* \
1215 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1216 program_transform_name
=$ac_optarg ;;
1218 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1220 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1221 pdfdir
=$ac_optarg ;;
1223 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1225 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1228 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1229 |
-silent |
--silent |
--silen |
--sile |
--sil)
1232 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1234 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1236 sbindir
=$ac_optarg ;;
1238 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1239 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1240 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1242 ac_prev
=sharedstatedir
;;
1243 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1244 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1245 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1247 sharedstatedir
=$ac_optarg ;;
1249 -site |
--site |
--sit)
1251 -site=* |
--site=* |
--sit=*)
1254 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1256 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1257 srcdir
=$ac_optarg ;;
1259 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1260 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1261 ac_prev
=sysconfdir
;;
1262 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1263 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1264 sysconfdir
=$ac_optarg ;;
1266 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1267 ac_prev
=target_alias
;;
1268 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1269 target_alias
=$ac_optarg ;;
1271 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1274 -version |
--version |
--versio |
--versi |
--vers |
-V)
1275 ac_init_version
=: ;;
1278 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1281 as_fn_error
"invalid package name: $ac_useropt"
1282 ac_useropt_orig
=$ac_useropt
1283 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1288 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1289 ac_unrecognized_sep
=', ';;
1291 eval with_
$ac_useropt=\
$ac_optarg ;;
1293 -without-* |
--without-*)
1294 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1297 as_fn_error
"invalid package name: $ac_useropt"
1298 ac_useropt_orig
=$ac_useropt
1299 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1304 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1305 ac_unrecognized_sep
=', ';;
1307 eval with_
$ac_useropt=no
;;
1310 # Obsolete; use --with-x.
1313 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1314 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1315 ac_prev
=x_includes
;;
1316 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1317 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1318 x_includes
=$ac_optarg ;;
1320 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1321 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1322 ac_prev
=x_libraries
;;
1323 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1324 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1325 x_libraries
=$ac_optarg ;;
1327 -*) as_fn_error
"unrecognized option: \`$ac_option'
1328 Try \`$0 --help' for more information."
1332 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1333 # Reject names that are not valid shell variable names.
1334 case $ac_envvar in #(
1335 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1336 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1338 eval $ac_envvar=\
$ac_optarg
1339 export $ac_envvar ;;
1342 # FIXME: should be removed in autoconf 3.0.
1343 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1345 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1352 if test -n "$ac_prev"; then
1353 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1354 as_fn_error
"missing argument to $ac_option"
1357 if test -n "$ac_unrecognized_opts"; then
1358 case $enable_option_checking in
1360 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1361 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1365 # Check all directory arguments for consistency.
1366 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1367 datadir sysconfdir sharedstatedir localstatedir includedir \
1368 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1369 libdir localedir mandir
1371 eval ac_val
=\$
$ac_var
1372 # Remove trailing slashes.
1375 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1376 eval $ac_var=\
$ac_val;;
1378 # Be sure to have absolute directory names.
1380 [\\/$
]* | ?
:[\\/]* ) continue;;
1381 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1383 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1386 # There might be people who depend on the old broken behavior: `$host'
1387 # used to hold the argument of --host etc.
1388 # FIXME: To remove some day.
1391 target
=$target_alias
1393 # FIXME: To remove some day.
1394 if test "x$host_alias" != x
; then
1395 if test "x$build_alias" = x
; then
1396 cross_compiling
=maybe
1397 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1398 If a cross compiler is detected then cross compile mode will be used." >&2
1399 elif test "x$build_alias" != "x$host_alias"; then
1405 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1407 test "$silent" = yes && exec 6>/dev
/null
1410 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1411 ac_ls_di
=`ls -di .` &&
1412 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1413 as_fn_error
"working directory cannot be determined"
1414 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1415 as_fn_error
"pwd does not report name of working directory"
1418 # Find the source files, if location was not specified.
1419 if test -z "$srcdir"; then
1420 ac_srcdir_defaulted
=yes
1421 # Try the directory containing this script, then the parent directory.
1422 ac_confdir
=`$as_dirname -- "$as_myself" ||
1423 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424 X"$as_myself" : 'X\(//\)[^/]' \| \
1425 X"$as_myself" : 'X\(//\)$' \| \
1426 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427 $as_echo X"$as_myself" |
1428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1450 ac_srcdir_defaulted
=no
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1454 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1456 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1458 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1460 # When building in place, set srcdir=.
1461 if test "$ac_abs_confdir" = "$ac_pwd"; then
1464 # Remove unnecessary trailing slashes from srcdir.
1465 # Double slashes in file names in object file debugging info
1466 # mess up M-x gdb in Emacs.
1468 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1470 for ac_var
in $ac_precious_vars; do
1471 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1472 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1473 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1474 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1478 # Report the --help message.
1480 if test "$ac_init_help" = "long"; then
1481 # Omit some internal or obsolete options to make the list less imposing.
1482 # This message is too long to be a string in the A/UX 3.1 sh.
1484 \`configure' configures this package to adapt to many kinds of systems.
1486 Usage: $0 [OPTION]... [VAR=VALUE]...
1488 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1489 VAR=VALUE. See below for descriptions of some of the useful variables.
1491 Defaults for the options are specified in brackets.
1494 -h, --help display this help and exit
1495 --help=short display options specific to this package
1496 --help=recursive display the short help of all the included packages
1497 -V, --version display version information and exit
1498 -q, --quiet, --silent do not print \`checking...' messages
1499 --cache-file=FILE cache test results in FILE [disabled]
1500 -C, --config-cache alias for \`--cache-file=config.cache'
1501 -n, --no-create do not create output files
1502 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1504 Installation directories:
1505 --prefix=PREFIX install architecture-independent files in PREFIX
1506 [$ac_default_prefix]
1507 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1510 By default, \`make install' will install all the files in
1511 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1512 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1513 for instance \`--prefix=\$HOME'.
1515 For better control, use the options below.
1517 Fine tuning of the installation directories:
1518 --bindir=DIR user executables [EPREFIX/bin]
1519 --sbindir=DIR system admin executables [EPREFIX/sbin]
1520 --libexecdir=DIR program executables [EPREFIX/libexec]
1521 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1522 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1523 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1524 --libdir=DIR object code libraries [EPREFIX/lib]
1525 --includedir=DIR C header files [PREFIX/include]
1526 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1527 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1528 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1529 --infodir=DIR info documentation [DATAROOTDIR/info]
1530 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1531 --mandir=DIR man documentation [DATAROOTDIR/man]
1532 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1533 --htmldir=DIR html documentation [DOCDIR]
1534 --dvidir=DIR dvi documentation [DOCDIR]
1535 --pdfdir=DIR pdf documentation [DOCDIR]
1536 --psdir=DIR ps documentation [DOCDIR]
1542 --program-prefix=PREFIX prepend PREFIX to installed program names
1543 --program-suffix=SUFFIX append SUFFIX to installed program names
1544 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1547 --build=BUILD configure
for building on BUILD
[guessed
]
1548 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1549 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1553 if test -n "$ac_init_help"; then
1558 --disable-option-checking ignore unrecognized
--enable/--with options
1559 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1560 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1561 --enable-generated-files-in-srcdir
1562 put copies of generated files
in source dir intended
1563 for creating
source tarballs
for users without
1564 texinfo bison or flex
1565 --disable-largefile omit support
for large files
1566 --enable-werror-always enable -Werror despite compiler version
1567 --enable-checking[=LIST
]
1568 enable expensive run-time checks. With LIST
, enable
1569 only specific categories of checks. Categories are
:
1570 yes,no
,all
,none
,release. Flags are
:
1571 assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1572 rtlflag
,rtl
,runtime
,tree
,valgrind
,types
1573 --enable-coverage[=LEVEL
]
1574 enable compiler
's code coverage collection. Use to
1575 measure compiler performance and locate unused parts
1576 of the compiler. With LEVEL, specify optimization.
1577 Values are opt, noopt, default is noopt
1578 --enable-gather-detailed-mem-stats
1579 enable detailed memory allocation stats gathering
1580 --enable-multilib enable library support for multiple ABIs
1581 --enable-multiarch enable support for multiarch paths
1582 --enable-__cxa_atexit enable __cxa_atexit for C++
1583 --enable-decimal-float={no,yes,bid,dpd}
1584 enable decimal float extension to C. Selecting 'bid
'
1585 or 'dpd
' choses which decimal floating point format
1587 --enable-fixed-point enable fixed-point arithmetic extension to C
1588 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1590 --enable-tls enable or disable generation of tls code overriding
1591 the assembler check for tls support
1592 --enable-objc-gc enable the use of Boehm's garbage collector with the
1593 GNU Objective-C runtime
1594 --disable-shared don
't provide a shared libgcc
1595 --enable-languages=LIST specify which front-ends to build
1596 --disable-rpath do not hardcode runtime library paths
1597 --enable-sjlj-exceptions
1598 arrange to use setjmp/longjmp exception handling
1599 --enable-secureplt enable -msecure-plt by default for PowerPC
1600 --enable-leading-mingw64-underscores
1601 enable leading underscores on 64 bit mingw targets
1602 --enable-cld enable -mcld by default for 32bit x86
1603 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1605 --disable-win32-registry
1606 disable lookup of installation paths in the Registry
1608 --enable-win32-registry enable registry lookup (default)
1609 --enable-win32-registry=KEY
1610 use KEY instead of GCC version as the last portion
1612 --enable-shared[=PKGS] build shared libraries [default=yes]
1613 --enable-static[=PKGS] build static libraries [default=yes]
1614 --enable-fast-install[=PKGS]
1615 optimize for fast installation [default=yes]
1616 --disable-libtool-lock avoid locking (might break parallel builds)
1617 --enable-gnu-indirect-function
1618 enable the use of the @gnu_indirect_function to
1620 --enable-initfini-array use .init_array/.fini_array sections
1621 --enable-comdat enable COMDAT group support
1622 --enable-gnu-unique-object
1623 enable the use of the @gnu_unique_object ELF
1624 extension on glibc systems
1625 --enable-linker-build-id
1626 compiler will always pass --build-id to linker
1627 --enable-maintainer-mode
1628 enable make rules and dependencies not useful (and
1629 sometimes confusing) to the casual installer
1630 --enable-version-specific-runtime-libs
1631 specify that runtime libraries should be installed
1632 in a compiler-specific directory
1633 --enable-plugin enable plugin support
1634 --disable-libquadmath-support
1635 disable libquadmath support for Fortran
1638 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1639 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1640 --with-build-libsubdir=DIR Directory where to find libraries for build system
1641 --with-local-prefix=DIR specifies directory to put local include
1642 --with-gxx-include-dir=DIR
1643 specifies directory to put g++ header files
1644 --with-cpp-install-dir=DIR
1645 install the user visible C preprocessor in DIR
1646 (relative to PREFIX) as well as PREFIX/bin
1647 --with-gnu-ld arrange to work with GNU ld
1648 --with-ld arrange to use the specified ld (full pathname)
1649 --with-demangler-in-ld try to use demangler in GNU ld
1650 --with-gnu-as arrange to work with GNU as
1651 --with-as arrange to use the specified as (full pathname)
1652 --with-stabs arrange to use stabs instead of host debug format
1653 --with-dwarf2 force the default debug format to be DWARF 2
1654 --with-native-system-header-dir=dir
1655 use dir as the directory to look for standard
1656 system header files in. Defaults to /usr/include.
1657 --with-build-sysroot=sysroot
1658 use sysroot as the system root during the build
1659 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1660 --with-specs=SPECS add SPECS to driver command-line processing
1661 --with-pkgversion=PKG Use PKG in the version string in place of "Linaro
1662 GCC `cat $srcdir/LINARO-VERSION`"
1663 --with-bugurl=URL Direct users to URL to report a bug
1664 --with-multilib-list select multilibs (SH and x86-64 only)
1665 --with-gnu-ld assume the C compiler uses GNU ld default=no
1666 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1667 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1668 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1670 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1671 --with-plugin-ld=[ARG
] specify the plugin linker
1672 --with-long-double-128 use
128-bit long double by default
1673 --with-gc={page
,zone
} this option is not supported anymore. It used to
1674 choose the garbage collection mechanism to use with
1676 --with-system-zlib use installed libz
1677 --with-linker-hash-style={sysv
,gnu
,both
}
1678 specify the linker
hash style
1680 Some influential environment variables
:
1681 CC C compiler
command
1682 CFLAGS C compiler flags
1683 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1684 nonstandard directory
<lib dir
>
1685 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1686 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1687 you have headers
in a nonstandard directory
<include dir
>
1688 CXX C
++ compiler
command
1689 CXXFLAGS C
++ compiler flags
1691 CXXCPP C
++ preprocessor
1692 GMPLIBS How to link GMP
1693 GMPINC How to
find GMP include files
1694 ISLLIBS How to link ISL
1695 ISLINC How to
find ISL include files
1696 CLOOGLIBS How to link CLOOG
1697 CLOOGINC How to
find CLOOG include files
1699 Use these variables to override the choices made by
`configure' or to help
1700 it to find libraries and programs with nonstandard names/locations.
1702 Report bugs to the package provider.
1707 if test "$ac_init_help" = "recursive"; then
1708 # If there are subdirs, report their specific --help.
1709 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1710 test -d "$ac_dir" ||
1711 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1716 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1719 # A ".." for each directory in $ac_dir_suffix.
1720 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1721 case $ac_top_builddir_sub in
1722 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1723 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1726 ac_abs_top_builddir=$ac_pwd
1727 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1728 # for backward compatibility:
1729 ac_top_builddir=$ac_top_build_prefix
1732 .) # We are building in place.
1734 ac_top_srcdir=$ac_top_builddir_sub
1735 ac_abs_top_srcdir=$ac_pwd ;;
1736 [\\/]* | ?:[\\/]* ) # Absolute name.
1737 ac_srcdir=$srcdir$ac_dir_suffix;
1738 ac_top_srcdir=$srcdir
1739 ac_abs_top_srcdir=$srcdir ;;
1741 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1742 ac_top_srcdir=$ac_top_build_prefix$srcdir
1743 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1745 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1747 cd "$ac_dir" || { ac_status=$?; continue; }
1748 # Check for guested configure.
1749 if test -f "$ac_srcdir/configure.gnu"; then
1751 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1752 elif test -f "$ac_srcdir/configure"; then
1754 $SHELL "$ac_srcdir/configure" --help=recursive
1756 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1758 cd "$ac_pwd" || { ac_status=$?; break; }
1762 test -n "$ac_init_help" && exit $ac_status
1763 if $ac_init_version; then
1766 generated by GNU Autoconf 2.64
1768 Copyright (C) 2009 Free Software Foundation, Inc.
1769 This configure script is free software; the Free Software Foundation
1770 gives unlimited permission to copy, distribute and modify it.
1775 ## ------------------------ ##
1776 ## Autoconf initialization. ##
1777 ## ------------------------ ##
1779 # ac_fn_c_try_compile LINENO
1780 # --------------------------
1781 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_c_try_compile ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 rm -f conftest.$ac_objext
1786 if { { ac_try="$ac_compile"
1788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1789 *) ac_try_echo
=$ac_try;;
1791 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_compile") 2>conftest.err
1795 if test -s conftest.err
; then
1796 grep -v '^ *+' conftest.err
>conftest.er1
1797 cat conftest.er1
>&5
1798 mv -f conftest.er1 conftest.err
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && {
1802 test -z "$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1804 } && test -s conftest.
$ac_objext; then :
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.
$ac_ext >&5
1812 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1815 } # ac_fn_c_try_compile
1817 # ac_fn_cxx_try_compile LINENO
1818 # ----------------------------
1819 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1820 ac_fn_cxx_try_compile
()
1822 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1823 rm -f conftest.
$ac_objext
1824 if { { ac_try
="$ac_compile"
1826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_compile") 2>conftest.err
1833 if test -s conftest.err; then
1834 grep -v '^ *+' conftest.err >conftest.er1
1835 cat conftest.er1 >&5
1836 mv -f conftest.er1 conftest.err
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && {
1840 test -z "$ac_cxx_werror_flag" ||
1841 test ! -s conftest.err
1842 } && test -s conftest.$ac_objext; then :
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853 } # ac_fn_cxx_try_compile
1855 # ac_fn_c_try_cpp LINENO
1856 # ----------------------
1857 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 if { { ac_try="$ac_cpp conftest.$ac_ext"
1863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1864 *) ac_try_echo
=$ac_try;;
1866 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1870 if test -s conftest.err
; then
1871 grep -v '^ *+' conftest.err
>conftest.er1
1872 cat conftest.er1
>&5
1873 mv -f conftest.er1 conftest.err
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; } >/dev
/null
&& {
1877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1878 test ! -s conftest.err
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.
$ac_ext >&5
1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1892 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1893 # -------------------------------------------------------
1894 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1895 # the include files in INCLUDES and setting the cache variable VAR
1897 ac_fn_c_check_header_mongrel
()
1899 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1900 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902 $as_echo_n "checking for $2... " >&6; }
1903 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1904 $as_echo_n "(cached) " >&6
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908 $as_echo "$ac_res" >&6; }
1910 # Is the header compilable?
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1912 $as_echo_n "checking $2 usability... " >&6; }
1913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1918 if ac_fn_c_try_compile
"$LINENO"; then :
1919 ac_header_compiler
=yes
1921 ac_header_compiler
=no
1923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1925 $as_echo "$ac_header_compiler" >&6; }
1927 # Is the header present?
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1929 $as_echo_n "checking $2 presence... " >&6; }
1930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1934 if ac_fn_c_try_cpp
"$LINENO"; then :
1935 ac_header_preproc
=yes
1937 ac_header_preproc
=no
1939 rm -f conftest.err conftest.
$ac_ext
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1941 $as_echo "$ac_header_preproc" >&6; }
1943 # So? What about this header?
1944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1947 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1949 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1953 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1955 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1957 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1959 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1961 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1967 $as_echo_n "(cached) " >&6
1969 eval "$3=\$ac_header_compiler"
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1977 } # ac_fn_c_check_header_mongrel
1979 # ac_fn_c_try_run LINENO
1980 # ----------------------
1981 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1982 # that executables *can* be run.
1985 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1986 if { { ac_try
="$ac_link"
1988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1989 *) ac_try_echo=$ac_try;;
1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 $as_echo "$ac_try_echo"; } >&5
1993 (eval "$ac_link") 2>&5
1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1997 { { case "(($ac_try" in
1998 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1999 *) ac_try_echo
=$ac_try;;
2001 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 $as_echo "$ac_try_echo"; } >&5
2003 (eval "$ac_try") 2>&5
2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006 test $ac_status = 0; }; }; then :
2009 $as_echo "$as_me: program exited with status $ac_status" >&5
2010 $as_echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.
$ac_ext >&5
2013 ac_retval
=$ac_status
2015 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2016 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2021 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2022 # -------------------------------------------------------
2023 # Tests whether HEADER exists and can be compiled using the include files in
2024 # INCLUDES, setting the cache variable VAR accordingly.
2025 ac_fn_c_check_header_compile
()
2027 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2029 $as_echo_n "checking for $2... " >&6; }
2030 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2031 $as_echo_n "(cached) " >&6
2033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2038 if ac_fn_c_try_compile
"$LINENO"; then :
2043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2048 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2050 } # ac_fn_c_check_header_compile
2052 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2053 # --------------------------------------------
2054 # Tries to find the compile-time value of EXPR in a program that includes
2055 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2057 ac_fn_c_compute_int
()
2059 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2060 if test "$cross_compiling" = yes; then
2061 # Depending upon the size, compute the lo and hi bounds.
2062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2068 static int test_array [1 - 2 * !(($2) >= 0)];
2075 if ac_fn_c_try_compile
"$LINENO"; then :
2078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2084 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2091 if ac_fn_c_try_compile
"$LINENO"; then :
2092 ac_hi
=$ac_mid; break
2094 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2095 if test $ac_lo -le $ac_mid; then
2099 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2110 static int test_array [1 - 2 * !(($2) < 0)];
2117 if ac_fn_c_try_compile
"$LINENO"; then :
2120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2126 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2133 if ac_fn_c_try_compile
"$LINENO"; then :
2134 ac_lo
=$ac_mid; break
2136 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2137 if test $ac_mid -le $ac_hi; then
2141 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2151 # Binary search between lo and hi bounds.
2152 while test "x$ac_lo" != "x$ac_hi"; do
2153 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2160 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2167 if ac_fn_c_try_compile
"$LINENO"; then :
2170 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2175 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2182 static long int longval () { return $2; }
2183 static unsigned long int ulongval () { return $2; }
2190 FILE *f = fopen ("conftest.val", "w");
2195 long int i = longval ();
2198 fprintf (f, "%ld", i);
2202 unsigned long int i = ulongval ();
2205 fprintf (f, "%lu", i);
2207 /* Do not output a trailing newline, as this causes \r\n confusion
2208 on some platforms. */
2209 return ferror (f) || fclose (f) != 0;
2215 if ac_fn_c_try_run
"$LINENO"; then :
2216 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2220 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2221 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2225 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2228 } # ac_fn_c_compute_int
2230 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2231 # -------------------------------------------
2232 # Tests whether TYPE exists after having included INCLUDES, setting cache
2233 # variable VAR accordingly.
2234 ac_fn_c_check_type
()
2236 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238 $as_echo_n "checking for $2... " >&6; }
2239 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2240 $as_echo_n "(cached) " >&6
2243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2255 if ac_fn_c_try_compile
"$LINENO"; then :
2256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2268 if ac_fn_c_try_compile
"$LINENO"; then :
2273 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279 $as_echo "$ac_res" >&6; }
2280 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2282 } # ac_fn_c_check_type
2284 # ac_fn_c_find_intX_t LINENO BITS VAR
2285 # -----------------------------------
2286 # Finds a signed integer type with width BITS, setting cache variable VAR
2288 ac_fn_c_find_intX_t
()
2290 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2292 $as_echo_n "checking for int$2_t... " >&6; }
2293 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2294 $as_echo_n "(cached) " >&6
2297 for ac_type
in int
$2_t 'int' 'long int' \
2298 'long long int' 'short int' 'signed char'; do
2299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h. */
2301 $ac_includes_default
2305 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2312 if ac_fn_c_try_compile
"$LINENO"; then :
2313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2315 $ac_includes_default
2319 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2320 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2327 if ac_fn_c_try_compile
"$LINENO"; then :
2334 eval "$3=\$ac_type" ;;
2337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2341 if test "x$as_val" = x
""no
; then :
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 $as_echo "$ac_res" >&6; }
2351 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2353 } # ac_fn_c_find_intX_t
2355 # ac_fn_c_try_link LINENO
2356 # -----------------------
2357 # Try to link conftest.$ac_ext, and return whether this succeeded.
2360 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2361 rm -f conftest.
$ac_objext conftest
$ac_exeext
2362 if { { ac_try
="$ac_link"
2364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2368 $as_echo "$ac_try_echo"; } >&5
2369 (eval "$ac_link") 2>conftest.err
2371 if test -s conftest.err; then
2372 grep -v '^ *+' conftest.err >conftest.er1
2373 cat conftest.er1 >&5
2374 mv -f conftest.er1 conftest.err
2376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2377 test $ac_status = 0; } && {
2378 test -z "$ac_c_werror_flag" ||
2379 test ! -s conftest.err
2380 } && test -s conftest$ac_exeext && {
2381 test "$cross_compiling" = yes ||
2382 $as_test_x conftest$ac_exeext
2386 $as_echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2391 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2392 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2393 # interfere with the next link command; also delete a directory that is
2394 # left behind by Apple's compiler. We do this before executing the actions.
2395 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2396 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2399 } # ac_fn_c_try_link
2401 # ac_fn_c_find_uintX_t LINENO BITS VAR
2402 # ------------------------------------
2403 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2405 ac_fn_c_find_uintX_t ()
2407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2409 $as_echo_n "checking for uint$2_t... " >&6; }
2410 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2411 $as_echo_n "(cached) " >&6
2414 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2415 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2418 $ac_includes_default
2422 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2429 if ac_fn_c_try_compile "$LINENO"; then :
2434 eval "$3=\$ac_type" ;;
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439 if test "x$as_val" = x""no; then :
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2448 $as_echo "$ac_res" >&6; }
2449 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2451 } # ac_fn_c_find_uintX_t
2453 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2454 # ----------------------------------------------
2455 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2456 ac_fn_c_check_header_preproc ()
2458 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2460 $as_echo_n "checking for $2... " >&6; }
2461 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2462 $as_echo_n "(cached) " >&6
2464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465 /* end confdefs.h. */
2468 if ac_fn_c_try_cpp "$LINENO"; then :
2473 rm -f conftest.err conftest.$ac_ext
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2477 $as_echo "$ac_res" >&6; }
2478 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2480 } # ac_fn_c_check_header_preproc
2482 # ac_fn_cxx_try_cpp LINENO
2483 # ------------------------
2484 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2485 ac_fn_cxx_try_cpp ()
2487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2488 if { { ac_try="$ac_cpp conftest.$ac_ext"
2490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2491 *) ac_try_echo
=$ac_try;;
2493 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2494 $as_echo "$ac_try_echo"; } >&5
2495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2497 if test -s conftest.err
; then
2498 grep -v '^ *+' conftest.err
>conftest.er1
2499 cat conftest.er1
>&5
2500 mv -f conftest.er1 conftest.err
2502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2503 test $ac_status = 0; } >/dev
/null
&& {
2504 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2505 test ! -s conftest.err
2509 $as_echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.
$ac_ext >&5
2514 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2517 } # ac_fn_cxx_try_cpp
2519 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2520 # ------------------------------------------------
2521 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2522 ac_fn_cxx_check_header_preproc
()
2524 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2526 $as_echo_n "checking for $2... " >&6; }
2527 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2528 $as_echo_n "(cached) " >&6
2530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2531 /* end confdefs.h. */
2534 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2539 rm -f conftest.err conftest.
$ac_ext
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2543 $as_echo "$ac_res" >&6; }
2544 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2546 } # ac_fn_cxx_check_header_preproc
2548 # ac_fn_c_check_func LINENO FUNC VAR
2549 # ----------------------------------
2550 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2551 ac_fn_c_check_func
()
2553 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2555 $as_echo_n "checking for $2... " >&6; }
2556 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2557 $as_echo_n "(cached) " >&6
2559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2560 /* end confdefs.h. */
2561 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2563 #define $2 innocuous_$2
2565 /* System header to define __stub macros and hopefully few prototypes,
2566 which can conflict with char $2 (); below.
2567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2568 <limits.h> exists even on freestanding compilers. */
2571 # include <limits.h>
2573 # include <assert.h>
2578 /* Override any GCC internal prototype to avoid an error.
2579 Use char because int might match the return type of a GCC
2580 builtin and then its argument prototype would still apply. */
2585 /* The GNU C library defines this for functions which it implements
2586 to always fail with ENOSYS. Some functions are actually named
2587 something starting with __ and the normal name is an alias. */
2588 #if defined __stub_$2 || defined __stub___$2
2600 if ac_fn_c_try_link
"$LINENO"; then :
2605 rm -f core conftest.err conftest.
$ac_objext \
2606 conftest
$ac_exeext conftest.
$ac_ext
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2610 $as_echo "$ac_res" >&6; }
2611 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2613 } # ac_fn_c_check_func
2615 # ac_fn_cxx_try_link LINENO
2616 # -------------------------
2617 # Try to link conftest.$ac_ext, and return whether this succeeded.
2618 ac_fn_cxx_try_link
()
2620 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2621 rm -f conftest.
$ac_objext conftest
$ac_exeext
2622 if { { ac_try
="$ac_link"
2624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2628 $as_echo "$ac_try_echo"; } >&5
2629 (eval "$ac_link") 2>conftest.err
2631 if test -s conftest.err; then
2632 grep -v '^ *+' conftest.err >conftest.er1
2633 cat conftest.er1 >&5
2634 mv -f conftest.er1 conftest.err
2636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2637 test $ac_status = 0; } && {
2638 test -z "$ac_cxx_werror_flag" ||
2639 test ! -s conftest.err
2640 } && test -s conftest$ac_exeext && {
2641 test "$cross_compiling" = yes ||
2642 $as_test_x conftest$ac_exeext
2646 $as_echo "$as_me: failed program was:" >&5
2647 sed 's/^/| /' conftest.$ac_ext >&5
2651 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2652 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2653 # interfere with the next link command; also delete a directory that is
2654 # left behind by Apple's compiler. We do this before executing the actions.
2655 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2656 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2659 } # ac_fn_cxx_try_link
2660 cat >config.log <<_ACEOF
2661 This file contains any messages produced by compilers while
2662 running configure, to aid debugging if configure makes a mistake.
2664 It was created by $as_me, which was
2665 generated by GNU Autoconf 2.64. Invocation command line was
2677 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2678 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2679 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2680 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2681 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2683 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2684 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2686 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2687 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2688 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2689 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2690 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2691 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2692 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 test -z "$as_dir" && as_dir=.
2701 $as_echo "PATH: $as_dir"
2717 # Keep a trace of the command line.
2718 # Strip out --no-create and --no-recursion so they do not pile up.
2719 # Strip out --silent because we don't want to record it for future runs.
2720 # Also quote any args containing shell meta-characters.
2721 # Make two passes to allow for proper duplicate-argument suppression.
2725 ac_must_keep_next=false
2731 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2732 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2733 | -silent | --silent | --silen | --sile | --sil)
2736 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2739 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2741 as_fn_append ac_configure_args1 " '$ac_arg'"
2742 if test $ac_must_keep_next = true; then
2743 ac_must_keep_next=false # Got value, back to normal.
2746 *=* | --config-cache | -C | -disable-* | --disable-* \
2747 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2748 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2749 | -with-* | --with-* | -without-* | --without-* | --x)
2750 case "$ac_configure_args0 " in
2751 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2754 -* ) ac_must_keep_next=true ;;
2757 as_fn_append ac_configure_args " '$ac_arg'"
2762 { ac_configure_args0=; unset ac_configure_args0;}
2763 { ac_configure_args1=; unset ac_configure_args1;}
2765 # When interrupted or exit'd, cleanup temporary files, and complete
2766 # config.log. We remove comments because anyway the quotes in there
2767 # would cause problems or look ugly.
2768 # WARNING: Use '\'' to represent an apostrophe within the trap.
2769 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2770 trap 'exit_status=$?
2771 # Save into config.log some information that might help in debugging.
2776 ## ---------------- ##
2777 ## Cache variables. ##
2778 ## ---------------- ##
2781 # The following way of writing the cache mishandles newlines in values,
2783 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2784 eval ac_val=\$$ac_var
2788 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2789 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2792 _ | IFS | as_nl) ;; #(
2793 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2794 *) { eval $ac_var=; unset $ac_var;} ;;
2799 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2800 *${as_nl}ac_space=\ *)
2802 "s/'\''/'\''\\\\'\'''\''/g;
2803 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2806 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2814 ## ----------------- ##
2815 ## Output variables. ##
2816 ## ----------------- ##
2819 for ac_var in $ac_subst_vars
2821 eval ac_val=\$$ac_var
2823 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2825 $as_echo "$ac_var='\''$ac_val'\''"
2829 if test -n "$ac_subst_files"; then
2831 ## ------------------- ##
2832 ## File substitutions. ##
2833 ## ------------------- ##
2836 for ac_var in $ac_subst_files
2838 eval ac_val=\$$ac_var
2840 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2842 $as_echo "$ac_var='\''$ac_val'\''"
2847 if test -s confdefs.h; then
2857 test "$ac_signal" != 0 &&
2858 $as_echo "$as_me: caught signal $ac_signal"
2859 $as_echo "$as_me: exit $exit_status"
2861 rm -f core *.core core.conftest.* &&
2862 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2865 for ac_signal in 1 2 13 15; do
2866 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2870 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2871 rm -f -r conftest* confdefs.h
2873 $as_echo "/* confdefs.h */" > confdefs.h
2875 # Predefined preprocessor variables.
2877 cat >>confdefs.h <<_ACEOF
2878 #define PACKAGE_NAME "$PACKAGE_NAME"
2881 cat >>confdefs.h <<_ACEOF
2882 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2885 cat >>confdefs.h <<_ACEOF
2886 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2889 cat >>confdefs.h <<_ACEOF
2890 #define PACKAGE_STRING "$PACKAGE_STRING"
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2897 cat >>confdefs.h <<_ACEOF
2898 #define PACKAGE_URL "$PACKAGE_URL"
2902 # Let the site file select an alternate cache file if it wants to.
2903 # Prefer an explicitly selected file to automatically selected ones.
2906 if test -n "$CONFIG_SITE"; then
2907 ac_site_file1=$CONFIG_SITE
2908 elif test "x$prefix" != xNONE; then
2909 ac_site_file1=$prefix/share/config.site
2910 ac_site_file2=$prefix/etc/config.site
2912 ac_site_file1=$ac_default_prefix/share/config.site
2913 ac_site_file2=$ac_default_prefix/etc/config.site
2915 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2917 test "x$ac_site_file" = xNONE && continue
2918 if test -r "$ac_site_file"; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2920 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2921 sed 's/^/| /' "$ac_site_file" >&5
2926 if test -r "$cache_file"; then
2927 # Some versions of bash will fail to source /dev/null (special
2928 # files actually), so we avoid doing that.
2929 if test -f "$cache_file"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2931 $as_echo "$as_me: loading cache $cache_file" >&6;}
2933 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2934 *) . "./$cache_file";;
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2939 $as_echo "$as_me: creating cache $cache_file" >&6;}
2943 # Check that the precious variables saved in the cache have kept the same
2945 ac_cache_corrupted=false
2946 for ac_var in $ac_precious_vars; do
2947 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2948 eval ac_new_set=\$ac_env_${ac_var}_set
2949 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2950 eval ac_new_val=\$ac_env_${ac_var}_value
2951 case $ac_old_set,$ac_new_set in
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2954 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2955 ac_cache_corrupted=: ;;
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2958 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2959 ac_cache_corrupted=: ;;
2962 if test "x$ac_old_val" != "x$ac_new_val"; then
2963 # differences in whitespace do not lead to failure.
2964 ac_old_val_w=`echo x
$ac_old_val`
2965 ac_new_val_w=`echo x
$ac_new_val`
2966 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2968 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2969 ac_cache_corrupted=:
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2972 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2973 eval $ac_var=\$ac_old_val
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2976 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2978 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2981 # Pass precious variables to config.status.
2982 if test "$ac_new_set" = set; then
2984 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2985 *) ac_arg=$ac_var=$ac_new_val ;;
2987 case " $ac_configure_args " in
2988 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2989 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2993 if $ac_cache_corrupted; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2997 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2998 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3000 ## -------------------- ##
3001 ## Main body of script. ##
3002 ## -------------------- ##
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3015 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3018 gcc_version=`cat $srcdir/BASE-VER
`
3020 # Determine the host, build, and target systems
3022 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3023 for ac_t in install-sh install.sh shtool; do
3024 if test -f "$ac_dir/$ac_t"; then
3026 ac_install_sh="$ac_aux_dir/$ac_t -c"
3031 if test -z "$ac_aux_dir"; then
3032 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3035 # These three variables are undocumented and unsupported,
3036 # and are intended to be withdrawn in a future Autoconf release.
3037 # They can cause serious problems if a builder's source tree is in a directory
3038 # whose full name contains unusual characters.
3039 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3040 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3041 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3044 # Make sure we can run config.sub.
3045 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3046 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3049 $as_echo_n "checking build system type... " >&6; }
3050 if test "${ac_cv_build+set}" = set; then :
3051 $as_echo_n "(cached) " >&6
3053 ac_build_alias=$build_alias
3054 test "x$ac_build_alias" = x &&
3055 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3056 test "x$ac_build_alias" = x &&
3057 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3058 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3059 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3063 $as_echo "$ac_cv_build" >&6; }
3064 case $ac_cv_build in
3066 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3069 ac_save_IFS=$IFS; IFS='-'
3075 # Remember, the first character of IFS is used to create $*,
3076 # except with old shells:
3079 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3083 $as_echo_n "checking host system type... " >&6; }
3084 if test "${ac_cv_host+set}" = set; then :
3085 $as_echo_n "(cached) " >&6
3087 if test "x$host_alias" = x; then
3088 ac_cv_host=$ac_cv_build
3090 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3091 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3096 $as_echo "$ac_cv_host" >&6; }
3099 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3102 ac_save_IFS=$IFS; IFS='-'
3108 # Remember, the first character of IFS is used to create $*,
3109 # except with old shells:
3112 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3116 $as_echo_n "checking target system type... " >&6; }
3117 if test "${ac_cv_target+set}" = set; then :
3118 $as_echo_n "(cached) " >&6
3120 if test "x$target_alias" = x; then
3121 ac_cv_target=$ac_cv_host
3123 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3124 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3129 $as_echo "$ac_cv_target" >&6; }
3130 case $ac_cv_target in
3132 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3134 target=$ac_cv_target
3135 ac_save_IFS=$IFS; IFS='-'
3141 # Remember, the first character of IFS is used to create $*,
3142 # except with old shells:
3145 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3148 # The aliases save the names the user supplied, while $host etc.
3149 # will get canonicalized.
3150 test -n "$target_alias" &&
3151 test "$program_prefix$program_suffix$program_transform_name" = \
3153 program_prefix=${target_alias}-
3155 # Determine the noncanonical target name, for directory use.
3156 case ${build_alias} in
3157 "") build_noncanonical=${build} ;;
3158 *) build_noncanonical=${build_alias} ;;
3161 case ${host_alias} in
3162 "") host_noncanonical=${build_noncanonical} ;;
3163 *) host_noncanonical=${host_alias} ;;
3166 case ${target_alias} in
3167 "") target_noncanonical=${host_noncanonical} ;;
3168 *) target_noncanonical=${target_alias} ;;
3174 # Determine the target- and build-specific subdirectories
3176 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3177 # have matching libraries, they should use host libraries: Makefile.tpl
3178 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3179 # However, they still use the build modules, because the corresponding
3180 # host modules (e.g. bison) are only built for the host when bootstrap
3182 # - build_subdir is where we find build modules, and never changes.
3183 # - build_libsubdir is where we find build libraries, and can be overridden.
3185 # Prefix 'build-' so this never conflicts with target_subdir.
3186 build_subdir="build-${build_noncanonical}"
3188 # Check whether --with-build-libsubdir was given.
3189 if test "${with_build_libsubdir+set}" = set; then :
3190 withval=$with_build_libsubdir; build_libsubdir="$withval"
3192 build_libsubdir="$build_subdir"
3195 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3196 if ( test $srcdir = . && test -d gcc ) \
3197 || test -d $srcdir/../host-${host_noncanonical}; then
3198 host_subdir="host-${host_noncanonical}"
3203 target_subdir=${target_noncanonical}
3206 # Set program_transform_name
3207 test "$program_prefix" != NONE &&
3208 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3209 # Use a double $ so make ignores it.
3210 test "$program_suffix" != NONE &&
3211 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3212 # Double any \ or $.
3213 # By default was `s
,x
,x
', remove it if useless.
3214 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3215 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3218 # Check for bogus environment variables.
3219 # Test if LIBRARY_PATH contains the notation for the current directory
3220 # since this would lead to problems installing/building glibc.
3221 # LIBRARY_PATH contains the current directory if one of the following
3223 # - one of the terminals (":" and ";") is the first or last sign
3224 # - two terminals occur directly after each other
3225 # - the path contains an element with a dot in it
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3227 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3228 case ${LIBRARY_PATH} in
3229 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3230 library_path_setting="contains current directory"
3233 library_path_setting="ok"
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3237 $as_echo "$library_path_setting" >&6; }
3238 if test "$library_path_setting" != "ok"; then
3240 *** LIBRARY_PATH shouldn't contain the current directory when
3241 *** building gcc. Please change the environment variable
3242 *** and run configure again.
" "$LINENO" 5
3245 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3246 # since this would lead to problems installing/building glibc.
3247 # GCC_EXEC_PREFIX contains the current directory if one of the following
3249 # - one of the terminals (":" and ";") is the first or last sign
3250 # - two terminals occur directly after each other
3251 # - the path contains an element with a dot in it
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3253 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3254 case ${GCC_EXEC_PREFIX} in
3255 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3256 gcc_exec_prefix_setting="contains current directory
"
3259 gcc_exec_prefix_setting="ok
"
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3263 $as_echo "$gcc_exec_prefix_setting" >&6; }
3264 if test "$gcc_exec_prefix_setting" != "ok
"; then
3266 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3267 *** building gcc. Please change the environment variable
3268 *** and run configure again." "$LINENO" 5
3275 # Specify the local prefix
3278 # Check whether --with-local-prefix was given.
3279 if test "${with_local_prefix+set}" = set; then :
3280 withval=$with_local_prefix; case "${withval}" in
3281 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3283 *) local_prefix=$with_local_prefix ;;
3288 # Default local prefix if it is empty
3289 if test x$local_prefix = x; then
3290 local_prefix=/usr/local
3293 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3294 # passed in by the toplevel make and thus we'd get different behavior
3295 # depending on where we built the sources.
3296 gcc_gxx_include_dir
=
3297 # Specify the g++ header file directory
3299 # Check whether --with-gxx-include-dir was given.
3300 if test "${with_gxx_include_dir+set}" = set; then :
3301 withval
=$with_gxx_include_dir; case "${withval}" in
3302 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3304 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3309 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3310 if test x
${gcc_gxx_include_dir} = x
; then
3311 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3312 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3314 libstdcxx_incdir
='include/c++/$(version)'
3315 if test x
$host != x
$target; then
3316 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3318 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3322 gcc_gxx_include_dir_add_sysroot
=0
3323 if test "${with_sysroot+set}" = set; then
3324 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3325 if test "${gcc_gxx_without_sysroot}"; then
3326 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3327 gcc_gxx_include_dir_add_sysroot
=1
3332 # Check whether --with-cpp_install_dir was given.
3333 if test "${with_cpp_install_dir+set}" = set; then :
3334 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3335 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3336 elif test x
$withval != xno
; then
3337 cpp_install_dir
=$withval
3342 # We would like to our source tree to be readonly. However when releases or
3343 # pre-releases are generated, the flex/bison generated files as well as the
3344 # various formats of manuals need to be included along with the rest of the
3345 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3349 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3350 # Check whether --enable-generated-files-in-srcdir was given.
3351 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3352 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3354 generated_files_in_srcdir
=no
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3359 $as_echo "$generated_files_in_srcdir" >&6; }
3361 if test "$generated_files_in_srcdir" = "yes"; then
3368 # -------------------
3369 # Find default linker
3370 # -------------------
3374 # Check whether --with-gnu-ld was given.
3375 if test "${with_gnu_ld+set}" = set; then :
3376 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3382 # With pre-defined ld
3384 # Check whether --with-ld was given.
3385 if test "${with_ld+set}" = set; then :
3386 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3389 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3390 if test ! -x "$DEFAULT_LINKER"; then
3391 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3392 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3396 cat >>confdefs.h
<<_ACEOF
3397 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3403 $as_echo_n "checking whether a default linker was specified... " >&6; }
3404 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3405 if test x
"$gnu_ld_flag" = x
"no"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3407 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3410 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414 $as_echo "no" >&6; }
3417 # With demangler in GNU ld
3419 # Check whether --with-demangler-in-ld was given.
3420 if test "${with_demangler_in_ld+set}" = set; then :
3421 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3427 # ----------------------
3428 # Find default assembler
3429 # ----------------------
3433 # Check whether --with-gnu-as was given.
3434 if test "${with_gnu_as+set}" = set; then :
3435 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3442 # Check whether --with-as was given.
3443 if test "${with_as+set}" = set; then :
3444 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3447 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3448 if test ! -x "$DEFAULT_ASSEMBLER"; then
3449 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3450 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3454 cat >>confdefs.h
<<_ACEOF
3455 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3461 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3462 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3463 if test x
"$gas_flag" = x
"no"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3465 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3468 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3479 # If a non-executable a.out is present (e.g. created by GNU as above even if
3480 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3481 # file, even when creating an executable, so an execution test fails.
3482 # Remove possible default executable files to avoid this.
3484 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3485 # Autoconf includes it.
3486 rm -f a.out a.exe b.out
3488 # Find the native compiler
3490 ac_cpp
='$CPP $CPPFLAGS'
3491 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3494 if test -n "$ac_tool_prefix"; then
3495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3496 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_CC+set}" = set; then :
3500 $as_echo_n "(cached) " >&6
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC
="$CC" # Let the user override the test.
3505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir
=.
3510 for ac_exec_ext
in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3523 if test -n "$CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3533 if test -z "$ac_cv_prog_CC"; then
3535 # Extract the first word of "gcc", so it can be a program name with args.
3536 set dummy gcc
; ac_word
=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3549 test -z "$as_dir" && as_dir
=.
3550 for ac_exec_ext
in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_ac_ct_CC
="gcc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565 $as_echo "$ac_ct_CC" >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3571 if test "x$ac_ct_CC" = x
; then
3574 case $cross_compiling:$ac_tool_warned in
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3578 ac_tool_warned
=yes ;;
3586 if test -z "$CC"; then
3587 if test -n "$ac_tool_prefix"; then
3588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3589 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if test "${ac_cv_prog_CC+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC
="$CC" # Let the user override the test.
3598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3602 test -z "$as_dir" && as_dir
=.
3603 for ac_exec_ext
in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 if test -n "$CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 $as_echo "$CC" >&6; }
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3627 if test -z "$CC"; then
3628 # Extract the first word of "cc", so it can be a program name with args.
3629 set dummy cc
; ac_word
=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_CC+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC
="$CC" # Let the user override the test.
3639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3643 test -z "$as_dir" && as_dir
=.
3644 for ac_exec_ext
in '' $ac_executable_extensions; do
3645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3647 ac_prog_rejected
=yes
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 if test $ac_prog_rejected = yes; then
3659 # We found a bogon in the path, so make sure we never use it.
3660 set dummy
$ac_cv_prog_CC
3662 if test $# != 0; then
3663 # We chose a different compiler from the bogus one.
3664 # However, it has the same basename, so the bogon will be chosen
3665 # first if we set CC to just the basename; use the full file name.
3667 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3673 if test -n "$CC"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3683 if test -z "$CC"; then
3684 if test -n "$ac_tool_prefix"; then
3685 for ac_prog
in cl.exe
3687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 $as_echo_n "checking for $ac_word... " >&6; }
3691 if test "${ac_cv_prog_CC+set}" = set; then :
3692 $as_echo_n "(cached) " >&6
3694 if test -n "$CC"; then
3695 ac_cv_prog_CC
="$CC" # Let the user override the test.
3697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3701 test -z "$as_dir" && as_dir
=.
3702 for ac_exec_ext
in '' $ac_executable_extensions; do
3703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 if test -n "$CC"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3717 $as_echo "$CC" >&6; }
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3724 test -n "$CC" && break
3727 if test -z "$CC"; then
3729 for ac_prog
in cl.exe
3731 # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy
$ac_prog; ac_word
=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3738 if test -n "$ac_ct_CC"; then
3739 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3741 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir
=.
3746 for ac_exec_ext
in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748 ac_cv_prog_ac_ct_CC
="$ac_prog"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3761 $as_echo "$ac_ct_CC" >&6; }
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3768 test -n "$ac_ct_CC" && break
3771 if test "x$ac_ct_CC" = x
; then
3774 case $cross_compiling:$ac_tool_warned in
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned
=yes ;;
3787 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error
"no acceptable C compiler found in \$PATH
3790 See \`config.log' for more details." "$LINENO" 5; }
3792 # Provide some information about the compiler.
3793 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3796 for ac_option
in --version -v -V -qversion; do
3797 { { ac_try
="$ac_compiler $ac_option >&5"
3799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3806 if test -s conftest.err; then
3808 ... rest of stderr output deleted ...
3809 10q' conftest.err >conftest.er1
3810 cat conftest.er1 >&5
3811 rm -f conftest.er1 conftest.err
3813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814 test $ac_status = 0; }
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3828 ac_clean_files_save=$ac_clean_files
3829 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3830 # Try to create an executable without -o first, disregard a.out.
3831 # It will help us diagnose broken compilers, and finding out an intuition
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3834 $as_echo_n "checking for C compiler default output file name... " >&6; }
3835 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3837 # The possible output files:
3838 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3841 for ac_file in $ac_files
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3850 if { { ac_try="$ac_link_default"
3852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3853 *) ac_try_echo
=$ac_try;;
3855 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_link_default") 2>&5
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }; then :
3861 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3862 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3863 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3864 # so that the user can short-circuit this test for compilers unknown to
3866 for ac_file
in $ac_files ''
3868 test -f "$ac_file" ||
continue
3870 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3873 # We found the default executable, but exeext='' is most
3877 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3879 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3881 # We set ac_cv_exeext here because the later test for it is not
3882 # safe: cross compilers may not add the suffix if given an `-o'
3883 # argument, so we may need to know it at that point already.
3884 # Even if this section looks crufty: it has the advantage of
3891 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3897 $as_echo "$ac_file" >&6; }
3898 if test -z "$ac_file"; then :
3899 $as_echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.
$ac_ext >&5
3902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3904 { as_fn_set_status
77
3905 as_fn_error
"C compiler cannot create executables
3906 See \`config.log' for more details." "$LINENO" 5; }; }
3908 ac_exeext
=$ac_cv_exeext
3910 # Check that the compiler produces executables we can run. If not, either
3911 # the compiler is broken, or we cross compile.
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3913 $as_echo_n "checking whether the C compiler works... " >&6; }
3914 # If not cross compiling, check that we can run a simple program.
3915 if test "$cross_compiling" != yes; then
3916 if { ac_try
='./$ac_file'
3917 { { case "(($ac_try" in
3918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 $as_echo "$ac_try_echo"; } >&5
3923 (eval "$ac_try") 2>&5
3925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926 test $ac_status = 0; }; }; then
3929 if test "$cross_compiling" = maybe; then
3932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934 as_fn_error "cannot run C compiled programs.
3935 If you meant to cross compile
, use \
`--host'.
3936 See \`config.log
' for more details." "$LINENO" 5; }
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3941 $as_echo "yes" >&6; }
3943 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3944 ac_clean_files=$ac_clean_files_save
3945 # Check that the compiler produces executables we can run. If not, either
3946 # the compiler is broken, or we cross compile.
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3948 $as_echo_n "checking whether we are cross compiling... " >&6; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3950 $as_echo "$cross_compiling" >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3953 $as_echo_n "checking for suffix of executables... " >&6; }
3954 if { { ac_try="$ac_link"
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_link") 2>&5
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }; then :
3965 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3966 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3967 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3969 for ac_file
in conftest.exe conftest conftest.
*; do
3970 test -f "$ac_file" ||
continue
3972 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3973 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3981 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3982 See \`config.log' for more details." "$LINENO" 5; }
3984 rm -f conftest
$ac_cv_exeext
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3986 $as_echo "$ac_cv_exeext" >&6; }
3988 rm -f conftest.
$ac_ext
3989 EXEEXT
=$ac_cv_exeext
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3992 $as_echo_n "checking for suffix of object files... " >&6; }
3993 if test "${ac_cv_objext+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
4007 rm -f conftest.o conftest.obj
4008 if { { ac_try
="$ac_compile"
4010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014 $as_echo "$ac_try_echo"; } >&5
4015 (eval "$ac_compile") 2>&5
4017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018 test $ac_status = 0; }; then :
4019 for ac_file in conftest.o conftest.obj conftest.*; do
4020 test -f "$ac_file" || continue;
4022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4023 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4028 $as_echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4031 { { $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 "cannot compute suffix of object files
: cannot compile
4034 See \
`config.log' for more details." "$LINENO" 5; }
4036 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4039 $as_echo "$ac_cv_objext" >&6; }
4040 OBJEXT=$ac_cv_objext
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4043 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4044 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4061 if ac_fn_c_try_compile "$LINENO"; then :
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4071 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4072 if test $ac_compiler_gnu = yes; then
4077 ac_test_CFLAGS=${CFLAGS+set}
4078 ac_save_CFLAGS=$CFLAGS
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4080 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4081 if test "${ac_cv_prog_cc_g+set}" = set; then :
4082 $as_echo_n "(cached) " >&6
4084 ac_save_c_werror_flag=$ac_c_werror_flag
4085 ac_c_werror_flag=yes
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4099 if ac_fn_c_try_compile "$LINENO"; then :
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4114 if ac_fn_c_try_compile "$LINENO"; then :
4117 ac_c_werror_flag=$ac_save_c_werror_flag
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4130 if ac_fn_c_try_compile "$LINENO"; then :
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 ac_c_werror_flag=$ac_save_c_werror_flag
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4141 $as_echo "$ac_cv_prog_cc_g" >&6; }
4142 if test "$ac_test_CFLAGS" = set; then
4143 CFLAGS=$ac_save_CFLAGS
4144 elif test $ac_cv_prog_cc_g = yes; then
4145 if test "$GCC" = yes; then
4151 if test "$GCC" = yes; then
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4158 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4159 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4160 $as_echo_n "(cached) " >&6
4162 ac_cv_prog_cc_c89=no
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4168 #include <sys/types.h>
4169 #include <sys/stat.h>
4170 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4171 struct buf { int x; };
4172 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4173 static char *e (p, i)
4179 static char *f (char * (*g) (char **, int), char **p, ...)
4184 s = g (p, va_arg (v,int));
4189 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4190 function prototypes and stuff, but not '\xHH' hex character constants.
4191 These don't provoke an error unfortunately, instead are silently treated
4192 as 'x'. The following induces an error, until -std is added to get
4193 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4194 array size at least. It's necessary to write '\x00'==0 to get something
4195 that's true only with -std. */
4196 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4198 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4199 inside strings and character constants. */
4201 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4203 int test (int i, double x);
4204 struct s1 {int (*f) (int a);};
4205 struct s2 {int (*f) (double a);};
4206 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4212 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4217 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4218 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4220 CC="$ac_save_CC $ac_arg"
4221 if ac_fn_c_try_compile "$LINENO"; then :
4222 ac_cv_prog_cc_c89=$ac_arg
4224 rm -f core conftest.err conftest.$ac_objext
4225 test "x$ac_cv_prog_cc_c89" != "xno" && break
4227 rm -f conftest.$ac_ext
4232 case "x$ac_cv_prog_cc_c89" in
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4235 $as_echo "none needed" >&6; } ;;
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4238 $as_echo "unsupported" >&6; } ;;
4240 CC="$CC $ac_cv_prog_cc_c89"
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4242 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4244 if test "x$ac_cv_prog_cc_c89" != xno; then :
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4254 if test "x$CC" != xcc; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4256 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4259 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4261 set dummy $CC; ac_cc=`$as_echo "$2" |
4262 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4263 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4264 $as_echo_n "(cached) " >&6
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4277 # Make sure it works both with $CC and with simple cc.
4278 # We do the test twice because some compilers refuse to overwrite an
4279 # existing .o file with -o, though they will create one.
4280 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4282 if { { case "(($ac_try" in
4283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4284 *) ac_try_echo
=$ac_try;;
4286 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288 (eval "$ac_try") 2>&5
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; } &&
4292 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298 (eval "$ac_try") 2>&5
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; };
4303 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4304 if test "x$CC" != xcc; then
4305 # Test first that cc exists at all.
4306 if { ac_try='cc -c conftest.$ac_ext >&5'
4307 { { case "(($ac_try" in
4308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4309 *) ac_try_echo
=$ac_try;;
4311 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312 $as_echo "$ac_try_echo"; } >&5
4313 (eval "$ac_try") 2>&5
4315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316 test $ac_status = 0; }; }; then
4317 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4319 if { { case "(($ac_try" in
4320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 $as_echo "$ac_try_echo"; } >&5
4325 (eval "$ac_try") 2>&5
4327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328 test $ac_status = 0; } &&
4329 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4331 *) ac_try_echo
=$ac_try;;
4333 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334 $as_echo "$ac_try_echo"; } >&5
4335 (eval "$ac_try") 2>&5
4337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4338 test $ac_status = 0; };
4343 # cc exists but doesn't like -o.
4344 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4349 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4351 rm -f core conftest
*
4354 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4356 $as_echo "yes" >&6; }
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4361 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4365 # expand $ac_aux_dir to an absolute path
4366 am_aux_dir
=`cd $ac_aux_dir && pwd`
4368 # FIXME: we rely on the cache variable name because
4369 # there is no other way.
4371 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4372 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4373 if test "$am_t" != yes; then
4374 # Losing compiler, so override with the script.
4375 # FIXME: It is wrong to rewrite CC.
4376 # But if we don't then we get into trouble of one sort or another.
4377 # A longer-term fix would be to have automake use am__CC in this case,
4378 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4379 CC
="$am_aux_dir/compile $CC"
4384 ac_cpp
='$CXXCPP $CPPFLAGS'
4385 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4388 if test -z "$CXX"; then
4389 if test -n "$CCC"; then
4392 if test -n "$ac_tool_prefix"; then
4393 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4396 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398 $as_echo_n "checking for $ac_word... " >&6; }
4399 if test "${ac_cv_prog_CXX+set}" = set; then :
4400 $as_echo_n "(cached) " >&6
4402 if test -n "$CXX"; then
4403 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4409 test -z "$as_dir" && as_dir
=.
4410 for ac_exec_ext
in '' $ac_executable_extensions; do
4411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 if test -n "$CXX"; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4425 $as_echo "$CXX" >&6; }
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 $as_echo "no" >&6; }
4432 test -n "$CXX" && break
4435 if test -z "$CXX"; then
4437 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4439 # Extract the first word of "$ac_prog", so it can be a program name with args.
4440 set dummy
$ac_prog; ac_word
=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4444 $as_echo_n "(cached) " >&6
4446 if test -n "$ac_ct_CXX"; then
4447 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4453 test -z "$as_dir" && as_dir
=.
4454 for ac_exec_ext
in '' $ac_executable_extensions; do
4455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4456 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4467 if test -n "$ac_ct_CXX"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4469 $as_echo "$ac_ct_CXX" >&6; }
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4476 test -n "$ac_ct_CXX" && break
4479 if test "x$ac_ct_CXX" = x
; then
4482 case $cross_compiling:$ac_tool_warned in
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4486 ac_tool_warned
=yes ;;
4494 # Provide some information about the compiler.
4495 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4498 for ac_option
in --version -v -V -qversion; do
4499 { { ac_try
="$ac_compiler $ac_option >&5"
4501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505 $as_echo "$ac_try_echo"; } >&5
4506 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4508 if test -s conftest.err; then
4510 ... rest of stderr output deleted ...
4511 10q' conftest.err >conftest.er1
4512 cat conftest.er1 >&5
4513 rm -f conftest.er1 conftest.err
4515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4516 test $ac_status = 0; }
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4520 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4521 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4538 if ac_fn_cxx_try_compile "$LINENO"; then :
4543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4548 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4549 if test $ac_compiler_gnu = yes; then
4554 ac_test_CXXFLAGS=${CXXFLAGS+set}
4555 ac_save_CXXFLAGS=$CXXFLAGS
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4557 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4558 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4561 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4562 ac_cxx_werror_flag=yes
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4576 if ac_fn_cxx_try_compile "$LINENO"; then :
4577 ac_cv_prog_cxx_g=yes
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4591 if ac_fn_cxx_try_compile "$LINENO"; then :
4594 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4607 if ac_fn_cxx_try_compile "$LINENO"; then :
4608 ac_cv_prog_cxx_g=yes
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4618 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4619 if test "$ac_test_CXXFLAGS" = set; then
4620 CXXFLAGS=$ac_save_CXXFLAGS
4621 elif test $ac_cv_prog_cxx_g = yes; then
4622 if test "$GXX" = yes; then
4628 if test "$GXX" = yes; then
4635 ac_cpp='$CPP $CPPFLAGS'
4636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4643 if test -n "$ac_tool_prefix"; then
4644 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4645 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4649 $as_echo_n "(cached) " >&6
4651 if test -n "$GNATBIND"; then
4652 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 GNATBIND=$ac_cv_prog_GNATBIND
4672 if test -n "$GNATBIND"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4674 $as_echo "$GNATBIND" >&6; }
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4682 if test -z "$ac_cv_prog_GNATBIND"; then
4683 ac_ct_GNATBIND=$GNATBIND
4684 # Extract the first word of "gnatbind", so it can be a program name with args.
4685 set dummy gnatbind; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4691 if test -n "$ac_ct_GNATBIND"; then
4692 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4712 if test -n "$ac_ct_GNATBIND"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4714 $as_echo "$ac_ct_GNATBIND" >&6; }
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4720 if test "x$ac_ct_GNATBIND" = x; then
4723 case $cross_compiling:$ac_tool_warned in
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727 ac_tool_warned=yes ;;
4729 GNATBIND=$ac_ct_GNATBIND
4732 GNATBIND="$ac_cv_prog_GNATBIND"
4735 if test -n "$ac_tool_prefix"; then
4736 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4737 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4743 if test -n "$GNATMAKE"; then
4744 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 GNATMAKE=$ac_cv_prog_GNATMAKE
4764 if test -n "$GNATMAKE"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4766 $as_echo "$GNATMAKE" >&6; }
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4774 if test -z "$ac_cv_prog_GNATMAKE"; then
4775 ac_ct_GNATMAKE=$GNATMAKE
4776 # Extract the first word of "gnatmake", so it can be a program name with args.
4777 set dummy gnatmake; ac_word=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4781 $as_echo_n "(cached) " >&6
4783 if test -n "$ac_ct_GNATMAKE"; then
4784 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4793 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4804 if test -n "$ac_ct_GNATMAKE"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4806 $as_echo "$ac_ct_GNATMAKE" >&6; }
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4812 if test "x$ac_ct_GNATMAKE" = x; then
4815 case $cross_compiling:$ac_tool_warned in
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4819 ac_tool_warned=yes ;;
4821 GNATMAKE=$ac_ct_GNATMAKE
4824 GNATMAKE="$ac_cv_prog_GNATMAKE"
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4828 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4829 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4830 $as_echo_n "(cached) " >&6
4832 cat >conftest.adb <<EOF
4833 procedure conftest is begin null; end conftest;
4835 acx_cv_cc_gcc_supports_ada=no
4836 # There is a bug in old released versions of GCC which causes the
4837 # driver to exit successfully when the appropriate language module
4838 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4839 # Therefore we must check for the error message as well as an
4840 # unsuccessful exit.
4841 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4842 # given a .adb file, but produce no object file. So we must check
4843 # if an object file was really produced to guard against this.
4844 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4845 if test x"$errors" = x && test -f conftest.$ac_objext; then
4846 acx_cv_cc_gcc_supports_ada=yes
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4851 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4853 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4860 # autoconf is lame and doesn't give us any substitution variable for this.
4861 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4862 NO_MINUS_C_MINUS_O=yes
4864 OUTPUT_OPTION='-o $@'
4869 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4870 # optimizations to be activated explicitly by the toplevel.
4872 */prev-gcc/xgcc*) ;;
4873 *) CFLAGS=`echo "$CFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4874 CXXFLAGS=`echo "$CXXFLAGS " |
sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4879 # Determine PICFLAG for target gnatlib.
4885 # PIC is the default on some targets or must not be used.
4887 # PIC is the default on this platform
4888 # Common symbols not allowed in MH_DYLIB files
4889 PICFLAG_FOR_TARGET=-fno-common
4892 # PIC is the default.
4895 # PIC is the default for 64-bit PA HP-UX.
4897 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4899 i[34567]86-*-interix[3-9]*)
4900 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4901 # Instead, we relocate shared libraries at runtime.
4903 i[34567]86-*-nto-qnx*)
4904 # QNX uses GNU C++, but need to define -shared option too, otherwise
4906 PICFLAG_FOR_TARGET='-fPIC -shared'
4908 i[34567]86-pc-msdosdjgpp*)
4909 # DJGPP does not support shared libraries at all.
4912 # On IA64 HP-UX, PIC is the default but the pic flag
4913 # sets the default TLS model and affects inlining.
4914 PICFLAG_FOR_TARGET=-fPIC
4917 # PIC is the default.
4919 rs6000-ibm-aix* | powerpc-ibm-aix*)
4920 # All AIX code is PIC.
4923 # Some targets support both -fPIC and -fpic, but prefer the latter.
4925 i[34567]86-*-* | x86_64-*-*)
4926 PICFLAG_FOR_TARGET=-fpic
4929 PICFLAG_FOR_TARGET=-fpic
4931 # FIXME: Override -fPIC default in libgcc only?
4932 sh-*-linux* | sh[2346lbe]*-*-linux*)
4933 PICFLAG_FOR_TARGET=-fpic
4935 # FIXME: Simplify to sh*-*-netbsd*?
4936 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4937 sh64-*-netbsd* | sh64l*-*-netbsd*)
4938 PICFLAG_FOR_TARGET=-fpic
4940 # Default to -fPIC unless specified otherwise.
4942 PICFLAG_FOR_TARGET=-fPIC
4946 # If the user explicitly uses -fpic/-fPIC, keep that.
4947 case "${CFLAGS_FOR_TARGET}" in
4949 PICFLAG_FOR_TARGET=-fpic
4952 PICFLAG_FOR_TARGET=-fPIC
4958 # -------------------------
4959 # Check C compiler features
4960 # -------------------------
4964 ac_cpp='$CPP $CPPFLAGS'
4965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4969 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4970 # On Suns, sometimes $CPP names a directory.
4971 if test -n "$CPP" && test -d "$CPP"; then
4974 if test -z "$CPP"; then
4975 if test "${ac_cv_prog_CPP+set}" = set; then :
4976 $as_echo_n "(cached) " >&6
4978 # Double quotes because CPP needs to be expanded
4979 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4982 for ac_c_preproc_warn_flag in '' yes
4984 # Use a header file that comes with gcc, so configuring glibc
4985 # with a fresh cross-compiler works.
4986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4987 # <limits.h> exists even on freestanding compilers.
4988 # On the NeXT, cc -E runs the code through the compiler's parser,
4989 # not just through cpp. "Syntax error" is here to catch this case.
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4993 # include <limits.h>
4995 # include <assert.h>
4999 if ac_fn_c_try_cpp "$LINENO"; then :
5002 # Broken: fails on valid input.
5005 rm -f conftest.err conftest.$ac_ext
5007 # OK, works on sane cases. Now check whether nonexistent headers
5008 # can be detected and how.
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5011 #include <ac_nonexistent.h>
5013 if ac_fn_c_try_cpp "$LINENO"; then :
5014 # Broken: success on invalid input.
5017 # Passes both tests.
5021 rm -f conftest.err conftest.$ac_ext
5024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5025 rm -f conftest.err conftest.
$ac_ext
5026 if $ac_preproc_ok; then :
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5039 $as_echo "$CPP" >&6; }
5041 for ac_c_preproc_warn_flag
in '' yes
5043 # Use a header file that comes with gcc, so configuring glibc
5044 # with a fresh cross-compiler works.
5045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5046 # <limits.h> exists even on freestanding compilers.
5047 # On the NeXT, cc -E runs the code through the compiler's parser,
5048 # not just through cpp. "Syntax error" is here to catch this case.
5049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5052 # include <limits.h>
5054 # include <assert.h>
5058 if ac_fn_c_try_cpp
"$LINENO"; then :
5061 # Broken: fails on valid input.
5064 rm -f conftest.err conftest.
$ac_ext
5066 # OK, works on sane cases. Now check whether nonexistent headers
5067 # can be detected and how.
5068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5070 #include <ac_nonexistent.h>
5072 if ac_fn_c_try_cpp
"$LINENO"; then :
5073 # Broken: success on invalid input.
5076 # Passes both tests.
5080 rm -f conftest.err conftest.
$ac_ext
5083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5084 rm -f conftest.err conftest.
$ac_ext
5085 if $ac_preproc_ok; then :
5088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5090 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5091 See \`config.log' for more details." "$LINENO" 5; }
5095 ac_cpp
='$CPP $CPPFLAGS'
5096 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5102 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5103 if test "${ac_cv_path_GREP+set}" = set; then :
5104 $as_echo_n "(cached) " >&6
5106 if test -z "$GREP"; then
5107 ac_path_GREP_found
=false
5108 # Loop through the user's path and test for each of PROGNAME-LIST
5109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5110 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5113 test -z "$as_dir" && as_dir
=.
5114 for ac_prog
in grep ggrep
; do
5115 for ac_exec_ext
in '' $ac_executable_extensions; do
5116 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5117 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5118 # Check for GNU ac_path_GREP and select it if it is found.
5119 # Check for GNU $ac_path_GREP
5120 case `"$ac_path_GREP" --version 2>&1` in
5122 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5125 $as_echo_n 0123456789 >"conftest.in"
5128 cat "conftest.in" "conftest.in" >"conftest.tmp"
5129 mv "conftest.tmp" "conftest.in"
5130 cp "conftest.in" "conftest.nl"
5131 $as_echo 'GREP' >> "conftest.nl"
5132 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5133 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5134 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5135 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5136 # Best one so far, save it but keep looking for a better one
5137 ac_cv_path_GREP
="$ac_path_GREP"
5138 ac_path_GREP_max
=$ac_count
5140 # 10*(2^10) chars as input seems more than enough
5141 test $ac_count -gt 10 && break
5143 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5146 $ac_path_GREP_found && break 3
5151 if test -z "$ac_cv_path_GREP"; then
5152 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5155 ac_cv_path_GREP
=$GREP
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5160 $as_echo "$ac_cv_path_GREP" >&6; }
5161 GREP
="$ac_cv_path_GREP"
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5165 $as_echo_n "checking for egrep... " >&6; }
5166 if test "${ac_cv_path_EGREP+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5169 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5170 then ac_cv_path_EGREP
="$GREP -E"
5172 if test -z "$EGREP"; then
5173 ac_path_EGREP_found
=false
5174 # Loop through the user's path and test for each of PROGNAME-LIST
5175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5176 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5179 test -z "$as_dir" && as_dir
=.
5180 for ac_prog
in egrep; do
5181 for ac_exec_ext
in '' $ac_executable_extensions; do
5182 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5183 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5184 # Check for GNU ac_path_EGREP and select it if it is found.
5185 # Check for GNU $ac_path_EGREP
5186 case `"$ac_path_EGREP" --version 2>&1` in
5188 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5191 $as_echo_n 0123456789 >"conftest.in"
5194 cat "conftest.in" "conftest.in" >"conftest.tmp"
5195 mv "conftest.tmp" "conftest.in"
5196 cp "conftest.in" "conftest.nl"
5197 $as_echo 'EGREP' >> "conftest.nl"
5198 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5199 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5200 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5201 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5202 # Best one so far, save it but keep looking for a better one
5203 ac_cv_path_EGREP
="$ac_path_EGREP"
5204 ac_path_EGREP_max
=$ac_count
5206 # 10*(2^10) chars as input seems more than enough
5207 test $ac_count -gt 10 && break
5209 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5212 $ac_path_EGREP_found && break 3
5217 if test -z "$ac_cv_path_EGREP"; then
5218 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5221 ac_cv_path_EGREP
=$EGREP
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5227 $as_echo "$ac_cv_path_EGREP" >&6; }
5228 EGREP
="$ac_cv_path_EGREP"
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5232 $as_echo_n "checking for ANSI C header files... " >&6; }
5233 if test "${ac_cv_header_stdc+set}" = set; then :
5234 $as_echo_n "(cached) " >&6
5236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5251 if ac_fn_c_try_compile
"$LINENO"; then :
5252 ac_cv_header_stdc
=yes
5254 ac_cv_header_stdc
=no
5256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5258 if test $ac_cv_header_stdc = yes; then
5259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5266 $EGREP "memchr" >/dev
/null
2>&1; then :
5269 ac_cv_header_stdc
=no
5275 if test $ac_cv_header_stdc = yes; then
5276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5283 $EGREP "free" >/dev
/null
2>&1; then :
5286 ac_cv_header_stdc
=no
5292 if test $ac_cv_header_stdc = yes; then
5293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5294 if test "$cross_compiling" = yes; then :
5297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5301 #if ((' ' & 0x0FF) == 0x020)
5302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5305 # define ISLOWER(c) \
5306 (('a' <= (c) && (c) <= 'i') \
5307 || ('j' <= (c) && (c) <= 'r') \
5308 || ('s' <= (c) && (c) <= 'z'))
5309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5317 for (i = 0; i < 256; i++)
5318 if (XOR (islower (i), ISLOWER (i))
5319 || toupper (i) != TOUPPER (i))
5324 if ac_fn_c_try_run
"$LINENO"; then :
5327 ac_cv_header_stdc
=no
5329 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5330 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5336 $as_echo "$ac_cv_header_stdc" >&6; }
5337 if test $ac_cv_header_stdc = yes; then
5339 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5343 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5344 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5345 inttypes.h stdint.h unistd.h
5347 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5348 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5350 eval as_val
=\$
$as_ac_Header
5351 if test "x$as_val" = x
""yes; then :
5352 cat >>confdefs.h
<<_ACEOF
5353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5362 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5363 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5370 if test "$MINIX" = yes; then
5372 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5375 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5378 $as_echo "#define _MINIX 1" >>confdefs.h
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5384 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5385 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5386 $as_echo_n "(cached) " >&6
5388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5391 # define __EXTENSIONS__ 1
5392 $ac_includes_default
5401 if ac_fn_c_try_compile
"$LINENO"; then :
5402 ac_cv_safe_to_define___extensions__
=yes
5404 ac_cv_safe_to_define___extensions__
=no
5406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5409 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5410 test $ac_cv_safe_to_define___extensions__ = yes &&
5411 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5413 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5415 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5417 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5419 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5423 ac_cpp
='$CPP $CPPFLAGS'
5424 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5425 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5426 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5428 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5429 # On Suns, sometimes $CPP names a directory.
5430 if test -n "$CPP" && test -d "$CPP"; then
5433 if test -z "$CPP"; then
5434 if test "${ac_cv_prog_CPP+set}" = set; then :
5435 $as_echo_n "(cached) " >&6
5437 # Double quotes because CPP needs to be expanded
5438 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5441 for ac_c_preproc_warn_flag
in '' yes
5443 # Use a header file that comes with gcc, so configuring glibc
5444 # with a fresh cross-compiler works.
5445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5446 # <limits.h> exists even on freestanding compilers.
5447 # On the NeXT, cc -E runs the code through the compiler's parser,
5448 # not just through cpp. "Syntax error" is here to catch this case.
5449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h. */
5452 # include <limits.h>
5454 # include <assert.h>
5458 if ac_fn_c_try_cpp
"$LINENO"; then :
5461 # Broken: fails on valid input.
5464 rm -f conftest.err conftest.
$ac_ext
5466 # OK, works on sane cases. Now check whether nonexistent headers
5467 # can be detected and how.
5468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5470 #include <ac_nonexistent.h>
5472 if ac_fn_c_try_cpp
"$LINENO"; then :
5473 # Broken: success on invalid input.
5476 # Passes both tests.
5480 rm -f conftest.err conftest.
$ac_ext
5483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5484 rm -f conftest.err conftest.
$ac_ext
5485 if $ac_preproc_ok; then :
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5498 $as_echo "$CPP" >&6; }
5500 for ac_c_preproc_warn_flag
in '' yes
5502 # Use a header file that comes with gcc, so configuring glibc
5503 # with a fresh cross-compiler works.
5504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5505 # <limits.h> exists even on freestanding compilers.
5506 # On the NeXT, cc -E runs the code through the compiler's parser,
5507 # not just through cpp. "Syntax error" is here to catch this case.
5508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5511 # include <limits.h>
5513 # include <assert.h>
5517 if ac_fn_c_try_cpp
"$LINENO"; then :
5520 # Broken: fails on valid input.
5523 rm -f conftest.err conftest.
$ac_ext
5525 # OK, works on sane cases. Now check whether nonexistent headers
5526 # can be detected and how.
5527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5529 #include <ac_nonexistent.h>
5531 if ac_fn_c_try_cpp
"$LINENO"; then :
5532 # Broken: success on invalid input.
5535 # Passes both tests.
5539 rm -f conftest.err conftest.
$ac_ext
5542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5543 rm -f conftest.err conftest.
$ac_ext
5544 if $ac_preproc_ok; then :
5547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5549 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5550 See \`config.log' for more details." "$LINENO" 5; }
5554 ac_cpp
='$CPP $CPPFLAGS'
5555 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5556 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5557 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5560 $as_echo_n "checking for inline... " >&6; }
5561 if test "${ac_cv_c_inline+set}" = set; then :
5562 $as_echo_n "(cached) " >&6
5565 for ac_kw
in inline __inline__ __inline
; do
5566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5570 static $ac_kw foo_t static_foo () {return 0; }
5571 $ac_kw foo_t foo () {return 0; }
5575 if ac_fn_c_try_compile
"$LINENO"; then :
5576 ac_cv_c_inline
=$ac_kw
5578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5579 test "$ac_cv_c_inline" != no
&& break
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5584 $as_echo "$ac_cv_c_inline" >&6; }
5586 case $ac_cv_c_inline in
5589 case $ac_cv_c_inline in
5591 *) ac_val
=$ac_cv_c_inline;;
5593 cat >>confdefs.h
<<_ACEOF
5595 #define inline $ac_val
5602 # Check whether --enable-largefile was given.
5603 if test "${enable_largefile+set}" = set; then :
5604 enableval
=$enable_largefile;
5607 if test "$enable_largefile" != no
; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5610 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5611 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5612 $as_echo_n "(cached) " >&6
5614 ac_cv_sys_largefile_CC
=no
5615 if test "$GCC" != yes; then
5618 # IRIX 6.2 and later do not support large files by default,
5619 # so use the C compiler's -n32 option if that helps.
5620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5622 #include <sys/types.h>
5623 /* Check that off_t can represent 2**63 - 1 correctly.
5624 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5625 since some C++ compilers masquerading as C compilers
5626 incorrectly reject 9223372036854775807. */
5627 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5628 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5629 && LARGE_OFF_T % 2147483647 == 1)
5639 if ac_fn_c_try_compile
"$LINENO"; then :
5642 rm -f core conftest.err conftest.
$ac_objext
5644 if ac_fn_c_try_compile
"$LINENO"; then :
5645 ac_cv_sys_largefile_CC
=' -n32'; break
5647 rm -f core conftest.err conftest.
$ac_objext
5651 rm -f conftest.
$ac_ext
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5655 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5656 if test "$ac_cv_sys_largefile_CC" != no
; then
5657 CC
=$CC$ac_cv_sys_largefile_CC
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5661 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5662 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5663 $as_echo_n "(cached) " >&6
5666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5668 #include <sys/types.h>
5669 /* Check that off_t can represent 2**63 - 1 correctly.
5670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5671 since some C++ compilers masquerading as C compilers
5672 incorrectly reject 9223372036854775807. */
5673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5675 && LARGE_OFF_T % 2147483647 == 1)
5685 if ac_fn_c_try_compile
"$LINENO"; then :
5686 ac_cv_sys_file_offset_bits
=no
; break
5688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691 #define _FILE_OFFSET_BITS 64
5692 #include <sys/types.h>
5693 /* Check that off_t can represent 2**63 - 1 correctly.
5694 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5695 since some C++ compilers masquerading as C compilers
5696 incorrectly reject 9223372036854775807. */
5697 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5698 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5699 && LARGE_OFF_T % 2147483647 == 1)
5709 if ac_fn_c_try_compile
"$LINENO"; then :
5710 ac_cv_sys_file_offset_bits
=64; break
5712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5713 ac_cv_sys_file_offset_bits
=unknown
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5718 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5719 case $ac_cv_sys_file_offset_bits in #(
5722 cat >>confdefs.h
<<_ACEOF
5723 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5728 if test $ac_cv_sys_file_offset_bits = unknown
; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5730 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5731 if test "${ac_cv_sys_large_files+set}" = set; then :
5732 $as_echo_n "(cached) " >&6
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_c_try_compile
"$LINENO"; then :
5755 ac_cv_sys_large_files
=no
; break
5757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5760 #define _LARGE_FILES 1
5761 #include <sys/types.h>
5762 /* Check that off_t can represent 2**63 - 1 correctly.
5763 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5764 since some C++ compilers masquerading as C compilers
5765 incorrectly reject 9223372036854775807. */
5766 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5767 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5768 && LARGE_OFF_T % 2147483647 == 1)
5778 if ac_fn_c_try_compile
"$LINENO"; then :
5779 ac_cv_sys_large_files
=1; break
5781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5782 ac_cv_sys_large_files
=unknown
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5787 $as_echo "$ac_cv_sys_large_files" >&6; }
5788 case $ac_cv_sys_large_files in #(
5791 cat >>confdefs.h
<<_ACEOF
5792 #define _LARGE_FILES $ac_cv_sys_large_files
5801 # sizeof(char) is 1 by definition.
5802 # The cast to long int works around a bug in the HP C Compiler
5803 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5804 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5805 # This bug is HP SR number 8606223364.
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5807 $as_echo_n "checking size of void *... " >&6; }
5808 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5809 $as_echo_n "(cached) " >&6
5811 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5814 if test "$ac_cv_type_void_p" = yes; then
5815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5817 { as_fn_set_status
77
5818 as_fn_error
"cannot compute sizeof (void *)
5819 See \`config.log' for more details." "$LINENO" 5; }; }
5821 ac_cv_sizeof_void_p
=0
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5827 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5831 cat >>confdefs.h
<<_ACEOF
5832 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5836 # The cast to long int works around a bug in the HP C Compiler
5837 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5838 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5839 # This bug is HP SR number 8606223364.
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5841 $as_echo_n "checking size of short... " >&6; }
5842 if test "${ac_cv_sizeof_short+set}" = set; then :
5843 $as_echo_n "(cached) " >&6
5845 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5848 if test "$ac_cv_type_short" = yes; then
5849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5851 { as_fn_set_status
77
5852 as_fn_error
"cannot compute sizeof (short)
5853 See \`config.log' for more details." "$LINENO" 5; }; }
5855 ac_cv_sizeof_short
=0
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5861 $as_echo "$ac_cv_sizeof_short" >&6; }
5865 cat >>confdefs.h
<<_ACEOF
5866 #define SIZEOF_SHORT $ac_cv_sizeof_short
5870 # The cast to long int works around a bug in the HP C Compiler
5871 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5872 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5873 # This bug is HP SR number 8606223364.
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5875 $as_echo_n "checking size of int... " >&6; }
5876 if test "${ac_cv_sizeof_int+set}" = set; then :
5877 $as_echo_n "(cached) " >&6
5879 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5882 if test "$ac_cv_type_int" = yes; then
5883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5885 { as_fn_set_status
77
5886 as_fn_error
"cannot compute sizeof (int)
5887 See \`config.log' for more details." "$LINENO" 5; }; }
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5895 $as_echo "$ac_cv_sizeof_int" >&6; }
5899 cat >>confdefs.h
<<_ACEOF
5900 #define SIZEOF_INT $ac_cv_sizeof_int
5904 # The cast to long int works around a bug in the HP C Compiler
5905 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5906 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5907 # This bug is HP SR number 8606223364.
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5909 $as_echo_n "checking size of long... " >&6; }
5910 if test "${ac_cv_sizeof_long+set}" = set; then :
5911 $as_echo_n "(cached) " >&6
5913 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5916 if test "$ac_cv_type_long" = yes; then
5917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5919 { as_fn_set_status
77
5920 as_fn_error
"cannot compute sizeof (long)
5921 See \`config.log' for more details." "$LINENO" 5; }; }
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5929 $as_echo "$ac_cv_sizeof_long" >&6; }
5933 cat >>confdefs.h
<<_ACEOF
5934 #define SIZEOF_LONG $ac_cv_sizeof_long
5938 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5939 if test "x$ac_cv_type_long_long" = x
""yes; then :
5941 cat >>confdefs.h
<<_ACEOF
5942 #define HAVE_LONG_LONG 1
5945 # The cast to long int works around a bug in the HP C Compiler
5946 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5947 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5948 # This bug is HP SR number 8606223364.
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5950 $as_echo_n "checking size of long long... " >&6; }
5951 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5952 $as_echo_n "(cached) " >&6
5954 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5957 if test "$ac_cv_type_long_long" = yes; then
5958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5960 { as_fn_set_status
77
5961 as_fn_error
"cannot compute sizeof (long long)
5962 See \`config.log' for more details." "$LINENO" 5; }; }
5964 ac_cv_sizeof_long_long
=0
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5970 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5974 cat >>confdefs.h
<<_ACEOF
5975 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5981 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5982 if test "x$ac_cv_type___int64" = x
""yes; then :
5984 cat >>confdefs.h
<<_ACEOF
5985 #define HAVE___INT64 1
5988 # The cast to long int works around a bug in the HP C Compiler
5989 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5990 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5991 # This bug is HP SR number 8606223364.
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5993 $as_echo_n "checking size of __int64... " >&6; }
5994 if test "${ac_cv_sizeof___int64+set}" = set; then :
5995 $as_echo_n "(cached) " >&6
5997 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6000 if test "$ac_cv_type___int64" = yes; then
6001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6003 { as_fn_set_status
77
6004 as_fn_error
"cannot compute sizeof (__int64)
6005 See \`config.log' for more details." "$LINENO" 5; }; }
6007 ac_cv_sizeof___int64
=0
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6013 $as_echo "$ac_cv_sizeof___int64" >&6; }
6017 cat >>confdefs.h
<<_ACEOF
6018 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6024 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6025 case $ac_cv_c_int8_t in #(
6029 cat >>confdefs.h
<<_ACEOF
6030 #define int8_t $ac_cv_c_int8_t
6035 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6036 case $ac_cv_c_int16_t in #(
6040 cat >>confdefs.h
<<_ACEOF
6041 #define int16_t $ac_cv_c_int16_t
6046 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6047 case $ac_cv_c_int32_t in #(
6051 cat >>confdefs.h
<<_ACEOF
6052 #define int32_t $ac_cv_c_int32_t
6057 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6058 case $ac_cv_c_int64_t in #(
6062 cat >>confdefs.h
<<_ACEOF
6063 #define int64_t $ac_cv_c_int64_t
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6070 $as_echo_n "checking for long long int... " >&6; }
6071 if test "${ac_cv_type_long_long_int+set}" = set; then :
6072 $as_echo_n "(cached) " >&6
6074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6077 /* For now, do not test the preprocessor; as of 2007 there are too many
6078 implementations with broken preprocessors. Perhaps this can
6079 be revisited in 2012. In the meantime, code should not expect
6080 #if to work with literals wider than 32 bits. */
6081 /* Test literals. */
6082 long long int ll = 9223372036854775807ll;
6083 long long int nll = -9223372036854775807LL;
6084 unsigned long long int ull = 18446744073709551615ULL;
6085 /* Test constant expressions. */
6086 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6088 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6094 /* Test availability of runtime routines for shift and division. */
6095 long long int llmax = 9223372036854775807ll;
6096 unsigned long long int ullmax = 18446744073709551615ull;
6097 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6098 | (llmax / ll) | (llmax % ll)
6099 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6100 | (ullmax / ull) | (ullmax % ull));
6106 if ac_fn_c_try_link
"$LINENO"; then :
6107 if test "$cross_compiling" = yes; then :
6108 ac_cv_type_long_long_int
=yes
6110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6115 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6116 # define LLONG_MAX (HALF - 1 + HALF)
6121 long long int n = 1;
6125 long long int m = n << i;
6128 if (LLONG_MAX / 2 < m)
6136 if ac_fn_c_try_run
"$LINENO"; then :
6137 ac_cv_type_long_long_int
=yes
6139 ac_cv_type_long_long_int
=no
6141 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6142 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6146 ac_cv_type_long_long_int
=no
6148 rm -f core conftest.err conftest.
$ac_objext \
6149 conftest
$ac_exeext conftest.
$ac_ext
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6152 $as_echo "$ac_cv_type_long_long_int" >&6; }
6153 if test $ac_cv_type_long_long_int = yes; then
6155 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6161 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6162 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6164 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6167 test $ac_cv_type_long_long_int = yes \
6168 && ac_type
='long long int' \
6169 || ac_type
='long int'
6171 cat >>confdefs.h
<<_ACEOF
6172 #define intmax_t $ac_type
6179 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6180 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6182 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6185 for ac_type
in 'int' 'long int' 'long long int'; do
6186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6188 $ac_includes_default
6192 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6199 if ac_fn_c_try_compile
"$LINENO"; then :
6201 cat >>confdefs.h
<<_ACEOF
6202 #define intptr_t $ac_type
6207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6208 test -z "$ac_type" && break
6213 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6214 case $ac_cv_c_uint8_t in #(
6218 $as_echo "#define _UINT8_T 1" >>confdefs.h
6221 cat >>confdefs.h
<<_ACEOF
6222 #define uint8_t $ac_cv_c_uint8_t
6227 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6228 case $ac_cv_c_uint16_t in #(
6233 cat >>confdefs.h
<<_ACEOF
6234 #define uint16_t $ac_cv_c_uint16_t
6239 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6240 case $ac_cv_c_uint32_t in #(
6244 $as_echo "#define _UINT32_T 1" >>confdefs.h
6247 cat >>confdefs.h
<<_ACEOF
6248 #define uint32_t $ac_cv_c_uint32_t
6253 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6254 case $ac_cv_c_uint64_t in #(
6258 $as_echo "#define _UINT64_T 1" >>confdefs.h
6261 cat >>confdefs.h
<<_ACEOF
6262 #define uint64_t $ac_cv_c_uint64_t
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6269 $as_echo_n "checking for unsigned long long int... " >&6; }
6270 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6271 $as_echo_n "(cached) " >&6
6273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6276 /* For now, do not test the preprocessor; as of 2007 there are too many
6277 implementations with broken preprocessors. Perhaps this can
6278 be revisited in 2012. In the meantime, code should not expect
6279 #if to work with literals wider than 32 bits. */
6280 /* Test literals. */
6281 long long int ll = 9223372036854775807ll;
6282 long long int nll = -9223372036854775807LL;
6283 unsigned long long int ull = 18446744073709551615ULL;
6284 /* Test constant expressions. */
6285 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6287 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6293 /* Test availability of runtime routines for shift and division. */
6294 long long int llmax = 9223372036854775807ll;
6295 unsigned long long int ullmax = 18446744073709551615ull;
6296 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6297 | (llmax / ll) | (llmax % ll)
6298 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6299 | (ullmax / ull) | (ullmax % ull));
6305 if ac_fn_c_try_link
"$LINENO"; then :
6306 ac_cv_type_unsigned_long_long_int
=yes
6308 ac_cv_type_unsigned_long_long_int
=no
6310 rm -f core conftest.err conftest.
$ac_objext \
6311 conftest
$ac_exeext conftest.
$ac_ext
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6314 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6315 if test $ac_cv_type_unsigned_long_long_int = yes; then
6317 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6323 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6324 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6326 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6329 test $ac_cv_type_unsigned_long_long_int = yes \
6330 && ac_type
='unsigned long long int' \
6331 || ac_type
='unsigned long int'
6333 cat >>confdefs.h
<<_ACEOF
6334 #define uintmax_t $ac_type
6341 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6342 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6344 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6347 for ac_type
in 'unsigned int' 'unsigned long int' \
6348 'unsigned long long int'; do
6349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6351 $ac_includes_default
6355 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6362 if ac_fn_c_try_compile
"$LINENO"; then :
6364 cat >>confdefs.h
<<_ACEOF
6365 #define uintptr_t $ac_type
6370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6371 test -z "$ac_type" && break
6389 # ---------------------
6390 # Warnings and checking
6391 # ---------------------
6393 # Check $CC warning features (if it's GCC).
6394 # We want to use -pedantic, but we don't want warnings about
6397 # * overlong strings
6398 # * C++11 narrowing conversions in { }
6399 # So, we only use -pedantic if we can disable those warnings.
6402 save_CFLAGS
="$CFLAGS"
6403 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6404 # Do the check with the no- prefix removed since gcc silently
6405 # accepts any -Wno-* option on purpose
6406 case $real_option in
6407 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6408 *) option
=$real_option ;;
6410 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6413 $as_echo_n "checking whether $CC supports $option... " >&6; }
6414 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6415 $as_echo_n "(cached) " >&6
6418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6429 if ac_fn_c_try_compile
"$LINENO"; then :
6430 eval "$as_acx_Woption=yes"
6432 eval "$as_acx_Woption=no"
6434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6437 eval ac_res
=\$
$as_acx_Woption
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6439 $as_echo "$ac_res" >&6; }
6440 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6441 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6444 CFLAGS
="$save_CFLAGS"
6447 save_CFLAGS
="$CFLAGS"
6448 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6449 # Do the check with the no- prefix removed since gcc silently
6450 # accepts any -Wno-* option on purpose
6451 case $real_option in
6452 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6453 *) option
=$real_option ;;
6455 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6458 $as_echo_n "checking whether $CC supports $option... " >&6; }
6459 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6460 $as_echo_n "(cached) " >&6
6463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6474 if ac_fn_c_try_compile
"$LINENO"; then :
6475 eval "$as_acx_Woption=yes"
6477 eval "$as_acx_Woption=no"
6479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6482 eval ac_res
=\$
$as_acx_Woption
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6484 $as_echo "$ac_res" >&6; }
6485 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6486 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6489 CFLAGS
="$save_CFLAGS"
6492 save_CFLAGS
="$CFLAGS"
6493 for real_option
in -Wmissing-format-attribute; do
6494 # Do the check with the no- prefix removed since gcc silently
6495 # accepts any -Wno-* option on purpose
6496 case $real_option in
6497 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6498 *) option
=$real_option ;;
6500 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6503 $as_echo_n "checking whether $CC supports $option... " >&6; }
6504 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6505 $as_echo_n "(cached) " >&6
6508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6519 if ac_fn_c_try_compile
"$LINENO"; then :
6520 eval "$as_acx_Woption=yes"
6522 eval "$as_acx_Woption=no"
6524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6527 eval ac_res
=\$
$as_acx_Woption
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6529 $as_echo "$ac_res" >&6; }
6530 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6531 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6534 CFLAGS
="$save_CFLAGS"
6537 save_CFLAGS
="$CFLAGS"
6538 for real_option
in -Wold-style-definition -Wc++-compat; do
6539 # Do the check with the no- prefix removed since gcc silently
6540 # accepts any -Wno-* option on purpose
6541 case $real_option in
6542 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6543 *) option
=$real_option ;;
6545 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6548 $as_echo_n "checking whether $CC supports $option... " >&6; }
6549 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6550 $as_echo_n "(cached) " >&6
6553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6564 if ac_fn_c_try_compile
"$LINENO"; then :
6565 eval "$as_acx_Woption=yes"
6567 eval "$as_acx_Woption=no"
6569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6572 eval ac_res
=\$
$as_acx_Woption
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6574 $as_echo "$ac_res" >&6; }
6575 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6576 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6579 CFLAGS
="$save_CFLAGS"
6581 # Do the check with the no- prefix removed from the warning options
6582 # since gcc silently accepts any -Wno-* option on purpose
6583 if test "$GCC" = yes; then :
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6585 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6586 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6587 $as_echo_n "(cached) " >&6
6589 save_CFLAGS
="$CFLAGS"
6590 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6592 /* end confdefs.h. */
6602 if ac_fn_c_try_compile
"$LINENO"; then :
6603 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6605 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6608 CFLAGS
="$save_CFLAGS"
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6611 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6612 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6613 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6618 # Check whether --enable-werror-always was given.
6619 if test "${enable_werror_always+set}" = set; then :
6620 enableval
=$enable_werror_always;
6622 enable_werror_always
=no
6625 if test $enable_werror_always = yes; then :
6626 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6631 # The above macros do nothing if the compiler is not GCC. However, the
6632 # Makefile has more goo to add other flags, so these variables are used
6633 # to enable warnings only for GCC.
6636 if test "x$GCC" = "xyes"; then
6637 warn_cflags
='$(GCC_WARN_CFLAGS)'
6638 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6643 # Disable exceptions and RTTI if building with g++
6645 save_CFLAGS
="$CFLAGS"
6646 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6647 # Do the check with the no- prefix removed since gcc silently
6648 # accepts any -Wno-* option on purpose
6649 case $real_option in
6650 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6651 *) option
=$real_option ;;
6653 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6656 $as_echo_n "checking whether $CC supports $option... " >&6; }
6657 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6658 $as_echo_n "(cached) " >&6
6661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6672 if ac_fn_c_try_compile
"$LINENO"; then :
6673 eval "$as_acx_Woption=yes"
6675 eval "$as_acx_Woption=no"
6677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6680 eval ac_res
=\$
$as_acx_Woption
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6682 $as_echo "$ac_res" >&6; }
6683 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6684 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6687 CFLAGS
="$save_CFLAGS"
6690 # Enable expensive internal checks
6692 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6696 # Check whether --enable-checking was given.
6697 if test "${enable_checking+set}" = set; then :
6698 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6701 # Determine the default checks.
6702 if test x
$is_release = x
; then
6703 ac_checking_flags
=yes
6705 ac_checking_flags
=release
6709 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6710 for check
in release
$ac_checking_flags
6713 # these set all the flags to specific states
6714 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6715 ac_fold_checking
= ; ac_gc_checking
=1 ;
6716 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6717 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6718 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6719 ac_types_checking
=1 ;;
6720 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6721 ac_fold_checking
= ; ac_gc_checking
= ;
6722 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6723 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6724 ac_tree_checking
= ; ac_valgrind_checking
= ;
6725 ac_types_checking
= ;;
6726 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6727 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6728 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6729 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6730 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6731 ac_types_checking
=1 ;;
6732 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6733 ac_fold_checking
= ; ac_gc_checking
= ;
6734 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6735 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6736 ac_tree_checking
= ; ac_valgrind_checking
= ;
6737 ac_types_checking
= ;;
6738 # these enable particular checks
6739 assert
) ac_assert_checking
=1 ;;
6740 df
) ac_df_checking
=1 ;;
6741 fold) ac_fold_checking
=1 ;;
6742 gc
) ac_gc_checking
=1 ;;
6743 gcac
) ac_gc_always_collect
=1 ;;
6744 gimple
) ac_gimple_checking
=1 ;;
6745 misc
) ac_checking
=1 ;;
6746 rtl
) ac_rtl_checking
=1 ;;
6747 rtlflag
) ac_rtlflag_checking
=1 ;;
6748 runtime
) ac_runtime_checking
=1 ;;
6749 tree
) ac_tree_checking
=1 ;;
6750 types
) ac_types_checking
=1 ;;
6751 valgrind
) ac_valgrind_checking
=1 ;;
6752 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6758 if test x
$ac_checking != x
; then
6760 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6762 nocommon_flag
=-fno-common
6765 if test x
$ac_df_checking != x
; then
6767 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6770 if test x
$ac_assert_checking != x
; then
6772 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6775 if test x
$ac_gimple_checking != x
; then
6777 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6781 if test x
$ac_runtime_checking != x
; then
6783 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6786 if test x
$ac_tree_checking != x
; then
6788 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6790 TREEBROWSER
=tree-browser.o
6793 if test x
$ac_types_checking != x
; then
6795 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6800 if test x
$ac_rtl_checking != x
; then
6802 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6805 if test x
$ac_rtlflag_checking != x
; then
6807 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6810 if test x
$ac_gc_checking != x
; then
6812 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6815 if test x
$ac_gc_always_collect != x
; then
6817 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6820 if test x
$ac_fold_checking != x
; then
6822 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6825 valgrind_path_defines
=
6828 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6829 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6837 if test x
$ac_valgrind_checking != x
; then
6838 # It is certainly possible that there's valgrind but no valgrind.h.
6839 # GCC relies on making annotations so we must have both.
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6841 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6844 #include <valgrind/memcheck.h>
6845 #ifndef VALGRIND_DISCARD
6846 #error VALGRIND_DISCARD not defined
6849 if ac_fn_c_try_cpp
"$LINENO"; then :
6850 gcc_cv_header_valgrind_memcheck_h
=yes
6852 gcc_cv_header_valgrind_memcheck_h
=no
6854 rm -f conftest.err conftest.
$ac_ext
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6856 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6858 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h. */
6861 #include <memcheck.h>
6862 #ifndef VALGRIND_DISCARD
6863 #error VALGRIND_DISCARD not defined
6866 if ac_fn_c_try_cpp
"$LINENO"; then :
6867 gcc_cv_header_memcheck_h
=yes
6869 gcc_cv_header_memcheck_h
=no
6871 rm -f conftest.err conftest.
$ac_ext
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6873 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6875 # Prepare PATH_SEPARATOR.
6876 # The user is always right.
6877 if test "${PATH_SEPARATOR+set}" != set; then
6878 echo "#! /bin/sh" >conf$$.sh
6879 echo "exit 0" >>conf$$.sh
6881 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6889 # Find out how to test for executable files. Don't use a zero-byte file,
6890 # as systems may use methods other than mode bits to determine executability.
6891 cat >conf$$.
file <<_ASEOF
6895 chmod +x conf$$.
file
6896 if test -x conf$$.
file >/dev
/null
2>&1; then
6897 ac_executable_p
="test -x"
6899 ac_executable_p
="test -f"
6903 # Extract the first word of "valgrind", so it can be a program name with args.
6904 set dummy valgrind
; ac_word
=$2
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6906 $as_echo_n "checking for $ac_word... " >&6; }
6907 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6908 $as_echo_n "(cached) " >&6
6910 case "$valgrind_path" in
6912 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6915 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6916 for ac_dir
in $PATH; do
6918 test -z "$ac_dir" && ac_dir
=.
6919 for ac_exec_ext
in '' $ac_executable_extensions; do
6920 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6921 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6922 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6932 valgrind_path
="$ac_cv_path_valgrind_path"
6933 if test -n "$valgrind_path"; then
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6935 $as_echo "$valgrind_path" >&6; }
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 $as_echo "no" >&6; }
6941 if test "x$valgrind_path" = "x" \
6942 ||
(test $have_valgrind_h = no \
6943 && test $gcc_cv_header_memcheck_h = no \
6944 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6945 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6947 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6948 valgrind_command
="$valgrind_path -q"
6950 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6952 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6954 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6957 if test $gcc_cv_header_memcheck_h = yes; then
6959 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6966 # Enable code coverage collection
6967 # Check whether --enable-coverage was given.
6968 if test "${enable_coverage+set}" = set; then :
6969 enableval
=$enable_coverage; case "${enableval}" in
6971 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6974 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6977 # a.k.a. --disable-coverage
6981 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6990 # Check whether --enable-gather-detailed-mem-stats was given.
6991 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6992 enableval
=$enable_gather_detailed_mem_stats;
6994 enable_gather_detailed_mem_stats
=no
6997 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6999 cat >>confdefs.h
<<_ACEOF
7000 #define GATHER_STATISTICS $gather_stats
7004 # -------------------------------
7005 # Miscenalleous configure options
7006 # -------------------------------
7010 # Check whether --with-stabs was given.
7011 if test "${with_stabs+set}" = set; then :
7012 withval
=$with_stabs; stabs
="$with_stabs"
7018 # Determine whether or not multilibs are enabled.
7019 # Check whether --enable-multilib was given.
7020 if test "${enable_multilib+set}" = set; then :
7021 enableval
=$enable_multilib;
7028 # Determine whether or not multiarch is enabled.
7029 # Check whether --enable-multiarch was given.
7030 if test "${enable_multiarch+set}" = set; then :
7031 enableval
=$enable_multiarch; case "${enableval}" in
7032 yes|no|auto
) enable_multiarch
=$enableval;;
7033 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7036 enable_multiarch
=auto
7039 if test x
${enable_multiarch} = xauto
; then
7040 if test x
${with_native_system_header_dir} != x
; then
7041 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7044 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7045 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7050 $as_echo_n "checking for multiarch configuration... " >&6; }
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7053 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7055 # needed for setting the multiarch name for soft-float/hard-float ABIs
7059 # Enable __cxa_atexit for C++.
7060 # Check whether --enable-__cxa_atexit was given.
7061 if test "${enable___cxa_atexit+set}" = set; then :
7062 enableval
=$enable___cxa_atexit;
7066 # Enable C extension for decimal float if target supports it.
7068 # Check whether --enable-decimal-float was given.
7069 if test "${enable_decimal_float+set}" = set; then :
7070 enableval
=$enable_decimal_float;
7071 case $enable_decimal_float in
7072 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7073 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7074 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7080 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7082 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7084 enable_decimal_float
=yes
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7088 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7089 enable_decimal_float
=no
7096 # x86's use BID format instead of DPD
7097 case x
$enable_decimal_float in
7100 i?
86*-*-* | x86_64
*-*-*)
7101 enable_decimal_float
=bid
7104 enable_decimal_float
=dpd
7107 default_decimal_float
=$enable_decimal_float
7110 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7111 # dependency on libdecnumber.
7112 default_decimal_float
=dpd
7119 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7121 cat >>confdefs.h
<<_ACEOF
7122 #define ENABLE_DECIMAL_FLOAT $dfp
7126 # Use default_decimal_float for dependency.
7127 enable_decimal_float
=$default_decimal_float
7129 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7131 cat >>confdefs.h
<<_ACEOF
7132 #define ENABLE_DECIMAL_BID_FORMAT $bid
7136 # Enable C extension for fixed-point arithmetic.
7137 # Check whether --enable-fixed-point was given.
7138 if test "${enable_fixed_point+set}" = set; then :
7139 enableval
=$enable_fixed_point;
7144 enable_fixed_point
=yes
7148 enable_fixed_point
=yes
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7152 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7153 enable_fixed_point
=no
7161 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7163 cat >>confdefs.h
<<_ACEOF
7164 #define ENABLE_FIXED_POINT $fixedpoint
7169 # Pass with no value to take the default
7170 # Pass with a value to specify a thread package
7171 # Check whether --enable-threads was given.
7172 if test "${enable_threads+set}" = set; then :
7173 enableval
=$enable_threads;
7179 # Check whether --enable-tls was given.
7180 if test "${enable_tls+set}" = set; then :
7181 enableval
=$enable_tls;
7184 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7185 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7193 # Check whether --enable-objc-gc was given.
7194 if test "${enable_objc_gc+set}" = set; then :
7195 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7206 # Check whether --with-dwarf2 was given.
7207 if test "${with_dwarf2+set}" = set; then :
7208 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7214 # Check whether --enable-shared was given.
7215 if test "${enable_shared+set}" = set; then :
7216 enableval
=$enable_shared;
7217 case $enable_shared in
7221 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7222 for pkg
in $enableval; do
7223 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7238 # Check whether --with-native-system-header-dir was given.
7239 if test "${with_native_system_header_dir+set}" = set; then :
7240 withval
=$with_native_system_header_dir;
7241 case ${with_native_system_header_dir} in
7242 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7243 /* |
[A-Za-z
]:[\\/]*) ;;
7244 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7246 configured_native_system_header_dir
="${withval}"
7249 configured_native_system_header_dir
=
7254 # Check whether --with-build-sysroot was given.
7255 if test "${with_build_sysroot+set}" = set; then :
7256 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7257 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7260 SYSROOT_CFLAGS_FOR_TARGET
=
7265 if test "x$prefix" = xNONE
; then
7266 test_prefix
=/usr
/local
7270 if test "x$exec_prefix" = xNONE
; then
7271 test_exec_prefix
=$test_prefix
7273 test_exec_prefix
=$exec_prefix
7277 # Check whether --with-sysroot was given.
7278 if test "${with_sysroot+set}" = set; then :
7279 withval
=$with_sysroot;
7280 case ${with_sysroot} in
7281 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7282 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7285 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7286 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7288 case ${TARGET_SYSTEM_ROOT} in
7289 "${test_prefix}"|
"${test_prefix}/"*|\
7290 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7291 '${prefix}'|
'${prefix}/'*|\
7292 '${exec_prefix}'|
'${exec_prefix}/'*)
7293 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7294 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7301 TARGET_SYSTEM_ROOT_DEFINE
=
7302 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7311 # Check whether --with-specs was given.
7312 if test "${with_specs+set}" = set; then :
7313 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7323 # Check whether --with-pkgversion was given.
7324 if test "${with_pkgversion+set}" = set; then :
7325 withval
=$with_pkgversion; case "$withval" in
7326 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7328 *) PKGVERSION
="($withval) " ;;
7331 PKGVERSION
="(Linaro GCC `cat $srcdir/LINARO-VERSION`) "
7339 # Check whether --with-bugurl was given.
7340 if test "${with_bugurl+set}" = set; then :
7341 withval
=$with_bugurl; case "$withval" in
7342 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7345 *) BUGURL
="$withval"
7349 BUGURL
="http://gcc.gnu.org/bugs.html"
7359 REPORT_BUGS_TO
="<$BUGURL>"
7360 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7367 # Sanity check enable_languages in case someone does not run the toplevel
7368 # configure # script.
7369 # Check whether --enable-languages was given.
7370 if test "${enable_languages+set}" = set; then :
7371 enableval
=$enable_languages; case ,${enable_languages}, in
7373 # go safe -- we cannot be much sure without the toplevel
7375 # analysis of which target libs are present and usable
7379 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7384 enable_languages
=c
,${enable_languages}
7393 # Check whether --with-multilib-list was given.
7394 if test "${with_multilib_list+set}" = set; then :
7395 withval
=$with_multilib_list; :
7397 with_multilib_list
=default
7401 # -------------------------
7402 # Checks for other programs
7403 # -------------------------
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7406 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7408 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7409 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7410 $as_echo_n "(cached) " >&6
7412 cat >conftest.
make <<\_ACEOF
7415 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7417 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7418 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7420 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7422 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7426 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7428 $as_echo "yes" >&6; }
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432 $as_echo "no" >&6; }
7433 SET_MAKE
="MAKE=${MAKE-make}"
7437 # Find some useful tools
7438 for ac_prog
in gawk mawk nawk
awk
7440 # Extract the first word of "$ac_prog", so it can be a program name with args.
7441 set dummy
$ac_prog; ac_word
=$2
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443 $as_echo_n "checking for $ac_word... " >&6; }
7444 if test "${ac_cv_prog_AWK+set}" = set; then :
7445 $as_echo_n "(cached) " >&6
7447 if test -n "$AWK"; then
7448 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7450 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7454 test -z "$as_dir" && as_dir
=.
7455 for ac_exec_ext
in '' $ac_executable_extensions; do
7456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7457 ac_cv_prog_AWK
="$ac_prog"
7458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 if test -n "$AWK"; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7470 $as_echo "$AWK" >&6; }
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473 $as_echo "no" >&6; }
7477 test -n "$AWK" && break
7480 # We need awk to create options.c and options.h.
7481 # Bail out if it's missing.
7483 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7487 $as_echo_n "checking whether ln -s works... " >&6; }
7488 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7489 $as_echo_n "(cached) " >&6
7491 rm -f conftestdata_t
7492 echo >conftestdata_f
7493 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7495 gcc_cv_prog_LN_S
="ln -s"
7497 if ln conftestdata_f conftestdata_t
2>/dev
/null
7501 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7503 gcc_cv_prog_LN_S
="cp -p"
7509 rm -f conftestdata_f conftestdata_t
7512 LN_S
="$gcc_cv_prog_LN_S"
7513 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7515 $as_echo "yes" >&6; }
7517 if test "$gcc_cv_prog_LN_S" = "ln"; then
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7519 $as_echo "no, using ln" >&6; }
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7522 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7527 $as_echo_n "checking whether ln works... " >&6; }
7528 if test "${acx_cv_prog_LN+set}" = set; then :
7529 $as_echo_n "(cached) " >&6
7531 rm -f conftestdata_t
7532 echo >conftestdata_f
7533 if ln conftestdata_f conftestdata_t
2>/dev
/null
7539 rm -f conftestdata_f conftestdata_t
7542 if test $acx_cv_prog_LN = no
; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7545 $as_echo "no, using $LN" >&6; }
7547 LN
="$acx_cv_prog_LN"
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7549 $as_echo "yes" >&6; }
7552 if test -n "$ac_tool_prefix"; then
7553 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7554 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7556 $as_echo_n "checking for $ac_word... " >&6; }
7557 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7558 $as_echo_n "(cached) " >&6
7560 if test -n "$RANLIB"; then
7561 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7567 test -z "$as_dir" && as_dir
=.
7568 for ac_exec_ext
in '' $ac_executable_extensions; do
7569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7570 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580 RANLIB
=$ac_cv_prog_RANLIB
7581 if test -n "$RANLIB"; then
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7583 $as_echo "$RANLIB" >&6; }
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586 $as_echo "no" >&6; }
7591 if test -z "$ac_cv_prog_RANLIB"; then
7592 ac_ct_RANLIB
=$RANLIB
7593 # Extract the first word of "ranlib", so it can be a program name with args.
7594 set dummy ranlib
; ac_word
=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7598 $as_echo_n "(cached) " >&6
7600 if test -n "$ac_ct_RANLIB"; then
7601 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7607 test -z "$as_dir" && as_dir
=.
7608 for ac_exec_ext
in '' $ac_executable_extensions; do
7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7621 if test -n "$ac_ct_RANLIB"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7623 $as_echo "$ac_ct_RANLIB" >&6; }
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7629 if test "x$ac_ct_RANLIB" = x
; then
7632 case $cross_compiling:$ac_tool_warned in
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7636 ac_tool_warned
=yes ;;
7638 RANLIB
=$ac_ct_RANLIB
7641 RANLIB
="$ac_cv_prog_RANLIB"
7647 # Find a good install program. We prefer a C program (faster),
7648 # so one script is as good as another. But avoid the broken or
7649 # incompatible versions:
7650 # SysV /etc/install, /usr/sbin/install
7651 # SunOS /usr/etc/install
7652 # IRIX /sbin/install
7654 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7655 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7656 # ./install, which can be erroneously created by make from ./install.sh.
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7658 $as_echo_n "checking for a BSD compatible install... " >&6; }
7659 if test -z "$INSTALL"; then
7660 if test "${ac_cv_path_install+set}" = set; then :
7661 $as_echo_n "(cached) " >&6
7663 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7664 for ac_dir
in $PATH; do
7665 # Account for people who put trailing slashes in PATH elements.
7667 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7669 # OSF1 and SCO ODT 3.0 have their own names for install.
7670 for ac_prog
in ginstall scoinst
install; do
7671 if test -f $ac_dir/$ac_prog; then
7672 if test $ac_prog = install &&
7673 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7674 # AIX install. It has an incompatible calling convention.
7675 # OSF/1 installbsd also uses dspmsg, but is usable.
7678 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7689 if test "${ac_cv_path_install+set}" = set; then
7690 INSTALL
="$ac_cv_path_install"
7692 # As a last resort, use the slow shell script. We don't cache a
7693 # path for INSTALL within a source directory, because that will
7694 # break other packages using the cache if that directory is
7695 # removed, or if the path is relative.
7696 INSTALL
="$ac_install_sh"
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7700 $as_echo "$INSTALL" >&6; }
7702 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7703 # It thinks the first close brace ends the variable substitution.
7704 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7706 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7709 # See if cmp has --ignore-initial.
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7711 $as_echo_n "checking for cmp's capabilities... " >&6; }
7712 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7713 $as_echo_n "(cached) " >&6
7717 gcc_cv_prog_cmp_skip
=slowcompare
7718 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7719 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7722 gcc_cv_prog_cmp_skip
=gnucompare
7725 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7726 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7727 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7730 gcc_cv_prog_cmp_skip
=fastcompare
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7738 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7739 make_compare_target
=$gcc_cv_prog_cmp_skip
7743 # See if we have the mktemp command.
7744 # Extract the first word of "mktemp", so it can be a program name with args.
7745 set dummy mktemp
; ac_word
=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7749 $as_echo_n "(cached) " >&6
7751 if test -n "$have_mktemp_command"; then
7752 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7758 test -z "$as_dir" && as_dir
=.
7759 for ac_exec_ext
in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761 ac_cv_prog_have_mktemp_command
="yes"
7762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7769 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7772 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7773 if test -n "$have_mktemp_command"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7775 $as_echo "$have_mktemp_command" >&6; }
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7783 # See if makeinfo has been installed and is modern enough
7784 # that we can use it.
7786 # Extract the first word of "makeinfo", so it can be a program name with args.
7787 set dummy makeinfo
; ac_word
=$2
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7789 $as_echo_n "checking for $ac_word... " >&6; }
7790 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7791 $as_echo_n "(cached) " >&6
7793 if test -n "$MAKEINFO"; then
7794 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7796 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7800 test -z "$as_dir" && as_dir
=.
7801 for ac_exec_ext
in '' $ac_executable_extensions; do
7802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7803 ac_cv_prog_MAKEINFO
="makeinfo"
7804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 MAKEINFO
=$ac_cv_prog_MAKEINFO
7814 if test -n "$MAKEINFO"; then
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7816 $as_echo "$MAKEINFO" >&6; }
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819 $as_echo "no" >&6; }
7823 if test -n "$MAKEINFO"; then
7824 # Found it, now check the version.
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7826 $as_echo_n "checking for modern makeinfo... " >&6; }
7827 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7828 $as_echo_n "(cached) " >&6
7830 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7831 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7833 case $ac_prog_version in
7834 '') gcc_cv_prog_makeinfo_modern
=no
;;
7835 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7836 *) gcc_cv_prog_makeinfo_modern
=no
;;
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7841 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7843 gcc_cv_prog_makeinfo_modern
=no
7845 if test $gcc_cv_prog_makeinfo_modern = no
; then
7846 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7849 if test $gcc_cv_prog_makeinfo_modern = no
; then
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7851 *** Makeinfo is missing or too old.
7852 *** Info documentation will not be built." >&5
7853 $as_echo "$as_me: WARNING:
7854 *** Makeinfo is missing or too old.
7855 *** Info documentation will not be built." >&2;}
7862 # Is pod2man recent enough to regenerate manpages?
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7864 $as_echo_n "checking for recent Pod::Man... " >&6; }
7865 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7867 $as_echo "yes" >&6; }
7868 GENERATED_MANPAGES
=generated-manpages
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871 $as_echo "no" >&6; }
7876 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7881 # Extract the first word of "$ac_prog", so it can be a program name with args.
7882 set dummy
$ac_prog; ac_word
=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if test "${ac_cv_prog_FLEX+set}" = set; then :
7886 $as_echo_n "(cached) " >&6
7888 if test -n "$FLEX"; then
7889 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7895 test -z "$as_dir" && as_dir
=.
7896 for ac_exec_ext
in '' $ac_executable_extensions; do
7897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7898 ac_cv_prog_FLEX
="$ac_prog"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908 FLEX
=$ac_cv_prog_FLEX
7909 if test -n "$FLEX"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7911 $as_echo "$FLEX" >&6; }
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7918 test -n "$FLEX" && break
7920 test -n "$FLEX" || FLEX
="$MISSING flex"
7924 for ac_prog
in bison
7926 # Extract the first word of "$ac_prog", so it can be a program name with args.
7927 set dummy
$ac_prog; ac_word
=$2
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7929 $as_echo_n "checking for $ac_word... " >&6; }
7930 if test "${ac_cv_prog_BISON+set}" = set; then :
7931 $as_echo_n "(cached) " >&6
7933 if test -n "$BISON"; then
7934 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7940 test -z "$as_dir" && as_dir
=.
7941 for ac_exec_ext
in '' $ac_executable_extensions; do
7942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7943 ac_cv_prog_BISON
="$ac_prog"
7944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7953 BISON
=$ac_cv_prog_BISON
7954 if test -n "$BISON"; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7956 $as_echo "$BISON" >&6; }
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7963 test -n "$BISON" && break
7965 test -n "$BISON" || BISON
="$MISSING bison"
7968 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7969 # check for build == host before using them.
7972 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7973 && test -d ..
/binutils
; then
7974 NM
='${objdir}/../binutils/nm-new'
7976 # Extract the first word of "nm", so it can be a program name with args.
7977 set dummy nm
; ac_word
=$2
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7979 $as_echo_n "checking for $ac_word... " >&6; }
7980 if test "${ac_cv_prog_NM+set}" = set; then :
7981 $as_echo_n "(cached) " >&6
7983 if test -n "$NM"; then
7984 ac_cv_prog_NM
="$NM" # Let the user override the test.
7986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7990 test -z "$as_dir" && as_dir
=.
7991 for ac_exec_ext
in '' $ac_executable_extensions; do
7992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8001 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8005 if test -n "$NM"; then
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8007 $as_echo "$NM" >&6; }
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 $as_echo "no" >&6; }
8017 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8018 && test -d ..
/binutils
; then
8019 AR
='${objdir}/../binutils/ar'
8021 # Extract the first word of "ar", so it can be a program name with args.
8022 set dummy
ar; ac_word
=$2
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024 $as_echo_n "checking for $ac_word... " >&6; }
8025 if test "${ac_cv_prog_AR+set}" = set; then :
8026 $as_echo_n "(cached) " >&6
8028 if test -n "$AR"; then
8029 ac_cv_prog_AR
="$AR" # Let the user override the test.
8031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8035 test -z "$as_dir" && as_dir
=.
8036 for ac_exec_ext
in '' $ac_executable_extensions; do
8037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8046 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8050 if test -n "$AR"; then
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8052 $as_echo "$AR" >&6; }
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055 $as_echo "no" >&6; }
8062 # --------------------
8063 # Checks for C headers
8064 # --------------------
8066 # Need to reject headers which give warnings, so that the -Werror bootstrap
8067 # works later. *sigh* This needs to come before all header checks.
8069 ac_c_preproc_warn_flag
=yes
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8072 $as_echo_n "checking for ANSI C header files... " >&6; }
8073 if test "${ac_cv_header_stdc+set}" = set; then :
8074 $as_echo_n "(cached) " >&6
8076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h. */
8091 if ac_fn_c_try_compile
"$LINENO"; then :
8092 ac_cv_header_stdc
=yes
8094 ac_cv_header_stdc
=no
8096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8098 if test $ac_cv_header_stdc = yes; then
8099 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8106 $EGREP "memchr" >/dev
/null
2>&1; then :
8109 ac_cv_header_stdc
=no
8115 if test $ac_cv_header_stdc = yes; then
8116 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8118 /* end confdefs.h. */
8122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8123 $EGREP "free" >/dev
/null
2>&1; then :
8126 ac_cv_header_stdc
=no
8132 if test $ac_cv_header_stdc = yes; then
8133 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8134 if test "$cross_compiling" = yes; then :
8137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8138 /* end confdefs.h. */
8141 #if ((' ' & 0x0FF) == 0x020)
8142 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8143 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8145 # define ISLOWER(c) \
8146 (('a' <= (c) && (c) <= 'i') \
8147 || ('j' <= (c) && (c) <= 'r') \
8148 || ('s' <= (c) && (c) <= 'z'))
8149 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8152 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8157 for (i = 0; i < 256; i++)
8158 if (XOR (islower (i), ISLOWER (i))
8159 || toupper (i) != TOUPPER (i))
8164 if ac_fn_c_try_run
"$LINENO"; then :
8167 ac_cv_header_stdc
=no
8169 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8170 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8176 $as_echo "$ac_cv_header_stdc" >&6; }
8177 if test $ac_cv_header_stdc = yes; then
8179 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8184 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8185 if test "${ac_cv_header_time+set}" = set; then :
8186 $as_echo_n "(cached) " >&6
8188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8189 /* end confdefs.h. */
8190 #include <sys/types.h>
8191 #include <sys/time.h>
8197 if ((struct tm *) 0)
8203 if ac_fn_c_try_compile
"$LINENO"; then :
8204 ac_cv_header_time
=yes
8206 ac_cv_header_time
=no
8208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8211 $as_echo "$ac_cv_header_time" >&6; }
8212 if test $ac_cv_header_time = yes; then
8214 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8219 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8220 if test "${gcc_cv_header_string+set}" = set; then :
8221 $as_echo_n "(cached) " >&6
8223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8224 /* end confdefs.h. */
8226 #include <strings.h>
8235 if ac_fn_c_try_compile
"$LINENO"; then :
8236 gcc_cv_header_string
=yes
8238 gcc_cv_header_string
=no
8240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8243 $as_echo "$gcc_cv_header_string" >&6; }
8244 if test $gcc_cv_header_string = yes; then
8246 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8251 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8252 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8253 $as_echo_n "(cached) " >&6
8255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h. */
8257 #include <sys/types.h>
8258 #include <sys/wait.h>
8260 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8263 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8271 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8276 if ac_fn_c_try_compile
"$LINENO"; then :
8277 ac_cv_header_sys_wait_h
=yes
8279 ac_cv_header_sys_wait_h
=no
8281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8284 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8285 if test $ac_cv_header_sys_wait_h = yes; then
8287 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8291 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8292 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8293 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8294 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8296 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8297 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8298 eval as_val
=\$
$as_ac_Header
8299 if test "x$as_val" = x
""yes; then :
8300 cat >>confdefs.h
<<_ACEOF
8301 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8308 # Check for thread headers.
8309 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8310 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8316 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8317 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8324 # These tests can't be done till we know if we have limits.h.
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8326 $as_echo_n "checking for CHAR_BIT... " >&6; }
8327 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8328 $as_echo_n "(cached) " >&6
8330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8331 /* end confdefs.h. */
8332 #ifdef HAVE_LIMITS_H
8339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8340 $EGREP "found" >/dev
/null
2>&1; then :
8341 gcc_cv_decl_char_bit
=yes
8343 gcc_cv_decl_char_bit
=no
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8350 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8351 if test $gcc_cv_decl_char_bit = no
; then
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8353 $as_echo_n "checking number of bits in a byte... " >&6; }
8354 if test "${gcc_cv_c_nbby+set}" = set; then :
8355 $as_echo_n "(cached) " >&6
8359 while test $i -lt 65; do
8360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h. */
8367 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8368 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8374 if ac_fn_c_try_compile
"$LINENO"; then :
8375 gcc_cv_c_nbby
=$i; break
8377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8380 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8384 $as_echo "$gcc_cv_c_nbby" >&6; }
8385 if test $gcc_cv_c_nbby = failed
; then
8386 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8389 cat >>confdefs.h
<<_ACEOF
8390 #define CHAR_BIT $gcc_cv_c_nbby
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8396 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8397 if test "${ac_cv_c_bigendian+set}" = set; then :
8398 $as_echo_n "(cached) " >&6
8400 ac_cv_c_bigendian
=unknown
8401 # See if we're dealing with a universal compiler.
8402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8403 /* end confdefs.h. */
8404 #ifndef __APPLE_CC__
8405 not a universal capable compiler
8410 if ac_fn_c_try_compile
"$LINENO"; then :
8412 # Check for potential -arch flags. It is not universal unless
8413 # there are at least two -arch flags with different values.
8416 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8417 if test -n "$ac_prev"; then
8419 i?
86 | x86_64 | ppc | ppc64
)
8420 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8423 ac_cv_c_bigendian
=universal
8429 elif test "x$ac_word" = "x-arch"; then
8434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8435 if test $ac_cv_c_bigendian = unknown
; then
8436 # See if sys/param.h defines the BYTE_ORDER macro.
8437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8439 #include <sys/types.h>
8440 #include <sys/param.h>
8445 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8446 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8455 if ac_fn_c_try_compile
"$LINENO"; then :
8456 # It does; now see whether it defined to BIG_ENDIAN or not.
8457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8459 #include <sys/types.h>
8460 #include <sys/param.h>
8465 #if BYTE_ORDER != BIG_ENDIAN
8473 if ac_fn_c_try_compile
"$LINENO"; then :
8474 ac_cv_c_bigendian
=yes
8476 ac_cv_c_bigendian
=no
8478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8482 if test $ac_cv_c_bigendian = unknown
; then
8483 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h. */
8491 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8499 if ac_fn_c_try_compile
"$LINENO"; then :
8500 # It does; now see whether it defined to _BIG_ENDIAN or not.
8501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8502 /* end confdefs.h. */
8516 if ac_fn_c_try_compile
"$LINENO"; then :
8517 ac_cv_c_bigendian
=yes
8519 ac_cv_c_bigendian
=no
8521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8525 if test $ac_cv_c_bigendian = unknown
; then
8526 # Compile a test program.
8527 if test "$cross_compiling" = yes; then :
8528 # Try to guess by grepping values from an object file.
8529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8530 /* end confdefs.h. */
8531 short int ascii_mm[] =
8532 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8533 short int ascii_ii[] =
8534 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8535 int use_ascii (int i) {
8536 return ascii_mm[i] + ascii_ii[i];
8538 short int ebcdic_ii[] =
8539 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8540 short int ebcdic_mm[] =
8541 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8542 int use_ebcdic (int i) {
8543 return ebcdic_mm[i] + ebcdic_ii[i];
8550 return use_ascii (foo) == use_ebcdic (foo);
8555 if ac_fn_c_try_compile
"$LINENO"; then :
8556 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8557 ac_cv_c_bigendian
=yes
8559 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8560 if test "$ac_cv_c_bigendian" = unknown
; then
8561 ac_cv_c_bigendian
=no
8563 # finding both strings is unlikely to happen, but who knows?
8564 ac_cv_c_bigendian
=unknown
8568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8572 $ac_includes_default
8577 /* Are we little or big endian? From Harbison&Steele. */
8581 char c[sizeof (long int)];
8584 return u.c[sizeof (long int) - 1] == 1;
8590 if ac_fn_c_try_run
"$LINENO"; then :
8591 ac_cv_c_bigendian
=no
8593 ac_cv_c_bigendian
=yes
8595 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8596 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8602 $as_echo "$ac_cv_c_bigendian" >&6; }
8603 case $ac_cv_c_bigendian in #(
8605 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8611 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8615 as_fn_error
"unknown endianness
8616 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8620 # ----------------------
8621 # Checks for C++ headers
8622 # ----------------------
8625 ac_cpp
='$CXXCPP $CPPFLAGS'
8626 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8627 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8628 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8630 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8631 if test -z "$CXXCPP"; then
8632 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8633 $as_echo_n "(cached) " >&6
8635 # Double quotes because CXXCPP needs to be expanded
8636 for CXXCPP
in "$CXX -E" "/lib/cpp"
8639 for ac_cxx_preproc_warn_flag
in '' yes
8641 # Use a header file that comes with gcc, so configuring glibc
8642 # with a fresh cross-compiler works.
8643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8644 # <limits.h> exists even on freestanding compilers.
8645 # On the NeXT, cc -E runs the code through the compiler's parser,
8646 # not just through cpp. "Syntax error" is here to catch this case.
8647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8648 /* end confdefs.h. */
8650 # include <limits.h>
8652 # include <assert.h>
8656 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8659 # Broken: fails on valid input.
8662 rm -f conftest.err conftest.
$ac_ext
8664 # OK, works on sane cases. Now check whether nonexistent headers
8665 # can be detected and how.
8666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8667 /* end confdefs.h. */
8668 #include <ac_nonexistent.h>
8670 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8671 # Broken: success on invalid input.
8674 # Passes both tests.
8678 rm -f conftest.err conftest.
$ac_ext
8681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8682 rm -f conftest.err conftest.
$ac_ext
8683 if $ac_preproc_ok; then :
8688 ac_cv_prog_CXXCPP
=$CXXCPP
8691 CXXCPP
=$ac_cv_prog_CXXCPP
8693 ac_cv_prog_CXXCPP
=$CXXCPP
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8696 $as_echo "$CXXCPP" >&6; }
8698 for ac_cxx_preproc_warn_flag
in '' yes
8700 # Use a header file that comes with gcc, so configuring glibc
8701 # with a fresh cross-compiler works.
8702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8703 # <limits.h> exists even on freestanding compilers.
8704 # On the NeXT, cc -E runs the code through the compiler's parser,
8705 # not just through cpp. "Syntax error" is here to catch this case.
8706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8709 # include <limits.h>
8711 # include <assert.h>
8715 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8718 # Broken: fails on valid input.
8721 rm -f conftest.err conftest.
$ac_ext
8723 # OK, works on sane cases. Now check whether nonexistent headers
8724 # can be detected and how.
8725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h. */
8727 #include <ac_nonexistent.h>
8729 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8730 # Broken: success on invalid input.
8733 # Passes both tests.
8737 rm -f conftest.err conftest.
$ac_ext
8740 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8741 rm -f conftest.err conftest.
$ac_ext
8742 if $ac_preproc_ok; then :
8745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8748 See \`config.log' for more details." >&5
8749 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8750 See \`config.log' for more details." >&2;}; }
8754 ac_cpp
='$CPP $CPPFLAGS'
8755 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8756 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8757 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8761 ac_cpp
='$CXXCPP $CPPFLAGS'
8762 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8763 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8764 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8769 for ac_header
in unordered_map
8771 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8772 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8773 cat >>confdefs.h
<<_ACEOF
8774 #define HAVE_UNORDERED_MAP 1
8780 for ac_header
in tr1/unordered_map
8782 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8783 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8784 cat >>confdefs.h
<<_ACEOF
8785 #define HAVE_TR1_UNORDERED_MAP 1
8791 for ac_header
in ext
/hash_map
8793 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8794 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8795 cat >>confdefs.h
<<_ACEOF
8796 #define HAVE_EXT_HASH_MAP 1
8804 ac_cpp
='$CPP $CPPFLAGS'
8805 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8806 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8807 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8815 # These libraries may be used by collect2.
8816 # We may need a special search path to get them linked.
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8818 $as_echo_n "checking for collect2 libraries... " >&6; }
8819 if test "${gcc_cv_collect2_libs+set}" = set; then :
8820 $as_echo_n "(cached) " >&6
8823 for libs
in '' -lld -lmld \
8824 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8825 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8829 /* end confdefs.h. */
8831 /* Override any GCC internal prototype to avoid an error.
8832 Use char because int might match the return type of a GCC
8833 builtin and then its argument prototype would still apply. */
8846 if ac_fn_c_try_link
"$LINENO"; then :
8847 gcc_cv_collect2_libs
="$libs"; break
8849 rm -f core conftest.err conftest.
$ac_objext \
8850 conftest
$ac_exeext conftest.
$ac_ext
8853 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8856 $as_echo "$gcc_cv_collect2_libs" >&6; }
8857 case $gcc_cv_collect2_libs in
8859 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8863 # When building Ada code on Alpha, we need exc_resume which is usually in
8864 # -lexc. So test for it.
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8868 $as_echo_n "checking for library containing exc_resume... " >&6; }
8869 if test "${ac_cv_search_exc_resume+set}" = set; then :
8870 $as_echo_n "(cached) " >&6
8872 ac_func_search_save_LIBS
=$LIBS
8873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8874 /* end confdefs.h. */
8876 /* Override any GCC internal prototype to avoid an error.
8877 Use char because int might match the return type of a GCC
8878 builtin and then its argument prototype would still apply. */
8886 return exc_resume ();
8891 for ac_lib
in '' exc
; do
8892 if test -z "$ac_lib"; then
8893 ac_res
="none required"
8896 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8898 if ac_fn_c_try_link
"$LINENO"; then :
8899 ac_cv_search_exc_resume
=$ac_res
8901 rm -f core conftest.err conftest.
$ac_objext \
8903 if test "${ac_cv_search_exc_resume+set}" = set; then :
8907 if test "${ac_cv_search_exc_resume+set}" = set; then :
8910 ac_cv_search_exc_resume
=no
8913 LIBS
=$ac_func_search_save_LIBS
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8916 $as_echo "$ac_cv_search_exc_resume" >&6; }
8917 ac_res
=$ac_cv_search_exc_resume
8918 if test "$ac_res" != no
; then :
8919 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8927 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8931 $as_echo_n "checking for library containing kstat_open... " >&6; }
8932 if test "${ac_cv_search_kstat_open+set}" = set; then :
8933 $as_echo_n "(cached) " >&6
8935 ac_func_search_save_LIBS
=$LIBS
8936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h. */
8939 /* Override any GCC internal prototype to avoid an error.
8940 Use char because int might match the return type of a GCC
8941 builtin and then its argument prototype would still apply. */
8949 return kstat_open ();
8954 for ac_lib
in '' kstat
; do
8955 if test -z "$ac_lib"; then
8956 ac_res
="none required"
8959 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8961 if ac_fn_c_try_link
"$LINENO"; then :
8962 ac_cv_search_kstat_open
=$ac_res
8964 rm -f core conftest.err conftest.
$ac_objext \
8966 if test "${ac_cv_search_kstat_open+set}" = set; then :
8970 if test "${ac_cv_search_kstat_open+set}" = set; then :
8973 ac_cv_search_kstat_open
=no
8976 LIBS
=$ac_func_search_save_LIBS
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8979 $as_echo "$ac_cv_search_kstat_open" >&6; }
8980 ac_res
=$ac_cv_search_kstat_open
8981 if test "$ac_res" != no
; then :
8982 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8986 EXTRA_GCC_LIBS
="$LIBS"
8990 # Some systems put ldexp and frexp in libm instead of libc; assume
8991 # they're both in the same place. jcf-dump needs them.
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8995 $as_echo_n "checking for library containing ldexp... " >&6; }
8996 if test "${ac_cv_search_ldexp+set}" = set; then :
8997 $as_echo_n "(cached) " >&6
8999 ac_func_search_save_LIBS
=$LIBS
9000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h. */
9003 /* Override any GCC internal prototype to avoid an error.
9004 Use char because int might match the return type of a GCC
9005 builtin and then its argument prototype would still apply. */
9018 for ac_lib
in '' m
; do
9019 if test -z "$ac_lib"; then
9020 ac_res
="none required"
9023 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9025 if ac_fn_c_try_link
"$LINENO"; then :
9026 ac_cv_search_ldexp
=$ac_res
9028 rm -f core conftest.err conftest.
$ac_objext \
9030 if test "${ac_cv_search_ldexp+set}" = set; then :
9034 if test "${ac_cv_search_ldexp+set}" = set; then :
9037 ac_cv_search_ldexp
=no
9040 LIBS
=$ac_func_search_save_LIBS
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9043 $as_echo "$ac_cv_search_ldexp" >&6; }
9044 ac_res
=$ac_cv_search_ldexp
9045 if test "$ac_res" != no
; then :
9046 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9054 # Use <inttypes.h> only if it exists,
9055 # doesn't clash with <sys/types.h>, and declares intmax_t.
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9057 $as_echo_n "checking for inttypes.h... " >&6; }
9058 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9059 $as_echo_n "(cached) " >&6
9061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9062 /* end confdefs.h. */
9063 #include <sys/types.h>
9064 #include <inttypes.h>
9073 if ac_fn_c_try_compile
"$LINENO"; then :
9074 gcc_cv_header_inttypes_h
=yes
9076 gcc_cv_header_inttypes_h
=no
9078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9082 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9083 if test $gcc_cv_header_inttypes_h = yes; then
9085 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9091 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9092 sysconf strsignal getrusage nl_langinfo \
9093 gettimeofday mbstowcs wcswidth mmap setlocale \
9094 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
9096 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9097 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9098 eval as_val
=\$
$as_ac_var
9099 if test "x$as_val" = x
""yes; then :
9100 cat >>confdefs.h
<<_ACEOF
9101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9108 if test x
$ac_cv_func_mbstowcs = xyes
; then
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9110 $as_echo_n "checking whether mbstowcs works... " >&6; }
9111 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9112 $as_echo_n "(cached) " >&6
9114 if test "$cross_compiling" = yes; then :
9115 gcc_cv_func_mbstowcs_works
=yes
9117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9126 if ac_fn_c_try_run
"$LINENO"; then :
9127 gcc_cv_func_mbstowcs_works
=yes
9129 gcc_cv_func_mbstowcs_works
=no
9131 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9132 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9137 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9138 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9140 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9145 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9146 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9150 cat >>confdefs.h
<<_ACEOF
9156 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9157 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9161 cat >>confdefs.h
<<_ACEOF
9162 #define caddr_t char *
9169 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9170 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9171 gcc_header_sys_mman_h
=yes
9173 gcc_header_sys_mman_h
=no
9176 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9177 if test "x$ac_cv_func_mmap" = x
""yes; then :
9183 if test "$gcc_header_sys_mman_h" != yes \
9184 ||
test "$gcc_func_mmap" != yes; then
9185 gcc_cv_func_mmap_file
=no
9186 gcc_cv_func_mmap_dev_zero
=no
9187 gcc_cv_func_mmap_anon
=no
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9190 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9191 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9192 $as_echo_n "(cached) " >&6
9194 # Add a system to this blacklist if
9195 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9196 # memory area containing the same data that you'd get if you applied
9197 # read() to the same fd. The only system known to have a problem here
9198 # is VMS, where text files have record structure.
9201 gcc_cv_func_mmap_file
=no
;;
9203 gcc_cv_func_mmap_file
=yes;;
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9207 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9209 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9210 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9211 $as_echo_n "(cached) " >&6
9213 # Add a system to this blacklist if it has mmap() but /dev/zero
9214 # does not exist, or if mmapping /dev/zero does not give anonymous
9215 # zeroed pages with both the following properties:
9216 # 1. If you map N consecutive pages in with one call, and then
9217 # unmap any subset of those pages, the pages that were not
9218 # explicitly unmapped remain accessible.
9219 # 2. If you map two adjacent blocks of memory and then unmap them
9220 # both at once, they must both go away.
9221 # Systems known to be in this category are Windows (all variants),
9224 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9225 gcc_cv_func_mmap_dev_zero
=no
;;
9227 gcc_cv_func_mmap_dev_zero
=yes;;
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9231 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9233 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9235 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9236 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9237 $as_echo_n "(cached) " >&6
9239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9240 /* end confdefs.h. */
9241 #include <sys/types.h>
9242 #include <sys/mman.h>
9245 #ifndef MAP_ANONYMOUS
9246 #define MAP_ANONYMOUS MAP_ANON
9252 int n = MAP_ANONYMOUS;
9257 if ac_fn_c_try_compile
"$LINENO"; then :
9258 gcc_cv_decl_map_anon
=yes
9260 gcc_cv_decl_map_anon
=no
9262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9265 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9267 if test $gcc_cv_decl_map_anon = no
; then
9268 gcc_cv_func_mmap_anon
=no
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9271 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9272 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9273 $as_echo_n "(cached) " >&6
9275 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9276 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9277 # doesn't give anonymous zeroed pages with the same properties listed
9278 # above for use of /dev/zero.
9279 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9281 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9282 gcc_cv_func_mmap_anon
=no
;;
9284 gcc_cv_func_mmap_anon
=yes;;
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9288 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9292 if test $gcc_cv_func_mmap_file = yes; then
9294 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9297 if test $gcc_cv_func_mmap_dev_zero = yes; then
9299 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9302 if test $gcc_cv_func_mmap_anon = yes; then
9304 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9311 # Under VMS, vfork works very differently than on Unix. The standard test
9312 # won't work, and it isn't easily adaptable. It makes more sense to
9314 ac_cv_func_vfork_works
=yes
9317 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9318 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9322 cat >>confdefs.h
<<_ACEOF
9328 for ac_header
in vfork.h
9330 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9331 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9332 cat >>confdefs.h
<<_ACEOF
9333 #define HAVE_VFORK_H 1
9339 for ac_func
in fork vfork
9341 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9342 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9343 eval as_val
=\$
$as_ac_var
9344 if test "x$as_val" = x
""yes; then :
9345 cat >>confdefs.h
<<_ACEOF
9346 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9352 if test "x$ac_cv_func_fork" = xyes
; then
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9354 $as_echo_n "checking for working fork... " >&6; }
9355 if test "${ac_cv_func_fork_works+set}" = set; then :
9356 $as_echo_n "(cached) " >&6
9358 if test "$cross_compiling" = yes; then :
9359 ac_cv_func_fork_works
=cross
9361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9363 $ac_includes_default
9368 /* By Ruediger Kuhlmann. */
9375 if ac_fn_c_try_run
"$LINENO"; then :
9376 ac_cv_func_fork_works
=yes
9378 ac_cv_func_fork_works
=no
9380 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9381 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9386 $as_echo "$ac_cv_func_fork_works" >&6; }
9389 ac_cv_func_fork_works
=$ac_cv_func_fork
9391 if test "x$ac_cv_func_fork_works" = xcross
; then
9393 *-*-amigaos* |
*-*-msdosdjgpp*)
9394 # Override, as these systems have only a dummy fork() stub
9395 ac_cv_func_fork_works
=no
9398 ac_cv_func_fork_works
=yes
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9402 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9404 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9405 if test "x$ac_cv_func_vfork" = xyes
; then
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9407 $as_echo_n "checking for working vfork... " >&6; }
9408 if test "${ac_cv_func_vfork_works+set}" = set; then :
9409 $as_echo_n "(cached) " >&6
9411 if test "$cross_compiling" = yes; then :
9412 ac_cv_func_vfork_works
=cross
9414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9415 /* end confdefs.h. */
9416 /* Thanks to Paul Eggert for this test. */
9417 $ac_includes_default
9418 #include <sys/wait.h>
9422 /* On some sparc systems, changes by the child to local and incoming
9423 argument registers are propagated back to the parent. The compiler
9424 is told about this with #include <vfork.h>, but some compilers
9425 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9426 static variable whose address is put into a register that is
9427 clobbered by the vfork. */
9430 sparc_address_test (int arg)
9432 sparc_address_test (arg) int arg;
9453 pid_t parent = getpid ();
9456 sparc_address_test (0);
9461 /* Here is another test for sparc vfork register problems. This
9462 test uses lots of local variables, at least as many local
9463 variables as main has allocated so far including compiler
9464 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9465 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9466 reuse the register of parent for one of the local variables,
9467 since it will think that parent can't possibly be used any more
9468 in this routine. Assigning to the local variable will thus
9469 munge parent in the parent process. */
9471 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9472 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9473 /* Convince the compiler that p..p7 are live; otherwise, it might
9474 use the same hardware register for all 8 local variables. */
9475 if (p != p1 || p != p2 || p != p3 || p != p4
9476 || p != p5 || p != p6 || p != p7)
9479 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9480 from child file descriptors. If the child closes a descriptor
9481 before it execs or exits, this munges the parent's descriptor
9482 as well. Test for this by closing stdout in the child. */
9483 _exit(close(fileno(stdout)) != 0);
9488 while (wait(&status) != child)
9491 /* Was there some problem with vforking? */
9494 /* Did the child fail? (This shouldn't happen.) */
9497 /* Did the vfork/compiler bug occur? */
9498 || parent != getpid()
9500 /* Did the file descriptor bug occur? */
9501 || fstat(fileno(stdout), &st) != 0
9506 if ac_fn_c_try_run
"$LINENO"; then :
9507 ac_cv_func_vfork_works
=yes
9509 ac_cv_func_vfork_works
=no
9511 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9512 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9517 $as_echo "$ac_cv_func_vfork_works" >&6; }
9520 if test "x$ac_cv_func_fork_works" = xcross
; then
9521 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9523 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9526 if test "x$ac_cv_func_vfork_works" = xyes
; then
9528 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9532 $as_echo "#define vfork fork" >>confdefs.h
9535 if test "x$ac_cv_func_fork_works" = xyes
; then
9537 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9542 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9543 # iconv() prototype.
9545 ac_cpp
='$CXXCPP $CPPFLAGS'
9546 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9547 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9548 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9551 if test "X$prefix" = "XNONE"; then
9552 acl_final_prefix
="$ac_default_prefix"
9554 acl_final_prefix
="$prefix"
9556 if test "X$exec_prefix" = "XNONE"; then
9557 acl_final_exec_prefix
='${prefix}'
9559 acl_final_exec_prefix
="$exec_prefix"
9561 acl_save_prefix
="$prefix"
9562 prefix
="$acl_final_prefix"
9563 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9564 prefix
="$acl_save_prefix"
9567 # Check whether --with-gnu-ld was given.
9568 if test "${with_gnu_ld+set}" = set; then :
9569 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9574 # Prepare PATH_SEPARATOR.
9575 # The user is always right.
9576 if test "${PATH_SEPARATOR+set}" != set; then
9577 echo "#! /bin/sh" >conf$$.sh
9578 echo "exit 0" >>conf$$.sh
9580 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9588 if test "$GCC" = yes; then
9589 # Check if gcc -print-prog-name=ld gives a path.
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9591 $as_echo_n "checking for ld used by GCC... " >&6; }
9594 # gcc leaves a trailing carriage return which upsets mingw
9595 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9597 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9600 # Accept absolute paths.
9601 [\\/]* |
[A-Za-z
]:[\\/]*)
9602 re_direlt
='/[^/][^/]*/\.\./'
9603 # Canonicalize the path of ld
9604 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9605 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9606 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9608 test -z "$LD" && LD
="$ac_prog"
9611 # If it fails, then pretend we aren't using GCC.
9615 # If it is relative, then search for the first ld in PATH.
9619 elif test "$with_gnu_ld" = yes; then
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9621 $as_echo_n "checking for GNU ld... " >&6; }
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9624 $as_echo_n "checking for non-GNU ld... " >&6; }
9626 if test "${acl_cv_path_LD+set}" = set; then :
9627 $as_echo_n "(cached) " >&6
9629 if test -z "$LD"; then
9630 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9631 for ac_dir
in $PATH; do
9632 test -z "$ac_dir" && ac_dir
=.
9633 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9634 acl_cv_path_LD
="$ac_dir/$ac_prog"
9635 # Check to see if the program is GNU ld. I'd rather use --version,
9636 # but apparently some GNU ld's only accept -v.
9637 # Break only if it was the GNU/non-GNU ld that we prefer.
9638 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9639 test "$with_gnu_ld" != no
&& break
9641 test "$with_gnu_ld" != yes && break
9647 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9651 LD
="$acl_cv_path_LD"
9652 if test -n "$LD"; then
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9654 $as_echo "$LD" >&6; }
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9657 $as_echo "no" >&6; }
9659 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9661 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9662 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9663 $as_echo_n "(cached) " >&6
9665 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9666 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9667 acl_cv_prog_gnu_ld
=yes
9669 acl_cv_prog_gnu_ld
=no
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9673 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9674 with_gnu_ld
=$acl_cv_prog_gnu_ld
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9679 $as_echo_n "checking for shared library run path origin... " >&6; }
9680 if test "${acl_cv_rpath+set}" = set; then :
9681 $as_echo_n "(cached) " >&6
9684 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9685 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9692 $as_echo "$acl_cv_rpath" >&6; }
9694 libext
="$acl_cv_libext"
9695 shlibext
="$acl_cv_shlibext"
9696 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9697 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9698 hardcode_direct
="$acl_cv_hardcode_direct"
9699 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9700 # Check whether --enable-rpath was given.
9701 if test "${enable_rpath+set}" = set; then :
9702 enableval
=$enable_rpath; :
9716 acl_save_prefix
="$prefix"
9717 prefix
="$acl_final_prefix"
9718 acl_save_exec_prefix
="$exec_prefix"
9719 exec_prefix
="$acl_final_exec_prefix"
9721 eval additional_includedir
=\"$includedir\"
9722 eval additional_libdir
=\"$libdir\"
9724 exec_prefix
="$acl_save_exec_prefix"
9725 prefix
="$acl_save_prefix"
9728 # Check whether --with-libiconv-prefix was given.
9729 if test "${with_libiconv_prefix+set}" = set; then :
9730 withval
=$with_libiconv_prefix;
9731 if test "X$withval" = "Xno"; then
9734 if test "X$withval" = "X"; then
9736 acl_save_prefix
="$prefix"
9737 prefix
="$acl_final_prefix"
9738 acl_save_exec_prefix
="$exec_prefix"
9739 exec_prefix
="$acl_final_exec_prefix"
9741 eval additional_includedir
=\"$includedir\"
9742 eval additional_libdir
=\"$libdir\"
9744 exec_prefix
="$acl_save_exec_prefix"
9745 prefix
="$acl_save_prefix"
9748 additional_includedir
="$withval/include"
9749 additional_libdir
="$withval/lib"
9760 names_already_handled
=
9761 names_next_round
='iconv '
9762 while test -n "$names_next_round"; do
9763 names_this_round
="$names_next_round"
9765 for name
in $names_this_round; do
9767 for n
in $names_already_handled; do
9768 if test "$n" = "$name"; then
9773 if test -z "$already_handled"; then
9774 names_already_handled
="$names_already_handled $name"
9775 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9776 eval value
=\"\
$HAVE_LIB$uppername\"
9777 if test -n "$value"; then
9778 if test "$value" = yes; then
9779 eval value
=\"\
$LIB$uppername\"
9780 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9781 eval value
=\"\
$LTLIB$uppername\"
9782 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9791 if test $use_additional = yes; then
9792 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9793 found_dir
="$additional_libdir"
9794 found_so
="$additional_libdir/lib$name.$shlibext"
9795 if test -f "$additional_libdir/lib$name.la"; then
9796 found_la
="$additional_libdir/lib$name.la"
9799 if test -f "$additional_libdir/lib$name.$libext"; then
9800 found_dir
="$additional_libdir"
9801 found_a
="$additional_libdir/lib$name.$libext"
9802 if test -f "$additional_libdir/lib$name.la"; then
9803 found_la
="$additional_libdir/lib$name.la"
9808 if test "X$found_dir" = "X"; then
9809 for x
in $LDFLAGS $LTLIBICONV; do
9811 acl_save_prefix
="$prefix"
9812 prefix
="$acl_final_prefix"
9813 acl_save_exec_prefix
="$exec_prefix"
9814 exec_prefix
="$acl_final_exec_prefix"
9816 exec_prefix
="$acl_save_exec_prefix"
9817 prefix
="$acl_save_prefix"
9821 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9822 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9824 found_so
="$dir/lib$name.$shlibext"
9825 if test -f "$dir/lib$name.la"; then
9826 found_la
="$dir/lib$name.la"
9829 if test -f "$dir/lib$name.$libext"; then
9831 found_a
="$dir/lib$name.$libext"
9832 if test -f "$dir/lib$name.la"; then
9833 found_la
="$dir/lib$name.la"
9839 if test "X$found_dir" != "X"; then
9844 if test "X$found_dir" != "X"; then
9845 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9846 if test "X$found_so" != "X"; then
9847 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9848 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9851 for x
in $ltrpathdirs; do
9852 if test "X$x" = "X$found_dir"; then
9857 if test -z "$haveit"; then
9858 ltrpathdirs
="$ltrpathdirs $found_dir"
9860 if test "$hardcode_direct" = yes; then
9861 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9863 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9864 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9866 for x
in $rpathdirs; do
9867 if test "X$x" = "X$found_dir"; then
9872 if test -z "$haveit"; then
9873 rpathdirs
="$rpathdirs $found_dir"
9877 for x
in $LDFLAGS $LIBICONV; do
9879 acl_save_prefix
="$prefix"
9880 prefix
="$acl_final_prefix"
9881 acl_save_exec_prefix
="$exec_prefix"
9882 exec_prefix
="$acl_final_exec_prefix"
9884 exec_prefix
="$acl_save_exec_prefix"
9885 prefix
="$acl_save_prefix"
9887 if test "X$x" = "X-L$found_dir"; then
9892 if test -z "$haveit"; then
9893 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9895 if test "$hardcode_minus_L" != no
; then
9896 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9898 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9904 if test "X$found_a" != "X"; then
9905 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9907 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9910 additional_includedir
=
9911 case "$found_dir" in
9913 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9914 additional_includedir
="$basedir/include"
9917 if test "X$additional_includedir" != "X"; then
9918 if test "X$additional_includedir" != "X/usr/include"; then
9920 if test "X$additional_includedir" = "X/usr/local/include"; then
9921 if test -n "$GCC"; then
9923 linux
*) haveit
=yes;;
9927 if test -z "$haveit"; then
9928 for x
in $CPPFLAGS $INCICONV; do
9930 acl_save_prefix
="$prefix"
9931 prefix
="$acl_final_prefix"
9932 acl_save_exec_prefix
="$exec_prefix"
9933 exec_prefix
="$acl_final_exec_prefix"
9935 exec_prefix
="$acl_save_exec_prefix"
9936 prefix
="$acl_save_prefix"
9938 if test "X$x" = "X-I$additional_includedir"; then
9943 if test -z "$haveit"; then
9944 if test -d "$additional_includedir"; then
9945 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9951 if test -n "$found_la"; then
9952 save_libdir
="$libdir"
9954 */* |
*\\*) .
"$found_la" ;;
9955 *) .
"./$found_la" ;;
9957 libdir
="$save_libdir"
9958 for dep
in $dependency_libs; do
9961 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9962 if test "X$additional_libdir" != "X/usr/lib"; then
9964 if test "X$additional_libdir" = "X/usr/local/lib"; then
9965 if test -n "$GCC"; then
9967 linux
*) haveit
=yes;;
9971 if test -z "$haveit"; then
9973 for x
in $LDFLAGS $LIBICONV; do
9975 acl_save_prefix
="$prefix"
9976 prefix
="$acl_final_prefix"
9977 acl_save_exec_prefix
="$exec_prefix"
9978 exec_prefix
="$acl_final_exec_prefix"
9980 exec_prefix
="$acl_save_exec_prefix"
9981 prefix
="$acl_save_prefix"
9983 if test "X$x" = "X-L$additional_libdir"; then
9988 if test -z "$haveit"; then
9989 if test -d "$additional_libdir"; then
9990 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9994 for x
in $LDFLAGS $LTLIBICONV; do
9996 acl_save_prefix
="$prefix"
9997 prefix
="$acl_final_prefix"
9998 acl_save_exec_prefix
="$exec_prefix"
9999 exec_prefix
="$acl_final_exec_prefix"
10001 exec_prefix
="$acl_save_exec_prefix"
10002 prefix
="$acl_save_prefix"
10004 if test "X$x" = "X-L$additional_libdir"; then
10009 if test -z "$haveit"; then
10010 if test -d "$additional_libdir"; then
10011 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10018 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10019 if test "$enable_rpath" != no
; then
10021 for x
in $rpathdirs; do
10022 if test "X$x" = "X$dir"; then
10027 if test -z "$haveit"; then
10028 rpathdirs
="$rpathdirs $dir"
10031 for x
in $ltrpathdirs; do
10032 if test "X$x" = "X$dir"; then
10037 if test -z "$haveit"; then
10038 ltrpathdirs
="$ltrpathdirs $dir"
10043 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10046 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10049 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10050 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10056 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10057 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10063 if test "X$rpathdirs" != "X"; then
10064 if test -n "$hardcode_libdir_separator"; then
10066 for found_dir
in $rpathdirs; do
10067 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10069 acl_save_libdir
="$libdir"
10071 eval flag
=\"$hardcode_libdir_flag_spec\"
10072 libdir
="$acl_save_libdir"
10073 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10075 for found_dir
in $rpathdirs; do
10076 acl_save_libdir
="$libdir"
10077 libdir
="$found_dir"
10078 eval flag
=\"$hardcode_libdir_flag_spec\"
10079 libdir
="$acl_save_libdir"
10080 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10084 if test "X$ltrpathdirs" != "X"; then
10085 for found_dir
in $ltrpathdirs; do
10086 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10096 am_save_CPPFLAGS
="$CPPFLAGS"
10098 for element
in $INCICONV; do
10100 for x
in $CPPFLAGS; do
10102 acl_save_prefix
="$prefix"
10103 prefix
="$acl_final_prefix"
10104 acl_save_exec_prefix
="$exec_prefix"
10105 exec_prefix
="$acl_final_exec_prefix"
10107 exec_prefix
="$acl_save_exec_prefix"
10108 prefix
="$acl_save_prefix"
10110 if test "X$x" = "X$element"; then
10115 if test -z "$haveit"; then
10116 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10122 $as_echo_n "checking for iconv... " >&6; }
10123 if test "${am_cv_func_iconv+set}" = set; then :
10124 $as_echo_n "(cached) " >&6
10127 am_cv_func_iconv
="no, consider installing GNU libiconv"
10129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10130 /* end confdefs.h. */
10131 #include <stdlib.h>
10136 iconv_t cd = iconv_open("","");
10137 iconv(cd,NULL,NULL,NULL,NULL);
10143 if ac_fn_cxx_try_link
"$LINENO"; then :
10144 am_cv_func_iconv
=yes
10146 rm -f core conftest.err conftest.
$ac_objext \
10147 conftest
$ac_exeext conftest.
$ac_ext
10148 if test "$am_cv_func_iconv" != yes; then
10149 am_save_LIBS
="$LIBS"
10150 LIBS
="$LIBS $LIBICONV"
10151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10152 /* end confdefs.h. */
10153 #include <stdlib.h>
10158 iconv_t cd = iconv_open("","");
10159 iconv(cd,NULL,NULL,NULL,NULL);
10165 if ac_fn_cxx_try_link
"$LINENO"; then :
10166 am_cv_lib_iconv
=yes
10167 am_cv_func_iconv
=yes
10169 rm -f core conftest.err conftest.
$ac_objext \
10170 conftest
$ac_exeext conftest.
$ac_ext
10171 LIBS
="$am_save_LIBS"
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10176 $as_echo "$am_cv_func_iconv" >&6; }
10177 if test "$am_cv_func_iconv" = yes; then
10179 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10182 if test "$am_cv_lib_iconv" = yes; then
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10184 $as_echo_n "checking how to link with libiconv... " >&6; }
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10186 $as_echo "$LIBICONV" >&6; }
10188 CPPFLAGS
="$am_save_CPPFLAGS"
10195 if test "$am_cv_func_iconv" = yes; then
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10197 $as_echo_n "checking for iconv declaration... " >&6; }
10198 if test "${am_cv_proto_iconv+set}" = set; then :
10199 $as_echo_n "(cached) " >&6
10202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h. */
10205 #include <stdlib.h>
10211 #if defined(__STDC__) || defined(__cplusplus)
10212 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10225 if ac_fn_cxx_try_compile
"$LINENO"; then :
10226 am_cv_proto_iconv_arg1
=""
10228 am_cv_proto_iconv_arg1
="const"
10230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10231 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);"
10234 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10236 }$am_cv_proto_iconv" >&5
10238 }$am_cv_proto_iconv" >&6; }
10240 cat >>confdefs.h
<<_ACEOF
10241 #define ICONV_CONST $am_cv_proto_iconv_arg1
10247 ac_cpp
='$CPP $CPPFLAGS'
10248 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10249 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10250 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10253 # Until we have in-tree GNU iconv:
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10259 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10260 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10261 $as_echo_n "(cached) " >&6
10263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10264 /* end confdefs.h. */
10265 #include <locale.h>
10274 if ac_fn_c_try_link
"$LINENO"; then :
10275 am_cv_val_LC_MESSAGES
=yes
10277 am_cv_val_LC_MESSAGES
=no
10279 rm -f core conftest.err conftest.
$ac_objext \
10280 conftest
$ac_exeext conftest.
$ac_ext
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10283 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10284 if test $am_cv_val_LC_MESSAGES = yes; then
10286 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10293 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10294 if test "${am_cv_langinfo_codeset+set}" = set; then :
10295 $as_echo_n "(cached) " >&6
10297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10299 #include <langinfo.h>
10303 char* cs = nl_langinfo(CODESET);
10308 if ac_fn_c_try_link
"$LINENO"; then :
10309 am_cv_langinfo_codeset
=yes
10311 am_cv_langinfo_codeset
=no
10313 rm -f core conftest.err conftest.
$ac_objext \
10314 conftest
$ac_exeext conftest.
$ac_ext
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10318 $as_echo "$am_cv_langinfo_codeset" >&6; }
10319 if test $am_cv_langinfo_codeset = yes; then
10321 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10326 # We will need to find libiberty.h and ansidecl.h
10327 saved_CFLAGS
="$CFLAGS"
10328 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10329 saved_CXXFLAGS
="$CXXFLAGS"
10330 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10331 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10332 strsignal strstr stpcpy strverscmp \
10333 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10334 free
basename getopt
clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10336 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10338 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10339 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10340 $as_echo_n "(cached) " >&6
10342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h. */
10345 #define $ac_tr_decl 1
10347 #include "ansidecl.h"
10348 #include "system.h"
10354 char *(*pfn) = (char *(*)) $ac_func ;
10360 if ac_fn_c_try_compile
"$LINENO"; then :
10361 eval "gcc_cv_have_decl_$ac_func=yes"
10363 eval "gcc_cv_have_decl_$ac_func=no"
10365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10368 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10370 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10371 #define $ac_tr_decl 1
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10376 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10377 #define $ac_tr_decl 0
10385 for ac_func
in getrlimit setrlimit getrusage
10387 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10389 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10390 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10391 $as_echo_n "(cached) " >&6
10393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10396 #define $ac_tr_decl 1
10398 #include "ansidecl.h"
10399 #include "system.h"
10400 #ifdef HAVE_SYS_RESOURCE_H
10401 #include <sys/resource.h>
10409 char *(*pfn) = (char *(*)) $ac_func ;
10415 if ac_fn_c_try_compile
"$LINENO"; then :
10416 eval "gcc_cv_have_decl_$ac_func=yes"
10418 eval "gcc_cv_have_decl_$ac_func=no"
10420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10423 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10425 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10426 #define $ac_tr_decl 1
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10431 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10432 #define $ac_tr_decl 0
10440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10441 /* end confdefs.h. */
10443 #include "ansidecl.h"
10444 #include "system.h"
10445 #ifdef HAVE_SYS_RESOURCE_H
10446 #include <sys/resource.h>
10457 if ac_fn_c_try_compile
"$LINENO"; then :
10461 $as_echo "#define rlim_t long" >>confdefs.h
10464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10466 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10467 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10468 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10469 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10470 for ac_func
in ldgetname
10472 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10474 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10475 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10476 $as_echo_n "(cached) " >&6
10478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10479 /* end confdefs.h. */
10481 #define $ac_tr_decl 1
10483 #include "ansidecl.h"
10484 #include "system.h"
10485 #ifdef HAVE_LDFCN_H
10496 char *(*pfn) = (char *(*)) $ac_func ;
10502 if ac_fn_c_try_compile
"$LINENO"; then :
10503 eval "gcc_cv_have_decl_$ac_func=yes"
10505 eval "gcc_cv_have_decl_$ac_func=no"
10507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10510 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10512 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10513 #define $ac_tr_decl 1
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10518 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10519 #define $ac_tr_decl 0
10527 for ac_func
in times
10529 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10531 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10532 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10533 $as_echo_n "(cached) " >&6
10535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10536 /* end confdefs.h. */
10538 #define $ac_tr_decl 1
10540 #include "ansidecl.h"
10541 #include "system.h"
10542 #ifdef HAVE_SYS_TIMES_H
10543 #include <sys/times.h>
10551 char *(*pfn) = (char *(*)) $ac_func ;
10557 if ac_fn_c_try_compile
"$LINENO"; then :
10558 eval "gcc_cv_have_decl_$ac_func=yes"
10560 eval "gcc_cv_have_decl_$ac_func=no"
10562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10565 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10567 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10568 #define $ac_tr_decl 1
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10573 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10574 #define $ac_tr_decl 0
10582 for ac_func
in sigaltstack
10584 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10586 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10587 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10588 $as_echo_n "(cached) " >&6
10590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h. */
10593 #define $ac_tr_decl 1
10595 #include "ansidecl.h"
10596 #include "system.h"
10597 #include <signal.h>
10604 char *(*pfn) = (char *(*)) $ac_func ;
10610 if ac_fn_c_try_compile
"$LINENO"; then :
10611 eval "gcc_cv_have_decl_$ac_func=yes"
10613 eval "gcc_cv_have_decl_$ac_func=no"
10615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10618 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10620 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10621 #define $ac_tr_decl 1
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10626 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10627 #define $ac_tr_decl 0
10635 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10638 ac_cpp
='$CXXCPP $CPPFLAGS'
10639 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10640 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10641 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10643 for ac_func
in madvise
10645 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10647 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10648 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10649 $as_echo_n "(cached) " >&6
10651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10652 /* end confdefs.h. */
10654 #define $ac_tr_decl 1
10656 #include "ansidecl.h"
10657 #include "system.h"
10664 char *(*pfn) = (char *(*)) $ac_func ;
10670 if ac_fn_cxx_try_compile
"$LINENO"; then :
10671 eval "gcc_cv_have_decl_$ac_func=yes"
10673 eval "gcc_cv_have_decl_$ac_func=no"
10675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10678 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10680 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10681 #define $ac_tr_decl 1
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10687 #define $ac_tr_decl 0
10695 ac_cpp
='$CPP $CPPFLAGS'
10696 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10697 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10698 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10701 # More time-related stuff.
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10703 $as_echo_n "checking for struct tms... " >&6; }
10704 if test "${ac_cv_struct_tms+set}" = set; then :
10705 $as_echo_n "(cached) " >&6
10708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10711 #include "ansidecl.h"
10712 #include "system.h"
10713 #ifdef HAVE_SYS_TIMES_H
10714 #include <sys/times.h>
10725 if ac_fn_c_try_compile
"$LINENO"; then :
10726 ac_cv_struct_tms
=yes
10728 ac_cv_struct_tms
=no
10730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10733 $as_echo "$ac_cv_struct_tms" >&6; }
10734 if test $ac_cv_struct_tms = yes; then
10736 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10740 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10741 # revisit after autoconf 2.50.
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10743 $as_echo_n "checking for clock_t... " >&6; }
10744 if test "${gcc_cv_type_clock_t+set}" = set; then :
10745 $as_echo_n "(cached) " >&6
10748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h. */
10751 #include "ansidecl.h"
10752 #include "system.h"
10762 if ac_fn_c_try_compile
"$LINENO"; then :
10763 gcc_cv_type_clock_t
=yes
10765 gcc_cv_type_clock_t
=no
10767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10770 $as_echo "$gcc_cv_type_clock_t" >&6; }
10771 if test $gcc_cv_type_clock_t = yes; then
10773 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10777 # Check if F_SETLKW is supported by fcntl.
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10779 $as_echo_n "checking for F_SETLKW... " >&6; }
10780 if test "${ac_cv_f_setlkw+set}" = set; then :
10781 $as_echo_n "(cached) " >&6
10784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10785 /* end confdefs.h. */
10797 return fcntl (1, F_SETLKW, &fl);
10802 if ac_fn_c_try_compile
"$LINENO"; then :
10807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10810 $as_echo "$ac_cv_f_setlkw" >&6; }
10811 if test $ac_cv_f_setlkw = yes; then
10813 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10817 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10818 CFLAGS
="$saved_CFLAGS"
10819 CXXFLAGS
="$saved_CXXFLAGS"
10821 # mkdir takes a single argument on some systems.
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10823 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10824 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10825 $as_echo_n "(cached) " >&6
10827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h. */
10830 #include <sys/types.h>
10831 #ifdef HAVE_SYS_STAT_H
10832 # include <sys/stat.h>
10834 #ifdef HAVE_UNISTD_H
10835 # include <unistd.h>
10837 #ifdef HAVE_DIRECT_H
10838 # include <direct.h>
10848 if ac_fn_c_try_compile
"$LINENO"; then :
10849 gcc_cv_mkdir_takes_one_arg
=no
10851 gcc_cv_mkdir_takes_one_arg
=yes
10853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10856 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10857 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10859 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10870 # With Setjmp/Longjmp based exception handling.
10871 # Check whether --enable-sjlj-exceptions was given.
10872 if test "${enable_sjlj_exceptions+set}" = set; then :
10873 enableval
=$enable_sjlj_exceptions; case $target in
10875 if test $enableval != yes; then
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10877 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10882 force_sjlj_exceptions
=yes
10886 force_sjlj_exceptions
=yes
10890 force_sjlj_exceptions
=no
10895 if test $force_sjlj_exceptions = yes; then
10896 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10898 cat >>confdefs.h
<<_ACEOF
10899 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10904 # --------------------------------------------------------
10905 # Build, host, and target specific configuration fragments
10906 # --------------------------------------------------------
10908 # Collect build-machine-specific information.
10909 .
${srcdir}/config.build
10911 # Collect host-machine-specific information.
10912 .
${srcdir}/config.
host
10916 # Collect target-machine-specific information.
10917 .
${srcdir}/config.gcc
10919 extra_objs
="${host_extra_objs} ${extra_objs}"
10920 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10922 # Default the target-machine variables that were not explicitly set.
10923 if test x
"$tm_file" = x
10924 then tm_file
=$cpu_type/$cpu_type.h
; fi
10926 if test x
"$extra_headers" = x
10927 then extra_headers
=; fi
10929 if test x
$md_file = x
10930 then md_file
=$cpu_type/$cpu_type.md
; fi
10932 if test x
$out_file = x
10933 then out_file
=$cpu_type/$cpu_type.c
; fi
10935 if test x
"$tmake_file" = x
10936 then tmake_file
=$cpu_type/t-
$cpu_type
10939 # Support --enable-initfini-array.
10940 if test x
$enable_initfini_array != xno
; then
10941 tm_file
="${tm_file} initfini-array.h"
10944 if test x
"$dwarf2" = xyes
10945 then tm_file
="$tm_file tm-dwarf2.h"
10948 # Say what files are being used for the output code and MD file.
10949 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10950 echo "Using \`$srcdir/config/$md_file' as machine description file."
10952 # If any of the xm_file variables contain nonexistent files, warn
10953 # about them and drop them.
10956 for x
in $build_xm_file; do
10957 if test -f $srcdir/config
/$x
10959 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10960 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10963 build_xm_file
="$bx"
10966 for x
in $host_xm_file; do
10967 if test -f $srcdir/config
/$x
10969 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10970 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10976 for x
in $xm_file; do
10977 if test -f $srcdir/config
/$x
10979 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10980 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10986 for f
in $tm_file; do
10989 if test $count = ax
; then
10990 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10992 echo "Using the following target machine macro files:"
10993 for f
in $tm_file; do
10994 echo " $srcdir/config/$f"
10998 if test x
$need_64bit_hwint = xyes
; then
11000 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11004 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11006 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11010 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11012 cat >>confdefs.h
<<_ACEOF
11013 #define HAVE_GNU_LD $gnu_ld_bool
11017 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11019 cat >>confdefs.h
<<_ACEOF
11020 #define HAVE_GNU_AS $gnu_as_bool
11025 for f
in $host_xm_file; do
11028 if test $count = a
; then
11030 elif test $count = ax
; then
11031 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11033 echo "Using the following host machine macro files:"
11034 for f
in $host_xm_file; do
11035 echo " $srcdir/config/$f"
11038 echo "Using ${out_host_hook_obj} for host machine hooks."
11040 if test "$host_xm_file" != "$build_xm_file"; then
11042 for f
in $build_xm_file; do
11045 if test $count = a
; then
11047 elif test $count = ax
; then
11048 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11050 echo "Using the following build machine macro files:"
11051 for f
in $build_xm_file; do
11052 echo " $srcdir/config/$f"
11057 if test -n "$configured_native_system_header_dir"; then
11058 native_system_header_dir
=$configured_native_system_header_dir
11060 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11064 powerpc
*-*-darwin*)
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11066 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11067 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11068 $as_echo_n "(cached) " >&6
11070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11073 #include <sys/cdefs.h>
11074 #include <sys/signal.h>
11075 #include <ucontext.h>
11076 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11079 if ac_fn_c_try_compile
"$LINENO"; then :
11080 gcc_cv_mcontext_underscores
=no
11082 gcc_cv_mcontext_underscores
=yes
11084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11087 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11088 if test $gcc_cv_mcontext_underscores = yes; then
11090 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11100 # Check if a valid thread package
11101 case ${enable_threads} in
11104 target_thread_file
='single'
11108 target_thread_file
='single'
11110 aix | dce | lynx | mipssde | posix | rtems | \
11111 single | tpf | vxworks | win32
)
11112 target_thread_file
=${enable_threads}
11115 echo "${enable_threads} is an unknown thread package" 1>&2
11120 if test x
${thread_file} = x
; then
11121 # No thread file set by target-specific clauses in config.gcc,
11122 # so use file chosen by default logic above
11123 thread_file
=${target_thread_file}
11131 if test x
$enable___cxa_atexit = xyes || \
11132 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11133 if test x
$host = x
$target; then
11135 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11136 # keyed to flag_use_cxa_atexit
11144 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11145 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11148 echo "__cxa_atexit can't be enabled on this target"
11154 # We can't check for __cxa_atexit when building a cross, so assume
11158 if test x
$use_cxa_atexit = xyes
; then
11160 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11165 # Look for a file containing extra machine modes.
11166 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11167 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11170 cat >>confdefs.h
<<_ACEOF
11171 #define EXTRA_MODES_FILE "config/$extra_modes"
11176 # Convert extra_options into a form suitable for Makefile use.
11179 for f
in $extra_options; do
11180 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11181 all_opt_files
="$all_opt_files $srcdir/config/$f"
11185 # auto-host.h is the file containing items generated by autoconf and is
11186 # the first file included by config.h.
11187 # If host=build, it is correct to have bconfig include auto-host.h
11188 # as well. If host!=build, we are in error and need to do more
11189 # work to find out the build config parameters.
11190 if test x
$host = x
$build
11192 build_auto
=auto-host.h
11194 # We create a subdir, then run autoconf in the subdir.
11195 # To prevent recursion we set host and build for the new
11196 # invocation of configure to the build for this invocation
11203 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11204 *) realsrcdir
=..
/${srcdir};;
11206 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11207 LDFLAGS
="${LDFLAGS_FOR_BUILD}" GMPINC
="" \
11208 ${realsrcdir}/configure \
11209 --enable-languages=${enable_languages-all} \
11210 --target=$target_alias --host=$build_alias --build=$build_alias
11212 # We just finished tests for the build machine, so rename
11213 # the file auto-build.h in the gcc directory.
11214 mv auto-host.h ..
/auto-build.h
11217 build_auto
=auto-build.h
11221 tm_file
="${tm_file} defaults.h"
11222 tm_p_file
="${tm_p_file} tm-preds.h"
11223 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11224 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11225 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11226 # put this back in temporarily.
11227 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11233 # Compile in configure arguments.
11234 if test -f configargs.h
; then
11235 # Being re-configured.
11236 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11237 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11239 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11242 # Double all backslashes and backslash all quotes to turn
11243 # gcc_config_arguments into a C string.
11244 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11245 $gcc_config_arguments
11247 gcc_config_arguments_str
=`cat conftest.out`
11250 cat > configargs.h
<<EOF
11251 /* Generated automatically. */
11252 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11253 static const char thread_model[] = "$thread_file";
11255 static const struct {
11256 const char *name, *value;
11257 } configure_default_options[] = $configure_default_options;
11260 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11261 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11262 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11263 if test -f $srcdir/REVISION
; then
11264 gcc_REVISION
=`cat $srcdir/REVISION`
11268 cat > plugin-version.h
<<EOF
11269 #include "configargs.h"
11271 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11272 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11273 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11274 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11276 static char basever[] = "$gcc_BASEVER";
11277 static char datestamp[] = "$gcc_DATESTAMP";
11278 static char devphase[] = "$gcc_DEVPHASE";
11279 static char revision[] = "$gcc_REVISION";
11281 /* FIXME plugins: We should make the version information more precise.
11282 One way to do is to add a checksum. */
11284 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11285 devphase, revision,
11286 configuration_arguments};
11289 # Internationalization
11290 # If we haven't got the data from the intl directory,
11291 # assume NLS is disabled.
11300 if test -f ..
/intl
/config.intl
; then
11301 . ..
/intl
/config.intl
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11304 $as_echo_n "checking whether NLS is requested... " >&6; }
11305 if test x
"$USE_NLS" != xyes
; then
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307 $as_echo "no" >&6; }
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11310 $as_echo "yes" >&6; }
11312 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11316 $as_echo_n "checking for catalogs to be installed... " >&6; }
11317 # Look for .po and .gmo files in the source directory.
11320 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11321 # If there aren't any .gmo files the shell will give us the
11322 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11324 case "$cat" in *\
**)
11327 # The quadruple backslash is collapsed to a double backslash
11328 # by the backticks, then collapsed again by the double quotes,
11329 # leaving us with one backslash in the sed expression (right
11330 # before the dot that mustn't act as a wildcard).
11331 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11332 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11333 # The user is allowed to set LINGUAS to a list of languages to
11334 # install catalogs for. If it's empty that means "all of them."
11335 if test "x$LINGUAS" = x
; then
11336 CATALOGS
="$CATALOGS $cat"
11337 XLINGUAS
="$XLINGUAS $lang"
11339 case "$LINGUAS" in *$lang*)
11340 CATALOGS
="$CATALOGS $cat"
11341 XLINGUAS
="$XLINGUAS $lang"
11346 LINGUAS
="$XLINGUAS"
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11348 $as_echo "$LINGUAS" >&6; }
11361 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11362 # -liconv on the link line twice.
11363 case "$LIBINTL" in *$LIBICONV*)
11367 # Check whether --enable-secureplt was given.
11368 if test "${enable_secureplt+set}" = set; then :
11369 enableval
=$enable_secureplt;
11373 # Check whether --enable-leading-mingw64-underscores was given.
11374 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11375 enableval
=$enable_leading_mingw64_underscores;
11378 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11380 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11384 # Check whether --enable-cld was given.
11385 if test "${enable_cld+set}" = set; then :
11386 enableval
=$enable_cld;
11392 # Check whether --enable-frame-pointer was given.
11393 if test "${enable_frame_pointer+set}" = set; then :
11394 enableval
=$enable_frame_pointer;
11398 linux
* | darwin
[8912]*)
11399 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11401 enable_frame_pointer
=no
11404 enable_frame_pointer
=yes
11411 # Windows32 Registry support for specifying GCC installation paths.
11412 # Check whether --enable-win32-registry was given.
11413 if test "${enable_win32_registry+set}" = set; then :
11414 enableval
=$enable_win32_registry;
11419 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11420 if test "x$enable_win32_registry" != xno
; then
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11422 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11423 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11424 $as_echo_n "(cached) " >&6
11426 ac_func_search_save_LIBS
=$LIBS
11427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11428 /* end confdefs.h. */
11430 /* Override any GCC internal prototype to avoid an error.
11431 Use char because int might match the return type of a GCC
11432 builtin and then its argument prototype would still apply. */
11436 char RegOpenKeyExA ();
11440 return RegOpenKeyExA ();
11445 for ac_lib
in '' advapi32
; do
11446 if test -z "$ac_lib"; then
11447 ac_res
="none required"
11450 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11452 if ac_fn_c_try_link
"$LINENO"; then :
11453 ac_cv_search_RegOpenKeyExA
=$ac_res
11455 rm -f core conftest.err conftest.
$ac_objext \
11457 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11461 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11464 ac_cv_search_RegOpenKeyExA
=no
11466 rm conftest.
$ac_ext
11467 LIBS
=$ac_func_search_save_LIBS
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11470 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11471 ac_res
=$ac_cv_search_RegOpenKeyExA
11472 if test "$ac_res" != no
; then :
11473 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11476 enable_win32_registry
=no
11481 if test "x$enable_win32_registry" != xno
; then
11483 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11486 if test "x$enable_win32_registry" != xyes \
11487 && test "x$enable_win32_registry" != x
; then
11489 cat >>confdefs.h
<<_ACEOF
11490 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11498 # Get an absolute path to the GCC top-level source directory
11499 holddir
=`${PWDCMD-pwd}`
11501 topdir
=`${PWDCMD-pwd}`
11504 # Conditionalize the makefile for this host machine.
11506 for f
in ${host_xmake_file}
11508 if test -f ${srcdir}/config
/$f
11510 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11514 # Conditionalize the makefile for this target machine.
11516 for f
in ${tmake_file}
11518 if test -f ${srcdir}/config
/$f
11520 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11523 tmake_file
="${tmake_file_}"
11525 out_object_file
=`basename $out_file .c`.o
11526 common_out_object_file
=`basename $common_out_file .c`.o
11528 tm_file_list
="options.h"
11529 tm_include_list
="options.h insn-constants.h"
11530 for f
in $tm_file; do
11533 f
=`echo $f | sed 's/^..//'`
11534 tm_file_list
="${tm_file_list} $f"
11535 tm_include_list
="${tm_include_list} $f"
11538 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11539 tm_include_list
="${tm_include_list} $f"
11542 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11543 tm_include_list
="${tm_include_list} config/$f"
11550 for f
in $tm_p_file; do
11553 tm_p_file_list
="${tm_p_file_list} $f"
11554 tm_p_include_list
="${tm_p_include_list} $f"
11557 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11558 tm_p_include_list
="${tm_p_include_list} config/$f"
11564 for f
in $xm_file; do
11567 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11568 xm_include_list
="${xm_include_list} $f"
11571 xm_file_list
="${xm_file_list} $f"
11572 xm_include_list
="${xm_include_list} $f"
11575 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11576 xm_include_list
="${xm_include_list} config/$f"
11582 host_xm_include_list
=
11583 for f
in $host_xm_file; do
11586 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11587 host_xm_include_list
="${host_xm_include_list} $f"
11590 host_xm_file_list
="${host_xm_file_list} $f"
11591 host_xm_include_list
="${host_xm_include_list} $f"
11594 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11595 host_xm_include_list
="${host_xm_include_list} config/$f"
11600 build_xm_file_list
=
11601 for f
in $build_xm_file; do
11604 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11605 build_xm_include_list
="${build_xm_include_list} $f"
11607 auto-build.h | auto-host.h
)
11608 build_xm_file_list
="${build_xm_file_list} $f"
11609 build_xm_include_list
="${build_xm_include_list} $f"
11612 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11613 build_xm_include_list
="${build_xm_include_list} config/$f"
11618 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11619 # cross-compiler which does not use the native headers and libraries.
11620 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11623 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11625 if test "x$with_build_sysroot" != x
; then
11626 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11628 # This value is used, even on a native system, because
11629 # CROSS_SYSTEM_HEADER_DIR is just
11630 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11631 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11634 if test x
$host != x
$target
11636 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11638 SYSTEM_HEADER_DIR
=$build_system_header_dir
11639 case "$host","$target" in
11640 # Darwin crosses can use the host system's libraries and headers,
11641 # because of the fat library support. Of course, it must be the
11642 # same version of Darwin on both sides. Allow the user to
11643 # just say --target=foo-darwin without a version number to mean
11644 # "the version on this system".
11645 *-*-darwin*,*-*-darwin*)
11646 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11647 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11648 if test $hostos = $targetos -o $targetos = darwin
; then
11650 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11655 i?
86-*-*,x86_64-
*-* \
11656 | powerpc
*-*-*,powerpc64
*-*-*)
11657 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11662 if test "x$with_headers" = x
; then
11669 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11670 SYSTEM_HEADER_DIR
=$build_system_header_dir
11673 # If this is a cross-compiler that does not
11674 # have its own set of headers then define
11677 # If this is using newlib, without having the headers available now,
11678 # then define inhibit_libc in LIBGCC2_CFLAGS.
11679 # This prevents libgcc2 from containing any code which requires libc
11681 : ${inhibit_libc=false}
11682 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11683 test x
$with_newlib = xyes
; } &&
11684 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11689 # When building gcc with a cross-compiler, we need to adjust things so
11690 # that the generator programs are still built with the native compiler.
11691 # Also, we cannot run fixincludes.
11693 # These are the normal (build=host) settings:
11694 CC_FOR_BUILD
='$(CC)'
11695 CXX_FOR_BUILD
='$(CXX)'
11696 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11697 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11698 BUILD_LDFLAGS
='$(LDFLAGS)'
11699 STMP_FIXINC
=stmp-fixinc
11701 # And these apply if build != host, or we are generating coverage data
11702 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11704 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11705 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11706 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11709 # Expand extra_headers to include complete path.
11710 # This substitutes for lots of t-* files.
11711 extra_headers_list
=
11712 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11713 for file in ${extra_headers} ; do
11714 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11717 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11718 if test x
"$use_gcc_tgmath" = xyes
11719 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11722 # Define collect2 in Makefile.
11723 case $host_can_use_collect2 in
11725 *) collect2
='collect2$(exeext)' ;;
11729 # Add a definition of USE_COLLECT2 if system wants one.
11730 case $use_collect2 in
11731 no
) use_collect2
= ;;
11734 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11735 xm_defines
="${xm_defines} USE_COLLECT2"
11736 case $host_can_use_collect2 in
11738 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11745 cat >>confdefs.h
<<_ACEOF
11746 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11750 # ---------------------------
11751 # Assembler & linker features
11752 # ---------------------------
11754 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11755 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11756 # However when ld-new is first executed from the build tree, libtool will
11757 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11758 # to the build tree. While doing this we need to use the previous-stage
11759 # linker, or we have an infinite loop. The presence of a shell script as
11760 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11761 # the gcc/collect-ld script. So we need to know how libtool works, or
11762 # exec-tool will fail.
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11768 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11773 macro_version
='2.2.7a'
11774 macro_revision
='1.3134'
11788 ltmain
="$ac_aux_dir/ltmain.sh"
11790 # Backslashify metacharacters that are still active within
11791 # double-quoted strings.
11792 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11794 # Same as above, but do not quote variable references.
11795 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11797 # Sed substitution to delay expansion of an escaped shell variable in a
11798 # double_quote_subst'ed string.
11799 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11801 # Sed substitution to delay expansion of an escaped single quote.
11802 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11804 # Sed substitution to avoid accidental globbing in evaled expressions
11805 no_glob_subst
='s/\*/\\\*/g'
11807 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11808 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11809 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11812 $as_echo_n "checking how to print strings... " >&6; }
11813 # Test print first, because it will be a builtin if present.
11814 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11815 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11817 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11820 # Use this function as a fallback that always works.
11821 func_fallback_echo ()
11823 eval 'cat <<_LTECHO_EOF
11827 ECHO='func_fallback_echo
'
11830 # func_echo_all arg...
11831 # Invoke $ECHO with all args, space-separated.
11838 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11839 $as_echo "printf" >&6; } ;;
11840 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11841 $as_echo "print -r" >&6; } ;;
11842 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11843 $as_echo "cat" >&6; } ;;
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11860 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11861 if test "${ac_cv_path_SED+set}" = set; then :
11862 $as_echo_n "(cached) " >&6
11864 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11865 for ac_i in 1 2 3 4 5 6 7; do
11866 ac_script="$ac_script$as_nl$ac_script"
11868 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11869 { ac_script=; unset ac_script;}
11870 if test -z "$SED"; then
11871 ac_path_SED_found=false
11872 # Loop through the user's path and
test for each of PROGNAME-LIST
11873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11874 for as_dir
in $PATH
11877 test -z "$as_dir" && as_dir
=.
11878 for ac_prog
in sed gsed
; do
11879 for ac_exec_ext
in '' $ac_executable_extensions; do
11880 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11881 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11882 # Check for GNU ac_path_SED and select it if it is found.
11883 # Check for GNU $ac_path_SED
11884 case `"$ac_path_SED" --version 2>&1` in
11886 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11889 $as_echo_n 0123456789 >"conftest.in"
11892 cat "conftest.in" "conftest.in" >"conftest.tmp"
11893 mv "conftest.tmp" "conftest.in"
11894 cp "conftest.in" "conftest.nl"
11895 $as_echo '' >> "conftest.nl"
11896 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11897 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11898 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11899 if test $ac_count -gt ${ac_path_SED_max-0}; then
11900 # Best one so far, save it but keep looking for a better one
11901 ac_cv_path_SED
="$ac_path_SED"
11902 ac_path_SED_max
=$ac_count
11904 # 10*(2^10) chars as input seems more than enough
11905 test $ac_count -gt 10 && break
11907 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11910 $ac_path_SED_found && break 3
11915 if test -z "$ac_cv_path_SED"; then
11916 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11919 ac_cv_path_SED
=$SED
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11924 $as_echo "$ac_cv_path_SED" >&6; }
11925 SED
="$ac_cv_path_SED"
11928 test -z "$SED" && SED
=sed
11929 Xsed
="$SED -e 1s/^X//"
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11942 $as_echo_n "checking for fgrep... " >&6; }
11943 if test "${ac_cv_path_FGREP+set}" = set; then :
11944 $as_echo_n "(cached) " >&6
11946 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
11947 then ac_cv_path_FGREP
="$GREP -F"
11949 if test -z "$FGREP"; then
11950 ac_path_FGREP_found
=false
11951 # Loop through the user's path and test for each of PROGNAME-LIST
11952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11953 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11956 test -z "$as_dir" && as_dir
=.
11957 for ac_prog
in fgrep
; do
11958 for ac_exec_ext
in '' $ac_executable_extensions; do
11959 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
11960 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
11961 # Check for GNU ac_path_FGREP and select it if it is found.
11962 # Check for GNU $ac_path_FGREP
11963 case `"$ac_path_FGREP" --version 2>&1` in
11965 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
11968 $as_echo_n 0123456789 >"conftest.in"
11971 cat "conftest.in" "conftest.in" >"conftest.tmp"
11972 mv "conftest.tmp" "conftest.in"
11973 cp "conftest.in" "conftest.nl"
11974 $as_echo 'FGREP' >> "conftest.nl"
11975 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11976 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11977 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11978 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11979 # Best one so far, save it but keep looking for a better one
11980 ac_cv_path_FGREP
="$ac_path_FGREP"
11981 ac_path_FGREP_max
=$ac_count
11983 # 10*(2^10) chars as input seems more than enough
11984 test $ac_count -gt 10 && break
11986 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11989 $ac_path_FGREP_found && break 3
11994 if test -z "$ac_cv_path_FGREP"; then
11995 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11998 ac_cv_path_FGREP
=$FGREP
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12004 $as_echo "$ac_cv_path_FGREP" >&6; }
12005 FGREP
="$ac_cv_path_FGREP"
12008 test -z "$GREP" && GREP
=grep
12028 # Check whether --with-gnu-ld was given.
12029 if test "${with_gnu_ld+set}" = set; then :
12030 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12036 if test "$GCC" = yes; then
12037 # Check if gcc -print-prog-name=ld gives a path.
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12039 $as_echo_n "checking for ld used by $CC... " >&6; }
12042 # gcc leaves a trailing carriage return which upsets mingw
12043 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12045 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12048 # Accept absolute paths.
12050 re_direlt
='/[^/][^/]*/\.\./'
12051 # Canonicalize the pathname of ld
12052 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12053 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12054 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12056 test -z "$LD" && LD
="$ac_prog"
12059 # If it fails, then pretend we aren't using GCC.
12063 # If it is relative, then search for the first ld in PATH.
12064 with_gnu_ld
=unknown
12067 elif test "$with_gnu_ld" = yes; then
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12069 $as_echo_n "checking for GNU ld... " >&6; }
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12072 $as_echo_n "checking for non-GNU ld... " >&6; }
12074 if test "${lt_cv_path_LD+set}" = set; then :
12075 $as_echo_n "(cached) " >&6
12077 if test -z "$LD"; then
12078 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12079 for ac_dir
in $PATH; do
12081 test -z "$ac_dir" && ac_dir
=.
12082 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12083 lt_cv_path_LD
="$ac_dir/$ac_prog"
12084 # Check to see if the program is GNU ld. I'd rather use --version,
12085 # but apparently some variants of GNU ld only accept -v.
12086 # Break only if it was the GNU/non-GNU ld that we prefer.
12087 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12088 *GNU
* |
*'with BFD'*)
12089 test "$with_gnu_ld" != no
&& break
12092 test "$with_gnu_ld" != yes && break
12099 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12103 LD
="$lt_cv_path_LD"
12104 if test -n "$LD"; then
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12106 $as_echo "$LD" >&6; }
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12109 $as_echo "no" >&6; }
12111 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12113 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12114 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12115 $as_echo_n "(cached) " >&6
12117 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12118 case `$LD -v 2>&1 </dev/null` in
12119 *GNU
* |
*'with BFD'*)
12120 lt_cv_prog_gnu_ld
=yes
12123 lt_cv_prog_gnu_ld
=no
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12128 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12129 with_gnu_ld
=$lt_cv_prog_gnu_ld
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12140 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12141 if test "${lt_cv_path_NM+set}" = set; then :
12142 $as_echo_n "(cached) " >&6
12144 if test -n "$NM"; then
12145 # Let the user override the test.
12146 lt_cv_path_NM
="$NM"
12148 lt_nm_to_check
="${ac_tool_prefix}nm"
12149 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12150 lt_nm_to_check
="$lt_nm_to_check nm"
12152 for lt_tmp_nm
in $lt_nm_to_check; do
12153 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12154 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12156 test -z "$ac_dir" && ac_dir
=.
12157 tmp_nm
="$ac_dir/$lt_tmp_nm"
12158 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12159 # Check to see if the nm accepts a BSD-compat flag.
12160 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12161 # nm: unknown option "B" ignored
12162 # Tru64's nm complains that /dev/null is an invalid object file
12163 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12164 */dev
/null
* |
*'Invalid file or object type'*)
12165 lt_cv_path_NM
="$tmp_nm -B"
12169 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12171 lt_cv_path_NM
="$tmp_nm -p"
12175 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12176 continue # so that we can try to find one that supports BSD flags
12185 : ${lt_cv_path_NM=no}
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12189 $as_echo "$lt_cv_path_NM" >&6; }
12190 if test "$lt_cv_path_NM" != "no"; then
12191 NM
="$lt_cv_path_NM"
12193 # Didn't find any BSD compatible name lister, look for dumpbin.
12194 if test -n "$DUMPBIN"; then :
12195 # Let the user override the test.
12197 if test -n "$ac_tool_prefix"; then
12198 for ac_prog
in dumpbin
"link -dump"
12200 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12201 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12203 $as_echo_n "checking for $ac_word... " >&6; }
12204 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12205 $as_echo_n "(cached) " >&6
12207 if test -n "$DUMPBIN"; then
12208 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12211 for as_dir
in $PATH
12214 test -z "$as_dir" && as_dir
=.
12215 for ac_exec_ext
in '' $ac_executable_extensions; do
12216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12217 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12227 DUMPBIN
=$ac_cv_prog_DUMPBIN
12228 if test -n "$DUMPBIN"; then
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12230 $as_echo "$DUMPBIN" >&6; }
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233 $as_echo "no" >&6; }
12237 test -n "$DUMPBIN" && break
12240 if test -z "$DUMPBIN"; then
12241 ac_ct_DUMPBIN
=$DUMPBIN
12242 for ac_prog
in dumpbin
"link -dump"
12244 # Extract the first word of "$ac_prog", so it can be a program name with args.
12245 set dummy
$ac_prog; ac_word
=$2
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12247 $as_echo_n "checking for $ac_word... " >&6; }
12248 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12249 $as_echo_n "(cached) " >&6
12251 if test -n "$ac_ct_DUMPBIN"; then
12252 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12255 for as_dir
in $PATH
12258 test -z "$as_dir" && as_dir
=.
12259 for ac_exec_ext
in '' $ac_executable_extensions; do
12260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12261 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12271 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12272 if test -n "$ac_ct_DUMPBIN"; then
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12274 $as_echo "$ac_ct_DUMPBIN" >&6; }
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12277 $as_echo "no" >&6; }
12281 test -n "$ac_ct_DUMPBIN" && break
12284 if test "x$ac_ct_DUMPBIN" = x
; then
12287 case $cross_compiling:$ac_tool_warned in
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12291 ac_tool_warned
=yes ;;
12293 DUMPBIN
=$ac_ct_DUMPBIN
12297 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12299 DUMPBIN
="$DUMPBIN -symbols"
12307 if test "$DUMPBIN" != ":"; then
12311 test -z "$NM" && NM
=nm
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12319 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12320 if test "${lt_cv_nm_interface+set}" = set; then :
12321 $as_echo_n "(cached) " >&6
12323 lt_cv_nm_interface
="BSD nm"
12324 echo "int some_variable = 0;" > conftest.
$ac_ext
12325 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12326 (eval "$ac_compile" 2>conftest.err
)
12327 cat conftest.err
>&5
12328 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12329 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12330 cat conftest.err
>&5
12331 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12332 cat conftest.out
>&5
12333 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12334 lt_cv_nm_interface
="MS dumpbin"
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12339 $as_echo "$lt_cv_nm_interface" >&6; }
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12342 $as_echo_n "checking whether ln -s works... " >&6; }
12344 if test "$LN_S" = "ln -s"; then
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12346 $as_echo "yes" >&6; }
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12349 $as_echo "no, using $LN_S" >&6; }
12352 # find the maximum length of command line arguments
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12354 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12355 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12356 $as_echo_n "(cached) " >&6
12363 # On DJGPP, this test can blow up pretty badly due to problems in libc
12364 # (any single argument exceeding 2000 bytes causes a buffer overrun
12365 # during glob expansion). Even if it were fixed, the result of this
12366 # check would be larger than it should be.
12367 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12371 # Under GNU Hurd, this test is not required because there is
12372 # no limit to the length of command line arguments.
12373 # Libtool will interpret -1 as no limit whatsoever
12374 lt_cv_sys_max_cmd_len
=-1;
12377 cygwin
* | mingw
* | cegcc
*)
12378 # On Win9x/ME, this test blows up -- it succeeds, but takes
12379 # about 5 minutes as the teststring grows exponentially.
12380 # Worse, since 9x/ME are not pre-emptively multitasking,
12381 # you end up with a "frozen" computer, even though with patience
12382 # the test eventually succeeds (with a max line length of 256k).
12383 # Instead, let's just punt: use the minimum linelength reported by
12384 # all of the supported platforms: 8192 (on NT/2K/XP).
12385 lt_cv_sys_max_cmd_len
=8192;
12389 # On MiNT this can take a long time and run out of memory.
12390 lt_cv_sys_max_cmd_len
=8192;
12394 # On AmigaOS with pdksh, this test takes hours, literally.
12395 # So we just punt and use a minimum line length of 8192.
12396 lt_cv_sys_max_cmd_len
=8192;
12399 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12400 # This has been around since 386BSD, at least. Likely further.
12401 if test -x /sbin
/sysctl
; then
12402 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12403 elif test -x /usr
/sbin
/sysctl
; then
12404 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12406 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12408 # And add a safety zone
12409 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12410 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12414 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12415 lt_cv_sys_max_cmd_len
=196608
12419 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12420 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12421 # nice to cause kernel panics so lets avoid the loop below.
12422 # First set a reasonable default.
12423 lt_cv_sys_max_cmd_len
=16384
12425 if test -x /sbin
/sysconfig
; then
12426 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12427 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12432 lt_cv_sys_max_cmd_len
=102400
12434 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12435 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12436 if test -n "$kargmax"; then
12437 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12439 lt_cv_sys_max_cmd_len
=32768
12443 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12444 if test -n "$lt_cv_sys_max_cmd_len"; then
12445 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12446 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12448 # Make teststring a little bigger before we do anything with it.
12449 # a 1K string should be a reasonable start.
12450 for i
in 1 2 3 4 5 6 7 8 ; do
12451 teststring
=$teststring$teststring
12453 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12454 # If test is not a shell built-in, we'll probably end up computing a
12455 # maximum length that is only half of the actual maximum length, but
12457 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12458 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12459 test $i != 17 # 1/2 MB should be enough
12462 teststring
=$teststring$teststring
12464 # Only check the string length outside the loop.
12465 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12467 # Add a significant safety factor because C++ compilers can tack on
12468 # massive amounts of additional arguments before passing them to the
12469 # linker. It appears as though 1/2 is a usable value.
12470 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12477 if test -n $lt_cv_sys_max_cmd_len ; then
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12479 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12482 $as_echo "none" >&6; }
12484 max_cmd_len
=$lt_cv_sys_max_cmd_len
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12496 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12497 # Try some XSI features
12499 ( _lt_dummy
="a/b/c"
12500 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12502 && eval 'test $(( 1 + 1 )) -eq 2 \
12503 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12506 $as_echo "$xsi_shell" >&6; }
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12510 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12512 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12514 && lt_shell_append=yes
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12516 $as_echo "$lt_shell_append" >&6; }
12519 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12529 # test EBCDIC or ASCII
12530 case `echo X|tr X '\101'` in
12531 A) # ASCII based system
12532 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12533 lt_SP2NL='tr \040 \012'
12534 lt_NL2SP='tr \015\012 \040\040'
12536 *) # EBCDIC based system
12537 lt_SP2NL='tr \100 \n'
12538 lt_NL2SP='tr \r\n \100\100'
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12551 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12552 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12553 $as_echo_n "(cached
) " >&6
12555 lt_cv_ld_reload_flag='-r'
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12558 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12559 reload_flag=$lt_cv_ld_reload_flag
12560 case $reload_flag in
12562 *) reload_flag=" $reload_flag" ;;
12564 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12567 if test "$GCC" = yes; then
12568 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12570 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12583 if test -n "$ac_tool_prefix"; then
12584 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12585 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12587 $as_echo_n "checking
for $ac_word...
" >&6; }
12588 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12589 $as_echo_n "(cached
) " >&6
12591 if test -n "$OBJDUMP"; then
12592 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12595 for as_dir in $PATH
12598 test -z "$as_dir" && as_dir=.
12599 for ac_exec_ext in '' $ac_executable_extensions; do
12600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12601 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12602 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12611 OBJDUMP=$ac_cv_prog_OBJDUMP
12612 if test -n "$OBJDUMP"; then
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12614 $as_echo "$OBJDUMP" >&6; }
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12617 $as_echo "no
" >&6; }
12622 if test -z "$ac_cv_prog_OBJDUMP"; then
12623 ac_ct_OBJDUMP=$OBJDUMP
12624 # Extract the first word of "objdump
", so it can be a program name with args.
12625 set dummy objdump; ac_word=$2
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12627 $as_echo_n "checking
for $ac_word...
" >&6; }
12628 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12629 $as_echo_n "(cached
) " >&6
12631 if test -n "$ac_ct_OBJDUMP"; then
12632 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12635 for as_dir in $PATH
12638 test -z "$as_dir" && as_dir=.
12639 for ac_exec_ext in '' $ac_executable_extensions; do
12640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12641 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12642 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12651 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12652 if test -n "$ac_ct_OBJDUMP"; then
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12654 $as_echo "$ac_ct_OBJDUMP" >&6; }
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12657 $as_echo "no
" >&6; }
12660 if test "x
$ac_ct_OBJDUMP" = x; then
12663 case $cross_compiling:$ac_tool_warned in
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12666 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12667 ac_tool_warned=yes ;;
12669 OBJDUMP=$ac_ct_OBJDUMP
12672 OBJDUMP="$ac_cv_prog_OBJDUMP"
12675 test -z "$OBJDUMP" && OBJDUMP=objdump
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12686 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12687 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12688 $as_echo_n "(cached
) " >&6
12690 lt_cv_file_magic_cmd='$MAGIC_CMD'
12691 lt_cv_file_magic_test_file=
12692 lt_cv_deplibs_check_method='unknown'
12693 # Need to set the preceding variable on all platforms that support
12694 # interlibrary dependencies.
12695 # 'none' -- dependencies not supported.
12696 # `unknown' -- same as none, but documents that we really don't know.
12697 # 'pass_all' -- all dependencies passed with no checks.
12698 # 'test_compile' -- check by making test program.
12699 # 'file_magic [[regex]]' -- check by looking for files in library path
12700 # which responds to the $file_magic_cmd with a given extended regex.
12701 # If you have `file' or equivalent on your system and you're not sure
12702 # whether `pass_all' will *always* work, you probably want this one.
12706 lt_cv_deplibs_check_method=pass_all
12710 lt_cv_deplibs_check_method=pass_all
12714 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12715 lt_cv_file_magic_cmd='/usr/bin/file -L'
12716 lt_cv_file_magic_test_file=/shlib/libc.so
12720 # func_win32_libid is a shell function defined in ltmain.sh
12721 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12722 lt_cv_file_magic_cmd='func_win32_libid'
12726 # Base MSYS/MinGW do not provide the 'file' command needed by
12727 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12728 # unless we find 'file', for example because we are cross-compiling.
12729 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12730 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12731 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12732 lt_cv_file_magic_cmd='func_win32_libid'
12734 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12735 lt_cv_file_magic_cmd='$OBJDUMP -f'
12740 # use the weaker test based on 'objdump'. See mingw*.
12741 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12742 lt_cv_file_magic_cmd='$OBJDUMP -f'
12745 darwin* | rhapsody*)
12746 lt_cv_deplibs_check_method=pass_all
12749 freebsd* | dragonfly*)
12750 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12753 # Not sure whether the presence of OpenBSD here was a mistake.
12754 # Let's accept both of them until this is cleared up.
12755 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12756 lt_cv_file_magic_cmd=/usr/bin/file
12757 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12761 lt_cv_deplibs_check_method=pass_all
12766 lt_cv_deplibs_check_method=pass_all
12770 lt_cv_deplibs_check_method=pass_all
12773 hpux10.20* | hpux11*)
12774 lt_cv_file_magic_cmd=/usr/bin/file
12777 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12778 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12781 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]'
12782 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12785 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12786 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12792 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12793 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12796 irix5* | irix6* | nonstopux*)
12798 *-32|*"-32 ") libmagic=32-bit;;
12799 *-n32|*"-n32 ") libmagic=N32;;
12800 *-64|*"-64 ") libmagic=64-bit;;
12801 *) libmagic=never-match;;
12803 lt_cv_deplibs_check_method=pass_all
12806 # This must be Linux ELF.
12807 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12808 lt_cv_deplibs_check_method=pass_all
12812 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12813 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12815 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12820 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12821 lt_cv_file_magic_cmd=/usr/bin/file
12822 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12826 lt_cv_deplibs_check_method=pass_all
12830 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12831 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12833 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12837 osf3* | osf4* | osf5*)
12838 lt_cv_deplibs_check_method=pass_all
12842 lt_cv_deplibs_check_method=pass_all
12846 lt_cv_deplibs_check_method=pass_all
12849 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12850 lt_cv_deplibs_check_method=pass_all
12854 case $host_vendor in
12856 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]'
12857 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12860 lt_cv_deplibs_check_method=pass_all
12863 lt_cv_file_magic_cmd='/bin/file'
12864 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12867 lt_cv_file_magic_cmd='/bin/file'
12868 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12869 lt_cv_file_magic_test_file=/lib/libc.so
12872 lt_cv_deplibs_check_method=pass_all
12875 lt_cv_deplibs_check_method=pass_all
12881 lt_cv_deplibs_check_method=pass_all
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12887 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12888 file_magic_cmd=$lt_cv_file_magic_cmd
12889 deplibs_check_method=$lt_cv_deplibs_check_method
12890 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12903 if test -n "$ac_tool_prefix"; then
12904 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12905 set dummy ${ac_tool_prefix}ar; ac_word=$2
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12907 $as_echo_n "checking
for $ac_word...
" >&6; }
12908 if test "${ac_cv_prog_AR+set}" = set; then :
12909 $as_echo_n "(cached
) " >&6
12911 if test -n "$AR"; then
12912 ac_cv_prog_AR="$AR" # Let the user override the test.
12914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915 for as_dir in $PATH
12918 test -z "$as_dir" && as_dir=.
12919 for ac_exec_ext in '' $ac_executable_extensions; do
12920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12921 ac_cv_prog_AR="${ac_tool_prefix}ar"
12922 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12932 if test -n "$AR"; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12934 $as_echo "$AR" >&6; }
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12937 $as_echo "no
" >&6; }
12942 if test -z "$ac_cv_prog_AR"; then
12944 # Extract the first word of "ar", so it can be a program name with args.
12945 set dummy ar; ac_word=$2
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12947 $as_echo_n "checking
for $ac_word...
" >&6; }
12948 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12949 $as_echo_n "(cached
) " >&6
12951 if test -n "$ac_ct_AR"; then
12952 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12955 for as_dir in $PATH
12958 test -z "$as_dir" && as_dir=.
12959 for ac_exec_ext in '' $ac_executable_extensions; do
12960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12961 ac_cv_prog_ac_ct_AR="ar"
12962 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12971 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12972 if test -n "$ac_ct_AR"; then
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
12974 $as_echo "$ac_ct_AR" >&6; }
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12977 $as_echo "no
" >&6; }
12980 if test "x
$ac_ct_AR" = x; then
12983 case $cross_compiling:$ac_tool_warned in
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12986 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12987 ac_tool_warned=yes ;;
12992 AR="$ac_cv_prog_AR"
12995 test -z "$AR" && AR=ar
12996 test -z "$AR_FLAGS" && AR_FLAGS=cru
13008 if test -n "$ac_tool_prefix"; then
13009 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13010 set dummy ${ac_tool_prefix}strip; ac_word=$2
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13012 $as_echo_n "checking
for $ac_word...
" >&6; }
13013 if test "${ac_cv_prog_STRIP+set}" = set; then :
13014 $as_echo_n "(cached
) " >&6
13016 if test -n "$STRIP"; then
13017 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13020 for as_dir in $PATH
13023 test -z "$as_dir" && as_dir=.
13024 for ac_exec_ext in '' $ac_executable_extensions; do
13025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13026 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13027 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13036 STRIP=$ac_cv_prog_STRIP
13037 if test -n "$STRIP"; then
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13039 $as_echo "$STRIP" >&6; }
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13042 $as_echo "no
" >&6; }
13047 if test -z "$ac_cv_prog_STRIP"; then
13049 # Extract the first word of "strip
", so it can be a program name with args.
13050 set dummy strip; ac_word=$2
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13052 $as_echo_n "checking
for $ac_word...
" >&6; }
13053 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13054 $as_echo_n "(cached
) " >&6
13056 if test -n "$ac_ct_STRIP"; then
13057 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13060 for as_dir in $PATH
13063 test -z "$as_dir" && as_dir=.
13064 for ac_exec_ext in '' $ac_executable_extensions; do
13065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13066 ac_cv_prog_ac_ct_STRIP="strip
"
13067 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13076 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13077 if test -n "$ac_ct_STRIP"; then
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13079 $as_echo "$ac_ct_STRIP" >&6; }
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13082 $as_echo "no
" >&6; }
13085 if test "x
$ac_ct_STRIP" = x; then
13088 case $cross_compiling:$ac_tool_warned in
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13091 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13092 ac_tool_warned=yes ;;
13097 STRIP="$ac_cv_prog_STRIP"
13100 test -z "$STRIP" && STRIP=:
13107 if test -n "$ac_tool_prefix"; then
13108 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13109 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13111 $as_echo_n "checking
for $ac_word...
" >&6; }
13112 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13113 $as_echo_n "(cached
) " >&6
13115 if test -n "$RANLIB"; then
13116 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119 for as_dir in $PATH
13122 test -z "$as_dir" && as_dir=.
13123 for ac_exec_ext in '' $ac_executable_extensions; do
13124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13125 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13126 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13135 RANLIB=$ac_cv_prog_RANLIB
13136 if test -n "$RANLIB"; then
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13138 $as_echo "$RANLIB" >&6; }
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13141 $as_echo "no
" >&6; }
13146 if test -z "$ac_cv_prog_RANLIB"; then
13147 ac_ct_RANLIB=$RANLIB
13148 # Extract the first word of "ranlib
", so it can be a program name with args.
13149 set dummy ranlib; ac_word=$2
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13151 $as_echo_n "checking
for $ac_word...
" >&6; }
13152 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13153 $as_echo_n "(cached
) " >&6
13155 if test -n "$ac_ct_RANLIB"; then
13156 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13159 for as_dir in $PATH
13162 test -z "$as_dir" && as_dir=.
13163 for ac_exec_ext in '' $ac_executable_extensions; do
13164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13165 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13166 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13175 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13176 if test -n "$ac_ct_RANLIB"; then
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13178 $as_echo "$ac_ct_RANLIB" >&6; }
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13181 $as_echo "no
" >&6; }
13184 if test "x
$ac_ct_RANLIB" = x; then
13187 case $cross_compiling:$ac_tool_warned in
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13190 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13191 ac_tool_warned=yes ;;
13193 RANLIB=$ac_ct_RANLIB
13196 RANLIB="$ac_cv_prog_RANLIB"
13199 test -z "$RANLIB" && RANLIB=:
13206 # Determine commands to create old-style static archives.
13207 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13208 old_postinstall_cmds='chmod 644 $oldlib'
13209 old_postuninstall_cmds=
13211 if test -n "$RANLIB"; then
13214 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13217 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13220 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13225 lock_old_archive_extraction=yes ;;
13227 lock_old_archive_extraction=no ;;
13268 # If no C compiler was specified, use CC.
13271 # If no C compiler flags were specified, use CFLAGS.
13272 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13274 # Allow CC to be a program name with arguments.
13278 # Check for command to grab the raw symbol name followed by C symbol from nm.
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13280 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13281 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13282 $as_echo_n "(cached
) " >&6
13285 # These are sane defaults that work on at least a few old systems.
13286 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13288 # Character class describing NM global symbol codes.
13289 symcode='[BCDEGRST]'
13291 # Regexp to match symbols that can be accessed directly from C.
13292 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13294 # Define system-specific variables.
13299 cygwin* | mingw* | pw32* | cegcc*)
13300 symcode='[ABCDGISTW]'
13303 if test "$host_cpu" = ia64; then
13304 symcode='[ABCDEGRST]'
13307 irix* | nonstopux*)
13308 symcode='[BCDEGRST]'
13311 symcode='[BCDEGQRST]'
13322 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13330 # If we're using GNU nm, then use its standard symbol codes.
13331 case `$NM -V 2>&1` in
13332 *GNU* | *'with BFD'*)
13333 symcode='[ABCDGIRSTW]' ;;
13336 # Transform an extracted symbol line into a proper C declaration.
13337 # Some systems (esp. on ia64) link data and code symbols differently,
13338 # so use this general approach.
13339 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13341 # Transform an extracted symbol line into symbol name and symbol address
13342 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13343 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'"
13345 # Handle CRLF in mingw tool chain
13349 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13353 # Try without a prefix underscore, then with it.
13354 for ac_symprfx in "" "_
"; do
13356 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13357 symxfrm="\\1 $ac_symprfx\\2 \\2"
13359 # Write the raw and C identifiers.
13360 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13361 # Fake it for dumpbin and say T for any non-static function
13362 # and D for any global variable.
13363 # Also find C++ and __fastcall symbols from MSVC++,
13364 # which start with @ or ?.
13365 lt_cv_sys_global_symbol_pipe="$AWK '"\
13366 " {last_section=section; section=\$ 3};"\
13367 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13368 " \$ 0!~/External *\|/{next};"\
13369 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13370 " {if(hide[section]) next};"\
13371 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13372 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13373 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13374 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13375 " ' prfx
=^
$ac_symprfx"
13377 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13380 # Check to see that the pipe works correctly.
13384 cat > conftest.$ac_ext <<_LT_EOF
13389 void nm_test_func(void);
13390 void nm_test_func(void){}
13394 int main(){nm_test_var='a';nm_test_func();return(0);}
13397 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13398 (eval $ac_compile) 2>&5
13400 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13401 test $ac_status = 0; }; then
13402 # Now try to grab the symbols.
13404 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13405 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13407 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13408 test $ac_status = 0; } && test -s "$nlist"; then
13409 # Try sorting and uniquifying the output.
13410 if sort "$nlist" | uniq > "$nlist"T; then
13411 mv -f "$nlist"T "$nlist"
13416 # Make sure that we snagged all the symbols we need.
13417 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13418 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13419 cat <<_LT_EOF > conftest.$ac_ext
13425 # Now generate the symbol file.
13426 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13428 cat <<_LT_EOF >> conftest.$ac_ext
13430 /* The mapping between symbol names and symbols. */
13435 lt__PROGRAM__LTX_preloaded_symbols[] =
13437 { "@PROGRAM@
", (void *) 0 },
13439 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13440 cat <<\_LT_EOF >> conftest.$ac_ext
13444 /* This works around a problem in FreeBSD linker */
13445 #ifdef FREEBSD_WORKAROUND
13446 static const void *lt_preloaded_setup() {
13447 return lt__PROGRAM__LTX_preloaded_symbols;
13455 # Now try linking the two files.
13456 mv conftest.$ac_objext conftstm.$ac_objext
13457 lt_save_LIBS="$LIBS"
13458 lt_save_CFLAGS="$CFLAGS"
13459 LIBS="conftstm.
$ac_objext"
13460 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13461 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13462 (eval $ac_link) 2>&5
13464 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13465 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13468 LIBS="$lt_save_LIBS"
13469 CFLAGS="$lt_save_CFLAGS"
13471 echo "cannot
find nm_test_func
in $nlist" >&5
13474 echo "cannot
find nm_test_var
in $nlist" >&5
13477 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13480 echo "$progname: failed program was
:" >&5
13481 cat conftest.$ac_ext >&5
13483 rm -rf conftest* conftst*
13485 # Do not use the global_symbol_pipe unless it works.
13486 if test "$pipe_works" = yes; then
13489 lt_cv_sys_global_symbol_pipe=
13495 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13496 lt_cv_sys_global_symbol_to_cdecl=
13498 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13500 $as_echo "failed
" >&6; }
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13503 $as_echo "ok
" >&6; }
13527 # Check whether --enable-libtool-lock was given.
13528 if test "${enable_libtool_lock+set}" = set; then :
13529 enableval=$enable_libtool_lock;
13532 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13534 # Some flags need to be propagated to the compiler or linker for good
13538 # Find out which ABI we are using.
13539 echo 'int i;' > conftest.$ac_ext
13540 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13541 (eval $ac_compile) 2>&5
13543 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13544 test $ac_status = 0; }; then
13545 case `/usr/bin/file conftest.$ac_objext` in
13547 HPUX_IA64_MODE="32"
13550 HPUX_IA64_MODE="64"
13557 # Find out which ABI we are using.
13558 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13559 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13560 (eval $ac_compile) 2>&5
13562 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13563 test $ac_status = 0; }; then
13564 if test "$lt_cv_prog_gnu_ld" = yes; then
13565 case `/usr/bin/file conftest.$ac_objext` in
13567 LD="${LD-ld} -melf32bsmip"
13570 LD="${LD-ld} -melf32bmipn32"
13573 LD="${LD-ld} -melf64bmip"
13577 case `/usr/bin/file conftest.$ac_objext` in
13593 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13594 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13595 # Find out which ABI we are using.
13596 echo 'int i;' > conftest.$ac_ext
13597 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13598 (eval $ac_compile) 2>&5
13600 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13601 test $ac_status = 0; }; then
13602 case `/usr/bin/file conftest.o` in
13605 x86_64-*kfreebsd*-gnu)
13606 LD="${LD-ld} -m elf_i386_fbsd
"
13609 case `/usr/bin/file conftest.o` in
13611 LD="${LD-ld} -m elf32_x86_64
"
13614 LD="${LD-ld} -m elf_i386
"
13618 ppc64-*linux*|powerpc64-*linux*)
13619 LD="${LD-ld} -m elf32ppclinux
"
13622 LD="${LD-ld} -m elf_s390
"
13625 LD="${LD-ld} -m elf32_sparc
"
13631 x86_64-*kfreebsd*-gnu)
13632 LD="${LD-ld} -m elf_x86_64_fbsd
"
13635 LD="${LD-ld} -m elf_x86_64
"
13637 ppc*-*linux*|powerpc*-*linux*)
13638 LD="${LD-ld} -m elf64ppc
"
13640 s390*-*linux*|s390*-*tpf*)
13641 LD="${LD-ld} -m elf64_s390
"
13644 LD="${LD-ld} -m elf64_sparc
"
13654 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13655 SAVE_CFLAGS="$CFLAGS"
13656 CFLAGS="$CFLAGS -belf"
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13658 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13659 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13660 $as_echo_n "(cached
) " >&6
13663 ac_cpp='$CPP $CPPFLAGS'
13664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669 /* end confdefs.h. */
13679 if ac_fn_c_try_link "$LINENO"; then :
13680 lt_cv_cc_needs_belf=yes
13682 lt_cv_cc_needs_belf=no
13684 rm -f core conftest.err conftest.$ac_objext \
13685 conftest$ac_exeext conftest.$ac_ext
13687 ac_cpp='$CPP $CPPFLAGS'
13688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13694 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13695 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13696 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13697 CFLAGS="$SAVE_CFLAGS"
13701 # Find out which ABI we are using.
13702 echo 'int i;' > conftest.$ac_ext
13703 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13704 (eval $ac_compile) 2>&5
13706 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13707 test $ac_status = 0; }; then
13708 case `/usr/bin/file conftest.o` in
13710 case $lt_cv_prog_gnu_ld in
13711 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13713 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13725 need_locks="$enable_libtool_lock"
13729 rhapsody* | darwin*)
13730 if test -n "$ac_tool_prefix"; then
13731 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13732 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13734 $as_echo_n "checking
for $ac_word...
" >&6; }
13735 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13736 $as_echo_n "(cached
) " >&6
13738 if test -n "$DSYMUTIL"; then
13739 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13742 for as_dir in $PATH
13745 test -z "$as_dir" && as_dir=.
13746 for ac_exec_ext in '' $ac_executable_extensions; do
13747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13748 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13749 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13758 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13759 if test -n "$DSYMUTIL"; then
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13761 $as_echo "$DSYMUTIL" >&6; }
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13764 $as_echo "no
" >&6; }
13769 if test -z "$ac_cv_prog_DSYMUTIL"; then
13770 ac_ct_DSYMUTIL=$DSYMUTIL
13771 # Extract the first word of "dsymutil
", so it can be a program name with args.
13772 set dummy dsymutil; ac_word=$2
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13774 $as_echo_n "checking
for $ac_word...
" >&6; }
13775 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13776 $as_echo_n "(cached
) " >&6
13778 if test -n "$ac_ct_DSYMUTIL"; then
13779 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13782 for as_dir in $PATH
13785 test -z "$as_dir" && as_dir=.
13786 for ac_exec_ext in '' $ac_executable_extensions; do
13787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13788 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13789 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13798 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13799 if test -n "$ac_ct_DSYMUTIL"; then
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13801 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13804 $as_echo "no
" >&6; }
13807 if test "x
$ac_ct_DSYMUTIL" = x; then
13810 case $cross_compiling:$ac_tool_warned in
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13813 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13814 ac_tool_warned=yes ;;
13816 DSYMUTIL=$ac_ct_DSYMUTIL
13819 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13822 if test -n "$ac_tool_prefix"; then
13823 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13824 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13826 $as_echo_n "checking
for $ac_word...
" >&6; }
13827 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13828 $as_echo_n "(cached
) " >&6
13830 if test -n "$NMEDIT"; then
13831 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13834 for as_dir in $PATH
13837 test -z "$as_dir" && as_dir=.
13838 for ac_exec_ext in '' $ac_executable_extensions; do
13839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13840 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13841 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13850 NMEDIT=$ac_cv_prog_NMEDIT
13851 if test -n "$NMEDIT"; then
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13853 $as_echo "$NMEDIT" >&6; }
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13856 $as_echo "no
" >&6; }
13861 if test -z "$ac_cv_prog_NMEDIT"; then
13862 ac_ct_NMEDIT=$NMEDIT
13863 # Extract the first word of "nmedit
", so it can be a program name with args.
13864 set dummy nmedit; ac_word=$2
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13866 $as_echo_n "checking
for $ac_word...
" >&6; }
13867 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13868 $as_echo_n "(cached
) " >&6
13870 if test -n "$ac_ct_NMEDIT"; then
13871 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13874 for as_dir in $PATH
13877 test -z "$as_dir" && as_dir=.
13878 for ac_exec_ext in '' $ac_executable_extensions; do
13879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13880 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13881 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13890 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13891 if test -n "$ac_ct_NMEDIT"; then
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13893 $as_echo "$ac_ct_NMEDIT" >&6; }
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13896 $as_echo "no
" >&6; }
13899 if test "x
$ac_ct_NMEDIT" = x; then
13902 case $cross_compiling:$ac_tool_warned in
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13905 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13906 ac_tool_warned=yes ;;
13908 NMEDIT=$ac_ct_NMEDIT
13911 NMEDIT="$ac_cv_prog_NMEDIT"
13914 if test -n "$ac_tool_prefix"; then
13915 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13916 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13918 $as_echo_n "checking
for $ac_word...
" >&6; }
13919 if test "${ac_cv_prog_LIPO+set}" = set; then :
13920 $as_echo_n "(cached
) " >&6
13922 if test -n "$LIPO"; then
13923 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13926 for as_dir in $PATH
13929 test -z "$as_dir" && as_dir=.
13930 for ac_exec_ext in '' $ac_executable_extensions; do
13931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13932 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13933 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13942 LIPO=$ac_cv_prog_LIPO
13943 if test -n "$LIPO"; then
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
13945 $as_echo "$LIPO" >&6; }
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13948 $as_echo "no
" >&6; }
13953 if test -z "$ac_cv_prog_LIPO"; then
13955 # Extract the first word of "lipo
", so it can be a program name with args.
13956 set dummy lipo; ac_word=$2
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13958 $as_echo_n "checking
for $ac_word...
" >&6; }
13959 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13960 $as_echo_n "(cached
) " >&6
13962 if test -n "$ac_ct_LIPO"; then
13963 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13966 for as_dir in $PATH
13969 test -z "$as_dir" && as_dir=.
13970 for ac_exec_ext in '' $ac_executable_extensions; do
13971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13972 ac_cv_prog_ac_ct_LIPO="lipo
"
13973 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13982 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13983 if test -n "$ac_ct_LIPO"; then
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
13985 $as_echo "$ac_ct_LIPO" >&6; }
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13988 $as_echo "no
" >&6; }
13991 if test "x
$ac_ct_LIPO" = x; then
13994 case $cross_compiling:$ac_tool_warned in
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13997 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13998 ac_tool_warned=yes ;;
14003 LIPO="$ac_cv_prog_LIPO"
14006 if test -n "$ac_tool_prefix"; then
14007 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14008 set dummy ${ac_tool_prefix}otool; ac_word=$2
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14010 $as_echo_n "checking
for $ac_word...
" >&6; }
14011 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14012 $as_echo_n "(cached
) " >&6
14014 if test -n "$OTOOL"; then
14015 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14018 for as_dir in $PATH
14021 test -z "$as_dir" && as_dir=.
14022 for ac_exec_ext in '' $ac_executable_extensions; do
14023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14024 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14025 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14034 OTOOL=$ac_cv_prog_OTOOL
14035 if test -n "$OTOOL"; then
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14037 $as_echo "$OTOOL" >&6; }
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14040 $as_echo "no
" >&6; }
14045 if test -z "$ac_cv_prog_OTOOL"; then
14047 # Extract the first word of "otool
", so it can be a program name with args.
14048 set dummy otool; ac_word=$2
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14050 $as_echo_n "checking
for $ac_word...
" >&6; }
14051 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14052 $as_echo_n "(cached
) " >&6
14054 if test -n "$ac_ct_OTOOL"; then
14055 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14058 for as_dir in $PATH
14061 test -z "$as_dir" && as_dir=.
14062 for ac_exec_ext in '' $ac_executable_extensions; do
14063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14064 ac_cv_prog_ac_ct_OTOOL="otool
"
14065 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14074 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14075 if test -n "$ac_ct_OTOOL"; then
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14077 $as_echo "$ac_ct_OTOOL" >&6; }
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14080 $as_echo "no
" >&6; }
14083 if test "x
$ac_ct_OTOOL" = x; then
14086 case $cross_compiling:$ac_tool_warned in
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14089 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14090 ac_tool_warned=yes ;;
14095 OTOOL="$ac_cv_prog_OTOOL"
14098 if test -n "$ac_tool_prefix"; then
14099 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14100 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14102 $as_echo_n "checking
for $ac_word...
" >&6; }
14103 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14104 $as_echo_n "(cached
) " >&6
14106 if test -n "$OTOOL64"; then
14107 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14110 for as_dir in $PATH
14113 test -z "$as_dir" && as_dir=.
14114 for ac_exec_ext in '' $ac_executable_extensions; do
14115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14116 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14117 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14126 OTOOL64=$ac_cv_prog_OTOOL64
14127 if test -n "$OTOOL64"; then
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14129 $as_echo "$OTOOL64" >&6; }
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14132 $as_echo "no
" >&6; }
14137 if test -z "$ac_cv_prog_OTOOL64"; then
14138 ac_ct_OTOOL64=$OTOOL64
14139 # Extract the first word of "otool64
", so it can be a program name with args.
14140 set dummy otool64; ac_word=$2
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14142 $as_echo_n "checking
for $ac_word...
" >&6; }
14143 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14144 $as_echo_n "(cached
) " >&6
14146 if test -n "$ac_ct_OTOOL64"; then
14147 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14150 for as_dir in $PATH
14153 test -z "$as_dir" && as_dir=.
14154 for ac_exec_ext in '' $ac_executable_extensions; do
14155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14156 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14157 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14166 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14167 if test -n "$ac_ct_OTOOL64"; then
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14169 $as_echo "$ac_ct_OTOOL64" >&6; }
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14172 $as_echo "no
" >&6; }
14175 if test "x
$ac_ct_OTOOL64" = x; then
14178 case $cross_compiling:$ac_tool_warned in
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14181 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14182 ac_tool_warned=yes ;;
14184 OTOOL64=$ac_ct_OTOOL64
14187 OTOOL64="$ac_cv_prog_OTOOL64"
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14217 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14218 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14219 $as_echo_n "(cached
) " >&6
14221 lt_cv_apple_cc_single_mod=no
14222 if test -z "${LT_MULTI_MODULE}"; then
14223 # By default we will add the -single_module flag. You can override
14224 # by either setting the environment variable LT_MULTI_MODULE
14225 # non-empty at configure time, or by adding -multi_module to the
14227 rm -rf libconftest.dylib*
14228 echo "int foo
(void
){return 1;}" > conftest.c
14229 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14230 -dynamiclib -Wl,-single_module conftest.c
" >&5
14231 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14232 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14234 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14235 lt_cv_apple_cc_single_mod=yes
14237 cat conftest.err >&5
14239 rm -rf libconftest.dylib*
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14244 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14246 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14247 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14248 $as_echo_n "(cached
) " >&6
14250 lt_cv_ld_exported_symbols_list=no
14251 save_LDFLAGS=$LDFLAGS
14252 echo "_main
" > conftest.sym
14253 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h. */
14265 if ac_fn_c_try_link "$LINENO"; then :
14266 lt_cv_ld_exported_symbols_list=yes
14268 lt_cv_ld_exported_symbols_list=no
14270 rm -f core conftest.err conftest.$ac_objext \
14271 conftest$ac_exeext conftest.$ac_ext
14272 LDFLAGS="$save_LDFLAGS"
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14276 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14278 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14279 if test "${lt_cv_ld_force_load+set}" = set; then :
14280 $as_echo_n "(cached
) " >&6
14282 lt_cv_ld_force_load=no
14283 cat > conftest.c << _LT_EOF
14284 int forced_loaded() { return 2;}
14286 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14287 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14288 echo "$AR cru libconftest.a conftest.o
" >&5
14289 $AR cru libconftest.a conftest.o 2>&5
14290 cat > conftest.c << _LT_EOF
14291 int main() { return 0;}
14293 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14294 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14296 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14297 lt_cv_ld_force_load=yes
14299 cat conftest.err >&5
14301 rm -f conftest.err libconftest.a conftest conftest.c
14302 rm -rf conftest.dSYM
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14306 $as_echo "$lt_cv_ld_force_load" >&6; }
14308 rhapsody* | darwin1.[012])
14309 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14311 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14312 darwin*) # darwin 5.x on
14313 # if running on 10.5 or later, the deployment target defaults
14314 # to the OS version, if on x86, and 10.4, the deployment
14315 # target defaults to 10.4. Don't you love it?
14316 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14317 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14318 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14320 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14322 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14326 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14327 _lt_dar_single_mod='$single_module'
14329 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14330 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14332 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14334 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14335 _lt_dsymutil='~$DSYMUTIL $lib || :'
14342 for ac_header in dlfcn.h
14344 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14345 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14346 cat >>confdefs.h <<_ACEOF
14347 #define HAVE_DLFCN_H 1
14364 enable_win32_dll=no
14367 # Check whether --enable-shared was given.
14368 if test "${enable_shared+set}" = set; then :
14369 enableval=$enable_shared; p=${PACKAGE-default}
14371 yes) enable_shared=yes ;;
14372 no) enable_shared=no ;;
14375 # Look at the argument we got. We use all the common list separators.
14376 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14377 for pkg in $enableval; do
14379 if test "X
$pkg" = "X
$p"; then
14398 # Check whether --enable-static was given.
14399 if test "${enable_static+set}" = set; then :
14400 enableval=$enable_static; p=${PACKAGE-default}
14402 yes) enable_static=yes ;;
14403 no) enable_static=no ;;
14406 # Look at the argument we got. We use all the common list separators.
14407 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14408 for pkg in $enableval; do
14410 if test "X
$pkg" = "X
$p"; then
14430 # Check whether --with-pic was given.
14431 if test "${with_pic+set}" = set; then :
14432 withval=$with_pic; pic_mode="$withval"
14438 test -z "$pic_mode" && pic_mode=default
14446 # Check whether --enable-fast-install was given.
14447 if test "${enable_fast_install+set}" = set; then :
14448 enableval=$enable_fast_install; p=${PACKAGE-default}
14450 yes) enable_fast_install=yes ;;
14451 no) enable_fast_install=no ;;
14453 enable_fast_install=no
14454 # Look at the argument we got. We use all the common list separators.
14455 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14456 for pkg in $enableval; do
14458 if test "X
$pkg" = "X
$p"; then
14459 enable_fast_install=yes
14466 enable_fast_install=yes
14479 # This can be used to rebuild libtool when needed
14480 LIBTOOL_DEPS="$ltmain"
14482 # Always use our own libtool.
14483 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14510 test -z "$LN_S" && LN_S="ln -s"
14525 if test -n "${ZSH_VERSION+set}" ; then
14526 setopt NO_GLOB_SUBST
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14530 $as_echo_n "checking
for objdir...
" >&6; }
14531 if test "${lt_cv_objdir+set}" = set; then :
14532 $as_echo_n "(cached
) " >&6
14534 rm -f .libs 2>/dev/null
14535 mkdir .libs 2>/dev/null
14536 if test -d .libs; then
14539 # MS-DOS does not allow filenames that begin with a dot.
14542 rmdir .libs 2>/dev/null
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14545 $as_echo "$lt_cv_objdir" >&6; }
14546 objdir=$lt_cv_objdir
14552 cat >>confdefs.h <<_ACEOF
14553 #define LT_OBJDIR "$lt_cv_objdir/"
14561 # AIX sometimes has problems with the GCC collect2 program. For some
14562 # reason, if we set the COLLECT_NAMES environment variable, the problems
14563 # vanish in a puff of smoke.
14564 if test "X
${COLLECT_NAMES+set}" != Xset; then
14566 export COLLECT_NAMES
14571 # Global variables:
14573 can_build_shared=yes
14575 # All known linkers require a `.a' archive for static linking (except MSVC,
14576 # which needs '.lib').
14579 with_gnu_ld="$lt_cv_prog_gnu_ld"
14582 old_CFLAGS="$CFLAGS"
14584 # Set sane defaults for various variables
14585 test -z "$CC" && CC=cc
14586 test -z "$LTCC" && LTCC=$CC
14587 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14588 test -z "$LD" && LD=ld
14589 test -z "$ac_objext" && ac_objext=o
14591 for cc_temp in $compiler""; do
14593 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14594 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14599 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14602 # Only perform the check for file, if the check method requires it
14603 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14604 case $deplibs_check_method in
14606 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14608 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14609 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14610 $as_echo_n "(cached
) " >&6
14614 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14617 lt_save_MAGIC_CMD="$MAGIC_CMD"
14618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14619 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14620 for ac_dir in $ac_dummy; do
14622 test -z "$ac_dir" && ac_dir=.
14623 if test -f $ac_dir/${ac_tool_prefix}file; then
14624 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14625 if test -n "$file_magic_test_file"; then
14626 case $deplibs_check_method in
14628 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14630 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14631 $EGREP "$file_magic_regex" > /dev/null; then
14636 *** Warning: the command libtool uses to detect shared libraries,
14637 *** $file_magic_cmd, produces output that libtool cannot recognize.
14638 *** The result is that libtool may fail to recognize shared libraries
14639 *** as such. This will affect the creation of libtool libraries that
14640 *** depend on shared libraries, but programs linked with such libtool
14641 *** libraries will work regardless of this problem. Nevertheless, you
14642 *** may want to report the problem to your system manager and/or to
14643 *** bug-libtool@gnu.org
14653 MAGIC_CMD="$lt_save_MAGIC_CMD"
14658 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14659 if test -n "$MAGIC_CMD"; then
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14661 $as_echo "$MAGIC_CMD" >&6; }
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14664 $as_echo "no
" >&6; }
14671 if test -z "$lt_cv_path_MAGIC_CMD"; then
14672 if test -n "$ac_tool_prefix"; then
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14674 $as_echo_n "checking
for file...
" >&6; }
14675 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14676 $as_echo_n "(cached
) " >&6
14680 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14683 lt_save_MAGIC_CMD="$MAGIC_CMD"
14684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14685 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14686 for ac_dir in $ac_dummy; do
14688 test -z "$ac_dir" && ac_dir=.
14689 if test -f $ac_dir/file; then
14690 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14691 if test -n "$file_magic_test_file"; then
14692 case $deplibs_check_method in
14694 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14695 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14696 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14697 $EGREP "$file_magic_regex" > /dev/null; then
14702 *** Warning: the command libtool uses to detect shared libraries,
14703 *** $file_magic_cmd, produces output that libtool cannot recognize.
14704 *** The result is that libtool may fail to recognize shared libraries
14705 *** as such. This will affect the creation of libtool libraries that
14706 *** depend on shared libraries, but programs linked with such libtool
14707 *** libraries will work regardless of this problem. Nevertheless, you
14708 *** may want to report the problem to your system manager and/or to
14709 *** bug-libtool@gnu.org
14719 MAGIC_CMD="$lt_save_MAGIC_CMD"
14724 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14725 if test -n "$MAGIC_CMD"; then
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14727 $as_echo "$MAGIC_CMD" >&6; }
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14730 $as_echo "no
" >&6; }
14743 # Use C for the default configuration in the libtool script
14747 ac_cpp='$CPP $CPPFLAGS'
14748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14753 # Source file extension for C test sources.
14756 # Object file extension for compiled C test sources.
14760 # Code to be used in simple compile tests
14761 lt_simple_compile_test_code="int some_variable
= 0;"
14763 # Code to be used in simple link tests
14764 lt_simple_link_test_code='int main(){return(0);}'
14772 # If no C compiler was specified, use CC.
14775 # If no C compiler flags were specified, use CFLAGS.
14776 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14778 # Allow CC to be a program name with arguments.
14781 # Save the default compiler, since it gets overwritten when the other
14782 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14783 compiler_DEFAULT=$CC
14785 # save warnings/boilerplate of simple test code
14786 ac_outfile=conftest.$ac_objext
14787 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14788 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14789 _lt_compiler_boilerplate=`cat conftest.err`
14792 ac_outfile=conftest.$ac_objext
14793 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14794 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14795 _lt_linker_boilerplate=`cat conftest.err`
14800 ## There is no encapsulation within the following macros, do not change
14801 ## the running order or otherwise move them around unless you know exactly
14802 ## what you are doing...
14803 if test -n "$compiler"; then
14805 lt_prog_compiler_no_builtin_flag=
14807 if test "$GCC" = yes; then
14808 case $cc_basename in
14810 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14812 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14816 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14817 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14818 $as_echo_n "(cached
) " >&6
14820 lt_cv_prog_compiler_rtti_exceptions=no
14821 ac_outfile=conftest.$ac_objext
14822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14823 lt_compiler_flag="-fno-rtti -fno-exceptions"
14824 # Insert the option either (1) after the last *FLAGS variable, or
14825 # (2) before a word containing "conftest.
", or (3) at the end.
14826 # Note that $ac_compile itself does not contain backslashes and begins
14827 # with a dollar sign (not a hyphen), so the echo should work correctly.
14828 # The option is referenced via a variable to avoid confusing sed.
14829 lt_compile=`echo "$ac_compile" | $SED \
14830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14832 -e 's:$: $lt_compiler_flag:'`
14833 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14834 (eval "$lt_compile" 2>conftest.err)
14836 cat conftest.err >&5
14837 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14838 if (exit $ac_status) && test -s "$ac_outfile"; then
14839 # The compiler can only warn and ignore the option if not recognized
14840 # So say no if there are warnings other than the usual output.
14841 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14843 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14844 lt_cv_prog_compiler_rtti_exceptions=yes
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14851 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14853 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14854 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14866 lt_prog_compiler_wl=
14867 lt_prog_compiler_pic=
14868 lt_prog_compiler_static=
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14871 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14873 if test "$GCC" = yes; then
14874 lt_prog_compiler_wl='-Wl,'
14875 lt_prog_compiler_static='-static'
14879 # All AIX code is PIC.
14880 if test "$host_cpu" = ia64; then
14881 # AIX 5 now supports IA64 processor
14882 lt_prog_compiler_static='-Bstatic'
14884 lt_prog_compiler_pic='-fPIC'
14890 # see comment about AmigaOS4 .so support
14891 lt_prog_compiler_pic='-fPIC'
14894 # FIXME: we need at least 68020 code to build shared libraries, but
14895 # adding the `-m68020' flag to GCC prevents building anything better,
14897 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14902 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14903 # PIC is the default for these OSes.
14906 mingw* | cygwin* | pw32* | os2* | cegcc*)
14907 # This hack is so that the source file can tell whether it is being
14908 # built for inclusion in a dll (and should export symbols for example).
14909 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14910 # (--disable-auto-import) libraries
14911 lt_prog_compiler_pic='-DDLL_EXPORT'
14914 darwin* | rhapsody*)
14915 # PIC is the default on this platform
14916 # Common symbols not allowed in MH_DYLIB files
14917 lt_prog_compiler_pic='-fno-common'
14921 # PIC is the default for Haiku.
14922 # The "-static" flag exists, but is broken.
14923 lt_prog_compiler_static=
14927 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14928 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14929 # sets the default TLS model and affects inlining.
14935 lt_prog_compiler_pic='-fPIC'
14941 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14942 # Instead, we relocate shared libraries at runtime.
14946 # Just because we use GCC doesn't mean we suddenly get shared libraries
14947 # on systems that don't support them.
14948 lt_prog_compiler_can_build_shared=no
14953 # QNX uses GNU C++, but need to define -shared option too, otherwise
14954 # it will coredump.
14955 lt_prog_compiler_pic='-fPIC -shared'
14959 if test -d /usr/nec; then
14960 lt_prog_compiler_pic=-Kconform_pic
14965 lt_prog_compiler_pic='-fPIC'
14969 case $cc_basename in
14970 nvcc*) # Cuda Compiler Driver 2.2
14971 lt_prog_compiler_wl='-Xlinker '
14972 lt_prog_compiler_pic='-Xcompiler -fPIC'
14976 # PORTME Check for flag to pass linker flags through the system compiler.
14979 lt_prog_compiler_wl='-Wl,'
14980 if test "$host_cpu" = ia64; then
14981 # AIX 5 now supports IA64 processor
14982 lt_prog_compiler_static='-Bstatic'
14984 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14988 mingw* | cygwin* | pw32* | os2* | cegcc*)
14989 # This hack is so that the source file can tell whether it is being
14990 # built for inclusion in a dll (and should export symbols for example).
14991 lt_prog_compiler_pic='-DDLL_EXPORT'
14994 hpux9* | hpux10* | hpux11*)
14995 lt_prog_compiler_wl='-Wl,'
14996 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14997 # not for PA HP-UX.
15003 lt_prog_compiler_pic='+Z'
15006 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15007 lt_prog_compiler_static='${wl}-a ${wl}archive'
15010 irix5* | irix6* | nonstopux*)
15011 lt_prog_compiler_wl='-Wl,'
15012 # PIC (with -KPIC) is the default.
15013 lt_prog_compiler_static='-non_shared'
15016 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15017 case $cc_basename in
15018 # old Intel for x86_64 which still supported -KPIC.
15020 lt_prog_compiler_wl='-Wl,'
15021 lt_prog_compiler_pic='-KPIC'
15022 lt_prog_compiler_static='-static'
15024 # icc used to be incompatible with GCC.
15025 # ICC 10 doesn't accept -KPIC any more.
15027 lt_prog_compiler_wl='-Wl,'
15028 lt_prog_compiler_pic='-fPIC'
15029 lt_prog_compiler_static='-static'
15031 # Lahey Fortran 8.1.
15033 lt_prog_compiler_wl='-Wl,'
15034 lt_prog_compiler_pic='--shared'
15035 lt_prog_compiler_static='--static'
15037 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15038 # Portland Group compilers (*not* the Pentium gcc compiler,
15039 # which looks to be a dead project)
15040 lt_prog_compiler_wl='-Wl,'
15041 lt_prog_compiler_pic='-fpic'
15042 lt_prog_compiler_static='-Bstatic'
15045 lt_prog_compiler_wl='-Wl,'
15046 # All Alpha code is PIC.
15047 lt_prog_compiler_static='-non_shared'
15049 xl* | bgxl* | bgf* | mpixl*)
15050 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15051 lt_prog_compiler_wl='-Wl,'
15052 lt_prog_compiler_pic='-qpic'
15053 lt_prog_compiler_static='-qstaticlink'
15056 case `$CC -V 2>&1 | sed 5q` in
15057 *Sun\ F* | *Sun*Fortran*)
15058 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15059 lt_prog_compiler_pic='-KPIC'
15060 lt_prog_compiler_static='-Bstatic'
15061 lt_prog_compiler_wl=''
15065 lt_prog_compiler_pic='-KPIC'
15066 lt_prog_compiler_static='-Bstatic'
15067 lt_prog_compiler_wl='-Wl,'
15075 lt_prog_compiler_pic='-KPIC'
15076 lt_prog_compiler_static='-Bstatic'
15080 # QNX uses GNU C++, but need to define -shared option too, otherwise
15081 # it will coredump.
15082 lt_prog_compiler_pic='-fPIC -shared'
15085 osf3* | osf4* | osf5*)
15086 lt_prog_compiler_wl='-Wl,'
15087 # All OSF/1 code is PIC.
15088 lt_prog_compiler_static='-non_shared'
15092 lt_prog_compiler_static='-non_shared'
15096 lt_prog_compiler_pic='-KPIC'
15097 lt_prog_compiler_static='-Bstatic'
15098 case $cc_basename in
15099 f77* | f90* | f95*)
15100 lt_prog_compiler_wl='-Qoption ld ';;
15102 lt_prog_compiler_wl='-Wl,';;
15107 lt_prog_compiler_wl='-Qoption ld '
15108 lt_prog_compiler_pic='-PIC'
15109 lt_prog_compiler_static='-Bstatic'
15112 sysv4 | sysv4.2uw2* | sysv4.3*)
15113 lt_prog_compiler_wl='-Wl,'
15114 lt_prog_compiler_pic='-KPIC'
15115 lt_prog_compiler_static='-Bstatic'
15119 if test -d /usr/nec ;then
15120 lt_prog_compiler_pic='-Kconform_pic'
15121 lt_prog_compiler_static='-Bstatic'
15125 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15126 lt_prog_compiler_wl='-Wl,'
15127 lt_prog_compiler_pic='-KPIC'
15128 lt_prog_compiler_static='-Bstatic'
15132 lt_prog_compiler_wl='-Wl,'
15133 lt_prog_compiler_can_build_shared=no
15137 lt_prog_compiler_pic='-pic'
15138 lt_prog_compiler_static='-Bstatic'
15142 lt_prog_compiler_can_build_shared=no
15148 # For platforms which do not support PIC, -DPIC is meaningless:
15150 lt_prog_compiler_pic=
15153 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15157 $as_echo "$lt_prog_compiler_pic" >&6; }
15165 # Check to make sure the PIC flag actually works.
15167 if test -n "$lt_prog_compiler_pic"; then
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15169 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15170 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15171 $as_echo_n "(cached
) " >&6
15173 lt_cv_prog_compiler_pic_works=no
15174 ac_outfile=conftest.$ac_objext
15175 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15176 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15177 # Insert the option either (1) after the last *FLAGS variable, or
15178 # (2) before a word containing "conftest.
", or (3) at the end.
15179 # Note that $ac_compile itself does not contain backslashes and begins
15180 # with a dollar sign (not a hyphen), so the echo should work correctly.
15181 # The option is referenced via a variable to avoid confusing sed.
15182 lt_compile=`echo "$ac_compile" | $SED \
15183 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15184 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15185 -e 's:$: $lt_compiler_flag:'`
15186 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15187 (eval "$lt_compile" 2>conftest.err)
15189 cat conftest.err >&5
15190 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15191 if (exit $ac_status) && test -s "$ac_outfile"; then
15192 # The compiler can only warn and ignore the option if not recognized
15193 # So say no if there are warnings other than the usual output.
15194 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15195 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15196 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15197 lt_cv_prog_compiler_pic_works=yes
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15204 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15206 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15207 case $lt_prog_compiler_pic in
15209 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15212 lt_prog_compiler_pic=
15213 lt_prog_compiler_can_build_shared=no
15224 # Check to make sure the static flag actually works.
15226 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15228 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15229 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15230 $as_echo_n "(cached
) " >&6
15232 lt_cv_prog_compiler_static_works=no
15233 save_LDFLAGS="$LDFLAGS"
15234 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15235 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15236 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15237 # The linker can only warn and ignore the option if not recognized
15238 # So say no if there are warnings
15239 if test -s conftest.err; then
15240 # Append any errors to the config.log.
15241 cat conftest.err 1>&5
15242 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15243 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15244 if diff conftest.exp conftest.er2 >/dev/null; then
15245 lt_cv_prog_compiler_static_works=yes
15248 lt_cv_prog_compiler_static_works=yes
15252 LDFLAGS="$save_LDFLAGS"
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15256 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15258 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15261 lt_prog_compiler_static=
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15271 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15272 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15273 $as_echo_n "(cached
) " >&6
15275 lt_cv_prog_compiler_c_o=no
15276 $RM -r conftest 2>/dev/null
15280 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15282 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15283 # Insert the option either (1) after the last *FLAGS variable, or
15284 # (2) before a word containing "conftest.
", or (3) at the end.
15285 # Note that $ac_compile itself does not contain backslashes and begins
15286 # with a dollar sign (not a hyphen), so the echo should work correctly.
15287 lt_compile=`echo "$ac_compile" | $SED \
15288 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15290 -e 's:$: $lt_compiler_flag:'`
15291 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15292 (eval "$lt_compile" 2>out/conftest.err)
15294 cat out/conftest.err >&5
15295 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15296 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15298 # The compiler can only warn and ignore the option if not recognized
15299 # So say no if there are warnings
15300 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15301 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15302 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15303 lt_cv_prog_compiler_c_o=yes
15308 # SGI C++ compiler will create directory out/ii_files/ for
15309 # template instantiation
15310 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15311 $RM out/* && rmdir out
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15318 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15326 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15327 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15328 $as_echo_n "(cached
) " >&6
15330 lt_cv_prog_compiler_c_o=no
15331 $RM -r conftest 2>/dev/null
15335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15337 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15338 # Insert the option either (1) after the last *FLAGS variable, or
15339 # (2) before a word containing "conftest.
", or (3) at the end.
15340 # Note that $ac_compile itself does not contain backslashes and begins
15341 # with a dollar sign (not a hyphen), so the echo should work correctly.
15342 lt_compile=`echo "$ac_compile" | $SED \
15343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15345 -e 's:$: $lt_compiler_flag:'`
15346 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15347 (eval "$lt_compile" 2>out/conftest.err)
15349 cat out/conftest.err >&5
15350 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15351 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15353 # The compiler can only warn and ignore the option if not recognized
15354 # So say no if there are warnings
15355 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15356 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15357 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15358 lt_cv_prog_compiler_c_o=yes
15363 # SGI C++ compiler will create directory out/ii_files/ for
15364 # template instantiation
15365 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15366 $RM out/* && rmdir out
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15373 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15378 hard_links="nottested
"
15379 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15380 # do not overwrite the value of need_locks provided by the user
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15382 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15385 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15387 ln conftest.a conftest.b 2>&5 || hard_links=no
15388 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15390 $as_echo "$hard_links" >&6; }
15391 if test "$hard_links" = no; then
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15393 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15406 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15409 allow_undefined_flag=
15410 always_export_symbols=no
15412 archive_expsym_cmds=
15413 compiler_needs_object=no
15414 enable_shared_with_static_runtimes=no
15415 export_dynamic_flag_spec=
15416 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15417 hardcode_automatic=no
15419 hardcode_direct_absolute=no
15420 hardcode_libdir_flag_spec=
15421 hardcode_libdir_flag_spec_ld=
15422 hardcode_libdir_separator=
15423 hardcode_minus_L=no
15424 hardcode_shlibpath_var=unsupported
15426 link_all_deplibs=unknown
15428 module_expsym_cmds=
15429 old_archive_from_new_cmds=
15430 old_archive_from_expsyms_cmds=
15431 thread_safe_flag_spec=
15432 whole_archive_flag_spec=
15433 # include_expsyms should be a list of space-separated symbols to be *always*
15434 # included in the symbol list
15436 # exclude_expsyms can be an extended regexp of symbols to exclude
15437 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15438 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15439 # as well as any symbol that contains `d'.
15440 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15441 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15442 # platforms (ab)use it in PIC code, but their linkers get confused if
15443 # the symbol is explicitly referenced. Since portable code cannot
15444 # rely on this symbol name, it's probably fine to never include it in
15445 # preloaded symbol tables.
15446 # Exclude shared library initialization/finalization symbols.
15447 extract_expsyms_cmds=
15450 cygwin* | mingw* | pw32* | cegcc*)
15451 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15452 # When not using gcc, we currently assume that we are using
15453 # Microsoft Visual C++.
15454 if test "$GCC" != yes; then
15459 # we just hope/assume this is gcc and not c89 (= MSVC++)
15469 # On some targets, GNU ld is compatible enough with the native linker
15470 # that we're better off using the native interface for both.
15471 lt_use_gnu_ld_interface=no
15472 if test "$with_gnu_ld" = yes; then
15475 # The AIX port of GNU ld has always aspired to compatibility
15476 # with the native linker. However, as the warning in the GNU ld
15477 # block says, versions before 2.19.5* couldn't really create working
15478 # shared libraries, regardless of the interface used.
15479 case `$LD -v 2>&1` in
15480 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15481 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15482 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15484 lt_use_gnu_ld_interface=yes
15489 lt_use_gnu_ld_interface=yes
15494 if test "$lt_use_gnu_ld_interface" = yes; then
15495 # If archive_cmds runs LD, not CC, wlarc should be empty
15498 # Set some defaults for GNU ld with shared library support. These
15499 # are reset later if shared libraries are not supported. Putting them
15500 # here allows them to be overridden if necessary.
15501 runpath_var=LD_RUN_PATH
15502 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15503 export_dynamic_flag_spec='${wl}--export-dynamic'
15504 # ancient GNU ld didn't support --whole-archive et. al.
15505 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15506 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15508 whole_archive_flag_spec=
15510 supports_anon_versioning=no
15511 case `$LD -v 2>&1` in
15512 *GNU\ gold*) supports_anon_versioning=yes ;;
15513 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15514 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15515 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15516 *\ 2.11.*) ;; # other 2.11 versions
15517 *) supports_anon_versioning=yes ;;
15520 # See if GNU ld supports shared libraries.
15523 # On AIX/PPC, the GNU linker is very broken
15524 if test "$host_cpu" != ia64; then
15528 *** Warning: the GNU linker, at least up to release 2.19, is reported
15529 *** to be unable to reliably create shared libraries on AIX.
15530 *** Therefore, libtool is disabling shared libraries support. If you
15531 *** really care for shared libraries, you may want to install binutils
15532 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15533 *** You will then need to restart the configuration process.
15542 # see comment about AmigaOS4 .so support
15543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15544 archive_expsym_cmds=''
15547 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)'
15548 hardcode_libdir_flag_spec
='-L$libdir'
15549 hardcode_minus_L
=yes
15555 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15556 allow_undefined_flag
=unsupported
15557 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15558 # support --undefined. This deserves some investigation. FIXME
15559 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15565 cygwin
* | mingw
* | pw32
* | cegcc
*)
15566 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15567 # as there is no search path for DLLs.
15568 hardcode_libdir_flag_spec
='-L$libdir'
15569 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15570 allow_undefined_flag
=unsupported
15571 always_export_symbols
=no
15572 enable_shared_with_static_runtimes
=yes
15573 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15575 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15576 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15577 # If the export-symbols file already is a .def file (1st line
15578 # is EXPORTS), use it as is; otherwise, prepend...
15579 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15580 cp $export_symbols $output_objdir/$soname.def;
15582 echo EXPORTS > $output_objdir/$soname.def;
15583 cat $export_symbols >> $output_objdir/$soname.def;
15585 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15592 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15593 link_all_deplibs
=yes
15598 hardcode_shlibpath_var
=no
15599 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15600 export_dynamic_flag_spec
='${wl}-E'
15601 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15602 # Instead, shared libraries are loaded at an image base (0x10000000 by
15603 # default) and relocated if they conflict, which is a slow very memory
15604 # consuming and fragmenting process. To avoid this, we pick a random,
15605 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15606 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15607 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15608 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'
15611 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15613 if test "$host_os" = linux-dietlibc
; then
15614 case $cc_basename in
15615 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15618 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15619 && test "$tmp_diet" = no
15622 tmp_sharedflag
='-shared'
15623 case $cc_basename,$host_cpu in
15624 pgcc
*) # Portland Group C compiler
15625 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'
15626 tmp_addflag
=' $pic_flag'
15628 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15629 # Portland Group f77 and f90 compilers
15630 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'
15631 tmp_addflag
=' $pic_flag -Mnomain' ;;
15632 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15633 tmp_addflag
=' -i_dynamic' ;;
15634 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15635 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15636 ifc
* | ifort
*) # Intel Fortran compiler
15637 tmp_addflag
=' -nofor_main' ;;
15638 lf95
*) # Lahey Fortran 8.1
15639 whole_archive_flag_spec
=
15640 tmp_sharedflag
='--shared' ;;
15641 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15642 tmp_sharedflag
='-qmkshrobj'
15644 nvcc
*) # Cuda Compiler Driver 2.2
15645 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'
15646 compiler_needs_object
=yes
15649 case `$CC -V 2>&1 | sed 5q` in
15650 *Sun\ C
*) # Sun C 5.9
15651 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'
15652 compiler_needs_object
=yes
15653 tmp_sharedflag
='-G' ;;
15654 *Sun\ F
*) # Sun Fortran 8.3
15655 tmp_sharedflag
='-G' ;;
15657 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15659 if test "x$supports_anon_versioning" = xyes
; then
15660 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15661 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15662 echo "local: *; };" >> $output_objdir/$libname.ver~
15663 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15666 case $cc_basename in
15667 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15668 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15669 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15670 hardcode_libdir_flag_spec
=
15671 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15672 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15673 if test "x$supports_anon_versioning" = xyes
; then
15674 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15675 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15676 echo "local: *; };" >> $output_objdir/$libname.ver~
15677 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15687 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15688 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15691 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15692 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15697 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15701 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15702 *** create shared libraries on Solaris systems. Therefore, libtool
15703 *** is disabling shared libraries support. We urge you to upgrade GNU
15704 *** binutils to release 2.9.1 or newer. Another option is to modify
15705 *** your PATH or compiler configuration so that the native linker is
15706 *** used, and then restart.
15709 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15710 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15711 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15717 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15718 case `$LD -v 2>&1` in
15719 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15723 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15724 *** reliably create shared libraries on SCO systems. Therefore, libtool
15725 *** is disabling shared libraries support. We urge you to upgrade GNU
15726 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15727 *** your PATH or compiler configuration so that the native linker is
15728 *** used, and then restart.
15733 # For security reasons, it is highly recommended that you always
15734 # use absolute paths for naming shared libraries, and exclude the
15735 # DT_RUNPATH tag from executables and libraries. But doing so
15736 # requires that you compile everything twice, which is a pain.
15737 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15738 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15739 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15740 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15749 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15751 hardcode_direct
=yes
15752 hardcode_shlibpath_var
=no
15756 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15757 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15758 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15765 if test "$ld_shlibs" = no
; then
15767 hardcode_libdir_flag_spec
=
15768 export_dynamic_flag_spec
=
15769 whole_archive_flag_spec
=
15772 # PORTME fill in a description of your system's linker (not GNU ld)
15775 allow_undefined_flag
=unsupported
15776 always_export_symbols
=yes
15777 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'
15778 # Note: this linker hardcodes the directories in LIBPATH if there
15779 # are no directories specified by -L.
15780 hardcode_minus_L
=yes
15781 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15782 # Neither direct hardcoding nor static linking is supported with a
15784 hardcode_direct
=unsupported
15789 if test "$host_cpu" = ia64
; then
15790 # On IA64, the linker does run time linking by default, so we don't
15791 # have to do anything special.
15792 aix_use_runtimelinking
=no
15793 exp_sym_flag
='-Bexport'
15796 # If we're using GNU nm, then we don't want the "-C" option.
15797 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15798 # Also, AIX nm treats weak defined symbols like other global
15799 # defined symbols, whereas GNU nm marks them as "W".
15800 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15801 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'
15803 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'
15805 aix_use_runtimelinking
=no
15807 # Test if we are trying to use run time linking or normal
15808 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15809 # need to do runtime linking.
15810 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15811 for ld_flag
in $LDFLAGS; do
15812 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15813 aix_use_runtimelinking
=yes
15820 exp_sym_flag
='-bexport'
15821 no_entry_flag
='-bnoentry'
15824 # When large executables or shared objects are built, AIX ld can
15825 # have problems creating the table of contents. If linking a library
15826 # or program results in "error TOC overflow" add -mminimal-toc to
15827 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15828 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15831 hardcode_direct
=yes
15832 hardcode_direct_absolute
=yes
15833 hardcode_libdir_separator
=':'
15834 link_all_deplibs
=yes
15835 file_list_spec
='${wl}-f,'
15837 if test "$GCC" = yes; then
15838 case $host_os in aix4.
[012]|aix4.
[012].
*)
15839 # We only want to do this on AIX 4.2 and lower, the check
15840 # below for broken collect2 doesn't work under 4.3+
15841 collect2name
=`${CC} -print-prog-name=collect2`
15842 if test -f "$collect2name" &&
15843 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15845 # We have reworked collect2
15848 # We have old collect2
15849 hardcode_direct
=unsupported
15850 # It fails to find uninstalled libraries when the uninstalled
15851 # path is not listed in the libpath. Setting hardcode_minus_L
15852 # to unsupported forces relinking
15853 hardcode_minus_L
=yes
15854 hardcode_libdir_flag_spec
='-L$libdir'
15855 hardcode_libdir_separator
=
15859 shared_flag
='-shared'
15860 if test "$aix_use_runtimelinking" = yes; then
15861 shared_flag
="$shared_flag "'${wl}-G'
15865 if test "$host_cpu" = ia64
; then
15866 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15867 # chokes on -Wl,-G. The following line is correct:
15870 if test "$aix_use_runtimelinking" = yes; then
15871 shared_flag
='${wl}-G'
15873 shared_flag
='${wl}-bM:SRE'
15878 export_dynamic_flag_spec
='${wl}-bexpall'
15879 # It seems that -bexpall does not export symbols beginning with
15880 # underscore (_), so it is better to generate a list of symbols to export.
15881 always_export_symbols
=yes
15882 if test "$aix_use_runtimelinking" = yes; then
15883 # Warning - without using the other runtime loading flags (-brtl),
15884 # -berok will link without error, but may produce a broken library.
15885 allow_undefined_flag
='-berok'
15886 # Determine the default libpath from the value encoded in an
15887 # empty executable.
15888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15889 /* end confdefs.h. */
15899 if ac_fn_c_try_link
"$LINENO"; then :
15901 lt_aix_libpath_sed
='
15902 /Import File Strings/,/^$/ {
15908 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15909 # Check for a 64-bit object if we didn't find anything.
15910 if test -z "$aix_libpath"; then
15911 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15914 rm -f core conftest.err conftest.
$ac_objext \
15915 conftest
$ac_exeext conftest.
$ac_ext
15916 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15918 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15919 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"
15921 if test "$host_cpu" = ia64
; then
15922 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15923 allow_undefined_flag
="-z nodefs"
15924 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"
15926 # Determine the default libpath from the value encoded in an
15927 # empty executable.
15928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15929 /* end confdefs.h. */
15939 if ac_fn_c_try_link
"$LINENO"; then :
15941 lt_aix_libpath_sed
='
15942 /Import File Strings/,/^$/ {
15948 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15949 # Check for a 64-bit object if we didn't find anything.
15950 if test -z "$aix_libpath"; then
15951 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15954 rm -f core conftest.err conftest.
$ac_objext \
15955 conftest
$ac_exeext conftest.
$ac_ext
15956 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15958 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15959 # Warning - without using the other run time loading flags,
15960 # -berok will link without error, but may produce a broken library.
15961 no_undefined_flag
=' ${wl}-bernotok'
15962 allow_undefined_flag
=' ${wl}-berok'
15963 if test "$with_gnu_ld" = yes; then
15964 # We only use this code for GNU lds that support --whole-archive.
15965 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15967 # Exported symbols can be pulled into shared objects from archives
15968 whole_archive_flag_spec
='$convenience'
15970 archive_cmds_need_lc
=yes
15971 # This is similar to how AIX traditionally builds its shared libraries.
15972 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'
15980 # see comment about AmigaOS4 .so support
15981 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15982 archive_expsym_cmds
=''
15985 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)'
15986 hardcode_libdir_flag_spec
='-L$libdir'
15987 hardcode_minus_L
=yes
15993 export_dynamic_flag_spec
=-rdynamic
15996 cygwin
* | mingw
* | pw32
* | cegcc
*)
15997 # When not using gcc, we currently assume that we are using
15998 # Microsoft Visual C++.
15999 # hardcode_libdir_flag_spec is actually meaningless, as there is
16000 # no search path for DLLs.
16001 hardcode_libdir_flag_spec
=' '
16002 allow_undefined_flag
=unsupported
16003 # Tell ltmain to make .lib files, not .a files.
16005 # Tell ltmain to make .dll files, not .so files.
16007 # FIXME: Setting linknames here is a bad hack.
16008 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16009 # The linker will automatically build a .lib file if we build a DLL.
16010 old_archive_from_new_cmds
='true'
16011 # FIXME: Should let the user specify the lib program.
16012 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16013 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16014 enable_shared_with_static_runtimes
=yes
16017 darwin
* | rhapsody
*)
16020 archive_cmds_need_lc
=no
16022 hardcode_automatic
=yes
16023 hardcode_shlibpath_var
=unsupported
16024 if test "$lt_cv_ld_force_load" = "yes"; then
16025 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\"`'
16027 whole_archive_flag_spec
=''
16029 link_all_deplibs
=yes
16030 allow_undefined_flag
="$_lt_dar_allow_undefined"
16031 case $cc_basename in
16032 ifort
*) _lt_dar_can_shared
=yes ;;
16033 *) _lt_dar_can_shared
=$GCC ;;
16035 if test "$_lt_dar_can_shared" = "yes"; then
16036 output_verbose_link_cmd
=func_echo_all
16037 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16038 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16039 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}"
16040 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}"
16049 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16050 hardcode_libdir_flag_spec
='-L$libdir'
16051 hardcode_shlibpath_var
=no
16054 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16055 # support. Future versions do this automatically, but an explicit c++rt0.o
16056 # does not break anything, and helps significantly (at the cost of a little
16059 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16060 hardcode_libdir_flag_spec
='-R$libdir'
16061 hardcode_direct
=yes
16062 hardcode_shlibpath_var
=no
16065 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16067 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16068 hardcode_direct
=yes
16069 hardcode_minus_L
=yes
16070 hardcode_shlibpath_var
=no
16073 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16074 freebsd
* | dragonfly
*)
16075 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16076 hardcode_libdir_flag_spec
='-R$libdir'
16077 hardcode_direct
=yes
16078 hardcode_shlibpath_var
=no
16082 if test "$GCC" = yes; then
16083 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'
16085 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'
16087 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16088 hardcode_libdir_separator
=:
16089 hardcode_direct
=yes
16091 # hardcode_minus_L: Not really in the search PATH,
16092 # but as the default location of the library.
16093 hardcode_minus_L
=yes
16094 export_dynamic_flag_spec
='${wl}-E'
16098 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16099 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16101 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16103 if test "$with_gnu_ld" = no
; then
16104 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16105 hardcode_libdir_flag_spec_ld
='+b $libdir'
16106 hardcode_libdir_separator
=:
16107 hardcode_direct
=yes
16108 hardcode_direct_absolute
=yes
16109 export_dynamic_flag_spec
='${wl}-E'
16110 # hardcode_minus_L: Not really in the search PATH,
16111 # but as the default location of the library.
16112 hardcode_minus_L
=yes
16117 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16120 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16123 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16126 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16132 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16135 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16139 # Older versions of the 11.00 compiler do not understand -b yet
16140 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16142 $as_echo_n "checking if $CC understands -b... " >&6; }
16143 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16144 $as_echo_n "(cached) " >&6
16146 lt_cv_prog_compiler__b
=no
16147 save_LDFLAGS
="$LDFLAGS"
16148 LDFLAGS
="$LDFLAGS -b"
16149 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16150 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16151 # The linker can only warn and ignore the option if not recognized
16152 # So say no if there are warnings
16153 if test -s conftest.err
; then
16154 # Append any errors to the config.log.
16155 cat conftest.err
1>&5
16156 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16157 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16158 if diff conftest.exp conftest.er2
>/dev
/null
; then
16159 lt_cv_prog_compiler__b
=yes
16162 lt_cv_prog_compiler__b
=yes
16166 LDFLAGS
="$save_LDFLAGS"
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16170 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16172 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16173 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16175 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16181 if test "$with_gnu_ld" = no
; then
16182 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16183 hardcode_libdir_separator
=:
16188 hardcode_shlibpath_var
=no
16191 hardcode_direct
=yes
16192 hardcode_direct_absolute
=yes
16193 export_dynamic_flag_spec
='${wl}-E'
16195 # hardcode_minus_L: Not really in the search PATH,
16196 # but as the default location of the library.
16197 hardcode_minus_L
=yes
16203 irix5
* | irix6
* | nonstopux
*)
16204 if test "$GCC" = yes; then
16205 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'
16206 # Try to use the -exported_symbol ld option, if it does not
16207 # work, assume that -exports_file does not work either and
16208 # implicitly export all symbols.
16209 save_LDFLAGS
="$LDFLAGS"
16210 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16212 /* end confdefs.h. */
16215 if ac_fn_c_try_link
"$LINENO"; then :
16216 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'
16219 rm -f core conftest.err conftest.
$ac_objext \
16220 conftest
$ac_exeext conftest.
$ac_ext
16221 LDFLAGS
="$save_LDFLAGS"
16223 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'
16224 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'
16226 archive_cmds_need_lc
='no'
16227 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16228 hardcode_libdir_separator
=:
16230 link_all_deplibs
=yes
16234 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16235 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16237 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16239 hardcode_libdir_flag_spec
='-R$libdir'
16240 hardcode_direct
=yes
16241 hardcode_shlibpath_var
=no
16245 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16246 hardcode_direct
=yes
16247 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16248 hardcode_libdir_separator
=:
16249 hardcode_shlibpath_var
=no
16256 if test -f /usr
/libexec
/ld.so
; then
16257 hardcode_direct
=yes
16258 hardcode_shlibpath_var
=no
16259 hardcode_direct_absolute
=yes
16260 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16261 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16262 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16263 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16264 export_dynamic_flag_spec
='${wl}-E'
16267 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16268 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16269 hardcode_libdir_flag_spec
='-R$libdir'
16272 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16273 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16283 hardcode_libdir_flag_spec
='-L$libdir'
16284 hardcode_minus_L
=yes
16285 allow_undefined_flag
=unsupported
16286 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'
16287 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16291 if test "$GCC" = yes; then
16292 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16293 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'
16295 allow_undefined_flag
=' -expect_unresolved \*'
16296 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'
16298 archive_cmds_need_lc
='no'
16299 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16300 hardcode_libdir_separator
=:
16303 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16304 if test "$GCC" = yes; then
16305 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16306 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'
16307 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16309 allow_undefined_flag
=' -expect_unresolved \*'
16310 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'
16311 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~
16312 $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'
16314 # Both c and cxx compiler support -rpath directly
16315 hardcode_libdir_flag_spec
='-rpath $libdir'
16317 archive_cmds_need_lc
='no'
16318 hardcode_libdir_separator
=:
16322 no_undefined_flag
=' -z defs'
16323 if test "$GCC" = yes; then
16325 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16326 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16327 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16329 case `$CC -V 2>&1` in
16332 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16333 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16334 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16338 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16339 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16340 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16344 hardcode_libdir_flag_spec
='-R$libdir'
16345 hardcode_shlibpath_var
=no
16347 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16349 # The compiler driver will combine and reorder linker options,
16350 # but understands `-z linker_flag'. GCC discards it without `$wl',
16351 # but is careful enough not to reorder.
16352 # Supported since Solaris 2.6 (maybe 2.5.1?)
16353 if test "$GCC" = yes; then
16354 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16356 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16360 link_all_deplibs
=yes
16364 if test "x$host_vendor" = xsequent
; then
16365 # Use $CC to link under sequent, because it throws in some extra .o
16366 # files that make .init and .fini sections work.
16367 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16369 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16371 hardcode_libdir_flag_spec
='-L$libdir'
16372 hardcode_direct
=yes
16373 hardcode_minus_L
=yes
16374 hardcode_shlibpath_var
=no
16378 case $host_vendor in
16380 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16381 hardcode_direct
=yes # is this really true???
16384 ## LD is ld it makes a PLAMLIB
16385 ## CC just makes a GrossModule.
16386 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16387 reload_cmds
='$CC -r -o $output$reload_objs'
16391 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16392 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16395 runpath_var
='LD_RUN_PATH'
16396 hardcode_shlibpath_var
=no
16400 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16401 hardcode_shlibpath_var
=no
16402 export_dynamic_flag_spec
='-Bexport'
16406 if test -d /usr
/nec
; then
16407 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16408 hardcode_shlibpath_var
=no
16409 runpath_var
=LD_RUN_PATH
16410 hardcode_runpath_var
=yes
16415 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16416 no_undefined_flag
='${wl}-z,text'
16417 archive_cmds_need_lc
=no
16418 hardcode_shlibpath_var
=no
16419 runpath_var
='LD_RUN_PATH'
16421 if test "$GCC" = yes; then
16422 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16423 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16425 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16426 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16430 sysv5
* | sco3.2v5
* | sco5v6
*)
16431 # Note: We can NOT use -z defs as we might desire, because we do not
16432 # link with -lc, and that would cause any symbols used from libc to
16433 # always be unresolved, which means just about no library would
16434 # ever link correctly. If we're not using GNU ld we use -z text
16435 # though, which does catch some bad symbols but isn't as heavy-handed
16437 no_undefined_flag
='${wl}-z,text'
16438 allow_undefined_flag
='${wl}-z,nodefs'
16439 archive_cmds_need_lc
=no
16440 hardcode_shlibpath_var
=no
16441 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16442 hardcode_libdir_separator
=':'
16443 link_all_deplibs
=yes
16444 export_dynamic_flag_spec
='${wl}-Bexport'
16445 runpath_var
='LD_RUN_PATH'
16447 if test "$GCC" = yes; then
16448 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16449 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16451 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16452 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16457 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16458 hardcode_libdir_flag_spec
='-L$libdir'
16459 hardcode_shlibpath_var
=no
16467 if test x
$host_vendor = xsni
; then
16469 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16470 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16477 $as_echo "$ld_shlibs" >&6; }
16478 test "$ld_shlibs" = no
&& can_build_shared
=no
16480 with_gnu_ld
=$with_gnu_ld
16497 # Do we need to explicitly link libc?
16499 case "x$archive_cmds_need_lc" in
16501 # Assume -lc should be added
16502 archive_cmds_need_lc
=yes
16504 if test "$enable_shared" = yes && test "$GCC" = yes; then
16505 case $archive_cmds in
16507 # FIXME: we may have to deal with multi-command sequences.
16510 # Test whether the compiler implicitly links with -lc since on some
16511 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16512 # to ld, don't add -lc before -lgcc.
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16514 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16515 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16516 $as_echo_n "(cached) " >&6
16519 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16522 (eval $ac_compile) 2>&5
16524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16525 test $ac_status = 0; } 2>conftest.err
; then
16528 libobjs
=conftest.
$ac_objext
16530 wl
=$lt_prog_compiler_wl
16531 pic_flag
=$lt_prog_compiler_pic
16537 lt_save_allow_undefined_flag
=$allow_undefined_flag
16538 allow_undefined_flag
=
16539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16540 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16543 test $ac_status = 0; }
16545 lt_cv_archive_cmds_need_lc
=no
16547 lt_cv_archive_cmds_need_lc
=yes
16549 allow_undefined_flag
=$lt_save_allow_undefined_flag
16551 cat conftest.err
1>&5
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16557 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16558 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16722 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16724 if test "$GCC" = yes; then
16726 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16727 *) lt_awk_arg
="/^libraries:/" ;;
16730 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16731 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16733 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16734 case $lt_search_path_spec in
16736 # if the path contains ";" then we assume it to be the separator
16737 # otherwise default to the standard path separator (i.e. ":") - it is
16738 # assumed that no part of a normal pathname contains ";" but that should
16739 # okay in the real world where ";" in dirpaths is itself problematic.
16740 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16743 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16746 # Ok, now we have the path, separated by spaces, we can step through it
16747 # and add multilib dir if necessary.
16748 lt_tmp_lt_search_path_spec
=
16749 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16750 for lt_sys_path
in $lt_search_path_spec; do
16751 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16752 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16754 test -d "$lt_sys_path" && \
16755 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16758 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16759 BEGIN {RS=" "; FS="/|\n";} {
16762 for (lt_i = NF; lt_i > 0; lt_i--) {
16763 if ($lt_i != "" && $lt_i != ".") {
16764 if ($lt_i == "..") {
16767 if (lt_count == 0) {
16768 lt_foo="/" $lt_i lt_foo;
16775 if (lt_foo != "") { lt_freq[lt_foo]++; }
16776 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16778 # AWK program above erroneously prepends '/' to C:/dos/paths
16781 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16782 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16784 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16786 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16788 library_names_spec
=
16789 libname_spec
='lib$name'
16793 postuninstall_cmds
=
16797 shlibpath_overrides_runpath
=unknown
16799 dynamic_linker
="$host_os ld.so"
16800 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16801 need_lib_prefix
=unknown
16802 hardcode_into_libs
=no
16804 # when you set need_version to no, make sure it does not cause -set_version
16805 # flags to be left without arguments
16806 need_version
=unknown
16811 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16812 shlibpath_var
=LIBPATH
16814 # AIX 3 has no versioning support, so we append a major version to the name.
16815 soname_spec
='${libname}${release}${shared_ext}$major'
16822 hardcode_into_libs
=yes
16823 if test "$host_cpu" = ia64
; then
16824 # AIX 5 supports IA64
16825 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16826 shlibpath_var
=LD_LIBRARY_PATH
16828 # With GCC up to 2.95.x, collect2 would create an import file
16829 # for dependence libraries. The import file would start with
16830 # the line `#! .'. This would cause the generated library to
16831 # depend on `.', always an invalid library. This was fixed in
16832 # development snapshots of GCC prior to 3.0.
16834 aix4 | aix4.
[01] | aix4.
[01].
*)
16835 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16837 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16840 can_build_shared
=no
16844 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16845 # soname into executable. Probably we can add versioning support to
16846 # collect2, so additional links can be useful in future.
16847 if test "$aix_use_runtimelinking" = yes; then
16848 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16849 # instead of lib<name>.a to let people know that these are not
16850 # typical AIX shared libraries.
16851 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16853 # We preserve .a as extension for shared libraries through AIX4.2
16854 # and later when we are not doing run time linking.
16855 library_names_spec
='${libname}${release}.a $libname.a'
16856 soname_spec
='${libname}${release}${shared_ext}$major'
16858 shlibpath_var
=LIBPATH
16865 # Since July 2007 AmigaOS4 officially supports .so libraries.
16866 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16867 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16870 library_names_spec
='$libname.ixlibrary $libname.a'
16871 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16872 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'
16878 library_names_spec
='${libname}${shared_ext}'
16879 dynamic_linker
="$host_os ld.so"
16880 shlibpath_var
=LIBRARY_PATH
16886 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16887 soname_spec
='${libname}${release}${shared_ext}$major'
16888 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16889 shlibpath_var
=LD_LIBRARY_PATH
16890 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16891 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16892 # the default ld.so.conf also contains /usr/contrib/lib and
16893 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16894 # libtool to hard-code these into programs
16897 cygwin
* | mingw
* | pw32
* | cegcc
*)
16898 version_type
=windows
16903 case $GCC,$host_os in
16904 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16905 library_names_spec
='$libname.dll.a'
16906 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16907 postinstall_cmds
='base_file=`basename \${file}`~
16908 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16909 dldir=$destdir/`dirname \$dlpath`~
16910 test -d \$dldir || mkdir -p \$dldir~
16911 $install_prog $dir/$dlname \$dldir/$dlname~
16912 chmod a+x \$dldir/$dlname~
16913 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16914 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16916 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16917 dlpath=$dir/\$dldll~
16919 shlibpath_overrides_runpath
=yes
16923 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16924 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16926 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16929 # MinGW DLLs use traditional 'lib' prefix
16930 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16933 # pw32 DLLs use 'pw' prefix rather than 'lib'
16934 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16940 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16943 dynamic_linker
='Win32 ld.exe'
16944 # FIXME: first we should search . and the directory the executable is in
16948 darwin
* | rhapsody
*)
16949 dynamic_linker
="$host_os dyld"
16950 version_type
=darwin
16953 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16954 soname_spec
='${libname}${release}${major}$shared_ext'
16955 shlibpath_overrides_runpath
=yes
16956 shlibpath_var
=DYLD_LIBRARY_PATH
16957 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
16959 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
16960 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16967 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16968 soname_spec
='${libname}${release}${shared_ext}$major'
16969 shlibpath_var
=LD_LIBRARY_PATH
16972 freebsd
* | dragonfly
*)
16973 # DragonFly does not have aout. When/if they implement a new
16974 # versioning mechanism, adjust this.
16975 if test -x /usr
/bin
/objformat
; then
16976 objformat
=`/usr/bin/objformat`
16979 freebsd
[23].
*) objformat
=aout
;;
16980 *) objformat
=elf
;;
16983 version_type
=freebsd-
$objformat
16984 case $version_type in
16986 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16991 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16995 shlibpath_var
=LD_LIBRARY_PATH
16998 shlibpath_overrides_runpath
=yes
17000 freebsd3.
[01]* | freebsdelf3.
[01]*)
17001 shlibpath_overrides_runpath
=yes
17002 hardcode_into_libs
=yes
17004 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17005 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17006 shlibpath_overrides_runpath
=no
17007 hardcode_into_libs
=yes
17009 *) # from 4.6 on, and DragonFly
17010 shlibpath_overrides_runpath
=yes
17011 hardcode_into_libs
=yes
17020 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17021 soname_spec
='${libname}${release}${shared_ext}$major'
17022 shlibpath_var
=LD_LIBRARY_PATH
17023 hardcode_into_libs
=yes
17030 dynamic_linker
="$host_os runtime_loader"
17031 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17032 soname_spec
='${libname}${release}${shared_ext}$major'
17033 shlibpath_var
=LIBRARY_PATH
17034 shlibpath_overrides_runpath
=yes
17035 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17036 hardcode_into_libs
=yes
17039 hpux9
* | hpux10
* | hpux11
*)
17040 # Give a soname corresponding to the major version so that dld.sl refuses to
17041 # link against other versions.
17048 hardcode_into_libs
=yes
17049 dynamic_linker
="$host_os dld.so"
17050 shlibpath_var
=LD_LIBRARY_PATH
17051 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17052 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17053 soname_spec
='${libname}${release}${shared_ext}$major'
17054 if test "X$HPUX_IA64_MODE" = X32
; then
17055 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17057 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17059 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17063 hardcode_into_libs
=yes
17064 dynamic_linker
="$host_os dld.sl"
17065 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17066 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17067 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17068 soname_spec
='${libname}${release}${shared_ext}$major'
17069 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17070 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17074 dynamic_linker
="$host_os dld.sl"
17075 shlibpath_var
=SHLIB_PATH
17076 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17077 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17078 soname_spec
='${libname}${release}${shared_ext}$major'
17081 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17082 postinstall_cmds
='chmod 555 $lib'
17083 # or fails outright, so override atomically:
17084 install_override_mode
=555
17091 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17092 soname_spec
='${libname}${release}${shared_ext}$major'
17093 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17094 shlibpath_var
=LD_LIBRARY_PATH
17095 shlibpath_overrides_runpath
=no
17096 hardcode_into_libs
=yes
17099 irix5
* | irix6
* | nonstopux
*)
17101 nonstopux
*) version_type
=nonstopux
;;
17103 if test "$lt_cv_prog_gnu_ld" = yes; then
17111 soname_spec
='${libname}${release}${shared_ext}$major'
17112 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17114 irix5
* | nonstopux
*)
17115 libsuff
= shlibsuff
=
17118 case $LD in # libtool.m4 will add one of these switches to LD
17119 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17120 libsuff
= shlibsuff
= libmagic
=32-bit;;
17121 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17122 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17123 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17124 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17125 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17129 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17130 shlibpath_overrides_runpath
=no
17131 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17132 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17133 hardcode_into_libs
=yes
17136 # No shared lib support for Linux oldld, aout, or coff.
17137 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17141 # This must be Linux ELF.
17142 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17146 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17147 soname_spec
='${libname}${release}${shared_ext}$major'
17148 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17149 shlibpath_var
=LD_LIBRARY_PATH
17150 shlibpath_overrides_runpath
=no
17152 # Some binutils ld are patched to set DT_RUNPATH
17153 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17154 $as_echo_n "(cached) " >&6
17156 lt_cv_shlibpath_overrides_runpath
=no
17157 save_LDFLAGS
=$LDFLAGS
17158 save_libdir
=$libdir
17159 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17160 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17162 /* end confdefs.h. */
17172 if ac_fn_c_try_link
"$LINENO"; then :
17173 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17174 lt_cv_shlibpath_overrides_runpath
=yes
17177 rm -f core conftest.err conftest.
$ac_objext \
17178 conftest
$ac_exeext conftest.
$ac_ext
17179 LDFLAGS
=$save_LDFLAGS
17180 libdir
=$save_libdir
17184 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17186 # This implies no fast_install, which is unacceptable.
17187 # Some rework will be needed to allow for fast_install
17188 # before this can be enabled.
17189 hardcode_into_libs
=yes
17191 # Append ld.so.conf contents to the search path
17192 if test -f /etc
/ld.so.conf
; then
17193 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' ' '`
17194 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17197 # We used to test for /lib/ld.so.1 and disable shared libraries on
17198 # powerpc, because MkLinux only supported shared libraries with the
17199 # GNU dynamic linker. Since this was broken with cross compilers,
17200 # most powerpc-linux boxes support dynamic linking these days and
17201 # people can always --disable-shared, the test was removed, and we
17202 # assume the GNU/Linux dynamic linker is in use.
17203 dynamic_linker
='GNU/Linux ld.so'
17210 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17211 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17212 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17213 dynamic_linker
='NetBSD (a.out) ld.so'
17215 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17216 soname_spec
='${libname}${release}${shared_ext}$major'
17217 dynamic_linker
='NetBSD ld.elf_so'
17219 shlibpath_var
=LD_LIBRARY_PATH
17220 shlibpath_overrides_runpath
=yes
17221 hardcode_into_libs
=yes
17226 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17227 shlibpath_var
=LD_LIBRARY_PATH
17228 shlibpath_overrides_runpath
=yes
17235 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17236 soname_spec
='${libname}${release}${shared_ext}$major'
17237 shlibpath_var
=LD_LIBRARY_PATH
17238 shlibpath_overrides_runpath
=no
17239 hardcode_into_libs
=yes
17240 dynamic_linker
='ldqnx.so'
17245 sys_lib_dlsearch_path_spec
="/usr/lib"
17247 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17249 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17250 *) need_version
=no
;;
17252 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17253 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17254 shlibpath_var
=LD_LIBRARY_PATH
17255 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17257 openbsd2.
[89] | openbsd2.
[89].
*)
17258 shlibpath_overrides_runpath
=no
17261 shlibpath_overrides_runpath
=yes
17265 shlibpath_overrides_runpath
=yes
17270 libname_spec
='$name'
17273 library_names_spec
='$libname${shared_ext} $libname.a'
17274 dynamic_linker
='OS/2 ld.exe'
17275 shlibpath_var
=LIBPATH
17278 osf3
* | osf4
* | osf5
*)
17282 soname_spec
='${libname}${release}${shared_ext}$major'
17283 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17284 shlibpath_var
=LD_LIBRARY_PATH
17285 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17286 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17297 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17298 soname_spec
='${libname}${release}${shared_ext}$major'
17299 shlibpath_var
=LD_LIBRARY_PATH
17300 shlibpath_overrides_runpath
=yes
17301 hardcode_into_libs
=yes
17302 # ldd complains unless libraries are executable
17303 postinstall_cmds
='chmod +x $lib'
17308 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17309 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17310 shlibpath_var
=LD_LIBRARY_PATH
17311 shlibpath_overrides_runpath
=yes
17312 if test "$with_gnu_ld" = yes; then
17320 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17321 soname_spec
='${libname}${release}${shared_ext}$major'
17322 shlibpath_var
=LD_LIBRARY_PATH
17323 case $host_vendor in
17325 shlibpath_overrides_runpath
=no
17327 runpath_var
=LD_RUN_PATH
17335 shlibpath_overrides_runpath
=no
17336 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17342 if test -d /usr
/nec
;then
17344 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17345 soname_spec
='$libname${shared_ext}.$major'
17346 shlibpath_var
=LD_LIBRARY_PATH
17350 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17351 version_type
=freebsd-elf
17354 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17355 soname_spec
='${libname}${release}${shared_ext}$major'
17356 shlibpath_var
=LD_LIBRARY_PATH
17357 shlibpath_overrides_runpath
=yes
17358 hardcode_into_libs
=yes
17359 if test "$with_gnu_ld" = yes; then
17360 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17362 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17365 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17369 sys_lib_dlsearch_path_spec
='/usr/lib'
17373 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17377 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17378 shlibpath_var
=LD_LIBRARY_PATH
17379 shlibpath_overrides_runpath
=no
17380 hardcode_into_libs
=yes
17385 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17386 soname_spec
='${libname}${release}${shared_ext}$major'
17387 shlibpath_var
=LD_LIBRARY_PATH
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17395 $as_echo "$dynamic_linker" >&6; }
17396 test "$dynamic_linker" = no
&& can_build_shared
=no
17398 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17399 if test "$GCC" = yes; then
17400 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17403 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17404 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17406 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17407 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17502 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17504 if test -n "$hardcode_libdir_flag_spec" ||
17505 test -n "$runpath_var" ||
17506 test "X$hardcode_automatic" = "Xyes" ; then
17508 # We can hardcode non-existent directories.
17509 if test "$hardcode_direct" != no
&&
17510 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17511 # have to relink, otherwise we might link with an installed library
17512 # when we should be linking with a yet-to-be-installed one
17513 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17514 test "$hardcode_minus_L" != no
; then
17515 # Linking always hardcodes the temporary library directory.
17516 hardcode_action
=relink
17518 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17519 hardcode_action
=immediate
17522 # We cannot hardcode anything, or else we can only hardcode existing
17524 hardcode_action
=unsupported
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17527 $as_echo "$hardcode_action" >&6; }
17529 if test "$hardcode_action" = relink ||
17530 test "$inherit_rpath" = yes; then
17531 # Fast installation is not supported
17532 enable_fast_install
=no
17533 elif test "$shlibpath_overrides_runpath" = yes ||
17534 test "$enable_shared" = no
; then
17535 # Fast installation is not necessary
17536 enable_fast_install
=needless
17544 if test "x$enable_dlopen" != xyes
; then
17545 enable_dlopen
=unknown
17546 enable_dlopen_self
=unknown
17547 enable_dlopen_self_static
=unknown
17554 lt_cv_dlopen
="load_add_on"
17556 lt_cv_dlopen_self
=yes
17559 mingw
* | pw32
* | cegcc
*)
17560 lt_cv_dlopen
="LoadLibrary"
17565 lt_cv_dlopen
="dlopen"
17570 # if libdl is installed we need to link against it
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17572 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17573 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17574 $as_echo_n "(cached) " >&6
17576 ac_check_lib_save_LIBS
=$LIBS
17578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17579 /* end confdefs.h. */
17581 /* Override any GCC internal prototype to avoid an error.
17582 Use char because int might match the return type of a GCC
17583 builtin and then its argument prototype would still apply. */
17596 if ac_fn_c_try_link
"$LINENO"; then :
17597 ac_cv_lib_dl_dlopen
=yes
17599 ac_cv_lib_dl_dlopen
=no
17601 rm -f core conftest.err conftest.
$ac_objext \
17602 conftest
$ac_exeext conftest.
$ac_ext
17603 LIBS
=$ac_check_lib_save_LIBS
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17606 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17607 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17608 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17611 lt_cv_dlopen
="dyld"
17613 lt_cv_dlopen_self
=yes
17620 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17621 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17622 lt_cv_dlopen
="shl_load"
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17625 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17626 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17627 $as_echo_n "(cached) " >&6
17629 ac_check_lib_save_LIBS
=$LIBS
17631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17632 /* end confdefs.h. */
17634 /* Override any GCC internal prototype to avoid an error.
17635 Use char because int might match the return type of a GCC
17636 builtin and then its argument prototype would still apply. */
17644 return shl_load ();
17649 if ac_fn_c_try_link
"$LINENO"; then :
17650 ac_cv_lib_dld_shl_load
=yes
17652 ac_cv_lib_dld_shl_load
=no
17654 rm -f core conftest.err conftest.
$ac_objext \
17655 conftest
$ac_exeext conftest.
$ac_ext
17656 LIBS
=$ac_check_lib_save_LIBS
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17659 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17660 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17661 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17663 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17664 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17665 lt_cv_dlopen
="dlopen"
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17668 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17669 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17670 $as_echo_n "(cached) " >&6
17672 ac_check_lib_save_LIBS
=$LIBS
17674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17675 /* end confdefs.h. */
17677 /* Override any GCC internal prototype to avoid an error.
17678 Use char because int might match the return type of a GCC
17679 builtin and then its argument prototype would still apply. */
17692 if ac_fn_c_try_link
"$LINENO"; then :
17693 ac_cv_lib_dl_dlopen
=yes
17695 ac_cv_lib_dl_dlopen
=no
17697 rm -f core conftest.err conftest.
$ac_objext \
17698 conftest
$ac_exeext conftest.
$ac_ext
17699 LIBS
=$ac_check_lib_save_LIBS
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17702 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17703 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17704 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17707 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17708 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17709 $as_echo_n "(cached) " >&6
17711 ac_check_lib_save_LIBS
=$LIBS
17712 LIBS
="-lsvld $LIBS"
17713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17714 /* end confdefs.h. */
17716 /* Override any GCC internal prototype to avoid an error.
17717 Use char because int might match the return type of a GCC
17718 builtin and then its argument prototype would still apply. */
17731 if ac_fn_c_try_link
"$LINENO"; then :
17732 ac_cv_lib_svld_dlopen
=yes
17734 ac_cv_lib_svld_dlopen
=no
17736 rm -f core conftest.err conftest.
$ac_objext \
17737 conftest
$ac_exeext conftest.
$ac_ext
17738 LIBS
=$ac_check_lib_save_LIBS
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17741 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17742 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17743 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17746 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17747 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17748 $as_echo_n "(cached) " >&6
17750 ac_check_lib_save_LIBS
=$LIBS
17752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17753 /* end confdefs.h. */
17755 /* Override any GCC internal prototype to avoid an error.
17756 Use char because int might match the return type of a GCC
17757 builtin and then its argument prototype would still apply. */
17765 return dld_link ();
17770 if ac_fn_c_try_link
"$LINENO"; then :
17771 ac_cv_lib_dld_dld_link
=yes
17773 ac_cv_lib_dld_dld_link
=no
17775 rm -f core conftest.err conftest.
$ac_objext \
17776 conftest
$ac_exeext conftest.
$ac_ext
17777 LIBS
=$ac_check_lib_save_LIBS
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17780 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17781 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17782 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17803 if test "x$lt_cv_dlopen" != xno
; then
17809 case $lt_cv_dlopen in
17811 save_CPPFLAGS
="$CPPFLAGS"
17812 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17814 save_LDFLAGS
="$LDFLAGS"
17815 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17818 LIBS
="$lt_cv_dlopen_libs $LIBS"
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17821 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17822 if test "${lt_cv_dlopen_self+set}" = set; then :
17823 $as_echo_n "(cached) " >&6
17825 if test "$cross_compiling" = yes; then :
17826 lt_cv_dlopen_self
=cross
17828 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17829 lt_status
=$lt_dlunknown
17830 cat > conftest.
$ac_ext <<_LT_EOF
17831 #line 17830 "configure"
17832 #include "confdefs.h"
17841 # define LT_DLGLOBAL RTLD_GLOBAL
17844 # define LT_DLGLOBAL DL_GLOBAL
17846 # define LT_DLGLOBAL 0
17850 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17851 find out it does not work in some platform. */
17852 #ifndef LT_DLLAZY_OR_NOW
17854 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17857 # define LT_DLLAZY_OR_NOW DL_LAZY
17860 # define LT_DLLAZY_OR_NOW RTLD_NOW
17863 # define LT_DLLAZY_OR_NOW DL_NOW
17865 # define LT_DLLAZY_OR_NOW 0
17872 /* When -fvisbility=hidden is used, assume the code has been annotated
17873 correspondingly for the symbols needed. */
17874 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17875 void fnord () __attribute__((visibility("default")));
17878 void fnord () { int i=42; }
17881 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17882 int status = $lt_dlunknown;
17886 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17889 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17890 else puts (dlerror ());
17892 /* dlclose (self); */
17900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17901 (eval $ac_link) 2>&5
17903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17904 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17905 (.
/conftest
; exit; ) >&5 2>/dev
/null
17907 case x
$lt_status in
17908 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17909 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17910 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17913 # compilation failed
17914 lt_cv_dlopen_self
=no
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17922 $as_echo "$lt_cv_dlopen_self" >&6; }
17924 if test "x$lt_cv_dlopen_self" = xyes
; then
17925 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17927 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17928 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17929 $as_echo_n "(cached) " >&6
17931 if test "$cross_compiling" = yes; then :
17932 lt_cv_dlopen_self_static
=cross
17934 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17935 lt_status
=$lt_dlunknown
17936 cat > conftest.
$ac_ext <<_LT_EOF
17937 #line 17936 "configure"
17938 #include "confdefs.h"
17947 # define LT_DLGLOBAL RTLD_GLOBAL
17950 # define LT_DLGLOBAL DL_GLOBAL
17952 # define LT_DLGLOBAL 0
17956 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17957 find out it does not work in some platform. */
17958 #ifndef LT_DLLAZY_OR_NOW
17960 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17963 # define LT_DLLAZY_OR_NOW DL_LAZY
17966 # define LT_DLLAZY_OR_NOW RTLD_NOW
17969 # define LT_DLLAZY_OR_NOW DL_NOW
17971 # define LT_DLLAZY_OR_NOW 0
17978 /* When -fvisbility=hidden is used, assume the code has been annotated
17979 correspondingly for the symbols needed. */
17980 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17981 void fnord () __attribute__((visibility("default")));
17984 void fnord () { int i=42; }
17987 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17988 int status = $lt_dlunknown;
17992 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17995 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17996 else puts (dlerror ());
17998 /* dlclose (self); */
18006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18007 (eval $ac_link) 2>&5
18009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18010 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18011 (.
/conftest
; exit; ) >&5 2>/dev
/null
18013 case x
$lt_status in
18014 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18015 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18016 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18019 # compilation failed
18020 lt_cv_dlopen_self_static
=no
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18028 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18031 CPPFLAGS
="$save_CPPFLAGS"
18032 LDFLAGS
="$save_LDFLAGS"
18037 case $lt_cv_dlopen_self in
18038 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18039 *) enable_dlopen_self
=unknown
;;
18042 case $lt_cv_dlopen_self_static in
18043 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18044 *) enable_dlopen_self_static
=unknown
;;
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18067 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18068 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18069 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18070 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18072 $as_echo "yes" >&6; }
18074 # FIXME - insert some real tests, host_os isn't really good enough
18077 if test -n "$STRIP" ; then
18078 striplib
="$STRIP -x"
18079 old_striplib
="$STRIP -S"
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18081 $as_echo "yes" >&6; }
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18084 $as_echo "no" >&6; }
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18089 $as_echo "no" >&6; }
18105 # Report which library types will actually be built
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18107 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18109 $as_echo "$can_build_shared" >&6; }
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18112 $as_echo_n "checking whether to build shared libraries... " >&6; }
18113 test "$can_build_shared" = "no" && enable_shared
=no
18115 # On AIX, shared libraries and static libraries use the same namespace, and
18116 # are all built from PIC.
18119 test "$enable_shared" = yes && enable_static
=no
18120 if test -n "$RANLIB"; then
18121 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18122 postinstall_cmds
='$RANLIB $lib'
18127 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18128 test "$enable_shared" = yes && enable_static
=no
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18133 $as_echo "$enable_shared" >&6; }
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18136 $as_echo_n "checking whether to build static libraries... " >&6; }
18137 # Make sure either enable_shared or enable_static is yes.
18138 test "$enable_shared" = yes || enable_static
=yes
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18140 $as_echo "$enable_static" >&6; }
18147 ac_cpp
='$CPP $CPPFLAGS'
18148 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18149 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18150 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18154 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18155 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18156 (test "X$CXX" != "Xg++"))) ; then
18158 ac_cpp
='$CXXCPP $CPPFLAGS'
18159 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18160 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18161 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18163 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18164 if test -z "$CXXCPP"; then
18165 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18166 $as_echo_n "(cached) " >&6
18168 # Double quotes because CXXCPP needs to be expanded
18169 for CXXCPP
in "$CXX -E" "/lib/cpp"
18171 ac_preproc_ok
=false
18172 for ac_cxx_preproc_warn_flag
in '' yes
18174 # Use a header file that comes with gcc, so configuring glibc
18175 # with a fresh cross-compiler works.
18176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18177 # <limits.h> exists even on freestanding compilers.
18178 # On the NeXT, cc -E runs the code through the compiler's parser,
18179 # not just through cpp. "Syntax error" is here to catch this case.
18180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18181 /* end confdefs.h. */
18183 # include <limits.h>
18185 # include <assert.h>
18189 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18192 # Broken: fails on valid input.
18195 rm -f conftest.err conftest.
$ac_ext
18197 # OK, works on sane cases. Now check whether nonexistent headers
18198 # can be detected and how.
18199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18200 /* end confdefs.h. */
18201 #include <ac_nonexistent.h>
18203 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18204 # Broken: success on invalid input.
18207 # Passes both tests.
18211 rm -f conftest.err conftest.
$ac_ext
18214 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18215 rm -f conftest.err conftest.
$ac_ext
18216 if $ac_preproc_ok; then :
18221 ac_cv_prog_CXXCPP
=$CXXCPP
18224 CXXCPP
=$ac_cv_prog_CXXCPP
18226 ac_cv_prog_CXXCPP
=$CXXCPP
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18229 $as_echo "$CXXCPP" >&6; }
18230 ac_preproc_ok
=false
18231 for ac_cxx_preproc_warn_flag
in '' yes
18233 # Use a header file that comes with gcc, so configuring glibc
18234 # with a fresh cross-compiler works.
18235 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18236 # <limits.h> exists even on freestanding compilers.
18237 # On the NeXT, cc -E runs the code through the compiler's parser,
18238 # not just through cpp. "Syntax error" is here to catch this case.
18239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18240 /* end confdefs.h. */
18242 # include <limits.h>
18244 # include <assert.h>
18248 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18251 # Broken: fails on valid input.
18254 rm -f conftest.err conftest.
$ac_ext
18256 # OK, works on sane cases. Now check whether nonexistent headers
18257 # can be detected and how.
18258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18259 /* end confdefs.h. */
18260 #include <ac_nonexistent.h>
18262 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18263 # Broken: success on invalid input.
18266 # Passes both tests.
18270 rm -f conftest.err conftest.
$ac_ext
18273 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18274 rm -f conftest.err conftest.
$ac_ext
18275 if $ac_preproc_ok; then :
18278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18280 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18281 See \`config.log' for more details." "$LINENO" 5; }
18285 ac_cpp
='$CPP $CPPFLAGS'
18286 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18287 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18288 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18291 _lt_caught_CXX_error
=yes
18295 ac_cpp
='$CXXCPP $CPPFLAGS'
18296 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18297 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18298 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18300 archive_cmds_need_lc_CXX
=no
18301 allow_undefined_flag_CXX
=
18302 always_export_symbols_CXX
=no
18303 archive_expsym_cmds_CXX
=
18304 compiler_needs_object_CXX
=no
18305 export_dynamic_flag_spec_CXX
=
18306 hardcode_direct_CXX
=no
18307 hardcode_direct_absolute_CXX
=no
18308 hardcode_libdir_flag_spec_CXX
=
18309 hardcode_libdir_flag_spec_ld_CXX
=
18310 hardcode_libdir_separator_CXX
=
18311 hardcode_minus_L_CXX
=no
18312 hardcode_shlibpath_var_CXX
=unsupported
18313 hardcode_automatic_CXX
=no
18314 inherit_rpath_CXX
=no
18316 module_expsym_cmds_CXX
=
18317 link_all_deplibs_CXX
=unknown
18318 old_archive_cmds_CXX
=$old_archive_cmds
18319 reload_flag_CXX
=$reload_flag
18320 reload_cmds_CXX
=$reload_cmds
18321 no_undefined_flag_CXX
=
18322 whole_archive_flag_spec_CXX
=
18323 enable_shared_with_static_runtimes_CXX
=no
18325 # Source file extension for C++ test sources.
18328 # Object file extension for compiled C++ test sources.
18332 # No sense in running all these tests if we already determined that
18333 # the CXX compiler isn't working. Some variables (like enable_shared)
18334 # are currently assumed to apply to all compilers on this platform,
18335 # and will be corrupted by setting them based on a non-working compiler.
18336 if test "$_lt_caught_CXX_error" != yes; then
18337 # Code to be used in simple compile tests
18338 lt_simple_compile_test_code
="int some_variable = 0;"
18340 # Code to be used in simple link tests
18341 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18343 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18350 # If no C compiler was specified, use CC.
18353 # If no C compiler flags were specified, use CFLAGS.
18354 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18356 # Allow CC to be a program name with arguments.
18360 # save warnings/boilerplate of simple test code
18361 ac_outfile
=conftest.
$ac_objext
18362 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18363 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18364 _lt_compiler_boilerplate
=`cat conftest.err`
18367 ac_outfile
=conftest.
$ac_objext
18368 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18369 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18370 _lt_linker_boilerplate
=`cat conftest.err`
18374 # Allow CC to be a program name with arguments.
18379 lt_save_with_gnu_ld
=$with_gnu_ld
18380 lt_save_path_LD
=$lt_cv_path_LD
18381 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18382 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18384 $as_unset lt_cv_prog_gnu_ld
18386 if test -n "${lt_cv_path_LDCXX+set}"; then
18387 lt_cv_path_LD
=$lt_cv_path_LDCXX
18389 $as_unset lt_cv_path_LD
18391 test -z "${LDCXX+set}" || LD
=$LDCXX
18395 for cc_temp
in $compiler""; do
18397 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18398 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18403 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18406 if test -n "$compiler"; then
18407 # We don't want -fno-exception when compiling C++ code, so set the
18408 # no_builtin_flag separately
18409 if test "$GXX" = yes; then
18410 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18412 lt_prog_compiler_no_builtin_flag_CXX
=
18415 if test "$GXX" = yes; then
18416 # Set up default GNU C++ configuration
18420 # Check whether --with-gnu-ld was given.
18421 if test "${with_gnu_ld+set}" = set; then :
18422 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18428 if test "$GCC" = yes; then
18429 # Check if gcc -print-prog-name=ld gives a path.
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18431 $as_echo_n "checking for ld used by $CC... " >&6; }
18434 # gcc leaves a trailing carriage return which upsets mingw
18435 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18437 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18440 # Accept absolute paths.
18442 re_direlt
='/[^/][^/]*/\.\./'
18443 # Canonicalize the pathname of ld
18444 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18445 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18446 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18448 test -z "$LD" && LD
="$ac_prog"
18451 # If it fails, then pretend we aren't using GCC.
18455 # If it is relative, then search for the first ld in PATH.
18456 with_gnu_ld
=unknown
18459 elif test "$with_gnu_ld" = yes; then
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18461 $as_echo_n "checking for GNU ld... " >&6; }
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18464 $as_echo_n "checking for non-GNU ld... " >&6; }
18466 if test "${lt_cv_path_LD+set}" = set; then :
18467 $as_echo_n "(cached) " >&6
18469 if test -z "$LD"; then
18470 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18471 for ac_dir
in $PATH; do
18473 test -z "$ac_dir" && ac_dir
=.
18474 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18475 lt_cv_path_LD
="$ac_dir/$ac_prog"
18476 # Check to see if the program is GNU ld. I'd rather use --version,
18477 # but apparently some variants of GNU ld only accept -v.
18478 # Break only if it was the GNU/non-GNU ld that we prefer.
18479 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18480 *GNU
* |
*'with BFD'*)
18481 test "$with_gnu_ld" != no
&& break
18484 test "$with_gnu_ld" != yes && break
18491 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18495 LD
="$lt_cv_path_LD"
18496 if test -n "$LD"; then
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18498 $as_echo "$LD" >&6; }
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18501 $as_echo "no" >&6; }
18503 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18505 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18506 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18507 $as_echo_n "(cached) " >&6
18509 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18510 case `$LD -v 2>&1 </dev/null` in
18511 *GNU
* |
*'with BFD'*)
18512 lt_cv_prog_gnu_ld
=yes
18515 lt_cv_prog_gnu_ld
=no
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18520 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18521 with_gnu_ld
=$lt_cv_prog_gnu_ld
18529 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18530 # archiving commands below assume that GNU ld is being used.
18531 if test "$with_gnu_ld" = yes; then
18532 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18533 archive_expsym_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18535 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18536 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18538 # If archive_cmds runs LD, not CC, wlarc should be empty
18539 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18540 # investigate it a little bit more. (MM)
18543 # ancient GNU ld didn't support --whole-archive et. al.
18544 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18545 $GREP 'no-whole-archive' > /dev
/null
; then
18546 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18548 whole_archive_flag_spec_CXX
=
18554 # A generic and very simple default shared library creation
18555 # command for GNU C++ for the case where it uses the native
18556 # linker, instead of GNU ld. If possible, this setting should
18557 # overridden to take advantage of the native linker features on
18558 # the platform it is being used on.
18559 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18562 # Commands to make compiler produce verbose output that lists
18563 # what "hidden" libraries, object files and flags are used when
18564 # linking a shared library.
18565 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18573 # PORTME: fill in a description of your system's C++ link characteristics
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18575 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18579 # FIXME: insert proper C++ library support
18583 if test "$host_cpu" = ia64
; then
18584 # On IA64, the linker does run time linking by default, so we don't
18585 # have to do anything special.
18586 aix_use_runtimelinking
=no
18587 exp_sym_flag
='-Bexport'
18590 aix_use_runtimelinking
=no
18592 # Test if we are trying to use run time linking or normal
18593 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18594 # need to do runtime linking.
18595 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18596 for ld_flag
in $LDFLAGS; do
18599 aix_use_runtimelinking
=yes
18607 exp_sym_flag
='-bexport'
18608 no_entry_flag
='-bnoentry'
18611 # When large executables or shared objects are built, AIX ld can
18612 # have problems creating the table of contents. If linking a library
18613 # or program results in "error TOC overflow" add -mminimal-toc to
18614 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18615 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18617 archive_cmds_CXX
=''
18618 hardcode_direct_CXX
=yes
18619 hardcode_direct_absolute_CXX
=yes
18620 hardcode_libdir_separator_CXX
=':'
18621 link_all_deplibs_CXX
=yes
18622 file_list_spec_CXX
='${wl}-f,'
18624 if test "$GXX" = yes; then
18625 case $host_os in aix4.
[012]|aix4.
[012].
*)
18626 # We only want to do this on AIX 4.2 and lower, the check
18627 # below for broken collect2 doesn't work under 4.3+
18628 collect2name
=`${CC} -print-prog-name=collect2`
18629 if test -f "$collect2name" &&
18630 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18632 # We have reworked collect2
18635 # We have old collect2
18636 hardcode_direct_CXX
=unsupported
18637 # It fails to find uninstalled libraries when the uninstalled
18638 # path is not listed in the libpath. Setting hardcode_minus_L
18639 # to unsupported forces relinking
18640 hardcode_minus_L_CXX
=yes
18641 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18642 hardcode_libdir_separator_CXX
=
18645 shared_flag
='-shared'
18646 if test "$aix_use_runtimelinking" = yes; then
18647 shared_flag
="$shared_flag "'${wl}-G'
18651 if test "$host_cpu" = ia64
; then
18652 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18653 # chokes on -Wl,-G. The following line is correct:
18656 if test "$aix_use_runtimelinking" = yes; then
18657 shared_flag
='${wl}-G'
18659 shared_flag
='${wl}-bM:SRE'
18664 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18665 # It seems that -bexpall does not export symbols beginning with
18666 # underscore (_), so it is better to generate a list of symbols to
18668 always_export_symbols_CXX
=yes
18669 if test "$aix_use_runtimelinking" = yes; then
18670 # Warning - without using the other runtime loading flags (-brtl),
18671 # -berok will link without error, but may produce a broken library.
18672 allow_undefined_flag_CXX
='-berok'
18673 # Determine the default libpath from the value encoded in an empty
18675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18676 /* end confdefs.h. */
18686 if ac_fn_cxx_try_link
"$LINENO"; then :
18688 lt_aix_libpath_sed
='
18689 /Import File Strings/,/^$/ {
18695 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18696 # Check for a 64-bit object if we didn't find anything.
18697 if test -z "$aix_libpath"; then
18698 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18701 rm -f core conftest.err conftest.
$ac_objext \
18702 conftest
$ac_exeext conftest.
$ac_ext
18703 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18705 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18707 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"
18709 if test "$host_cpu" = ia64
; then
18710 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18711 allow_undefined_flag_CXX
="-z nodefs"
18712 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"
18714 # Determine the default libpath from the value encoded in an
18715 # empty executable.
18716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18717 /* end confdefs.h. */
18727 if ac_fn_cxx_try_link
"$LINENO"; then :
18729 lt_aix_libpath_sed
='
18730 /Import File Strings/,/^$/ {
18736 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18737 # Check for a 64-bit object if we didn't find anything.
18738 if test -z "$aix_libpath"; then
18739 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18742 rm -f core conftest.err conftest.
$ac_objext \
18743 conftest
$ac_exeext conftest.
$ac_ext
18744 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18746 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18747 # Warning - without using the other run time loading flags,
18748 # -berok will link without error, but may produce a broken library.
18749 no_undefined_flag_CXX
=' ${wl}-bernotok'
18750 allow_undefined_flag_CXX
=' ${wl}-berok'
18751 if test "$with_gnu_ld" = yes; then
18752 # We only use this code for GNU lds that support --whole-archive.
18753 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18755 # Exported symbols can be pulled into shared objects from archives
18756 whole_archive_flag_spec_CXX
='$convenience'
18758 archive_cmds_need_lc_CXX
=yes
18759 # This is similar to how AIX traditionally builds its shared
18761 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'
18767 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18768 allow_undefined_flag_CXX
=unsupported
18769 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18770 # support --undefined. This deserves some investigation. FIXME
18771 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18778 case $cc_basename in
18780 # FIXME: insert proper C++ library support
18786 cygwin
* | mingw
* | pw32
* | cegcc
*)
18787 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18788 # as there is no search path for DLLs.
18789 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18790 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18791 allow_undefined_flag_CXX
=unsupported
18792 always_export_symbols_CXX
=no
18793 enable_shared_with_static_runtimes_CXX
=yes
18795 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18796 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'
18797 # If the export-symbols file already is a .def file (1st line
18798 # is EXPORTS), use it as is; otherwise, prepend...
18799 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18800 cp $export_symbols $output_objdir/$soname.def;
18802 echo EXPORTS > $output_objdir/$soname.def;
18803 cat $export_symbols >> $output_objdir/$soname.def;
18805 $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'
18810 darwin
* | rhapsody
*)
18813 archive_cmds_need_lc_CXX
=no
18814 hardcode_direct_CXX
=no
18815 hardcode_automatic_CXX
=yes
18816 hardcode_shlibpath_var_CXX
=unsupported
18817 if test "$lt_cv_ld_force_load" = "yes"; then
18818 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\"`'
18820 whole_archive_flag_spec_CXX
=''
18822 link_all_deplibs_CXX
=yes
18823 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18824 case $cc_basename in
18825 ifort
*) _lt_dar_can_shared
=yes ;;
18826 *) _lt_dar_can_shared
=$GCC ;;
18828 if test "$_lt_dar_can_shared" = "yes"; then
18829 output_verbose_link_cmd
=func_echo_all
18830 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}"
18831 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18832 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}"
18833 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}"
18834 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18835 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}"
18836 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}"
18846 case $cc_basename in
18848 # FIXME: insert proper C++ library support
18852 # Green Hills C++ Compiler
18853 # FIXME: insert proper C++ library support
18857 # FIXME: insert proper C++ library support
18864 # C++ shared libraries reported to be fairly broken before
18870 archive_cmds_need_lc_CXX
=no
18873 freebsd
* | dragonfly
*)
18874 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18883 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18884 link_all_deplibs_CXX
=yes
18888 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18889 hardcode_libdir_separator_CXX
=:
18890 export_dynamic_flag_spec_CXX
='${wl}-E'
18891 hardcode_direct_CXX
=yes
18892 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18893 # but as the default
18894 # location of the library.
18896 case $cc_basename in
18898 # FIXME: insert proper C++ library support
18902 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'
18903 # Commands to make compiler produce verbose output that lists
18904 # what "hidden" libraries, object files and flags are used when
18905 # linking a shared library.
18907 # There doesn't appear to be a way to prevent this compiler from
18908 # explicitly linking system object files so we need to strip them
18909 # from the output so that they don't get included in the library
18911 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"'
18914 if test "$GXX" = yes; then
18915 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'
18917 # FIXME: insert proper C++ library support
18925 if test $with_gnu_ld = no
; then
18926 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18927 hardcode_libdir_separator_CXX
=:
18933 export_dynamic_flag_spec_CXX
='${wl}-E'
18939 hardcode_direct_CXX
=no
18940 hardcode_shlibpath_var_CXX
=no
18943 hardcode_direct_CXX
=yes
18944 hardcode_direct_absolute_CXX
=yes
18945 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18946 # but as the default
18947 # location of the library.
18951 case $cc_basename in
18953 # FIXME: insert proper C++ library support
18959 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18962 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18965 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18968 # Commands to make compiler produce verbose output that lists
18969 # what "hidden" libraries, object files and flags are used when
18970 # linking a shared library.
18972 # There doesn't appear to be a way to prevent this compiler from
18973 # explicitly linking system object files so we need to strip them
18974 # from the output so that they don't get included in the library
18976 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"'
18979 if test "$GXX" = yes; then
18980 if test $with_gnu_ld = no
; then
18983 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18986 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18989 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'
18994 # FIXME: insert proper C++ library support
19002 hardcode_direct_CXX
=no
19003 hardcode_shlibpath_var_CXX
=no
19004 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19005 export_dynamic_flag_spec_CXX
='${wl}-E'
19006 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19007 # Instead, shared libraries are loaded at an image base (0x10000000 by
19008 # default) and relocated if they conflict, which is a slow very memory
19009 # consuming and fragmenting process. To avoid this, we pick a random,
19010 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19011 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19012 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'
19013 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'
19016 case $cc_basename in
19019 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'
19021 # Archives containing C++ object files must be created using
19022 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19023 # necessary to make sure instantiated templates are included
19025 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19028 if test "$GXX" = yes; then
19029 if test "$with_gnu_ld" = no
; then
19030 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'
19032 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'
19035 link_all_deplibs_CXX
=yes
19038 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19039 hardcode_libdir_separator_CXX
=:
19040 inherit_rpath_CXX
=yes
19043 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19044 case $cc_basename in
19046 # Kuck and Associates, Inc. (KAI) C++ Compiler
19048 # KCC will only create a shared library if the output file
19049 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19050 # to its proper name (with version) after linking.
19051 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'
19052 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'
19053 # Commands to make compiler produce verbose output that lists
19054 # what "hidden" libraries, object files and flags are used when
19055 # linking a shared library.
19057 # There doesn't appear to be a way to prevent this compiler from
19058 # explicitly linking system object files so we need to strip them
19059 # from the output so that they don't get included in the library
19061 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"'
19063 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19064 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19066 # Archives containing C++ object files must be created using
19067 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19068 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19073 # version 8.0 and above of icpc choke on multiply defined symbols
19074 # if we add $predep_objects and $postdep_objects, however 7.1 and
19075 # earlier do not add the objects themselves.
19076 case `$CC -V 2>&1` in
19078 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19079 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'
19081 *) # Version 8.0 or newer
19084 ia64
*) tmp_idyn
=' -i_dynamic';;
19086 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19087 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'
19090 archive_cmds_need_lc_CXX
=no
19091 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19092 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19093 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19096 # Portland Group C++ compiler
19098 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19099 prelink_cmds_CXX
='tpldir=Template.dir~
19101 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19102 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19103 old_archive_cmds_CXX
='tpldir=Template.dir~
19105 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19106 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19108 archive_cmds_CXX
='tpldir=Template.dir~
19110 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19111 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19112 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19114 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19115 $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'
19117 *) # Version 6 and above use weak symbols
19118 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19119 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'
19123 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19124 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19125 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'
19129 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19130 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'
19132 runpath_var
=LD_RUN_PATH
19133 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19134 hardcode_libdir_separator_CXX
=:
19136 # Commands to make compiler produce verbose output that lists
19137 # what "hidden" libraries, object files and flags are used when
19138 # linking a shared library.
19140 # There doesn't appear to be a way to prevent this compiler from
19141 # explicitly linking system object files so we need to strip them
19142 # from the output so that they don't get included in the library
19144 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'
19146 xl
* | mpixl
* | bgxl
*)
19147 # IBM XL 8.0 on PPC, with GNU ld
19148 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19149 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19150 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19151 if test "x$supports_anon_versioning" = xyes
; then
19152 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19153 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19154 echo "local: *; };" >> $output_objdir/$libname.ver~
19155 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19159 case `$CC -V 2>&1 | sed 5q` in
19162 no_undefined_flag_CXX
=' -zdefs'
19163 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19164 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'
19165 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19166 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'
19167 compiler_needs_object_CXX
=yes
19169 # Not sure whether something based on
19170 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19172 output_verbose_link_cmd
='func_echo_all'
19174 # Archives containing C++ object files must be created using
19175 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19176 # necessary to make sure instantiated templates are included
19178 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19186 # FIXME: insert proper C++ library support
19191 # FIXME: insert proper C++ library support
19196 case $cc_basename in
19198 # FIXME: insert proper C++ library support
19202 # FIXME: insert proper C++ library support
19209 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19210 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19212 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19213 hardcode_direct_CXX
=yes
19214 hardcode_shlibpath_var_CXX
=no
19216 # Workaround some broken pre-1.5 toolchains
19217 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19225 # C++ shared libraries are fairly broken
19230 if test -f /usr
/libexec
/ld.so
; then
19231 hardcode_direct_CXX
=yes
19232 hardcode_shlibpath_var_CXX
=no
19233 hardcode_direct_absolute_CXX
=yes
19234 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19235 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19236 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19237 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19238 export_dynamic_flag_spec_CXX
='${wl}-E'
19239 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19241 output_verbose_link_cmd
=func_echo_all
19247 osf3
* | osf4
* | osf5
*)
19248 case $cc_basename in
19250 # Kuck and Associates, Inc. (KAI) C++ Compiler
19252 # KCC will only create a shared library if the output file
19253 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19254 # to its proper name (with version) after linking.
19255 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'
19257 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19258 hardcode_libdir_separator_CXX
=:
19260 # Archives containing C++ object files must be created using
19261 # the KAI C++ compiler.
19263 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19264 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19268 # Rational C++ 2.4.1
19269 # FIXME: insert proper C++ library support
19275 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19276 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'
19277 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19280 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19281 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'
19282 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19283 echo "-hidden">> $lib.exp~
19284 $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~
19286 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19290 hardcode_libdir_separator_CXX
=:
19292 # Commands to make compiler produce verbose output that lists
19293 # what "hidden" libraries, object files and flags are used when
19294 # linking a shared library.
19296 # There doesn't appear to be a way to prevent this compiler from
19297 # explicitly linking system object files so we need to strip them
19298 # from the output so that they don't get included in the library
19300 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"'
19303 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19304 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19307 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'
19310 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'
19314 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19315 hardcode_libdir_separator_CXX
=:
19317 # Commands to make compiler produce verbose output that lists
19318 # what "hidden" libraries, object files and flags are used when
19319 # linking a shared library.
19320 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19323 # FIXME: insert proper C++ library support
19331 # FIXME: insert proper C++ library support
19336 case $cc_basename in
19339 # FIXME: insert proper C++ library support
19344 # FIXME: insert proper C++ library support
19348 # FIXME: insert proper C++ library support
19355 case $cc_basename in
19357 # Sun C++ 4.2, 5.x and Centerline C++
19358 archive_cmds_need_lc_CXX
=yes
19359 no_undefined_flag_CXX
=' -zdefs'
19360 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19361 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19362 $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'
19364 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19365 hardcode_shlibpath_var_CXX
=no
19367 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19369 # The compiler driver will combine and reorder linker options,
19370 # but understands `-z linker_flag'.
19371 # Supported since Solaris 2.6 (maybe 2.5.1?)
19372 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19375 link_all_deplibs_CXX
=yes
19377 output_verbose_link_cmd
='func_echo_all'
19379 # Archives containing C++ object files must be created using
19380 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19381 # necessary to make sure instantiated templates are included
19383 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19386 # Green Hills C++ Compiler
19387 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19389 # The C++ compiler must be used to create the archive.
19390 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19393 # GNU C++ compiler with Solaris linker
19394 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19395 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19396 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19397 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19398 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19399 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19401 # Commands to make compiler produce verbose output that lists
19402 # what "hidden" libraries, object files and flags are used when
19403 # linking a shared library.
19404 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19406 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19408 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19409 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19410 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19412 # Commands to make compiler produce verbose output that lists
19413 # what "hidden" libraries, object files and flags are used when
19414 # linking a shared library.
19415 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19418 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19420 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19422 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19430 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19431 no_undefined_flag_CXX
='${wl}-z,text'
19432 archive_cmds_need_lc_CXX
=no
19433 hardcode_shlibpath_var_CXX
=no
19434 runpath_var
='LD_RUN_PATH'
19436 case $cc_basename in
19438 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19439 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19442 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19443 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19448 sysv5
* | sco3.2v5
* | sco5v6
*)
19449 # Note: We can NOT use -z defs as we might desire, because we do not
19450 # link with -lc, and that would cause any symbols used from libc to
19451 # always be unresolved, which means just about no library would
19452 # ever link correctly. If we're not using GNU ld we use -z text
19453 # though, which does catch some bad symbols but isn't as heavy-handed
19455 no_undefined_flag_CXX
='${wl}-z,text'
19456 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19457 archive_cmds_need_lc_CXX
=no
19458 hardcode_shlibpath_var_CXX
=no
19459 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19460 hardcode_libdir_separator_CXX
=':'
19461 link_all_deplibs_CXX
=yes
19462 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19463 runpath_var
='LD_RUN_PATH'
19465 case $cc_basename in
19467 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19468 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19469 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19470 '"$old_archive_cmds_CXX"
19471 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19472 '"$reload_cmds_CXX"
19475 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19476 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19482 case $cc_basename in
19484 # NonStop-UX NCC 3.20
19485 # FIXME: insert proper C++ library support
19489 # FIXME: insert proper C++ library support
19496 # FIXME: insert proper C++ library support
19501 # FIXME: insert proper C++ library support
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19507 $as_echo "$ld_shlibs_CXX" >&6; }
19508 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19514 ## There is no encapsulation within the following macros, do not change
19515 ## the running order or otherwise move them around unless you know exactly
19516 ## what you are doing...
19517 # Dependencies to place before and after the object being linked:
19518 predep_objects_CXX
=
19519 postdep_objects_CXX
=
19522 compiler_lib_search_path_CXX
=
19524 cat > conftest.
$ac_ext <<_LT_EOF
19528 Foo (void) { a = 0; }
19534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19535 (eval $ac_compile) 2>&5
19537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19538 test $ac_status = 0; }; then
19539 # Parse the compiler output and extract the necessary
19540 # objects, libraries and library flags.
19542 # Sentinel used to keep track of whether or not we are before
19543 # the conftest object file.
19544 pre_test_object_deps_done
=no
19546 for p
in `eval "$output_verbose_link_cmd"`; do
19550 # Some compilers place space between "-{L,R}" and the path.
19551 # Remove the space.
19552 if test $p = "-L" ||
19553 test $p = "-R"; then
19560 if test "$pre_test_object_deps_done" = no
; then
19563 # Internal compiler library paths should come after those
19564 # provided the user. The postdeps already come after the
19565 # user supplied libs so there is no need to process them.
19566 if test -z "$compiler_lib_search_path_CXX"; then
19567 compiler_lib_search_path_CXX
="${prev}${p}"
19569 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19572 # The "-l" case would never come before the object being
19573 # linked, so don't bother handling this case.
19576 if test -z "$postdeps_CXX"; then
19577 postdeps_CXX
="${prev}${p}"
19579 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19585 # This assumes that the test object file only shows up
19586 # once in the compiler output.
19587 if test "$p" = "conftest.$objext"; then
19588 pre_test_object_deps_done
=yes
19592 if test "$pre_test_object_deps_done" = no
; then
19593 if test -z "$predep_objects_CXX"; then
19594 predep_objects_CXX
="$p"
19596 predep_objects_CXX
="$predep_objects_CXX $p"
19599 if test -z "$postdep_objects_CXX"; then
19600 postdep_objects_CXX
="$p"
19602 postdep_objects_CXX
="$postdep_objects_CXX $p"
19607 *) ;; # Ignore the rest.
19615 echo "libtool.m4: error: problem compiling CXX test program"
19618 $RM -f confest.
$objext
19620 # PORTME: override above test on systems where it is broken
19623 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19624 # hack all around it, let's just trust "g++" to DTRT.
19625 predep_objects_CXX
=
19626 postdep_objects_CXX
=
19631 case `$CC -V 2>&1 | sed 5q` in
19635 # The more standards-conforming stlport4 library is
19636 # incompatible with the Cstd library. Avoid specifying
19637 # it if it's in CXXFLAGS. Ignore libCrun as
19638 # -library=stlport4 depends on it.
19639 case " $CXX $CXXFLAGS " in
19640 *" -library=stlport4 "*)
19641 solaris_use_stlport4
=yes
19645 if test "$solaris_use_stlport4" != yes; then
19646 postdeps_CXX
='-library=Cstd -library=Crun'
19653 case $cc_basename in
19655 # The more standards-conforming stlport4 library is
19656 # incompatible with the Cstd library. Avoid specifying
19657 # it if it's in CXXFLAGS. Ignore libCrun as
19658 # -library=stlport4 depends on it.
19659 case " $CXX $CXXFLAGS " in
19660 *" -library=stlport4 "*)
19661 solaris_use_stlport4
=yes
19665 # Adding this requires a known-good setup of shared libraries for
19666 # Sun compiler versions before 5.6, else PIC objects from an old
19667 # archive will be linked into the output, leading to subtle bugs.
19668 if test "$solaris_use_stlport4" != yes; then
19669 postdeps_CXX
='-library=Cstd -library=Crun'
19677 case " $postdeps_CXX " in
19678 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19680 compiler_lib_search_dirs_CXX
=
19681 if test -n "${compiler_lib_search_path_CXX}"; then
19682 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19715 lt_prog_compiler_wl_CXX
=
19716 lt_prog_compiler_pic_CXX
=
19717 lt_prog_compiler_static_CXX
=
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19720 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19722 # C++ specific cases for pic, static, wl, etc.
19723 if test "$GXX" = yes; then
19724 lt_prog_compiler_wl_CXX
='-Wl,'
19725 lt_prog_compiler_static_CXX
='-static'
19729 # All AIX code is PIC.
19730 if test "$host_cpu" = ia64
; then
19731 # AIX 5 now supports IA64 processor
19732 lt_prog_compiler_static_CXX
='-Bstatic'
19734 lt_prog_compiler_pic_CXX
='-fPIC'
19740 # see comment about AmigaOS4 .so support
19741 lt_prog_compiler_pic_CXX
='-fPIC'
19744 # FIXME: we need at least 68020 code to build shared libraries, but
19745 # adding the `-m68020' flag to GCC prevents building anything better,
19747 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19752 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19753 # PIC is the default for these OSes.
19755 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19756 # This hack is so that the source file can tell whether it is being
19757 # built for inclusion in a dll (and should export symbols for example).
19758 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19759 # (--disable-auto-import) libraries
19760 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19762 darwin
* | rhapsody
*)
19763 # PIC is the default on this platform
19764 # Common symbols not allowed in MH_DYLIB files
19765 lt_prog_compiler_pic_CXX
='-fno-common'
19768 # DJGPP does not support shared libraries at all
19769 lt_prog_compiler_pic_CXX
=
19772 # PIC is the default for Haiku.
19773 # The "-static" flag exists, but is broken.
19774 lt_prog_compiler_static_CXX
=
19777 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19778 # Instead, we relocate shared libraries at runtime.
19781 if test -d /usr
/nec
; then
19782 lt_prog_compiler_pic_CXX
=-Kconform_pic
19786 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19787 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19788 # sets the default TLS model and affects inlining.
19793 lt_prog_compiler_pic_CXX
='-fPIC'
19798 # QNX uses GNU C++, but need to define -shared option too, otherwise
19799 # it will coredump.
19800 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19803 lt_prog_compiler_pic_CXX
='-fPIC'
19809 # All AIX code is PIC.
19810 if test "$host_cpu" = ia64
; then
19811 # AIX 5 now supports IA64 processor
19812 lt_prog_compiler_static_CXX
='-Bstatic'
19814 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19818 case $cc_basename in
19820 # Green Hills C++ Compiler
19821 # _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"
19826 case $cc_basename in
19828 lt_prog_compiler_pic_CXX
='-KPIC'
19831 # Green Hills C++ Compiler
19832 lt_prog_compiler_pic_CXX
='-pic'
19838 freebsd
* | dragonfly
*)
19839 # FreeBSD uses GNU C++
19841 hpux9
* | hpux10
* | hpux11
*)
19842 case $cc_basename in
19844 lt_prog_compiler_wl_CXX
='-Wl,'
19845 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19846 if test "$host_cpu" != ia64
; then
19847 lt_prog_compiler_pic_CXX
='+Z'
19851 lt_prog_compiler_wl_CXX
='-Wl,'
19852 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19858 lt_prog_compiler_pic_CXX
='+Z'
19867 # This is c89, which is MS Visual C++ (no shared libs)
19868 # Anyone wants to do a port?
19870 irix5
* | irix6
* | nonstopux
*)
19871 case $cc_basename in
19873 lt_prog_compiler_wl_CXX
='-Wl,'
19874 lt_prog_compiler_static_CXX
='-non_shared'
19875 # CC pic flag -KPIC is the default.
19881 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19882 case $cc_basename in
19885 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19886 lt_prog_compiler_pic_CXX
='-fPIC'
19889 # old Intel C++ for x86_64 which still supported -KPIC.
19890 lt_prog_compiler_wl_CXX
='-Wl,'
19891 lt_prog_compiler_pic_CXX
='-KPIC'
19892 lt_prog_compiler_static_CXX
='-static'
19895 # Intel C++, used to be incompatible with GCC.
19896 # ICC 10 doesn't accept -KPIC any more.
19897 lt_prog_compiler_wl_CXX
='-Wl,'
19898 lt_prog_compiler_pic_CXX
='-fPIC'
19899 lt_prog_compiler_static_CXX
='-static'
19902 # Portland Group C++ compiler
19903 lt_prog_compiler_wl_CXX
='-Wl,'
19904 lt_prog_compiler_pic_CXX
='-fpic'
19905 lt_prog_compiler_static_CXX
='-Bstatic'
19909 # Make sure the PIC flag is empty. It appears that all Alpha
19910 # Linux and Compaq Tru64 Unix objects are PIC.
19911 lt_prog_compiler_pic_CXX
=
19912 lt_prog_compiler_static_CXX
='-non_shared'
19914 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19915 # IBM XL 8.0, 9.0 on PPC and BlueGene
19916 lt_prog_compiler_wl_CXX
='-Wl,'
19917 lt_prog_compiler_pic_CXX
='-qpic'
19918 lt_prog_compiler_static_CXX
='-qstaticlink'
19921 case `$CC -V 2>&1 | sed 5q` in
19924 lt_prog_compiler_pic_CXX
='-KPIC'
19925 lt_prog_compiler_static_CXX
='-Bstatic'
19926 lt_prog_compiler_wl_CXX
='-Qoption ld '
19937 case $cc_basename in
19939 lt_prog_compiler_pic_CXX
='-W c,exportall'
19948 # QNX uses GNU C++, but need to define -shared option too, otherwise
19949 # it will coredump.
19950 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19952 osf3
* | osf4
* | osf5
*)
19953 case $cc_basename in
19955 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19958 # Rational C++ 2.4.1
19959 lt_prog_compiler_pic_CXX
='-pic'
19962 # Digital/Compaq C++
19963 lt_prog_compiler_wl_CXX
='-Wl,'
19964 # Make sure the PIC flag is empty. It appears that all Alpha
19965 # Linux and Compaq Tru64 Unix objects are PIC.
19966 lt_prog_compiler_pic_CXX
=
19967 lt_prog_compiler_static_CXX
='-non_shared'
19976 case $cc_basename in
19978 # Sun C++ 4.2, 5.x and Centerline C++
19979 lt_prog_compiler_pic_CXX
='-KPIC'
19980 lt_prog_compiler_static_CXX
='-Bstatic'
19981 lt_prog_compiler_wl_CXX
='-Qoption ld '
19984 # Green Hills C++ Compiler
19985 lt_prog_compiler_pic_CXX
='-PIC'
19992 case $cc_basename in
19995 lt_prog_compiler_pic_CXX
='-pic'
19996 lt_prog_compiler_static_CXX
='-Bstatic'
20000 lt_prog_compiler_pic_CXX
='-pic'
20006 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20007 case $cc_basename in
20009 lt_prog_compiler_wl_CXX
='-Wl,'
20010 lt_prog_compiler_pic_CXX
='-KPIC'
20011 lt_prog_compiler_static_CXX
='-Bstatic'
20016 case $cc_basename in
20018 # NonStop-UX NCC 3.20
20019 lt_prog_compiler_pic_CXX
='-KPIC'
20028 lt_prog_compiler_can_build_shared_CXX
=no
20034 # For platforms which do not support PIC, -DPIC is meaningless:
20036 lt_prog_compiler_pic_CXX
=
20039 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20043 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20048 # Check to make sure the PIC flag actually works.
20050 if test -n "$lt_prog_compiler_pic_CXX"; then
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20052 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20053 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20054 $as_echo_n "(cached) " >&6
20056 lt_cv_prog_compiler_pic_works_CXX
=no
20057 ac_outfile
=conftest.
$ac_objext
20058 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20059 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20060 # Insert the option either (1) after the last *FLAGS variable, or
20061 # (2) before a word containing "conftest.", or (3) at the end.
20062 # Note that $ac_compile itself does not contain backslashes and begins
20063 # with a dollar sign (not a hyphen), so the echo should work correctly.
20064 # The option is referenced via a variable to avoid confusing sed.
20065 lt_compile
=`echo "$ac_compile" | $SED \
20066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20068 -e 's:$: $lt_compiler_flag:'`
20069 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20070 (eval "$lt_compile" 2>conftest.err
)
20072 cat conftest.err
>&5
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 if (exit $ac_status) && test -s "$ac_outfile"; then
20075 # The compiler can only warn and ignore the option if not recognized
20076 # So say no if there are warnings other than the usual output.
20077 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20078 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20079 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20080 lt_cv_prog_compiler_pic_works_CXX
=yes
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20087 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20089 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20090 case $lt_prog_compiler_pic_CXX in
20092 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20095 lt_prog_compiler_pic_CXX
=
20096 lt_prog_compiler_can_build_shared_CXX
=no
20104 # Check to make sure the static flag actually works.
20106 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20108 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20109 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20110 $as_echo_n "(cached) " >&6
20112 lt_cv_prog_compiler_static_works_CXX
=no
20113 save_LDFLAGS
="$LDFLAGS"
20114 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20115 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20116 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20117 # The linker can only warn and ignore the option if not recognized
20118 # So say no if there are warnings
20119 if test -s conftest.err
; then
20120 # Append any errors to the config.log.
20121 cat conftest.err
1>&5
20122 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20123 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20124 if diff conftest.exp conftest.er2
>/dev
/null
; then
20125 lt_cv_prog_compiler_static_works_CXX
=yes
20128 lt_cv_prog_compiler_static_works_CXX
=yes
20132 LDFLAGS
="$save_LDFLAGS"
20135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20136 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20138 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20141 lt_prog_compiler_static_CXX
=
20147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20148 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20149 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20150 $as_echo_n "(cached) " >&6
20152 lt_cv_prog_compiler_c_o_CXX
=no
20153 $RM -r conftest
2>/dev
/null
20157 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20159 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20160 # Insert the option either (1) after the last *FLAGS variable, or
20161 # (2) before a word containing "conftest.", or (3) at the end.
20162 # Note that $ac_compile itself does not contain backslashes and begins
20163 # with a dollar sign (not a hyphen), so the echo should work correctly.
20164 lt_compile
=`echo "$ac_compile" | $SED \
20165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20167 -e 's:$: $lt_compiler_flag:'`
20168 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20169 (eval "$lt_compile" 2>out
/conftest.err
)
20171 cat out
/conftest.err
>&5
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20175 # The compiler can only warn and ignore the option if not recognized
20176 # So say no if there are warnings
20177 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20178 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20179 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20180 lt_cv_prog_compiler_c_o_CXX
=yes
20185 # SGI C++ compiler will create directory out/ii_files/ for
20186 # template instantiation
20187 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20188 $RM out
/* && rmdir out
20194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20195 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20200 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20201 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20202 $as_echo_n "(cached) " >&6
20204 lt_cv_prog_compiler_c_o_CXX
=no
20205 $RM -r conftest
2>/dev
/null
20209 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20211 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20212 # Insert the option either (1) after the last *FLAGS variable, or
20213 # (2) before a word containing "conftest.", or (3) at the end.
20214 # Note that $ac_compile itself does not contain backslashes and begins
20215 # with a dollar sign (not a hyphen), so the echo should work correctly.
20216 lt_compile
=`echo "$ac_compile" | $SED \
20217 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20218 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20219 -e 's:$: $lt_compiler_flag:'`
20220 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20221 (eval "$lt_compile" 2>out
/conftest.err
)
20223 cat out
/conftest.err
>&5
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20227 # The compiler can only warn and ignore the option if not recognized
20228 # So say no if there are warnings
20229 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20230 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20231 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20232 lt_cv_prog_compiler_c_o_CXX
=yes
20237 # SGI C++ compiler will create directory out/ii_files/ for
20238 # template instantiation
20239 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20240 $RM out
/* && rmdir out
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20247 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20252 hard_links
="nottested"
20253 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20254 # do not overwrite the value of need_locks provided by the user
20255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20256 $as_echo_n "checking if we can lock with hard links... " >&6; }
20259 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20261 ln conftest.a conftest.b
2>&5 || hard_links
=no
20262 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20264 $as_echo "$hard_links" >&6; }
20265 if test "$hard_links" = no
; then
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20267 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20277 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20279 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20282 # If we're using GNU nm, then we don't want the "-C" option.
20283 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20284 # Also, AIX nm treats weak defined symbols like other global defined
20285 # symbols, whereas GNU nm marks them as "W".
20286 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20287 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'
20289 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'
20293 export_symbols_cmds_CXX
="$ltdll_cmds"
20295 cygwin
* | mingw
* | cegcc
*)
20296 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'
20299 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20302 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20305 $as_echo "$ld_shlibs_CXX" >&6; }
20306 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20308 with_gnu_ld_CXX
=$with_gnu_ld
20316 # Do we need to explicitly link libc?
20318 case "x$archive_cmds_need_lc_CXX" in
20320 # Assume -lc should be added
20321 archive_cmds_need_lc_CXX
=yes
20323 if test "$enable_shared" = yes && test "$GCC" = yes; then
20324 case $archive_cmds_CXX in
20326 # FIXME: we may have to deal with multi-command sequences.
20329 # Test whether the compiler implicitly links with -lc since on some
20330 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20331 # to ld, don't add -lc before -lgcc.
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20333 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20334 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20335 $as_echo_n "(cached) " >&6
20338 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20341 (eval $ac_compile) 2>&5
20343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20344 test $ac_status = 0; } 2>conftest.err
; then
20347 libobjs
=conftest.
$ac_objext
20349 wl
=$lt_prog_compiler_wl_CXX
20350 pic_flag
=$lt_prog_compiler_pic_CXX
20356 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20357 allow_undefined_flag_CXX
=
20358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20359 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20362 test $ac_status = 0; }
20364 lt_cv_archive_cmds_need_lc_CXX
=no
20366 lt_cv_archive_cmds_need_lc_CXX
=yes
20368 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20370 cat conftest.err
1>&5
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20376 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20377 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20448 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20450 library_names_spec
=
20451 libname_spec
='lib$name'
20455 postuninstall_cmds
=
20459 shlibpath_overrides_runpath
=unknown
20461 dynamic_linker
="$host_os ld.so"
20462 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20463 need_lib_prefix
=unknown
20464 hardcode_into_libs
=no
20466 # when you set need_version to no, make sure it does not cause -set_version
20467 # flags to be left without arguments
20468 need_version
=unknown
20473 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20474 shlibpath_var
=LIBPATH
20476 # AIX 3 has no versioning support, so we append a major version to the name.
20477 soname_spec
='${libname}${release}${shared_ext}$major'
20484 hardcode_into_libs
=yes
20485 if test "$host_cpu" = ia64
; then
20486 # AIX 5 supports IA64
20487 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20488 shlibpath_var
=LD_LIBRARY_PATH
20490 # With GCC up to 2.95.x, collect2 would create an import file
20491 # for dependence libraries. The import file would start with
20492 # the line `#! .'. This would cause the generated library to
20493 # depend on `.', always an invalid library. This was fixed in
20494 # development snapshots of GCC prior to 3.0.
20496 aix4 | aix4.
[01] | aix4.
[01].
*)
20497 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20499 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20502 can_build_shared
=no
20506 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20507 # soname into executable. Probably we can add versioning support to
20508 # collect2, so additional links can be useful in future.
20509 if test "$aix_use_runtimelinking" = yes; then
20510 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20511 # instead of lib<name>.a to let people know that these are not
20512 # typical AIX shared libraries.
20513 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20515 # We preserve .a as extension for shared libraries through AIX4.2
20516 # and later when we are not doing run time linking.
20517 library_names_spec
='${libname}${release}.a $libname.a'
20518 soname_spec
='${libname}${release}${shared_ext}$major'
20520 shlibpath_var
=LIBPATH
20527 # Since July 2007 AmigaOS4 officially supports .so libraries.
20528 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20529 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20532 library_names_spec
='$libname.ixlibrary $libname.a'
20533 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20534 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'
20540 library_names_spec
='${libname}${shared_ext}'
20541 dynamic_linker
="$host_os ld.so"
20542 shlibpath_var
=LIBRARY_PATH
20548 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20549 soname_spec
='${libname}${release}${shared_ext}$major'
20550 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20551 shlibpath_var
=LD_LIBRARY_PATH
20552 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20553 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20554 # the default ld.so.conf also contains /usr/contrib/lib and
20555 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20556 # libtool to hard-code these into programs
20559 cygwin
* | mingw
* | pw32
* | cegcc
*)
20560 version_type
=windows
20565 case $GCC,$host_os in
20566 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20567 library_names_spec
='$libname.dll.a'
20568 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20569 postinstall_cmds
='base_file=`basename \${file}`~
20570 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20571 dldir=$destdir/`dirname \$dlpath`~
20572 test -d \$dldir || mkdir -p \$dldir~
20573 $install_prog $dir/$dlname \$dldir/$dlname~
20574 chmod a+x \$dldir/$dlname~
20575 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20576 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20578 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20579 dlpath=$dir/\$dldll~
20581 shlibpath_overrides_runpath
=yes
20585 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20586 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20590 # MinGW DLLs use traditional 'lib' prefix
20591 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20594 # pw32 DLLs use 'pw' prefix rather than 'lib'
20595 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20601 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20604 dynamic_linker
='Win32 ld.exe'
20605 # FIXME: first we should search . and the directory the executable is in
20609 darwin
* | rhapsody
*)
20610 dynamic_linker
="$host_os dyld"
20611 version_type
=darwin
20614 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20615 soname_spec
='${libname}${release}${major}$shared_ext'
20616 shlibpath_overrides_runpath
=yes
20617 shlibpath_var
=DYLD_LIBRARY_PATH
20618 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20620 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20627 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20628 soname_spec
='${libname}${release}${shared_ext}$major'
20629 shlibpath_var
=LD_LIBRARY_PATH
20632 freebsd
* | dragonfly
*)
20633 # DragonFly does not have aout. When/if they implement a new
20634 # versioning mechanism, adjust this.
20635 if test -x /usr
/bin
/objformat
; then
20636 objformat
=`/usr/bin/objformat`
20639 freebsd
[23].
*) objformat
=aout
;;
20640 *) objformat
=elf
;;
20643 version_type
=freebsd-
$objformat
20644 case $version_type in
20646 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20651 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20655 shlibpath_var
=LD_LIBRARY_PATH
20658 shlibpath_overrides_runpath
=yes
20660 freebsd3.
[01]* | freebsdelf3.
[01]*)
20661 shlibpath_overrides_runpath
=yes
20662 hardcode_into_libs
=yes
20664 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20665 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20666 shlibpath_overrides_runpath
=no
20667 hardcode_into_libs
=yes
20669 *) # from 4.6 on, and DragonFly
20670 shlibpath_overrides_runpath
=yes
20671 hardcode_into_libs
=yes
20680 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20681 soname_spec
='${libname}${release}${shared_ext}$major'
20682 shlibpath_var
=LD_LIBRARY_PATH
20683 hardcode_into_libs
=yes
20690 dynamic_linker
="$host_os runtime_loader"
20691 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20692 soname_spec
='${libname}${release}${shared_ext}$major'
20693 shlibpath_var
=LIBRARY_PATH
20694 shlibpath_overrides_runpath
=yes
20695 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20696 hardcode_into_libs
=yes
20699 hpux9
* | hpux10
* | hpux11
*)
20700 # Give a soname corresponding to the major version so that dld.sl refuses to
20701 # link against other versions.
20708 hardcode_into_libs
=yes
20709 dynamic_linker
="$host_os dld.so"
20710 shlibpath_var
=LD_LIBRARY_PATH
20711 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20712 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20713 soname_spec
='${libname}${release}${shared_ext}$major'
20714 if test "X$HPUX_IA64_MODE" = X32
; then
20715 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20717 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20719 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20723 hardcode_into_libs
=yes
20724 dynamic_linker
="$host_os dld.sl"
20725 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20726 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20727 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20728 soname_spec
='${libname}${release}${shared_ext}$major'
20729 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20730 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20734 dynamic_linker
="$host_os dld.sl"
20735 shlibpath_var
=SHLIB_PATH
20736 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20737 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20738 soname_spec
='${libname}${release}${shared_ext}$major'
20741 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20742 postinstall_cmds
='chmod 555 $lib'
20743 # or fails outright, so override atomically:
20744 install_override_mode
=555
20751 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20752 soname_spec
='${libname}${release}${shared_ext}$major'
20753 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20754 shlibpath_var
=LD_LIBRARY_PATH
20755 shlibpath_overrides_runpath
=no
20756 hardcode_into_libs
=yes
20759 irix5
* | irix6
* | nonstopux
*)
20761 nonstopux
*) version_type
=nonstopux
;;
20763 if test "$lt_cv_prog_gnu_ld" = yes; then
20771 soname_spec
='${libname}${release}${shared_ext}$major'
20772 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20774 irix5
* | nonstopux
*)
20775 libsuff
= shlibsuff
=
20778 case $LD in # libtool.m4 will add one of these switches to LD
20779 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20780 libsuff
= shlibsuff
= libmagic
=32-bit;;
20781 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20782 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20783 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20784 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20785 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20789 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20790 shlibpath_overrides_runpath
=no
20791 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20792 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20793 hardcode_into_libs
=yes
20796 # No shared lib support for Linux oldld, aout, or coff.
20797 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20801 # This must be Linux ELF.
20802 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20806 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20807 soname_spec
='${libname}${release}${shared_ext}$major'
20808 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20809 shlibpath_var
=LD_LIBRARY_PATH
20810 shlibpath_overrides_runpath
=no
20812 # Some binutils ld are patched to set DT_RUNPATH
20813 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20814 $as_echo_n "(cached) " >&6
20816 lt_cv_shlibpath_overrides_runpath
=no
20817 save_LDFLAGS
=$LDFLAGS
20818 save_libdir
=$libdir
20819 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20820 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20822 /* end confdefs.h. */
20832 if ac_fn_cxx_try_link
"$LINENO"; then :
20833 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20834 lt_cv_shlibpath_overrides_runpath
=yes
20837 rm -f core conftest.err conftest.
$ac_objext \
20838 conftest
$ac_exeext conftest.
$ac_ext
20839 LDFLAGS
=$save_LDFLAGS
20840 libdir
=$save_libdir
20844 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20846 # This implies no fast_install, which is unacceptable.
20847 # Some rework will be needed to allow for fast_install
20848 # before this can be enabled.
20849 hardcode_into_libs
=yes
20851 # Append ld.so.conf contents to the search path
20852 if test -f /etc
/ld.so.conf
; then
20853 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' ' '`
20854 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20857 # We used to test for /lib/ld.so.1 and disable shared libraries on
20858 # powerpc, because MkLinux only supported shared libraries with the
20859 # GNU dynamic linker. Since this was broken with cross compilers,
20860 # most powerpc-linux boxes support dynamic linking these days and
20861 # people can always --disable-shared, the test was removed, and we
20862 # assume the GNU/Linux dynamic linker is in use.
20863 dynamic_linker
='GNU/Linux ld.so'
20870 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20871 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20872 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20873 dynamic_linker
='NetBSD (a.out) ld.so'
20875 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20876 soname_spec
='${libname}${release}${shared_ext}$major'
20877 dynamic_linker
='NetBSD ld.elf_so'
20879 shlibpath_var
=LD_LIBRARY_PATH
20880 shlibpath_overrides_runpath
=yes
20881 hardcode_into_libs
=yes
20886 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20887 shlibpath_var
=LD_LIBRARY_PATH
20888 shlibpath_overrides_runpath
=yes
20895 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20896 soname_spec
='${libname}${release}${shared_ext}$major'
20897 shlibpath_var
=LD_LIBRARY_PATH
20898 shlibpath_overrides_runpath
=no
20899 hardcode_into_libs
=yes
20900 dynamic_linker
='ldqnx.so'
20905 sys_lib_dlsearch_path_spec
="/usr/lib"
20907 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20909 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20910 *) need_version
=no
;;
20912 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20913 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20914 shlibpath_var
=LD_LIBRARY_PATH
20915 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20917 openbsd2.
[89] | openbsd2.
[89].
*)
20918 shlibpath_overrides_runpath
=no
20921 shlibpath_overrides_runpath
=yes
20925 shlibpath_overrides_runpath
=yes
20930 libname_spec
='$name'
20933 library_names_spec
='$libname${shared_ext} $libname.a'
20934 dynamic_linker
='OS/2 ld.exe'
20935 shlibpath_var
=LIBPATH
20938 osf3
* | osf4
* | osf5
*)
20942 soname_spec
='${libname}${release}${shared_ext}$major'
20943 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20944 shlibpath_var
=LD_LIBRARY_PATH
20945 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20946 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20957 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20958 soname_spec
='${libname}${release}${shared_ext}$major'
20959 shlibpath_var
=LD_LIBRARY_PATH
20960 shlibpath_overrides_runpath
=yes
20961 hardcode_into_libs
=yes
20962 # ldd complains unless libraries are executable
20963 postinstall_cmds
='chmod +x $lib'
20968 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20969 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20970 shlibpath_var
=LD_LIBRARY_PATH
20971 shlibpath_overrides_runpath
=yes
20972 if test "$with_gnu_ld" = yes; then
20980 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20981 soname_spec
='${libname}${release}${shared_ext}$major'
20982 shlibpath_var
=LD_LIBRARY_PATH
20983 case $host_vendor in
20985 shlibpath_overrides_runpath
=no
20987 runpath_var
=LD_RUN_PATH
20995 shlibpath_overrides_runpath
=no
20996 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21002 if test -d /usr
/nec
;then
21004 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21005 soname_spec
='$libname${shared_ext}.$major'
21006 shlibpath_var
=LD_LIBRARY_PATH
21010 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21011 version_type
=freebsd-elf
21014 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21015 soname_spec
='${libname}${release}${shared_ext}$major'
21016 shlibpath_var
=LD_LIBRARY_PATH
21017 shlibpath_overrides_runpath
=yes
21018 hardcode_into_libs
=yes
21019 if test "$with_gnu_ld" = yes; then
21020 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21022 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21025 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21029 sys_lib_dlsearch_path_spec
='/usr/lib'
21033 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21037 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21038 shlibpath_var
=LD_LIBRARY_PATH
21039 shlibpath_overrides_runpath
=no
21040 hardcode_into_libs
=yes
21045 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21046 soname_spec
='${libname}${release}${shared_ext}$major'
21047 shlibpath_var
=LD_LIBRARY_PATH
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21055 $as_echo "$dynamic_linker" >&6; }
21056 test "$dynamic_linker" = no
&& can_build_shared
=no
21058 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21059 if test "$GCC" = yes; then
21060 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21063 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21064 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21066 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21067 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21108 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21109 hardcode_action_CXX
=
21110 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21111 test -n "$runpath_var_CXX" ||
21112 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21114 # We can hardcode non-existent directories.
21115 if test "$hardcode_direct_CXX" != no
&&
21116 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21117 # have to relink, otherwise we might link with an installed library
21118 # when we should be linking with a yet-to-be-installed one
21119 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21120 test "$hardcode_minus_L_CXX" != no
; then
21121 # Linking always hardcodes the temporary library directory.
21122 hardcode_action_CXX
=relink
21124 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21125 hardcode_action_CXX
=immediate
21128 # We cannot hardcode anything, or else we can only hardcode existing
21130 hardcode_action_CXX
=unsupported
21132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21133 $as_echo "$hardcode_action_CXX" >&6; }
21135 if test "$hardcode_action_CXX" = relink ||
21136 test "$inherit_rpath_CXX" = yes; then
21137 # Fast installation is not supported
21138 enable_fast_install
=no
21139 elif test "$shlibpath_overrides_runpath" = yes ||
21140 test "$enable_shared" = no
; then
21141 # Fast installation is not necessary
21142 enable_fast_install
=needless
21151 fi # test -n "$compiler"
21157 with_gnu_ld
=$lt_save_with_gnu_ld
21158 lt_cv_path_LDCXX
=$lt_cv_path_LD
21159 lt_cv_path_LD
=$lt_save_path_LD
21160 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21161 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21162 fi # test "$_lt_caught_CXX_error" != yes
21165 ac_cpp
='$CPP $CPPFLAGS'
21166 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21167 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21168 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21185 # Only expand once:
21191 # Identify the assembler which will work hand-in-glove with the newly
21192 # built GCC, so that we can examine its features. This is the assembler
21193 # which will be driven by the driver program.
21195 # If build != host, and we aren't building gas in-tree, we identify a
21196 # build->target assembler and hope that it will have the same features
21197 # as the host->target assembler we'll be using.
21198 gcc_cv_gas_major_version
=
21199 gcc_cv_gas_minor_version
=
21200 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21202 if test "${gcc_cv_as+set}" = set; then :
21206 if test -x "$DEFAULT_ASSEMBLER"; then
21207 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21208 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21209 && test -f ..
/gas
/Makefile \
21210 && test x
$build = x
$host; then
21211 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21212 elif test -x as
$build_exeext; then
21213 # Build using assembler in the current directory.
21214 gcc_cv_as
=.
/as
$build_exeext
21215 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21216 gcc_cv_as
="$AS_FOR_TARGET"
21218 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21219 set dummy
$AS_FOR_TARGET; ac_word
=$2
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21221 $as_echo_n "checking for $ac_word... " >&6; }
21222 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21223 $as_echo_n "(cached) " >&6
21227 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21231 for as_dir
in $PATH
21234 test -z "$as_dir" && as_dir
=.
21235 for ac_exec_ext
in '' $ac_executable_extensions; do
21236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21237 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21248 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21249 if test -n "$gcc_cv_as"; then
21250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21251 $as_echo "$gcc_cv_as" >&6; }
21253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21254 $as_echo "no" >&6; }
21261 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21263 case "$ORIGINAL_AS_FOR_TARGET" in
21264 .
/as | .
/as
$build_exeext) ;;
21265 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21270 $as_echo_n "checking what assembler to use... " >&6; }
21271 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21272 # Single tree build which includes gas. We want to prefer it
21273 # over whatever linker top-level may have detected, since
21274 # we'll use what we're building after installation anyway.
21275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21276 $as_echo "newly built gas" >&6; }
21278 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21279 for f
in $gcc_cv_as_bfd_srcdir/configure \
21280 $gcc_cv_as_gas_srcdir/configure \
21281 $gcc_cv_as_gas_srcdir/configure.
in \
21282 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21283 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21284 if test x
$gcc_cv_gas_version != x
; then
21288 case $gcc_cv_gas_version in
21290 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21292 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21293 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21294 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21295 case $gcc_cv_gas_patch_version in
21296 "") gcc_cv_gas_patch_version
="0" ;;
21298 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21299 + $gcc_cv_gas_minor_version \) \* 1000 \
21300 + $gcc_cv_gas_patch_version`
21302 in_tree_gas_is_elf
=no
21303 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21304 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21305 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21307 in_tree_gas_is_elf
=yes
21310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21311 $as_echo "$gcc_cv_as" >&6; }
21315 # Identify the linker which will work hand-in-glove with the newly
21316 # built GCC, so that we can examine its features. This is the linker
21317 # which will be driven by the driver program.
21319 # If build != host, and we aren't building gas in-tree, we identify a
21320 # build->target linker and hope that it will have the same features
21321 # as the host->target linker we'll be using.
21322 gcc_cv_gld_major_version
=
21323 gcc_cv_gld_minor_version
=
21324 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21325 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21327 if test "${gcc_cv_ld+set}" = set; then :
21331 if test -x "$DEFAULT_LINKER"; then
21332 gcc_cv_ld
="$DEFAULT_LINKER"
21333 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21334 && test -f ..
/ld
/Makefile \
21335 && test x
$build = x
$host; then
21336 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21337 elif test -x collect-ld
$build_exeext; then
21338 # Build using linker in the current directory.
21339 gcc_cv_ld
=.
/collect-ld
$build_exeext
21340 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21341 gcc_cv_ld
="$LD_FOR_TARGET"
21343 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21344 set dummy
$LD_FOR_TARGET; ac_word
=$2
21345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21346 $as_echo_n "checking for $ac_word... " >&6; }
21347 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21348 $as_echo_n "(cached) " >&6
21352 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21356 for as_dir
in $PATH
21359 test -z "$as_dir" && as_dir
=.
21360 for ac_exec_ext
in '' $ac_executable_extensions; do
21361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21362 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21373 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21374 if test -n "$gcc_cv_ld"; then
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21376 $as_echo "$gcc_cv_ld" >&6; }
21378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21379 $as_echo "no" >&6; }
21386 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21387 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21388 # if the PLUGIN_LD is set ld-new, just have it as ld
21389 # as that is the installed named.
21390 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21391 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21392 PLUGIN_LD_SUFFIX
=ld
21395 # Check whether --with-plugin-ld was given.
21396 if test "${with_plugin_ld+set}" = set; then :
21397 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21398 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21399 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21405 cat >>confdefs.h
<<_ACEOF
21406 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21410 # Check to see if we are using gold instead of ld
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21412 $as_echo_n "checking whether we are using gold... " >&6; }
21414 if test x
$gcc_cv_ld != x
; then
21415 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21416 |
grep "GNU gold" > /dev
/null
; then
21420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21421 $as_echo "$ld_is_gold" >&6; }
21423 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21425 case "$ORIGINAL_LD_FOR_TARGET" in
21426 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21427 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21432 $as_echo_n "checking what linker to use... " >&6; }
21433 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21434 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21435 # Single tree build which includes ld. We want to prefer it
21436 # over whatever linker top-level may have detected, since
21437 # we'll use what we're building after installation anyway.
21438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21439 $as_echo "newly built ld" >&6; }
21441 in_tree_ld_is_elf
=no
21442 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21443 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21444 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21445 in_tree_ld_is_elf
=yes
21446 elif test "$ld_is_gold" = yes; then
21447 in_tree_ld_is_elf
=yes
21449 for f
in $gcc_cv_ld_bfd_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure.
in $gcc_cv_ld_gld_srcdir/Makefile.
in
21451 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21452 if test x
$gcc_cv_gld_version != x
; then
21456 case $gcc_cv_gld_version in
21458 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21460 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21461 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21464 $as_echo "$gcc_cv_ld" >&6; }
21468 # Figure out what nm we will be using.
21469 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21470 if test "${gcc_cv_nm+set}" = set; then :
21474 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21475 && test -f ..
/binutils
/Makefile \
21476 && test x
$build = x
$host; then
21477 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21478 elif test -x nm
$build_exeext; then
21479 gcc_cv_nm
=.
/nm
$build_exeext
21480 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21481 gcc_cv_nm
="$NM_FOR_TARGET"
21483 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21484 set dummy
$NM_FOR_TARGET; ac_word
=$2
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21486 $as_echo_n "checking for $ac_word... " >&6; }
21487 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21488 $as_echo_n "(cached) " >&6
21492 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21496 for as_dir
in $PATH
21499 test -z "$as_dir" && as_dir
=.
21500 for ac_exec_ext
in '' $ac_executable_extensions; do
21501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21502 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21513 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21514 if test -n "$gcc_cv_nm"; then
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21516 $as_echo "$gcc_cv_nm" >&6; }
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21519 $as_echo "no" >&6; }
21526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21527 $as_echo_n "checking what nm to use... " >&6; }
21528 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21529 # Single tree build which includes binutils.
21530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21531 $as_echo "newly built nm" >&6; }
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21535 $as_echo "$gcc_cv_nm" >&6; }
21539 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21541 case "$ORIGINAL_NM_FOR_TARGET" in
21542 .
/nm | .
/nm
$build_exeext) ;;
21543 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21548 # Figure out what objdump we will be using.
21549 if test "${gcc_cv_objdump+set}" = set; then :
21553 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21554 && test -f ..
/binutils
/Makefile \
21555 && test x
$build = x
$host; then
21556 # Single tree build which includes binutils.
21557 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21558 elif test -x objdump
$build_exeext; then
21559 gcc_cv_objdump
=.
/objdump
$build_exeext
21560 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21561 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21563 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21564 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21566 $as_echo_n "checking for $ac_word... " >&6; }
21567 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21568 $as_echo_n "(cached) " >&6
21570 case $gcc_cv_objdump in
21572 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21576 for as_dir
in $PATH
21579 test -z "$as_dir" && as_dir
=.
21580 for ac_exec_ext
in '' $ac_executable_extensions; do
21581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21582 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21593 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21594 if test -n "$gcc_cv_objdump"; then
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21596 $as_echo "$gcc_cv_objdump" >&6; }
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21599 $as_echo "no" >&6; }
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21607 $as_echo_n "checking what objdump to use... " >&6; }
21608 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21609 # Single tree build which includes binutils.
21610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21611 $as_echo "newly built objdump" >&6; }
21612 elif test x
$gcc_cv_objdump = x
; then
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21614 $as_echo "not found" >&6; }
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21617 $as_echo "$gcc_cv_objdump" >&6; }
21620 # Figure out what readelf we will be using.
21621 if test "${gcc_cv_readelf+set}" = set; then :
21625 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21626 && test -f ..
/binutils
/Makefile \
21627 && test x
$build = x
$host; then
21628 # Single tree build which includes binutils.
21629 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21630 elif test -x readelf
$build_exeext; then
21631 gcc_cv_readelf
=.
/readelf
$build_exeext
21633 # Extract the first word of "readelf", so it can be a program name with args.
21634 set dummy readelf
; ac_word
=$2
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21636 $as_echo_n "checking for $ac_word... " >&6; }
21637 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21638 $as_echo_n "(cached) " >&6
21640 case $gcc_cv_readelf in
21642 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21645 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21646 for as_dir
in $PATH
21649 test -z "$as_dir" && as_dir
=.
21650 for ac_exec_ext
in '' $ac_executable_extensions; do
21651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21652 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21663 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21664 if test -n "$gcc_cv_readelf"; then
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21666 $as_echo "$gcc_cv_readelf" >&6; }
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21669 $as_echo "no" >&6; }
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21677 $as_echo_n "checking what readelf to use... " >&6; }
21678 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21679 # Single tree build which includes binutils.
21680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21681 $as_echo "newly built readelf" >&6; }
21682 elif test x
$gcc_cv_readelf = x
; then
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21684 $as_echo "not found" >&6; }
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21687 $as_echo "$gcc_cv_readelf" >&6; }
21690 # Figure out what assembler alignment features are present.
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21692 $as_echo_n "checking assembler flags... " >&6; }
21693 if test "${gcc_cv_as_flags+set}" = set; then :
21694 $as_echo_n "(cached) " >&6
21697 i
[34567]86-*-linux*)
21698 gcc_cv_as_flags
="--32"
21700 powerpc
*-*-darwin*)
21701 gcc_cv_as_flags
="-arch ppc"
21704 gcc_cv_as_flags
=" "
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21709 $as_echo "$gcc_cv_as_flags" >&6; }
21711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21712 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21713 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21714 $as_echo_n "(cached) " >&6
21716 gcc_cv_as_balign_and_p2align
=no
21717 if test $in_tree_gas = yes; then
21718 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21719 then gcc_cv_as_balign_and_p2align
=yes
21721 elif test x
$gcc_cv_as != x
; then
21722 $as_echo '.balign 4
21723 .p2align 2' > conftest.s
21724 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21726 (eval $ac_try) 2>&5
21728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21729 test $ac_status = 0; }; }
21731 gcc_cv_as_balign_and_p2align
=yes
21733 echo "configure: failed program was" >&5
21736 rm -f conftest.o conftest.s
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21740 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21741 if test $gcc_cv_as_balign_and_p2align = yes; then
21743 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21748 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21749 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21750 $as_echo_n "(cached) " >&6
21752 gcc_cv_as_max_skip_p2align
=no
21753 if test $in_tree_gas = yes; then
21754 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21755 then gcc_cv_as_max_skip_p2align
=yes
21757 elif test x
$gcc_cv_as != x
; then
21758 $as_echo '.p2align 4,,7' > conftest.s
21759 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21761 (eval $ac_try) 2>&5
21763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21764 test $ac_status = 0; }; }
21766 gcc_cv_as_max_skip_p2align
=yes
21768 echo "configure: failed program was" >&5
21771 rm -f conftest.o conftest.s
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21775 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21776 if test $gcc_cv_as_max_skip_p2align = yes; then
21778 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21783 $as_echo_n "checking assembler for .literal16... " >&6; }
21784 if test "${gcc_cv_as_literal16+set}" = set; then :
21785 $as_echo_n "(cached) " >&6
21787 gcc_cv_as_literal16
=no
21788 if test $in_tree_gas = yes; then
21789 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21790 then gcc_cv_as_literal16
=yes
21792 elif test x
$gcc_cv_as != x
; then
21793 $as_echo '.literal16' > conftest.s
21794 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21796 (eval $ac_try) 2>&5
21798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21799 test $ac_status = 0; }; }
21801 gcc_cv_as_literal16
=yes
21803 echo "configure: failed program was" >&5
21806 rm -f conftest.o conftest.s
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21810 $as_echo "$gcc_cv_as_literal16" >&6; }
21811 if test $gcc_cv_as_literal16 = yes; then
21813 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21818 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21819 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21820 $as_echo_n "(cached) " >&6
21822 gcc_cv_as_subsection_m1
=no
21823 if test $in_tree_gas = yes; then
21824 if test $in_tree_gas_is_elf = yes \
21825 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21826 then gcc_cv_as_subsection_m1
=yes
21828 elif test x
$gcc_cv_as != x
; then
21829 $as_echo 'conftest_label1: .word 0
21831 conftest_label2: .word 0
21832 .previous' > conftest.s
21833 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21835 (eval $ac_try) 2>&5
21837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21838 test $ac_status = 0; }; }
21840 if test x
$gcc_cv_nm != x
; then
21841 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21842 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21843 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21845 else gcc_cv_as_subsection_m1
=yes
21847 rm -f conftest.nm1 conftest.nm2
21850 echo "configure: failed program was" >&5
21853 rm -f conftest.o conftest.s
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21857 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21858 if test $gcc_cv_as_subsection_m1 = yes; then
21860 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21865 $as_echo_n "checking assembler for .weak... " >&6; }
21866 if test "${gcc_cv_as_weak+set}" = set; then :
21867 $as_echo_n "(cached) " >&6
21870 if test $in_tree_gas = yes; then
21871 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21872 then gcc_cv_as_weak
=yes
21874 elif test x
$gcc_cv_as != x
; then
21875 $as_echo ' .weak foobar' > conftest.s
21876 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21878 (eval $ac_try) 2>&5
21880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21881 test $ac_status = 0; }; }
21885 echo "configure: failed program was" >&5
21888 rm -f conftest.o conftest.s
21891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21892 $as_echo "$gcc_cv_as_weak" >&6; }
21893 if test $gcc_cv_as_weak = yes; then
21895 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21900 $as_echo_n "checking assembler for .weakref... " >&6; }
21901 if test "${gcc_cv_as_weakref+set}" = set; then :
21902 $as_echo_n "(cached) " >&6
21904 gcc_cv_as_weakref
=no
21905 if test $in_tree_gas = yes; then
21906 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21907 then gcc_cv_as_weakref
=yes
21909 elif test x
$gcc_cv_as != x
; then
21910 $as_echo ' .weakref foobar, barfnot' > conftest.s
21911 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21913 (eval $ac_try) 2>&5
21915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21916 test $ac_status = 0; }; }
21918 gcc_cv_as_weakref
=yes
21920 echo "configure: failed program was" >&5
21923 rm -f conftest.o conftest.s
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21927 $as_echo "$gcc_cv_as_weakref" >&6; }
21928 if test $gcc_cv_as_weakref = yes; then
21930 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21935 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21936 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21937 $as_echo_n "(cached) " >&6
21939 gcc_cv_as_nsubspa_comdat
=no
21940 if test $in_tree_gas = yes; then
21941 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21942 then gcc_cv_as_nsubspa_comdat
=yes
21944 elif test x
$gcc_cv_as != x
; then
21945 $as_echo ' .SPACE $TEXT$
21946 .NSUBSPA $CODE$,COMDAT' > conftest.s
21947 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21949 (eval $ac_try) 2>&5
21951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21952 test $ac_status = 0; }; }
21954 gcc_cv_as_nsubspa_comdat
=yes
21956 echo "configure: failed program was" >&5
21959 rm -f conftest.o conftest.s
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21963 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21964 if test $gcc_cv_as_nsubspa_comdat = yes; then
21966 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21970 # .hidden needs to be supported in both the assembler and the linker,
21971 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21972 # This is irritatingly difficult to feature test for; we have to check the
21973 # date string after the version number. If we've got an in-tree
21974 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21976 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21978 $as_echo_n "checking assembler for .hidden... " >&6; }
21979 if test "${gcc_cv_as_hidden+set}" = set; then :
21980 $as_echo_n "(cached) " >&6
21982 gcc_cv_as_hidden
=no
21983 if test $in_tree_gas = yes; then
21984 if test $in_tree_gas_is_elf = yes \
21985 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21986 then gcc_cv_as_hidden
=yes
21988 elif test x
$gcc_cv_as != x
; then
21989 $as_echo ' .hidden foobar
21990 foobar:' > conftest.s
21991 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21993 (eval $ac_try) 2>&5
21995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21996 test $ac_status = 0; }; }
21999 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22000 # STV_HIDDEN, so disable .hidden support if so.
22001 case "${target}" in
22002 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22003 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22004 cat > conftest.s
<<EOF
22009 .set default,hidden
22011 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22012 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22013 grep '\.hidden default' > /dev
/null
; then
22014 gcc_cv_as_hidden
=no
22016 gcc_cv_as_hidden
=yes
22019 # Assume bug is present if objdump is missing.
22020 gcc_cv_as_hidden
=no
22024 gcc_cv_as_hidden
=yes
22028 echo "configure: failed program was" >&5
22031 rm -f conftest.o conftest.s
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22035 $as_echo "$gcc_cv_as_hidden" >&6; }
22037 case "${target}" in
22039 # Darwin as has some visibility support, though with a different syntax.
22040 gcc_cv_as_hidden
=yes
22044 # gnu_indirect_function type is an extension proposed at
22045 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22046 # selection of function implementation
22047 # Check whether --enable-gnu-indirect-function was given.
22048 if test "${enable_gnu_indirect_function+set}" = set; then :
22049 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22051 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22052 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22055 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22058 if test x
$enable_gnu_indirect_function = xyes
; then
22060 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22064 if test $in_tree_ld != yes ; then
22065 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22066 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22067 if test x
"$ld_is_gold" = xyes
; then
22068 # GNU gold --version looks like this:
22070 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22072 # We extract the binutils version which is more familiar and specific
22073 # than the gold version.
22074 ld_vers
=`echo $ld_ver | sed -n \
22075 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22077 # GNU ld --version looks like this:
22079 # GNU ld (GNU Binutils) 2.21.51.20110225
22080 ld_vers
=`echo $ld_ver | sed -n \
22081 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22083 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'`
22084 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22085 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22086 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22088 case "${target}" in
22090 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22093 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22094 # /usr/ccs/bin/ld has been configured.
22095 ld_ver
=`$gcc_cv_ld -V 2>&1`
22096 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22097 ld_vers
=`echo $ld_ver | sed -n \
22098 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22099 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22100 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22108 $as_echo_n "checking linker for .hidden support... " >&6; }
22109 if test "${gcc_cv_ld_hidden+set}" = set; then :
22110 $as_echo_n "(cached) " >&6
22112 if test $in_tree_ld = yes ; then
22113 gcc_cv_ld_hidden
=no
22114 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 \
22115 && test $in_tree_ld_is_elf = yes; then
22116 gcc_cv_ld_hidden
=yes
22119 gcc_cv_ld_hidden
=yes
22120 if test x
"$ld_is_gold" = xyes
; then
22122 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22123 case "${target}" in
22124 mmix-knuth-mmixware
)
22125 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22126 gcc_cv_ld_hidden
=no
22129 if test 0"$ld_date" -lt 20020404; then
22130 if test -n "$ld_date"; then
22131 # If there was date string, but was earlier than 2002-04-04, fail
22132 gcc_cv_ld_hidden
=no
22133 elif test -z "$ld_vers"; then
22134 # If there was no date string nor ld version number, something is wrong
22135 gcc_cv_ld_hidden
=no
22137 test -z "$ld_vers_patch" && ld_vers_patch
=0
22138 if test "$ld_vers_major" -lt 2; then
22139 gcc_cv_ld_hidden
=no
22140 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22141 gcc_cv_ld_hidden
="no"
22142 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22143 gcc_cv_ld_hidden
=no
22148 case "${target}" in
22150 # Darwin ld has some visibility support.
22151 gcc_cv_ld_hidden
=yes
22153 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22154 gcc_cv_ld_hidden
=yes
22156 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22157 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22158 # .symbolic was only added in Solaris 9 12/02.
22159 gcc_cv_ld_hidden
=yes
22162 gcc_cv_ld_hidden
=no
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22169 $as_echo "$gcc_cv_ld_hidden" >&6; }
22170 libgcc_visibility
=no
22173 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22174 libgcc_visibility
=yes
22176 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22181 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22182 gcc_cv_ld_ro_rw_mix
=unknown
22183 if test $in_tree_ld = yes ; then
22184 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 \
22185 && test $in_tree_ld_is_elf = yes; then
22186 gcc_cv_ld_ro_rw_mix
=read-write
22188 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22189 echo '.section myfoosect, "a"' > conftest1.s
22190 echo '.section myfoosect, "aw"' > conftest2.s
22191 echo '.byte 1' >> conftest2.s
22192 echo '.section myfoosect, "a"' > conftest3.s
22193 echo '.byte 0' >> conftest3.s
22194 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22195 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22196 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22197 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22198 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22199 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22200 | sed -e '/myfoosect/!d' -e N`
22201 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22202 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22203 gcc_cv_ld_ro_rw_mix
=read-only
22205 gcc_cv_ld_ro_rw_mix
=read-write
22209 rm -f conftest.
* conftest
[123].
*
22211 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22213 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22217 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22219 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22220 case "${target}" in
22223 # Solaris 2 ld -V output looks like this for a regular version:
22225 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22227 # but test versions add stuff at the end:
22229 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22231 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22232 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22233 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22234 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22235 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22236 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22242 # Check whether --enable-initfini-array was given.
22243 if test "${enable_initfini_array+set}" = set; then :
22244 enableval
=$enable_initfini_array;
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22248 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22249 if test "${gcc_cv_initfini_array+set}" = set; then :
22250 $as_echo_n "(cached) " >&6
22252 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22253 case "${target}" in
22255 if test "$cross_compiling" = yes; then :
22256 gcc_cv_initfini_array
=no
22258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22259 /* end confdefs.h. */
22262 #error Not an ELF OS
22264 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22265 if it can be used. */
22267 int main (void) { return x; }
22268 int foo (void) { x = 0; }
22269 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22272 if ac_fn_c_try_run
"$LINENO"; then :
22273 gcc_cv_initfini_array
=yes
22275 gcc_cv_initfini_array
=no
22277 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22278 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22282 gcc_cv_initfini_array
=no
22283 if test $in_tree_ld = yes ; then
22284 if test "$gcc_cv_gld_major_version" -eq 2 \
22285 -a "$gcc_cv_gld_minor_version" -ge 22 \
22286 -o "$gcc_cv_gld_major_version" -gt 2 \
22287 && test $in_tree_ld_is_elf = yes; then
22288 gcc_cv_initfini_array
=yes
22290 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22291 cat > conftest.s
<<\EOF
22292 .section .dtors
,"a",%progbits
22294 .byte
'A', 'A', 'A', 'A'
22295 .section .ctors
,"a",%progbits
22297 .byte
'B', 'B', 'B', 'B'
22298 .section .fini_array
.65530,"a",%progbits
22300 .byte
'C', 'C', 'C', 'C'
22301 .section .init_array
.65530,"a",%progbits
22303 .byte
'D', 'D', 'D', 'D'
22304 .section .dtors
.64528,"a",%progbits
22306 .byte
'E', 'E', 'E', 'E'
22307 .section .ctors
.64528,"a",%progbits
22309 .byte
'F', 'F', 'F', 'F'
22310 .section .fini_array
.01005,"a",%progbits
22312 .byte
'G', 'G', 'G', 'G'
22313 .section .init_array
.01005,"a",%progbits
22315 .byte
'H', 'H', 'H', 'H'
22320 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22321 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22322 && $gcc_cv_objdump -s -j .init_array conftest \
22323 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22324 && $gcc_cv_objdump -s -j .fini_array conftest \
22325 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22326 gcc_cv_initfini_array
=yes
22328 rm -f conftest conftest.
*
22330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22331 /* end confdefs.h. */
22334 # error Not an ELF OS
22336 #include <stdlib.h>
22337 #if defined __GLIBC_PREREQ
22338 # if __GLIBC_PREREQ (2, 4)
22340 # error GLIBC 2.4 required
22343 # if defined __sun__ && defined __svr4__
22344 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22346 # error The C library not known to support .init_array/.fini_array
22351 if ac_fn_c_try_cpp
"$LINENO"; then :
22354 gcc_cv_initfini_array
=no
22356 rm -f conftest.err conftest.
$ac_ext;;
22359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22360 $as_echo_n "checking cross compile... guessing... " >&6; }
22361 gcc_cv_initfini_array
=no
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22365 $as_echo "$gcc_cv_initfini_array" >&6; }
22366 enable_initfini_array
=$gcc_cv_initfini_array
22370 if test $enable_initfini_array = yes; then
22372 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22376 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22378 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22379 if test "${gcc_cv_as_leb128+set}" = set; then :
22380 $as_echo_n "(cached) " >&6
22382 gcc_cv_as_leb128
=no
22383 if test $in_tree_gas = yes; then
22384 if test $in_tree_gas_is_elf = yes \
22385 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22386 then gcc_cv_as_leb128
=yes
22388 elif test x
$gcc_cv_as != x
; then
22395 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22397 (eval $ac_try) 2>&5
22399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22400 test $ac_status = 0; }; }
22402 # GAS versions before 2.11 do not support uleb128,
22403 # despite appearing to.
22404 # ??? There exists an elf-specific test that will crash
22405 # the assembler. Perhaps it's better to figure out whether
22406 # arbitrary sections are supported and try the test.
22407 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22408 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22409 as_vers
=`echo $as_ver | sed -n \
22410 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22411 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22412 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22413 if test $as_major -eq 2 && test $as_minor -lt 11
22415 else gcc_cv_as_leb128
=yes
22419 echo "configure: failed program was" >&5
22422 rm -f conftest.o conftest.s
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22426 $as_echo "$gcc_cv_as_leb128" >&6; }
22427 if test $gcc_cv_as_leb128 = yes; then
22429 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22433 # Check if we have assembler support for unwind directives.
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22435 $as_echo_n "checking assembler for cfi directives... " >&6; }
22436 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22437 $as_echo_n "(cached) " >&6
22439 gcc_cv_as_cfi_directive
=no
22440 if test x
$gcc_cv_as != x
; then
22446 .cfi_escape 1, 2, 3, 4, 5
22447 .cfi_endproc' > conftest.s
22448 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22450 (eval $ac_try) 2>&5
22452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22453 test $ac_status = 0; }; }
22457 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22458 # read-only and read-write sections, we need to make sure that the
22459 # assembler used emits read-write .eh_frame sections.
22460 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22461 if test "x$gcc_cv_objdump" != x
; then
22462 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22463 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22464 gcc_cv_as_cfi_directive
=no
22467 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22468 # On Solaris/x86, make sure that GCC and gas agree on using
22469 # read-only .eh_frame sections for 64-bit.
22470 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22471 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22472 sed -e /.eh_frame
/!d
-e N | \
22473 grep READONLY
> /dev
/null
; then
22474 gcc_cv_as_cfi_directive
=yes
22476 gcc_cv_as_cfi_directive
=no
22480 gcc_cv_as_cfi_directive
=yes
22485 # no objdump, err on the side of caution
22486 gcc_cv_as_cfi_directive
=no
22489 gcc_cv_as_cfi_directive
=yes
22493 gcc_cv_as_cfi_directive
=yes
22497 echo "configure: failed program was" >&5
22500 rm -f conftest.o conftest.s
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22504 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22506 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22508 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22509 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22510 $as_echo_n "(cached) " >&6
22512 gcc_cv_as_cfi_advance_working
=no
22513 if test x
$gcc_cv_as != x
; then
22516 .cfi_adjust_cfa_offset 64
22518 .cfi_adjust_cfa_offset 128
22519 .cfi_endproc' > conftest.s
22520 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22522 (eval $ac_try) 2>&5
22524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22525 test $ac_status = 0; }; }
22528 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22529 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22530 gcc_cv_as_cfi_advance_working
=yes
22534 echo "configure: failed program was" >&5
22537 rm -f conftest.o conftest.s
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22541 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22544 # no objdump, err on the side of caution
22545 gcc_cv_as_cfi_advance_working
=no
22549 cat >>confdefs.h
<<_ACEOF
22550 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22551 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22557 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22558 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22559 $as_echo_n "(cached) " >&6
22561 gcc_cv_as_cfi_personality_directive
=no
22562 if test x
$gcc_cv_as != x
; then
22565 .cfi_personality 0, symbol
22566 .cfi_endproc' > conftest.s
22567 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22569 (eval $ac_try) 2>&5
22571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22572 test $ac_status = 0; }; }
22574 gcc_cv_as_cfi_personality_directive
=yes
22576 echo "configure: failed program was" >&5
22579 rm -f conftest.o conftest.s
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22583 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22586 cat >>confdefs.h
<<_ACEOF
22587 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22588 then echo 1; else echo 0; fi`
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22593 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22594 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22595 $as_echo_n "(cached) " >&6
22597 gcc_cv_as_cfi_sections_directive
=no
22598 if test x
$gcc_cv_as != x
; then
22600 .cfi_sections .debug_frame, .eh_frame
22602 .cfi_endproc' > conftest.s
22603 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22605 (eval $ac_try) 2>&5
22607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22608 test $ac_status = 0; }; }
22611 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22612 # Need to check that we generated the correct relocation for the
22613 # .debug_frame section. This was fixed for binutils 2.21.
22614 gcc_cv_as_cfi_sections_directive
=no
22615 if test "x$gcc_cv_objdump" != x
; then
22616 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22617 grep secrel
> /dev
/null
; then
22618 gcc_cv_as_cfi_sections_directive
=yes
22623 gcc_cv_as_cfi_sections_directive
=yes
22627 echo "configure: failed program was" >&5
22630 rm -f conftest.o conftest.s
22633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22634 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22638 cat >>confdefs.h
<<_ACEOF
22639 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22640 then echo 1; else echo 0; fi`
22644 # GAS versions up to and including 2.11.0 may mis-optimize
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22647 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22648 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22649 $as_echo_n "(cached) " >&6
22651 gcc_cv_as_eh_frame
=no
22652 if test $in_tree_gas = yes; then
22653 if test $in_tree_gas_is_elf = yes \
22654 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22655 then gcc_cv_as_eh_frame
=yes
22657 elif test x
$gcc_cv_as != x
; then
22664 .section .eh_frame,"aw",@progbits
22666 .4byte .LECIE1-.LSCIE1
22680 .4byte .LEFDE1-.LASFDE1
22682 .4byte .LASFDE1-__FRAME_BEGIN__
22689 .LEFDE1:' > conftest.s
22690 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22692 (eval $ac_try) 2>&5
22694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22695 test $ac_status = 0; }; }
22697 cat > conftest.lit
<<EOF
22698 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22699 0010 01000000 12000000 18000000 00000000 ................
22700 0020 08000000 04080000 0044 .........D
22702 cat > conftest.big
<<EOF
22703 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22704 0010 00000001 00000012 00000018 00000000 ................
22705 0020 00000008 04000000 0844 .........D
22707 # If the assembler didn't choke, and we can objdump,
22708 # and we got the correct data, then succeed.
22709 # The text in the here-document typically retains its unix-style line
22710 # endings, while the output of objdump will use host line endings.
22711 # Therefore, use diff -b for the comparisons.
22712 if test x
$gcc_cv_objdump != x \
22713 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22714 |
tail -3 > conftest.got \
22715 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22716 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22718 gcc_cv_as_eh_frame
=yes
22719 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22721 (eval $ac_try) 2>&5
22723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22724 test $ac_status = 0; }; }; then
22725 gcc_cv_as_eh_frame
=buggy
22727 # Uh oh, what do we do now?
22728 gcc_cv_as_eh_frame
=no
22731 echo "configure: failed program was" >&5
22734 rm -f conftest.o conftest.s
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22738 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22741 if test $gcc_cv_as_eh_frame = buggy
; then
22743 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22748 $as_echo_n "checking assembler for section merging support... " >&6; }
22749 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22750 $as_echo_n "(cached) " >&6
22752 gcc_cv_as_shf_merge
=no
22753 if test $in_tree_gas = yes; then
22754 if test $in_tree_gas_is_elf = yes \
22755 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22756 then gcc_cv_as_shf_merge
=yes
22758 elif test x
$gcc_cv_as != x
; then
22759 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22760 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22762 (eval $ac_try) 2>&5
22764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22765 test $ac_status = 0; }; }
22767 gcc_cv_as_shf_merge
=yes
22769 echo "configure: failed program was" >&5
22772 rm -f conftest.o conftest.s
22775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22776 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22778 if test $gcc_cv_as_shf_merge = no
; then
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22780 $as_echo_n "checking assembler for section merging support... " >&6; }
22781 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22782 $as_echo_n "(cached) " >&6
22784 gcc_cv_as_shf_merge
=no
22785 if test $in_tree_gas = yes; then
22786 if test $in_tree_gas_is_elf = yes \
22787 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22788 then gcc_cv_as_shf_merge
=yes
22790 elif test x
$gcc_cv_as != x
; then
22791 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22792 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22794 (eval $ac_try) 2>&5
22796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22797 test $ac_status = 0; }; }
22799 gcc_cv_as_shf_merge
=yes
22801 echo "configure: failed program was" >&5
22804 rm -f conftest.o conftest.s
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22808 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22812 cat >>confdefs.h
<<_ACEOF
22813 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22818 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22819 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22820 $as_echo_n "(cached) " >&6
22822 gcc_cv_as_comdat_group
=no
22823 if test $in_tree_gas = yes; then
22824 if test $in_tree_gas_is_elf = yes \
22825 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22826 then gcc_cv_as_comdat_group
=yes
22828 elif test x
$gcc_cv_as != x
; then
22829 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22830 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22832 (eval $ac_try) 2>&5
22834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22835 test $ac_status = 0; }; }
22837 gcc_cv_as_comdat_group
=yes
22839 echo "configure: failed program was" >&5
22842 rm -f conftest.o conftest.s
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22846 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22848 if test $gcc_cv_as_comdat_group = yes; then
22849 gcc_cv_as_comdat_group_percent
=no
22850 gcc_cv_as_comdat_group_group
=no
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22853 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22854 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22855 $as_echo_n "(cached) " >&6
22857 gcc_cv_as_comdat_group_percent
=no
22858 if test $in_tree_gas = yes; then
22859 if test $in_tree_gas_is_elf = yes \
22860 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22861 then gcc_cv_as_comdat_group_percent
=yes
22863 elif test x
$gcc_cv_as != x
; then
22864 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22865 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22867 (eval $ac_try) 2>&5
22869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22870 test $ac_status = 0; }; }
22872 gcc_cv_as_comdat_group_percent
=yes
22874 echo "configure: failed program was" >&5
22877 rm -f conftest.o conftest.s
22880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22881 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22883 if test $gcc_cv_as_comdat_group_percent = yes; then
22884 gcc_cv_as_comdat_group_group
=no
22886 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22887 gcc_cv_as_comdat_group_group
=no
22889 case "${target}" in
22890 # Sun as uses a completely different syntax.
22892 case "${target}" in
22893 sparc
*-*-solaris2*)
22895 .group foo,".text%foo",#comdat
22896 .section ".text%foo", #alloc,#execinstr,#progbits
22901 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22903 .group foo,.text%foo,#comdat
22904 .section .text%foo, "ax", @progbits
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22911 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22912 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22913 $as_echo_n "(cached) " >&6
22915 gcc_cv_as_comdat_group_group
=no
22916 if test x
$gcc_cv_as != x
; then
22917 $as_echo "$conftest_s" > conftest.s
22918 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22920 (eval $ac_try) 2>&5
22922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22923 test $ac_status = 0; }; }
22925 gcc_cv_as_comdat_group_group
=yes
22927 echo "configure: failed program was" >&5
22930 rm -f conftest.o conftest.s
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22934 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22940 if test x
"$ld_is_gold" = xyes
; then
22942 elif test $in_tree_ld = yes ; then
22944 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 \
22945 && test $in_tree_ld_is_elf = yes; then
22948 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22950 if test 0"$ld_date" -lt 20050308; then
22951 if test -n "$ld_date"; then
22952 # If there was date string, but was earlier than 2005-03-08, fail
22954 elif test "$ld_vers_major" -lt 2; then
22956 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22961 case "${target}" in
22962 *-*-solaris2.1
[1-9]*)
22964 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22965 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22968 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22969 # least ld version 1.2267.
22970 if test "$ld_vers_major" -gt 1; then
22972 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
22974 elif test "$ld_vers_minor" -ge 2267; then
22979 # Assume linkers other than GNU ld don't support COMDAT group.
22984 # Allow overriding the automatic COMDAT group tests above.
22985 # Check whether --enable-comdat was given.
22986 if test "${enable_comdat+set}" = set; then :
22987 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
22990 if test $comdat_group = no
; then
22991 gcc_cv_as_comdat_group
=no
22992 gcc_cv_as_comdat_group_percent
=no
22993 gcc_cv_as_comdat_group_group
=no
22996 cat >>confdefs.h
<<_ACEOF
22997 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22998 || test $gcc_cv_as_comdat_group_percent = yes \
22999 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23004 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23005 if test "${gcc_cv_as_discriminator+set}" = set; then :
23006 $as_echo_n "(cached) " >&6
23008 gcc_cv_as_discriminator
=no
23009 if test $in_tree_gas = yes; then
23010 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23011 then gcc_cv_as_discriminator
=yes
23013 elif test x
$gcc_cv_as != x
; then
23016 .loc 1 1 0 discriminator 1' > conftest.s
23017 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23019 (eval $ac_try) 2>&5
23021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23022 test $ac_status = 0; }; }
23024 gcc_cv_as_discriminator
=yes
23026 echo "configure: failed program was" >&5
23029 rm -f conftest.o conftest.s
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23033 $as_echo "$gcc_cv_as_discriminator" >&6; }
23034 if test $gcc_cv_as_discriminator = yes; then
23036 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23040 # Thread-local storage - the check is heavily parameterized.
23048 .section ".tdata","awT",@progbits
23051 ldq $27,__tls_get_addr($29) !literal!1
23052 lda $16,foo($29) !tlsgd!1
23053 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23054 ldq $27,__tls_get_addr($29) !literal!2
23055 lda $16,foo($29) !tlsldm!2
23056 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23057 ldq $1,foo($29) !gotdtprel
23058 ldah $2,foo($29) !dtprelhi
23059 lda $3,foo($2) !dtprello
23060 lda $4,foo($29) !dtprel
23061 ldq $1,foo($29) !gottprel
23062 ldah $2,foo($29) !tprelhi
23063 lda $3,foo($2) !tprello
23064 lda $4,foo($29) !tprel'
23067 tls_as_opt
=--fatal-warnings
23069 cris-
*-*|crisv32-
*-*)
23071 .section ".tdata","awT",@progbits
23078 tls_as_opt
=--fatal-warnings
23082 .section ".tdata","awT",@progbits
23085 call #gettlsoff(x)'
23094 .section ".tdata","awT",@progbits
23098 addil LT%foo-$tls_gdidx$,gp
23099 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23102 addil LT%foo-$tls_ldidx$,gp
23104 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23105 addil LR%foo-$tls_dtpoff$,%ret0
23106 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23108 addil LT%foo-$tls_ieoff$,gp
23109 ldw RT%foo-$tls_ieoff$(%r1),%t2
23112 addil LR%foo-$tls_leoff$,%t1
23113 ldo RR%foo-$tls_leoff$(%r1),%t2'
23116 tls_as_opt
=--fatal-warnings
23120 .section ".tdata","awT",%progbits
23123 .word foo(gottpoff)
23131 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23133 i
[34567]86-*-solaris2.
*)
23135 tga_func
=___tls_get_addr
23137 x86_64-
*-solaris2.1
[0-9]*)
23139 tga_func
=__tls_get_addr
23145 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23147 .section .tdata,"awt",@progbits'
23151 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23155 .section ".tdata","awT",@progbits'
23158 tls_as_opt
="--fatal-warnings"
23160 conftest_s
="$conftest_s
23164 leal foo@tlsgd(,%ebx,1), %eax
23165 leal foo@tlsldm(%ebx), %eax
23166 leal foo@dtpoff(%eax), %edx
23167 movl foo@gottpoff(%ebx), %eax
23168 subl foo@gottpoff(%ebx), %eax
23169 addl foo@gotntpoff(%ebx), %eax
23170 movl foo@indntpoff, %eax
23171 movl \$foo@tpoff, %eax
23172 subl \$foo@tpoff, %eax
23173 leal foo@ntpoff(%ecx), %eax"
23177 .section ".tdata","awT",@progbits
23181 leaq foo@TLSGD(%rip), %rdi
23182 leaq foo@TLSLD(%rip), %rdi
23183 leaq foo@DTPOFF(%rax), %rdx
23184 movq foo@GOTTPOFF(%rip), %rax
23185 movq $foo@TPOFF, %rax'
23188 tls_as_opt
=--fatal-warnings
23192 .section ".tdata","awT",@progbits
23195 addl r16 = @ltoff(@dtpmod(foo#)), gp
23196 addl r17 = @ltoff(@dtprel(foo#)), gp
23197 addl r18 = @ltoff(@tprel(foo#)), gp
23198 addl r19 = @dtprel(foo#), gp
23199 adds r21 = @dtprel(foo#), r13
23200 movl r23 = @dtprel(foo#)
23201 addl r20 = @tprel(foo#), gp
23202 adds r22 = @tprel(foo#), r13
23203 movl r24 = @tprel(foo#)'
23206 tls_as_opt
=--fatal-warnings
23210 .section .tdata,"awT",@progbits
23214 addik r5,r20,x@TLSGD
23215 addik r5,r20,x@TLSLDM'
23218 tls_as_opt
='--fatal-warnings'
23222 .section .tdata,"awT",@progbits
23226 addiu $4, $28, %tlsgd(x)
23227 addiu $4, $28, %tlsldm(x)
23228 lui $4, %dtprel_hi(x)
23229 addiu $4, $4, %dtprel_lo(x)
23230 lw $4, %gottprel(x)($28)
23231 lui $4, %tprel_hi(x)
23232 addiu $4, $4, %tprel_lo(x)'
23235 tls_as_opt
='-32 --fatal-warnings'
23239 .section .tdata,"awT",@progbits
23244 move.l x@TLSGD(%a5),%a0
23245 move.l x@TLSLDM(%a5),%a0
23246 move.l x@TLSLDO(%a5),%a0
23247 move.l x@TLSIE(%a5),%a0
23248 move.l x@TLSLE(%a5),%a0'
23251 tls_as_opt
='--fatal-warnings'
23255 .section ".tdata","awT",%progbits
23259 add x0, x0, #:tlsgd_lo12:x
23264 tls_as_opt
='--fatal-warnings'
23268 .extern __get_tpointer
23286 .section ".tdata","awT",@progbits
23294 addi 3,2,ld0@got@tlsgd
23300 addi 3,2,x1@got@tlsld
23306 addis 9,3,x2@dtprel@ha
23307 addi 9,9,x2@dtprel@l
23310 ld 9,x3@got@dtprel(2)
23316 tls_as_opt
="-a64 --fatal-warnings"
23320 .section ".tdata","awT",@progbits
23328 addi 3,31,ld0@got@tlsgd
23330 addi 3,31,x1@got@tlsld
23333 addis 9,3,x2@dtprel@ha
23334 addi 9,9,x2@dtprel@l
23335 lwz 9,x3@got@tprel(31)
23338 addis 9,2,x2@tprel@ha
23339 addi 9,9,x2@tprel@l'
23342 tls_as_opt
="-a32 --fatal-warnings"
23346 .section ".tdata","awT",@progbits
23353 .long foo@GOTNTPOFF
23354 .long foo@INDNTPOFF
23355 l %r1,foo@GOTNTPOFF(%r12)
23356 l %r1,0(%r1):tls_load:foo
23357 bas %r14,0(%r1,%r13):tls_gdcall:foo
23358 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23361 tls_as_opt
="-m31 --fatal-warnings"
23365 .section ".tdata","awT",@progbits
23372 .quad foo@GOTNTPOFF
23373 lg %r1,foo@GOTNTPOFF(%r12)
23374 larl %r1,foo@INDNTPOFF
23375 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23376 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23379 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23381 sh-
*-* | sh
[34]-*-*)
23383 .section ".tdata","awT",@progbits
23393 tls_as_opt
=--fatal-warnings
23397 sparc
*-sun-solaris2.
*)
23399 tga_func
=__tls_get_addr
23405 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23407 .section ".tdata",#alloc,#write,#tls'
23412 .section ".tdata","awT",@progbits'
23415 tls_as_opt
="-32 --fatal-warnings"
23417 conftest_s
="$conftest_s
23420 sethi %tgd_hi22(foo), %o0
23421 add %o0, %tgd_lo10(foo), %o1
23422 add %l7, %o1, %o0, %tgd_add(foo)
23423 call __tls_get_addr, %tgd_call(foo)
23424 sethi %tldm_hi22(foo), %l1
23425 add %l1, %tldm_lo10(foo), %l2
23426 add %l7, %l2, %o0, %tldm_add(foo)
23427 call __tls_get_addr, %tldm_call(foo)
23428 sethi %tldo_hix22(foo), %l3
23429 xor %l3, %tldo_lox10(foo), %l4
23430 add %o0, %l4, %l5, %tldo_add(foo)
23431 sethi %tie_hi22(foo), %o3
23432 add %o3, %tie_lo10(foo), %o3
23433 ld [%l7 + %o3], %o2, %tie_ld(foo)
23434 add %g7, %o2, %o4, %tie_add(foo)
23435 sethi %tle_hix22(foo), %l1
23436 xor %l1, %tle_lox10(foo), %o5
23437 ld [%g7 + %o5], %o1"
23441 .section ".tdata","awT",@progbits
23444 addli r0, zero, tls_gd(foo)
23445 auli r0, zero, tls_gd_ha16(foo)
23446 addli r0, r0, tls_gd_lo16(foo)
23448 addli r0, zero, tls_ie(foo)
23449 auli r0, r0, tls_ie_ha16(foo)
23450 addli r0, r0, tls_ie_lo16(foo)'
23453 tls_as_opt
="--fatal-warnings"
23457 .section ".tdata","awT",@progbits
23460 shl16insli r0, zero, hw0_last_tls_gd(foo)
23461 shl16insli r0, zero, hw1_last_tls_gd(foo)
23462 shl16insli r0, r0, hw0_tls_gd(foo)
23464 shl16insli r0, zero, hw1_last_tls_ie(foo)
23465 shl16insli r0, r0, hw0_tls_ie(foo)'
23468 tls_as_opt
="--fatal-warnings"
23472 .section ".tdata","awT",@progbits
23475 movi a8, foo@TLSFUNC
23476 movi a10, foo@TLSARG
23477 callx8.tls a8, foo@TLSCALL'
23483 if test "x$enable_tls" = xno
; then
23484 : # TLS explicitly disabled.
23485 elif test "x$enable_tls" = xyes
; then
23486 set_have_as_tls
=yes # TLS explicitly enabled.
23487 elif test -z "$tls_first_major"; then
23488 : # If we don't have a check, assume no support.
23490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23491 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23492 if test "${gcc_cv_as_tls+set}" = set; then :
23493 $as_echo_n "(cached) " >&6
23496 if test $in_tree_gas = yes; then
23497 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23498 then gcc_cv_as_tls
=yes
23500 elif test x
$gcc_cv_as != x
; then
23501 $as_echo "$conftest_s" > conftest.s
23502 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23504 (eval $ac_try) 2>&5
23506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23507 test $ac_status = 0; }; }
23511 echo "configure: failed program was" >&5
23514 rm -f conftest.o conftest.s
23517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23518 $as_echo "$gcc_cv_as_tls" >&6; }
23519 if test $gcc_cv_as_tls = yes; then
23520 set_have_as_tls
=yes
23524 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23525 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23526 # Sun style that Sun ld and GCC don't support any longer.
23528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23529 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23531 # Check ld and ld.so.1 TLS support.
23532 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23533 # Assume all interesting versions of GNU ld have TLS support.
23534 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23538 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23540 min_tls_ld_vers_minor
=374
23542 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23543 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23544 min_tls_ld_vers_minor
=343
23547 if test "$ld_vers_major" -gt 1 || \
23548 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23555 $as_echo "$ld_tls_support" >&6; }
23558 save_LDFLAGS
="$LDFLAGS"
23562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23563 $as_echo_n "checking library containing $tga_func... " >&6; }
23564 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23565 # (32-bit x86) only lived in libthread, so check for that. Keep
23566 # set_have_as_tls if found, disable if not.
23567 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23569 $as_echo_n "checking for library containing $tga_func... " >&6; }
23570 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23571 $as_echo_n "(cached) " >&6
23573 ac_func_search_save_LIBS
=$LIBS
23574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23575 /* end confdefs.h. */
23577 /* Override any GCC internal prototype to avoid an error.
23578 Use char because int might match the return type of a GCC
23579 builtin and then its argument prototype would still apply. */
23587 return $tga_func ();
23592 for ac_lib
in '' thread
; do
23593 if test -z "$ac_lib"; then
23594 ac_res
="none required"
23597 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23599 if ac_fn_c_try_link
"$LINENO"; then :
23600 eval "$as_ac_Search=\$ac_res"
23602 rm -f core conftest.err conftest.
$ac_objext \
23604 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23608 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23611 eval "$as_ac_Search=no"
23613 rm conftest.
$ac_ext
23614 LIBS
=$ac_func_search_save_LIBS
23616 eval ac_res
=\$
$as_ac_Search
23617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23618 $as_echo "$ac_res" >&6; }
23619 eval ac_res
=\$
$as_ac_Search
23620 if test "$ac_res" != no
; then :
23621 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23627 # Clear LIBS if we cannot support TLS.
23628 if test $set_have_as_tls = no
; then
23631 # Always define LIB_TLS_SPEC, even without TLS support.
23633 cat >>confdefs.h
<<_ACEOF
23634 #define LIB_TLS_SPEC "$LIBS"
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23638 $as_echo "$LIBS" >&6; }
23641 LDFLAGS
="$save_LDFLAGS"
23644 if test $set_have_as_tls = yes ; then
23646 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23650 # Target-specific assembler checks.
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23653 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23654 gcc_cv_ld_static_dynamic
=no
23655 gcc_cv_ld_static_option
='-Bstatic'
23656 gcc_cv_ld_dynamic_option
='-Bdynamic'
23657 if test $in_tree_ld = yes ; then
23658 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
23659 gcc_cv_ld_static_dynamic
=yes
23661 elif test x
$gcc_cv_ld != x
; then
23662 # Check if linker supports -Bstatic/-Bdynamic option
23663 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23664 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23665 gcc_cv_ld_static_dynamic
=yes
23668 # AIX ld uses -b flags
23669 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
23670 gcc_cv_ld_static_dynamic
=yes
23671 gcc_cv_ld_static_option
="-bstatic"
23672 gcc_cv_ld_dynamic_option
="-bdynamic"
23674 # HP-UX ld uses -a flags to select between shared and archive.
23676 if test x
"$gnu_ld" = xno
; then
23677 gcc_cv_ld_static_dynamic
=yes
23678 gcc_cv_ld_static_option
="-aarchive_shared"
23679 gcc_cv_ld_dynamic_option
="-adefault"
23682 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23684 gcc_cv_ld_static_dynamic
=yes
23689 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23691 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23694 cat >>confdefs.h
<<_ACEOF
23695 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23699 cat >>confdefs.h
<<_ACEOF
23700 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23705 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23707 if test x
"$demangler_in_ld" = xyes
; then
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23709 $as_echo_n "checking linker --demangle support... " >&6; }
23710 gcc_cv_ld_demangle
=no
23711 if test $in_tree_ld = yes; then
23712 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 \
23713 gcc_cv_ld_demangle
=yes
23715 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23716 # Check if the GNU linker supports --demangle option
23717 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23718 gcc_cv_ld_demangle
=yes
23721 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23723 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23727 $as_echo "$gcc_cv_ld_demangle" >&6; }
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23731 $as_echo_n "checking linker plugin support... " >&6; }
23732 gcc_cv_lto_plugin
=0
23733 if test -f liblto_plugin.la
; then
23734 save_ld_ver
="$ld_ver"
23735 save_ld_vers_major
="$ld_vers_major"
23736 save_ld_vers_minor
="$ld_vers_minor"
23737 save_ld_is_gold
="$ld_is_gold"
23741 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23743 # FIXME: ld_is_gold?
23744 ld_vers_major
="$gcc_cv_gld_major_version"
23745 ld_vers_minor
="$gcc_cv_gld_minor_version"
23747 # Determine plugin linker version.
23748 # FIXME: Partial duplicate from above, generalize.
23749 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23750 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23751 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23753 ld_vers
=`echo $ld_ver | sed -n \
23754 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23756 ld_vers
=`echo $ld_ver | sed -n \
23757 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23759 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23760 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23764 # Determine plugin support.
23765 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23766 # Require GNU ld or gold 2.21+ for plugin support by default.
23767 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23768 gcc_cv_lto_plugin
=2
23769 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23770 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23771 gcc_cv_lto_plugin
=1
23775 ld_ver
="$save_ld_ver"
23776 ld_vers_major
="$save_ld_vers_major"
23777 ld_vers_minor
="$save_ld_vers_minor"
23778 ld_is_gold
="$save_ld_is_gold"
23781 cat >>confdefs.h
<<_ACEOF
23782 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23786 $as_echo "$gcc_cv_lto_plugin" >&6; }
23789 # All TARGET_ABI_OSF targets.
23790 alpha
*-*-linux* | alpha
*-*-*bsd
*)
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23792 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23793 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23794 $as_echo_n "(cached) " >&6
23796 gcc_cv_as_alpha_explicit_relocs
=no
23797 if test $in_tree_gas = yes; then
23798 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23799 then gcc_cv_as_alpha_explicit_relocs
=yes
23801 elif test x
$gcc_cv_as != x
; then
23802 $as_echo ' .set nomacro
23804 extbl $3, $2, $3 !lituse_bytoff!1
23805 ldq $2, a($29) !literal!1
23806 ldq $4, b($29) !literal!2
23807 ldq_u $3, 0($2) !lituse_base!1
23808 ldq $27, f($29) !literal!5
23809 jsr $26, ($27), f !lituse_jsr!5
23810 ldah $29, 0($26) !gpdisp!3
23811 lda $0, c($29) !gprel
23812 ldah $1, d($29) !gprelhigh
23813 lda $1, d($1) !gprellow
23814 lda $29, 0($29) !gpdisp!3' > conftest.s
23815 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23817 (eval $ac_try) 2>&5
23819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23820 test $ac_status = 0; }; }
23822 gcc_cv_as_alpha_explicit_relocs
=yes
23824 echo "configure: failed program was" >&5
23827 rm -f conftest.o conftest.s
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23831 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23832 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23834 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23838 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23839 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23840 $as_echo_n "(cached) " >&6
23842 gcc_cv_as_alpha_jsrdirect_relocs
=no
23843 if test $in_tree_gas = yes; then
23844 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23845 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23847 elif test x
$gcc_cv_as != x
; then
23848 $as_echo ' .set nomacro
23850 ldq $27, a($29) !literal!1
23851 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23852 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23854 (eval $ac_try) 2>&5
23856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23857 test $ac_status = 0; }; }
23859 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23861 echo "configure: failed program was" >&5
23864 rm -f conftest.o conftest.s
23867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23868 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23869 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23871 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23878 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23879 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23880 $as_echo_n "(cached) " >&6
23882 gcc_cv_as_cris_no_mul_bug
=no
23883 if test $in_tree_gas = yes; then
23884 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23885 then gcc_cv_as_cris_no_mul_bug
=yes
23887 elif test x
$gcc_cv_as != x
; then
23888 $as_echo '.text' > conftest.s
23889 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23891 (eval $ac_try) 2>&5
23893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23894 test $ac_status = 0; }; }
23896 gcc_cv_as_cris_no_mul_bug
=yes
23898 echo "configure: failed program was" >&5
23901 rm -f conftest.o conftest.s
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23905 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23906 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23908 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23915 $as_echo_n "checking assembler for .register... " >&6; }
23916 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23917 $as_echo_n "(cached) " >&6
23919 gcc_cv_as_sparc_register_op
=no
23920 if test x
$gcc_cv_as != x
; then
23921 $as_echo '.register %g2, #scratch' > conftest.s
23922 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23924 (eval $ac_try) 2>&5
23926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23927 test $ac_status = 0; }; }
23929 gcc_cv_as_sparc_register_op
=yes
23931 echo "configure: failed program was" >&5
23934 rm -f conftest.o conftest.s
23937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23938 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23939 if test $gcc_cv_as_sparc_register_op = yes; then
23941 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
23946 $as_echo_n "checking assembler for #nobits... " >&6; }
23947 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
23948 $as_echo_n "(cached) " >&6
23950 gcc_cv_as_sparc_nobits
=no
23951 if test x
$gcc_cv_as != x
; then
23952 $as_echo '.section "nobits",#alloc,#write,#nobits
23953 .section "progbits",#alloc,#write,#progbits' > conftest.s
23954 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23956 (eval $ac_try) 2>&5
23958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23959 test $ac_status = 0; }; }
23961 gcc_cv_as_sparc_nobits
=yes
23963 echo "configure: failed program was" >&5
23966 rm -f conftest.o conftest.s
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
23970 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
23973 cat >>confdefs.h
<<_ACEOF
23974 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23979 $as_echo_n "checking assembler for -relax option... " >&6; }
23980 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23981 $as_echo_n "(cached) " >&6
23983 gcc_cv_as_sparc_relax
=no
23984 if test x
$gcc_cv_as != x
; then
23985 $as_echo '.text' > conftest.s
23986 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23988 (eval $ac_try) 2>&5
23990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23991 test $ac_status = 0; }; }
23993 gcc_cv_as_sparc_relax
=yes
23995 echo "configure: failed program was" >&5
23998 rm -f conftest.o conftest.s
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24002 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24003 if test $gcc_cv_as_sparc_relax = yes; then
24005 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24010 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24011 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24012 $as_echo_n "(cached) " >&6
24014 gcc_cv_as_sparc_gotdata_op
=no
24015 if test x
$gcc_cv_as != x
; then
24021 sethi %gdop_hix22(foo), %g1
24022 xor %g1, %gdop_lox10(foo), %g1
24023 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24024 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24026 (eval $ac_try) 2>&5
24028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24029 test $ac_status = 0; }; }
24031 if test x
$gcc_cv_ld != x \
24032 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24033 if test x
$gcc_cv_objdump != x
; then
24034 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24035 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24036 gcc_cv_as_sparc_gotdata_op
=no
24038 gcc_cv_as_sparc_gotdata_op
=yes
24044 echo "configure: failed program was" >&5
24047 rm -f conftest.o conftest.s
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24051 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24052 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24054 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24059 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24060 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24061 $as_echo_n "(cached) " >&6
24063 gcc_cv_as_sparc_ua_pcrel
=no
24064 if test x
$gcc_cv_as != x
; then
24071 .uaword %r_disp32(foo)' > conftest.s
24072 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24074 (eval $ac_try) 2>&5
24076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24077 test $ac_status = 0; }; }
24079 if test x
$gcc_cv_ld != x \
24080 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24081 gcc_cv_as_sparc_ua_pcrel
=yes
24085 echo "configure: failed program was" >&5
24088 rm -f conftest.o conftest.s
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24092 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24093 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24095 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24099 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24100 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24101 $as_echo_n "(cached) " >&6
24103 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24104 if test x
$gcc_cv_as != x
; then
24108 .uaword %r_disp32(foo)
24109 .byte 0x32, 0x33, 0x34
24113 .skip 4' > conftest.s
24114 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24116 (eval $ac_try) 2>&5
24118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24119 test $ac_status = 0; }; }
24121 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24122 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24123 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24124 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24125 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24126 |
grep 'DISP32' > /dev
/null
2>&1; then
24129 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24134 echo "configure: failed program was" >&5
24137 rm -f conftest.o conftest.s
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24141 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24142 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24144 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24148 fi # unaligned pcrel relocs
24150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24151 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24152 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24153 $as_echo_n "(cached) " >&6
24155 gcc_cv_as_sparc_offsetable_lo10
=no
24156 if test x
$gcc_cv_as != x
; then
24158 or %g1, %lo(ab) + 12, %g1
24159 or %g1, %lo(ab + 12), %g1' > conftest.s
24160 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24162 (eval $ac_try) 2>&5
24164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24165 test $ac_status = 0; }; }
24167 if test x
$gcc_cv_objdump != x \
24168 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24169 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24170 gcc_cv_as_sparc_offsetable_lo10
=yes
24173 echo "configure: failed program was" >&5
24176 rm -f conftest.o conftest.s
24179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24180 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24181 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24183 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24188 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24189 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24190 $as_echo_n "(cached) " >&6
24192 gcc_cv_as_sparc_fmaf
=no
24193 if test x
$gcc_cv_as != x
; then
24195 .register %g2, #scratch
24196 .register %g3, #scratch
24198 fmaddd %f0, %f2, %f4, %f6
24199 addxccc %g1, %g2, %g3
24200 fsrl32 %f2, %f4, %f8
24201 fnaddd %f10, %f12, %f14' > conftest.s
24202 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24204 (eval $ac_try) 2>&5
24206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24207 test $ac_status = 0; }; }
24209 gcc_cv_as_sparc_fmaf
=yes
24211 echo "configure: failed program was" >&5
24214 rm -f conftest.o conftest.s
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24218 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24219 if test $gcc_cv_as_sparc_fmaf = yes; then
24221 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24226 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24227 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24228 $as_echo_n "(cached) " >&6
24230 gcc_cv_as_sparc_sparc4
=no
24231 if test x
$gcc_cv_as != x
; then
24233 .register %g2, #scratch
24234 .register %g3, #scratch
24237 1: cwbneg %g2, %g3, 1f
24240 aes_kexpand0 %f4, %f6, %f8
24241 des_round %f38, %f40, %f42, %f44
24242 camellia_f %f54, %f56, %f58, %f60
24243 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24244 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24246 (eval $ac_try) 2>&5
24248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24249 test $ac_status = 0; }; }
24251 gcc_cv_as_sparc_sparc4
=yes
24253 echo "configure: failed program was" >&5
24256 rm -f conftest.o conftest.s
24259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24260 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24261 if test $gcc_cv_as_sparc_sparc4 = yes; then
24263 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24268 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24269 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24270 $as_echo_n "(cached) " >&6
24272 gcc_cv_as_sparc_leon
=no
24273 if test x
$gcc_cv_as != x
; then
24275 .register %g2, #scratch
24276 .register %g3, #scratch
24280 cas [%g2], %g3, %g1' > conftest.s
24281 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24283 (eval $ac_try) 2>&5
24285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24286 test $ac_status = 0; }; }
24288 gcc_cv_as_sparc_leon
=yes
24290 echo "configure: failed program was" >&5
24293 rm -f conftest.o conftest.s
24296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24297 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24298 if test $gcc_cv_as_sparc_leon = yes; then
24300 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24305 i
[34567]86-*-* | x86_64-
*-*)
24308 # Full C++ conformance when using a shared libstdc++-v3 requires some
24309 # support from the Cygwin DLL, which in more recent versions exports
24310 # wrappers to aid in interposing and redirecting operators new, delete,
24311 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24312 # are configuring for a version of Cygwin that exports the wrappers.
24313 if test x
$host = x
$target; then
24314 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24315 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24316 gcc_ac_cygwin_dll_wrappers
=yes
24318 gcc_ac_cygwin_dll_wrappers
=no
24322 # Can't check presence of libc functions during cross-compile, so
24323 # we just have to assume we're building for an up-to-date target.
24324 gcc_ac_cygwin_dll_wrappers
=yes
24327 cat >>confdefs.h
<<_ACEOF
24328 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24333 cygwin
* | pe | mingw32
* | interix
*)
24334 # Recent binutils allows the three-operand form of ".comm" on PE. This
24335 # definition is used unconditionally to initialise the default state of
24336 # the target option variable that governs usage of the feature.
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24338 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24339 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24340 $as_echo_n "(cached) " >&6
24342 gcc_cv_as_comm_has_align
=no
24343 if test $in_tree_gas = yes; then
24344 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24345 then gcc_cv_as_comm_has_align
=yes
24347 elif test x
$gcc_cv_as != x
; then
24348 $as_echo '.comm foo,1,32' > conftest.s
24349 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24351 (eval $ac_try) 2>&5
24353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24354 test $ac_status = 0; }; }
24356 gcc_cv_as_comm_has_align
=yes
24358 echo "configure: failed program was" >&5
24361 rm -f conftest.o conftest.s
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24365 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24368 cat >>confdefs.h
<<_ACEOF
24369 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24372 # Used for DWARF 2 in PE
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24374 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24375 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24376 $as_echo_n "(cached) " >&6
24378 gcc_cv_as_ix86_pe_secrel32
=no
24379 if test $in_tree_gas = yes; then
24380 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24381 then gcc_cv_as_ix86_pe_secrel32
=yes
24383 elif test x
$gcc_cv_as != x
; then
24387 .secrel32 foo' > conftest.s
24388 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24390 (eval $ac_try) 2>&5
24392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24393 test $ac_status = 0; }; }
24395 if test x
$gcc_cv_ld != x \
24396 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24397 gcc_cv_as_ix86_pe_secrel32
=yes
24401 echo "configure: failed program was" >&5
24404 rm -f conftest.o conftest.s
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24408 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24409 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24411 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24414 # Test if the assembler supports the extended form of the .section
24415 # directive that specifies section alignment. LTO support uses this,
24416 # but normally only after installation, so we warn but don't fail the
24417 # configure if LTO is enabled but the assembler does not support it.
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24419 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24420 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24421 $as_echo_n "(cached) " >&6
24423 gcc_cv_as_section_has_align
=no
24424 if test $in_tree_gas = yes; then
24425 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24426 then gcc_cv_as_section_has_align
=yes
24428 elif test x
$gcc_cv_as != x
; then
24429 $as_echo '.section lto_test,"dr0"' > conftest.s
24430 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24432 (eval $ac_try) 2>&5
24434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24435 test $ac_status = 0; }; }
24437 gcc_cv_as_section_has_align
=yes
24439 echo "configure: failed program was" >&5
24442 rm -f conftest.o conftest.s
24445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24446 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24448 if test x
$gcc_cv_as_section_has_align != xyes
; then
24449 case ",$enable_languages," in
24451 { $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
24452 $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;}
24456 # Test if the assembler supports the section flag 'e' for specifying
24457 # an excluded section.
24458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24459 $as_echo_n "checking assembler for .section with e... " >&6; }
24460 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24461 $as_echo_n "(cached) " >&6
24463 gcc_cv_as_section_has_e
=no
24464 if test $in_tree_gas = yes; then
24465 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24466 then gcc_cv_as_section_has_e
=yes
24468 elif test x
$gcc_cv_as != x
; then
24469 $as_echo '.section foo1,"e"
24470 .byte 0,0,0,0' > conftest.s
24471 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24473 (eval $ac_try) 2>&5
24475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24476 test $ac_status = 0; }; }
24478 gcc_cv_as_section_has_e
=yes
24480 echo "configure: failed program was" >&5
24483 rm -f conftest.o conftest.s
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24487 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24490 cat >>confdefs.h
<<_ACEOF
24491 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24498 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24499 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24500 $as_echo_n "(cached) " >&6
24502 gcc_cv_as_ix86_filds
=no
24503 if test x
$gcc_cv_as != x
; then
24504 $as_echo 'filds mem; fists mem' > 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_ix86_filds
=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_ix86_filds" >&5
24521 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24522 if test $gcc_cv_as_ix86_filds = yes; then
24524 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24529 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24530 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24531 $as_echo_n "(cached) " >&6
24533 gcc_cv_as_ix86_fildq
=no
24534 if test x
$gcc_cv_as != x
; then
24535 $as_echo 'fildq mem; fistpq mem' > conftest.s
24536 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24538 (eval $ac_try) 2>&5
24540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24541 test $ac_status = 0; }; }
24543 gcc_cv_as_ix86_fildq
=yes
24545 echo "configure: failed program was" >&5
24548 rm -f conftest.o conftest.s
24551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24552 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24553 if test $gcc_cv_as_ix86_fildq = yes; then
24555 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24560 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24561 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24562 $as_echo_n "(cached) " >&6
24564 gcc_cv_as_ix86_cmov_sun_syntax
=no
24565 if test x
$gcc_cv_as != x
; then
24566 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24567 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24569 (eval $ac_try) 2>&5
24571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24572 test $ac_status = 0; }; }
24574 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24576 echo "configure: failed program was" >&5
24579 rm -f conftest.o conftest.s
24582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24583 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24584 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24586 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24591 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24592 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24593 $as_echo_n "(cached) " >&6
24595 gcc_cv_as_ix86_ffreep
=no
24596 if test x
$gcc_cv_as != x
; then
24597 $as_echo 'ffreep %st(1)' > conftest.s
24598 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24600 (eval $ac_try) 2>&5
24602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24603 test $ac_status = 0; }; }
24605 gcc_cv_as_ix86_ffreep
=yes
24607 echo "configure: failed program was" >&5
24610 rm -f conftest.o conftest.s
24613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24614 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24615 if test $gcc_cv_as_ix86_ffreep = yes; then
24617 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24622 $as_echo_n "checking assembler for .quad directive... " >&6; }
24623 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24624 $as_echo_n "(cached) " >&6
24626 gcc_cv_as_ix86_quad
=no
24627 if test x
$gcc_cv_as != x
; then
24628 $as_echo '.quad 0' > conftest.s
24629 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24631 (eval $ac_try) 2>&5
24633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24634 test $ac_status = 0; }; }
24636 gcc_cv_as_ix86_quad
=yes
24638 echo "configure: failed program was" >&5
24641 rm -f conftest.o conftest.s
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24645 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24646 if test $gcc_cv_as_ix86_quad = yes; then
24648 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24653 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24654 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24655 $as_echo_n "(cached) " >&6
24657 gcc_cv_as_ix86_sahf
=no
24658 if test x
$gcc_cv_as != x
; then
24661 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24663 (eval $ac_try) 2>&5
24665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24666 test $ac_status = 0; }; }
24668 gcc_cv_as_ix86_sahf
=yes
24670 echo "configure: failed program was" >&5
24673 rm -f conftest.o conftest.s
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24677 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24678 if test $gcc_cv_as_ix86_sahf = yes; then
24680 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24685 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24686 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24687 $as_echo_n "(cached) " >&6
24689 gcc_cv_as_ix86_hle
=no
24690 if test x
$gcc_cv_as != x
; then
24691 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24692 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24694 (eval $ac_try) 2>&5
24696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24697 test $ac_status = 0; }; }
24699 gcc_cv_as_ix86_hle
=yes
24701 echo "configure: failed program was" >&5
24704 rm -f conftest.o conftest.s
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24708 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24709 if test $gcc_cv_as_ix86_hle = yes; then
24711 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24716 $as_echo_n "checking assembler for swap suffix... " >&6; }
24717 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24718 $as_echo_n "(cached) " >&6
24720 gcc_cv_as_ix86_swap
=no
24721 if test x
$gcc_cv_as != x
; then
24722 $as_echo 'movl.s %esp, %ebp' > conftest.s
24723 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24725 (eval $ac_try) 2>&5
24727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24728 test $ac_status = 0; }; }
24730 gcc_cv_as_ix86_swap
=yes
24732 echo "configure: failed program was" >&5
24735 rm -f conftest.o conftest.s
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24739 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24740 if test $gcc_cv_as_ix86_swap = yes; then
24742 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24747 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24748 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24749 $as_echo_n "(cached) " >&6
24751 gcc_cv_as_ix86_diff_sect_delta
=no
24752 if test x
$gcc_cv_as != x
; then
24753 $as_echo '.section .rodata
24759 .L2: nop' > conftest.s
24760 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24762 (eval $ac_try) 2>&5
24764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24765 test $ac_status = 0; }; }
24767 gcc_cv_as_ix86_diff_sect_delta
=yes
24769 echo "configure: failed program was" >&5
24772 rm -f conftest.o conftest.s
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24776 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24777 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24779 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24783 # These two are used unconditionally by i386.[ch]; it is to be defined
24784 # to 1 if the feature is present, 0 otherwise.
24785 as_ix86_gotoff_in_data_opt
=
24786 if test x
$gas = xyes
; then
24787 as_ix86_gotoff_in_data_opt
="--32"
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24790 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24791 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24792 $as_echo_n "(cached) " >&6
24794 gcc_cv_as_ix86_gotoff_in_data
=no
24795 if test $in_tree_gas = yes; then
24796 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24797 then gcc_cv_as_ix86_gotoff_in_data
=yes
24799 elif test x
$gcc_cv_as != x
; then
24804 .long .L0@GOTOFF' > conftest.s
24805 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
24806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24807 (eval $ac_try) 2>&5
24809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24810 test $ac_status = 0; }; }
24812 gcc_cv_as_ix86_gotoff_in_data
=yes
24814 echo "configure: failed program was" >&5
24817 rm -f conftest.o conftest.s
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24821 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24824 cat >>confdefs.h
<<_ACEOF
24825 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24830 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24831 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24832 $as_echo_n "(cached) " >&6
24834 gcc_cv_as_ix86_rep_lock_prefix
=no
24835 if test x
$gcc_cv_as != x
; then
24836 $as_echo 'rep movsl
24841 lock addl %edi, (%eax,%esi)
24842 lock orl $0, (%esp)' > conftest.s
24843 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24845 (eval $ac_try) 2>&5
24847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24848 test $ac_status = 0; }; }
24850 gcc_cv_as_ix86_rep_lock_prefix
=yes
24852 echo "configure: failed program was" >&5
24855 rm -f conftest.o conftest.s
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24859 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24860 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24862 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
24867 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
24868 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
24869 $as_echo_n "(cached) " >&6
24871 gcc_cv_as_ix86_ud2
=no
24872 if test x
$gcc_cv_as != x
; then
24873 $as_echo 'ud2' > conftest.s
24874 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24876 (eval $ac_try) 2>&5
24878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24879 test $ac_status = 0; }; }
24881 gcc_cv_as_ix86_ud2
=yes
24883 echo "configure: failed program was" >&5
24886 rm -f conftest.o conftest.s
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
24890 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
24891 if test $gcc_cv_as_ix86_ud2 = yes; then
24893 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24898 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24899 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24900 $as_echo_n "(cached) " >&6
24902 gcc_cv_as_ix86_tlsgdplt
=no
24903 if test x
$gcc_cv_as != x
; then
24904 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24905 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24907 (eval $ac_try) 2>&5
24909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24910 test $ac_status = 0; }; }
24912 if test x
$gcc_cv_ld != x \
24913 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24914 gcc_cv_as_ix86_tlsgdplt
=yes
24918 echo "configure: failed program was" >&5
24921 rm -f conftest.o conftest.s
24924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24925 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24926 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24928 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24933 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24934 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24935 $as_echo_n "(cached) " >&6
24937 gcc_cv_as_ix86_tlsldmplt
=no
24938 if test x
$gcc_cv_as != x
; then
24940 call tls_ld@tlsldmplt' > conftest.s
24941 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24943 (eval $ac_try) 2>&5
24945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24946 test $ac_status = 0; }; }
24948 if test x
$gcc_cv_ld != x \
24949 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24950 gcc_cv_as_ix86_tlsldmplt
=yes
24954 echo "configure: failed program was" >&5
24957 rm -f conftest.o conftest.s
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24961 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24962 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24964 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24972 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24973 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24974 $as_echo_n "(cached) " >&6
24976 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
24977 if test $in_tree_gas = yes; then
24978 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24979 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24981 elif test x
$gcc_cv_as != x
; then
24983 addl r15 = @ltoffx(x#), gp
24985 ld8.mov r16 = [r15], x#' > conftest.s
24986 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24988 (eval $ac_try) 2>&5
24990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24991 test $ac_status = 0; }; }
24993 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24995 echo "configure: failed program was" >&5
24998 rm -f conftest.o conftest.s
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25002 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25003 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25005 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25013 *-*-aix*) conftest_s
=' .machine "pwr5"
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25018 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25019 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25020 $as_echo_n "(cached) " >&6
25022 gcc_cv_as_machine_directive
=no
25023 if test x
$gcc_cv_as != x
; then
25024 $as_echo ' .machine ppc7400' > conftest.s
25025 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25027 (eval $ac_try) 2>&5
25029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25030 test $ac_status = 0; }; }
25032 gcc_cv_as_machine_directive
=yes
25034 echo "configure: failed program was" >&5
25037 rm -f conftest.o conftest.s
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25041 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25043 if test x
$gcc_cv_as_machine_directive != xyes
; then
25044 echo "*** This target requires an assembler supporting \".machine\"" >&2
25045 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25046 test x
$build = x
$target && exit 1
25050 *) conftest_s
=' .machine power4
25055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25056 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25057 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25058 $as_echo_n "(cached) " >&6
25060 gcc_cv_as_powerpc_mfcrf
=no
25061 if test $in_tree_gas = yes; then
25062 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25063 then gcc_cv_as_powerpc_mfcrf
=yes
25065 elif test x
$gcc_cv_as != x
; then
25066 $as_echo "$conftest_s" > conftest.s
25067 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25069 (eval $ac_try) 2>&5
25071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25072 test $ac_status = 0; }; }
25074 gcc_cv_as_powerpc_mfcrf
=yes
25076 echo "configure: failed program was" >&5
25079 rm -f conftest.o conftest.s
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25083 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25084 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25086 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25091 *-*-aix*) conftest_s
=' .machine "pwr5"
25094 *) conftest_s
=' .machine power5
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25100 $as_echo_n "checking assembler for popcntb support... " >&6; }
25101 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25102 $as_echo_n "(cached) " >&6
25104 gcc_cv_as_powerpc_popcntb
=no
25105 if test $in_tree_gas = yes; then
25106 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25107 then gcc_cv_as_powerpc_popcntb
=yes
25109 elif test x
$gcc_cv_as != x
; then
25110 $as_echo "$conftest_s" > conftest.s
25111 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25113 (eval $ac_try) 2>&5
25115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25116 test $ac_status = 0; }; }
25118 gcc_cv_as_powerpc_popcntb
=yes
25120 echo "configure: failed program was" >&5
25123 rm -f conftest.o conftest.s
25126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25127 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25128 if test $gcc_cv_as_powerpc_popcntb = yes; then
25130 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25135 *-*-aix*) conftest_s
=' .machine "pwr5x"
25138 *) conftest_s
=' .machine power5
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25144 $as_echo_n "checking assembler for fp round support... " >&6; }
25145 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25146 $as_echo_n "(cached) " >&6
25148 gcc_cv_as_powerpc_fprnd
=no
25149 if test $in_tree_gas = yes; then
25150 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25151 then gcc_cv_as_powerpc_fprnd
=yes
25153 elif test x
$gcc_cv_as != x
; then
25154 $as_echo "$conftest_s" > conftest.s
25155 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25157 (eval $ac_try) 2>&5
25159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25160 test $ac_status = 0; }; }
25162 gcc_cv_as_powerpc_fprnd
=yes
25164 echo "configure: failed program was" >&5
25167 rm -f conftest.o conftest.s
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25171 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25172 if test $gcc_cv_as_powerpc_fprnd = yes; then
25174 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25179 *-*-aix*) conftest_s
=' .machine "pwr6"
25182 *) conftest_s
=' .machine power6
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25188 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25189 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25190 $as_echo_n "(cached) " >&6
25192 gcc_cv_as_powerpc_mfpgpr
=no
25193 if test $in_tree_gas = yes; then
25194 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25195 then gcc_cv_as_powerpc_mfpgpr
=yes
25197 elif test x
$gcc_cv_as != x
; then
25198 $as_echo "$conftest_s" > conftest.s
25199 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25201 (eval $ac_try) 2>&5
25203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25204 test $ac_status = 0; }; }
25206 gcc_cv_as_powerpc_mfpgpr
=yes
25208 echo "configure: failed program was" >&5
25211 rm -f conftest.o conftest.s
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25215 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25216 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25218 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25223 *-*-aix*) conftest_s
=' .csect .text[PR]
25225 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25229 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25230 *) conftest_s
=' .text
25232 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25236 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25237 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25238 $as_echo_n "(cached) " >&6
25240 gcc_cv_as_powerpc_rel16
=no
25241 if test $in_tree_gas = yes; then
25242 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25243 then gcc_cv_as_powerpc_rel16
=yes
25245 elif test x
$gcc_cv_as != x
; then
25246 $as_echo "$conftest_s" > conftest.s
25247 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25249 (eval $ac_try) 2>&5
25251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25252 test $ac_status = 0; }; }
25254 gcc_cv_as_powerpc_rel16
=yes
25256 echo "configure: failed program was" >&5
25259 rm -f conftest.o conftest.s
25262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25263 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25264 if test $gcc_cv_as_powerpc_rel16 = yes; then
25266 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25271 *-*-aix*) conftest_s
=' .machine "pwr6"
25274 *) conftest_s
=' .machine power6
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25280 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25281 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25282 $as_echo_n "(cached) " >&6
25284 gcc_cv_as_powerpc_cmpb
=no
25285 if test $in_tree_gas = yes; then
25286 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25287 then gcc_cv_as_powerpc_cmpb
=yes
25289 elif test x
$gcc_cv_as != x
; then
25290 $as_echo "$conftest_s" > conftest.s
25291 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25293 (eval $ac_try) 2>&5
25295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25296 test $ac_status = 0; }; }
25298 gcc_cv_as_powerpc_cmpb
=yes
25300 echo "configure: failed program was" >&5
25303 rm -f conftest.o conftest.s
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25307 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25308 if test $gcc_cv_as_powerpc_cmpb = yes; then
25310 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25315 *-*-aix*) conftest_s
=' .machine "pwr6"
25318 *) conftest_s
=' .machine power6
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25324 $as_echo_n "checking assembler for decimal float support... " >&6; }
25325 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25326 $as_echo_n "(cached) " >&6
25328 gcc_cv_as_powerpc_dfp
=no
25329 if test $in_tree_gas = yes; then
25330 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25331 then gcc_cv_as_powerpc_dfp
=yes
25333 elif test x
$gcc_cv_as != x
; then
25334 $as_echo "$conftest_s" > conftest.s
25335 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25337 (eval $ac_try) 2>&5
25339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25340 test $ac_status = 0; }; }
25342 gcc_cv_as_powerpc_dfp
=yes
25344 echo "configure: failed program was" >&5
25347 rm -f conftest.o conftest.s
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25351 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25352 if test $gcc_cv_as_powerpc_dfp = yes; then
25354 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25359 *-*-aix*) conftest_s
=' .machine "pwr7"
25362 *) conftest_s
=' .machine power7
25367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25368 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25369 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25370 $as_echo_n "(cached) " >&6
25372 gcc_cv_as_powerpc_vsx
=no
25373 if test $in_tree_gas = yes; then
25374 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25375 then gcc_cv_as_powerpc_vsx
=yes
25377 elif test x
$gcc_cv_as != x
; then
25378 $as_echo "$conftest_s" > conftest.s
25379 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25381 (eval $ac_try) 2>&5
25383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25384 test $ac_status = 0; }; }
25386 gcc_cv_as_powerpc_vsx
=yes
25388 echo "configure: failed program was" >&5
25391 rm -f conftest.o conftest.s
25394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25395 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25396 if test $gcc_cv_as_powerpc_vsx = yes; then
25398 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25403 *-*-aix*) conftest_s
=' .machine "pwr7"
25406 *) conftest_s
=' .machine power7
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25412 $as_echo_n "checking assembler for popcntd support... " >&6; }
25413 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25414 $as_echo_n "(cached) " >&6
25416 gcc_cv_as_powerpc_popcntd
=no
25417 if test $in_tree_gas = yes; then
25418 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25419 then gcc_cv_as_powerpc_popcntd
=yes
25421 elif test x
$gcc_cv_as != x
; then
25422 $as_echo "$conftest_s" > conftest.s
25423 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -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_powerpc_popcntd
=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_powerpc_popcntd" >&5
25439 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25440 if test $gcc_cv_as_powerpc_popcntd = yes; then
25442 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25447 *-*-aix*) conftest_s
=' .machine "pwr8"
25448 .csect .text[PR]';;
25449 *) conftest_s
=' .machine power8
25453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25454 $as_echo_n "checking assembler for power8 support... " >&6; }
25455 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25456 $as_echo_n "(cached) " >&6
25458 gcc_cv_as_powerpc_power8
=no
25459 if test $in_tree_gas = yes; then
25460 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25461 then gcc_cv_as_powerpc_power8
=yes
25463 elif test x
$gcc_cv_as != x
; then
25464 $as_echo "$conftest_s" > conftest.s
25465 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25467 (eval $ac_try) 2>&5
25469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25470 test $ac_status = 0; }; }
25472 gcc_cv_as_powerpc_power8
=yes
25474 echo "configure: failed program was" >&5
25477 rm -f conftest.o conftest.s
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25481 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25482 if test $gcc_cv_as_powerpc_power8 = yes; then
25484 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25489 *-*-aix*) conftest_s
=' .csect .text[PR]
25491 *) conftest_s
=' .text
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25496 $as_echo_n "checking assembler for lwsync support... " >&6; }
25497 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25498 $as_echo_n "(cached) " >&6
25500 gcc_cv_as_powerpc_lwsync
=no
25501 if test $in_tree_gas = yes; then
25502 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25503 then gcc_cv_as_powerpc_lwsync
=yes
25505 elif test x
$gcc_cv_as != x
; then
25506 $as_echo "$conftest_s" > conftest.s
25507 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25509 (eval $ac_try) 2>&5
25511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25512 test $ac_status = 0; }; }
25514 gcc_cv_as_powerpc_lwsync
=yes
25516 echo "configure: failed program was" >&5
25519 rm -f conftest.o conftest.s
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25523 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25524 if test $gcc_cv_as_powerpc_lwsync = yes; then
25526 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25531 *-*-aix*) conftest_s
=' .machine "476"
25534 *) conftest_s
=' .machine "476"
25539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25540 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25541 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25542 $as_echo_n "(cached) " >&6
25544 gcc_cv_as_powerpc_dci
=no
25545 if test $in_tree_gas = yes; then
25546 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25547 then gcc_cv_as_powerpc_dci
=yes
25549 elif test x
$gcc_cv_as != x
; then
25550 $as_echo "$conftest_s" > conftest.s
25551 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25553 (eval $ac_try) 2>&5
25555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25556 test $ac_status = 0; }; }
25558 gcc_cv_as_powerpc_dci
=yes
25560 echo "configure: failed program was" >&5
25563 rm -f conftest.o conftest.s
25566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25567 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25568 if test $gcc_cv_as_powerpc_dci = yes; then
25570 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25575 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25576 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25577 $as_echo_n "(cached) " >&6
25579 gcc_cv_as_powerpc_gnu_attribute
=no
25580 if test $in_tree_gas = yes; then
25581 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25582 then gcc_cv_as_powerpc_gnu_attribute
=yes
25584 elif test x
$gcc_cv_as != x
; then
25585 $as_echo '.gnu_attribute 4,1' > conftest.s
25586 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25588 (eval $ac_try) 2>&5
25590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25591 test $ac_status = 0; }; }
25593 gcc_cv_as_powerpc_gnu_attribute
=yes
25595 echo "configure: failed program was" >&5
25598 rm -f conftest.o conftest.s
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25602 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25603 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25605 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25610 $as_echo_n "checking assembler for tls marker support... " >&6; }
25611 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25612 $as_echo_n "(cached) " >&6
25614 gcc_cv_as_powerpc_tls_markers
=no
25615 if test $in_tree_gas = yes; then
25616 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25617 then gcc_cv_as_powerpc_tls_markers
=yes
25619 elif test x
$gcc_cv_as != x
; then
25620 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25621 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -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 gcc_cv_as_powerpc_tls_markers
=yes
25630 echo "configure: failed program was" >&5
25633 rm -f conftest.o conftest.s
25636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25637 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25638 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25640 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25647 $as_echo_n "checking assembler for .ref support... " >&6; }
25648 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25649 $as_echo_n "(cached) " >&6
25651 gcc_cv_as_aix_ref
=no
25652 if test $in_tree_gas = yes; then
25653 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25654 then gcc_cv_as_aix_ref
=yes
25656 elif test x
$gcc_cv_as != x
; then
25657 $as_echo ' .csect stuff[rw]
25663 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25665 (eval $ac_try) 2>&5
25667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25668 test $ac_status = 0; }; }
25670 gcc_cv_as_aix_ref
=yes
25672 echo "configure: failed program was" >&5
25675 rm -f conftest.o conftest.s
25678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25679 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25680 if test $gcc_cv_as_aix_ref = yes; then
25682 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25691 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25692 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25693 $as_echo_n "(cached) " >&6
25695 gcc_cv_as_mips_explicit_relocs
=no
25696 if test $in_tree_gas = yes; then
25697 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25698 then gcc_cv_as_mips_explicit_relocs
=yes
25700 elif test x
$gcc_cv_as != x
; then
25701 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25702 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25704 (eval $ac_try) 2>&5
25706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25707 test $ac_status = 0; }; }
25709 gcc_cv_as_mips_explicit_relocs
=yes
25711 echo "configure: failed program was" >&5
25714 rm -f conftest.o conftest.s
25717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25718 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25719 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25720 if test x
$target_cpu_default = x
25721 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25722 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25726 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25727 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25728 $as_echo_n "(cached) " >&6
25730 gcc_cv_as_mips_no_shared
=no
25731 if test $in_tree_gas = yes; then
25732 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25733 then gcc_cv_as_mips_no_shared
=yes
25735 elif test x
$gcc_cv_as != x
; then
25736 $as_echo 'nop' > conftest.s
25737 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25739 (eval $ac_try) 2>&5
25741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25742 test $ac_status = 0; }; }
25744 gcc_cv_as_mips_no_shared
=yes
25746 echo "configure: failed program was" >&5
25749 rm -f conftest.o conftest.s
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25753 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25754 if test $gcc_cv_as_mips_no_shared = yes; then
25756 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25761 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25762 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25763 $as_echo_n "(cached) " >&6
25765 gcc_cv_as_mips_gnu_attribute
=no
25766 if test $in_tree_gas = yes; then
25767 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25768 then gcc_cv_as_mips_gnu_attribute
=yes
25770 elif test x
$gcc_cv_as != x
; then
25771 $as_echo '.gnu_attribute 4,1' > conftest.s
25772 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25774 (eval $ac_try) 2>&5
25776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25777 test $ac_status = 0; }; }
25779 gcc_cv_as_mips_gnu_attribute
=yes
25781 echo "configure: failed program was" >&5
25784 rm -f conftest.o conftest.s
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25788 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25789 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25791 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25796 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25797 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25798 $as_echo_n "(cached) " >&6
25800 gcc_cv_as_mips_dtprelword
=no
25801 if test $in_tree_gas = yes; then
25802 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25803 then gcc_cv_as_mips_dtprelword
=yes
25805 elif test x
$gcc_cv_as != x
; then
25806 $as_echo '.section .tdata,"awT",@progbits
25810 .dtprelword x+0x8000' > conftest.s
25811 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25813 (eval $ac_try) 2>&5
25815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25816 test $ac_status = 0; }; }
25818 gcc_cv_as_mips_dtprelword
=yes
25820 echo "configure: failed program was" >&5
25823 rm -f conftest.o conftest.s
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25827 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25828 if test $gcc_cv_as_mips_dtprelword = yes; then
25830 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25835 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25836 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25837 $as_echo_n "(cached) " >&6
25839 gcc_cv_as_mips_dspr1_mult
=no
25840 if test x
$gcc_cv_as != x
; then
25841 $as_echo ' .set mips32r2
25849 multu $ac3,$4,$5' > conftest.s
25850 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25852 (eval $ac_try) 2>&5
25854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25855 test $ac_status = 0; }; }
25857 gcc_cv_as_mips_dspr1_mult
=yes
25859 echo "configure: failed program was" >&5
25862 rm -f conftest.o conftest.s
25865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25866 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25867 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25869 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25874 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25875 gcc_cv_as_ld_jalr_reloc
=no
25876 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25877 if test $in_tree_ld = yes ; then
25878 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 \
25879 && test $in_tree_ld_is_elf = yes; then
25880 gcc_cv_as_ld_jalr_reloc
=yes
25882 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25883 echo ' .ent x' > conftest.s
25884 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25885 echo ' ld $25,%call16(y)($28)' >> conftest.s
25886 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25887 echo '1: jalr $25' >> conftest.s
25888 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25889 echo '1: jalr $25' >> conftest.s
25890 echo ' .end x' >> conftest.s
25891 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25892 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25893 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25894 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25895 gcc_cv_as_ld_jalr_reloc
=yes
25901 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25902 if test x
$target_cpu_default = x
; then
25903 target_cpu_default
=MASK_RELAX_PIC_CALLS
25905 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25909 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25912 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25913 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25914 $as_echo_n "(cached) " >&6
25916 gcc_cv_ld_mips_personality_relaxation
=no
25917 if test $in_tree_ld = yes ; then
25918 if test "$gcc_cv_gld_major_version" -eq 2 \
25919 -a "$gcc_cv_gld_minor_version" -ge 21 \
25920 -o "$gcc_cv_gld_major_version" -gt 2; then
25921 gcc_cv_ld_mips_personality_relaxation
=yes
25923 elif test x
$gcc_cv_as != x \
25924 -a x
$gcc_cv_ld != x \
25925 -a x
$gcc_cv_readelf != x
; then
25926 cat > conftest.s
<<EOF
25928 .cfi_personality 0x80,indirect_ptr
25935 .section .data,"aw",@progbits
25939 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25940 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25941 if $gcc_cv_readelf -d conftest
2>&1 \
25942 |
grep TEXTREL
> /dev
/null
2>&1; then
25944 elif $gcc_cv_readelf --relocs conftest
2>&1 \
25945 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
25948 gcc_cv_ld_mips_personality_relaxation
=yes
25952 rm -f conftest.s conftest.o conftest
25954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25955 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25956 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
25958 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25964 # Mips and HP-UX need the GNU assembler.
25965 # Linux on IA64 might be able to use the Intel assembler.
25968 mips
*-*-* |
*-*-hpux* )
25969 if test x
$gas_flag = xyes \
25970 ||
test x
"$host" != x
"$build" \
25971 ||
test ! -x "$gcc_cv_as" \
25972 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
25975 echo "*** This configuration requires the GNU assembler" >&2
25981 # ??? Not all targets support dwarf2 debug_line, even within a version
25982 # of gas. Moreover, we need to emit a valid instruction to trigger any
25983 # info to the output file. So, as supported targets are added to gas 2.11,
25984 # add some instruction here to (also) show we expect this might work.
25985 # ??? Once 2.11 is released, probably need to add first known working
25986 # version to the per-target configury.
25987 case "$cpu_type" in
25988 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
25989 | mips | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 \
26000 if test x
"$insn" != x
; then
26002 .file 1 \"conftest.s\"
26005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26006 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26007 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26008 $as_echo_n "(cached) " >&6
26010 gcc_cv_as_dwarf2_debug_line
=no
26011 if test $in_tree_gas = yes; then
26012 if test $in_tree_gas_is_elf = yes \
26013 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26014 then gcc_cv_as_dwarf2_debug_line
=yes
26016 elif test x
$gcc_cv_as != x
; then
26017 $as_echo "$conftest_s" > conftest.s
26018 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26020 (eval $ac_try) 2>&5
26022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26023 test $ac_status = 0; }; }
26025 if test x
$gcc_cv_objdump != x \
26026 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26027 |
grep debug_line
> /dev
/null
2>&1; then
26028 gcc_cv_as_dwarf2_debug_line
=yes
26031 echo "configure: failed program was" >&5
26034 rm -f conftest.o conftest.s
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26038 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26041 # The .debug_line file table must be in the exact order that
26042 # we specified the files, since these indices are also used
26043 # by DW_AT_decl_file. Approximate this test by testing if
26044 # the assembler bitches if the same index is assigned twice.
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26046 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26047 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26048 $as_echo_n "(cached) " >&6
26050 gcc_cv_as_dwarf2_file_buggy
=no
26051 if test x
$gcc_cv_as != x
; then
26052 $as_echo ' .file 1 "foo.s"
26053 .file 1 "bar.s"' > conftest.s
26054 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26056 (eval $ac_try) 2>&5
26058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26059 test $ac_status = 0; }; }
26061 gcc_cv_as_dwarf2_file_buggy
=yes
26063 echo "configure: failed program was" >&5
26066 rm -f conftest.o conftest.s
26069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26070 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26073 if test $gcc_cv_as_dwarf2_debug_line = yes \
26074 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26076 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26081 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26082 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26083 $as_echo_n "(cached) " >&6
26085 gcc_cv_as_gdwarf2_flag
=no
26086 if test $in_tree_gas = yes; then
26087 if test $in_tree_gas_is_elf = yes \
26088 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26089 then gcc_cv_as_gdwarf2_flag
=yes
26091 elif test x
$gcc_cv_as != x
; then
26092 $as_echo "$insn" > conftest.s
26093 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26095 (eval $ac_try) 2>&5
26097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26098 test $ac_status = 0; }; }
26100 gcc_cv_as_gdwarf2_flag
=yes
26102 echo "configure: failed program was" >&5
26105 rm -f conftest.o conftest.s
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26109 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26110 if test $gcc_cv_as_gdwarf2_flag = yes; then
26112 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26117 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26118 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26119 $as_echo_n "(cached) " >&6
26121 gcc_cv_as_gstabs_flag
=no
26122 if test $in_tree_gas = yes; then
26123 if test $in_tree_gas_is_elf = yes \
26124 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26125 then gcc_cv_as_gstabs_flag
=yes
26127 elif test x
$gcc_cv_as != x
; then
26128 $as_echo "$insn" > conftest.s
26129 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26131 (eval $ac_try) 2>&5
26133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26134 test $ac_status = 0; }; }
26136 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26137 # and warns about it, but still exits successfully. So check for
26139 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26141 (eval $ac_try) 2>&5
26143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26144 test $ac_status = 0; }; }
26146 else gcc_cv_as_gstabs_flag
=yes
26149 echo "configure: failed program was" >&5
26152 rm -f conftest.o conftest.s
26155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26156 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26157 if test $gcc_cv_as_gstabs_flag = yes; then
26159 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26164 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26165 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26166 $as_echo_n "(cached) " >&6
26168 gcc_cv_as_debug_prefix_map_flag
=no
26169 if test $in_tree_gas = yes; then
26170 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26171 then gcc_cv_as_debug_prefix_map_flag
=yes
26173 elif test x
$gcc_cv_as != x
; then
26174 $as_echo "$insn" > conftest.s
26175 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26177 (eval $ac_try) 2>&5
26179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26180 test $ac_status = 0; }; }
26182 gcc_cv_as_debug_prefix_map_flag
=yes
26184 echo "configure: failed program was" >&5
26187 rm -f conftest.o conftest.s
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26191 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26192 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26194 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26200 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26201 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26202 $as_echo_n "(cached) " >&6
26204 gcc_cv_as_lcomm_with_alignment
=no
26205 if test x
$gcc_cv_as != x
; then
26206 $as_echo '.lcomm bar,4,16' > conftest.s
26207 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26209 (eval $ac_try) 2>&5
26211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26212 test $ac_status = 0; }; }
26214 gcc_cv_as_lcomm_with_alignment
=yes
26216 echo "configure: failed program was" >&5
26219 rm -f conftest.o conftest.s
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26223 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26224 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26226 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26230 # Check whether --enable-gnu-unique-object was given.
26231 if test "${enable_gnu_unique_object+set}" = set; then :
26232 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26234 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26235 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26239 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26240 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26241 $as_echo_n "(cached) " >&6
26243 gcc_cv_as_gnu_unique_object
=no
26244 if test $in_tree_gas = yes; then
26245 if test $in_tree_gas_is_elf = yes \
26246 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26247 then gcc_cv_as_gnu_unique_object
=yes
26249 elif test x
$gcc_cv_as != x
; then
26250 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26251 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26253 (eval $ac_try) 2>&5
26255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26256 test $ac_status = 0; }; }
26258 gcc_cv_as_gnu_unique_object
=yes
26260 echo "configure: failed program was" >&5
26263 rm -f conftest.o conftest.s
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26267 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26268 if test $gcc_cv_as_gnu_unique_object = yes; then
26269 # We need to unquote above to to use the definition from config.gcc.
26270 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26271 if test x
$host = x
$build -a x
$host = x
$target &&
26272 ldd
--version 2>/dev
/null
&&
26273 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26274 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
26275 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26276 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
26277 if test "$glibcnum" -ge 2011 ; then
26278 enable_gnu_unique_object
=yes
26284 if test x
$enable_gnu_unique_object = xyes
; then
26286 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26291 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26292 if test "${gcc_cv_as_line_zero+set}" = set; then :
26293 $as_echo_n "(cached) " >&6
26295 gcc_cv_as_line_zero
=no
26296 if test $in_tree_gas = yes; then
26297 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26298 then gcc_cv_as_line_zero
=yes
26300 elif test "x$gcc_cv_as" != x
; then
26301 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26302 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26304 (eval $ac_try) 2>&5
26306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26307 test $ac_status = 0; }; } &&
26308 test "x`cat conftest.out`" = x
26310 gcc_cv_as_line_zero
=yes
26312 echo "configure: failed program was" >&5
26314 echo "configure: error output was" >&5
26315 cat conftest.out
>&5
26317 rm -f conftest.o conftest.s conftest.out
26320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26321 $as_echo "$gcc_cv_as_line_zero" >&6; }
26322 if test "x$gcc_cv_as_line_zero" = xyes
; then
26324 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26329 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26330 gcc_cv_ld_eh_frame_hdr
=no
26331 if test $in_tree_ld = yes ; then
26332 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 \
26333 && test $in_tree_ld_is_elf = yes; then
26334 gcc_cv_ld_eh_frame_hdr
=yes
26336 elif test x
$gcc_cv_ld != x
; then
26337 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26338 # Check if linker supports --eh-frame-hdr option
26339 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26340 gcc_cv_ld_eh_frame_hdr
=yes
26345 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26346 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26347 gcc_cv_ld_eh_frame_hdr
=yes
26354 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26356 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26360 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26363 $as_echo_n "checking linker position independent executable support... " >&6; }
26365 if test $in_tree_ld = yes ; then
26366 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 \
26367 && test $in_tree_ld_is_elf = yes; then
26370 elif test x
$gcc_cv_ld != x
; then
26371 # Check if linker supports -pie option
26372 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26376 if test x
"$gcc_cv_ld_pie" = xyes
; then
26378 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26382 $as_echo "$gcc_cv_ld_pie" >&6; }
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26385 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26386 gcc_cv_ld_eh_gc_sections
=no
26387 if test $in_tree_ld = yes ; then
26388 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 \
26389 && test $in_tree_ld_is_elf = yes; then
26390 gcc_cv_ld_eh_gc_sections
=yes
26392 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26393 cat > conftest.s
<<EOF
26396 .type _start, @function
26399 .size _start, .-_start
26400 .section .text.foo,"ax",@progbits
26401 .type foo, @function
26405 .section .gcc_except_table.foo,"a",@progbits
26408 .section .eh_frame,"a",@progbits
26411 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26412 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26413 |
grep "gc-sections option ignored" > /dev
/null
; then
26414 gcc_cv_ld_eh_gc_sections
=no
26415 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26416 |
grep gcc_except_table
> /dev
/null
; then
26417 gcc_cv_ld_eh_gc_sections
=yes
26418 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26419 if test x
$gcc_cv_as_comdat_group != xyes
; then
26420 gcc_cv_ld_eh_gc_sections
=no
26421 cat > conftest.s
<<EOF
26424 .type _start, @function
26427 .size _start, .-_start
26428 .section .gnu.linkonce.t.foo,"ax",@progbits
26429 .type foo, @function
26433 .section .gcc_except_table.foo,"a",@progbits
26436 .section .eh_frame,"a",@progbits
26439 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26440 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26441 |
grep "gc-sections option ignored" > /dev
/null
; then
26442 gcc_cv_ld_eh_gc_sections
=no
26443 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26444 |
grep gcc_except_table
> /dev
/null
; then
26445 gcc_cv_ld_eh_gc_sections
=yes
26451 rm -f conftest.s conftest.o conftest
26455 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26456 gcc_cv_ld_eh_gc_sections
=no
26459 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26461 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26465 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26468 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26469 gcc_cv_ld_eh_gc_sections_bug
=no
26470 if test $in_tree_ld = yes ; then
26471 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 \
26472 && test $in_tree_ld_is_elf = yes; then
26473 gcc_cv_ld_eh_gc_sections_bug
=yes
26475 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
26476 gcc_cv_ld_eh_gc_sections_bug
=yes
26477 cat > conftest.s
<<EOF
26480 .type _start, @function
26483 .size _start, .-_start
26484 .section .text.startup.foo,"ax",@progbits
26485 .type foo, @function
26489 .section .gcc_except_table.foo,"a",@progbits
26492 .section .eh_frame,"a",@progbits
26495 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26496 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26497 |
grep "gc-sections option ignored" > /dev
/null
; then
26499 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26500 |
grep gcc_except_table
> /dev
/null
; then
26501 gcc_cv_ld_eh_gc_sections_bug
=no
26504 rm -f conftest.s conftest.o conftest
26506 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26508 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26512 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26519 $as_echo_n "checking linker --as-needed support... " >&6; }
26520 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26521 $as_echo_n "(cached) " >&6
26523 gcc_cv_ld_as_needed
=no
26524 if test $in_tree_ld = yes ; then
26525 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 \
26526 && test $in_tree_ld_is_elf = yes; then
26527 gcc_cv_ld_as_needed
=yes
26529 elif test x
$gcc_cv_ld != x
; then
26530 # Check if linker supports --as-needed and --no-as-needed options
26531 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26532 gcc_cv_ld_as_needed
=yes
26537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26538 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26539 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26541 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26545 case "$target:$tm_file" in
26546 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26549 emul_name
="-melf64lppc"
26552 emul_name
="-melf64ppc"
26555 emul_name
="-melf64ppc_fbsd"
26558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26559 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26560 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26561 $as_echo_n "(cached) " >&6
26563 gcc_cv_ld_no_dot_syms
=no
26564 if test x
"$ld_is_gold" = xyes
; then
26565 gcc_cv_ld_no_dot_syms
=yes
26566 elif test $in_tree_ld = yes ; then
26567 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
26568 gcc_cv_ld_no_dot_syms
=yes
26570 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26571 cat > conftest1.s
<<EOF
26575 cat > conftest2.s
<<EOF
26576 .section ".opd","aw"
26579 .type foo,@function
26581 .quad .LEfoo,.TOC.@tocbase,0
26587 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26588 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26589 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26590 gcc_cv_ld_no_dot_syms
=yes
26592 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26597 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26598 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26600 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26605 $as_echo_n "checking linker large toc support... " >&6; }
26606 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26607 $as_echo_n "(cached) " >&6
26609 gcc_cv_ld_large_toc
=no
26610 if test x
"$ld_is_gold" = xyes
; then
26611 gcc_cv_ld_large_toc
=yes
26612 elif test $in_tree_ld = yes ; then
26613 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
26614 gcc_cv_ld_large_toc
=yes
26616 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26617 cat > conftest.s
<<EOF
26618 .section ".tbss","awT",@nobits
26624 addis 9,13,ie0@got@tprel@ha
26625 ld 9,ie0@got@tprel@l(9)
26627 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26628 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26629 gcc_cv_ld_large_toc
=yes
26631 rm -f conftest conftest.o conftest.s
26635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26636 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26637 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26639 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26648 $as_echo_n "checking linker large toc support... " >&6; }
26649 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26650 $as_echo_n "(cached) " >&6
26652 gcc_cv_ld_large_toc
=no
26653 if test x
$gcc_cv_as != x
; then
26654 cat > conftest.s
<<EOF
26664 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
26665 gcc_cv_ld_large_toc
=yes
26667 rm -f conftest conftest.o conftest.s
26671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26672 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26673 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26675 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26682 $as_echo_n "checking linker --build-id support... " >&6; }
26683 if test "${gcc_cv_ld_buildid+set}" = set; then :
26684 $as_echo_n "(cached) " >&6
26686 gcc_cv_ld_buildid
=no
26687 if test $in_tree_ld = yes ; then
26688 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26689 "$gcc_cv_gld_minor_version" -ge 18 -o \
26690 "$gcc_cv_gld_major_version" -gt 2 \
26691 && test $in_tree_ld_is_elf = yes; then
26692 gcc_cv_ld_buildid
=yes
26694 elif test x
$gcc_cv_ld != x
; then
26695 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26696 gcc_cv_ld_buildid
=yes
26700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26701 $as_echo "$gcc_cv_ld_buildid" >&6; }
26702 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26704 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26708 # Check whether --enable-linker-build-id was given.
26709 if test "${enable_linker_build_id+set}" = set; then :
26710 enableval
=$enable_linker_build_id;
26712 enable_linker_build_id
=no
26716 if test x
"$enable_linker_build_id" = xyes
; then
26717 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26719 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26723 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26727 # In binutils 2.21, GNU ld gained support for new emulations fully
26728 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26730 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26731 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26732 $as_echo_n "(cached) " >&6
26734 gcc_cv_ld_sol2_emulation
=no
26735 if test $in_tree_ld = yes ; then
26736 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26737 "$gcc_cv_gld_minor_version" -ge 21 -o \
26738 "$gcc_cv_gld_major_version" -gt 2 \
26739 && test $in_tree_ld_is_elf = yes; then
26740 gcc_cv_ld_sol2_emulation
=yes
26742 elif test x
$gcc_cv_ld != x
; then
26743 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26744 grep _sol2
> /dev
/null
; then
26745 gcc_cv_ld_sol2_emulation
=yes
26749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26750 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26751 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26753 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26758 $as_echo_n "checking linker --sysroot support... " >&6; }
26759 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26760 $as_echo_n "(cached) " >&6
26762 gcc_cv_ld_sysroot
=no
26763 if test $in_tree_ld = yes ; then
26764 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
26765 gcc_cv_ld_sysroot
=yes
26767 elif test x
$gcc_cv_ld != x
; then
26768 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26769 gcc_cv_ld_sysroot
=yes
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26774 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26775 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26777 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26781 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26782 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26783 && test "$prefix" != "NONE"; then
26785 cat >>confdefs.h
<<_ACEOF
26786 #define PREFIX_INCLUDE_DIR "$prefix/include"
26791 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26792 if test "x$with_headers" != x
; then
26793 target_header_dir
=$with_headers
26794 elif test "x$with_sysroot" = x
; then
26795 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
26796 elif test "x$with_build_sysroot" != "x"; then
26797 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
26798 elif test "x$with_sysroot" = xyes
; then
26799 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26801 target_header_dir
="${with_sysroot}${native_system_header_dir}"
26804 target_header_dir
=${native_system_header_dir}
26807 # Test for stack protector support in target C library.
26808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26809 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26810 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26811 $as_echo_n "(cached) " >&6
26813 gcc_cv_libc_provides_ssp
=no
26815 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26816 # glibc 2.4 and later provides __stack_chk_fail and
26817 # either __stack_chk_guard, or TLS access to stack guard canary.
26818 if test -f $target_header_dir/features.h \
26819 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26820 $target_header_dir/features.h
> /dev
/null
; then
26821 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26822 $target_header_dir/features.h
> /dev
/null
; then
26823 gcc_cv_libc_provides_ssp
=yes
26824 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26825 $target_header_dir/features.h
> /dev
/null \
26826 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26827 $target_header_dir/features.h
> /dev
/null
; then
26828 gcc_cv_libc_provides_ssp
=yes
26829 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26830 $target_header_dir/features.h
> /dev
/null
&& \
26831 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26832 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26833 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26834 gcc_cv_libc_provides_ssp
=yes
26836 # all versions of Bionic support stack protector
26837 elif test -f $target_header_dir/sys
/cdefs.h \
26838 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
26839 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
26840 gcc_cv_libc_provides_ssp
=yes
26844 # Avoid complicated tests (see
26845 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26846 # simply assert that glibc does provide this, which is true for all
26847 # realistically usable GNU/Hurd configurations.
26848 gcc_cv_libc_provides_ssp
=yes;;
26849 *-*-darwin* |
*-*-freebsd*)
26850 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26851 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26852 gcc_cv_libc_provides_ssp
=yes
26854 echo "no __stack_chk_fail on this target"
26858 *) gcc_cv_libc_provides_ssp
=no
;;
26861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26862 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26864 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26866 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26870 # Test for <sys/sdt.h> on the target.
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26873 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26875 if test -f $target_header_dir/sys
/sdt.h
; then
26878 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26882 $as_echo "$have_sys_sdt_h" >&6; }
26884 # Check if TFmode long double should be used by default or not.
26885 # Some glibc targets used DFmode long double, but with glibc 2.4
26886 # and later they can use TFmode.
26888 powerpc
*-*-linux* | \
26889 sparc
*-*-linux* | \
26893 # Check whether --with-long-double-128 was given.
26894 if test "${with_long_double_128+set}" = set; then :
26895 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26897 gcc_cv_target_ldbl128
=no
26898 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26899 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
26900 && gcc_cv_target_ldbl128
=yes
26906 if test x
$gcc_cv_target_ldbl128 = xyes
; then
26908 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26913 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26914 gcc_cv_target_dl_iterate_phdr
=unknown
26916 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
26917 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
26918 # libdl there, both complicating its use and breaking compatibility
26919 # between Solaris 10 updates.
26920 *-*-solaris2.1
[1-9]*)
26921 # <link.h> needs both a dl_iterate_phdr declaration and support for
26922 # compilation with largefile support.
26923 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
26924 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
26925 gcc_cv_target_dl_iterate_phdr
=yes
26927 gcc_cv_target_dl_iterate_phdr
=no
26932 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
26934 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26938 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26940 # We no longer support different GC mechanisms. Emit an error if
26941 # the user configures with --with-gc.
26943 # Check whether --with-gc was given.
26944 if test "${with_gc+set}" = set; then :
26945 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
26949 # Libraries to use on the host. This will normally be set by the top
26950 # level Makefile. Here we simply capture the value for our Makefile.
26951 if test -z "${HOST_LIBS+set}"; then
26956 # Use the system's zlib library.
26958 zlibinc
="-I\$(srcdir)/../zlib"
26960 # Check whether --with-system-zlib was given.
26961 if test "${with_system_zlib+set}" = set; then :
26962 withval
=$with_system_zlib; zlibdir
=
26971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26972 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26973 # Check whether --enable-maintainer-mode was given.
26974 if test "${enable_maintainer_mode+set}" = set; then :
26975 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
26981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26982 $as_echo "$maintainer_mode" >&6; }
26984 if test "$maintainer_mode" = "yes"; then
26994 # Make empty files to contain the specs and options for each language.
26995 # Then add #include lines to for a compiler that has specs and/or options.
27001 # These (without "all_") are set in each config-lang.in.
27002 # `language' must be a single word so is spelled singularly.
27005 all_outputs
='Makefile'
27006 # List of language makefile fragments.
27007 all_lang_makefrags
=
27008 # Additional files for gengtype
27009 all_gtfiles
="$target_gtfiles"
27011 # These are the languages that are set in --enable-languages,
27012 # and are available in the GCC tree.
27013 all_selected_languages
=
27015 # Add the language fragments.
27016 # Languages are added via two mechanisms. Some information must be
27017 # recorded in makefile variables, these are defined in config-lang.in.
27018 # We accumulate them and plug them into the main Makefile.
27019 # The other mechanism is a set of hooks for each of the main targets
27020 # like `clean', `install', etc.
27022 language_hooks
="Make-hooks"
27024 for lang
in ${srcdir}/*/config-lang.
in
27026 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27028 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27029 if test "x$lang_alias" = x
27031 echo "$lang doesn't set \$language." 1>&2
27034 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27035 subdirs
="$subdirs $subdir"
27037 # $gcc_subdir is where the gcc integration files are to be found
27038 # for a language, both for internal compiler purposes (compiler
27039 # sources implementing front-end to GCC tree converters), and for
27040 # build infrastructure purposes (Make-lang.in, etc.)
27042 # This will be <subdir> (relative to $srcdir) if a line like
27043 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27044 # is found in <langdir>/config-lang.in, and will remain <langdir>
27047 # Except for the language alias (fetched above), the regular
27048 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27049 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27050 # only this and the language alias.
27052 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27053 if [ "$gcc_subdir" = "" ]; then
27054 gcc_subdir
="$subdir"
27057 case ",$enable_languages," in
27059 all_selected_languages
="$all_selected_languages $lang_alias"
27060 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27061 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27072 .
${srcdir}/$gcc_subdir/config-lang.
in
27073 if test "x$language" = x
27075 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27080 case ",$enable_languages," in
27081 *,$lang_alias,*) ;;
27083 for i
in $subdir_requires; do
27084 test -f "${srcdir}/$i/config-lang.in" && continue
27092 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27093 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27094 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27095 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27097 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27098 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27100 all_languages
="$all_languages $language"
27101 all_compilers
="$all_compilers $compilers"
27102 all_outputs
="$all_outputs $outputs"
27103 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27104 case ",$enable_languages," in
27107 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27117 for language
in $all_selected_languages
27119 check_languages
="$check_languages check-$language"
27122 # We link each language in with a set of hooks, reached indirectly via
27123 # lang.${target}. Only do so for selected languages.
27127 target_list
="all.cross start.encap rest.encap tags \
27128 install-common install-man install-info install-pdf install-html dvi \
27129 pdf html uninstall info man srcextra srcman srcinfo \
27130 mostlyclean clean distclean maintainer-clean install-plugin"
27132 for t
in $target_list
27135 for lang
in $all_selected_languages
27139 echo "lang.$t: $x" >> Make-hooks
27143 # Option include files
27146 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27147 option_includes
="option-includes.mk"
27156 echo "dir ." > .gdbinit
27157 echo "dir ${srcdir}" >> .gdbinit
27158 if test x
$gdb_needs_out_file_path = xyes
27160 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27162 if test "x$subdirs" != x
; then
27165 echo "dir ${srcdir}/$s" >> .gdbinit
27168 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27170 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27174 # Find a directory in which to install a shared libgcc.
27176 # Check whether --enable-version-specific-runtime-libs was given.
27177 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27178 enableval
=$enable_version_specific_runtime_libs;
27182 # Substitute configuration variables
27246 if test x
${build} = x
${host} ; then
27247 if test x
${host} = x
${target} ; then
27248 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27250 echo "Links are now set up to build a cross-compiler" 1>&2
27251 echo " from ${host} to ${target}." 1>&2
27254 if test x
${host} = x
${target} ; then
27255 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27256 echo " for ${target}." 1>&2
27258 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27259 echo " from ${host} to ${target}." 1>&2
27271 if test "x${CLOOGLIBS}" != "x" ; then
27273 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27277 # Check for plugin support
27278 # Check whether --enable-plugin was given.
27279 if test "${enable_plugin+set}" = set; then :
27280 enableval
=$enable_plugin; enable_plugin
=$enableval
27282 enable_plugin
=yes; default_plugin
=yes
27290 if test x
$build = x
$host; then
27291 export_sym_check
="nm${exeext} -g"
27292 elif test x
$host = x
$target; then
27293 export_sym_check
="$gcc_cv_nm -g"
27299 if test x
$build = x
$host; then
27300 export_sym_check
="objdump${exeext} -T"
27301 elif test x
$host = x
$target; then
27302 export_sym_check
="$gcc_cv_objdump -T"
27309 if test x
"$enable_plugin" = x
"yes"; then
27311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27312 $as_echo_n "checking for exported symbols... " >&6; }
27313 if test "x$export_sym_check" != x
; then
27314 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27315 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
27316 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
27317 : # No need to use a flag
27318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27319 $as_echo "yes" >&6; }
27321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27322 $as_echo "yes" >&6; }
27323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27324 $as_echo_n "checking for -rdynamic... " >&6; }
27325 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
27326 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
27327 plugin_rdynamic
=yes
27328 pluginlibs
="-rdynamic"
27333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27334 $as_echo "$plugin_rdynamic" >&6; }
27337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27338 $as_echo "unable to check" >&6; }
27343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27344 $as_echo_n "checking for library containing dlopen... " >&6; }
27345 if test "${ac_cv_search_dlopen+set}" = set; then :
27346 $as_echo_n "(cached) " >&6
27348 ac_func_search_save_LIBS
=$LIBS
27349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27350 /* end confdefs.h. */
27352 /* Override any GCC internal prototype to avoid an error.
27353 Use char because int might match the return type of a GCC
27354 builtin and then its argument prototype would still apply. */
27367 for ac_lib
in '' dl
; do
27368 if test -z "$ac_lib"; then
27369 ac_res
="none required"
27372 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27374 if ac_fn_c_try_link
"$LINENO"; then :
27375 ac_cv_search_dlopen
=$ac_res
27377 rm -f core conftest.err conftest.
$ac_objext \
27379 if test "${ac_cv_search_dlopen+set}" = set; then :
27383 if test "${ac_cv_search_dlopen+set}" = set; then :
27386 ac_cv_search_dlopen
=no
27388 rm conftest.
$ac_ext
27389 LIBS
=$ac_func_search_save_LIBS
27391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27392 $as_echo "$ac_cv_search_dlopen" >&6; }
27393 ac_res
=$ac_cv_search_dlopen
27394 if test "$ac_res" != no
; then :
27395 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27399 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
27400 pluginlibs
="$pluginlibs -ldl"
27404 # Check that we can build shared objects with -fPIC -shared
27405 saved_LDFLAGS
="$LDFLAGS"
27406 saved_CFLAGS
="$CFLAGS"
27409 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27410 CFLAGS
="$CFLAGS -fPIC"
27411 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
27414 CFLAGS
="$CFLAGS -fPIC"
27415 LDFLAGS
="$LDFLAGS -fPIC -shared"
27418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27419 $as_echo_n "checking for -fPIC -shared... " >&6; }
27420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27421 /* end confdefs.h. */
27431 if ac_fn_c_try_link
"$LINENO"; then :
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27433 $as_echo "yes" >&6; }; have_pic_shared
=yes
27435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27436 $as_echo "no" >&6; }; have_pic_shared
=no
27438 rm -f core conftest.err conftest.
$ac_objext \
27439 conftest
$ac_exeext conftest.
$ac_ext
27440 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27444 LDFLAGS
="$saved_LDFLAGS"
27445 CFLAGS
="$saved_CFLAGS"
27447 # If plugin support had been requested but not available, fail.
27448 if test x
"$enable_plugin" = x
"no" ; then
27449 if test x
"$default_plugin" != x
"yes"; then
27451 Building GCC with plugin support requires a host that supports
27452 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27459 if test x
"$enable_plugin" = x
"yes"; then
27461 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27466 # Check whether --enable-libquadmath-support was given.
27467 if test "${enable_libquadmath_support+set}" = set; then :
27468 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27470 ENABLE_LIBQUADMATH_SUPPORT
=yes
27473 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27475 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27480 # Specify what hash style to use by default.
27482 # Check whether --with-linker-hash-style was given.
27483 if test "${with_linker_hash_style+set}" = set; then :
27484 withval
=$with_linker_hash_style; case x
"$withval" in
27486 LINKER_HASH_STYLE
=sysv
27489 LINKER_HASH_STYLE
=gnu
27492 LINKER_HASH_STYLE
=both
27495 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27499 LINKER_HASH_STYLE
=''
27502 if test x
"${LINKER_HASH_STYLE}" != x
; then
27504 cat >>confdefs.h
<<_ACEOF
27505 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27510 # Configure the subdirectories
27511 # AC_CONFIG_SUBDIRS($subdirs)
27513 # Create the Makefile
27514 # and configure language subdirectories
27515 ac_config_files
="$ac_config_files $all_outputs"
27518 ac_config_commands
="$ac_config_commands default"
27520 cat >confcache
<<\_ACEOF
27521 # This file is a shell script that caches the results of configure
27522 # tests run on this system so they can be shared between configure
27523 # scripts and configure runs, see configure's option --config-cache.
27524 # It is not useful on other systems. If it contains results you don't
27525 # want to keep, you may remove or edit it.
27527 # config.status only pays attention to the cache file if you give it
27528 # the --recheck option to rerun configure.
27530 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27531 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27532 # following values.
27536 # The following way of writing the cache mishandles newlines in values,
27537 # but we know of no workaround that is simple, portable, and efficient.
27538 # So, we kill variables containing newlines.
27539 # Ultrix sh set writes to stderr and can't be redirected directly,
27540 # and sets the high bit in the cache file unless we assign to the vars.
27542 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27543 eval ac_val
=\$
$ac_var
27547 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27548 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27551 _ | IFS | as_nl
) ;; #(
27552 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27553 *) { eval $ac_var=; unset $ac_var;} ;;
27559 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27560 *${as_nl}ac_space
=\
*)
27561 # `set' does not quote correctly, so add quotes: double-quote
27562 # substitution turns \\\\ into \\, and sed turns \\ into \.
27565 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27568 # `set' quotes correctly as required by POSIX, so do not add quotes.
27569 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27578 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27580 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27582 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27583 if test -w "$cache_file"; then
27584 test "x$cache_file" != "x/dev/null" &&
27585 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27586 $as_echo "$as_me: updating cache $cache_file" >&6;}
27587 cat confcache
>$cache_file
27589 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27590 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27595 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27596 # Let make expand exec_prefix.
27597 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27599 DEFS
=-DHAVE_CONFIG_H
27603 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27604 # 1. Remove the extension, and $U if already installed.
27605 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27606 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27607 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27608 # will be set to the directory where LIBOBJS objects are built.
27609 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27610 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27612 LIBOBJS
=$ac_libobjs
27614 LTLIBOBJS
=$ac_ltlibobjs
27619 : ${CONFIG_STATUS=./config.status}
27621 ac_clean_files_save
=$ac_clean_files
27622 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27624 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27626 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27628 # Generated by $as_me.
27629 # Run this file to recreate the current configuration.
27630 # Compiler output produced by configure, useful for debugging
27631 # configure, is in config.log if it exists.
27634 ac_cs_recheck=false
27637 SHELL=\${CONFIG_SHELL-$SHELL}
27640 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27641 ## -------------------- ##
27642 ## M4sh Initialization. ##
27643 ## -------------------- ##
27645 # Be more Bourne compatible
27646 DUALCASE
=1; export DUALCASE
# for MKS sh
27647 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27650 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27651 # is contrary to our usage. Disable this feature.
27652 alias -g '${1+"$@"}'='"$@"'
27653 setopt NO_GLOB_SUBST
27655 case `(set -o) 2>/dev/null` in #(
27667 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27668 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27669 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27670 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27671 # Prefer a ksh shell builtin over an external printf program on Solaris,
27672 # but without wasting forks for bash or zsh.
27673 if test -z "$BASH_VERSION$ZSH_VERSION" \
27674 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27675 as_echo='print
-r --'
27676 as_echo_n='print
-rn --'
27677 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27678 as_echo='printf %s
\n'
27679 as_echo_n='printf %s
'
27681 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27682 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27683 as_echo_n='/usr
/ucb
/echo -n'
27685 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27686 as_echo_n_body='eval
27690 expr "X$arg" : "X\\(.*\\)$as_nl";
27691 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27693 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27695 export as_echo_n_body
27696 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27698 export as_echo_body
27699 as_echo='sh
-c $as_echo_body as_echo
'
27702 # The user is always right.
27703 if test "${PATH_SEPARATOR+set}" != set; then
27705 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27706 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27713 # We need space, tab and new line, in precisely that order. Quoting is
27714 # there to prevent editors from complaining about space-tab.
27715 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27716 # splitting by setting IFS to empty value.)
27719 # Find who we are. Look in the path if we contain no directory separator.
27721 *[\\/]* ) as_myself=$0 ;;
27722 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27723 for as_dir in $PATH
27726 test -z "$as_dir" && as_dir=.
27727 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27733 # We did not find ourselves, most probably we were run as `sh COMMAND'
27734 # in which case we are not to be found in the path.
27735 if test "x$as_myself" = x
; then
27738 if test ! -f "$as_myself"; then
27739 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27743 # Unset variables that we do not need and which cause bugs (e.g. in
27744 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27745 # suppresses any "Segmentation fault" message there. '((' could
27746 # trigger a bug in pdksh 5.2.14.
27747 for as_var
in BASH_ENV ENV MAIL MAILPATH
27748 do eval test x\
${$as_var+set} = xset \
27749 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27762 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27765 # as_fn_error ERROR [LINENO LOG_FD]
27766 # ---------------------------------
27767 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27768 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27769 # script with status $?, using 1 if that was 0.
27772 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27774 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27775 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27777 $as_echo "$as_me: error: $1" >&2
27778 as_fn_exit
$as_status
27782 # as_fn_set_status STATUS
27783 # -----------------------
27784 # Set $? to STATUS, without forking.
27785 as_fn_set_status
()
27788 } # as_fn_set_status
27790 # as_fn_exit STATUS
27791 # -----------------
27792 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27796 as_fn_set_status
$1
27802 # Portably unset VAR.
27805 { eval $1=; unset $1;}
27807 as_unset
=as_fn_unset
27808 # as_fn_append VAR VALUE
27809 # ----------------------
27810 # Append the text in VALUE to the end of the definition contained in VAR. Take
27811 # advantage of any shell optimizations that allow amortized linear growth over
27812 # repeated appends, instead of the typical quadratic growth present in naive
27814 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27815 eval 'as_fn_append ()
27826 # as_fn_arith ARG...
27827 # ------------------
27828 # Perform arithmetic evaluation on the ARGs, and store the result in the
27829 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27830 # must be portable across $(()) and expr.
27831 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27832 eval 'as_fn_arith ()
27839 as_val
=`expr "$@" || test $? -eq 1`
27844 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27845 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27851 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27852 as_basename
=basename
27857 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27863 as_me
=`$as_basename -- "$0" ||
27864 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27865 X"$0" : 'X\(//\)$' \| \
27866 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27868 sed '/^.*\/\([^/][^/]*\)\/*$/{
27882 # Avoid depending upon Character Ranges.
27883 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27884 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27885 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27886 as_cr_digits
='0123456789'
27887 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27889 ECHO_C
= ECHO_N
= ECHO_T
=
27890 case `echo -n x` in #(((((
27892 case `echo 'xy\c'` in
27893 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27895 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27902 rm -f conf$$ conf$$.exe conf$$.
file
27903 if test -d conf$$.dir
; then
27904 rm -f conf$$.dir
/conf$$.
file
27907 mkdir conf$$.dir
2>/dev
/null
27909 if (echo >conf$$.
file) 2>/dev
/null
; then
27910 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27912 # ... but there are two gotchas:
27913 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27914 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27915 # In both cases, we have to default to `cp -p'.
27916 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27918 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27926 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27927 rmdir conf$$.dir
2>/dev
/null
27932 # Create "$as_dir" as a directory, including parents if necessary.
27937 -*) as_dir
=.
/$as_dir;;
27939 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27943 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27944 *) as_qdir
=$as_dir;;
27946 as_dirs
="'$as_qdir' $as_dirs"
27947 as_dir
=`$as_dirname -- "$as_dir" ||
27948 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27949 X"$as_dir" : 'X\(//\)[^/]' \| \
27950 X"$as_dir" : 'X\(//\)$' \| \
27951 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27952 $as_echo X"$as_dir" |
27953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27957 /^X\(\/\/\)[^/].*/{
27970 test -d "$as_dir" && break
27972 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27973 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27977 if mkdir
-p .
2>/dev
/null
; then
27978 as_mkdir_p
='mkdir -p "$as_dir"'
27980 test -d .
/-p && rmdir .
/-p
27984 if test -x / >/dev
/null
2>&1; then
27985 as_test_x
='test -x'
27987 if ls -dL / >/dev
/null
2>&1; then
27994 if test -d "$1"; then
28000 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28001 ???[sx]*):;;*)false;;esac;fi
28005 as_executable_p
=$as_test_x
28007 # Sed expression to map a string onto a valid CPP name.
28008 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28010 # Sed expression to map a string onto a valid variable name.
28011 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28015 ## ----------------------------------- ##
28016 ## Main body of $CONFIG_STATUS script. ##
28017 ## ----------------------------------- ##
28019 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28022 # Save the log message, to keep $0 and so on meaningful, and to
28023 # report actual input values of CONFIG_FILES etc. instead of their
28024 # values after options handling.
28026 This file was extended by $as_me, which was
28027 generated by GNU Autoconf 2.64. Invocation command line was
28029 CONFIG_FILES = $CONFIG_FILES
28030 CONFIG_HEADERS = $CONFIG_HEADERS
28031 CONFIG_LINKS = $CONFIG_LINKS
28032 CONFIG_COMMANDS = $CONFIG_COMMANDS
28035 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28040 case $ac_config_files in *"
28041 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28044 case $ac_config_headers in *"
28045 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28050 # Files that config.status was made for.
28051 config_files="$ac_config_files"
28052 config_headers="$ac_config_headers"
28053 config_commands="$ac_config_commands"
28057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28059 \`$as_me' instantiates files and other configuration actions
28060 from templates according to the current configuration. Unless the files
28061 and actions are specified as TAGs, all are instantiated by default.
28063 Usage: $0 [OPTION]... [TAG]...
28065 -h, --help print this help, then exit
28066 -V, --version print version number and configuration settings, then exit
28067 -q, --quiet, --silent
28068 do not print progress messages
28069 -d, --debug don't remove temporary files
28070 --recheck update $as_me by reconfiguring in the same conditions
28071 --file=FILE[:TEMPLATE]
28072 instantiate the configuration file FILE
28073 --header=FILE[:TEMPLATE]
28074 instantiate the configuration header FILE
28076 Configuration files:
28079 Configuration headers:
28082 Configuration commands:
28085 Report bugs to the package provider."
28088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28091 configured by $0, generated by GNU Autoconf 2.64,
28092 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28094 Copyright (C) 2009 Free Software Foundation, Inc.
28095 This config.status script is free software; the Free Software Foundation
28096 gives unlimited permission to copy, distribute and modify it."
28101 test -n "\$AWK" || AWK=awk
28104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28105 # The default lists apply if the user does not specify any file.
28111 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28112 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28123 # Handling of the options.
28124 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28126 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28127 $as_echo "$ac_cs_version"; exit ;;
28128 --debug |
--debu |
--deb |
--de |
--d |
-d )
28130 --file |
--fil |
--fi |
--f )
28133 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28135 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28136 ac_need_defaults
=false
;;
28137 --header |
--heade |
--head |
--hea )
28140 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28142 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28143 ac_need_defaults
=false
;;
28145 # Conflict between --help and --header
28146 as_fn_error
"ambiguous option: \`$1'
28147 Try \`$0 --help' for more information.";;
28148 --help |
--hel |
-h )
28149 $as_echo "$ac_cs_usage"; exit ;;
28150 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28151 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28154 # This is an error.
28155 -*) as_fn_error
"unrecognized option: \`$1'
28156 Try \`$0 --help' for more information." ;;
28158 *) as_fn_append ac_config_targets
" $1"
28159 ac_need_defaults
=false
;;
28165 ac_configure_extra_args
=
28167 if $ac_cs_silent; then
28169 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28174 if \$ac_cs_recheck; then
28175 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28177 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28178 CONFIG_SHELL='$SHELL'
28179 export CONFIG_SHELL
28184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28188 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28189 ## Running $as_me. ##
28195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28205 # Handling of arguments.
28206 for ac_config_target
in $ac_config_targets
28208 case $ac_config_target in
28209 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28210 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28211 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28212 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28213 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28214 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28216 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28221 # If the user did not use the arguments to specify the items to instantiate,
28222 # then the envvar interface is used. Set only those that are not.
28223 # We use the long form for the default assignment because of an extremely
28224 # bizarre bug on SunOS 4.1.3.
28225 if $ac_need_defaults; then
28226 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28227 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28228 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28231 # Have a temporary directory for convenience. Make it in the build tree
28232 # simply because there is no reason against having it here, and in addition,
28233 # creating and moving files from /tmp can sometimes cause problems.
28234 # Hook for its removal unless debugging.
28235 # Note that there is a small window in which the directory will not be cleaned:
28236 # after its creation but before its name has been assigned to `$tmp'.
28240 trap 'exit_status=$?
28241 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28243 trap 'as_fn_exit 1' 1 2 13 15
28245 # Create a (secure) tmp directory for tmp files.
28248 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28249 test -n "$tmp" && test -d "$tmp"
28252 tmp
=.
/conf$$
-$RANDOM
28253 (umask 077 && mkdir
"$tmp")
28254 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28256 # Set up the scripts for CONFIG_FILES section.
28257 # No need to generate them if there are no CONFIG_FILES.
28258 # This happens for instance with `./config.status config.h'.
28259 if test -n "$CONFIG_FILES"; then
28261 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28262 ac_cs_awk_getline
=:
28263 ac_cs_awk_pipe_init
=
28264 ac_cs_awk_read_file
='
28265 while ((getline aline < (F[key])) > 0)
28268 ac_cs_awk_pipe_fini
=
28270 ac_cs_awk_getline
=false
28271 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28272 ac_cs_awk_read_file
='
28274 print "cat " F[key] " &&"
28275 '$ac_cs_awk_pipe_init
28276 # The final `:' finishes the AND list.
28277 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28279 ac_cr
=`echo X | tr X '\015'`
28280 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28281 # But we know of no other shell where ac_cr would be empty at this
28282 # point, so we can use a bashism as a fallback.
28283 if test "x$ac_cr" = x
; then
28284 eval ac_cr
=\$
\'\\r
\'
28286 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28287 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28290 ac_cs_awk_cr
=$ac_cr
28293 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28296 # Create commands to substitute file output variables.
28298 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28299 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28300 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28303 } >conf$
$files.sh
&&
28304 . .
/conf$
$files.sh ||
28305 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28306 rm -f conf$
$files.sh
28309 echo "cat >conf$$subs.awk <<_ACEOF" &&
28310 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28312 } >conf$$subs.sh ||
28313 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28314 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28316 for ac_last_try in false false false false false :; do
28317 . ./conf$$subs.sh ||
28318 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28320 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28321 if test $ac_delim_n = $ac_delim_num; then
28323 elif $ac_last_try; then
28324 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28326 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28329 rm -f conf$$subs.sh
28331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28332 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28336 s/^/S["/; s
/!.
*/"]=/
28346 s/\(.\{148\}\).*/\1/
28348 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28353 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28360 s/\(.\{148\}\).*/\1/
28362 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28366 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28371 ' <conf$$subs.awk | sed '
28376 ' >>$CONFIG_STATUS || ac_write_fail=1
28377 rm -f conf$$subs.awk
28378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28380 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28381 for (key in S) S_is_set[key] = 1
28383 \$ac_cs_awk_pipe_init
28387 nfields = split(line, field, "@
")
28389 len = length(field[1])
28390 for (i = 2; i < nfields; i++) {
28392 keylen = length(key)
28393 if (S_is_set[key]) {
28395 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28396 len += length(value) + length(field[++i])
28401 if (nfields == 3 && !substed) {
28403 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28404 \$ac_cs_awk_read_file
28410 \$ac_cs_awk_pipe_fini
28413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28414 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28415 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28418 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28419 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
28422 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28423 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28424 # trailing colons and then remove the whole line if VPATH becomes empty
28425 # (actually we leave an empty line to preserve line numbers).
28426 if test "x
$srcdir" = x.; then
28427 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28428 s/:*\$(srcdir):*/:/
28429 s/:*\${srcdir}:*/:/
28431 s/^\([^=]*=[ ]*\):*/\1/
28437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28438 fi # test -n "$CONFIG_FILES"
28440 # Set up the scripts for CONFIG_HEADERS section.
28441 # No need to generate them if there are no CONFIG_HEADERS.
28442 # This happens for instance with `./config.status Makefile'.
28443 if test -n "$CONFIG_HEADERS"; then
28444 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28448 # Transform confdefs.h into an awk script `defines.awk', embedded as
28449 # here-document in config.status, that substitutes the proper values into
28450 # config.h.in to produce config.h.
28452 # Create a delimiter string that does not exist in confdefs.h, to ease
28453 # handling of long lines.
28455 for ac_last_try in false false :; do
28456 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28457 if test -z "$ac_t"; then
28459 elif $ac_last_try; then
28460 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28462 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28466 # For the awk script, D is an array of macro values keyed by name,
28467 # likewise P contains macro parameters if any. Preserve backslash
28468 # newline sequences.
28470 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28472 s/.\{148\}/&'"$ac_delim"'/g
28475 s/^[ ]*#[ ]*define[ ][ ]*/ /
28482 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28484 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28488 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28489 D["\
1"]=" \
3\\\\\\n
"\\/p
28491 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28496 s/.\{148\}/&'"$ac_delim"'/g
28501 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28504 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28506 ' <confdefs.h | sed '
28507 s/'"$ac_delim"'/"\\\
28508 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28511 for (key in D) D_is_set[key] = 1
28514 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28516 split(line, arg, " ")
28517 if (arg[1] == "#") {
28521 defundef
= substr
(arg
[1], 2)
28524 split(mac1
, mac2
, "(") #)
28526 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28527 if (D_is_set
[macro
]) {
28528 # Preserve the white space surrounding the "#".
28529 print prefix
"define", macro P
[macro
] D
[macro
]
28532 # Replace #undef with comments. This is necessary, for example,
28533 # in the case of _POSIX_SOURCE, which is predefined and required
28534 # on some systems where configure will not decide to define it.
28535 if (defundef
== "undef") {
28536 print
"/*", prefix defundef
, macro
, "*/"
28544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28545 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28546 fi # test -n "$CONFIG_HEADERS"
28549 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28554 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28556 case $ac_mode$ac_tag in
28558 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28559 :[FH
]-) ac_tag
=-:-;;
28560 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28577 -) ac_f
="$tmp/stdin";;
28578 *) # Look for the file first in the build tree, then in the source tree
28579 # (if the path is not absolute). The absolute path cannot be DOS-style,
28580 # because $ac_f cannot contain `:'.
28584 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28586 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28588 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28589 as_fn_append ac_file_inputs
" '$ac_f'"
28592 # Let's still pretend it is `configure' which instantiates (i.e., don't
28593 # use $as_me), people would be surprised to read:
28594 # /* config.h. Generated by config.status. */
28595 configure_input
='Generated from '`
28596 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28598 if test x
"$ac_file" != x-
; then
28599 configure_input
="$ac_file. $configure_input"
28600 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28601 $as_echo "$as_me: creating $ac_file" >&6;}
28603 # Neutralize special characters interpreted by sed in replacement strings.
28604 case $configure_input in #(
28605 *\
&* |
*\|
* |
*\\* )
28606 ac_sed_conf_input
=`$as_echo "$configure_input" |
28607 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28608 *) ac_sed_conf_input
=$configure_input;;
28612 *:-:* |
*:-) cat >"$tmp/stdin" \
28613 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28618 ac_dir
=`$as_dirname -- "$ac_file" ||
28619 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28620 X"$ac_file" : 'X\(//\)[^/]' \| \
28621 X"$ac_file" : 'X\(//\)$' \| \
28622 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28623 $as_echo X"$ac_file" |
28624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28628 /^X\(\/\/\)[^/].*/{
28641 as_dir
="$ac_dir"; as_fn_mkdir_p
28645 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28647 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28648 # A ".." for each directory in $ac_dir_suffix.
28649 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28650 case $ac_top_builddir_sub in
28651 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28652 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28655 ac_abs_top_builddir
=$ac_pwd
28656 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28657 # for backward compatibility:
28658 ac_top_builddir
=$ac_top_build_prefix
28661 .
) # We are building in place.
28663 ac_top_srcdir
=$ac_top_builddir_sub
28664 ac_abs_top_srcdir
=$ac_pwd ;;
28665 [\\/]* | ?
:[\\/]* ) # Absolute name.
28666 ac_srcdir
=$srcdir$ac_dir_suffix;
28667 ac_top_srcdir
=$srcdir
28668 ac_abs_top_srcdir
=$srcdir ;;
28669 *) # Relative name.
28670 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28671 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28672 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28674 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28686 # If the template does not know about datarootdir, expand it.
28687 # FIXME: This hack should be removed a few years after 2.60.
28688 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28699 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28700 *datarootdir
*) ac_datarootdir_seen
=yes;;
28701 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28703 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28706 ac_datarootdir_hack='
28707 s&@datadir@&$datadir&g
28708 s&@docdir@&$docdir&g
28709 s&@infodir@&$infodir&g
28710 s&@localedir@&$localedir&g
28711 s&@mandir@&$mandir&g
28712 s&\\\${datarootdir}&$datarootdir&g' ;;
28716 # Neutralize VPATH when `$srcdir' = `.'.
28717 # Shell code in configure.ac might set extrasub.
28718 # FIXME: do we really want to maintain this feature?
28719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28720 ac_sed_extra="$ac_vpsub
28723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28725 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28726 s|@configure_input@|
$ac_sed_conf_input|
;t t
28727 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28728 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28729 s
&@srcdir@
&$ac_srcdir&;t t
28730 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28731 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28732 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28733 s
&@builddir@
&$ac_builddir&;t t
28734 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28735 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28736 $ac_datarootdir_hack
28738 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28739 if $ac_cs_awk_getline; then
28740 $AWK -f "$tmp/subs.
awk"
28742 $AWK -f "$tmp/subs.
awk" | $SHELL
28744 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28746 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28747 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28748 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28750 which seems to be undefined. Please make sure it is defined." >&5
28751 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28752 which seems to be undefined. Please make sure it is defined." >&2;}
28756 -) cat "$tmp/out" && rm -f "$tmp/out";;
28757 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28759 || as_fn_error "could not create $ac_file" "$LINENO" 5
28765 if test x"$ac_file" != x-; then
28767 $as_echo "/* $configure_input */" \
28768 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28769 } >"$tmp/config.h" \
28770 || as_fn_error "could not create $ac_file" "$LINENO" 5
28771 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28772 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28773 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28776 mv "$tmp/config.h" "$ac_file" \
28777 || as_fn_error "could not create $ac_file" "$LINENO" 5
28780 $as_echo "/* $configure_input */" \
28781 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28782 || as_fn_error "could not create -" "$LINENO" 5
28786 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28787 $as_echo "$as_me: executing $ac_file commands" >&6;}
28792 case $ac_file$ac_mode in
28793 "as":F) chmod +x as ;;
28794 "collect-ld":F) chmod +x collect-ld ;;
28795 "nm":F) chmod +x nm ;;
28797 case ${CONFIG_HEADERS} in
28798 *auto-host.h:config.in*)
28801 # Make sure all the subdirs exist.
28802 for d in $subdirs doc build common c-family
28804 test -d $d || mkdir $d
28814 ac_clean_files=$ac_clean_files_save
28816 test $ac_write_fail = 0 ||
28817 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28820 # configure is writing to config.log, and then calls config.status.
28821 # config.status does its own redirection, appending to config.log.
28822 # Unfortunately, on DOS this fails, as config.log is still kept open
28823 # by configure, so config.status won't be able to
write to it
; its
28824 # output is simply discarded. So we exec the FD to /dev/null,
28825 # effectively closing config.log, so it can be properly (re)opened and
28826 # appended to by config.status. When coming back to configure, we
28827 # need to make the FD available again.
28828 if test "$no_create" != yes; then
28830 ac_config_status_args
=
28831 test "$silent" = yes &&
28832 ac_config_status_args
="$ac_config_status_args --quiet"
28834 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28836 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28837 # would make configure fail if this is the last instruction.
28838 $ac_cs_success || as_fn_exit $?
28840 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28842 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}