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
621 libgcc_tm_include_list
627 common_out_object_file
651 user_headers_inc_next_post
652 user_headers_inc_next_pre
654 TM_MULTILIB_EXCEPTIONS_CONFIG
663 build_xm_include_list
665 build_install_headers_dir
667 all_selected_languages
686 ORIGINAL_NM_FOR_TARGET
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
691 ORIGINAL_AS_FOR_TARGET
764 CROSS_SYSTEM_HEADER_DIR
765 TARGET_SYSTEM_ROOT_DEFINE
767 SYSROOT_CFLAGS_FOR_TARGET
772 ENABLE_BUILD_WITH_CXX
775 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
878 enable_build_with_cxx
898 enable_initfini_array
899 enable_sjlj_exceptions
901 enable_leading_mingw64_underscores
904 enable_win32_registry
910 enable_gnu_indirect_function
912 enable_gnu_unique_object
913 enable_linker_build_id
917 enable_maintainer_mode
918 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-build-with-cxx build with C++ compiler instead of C compiler
1581 --enable-multilib enable library support for multiple ABIs
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-initfini-array use .init_array/.fini_array sections
1598 --enable-sjlj-exceptions
1599 arrange to use setjmp/longjmp exception handling
1600 --enable-secureplt enable -msecure-plt by default for PowerPC
1601 --enable-leading-mingw64-underscores
1602 enable leading underscores on 64 bit mingw targets
1603 --enable-cld enable -mcld by default for 32bit x86
1604 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1606 --disable-win32-registry
1607 disable lookup of installation paths in the Registry
1609 --enable-win32-registry enable registry lookup (default)
1610 --enable-win32-registry=KEY
1611 use KEY instead of GCC version as the last portion
1613 --enable-shared[=PKGS] build shared libraries [default=yes]
1614 --enable-static[=PKGS] build static libraries [default=yes]
1615 --enable-fast-install[=PKGS]
1616 optimize for fast installation [default=yes]
1617 --disable-libtool-lock avoid locking (might break parallel builds)
1618 --enable-gnu-indirect-function
1619 enable the use of the @gnu_indirect_function to
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-build-sysroot=sysroot
1655 use sysroot as the system root during the build
1656 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1657 --with-specs=SPECS add SPECS to driver command-line processing
1658 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1659 --with-bugurl=URL Direct users to URL to report a bug
1660 --with-multilib-list select multilibs (SH and x86-64 only)
1661 --with-gnu-ld assume the C compiler uses GNU ld default=no
1662 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1663 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1664 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1666 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1667 --with-plugin-ld=[ARG
] specify the plugin linker
1668 --with-long-double-128 use
128-bit long double by default
1669 --with-gc={page
,zone
} choose the garbage collection mechanism to use with
1671 --with-system-zlib use installed libz
1672 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
1673 --with-linker-hash-style={sysv
,gnu
,both
}
1674 specify the linker
hash style
1676 Some influential environment variables
:
1677 CC C compiler
command
1678 CFLAGS C compiler flags
1679 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1680 nonstandard directory
<lib dir
>
1681 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1682 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1683 you have headers
in a nonstandard directory
<include dir
>
1684 CXX C
++ compiler
command
1685 CXXFLAGS C
++ compiler flags
1687 CXXCPP C
++ preprocessor
1688 GMPLIBS How to link GMP
1689 GMPINC How to
find GMP include files
1690 PPLLIBS How to link PPL
1691 PPLINC How to
find PPL include files
1692 CLOOGLIBS How to link CLOOG
1693 CLOOGINC How to
find CLOOG include files
1695 Use these variables to override the choices made by
`configure' or to help
1696 it to find libraries and programs with nonstandard names/locations.
1698 Report bugs to the package provider.
1703 if test "$ac_init_help" = "recursive"; then
1704 # If there are subdirs, report their specific --help.
1705 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1706 test -d "$ac_dir" ||
1707 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1712 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1714 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1715 # A ".." for each directory in $ac_dir_suffix.
1716 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1717 case $ac_top_builddir_sub in
1718 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1719 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1722 ac_abs_top_builddir=$ac_pwd
1723 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1724 # for backward compatibility:
1725 ac_top_builddir=$ac_top_build_prefix
1728 .) # We are building in place.
1730 ac_top_srcdir=$ac_top_builddir_sub
1731 ac_abs_top_srcdir=$ac_pwd ;;
1732 [\\/]* | ?:[\\/]* ) # Absolute name.
1733 ac_srcdir=$srcdir$ac_dir_suffix;
1734 ac_top_srcdir=$srcdir
1735 ac_abs_top_srcdir=$srcdir ;;
1737 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1738 ac_top_srcdir=$ac_top_build_prefix$srcdir
1739 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1741 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1743 cd "$ac_dir" || { ac_status=$?; continue; }
1744 # Check for guested configure.
1745 if test -f "$ac_srcdir/configure.gnu"; then
1747 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1748 elif test -f "$ac_srcdir/configure"; then
1750 $SHELL "$ac_srcdir/configure" --help=recursive
1752 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1754 cd "$ac_pwd" || { ac_status=$?; break; }
1758 test -n "$ac_init_help" && exit $ac_status
1759 if $ac_init_version; then
1762 generated by GNU Autoconf 2.64
1764 Copyright (C) 2009 Free Software Foundation, Inc.
1765 This configure script is free software; the Free Software Foundation
1766 gives unlimited permission to copy, distribute and modify it.
1771 ## ------------------------ ##
1772 ## Autoconf initialization. ##
1773 ## ------------------------ ##
1775 # ac_fn_c_try_compile LINENO
1776 # --------------------------
1777 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1778 ac_fn_c_try_compile ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext
1782 if { { ac_try="$ac_compile"
1784 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1785 *) ac_try_echo
=$ac_try;;
1787 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_compile") 2>conftest.err
1791 if test -s conftest.err
; then
1792 grep -v '^ *+' conftest.err
>conftest.er1
1793 cat conftest.er1
>&5
1794 mv -f conftest.er1 conftest.err
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest.
$ac_objext; then :
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.
$ac_ext >&5
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1811 } # ac_fn_c_try_compile
1813 # ac_fn_cxx_try_compile LINENO
1814 # ----------------------------
1815 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1816 ac_fn_cxx_try_compile
()
1818 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1819 rm -f conftest.
$ac_objext
1820 if { { ac_try
="$ac_compile"
1822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_compile") 2>conftest.err
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && {
1836 test -z "$ac_cxx_werror_flag" ||
1837 test ! -s conftest.err
1838 } && test -s conftest.$ac_objext; then :
1841 $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849 } # ac_fn_cxx_try_compile
1851 # ac_fn_c_try_cpp LINENO
1852 # ----------------------
1853 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 if { { ac_try="$ac_cpp conftest.$ac_ext"
1859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1860 *) ac_try_echo
=$ac_try;;
1862 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1866 if test -s conftest.err
; then
1867 grep -v '^ *+' conftest.err
>conftest.er1
1868 cat conftest.er1
>&5
1869 mv -f conftest.er1 conftest.err
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } >/dev
/null
&& {
1873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1874 test ! -s conftest.err
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.
$ac_ext >&5
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1888 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1889 # -------------------------------------------------------
1890 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1891 # the include files in INCLUDES and setting the cache variable VAR
1893 ac_fn_c_check_header_mongrel
()
1895 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1896 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1900 $as_echo_n "(cached) " >&6
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1906 # Is the header compilable?
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1908 $as_echo_n "checking $2 usability... " >&6; }
1909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1914 if ac_fn_c_try_compile
"$LINENO"; then :
1915 ac_header_compiler
=yes
1917 ac_header_compiler
=no
1919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1921 $as_echo "$ac_header_compiler" >&6; }
1923 # Is the header present?
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1925 $as_echo_n "checking $2 presence... " >&6; }
1926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1930 if ac_fn_c_try_cpp
"$LINENO"; then :
1931 ac_header_preproc
=yes
1933 ac_header_preproc
=no
1935 rm -f conftest.err conftest.
$ac_ext
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1937 $as_echo "$ac_header_preproc" >&6; }
1939 # So? What about this header?
1940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1943 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1945 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1949 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1951 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1953 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1955 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1957 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961 $as_echo_n "checking for $2... " >&6; }
1962 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1963 $as_echo_n "(cached) " >&6
1965 eval "$3=\$ac_header_compiler"
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1971 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1973 } # ac_fn_c_check_header_mongrel
1975 # ac_fn_c_try_run LINENO
1976 # ----------------------
1977 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1978 # that executables *can* be run.
1981 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1982 if { { ac_try
="$ac_link"
1984 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989 (eval "$ac_link") 2>&5
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1993 { { case "(($ac_try" in
1994 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1995 *) ac_try_echo
=$ac_try;;
1997 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998 $as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_try") 2>&5
2001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002 test $ac_status = 0; }; }; then :
2005 $as_echo "$as_me: program exited with status $ac_status" >&5
2006 $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.
$ac_ext >&5
2009 ac_retval
=$ac_status
2011 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2017 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2018 # -------------------------------------------------------
2019 # Tests whether HEADER exists and can be compiled using the include files in
2020 # INCLUDES, setting the cache variable VAR accordingly.
2021 ac_fn_c_check_header_compile
()
2023 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2025 $as_echo_n "checking for $2... " >&6; }
2026 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2027 $as_echo_n "(cached) " >&6
2029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2034 if ac_fn_c_try_compile
"$LINENO"; then :
2039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2044 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2046 } # ac_fn_c_check_header_compile
2048 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2049 # --------------------------------------------
2050 # Tries to find the compile-time value of EXPR in a program that includes
2051 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2053 ac_fn_c_compute_int
()
2055 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2056 if test "$cross_compiling" = yes; then
2057 # Depending upon the size, compute the lo and hi bounds.
2058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2064 static int test_array [1 - 2 * !(($2) >= 0)];
2071 if ac_fn_c_try_compile
"$LINENO"; then :
2074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2080 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2087 if ac_fn_c_try_compile
"$LINENO"; then :
2088 ac_hi
=$ac_mid; break
2090 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2091 if test $ac_lo -le $ac_mid; then
2095 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2106 static int test_array [1 - 2 * !(($2) < 0)];
2113 if ac_fn_c_try_compile
"$LINENO"; then :
2116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2122 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2129 if ac_fn_c_try_compile
"$LINENO"; then :
2130 ac_lo
=$ac_mid; break
2132 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2133 if test $ac_mid -le $ac_hi; then
2137 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2147 # Binary search between lo and hi bounds.
2148 while test "x$ac_lo" != "x$ac_hi"; do
2149 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2156 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2163 if ac_fn_c_try_compile
"$LINENO"; then :
2166 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2171 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2178 static long int longval () { return $2; }
2179 static unsigned long int ulongval () { return $2; }
2186 FILE *f = fopen ("conftest.val", "w");
2191 long int i = longval ();
2194 fprintf (f, "%ld", i);
2198 unsigned long int i = ulongval ();
2201 fprintf (f, "%lu", i);
2203 /* Do not output a trailing newline, as this causes \r\n confusion
2204 on some platforms. */
2205 return ferror (f) || fclose (f) != 0;
2211 if ac_fn_c_try_run
"$LINENO"; then :
2212 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2216 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2217 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2221 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2224 } # ac_fn_c_compute_int
2226 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2227 # -------------------------------------------
2228 # Tests whether TYPE exists after having included INCLUDES, setting cache
2229 # variable VAR accordingly.
2230 ac_fn_c_check_type
()
2232 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234 $as_echo_n "checking for $2... " >&6; }
2235 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2236 $as_echo_n "(cached) " >&6
2239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2251 if ac_fn_c_try_compile
"$LINENO"; then :
2252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2264 if ac_fn_c_try_compile
"$LINENO"; then :
2269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2275 $as_echo "$ac_res" >&6; }
2276 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2278 } # ac_fn_c_check_type
2280 # ac_fn_c_find_intX_t LINENO BITS VAR
2281 # -----------------------------------
2282 # Finds a signed integer type with width BITS, setting cache variable VAR
2284 ac_fn_c_find_intX_t
()
2286 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2288 $as_echo_n "checking for int$2_t... " >&6; }
2289 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2290 $as_echo_n "(cached) " >&6
2293 for ac_type
in int
$2_t 'int' 'long int' \
2294 'long long int' 'short int' 'signed char'; do
2295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2297 $ac_includes_default
2301 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2308 if ac_fn_c_try_compile
"$LINENO"; then :
2309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2311 $ac_includes_default
2315 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2316 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2323 if ac_fn_c_try_compile
"$LINENO"; then :
2330 eval "$3=\$ac_type" ;;
2333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2337 if test "x$as_val" = x
""no
; then :
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2346 $as_echo "$ac_res" >&6; }
2347 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2349 } # ac_fn_c_find_intX_t
2351 # ac_fn_c_try_link LINENO
2352 # -----------------------
2353 # Try to link conftest.$ac_ext, and return whether this succeeded.
2356 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2357 rm -f conftest.
$ac_objext conftest
$ac_exeext
2358 if { { ac_try
="$ac_link"
2360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2361 *) ac_try_echo=$ac_try;;
2363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2364 $as_echo "$ac_try_echo"; } >&5
2365 (eval "$ac_link") 2>conftest.err
2367 if test -s conftest.err; then
2368 grep -v '^ *+' conftest.err >conftest.er1
2369 cat conftest.er1 >&5
2370 mv -f conftest.er1 conftest.err
2372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2373 test $ac_status = 0; } && {
2374 test -z "$ac_c_werror_flag" ||
2375 test ! -s conftest.err
2376 } && test -s conftest$ac_exeext && {
2377 test "$cross_compiling" = yes ||
2378 $as_test_x conftest$ac_exeext
2382 $as_echo "$as_me: failed program was:" >&5
2383 sed 's/^/| /' conftest.$ac_ext >&5
2387 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2388 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2389 # interfere with the next link command; also delete a directory that is
2390 # left behind by Apple's compiler. We do this before executing the actions.
2391 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2392 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2395 } # ac_fn_c_try_link
2397 # ac_fn_c_find_uintX_t LINENO BITS VAR
2398 # ------------------------------------
2399 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2401 ac_fn_c_find_uintX_t ()
2403 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2405 $as_echo_n "checking for uint$2_t... " >&6; }
2406 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2407 $as_echo_n "(cached) " >&6
2410 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2411 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2413 /* end confdefs.h. */
2414 $ac_includes_default
2418 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2425 if ac_fn_c_try_compile "$LINENO"; then :
2430 eval "$3=\$ac_type" ;;
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435 if test "x$as_val" = x""no; then :
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2444 $as_echo "$ac_res" >&6; }
2445 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2447 } # ac_fn_c_find_uintX_t
2449 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2450 # ----------------------------------------------
2451 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2452 ac_fn_c_check_header_preproc ()
2454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2456 $as_echo_n "checking for $2... " >&6; }
2457 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2458 $as_echo_n "(cached) " >&6
2460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2461 /* end confdefs.h. */
2464 if ac_fn_c_try_cpp "$LINENO"; then :
2469 rm -f conftest.err conftest.$ac_ext
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2473 $as_echo "$ac_res" >&6; }
2474 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2476 } # ac_fn_c_check_header_preproc
2478 # ac_fn_cxx_try_cpp LINENO
2479 # ------------------------
2480 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2481 ac_fn_cxx_try_cpp ()
2483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2484 if { { ac_try="$ac_cpp conftest.$ac_ext"
2486 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2487 *) ac_try_echo
=$ac_try;;
2489 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2490 $as_echo "$ac_try_echo"; } >&5
2491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2493 if test -s conftest.err
; then
2494 grep -v '^ *+' conftest.err
>conftest.er1
2495 cat conftest.er1
>&5
2496 mv -f conftest.er1 conftest.err
2498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2499 test $ac_status = 0; } >/dev
/null
&& {
2500 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2501 test ! -s conftest.err
2505 $as_echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.
$ac_ext >&5
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2513 } # ac_fn_cxx_try_cpp
2515 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2516 # ------------------------------------------------
2517 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2518 ac_fn_cxx_check_header_preproc
()
2520 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2522 $as_echo_n "checking for $2... " >&6; }
2523 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2524 $as_echo_n "(cached) " >&6
2526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2527 /* end confdefs.h. */
2530 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2535 rm -f conftest.err conftest.
$ac_ext
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2539 $as_echo "$ac_res" >&6; }
2540 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2542 } # ac_fn_cxx_check_header_preproc
2544 # ac_fn_c_check_func LINENO FUNC VAR
2545 # ----------------------------------
2546 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2547 ac_fn_c_check_func
()
2549 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2551 $as_echo_n "checking for $2... " >&6; }
2552 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2553 $as_echo_n "(cached) " >&6
2555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2557 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2559 #define $2 innocuous_$2
2561 /* System header to define __stub macros and hopefully few prototypes,
2562 which can conflict with char $2 (); below.
2563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2564 <limits.h> exists even on freestanding compilers. */
2567 # include <limits.h>
2569 # include <assert.h>
2574 /* Override any GCC internal prototype to avoid an error.
2575 Use char because int might match the return type of a GCC
2576 builtin and then its argument prototype would still apply. */
2581 /* The GNU C library defines this for functions which it implements
2582 to always fail with ENOSYS. Some functions are actually named
2583 something starting with __ and the normal name is an alias. */
2584 #if defined __stub_$2 || defined __stub___$2
2596 if ac_fn_c_try_link
"$LINENO"; then :
2601 rm -f core conftest.err conftest.
$ac_objext \
2602 conftest
$ac_exeext conftest.
$ac_ext
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2606 $as_echo "$ac_res" >&6; }
2607 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2609 } # ac_fn_c_check_func
2611 # ac_fn_cxx_try_link LINENO
2612 # -------------------------
2613 # Try to link conftest.$ac_ext, and return whether this succeeded.
2614 ac_fn_cxx_try_link
()
2616 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2617 rm -f conftest.
$ac_objext conftest
$ac_exeext
2618 if { { ac_try
="$ac_link"
2620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2621 *) ac_try_echo=$ac_try;;
2623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2624 $as_echo "$ac_try_echo"; } >&5
2625 (eval "$ac_link") 2>conftest.err
2627 if test -s conftest.err; then
2628 grep -v '^ *+' conftest.err >conftest.er1
2629 cat conftest.er1 >&5
2630 mv -f conftest.er1 conftest.err
2632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2633 test $ac_status = 0; } && {
2634 test -z "$ac_cxx_werror_flag" ||
2635 test ! -s conftest.err
2636 } && test -s conftest$ac_exeext && {
2637 test "$cross_compiling" = yes ||
2638 $as_test_x conftest$ac_exeext
2642 $as_echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2647 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2648 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2649 # interfere with the next link command; also delete a directory that is
2650 # left behind by Apple's compiler. We do this before executing the actions.
2651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2652 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2655 } # ac_fn_cxx_try_link
2656 cat >config.log <<_ACEOF
2657 This file contains any messages produced by compilers while
2658 running configure, to aid debugging if configure makes a mistake.
2660 It was created by $as_me, which was
2661 generated by GNU Autoconf 2.64. Invocation command line was
2673 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2674 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2675 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2676 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2677 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2679 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2680 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2682 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2683 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2684 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2685 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2686 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2687 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2688 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 test -z "$as_dir" && as_dir=.
2697 $as_echo "PATH: $as_dir"
2713 # Keep a trace of the command line.
2714 # Strip out --no-create and --no-recursion so they do not pile up.
2715 # Strip out --silent because we don't want to record it for future runs.
2716 # Also quote any args containing shell meta-characters.
2717 # Make two passes to allow for proper duplicate-argument suppression.
2721 ac_must_keep_next=false
2727 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2728 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2729 | -silent | --silent | --silen | --sile | --sil)
2732 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2735 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2737 as_fn_append ac_configure_args1 " '$ac_arg'"
2738 if test $ac_must_keep_next = true; then
2739 ac_must_keep_next=false # Got value, back to normal.
2742 *=* | --config-cache | -C | -disable-* | --disable-* \
2743 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2744 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2745 | -with-* | --with-* | -without-* | --without-* | --x)
2746 case "$ac_configure_args0 " in
2747 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2750 -* ) ac_must_keep_next=true ;;
2753 as_fn_append ac_configure_args " '$ac_arg'"
2758 { ac_configure_args0=; unset ac_configure_args0;}
2759 { ac_configure_args1=; unset ac_configure_args1;}
2761 # When interrupted or exit'd, cleanup temporary files, and complete
2762 # config.log. We remove comments because anyway the quotes in there
2763 # would cause problems or look ugly.
2764 # WARNING: Use '\'' to represent an apostrophe within the trap.
2765 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2766 trap 'exit_status=$?
2767 # Save into config.log some information that might help in debugging.
2772 ## ---------------- ##
2773 ## Cache variables. ##
2774 ## ---------------- ##
2777 # The following way of writing the cache mishandles newlines in values,
2779 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2780 eval ac_val=\$$ac_var
2784 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2785 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2788 _ | IFS | as_nl) ;; #(
2789 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2790 *) { eval $ac_var=; unset $ac_var;} ;;
2795 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2796 *${as_nl}ac_space=\ *)
2798 "s/'\''/'\''\\\\'\'''\''/g;
2799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2802 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2810 ## ----------------- ##
2811 ## Output variables. ##
2812 ## ----------------- ##
2815 for ac_var in $ac_subst_vars
2817 eval ac_val=\$$ac_var
2819 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2821 $as_echo "$ac_var='\''$ac_val'\''"
2825 if test -n "$ac_subst_files"; then
2827 ## ------------------- ##
2828 ## File substitutions. ##
2829 ## ------------------- ##
2832 for ac_var in $ac_subst_files
2834 eval ac_val=\$$ac_var
2836 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2838 $as_echo "$ac_var='\''$ac_val'\''"
2843 if test -s confdefs.h; then
2853 test "$ac_signal" != 0 &&
2854 $as_echo "$as_me: caught signal $ac_signal"
2855 $as_echo "$as_me: exit $exit_status"
2857 rm -f core *.core core.conftest.* &&
2858 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2861 for ac_signal in 1 2 13 15; do
2862 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2866 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2867 rm -f -r conftest* confdefs.h
2869 $as_echo "/* confdefs.h */" > confdefs.h
2871 # Predefined preprocessor variables.
2873 cat >>confdefs.h <<_ACEOF
2874 #define PACKAGE_NAME "$PACKAGE_NAME"
2877 cat >>confdefs.h <<_ACEOF
2878 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2881 cat >>confdefs.h <<_ACEOF
2882 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2885 cat >>confdefs.h <<_ACEOF
2886 #define PACKAGE_STRING "$PACKAGE_STRING"
2889 cat >>confdefs.h <<_ACEOF
2890 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE_URL "$PACKAGE_URL"
2898 # Let the site file select an alternate cache file if it wants to.
2899 # Prefer an explicitly selected file to automatically selected ones.
2902 if test -n "$CONFIG_SITE"; then
2903 ac_site_file1=$CONFIG_SITE
2904 elif test "x$prefix" != xNONE; then
2905 ac_site_file1=$prefix/share/config.site
2906 ac_site_file2=$prefix/etc/config.site
2908 ac_site_file1=$ac_default_prefix/share/config.site
2909 ac_site_file2=$ac_default_prefix/etc/config.site
2911 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2913 test "x$ac_site_file" = xNONE && continue
2914 if test -r "$ac_site_file"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2916 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2917 sed 's/^/| /' "$ac_site_file" >&5
2922 if test -r "$cache_file"; then
2923 # Some versions of bash will fail to source /dev/null (special
2924 # files actually), so we avoid doing that.
2925 if test -f "$cache_file"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2927 $as_echo "$as_me: loading cache $cache_file" >&6;}
2929 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2930 *) . "./$cache_file";;
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2935 $as_echo "$as_me: creating cache $cache_file" >&6;}
2939 # Check that the precious variables saved in the cache have kept the same
2941 ac_cache_corrupted=false
2942 for ac_var in $ac_precious_vars; do
2943 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2944 eval ac_new_set=\$ac_env_${ac_var}_set
2945 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2946 eval ac_new_val=\$ac_env_${ac_var}_value
2947 case $ac_old_set,$ac_new_set in
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2950 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2951 ac_cache_corrupted=: ;;
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2954 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2955 ac_cache_corrupted=: ;;
2958 if test "x$ac_old_val" != "x$ac_new_val"; then
2959 # differences in whitespace do not lead to failure.
2960 ac_old_val_w=`echo x
$ac_old_val`
2961 ac_new_val_w=`echo x
$ac_new_val`
2962 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2964 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2965 ac_cache_corrupted=:
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2968 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2969 eval $ac_var=\$ac_old_val
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2972 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2974 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2977 # Pass precious variables to config.status.
2978 if test "$ac_new_set" = set; then
2980 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2981 *) ac_arg=$ac_var=$ac_new_val ;;
2983 case " $ac_configure_args " in
2984 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2985 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2989 if $ac_cache_corrupted; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2993 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2994 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2996 ## -------------------- ##
2997 ## Main body of script. ##
2998 ## -------------------- ##
3001 ac_cpp='$CPP $CPPFLAGS'
3002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3014 gcc_version=`cat $srcdir/BASE-VER
`
3016 # Determine the host, build, and target systems
3018 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3019 for ac_t in install-sh install.sh shtool; do
3020 if test -f "$ac_dir/$ac_t"; then
3022 ac_install_sh="$ac_aux_dir/$ac_t -c"
3027 if test -z "$ac_aux_dir"; then
3028 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3031 # These three variables are undocumented and unsupported,
3032 # and are intended to be withdrawn in a future Autoconf release.
3033 # They can cause serious problems if a builder's source tree is in a directory
3034 # whose full name contains unusual characters.
3035 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3036 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3037 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3040 # Make sure we can run config.sub.
3041 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3042 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3045 $as_echo_n "checking build system type... " >&6; }
3046 if test "${ac_cv_build+set}" = set; then :
3047 $as_echo_n "(cached) " >&6
3049 ac_build_alias=$build_alias
3050 test "x$ac_build_alias" = x &&
3051 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3052 test "x$ac_build_alias" = x &&
3053 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3054 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3055 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3059 $as_echo "$ac_cv_build" >&6; }
3060 case $ac_cv_build in
3062 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3065 ac_save_IFS=$IFS; IFS='-'
3071 # Remember, the first character of IFS is used to create $*,
3072 # except with old shells:
3075 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3079 $as_echo_n "checking host system type... " >&6; }
3080 if test "${ac_cv_host+set}" = set; then :
3081 $as_echo_n "(cached) " >&6
3083 if test "x$host_alias" = x; then
3084 ac_cv_host=$ac_cv_build
3086 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3087 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3092 $as_echo "$ac_cv_host" >&6; }
3095 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3098 ac_save_IFS=$IFS; IFS='-'
3104 # Remember, the first character of IFS is used to create $*,
3105 # except with old shells:
3108 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3112 $as_echo_n "checking target system type... " >&6; }
3113 if test "${ac_cv_target+set}" = set; then :
3114 $as_echo_n "(cached) " >&6
3116 if test "x$target_alias" = x; then
3117 ac_cv_target=$ac_cv_host
3119 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3120 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3125 $as_echo "$ac_cv_target" >&6; }
3126 case $ac_cv_target in
3128 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3130 target=$ac_cv_target
3131 ac_save_IFS=$IFS; IFS='-'
3137 # Remember, the first character of IFS is used to create $*,
3138 # except with old shells:
3141 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3144 # The aliases save the names the user supplied, while $host etc.
3145 # will get canonicalized.
3146 test -n "$target_alias" &&
3147 test "$program_prefix$program_suffix$program_transform_name" = \
3149 program_prefix=${target_alias}-
3151 # Determine the noncanonical target name, for directory use.
3152 case ${build_alias} in
3153 "") build_noncanonical=${build} ;;
3154 *) build_noncanonical=${build_alias} ;;
3157 case ${host_alias} in
3158 "") host_noncanonical=${build_noncanonical} ;;
3159 *) host_noncanonical=${host_alias} ;;
3162 case ${target_alias} in
3163 "") target_noncanonical=${host_noncanonical} ;;
3164 *) target_noncanonical=${target_alias} ;;
3170 # Determine the target- and build-specific subdirectories
3172 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3173 # have matching libraries, they should use host libraries: Makefile.tpl
3174 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3175 # However, they still use the build modules, because the corresponding
3176 # host modules (e.g. bison) are only built for the host when bootstrap
3178 # - build_subdir is where we find build modules, and never changes.
3179 # - build_libsubdir is where we find build libraries, and can be overridden.
3181 # Prefix 'build-' so this never conflicts with target_subdir.
3182 build_subdir="build-${build_noncanonical}"
3184 # Check whether --with-build-libsubdir was given.
3185 if test "${with_build_libsubdir+set}" = set; then :
3186 withval=$with_build_libsubdir; build_libsubdir="$withval"
3188 build_libsubdir="$build_subdir"
3191 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3192 if ( test $srcdir = . && test -d gcc ) \
3193 || test -d $srcdir/../host-${host_noncanonical}; then
3194 host_subdir="host-${host_noncanonical}"
3199 target_subdir=${target_noncanonical}
3202 # Set program_transform_name
3203 test "$program_prefix" != NONE &&
3204 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3205 # Use a double $ so make ignores it.
3206 test "$program_suffix" != NONE &&
3207 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3208 # Double any \ or $.
3209 # By default was `s
,x
,x
', remove it if useless.
3210 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3211 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3214 # Check for bogus environment variables.
3215 # Test if LIBRARY_PATH contains the notation for the current directory
3216 # since this would lead to problems installing/building glibc.
3217 # LIBRARY_PATH contains the current directory if one of the following
3219 # - one of the terminals (":" and ";") is the first or last sign
3220 # - two terminals occur directly after each other
3221 # - the path contains an element with a dot in it
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3223 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3224 case ${LIBRARY_PATH} in
3225 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3226 library_path_setting="contains current directory"
3229 library_path_setting="ok"
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3233 $as_echo "$library_path_setting" >&6; }
3234 if test "$library_path_setting" != "ok"; then
3236 *** LIBRARY_PATH shouldn't contain the current directory when
3237 *** building gcc. Please change the environment variable
3238 *** and run configure again.
" "$LINENO" 5
3241 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3242 # since this would lead to problems installing/building glibc.
3243 # GCC_EXEC_PREFIX contains the current directory if one of the following
3245 # - one of the terminals (":" and ";") is the first or last sign
3246 # - two terminals occur directly after each other
3247 # - the path contains an element with a dot in it
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3249 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3250 case ${GCC_EXEC_PREFIX} in
3251 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3252 gcc_exec_prefix_setting="contains current directory
"
3255 gcc_exec_prefix_setting="ok
"
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3259 $as_echo "$gcc_exec_prefix_setting" >&6; }
3260 if test "$gcc_exec_prefix_setting" != "ok
"; then
3262 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3263 *** building gcc. Please change the environment variable
3264 *** and run configure again." "$LINENO" 5
3271 # Specify the local prefix
3274 # Check whether --with-local-prefix was given.
3275 if test "${with_local_prefix+set}" = set; then :
3276 withval=$with_local_prefix; case "${withval}" in
3277 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3279 *) local_prefix=$with_local_prefix ;;
3284 # Default local prefix if it is empty
3285 if test x$local_prefix = x; then
3286 local_prefix=/usr/local
3289 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3290 # passed in by the toplevel make and thus we'd get different behavior
3291 # depending on where we built the sources.
3292 gcc_gxx_include_dir
=
3293 # Specify the g++ header file directory
3295 # Check whether --with-gxx-include-dir was given.
3296 if test "${with_gxx_include_dir+set}" = set; then :
3297 withval
=$with_gxx_include_dir; case "${withval}" in
3298 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3300 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3305 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3306 if test x
${gcc_gxx_include_dir} = x
; then
3307 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3308 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3310 libstdcxx_incdir
='include/c++/$(version)'
3311 if test x
$host != x
$target; then
3312 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3314 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3319 # Check whether --with-cpp_install_dir was given.
3320 if test "${with_cpp_install_dir+set}" = set; then :
3321 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3322 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3323 elif test x
$withval != xno
; then
3324 cpp_install_dir
=$withval
3329 # We would like to our source tree to be readonly. However when releases or
3330 # pre-releases are generated, the flex/bison generated files as well as the
3331 # various formats of manuals need to be included along with the rest of the
3332 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3336 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3337 # Check whether --enable-generated-files-in-srcdir was given.
3338 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3339 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3341 generated_files_in_srcdir
=no
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3346 $as_echo "$generated_files_in_srcdir" >&6; }
3348 if test "$generated_files_in_srcdir" = "yes"; then
3355 # -------------------
3356 # Find default linker
3357 # -------------------
3361 # Check whether --with-gnu-ld was given.
3362 if test "${with_gnu_ld+set}" = set; then :
3363 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3369 # With pre-defined ld
3371 # Check whether --with-ld was given.
3372 if test "${with_ld+set}" = set; then :
3373 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3376 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3377 if test ! -x "$DEFAULT_LINKER"; then
3378 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3379 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3383 cat >>confdefs.h
<<_ACEOF
3384 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3389 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3391 cat >>confdefs.h
<<_ACEOF
3392 #define HAVE_GNU_LD $gnu_ld
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3397 $as_echo_n "checking whether a default linker was specified... " >&6; }
3398 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3399 if test x
"$gnu_ld_flag" = x
"no"; then
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3401 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3404 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3411 # With demangler in GNU ld
3413 # Check whether --with-demangler-in-ld was given.
3414 if test "${with_demangler_in_ld+set}" = set; then :
3415 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3421 # ----------------------
3422 # Find default assembler
3423 # ----------------------
3427 # Check whether --with-gnu-as was given.
3428 if test "${with_gnu_as+set}" = set; then :
3429 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3436 # Check whether --with-as was given.
3437 if test "${with_as+set}" = set; then :
3438 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3441 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3442 if test ! -x "$DEFAULT_ASSEMBLER"; then
3443 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3444 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3448 cat >>confdefs.h
<<_ACEOF
3449 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3454 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3456 cat >>confdefs.h
<<_ACEOF
3457 #define HAVE_GNU_AS $gnu_as
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3462 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3463 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3464 if test x
"$gas_flag" = x
"no"; then
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3466 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3469 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3480 # If a non-executable a.out is present (e.g. created by GNU as above even if
3481 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3482 # file, even when creating an executable, so an execution test fails.
3483 # Remove possible default executable files to avoid this.
3485 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3486 # Autoconf includes it.
3487 rm -f a.out a.exe b.out
3489 # Find the native compiler
3491 ac_cpp
='$CPP $CPPFLAGS'
3492 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3495 if test -n "$ac_tool_prefix"; then
3496 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3497 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 $as_echo_n "checking for $ac_word... " >&6; }
3500 if test "${ac_cv_prog_CC+set}" = set; then :
3501 $as_echo_n "(cached) " >&6
3503 if test -n "$CC"; then
3504 ac_cv_prog_CC
="$CC" # Let the user override the test.
3506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3510 test -z "$as_dir" && as_dir
=.
3511 for ac_exec_ext
in '' $ac_executable_extensions; do
3512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3513 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 if test -n "$CC"; then
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3526 $as_echo "$CC" >&6; }
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3534 if test -z "$ac_cv_prog_CC"; then
3536 # Extract the first word of "gcc", so it can be a program name with args.
3537 set dummy gcc
; ac_word
=$2
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 $as_echo_n "checking for $ac_word... " >&6; }
3540 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3541 $as_echo_n "(cached) " >&6
3543 if test -n "$ac_ct_CC"; then
3544 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3550 test -z "$as_dir" && as_dir
=.
3551 for ac_exec_ext
in '' $ac_executable_extensions; do
3552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3553 ac_cv_prog_ac_ct_CC
="gcc"
3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3564 if test -n "$ac_ct_CC"; then
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3566 $as_echo "$ac_ct_CC" >&6; }
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3572 if test "x$ac_ct_CC" = x
; then
3575 case $cross_compiling:$ac_tool_warned in
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3579 ac_tool_warned
=yes ;;
3587 if test -z "$CC"; then
3588 if test -n "$ac_tool_prefix"; then
3589 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3590 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592 $as_echo_n "checking for $ac_word... " >&6; }
3593 if test "${ac_cv_prog_CC+set}" = set; then :
3594 $as_echo_n "(cached) " >&6
3596 if test -n "$CC"; then
3597 ac_cv_prog_CC
="$CC" # Let the user override the test.
3599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3603 test -z "$as_dir" && as_dir
=.
3604 for ac_exec_ext
in '' $ac_executable_extensions; do
3605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3606 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 if test -n "$CC"; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3619 $as_echo "$CC" >&6; }
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 $as_echo "no" >&6; }
3628 if test -z "$CC"; then
3629 # Extract the first word of "cc", so it can be a program name with args.
3630 set dummy cc
; ac_word
=$2
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632 $as_echo_n "checking for $ac_word... " >&6; }
3633 if test "${ac_cv_prog_CC+set}" = set; then :
3634 $as_echo_n "(cached) " >&6
3636 if test -n "$CC"; then
3637 ac_cv_prog_CC
="$CC" # Let the user override the test.
3640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3644 test -z "$as_dir" && as_dir
=.
3645 for ac_exec_ext
in '' $ac_executable_extensions; do
3646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3647 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3648 ac_prog_rejected
=yes
3652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3659 if test $ac_prog_rejected = yes; then
3660 # We found a bogon in the path, so make sure we never use it.
3661 set dummy
$ac_cv_prog_CC
3663 if test $# != 0; then
3664 # We chose a different compiler from the bogus one.
3665 # However, it has the same basename, so the bogon will be chosen
3666 # first if we set CC to just the basename; use the full file name.
3668 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3674 if test -n "$CC"; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3676 $as_echo "$CC" >&6; }
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3684 if test -z "$CC"; then
3685 if test -n "$ac_tool_prefix"; then
3686 for ac_prog
in cl.exe
3688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3689 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691 $as_echo_n "checking for $ac_word... " >&6; }
3692 if test "${ac_cv_prog_CC+set}" = set; then :
3693 $as_echo_n "(cached) " >&6
3695 if test -n "$CC"; then
3696 ac_cv_prog_CC
="$CC" # Let the user override the test.
3698 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3702 test -z "$as_dir" && as_dir
=.
3703 for ac_exec_ext
in '' $ac_executable_extensions; do
3704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 if test -n "$CC"; then
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3718 $as_echo "$CC" >&6; }
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3725 test -n "$CC" && break
3728 if test -z "$CC"; then
3730 for ac_prog
in cl.exe
3732 # Extract the first word of "$ac_prog", so it can be a program name with args.
3733 set dummy
$ac_prog; ac_word
=$2
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735 $as_echo_n "checking for $ac_word... " >&6; }
3736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3737 $as_echo_n "(cached) " >&6
3739 if test -n "$ac_ct_CC"; then
3740 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3746 test -z "$as_dir" && as_dir
=.
3747 for ac_exec_ext
in '' $ac_executable_extensions; do
3748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3749 ac_cv_prog_ac_ct_CC
="$ac_prog"
3750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3760 if test -n "$ac_ct_CC"; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3762 $as_echo "$ac_ct_CC" >&6; }
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 $as_echo "no" >&6; }
3769 test -n "$ac_ct_CC" && break
3772 if test "x$ac_ct_CC" = x
; then
3775 case $cross_compiling:$ac_tool_warned in
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3779 ac_tool_warned
=yes ;;
3788 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3790 as_fn_error
"no acceptable C compiler found in \$PATH
3791 See \`config.log' for more details." "$LINENO" 5; }
3793 # Provide some information about the compiler.
3794 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3797 for ac_option
in --version -v -V -qversion; do
3798 { { ac_try
="$ac_compiler $ac_option >&5"
3800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3804 $as_echo "$ac_try_echo"; } >&5
3805 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3807 if test -s conftest.err; then
3809 ... rest of stderr output deleted ...
3810 10q' conftest.err >conftest.er1
3811 cat conftest.er1 >&5
3812 rm -f conftest.er1 conftest.err
3814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3815 test $ac_status = 0; }
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3829 ac_clean_files_save=$ac_clean_files
3830 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3831 # Try to create an executable without -o first, disregard a.out.
3832 # It will help us diagnose broken compilers, and finding out an intuition
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3835 $as_echo_n "checking for C compiler default output file name... " >&6; }
3836 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3838 # The possible output files:
3839 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3842 for ac_file in $ac_files
3845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3846 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3851 if { { ac_try="$ac_link_default"
3853 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3854 *) ac_try_echo
=$ac_try;;
3856 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857 $as_echo "$ac_try_echo"; } >&5
3858 (eval "$ac_link_default") 2>&5
3860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861 test $ac_status = 0; }; then :
3862 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3863 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3864 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3865 # so that the user can short-circuit this test for compilers unknown to
3867 for ac_file
in $ac_files ''
3869 test -f "$ac_file" ||
continue
3871 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3874 # We found the default executable, but exeext='' is most
3878 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3880 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3882 # We set ac_cv_exeext here because the later test for it is not
3883 # safe: cross compilers may not add the suffix if given an `-o'
3884 # argument, so we may need to know it at that point already.
3885 # Even if this section looks crufty: it has the advantage of
3892 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3898 $as_echo "$ac_file" >&6; }
3899 if test -z "$ac_file"; then :
3900 $as_echo "$as_me: failed program was:" >&5
3901 sed 's/^/| /' conftest.
$ac_ext >&5
3903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3905 { as_fn_set_status
77
3906 as_fn_error
"C compiler cannot create executables
3907 See \`config.log' for more details." "$LINENO" 5; }; }
3909 ac_exeext
=$ac_cv_exeext
3911 # Check that the compiler produces executables we can run. If not, either
3912 # the compiler is broken, or we cross compile.
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3914 $as_echo_n "checking whether the C compiler works... " >&6; }
3915 # If not cross compiling, check that we can run a simple program.
3916 if test "$cross_compiling" != yes; then
3917 if { ac_try
='./$ac_file'
3918 { { case "(($ac_try" in
3919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3920 *) ac_try_echo=$ac_try;;
3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923 $as_echo "$ac_try_echo"; } >&5
3924 (eval "$ac_try") 2>&5
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }; }; then
3930 if test "$cross_compiling" = maybe; then
3933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3935 as_fn_error "cannot run C compiled programs.
3936 If you meant to cross compile
, use \
`--host'.
3937 See \`config.log
' for more details." "$LINENO" 5; }
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3942 $as_echo "yes" >&6; }
3944 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3945 ac_clean_files=$ac_clean_files_save
3946 # Check that the compiler produces executables we can run. If not, either
3947 # the compiler is broken, or we cross compile.
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3949 $as_echo_n "checking whether we are cross compiling... " >&6; }
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3951 $as_echo "$cross_compiling" >&6; }
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3954 $as_echo_n "checking for suffix of executables... " >&6; }
3955 if { { ac_try="$ac_link"
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3961 $as_echo "$ac_try_echo"; } >&5
3962 (eval "$ac_link") 2>&5
3964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3965 test $ac_status = 0; }; then :
3966 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3967 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3968 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3970 for ac_file
in conftest.exe conftest conftest.
*; do
3971 test -f "$ac_file" ||
continue
3973 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3974 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3982 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3983 See \`config.log' for more details." "$LINENO" 5; }
3985 rm -f conftest
$ac_cv_exeext
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3987 $as_echo "$ac_cv_exeext" >&6; }
3989 rm -f conftest.
$ac_ext
3990 EXEEXT
=$ac_cv_exeext
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3993 $as_echo_n "checking for suffix of object files... " >&6; }
3994 if test "${ac_cv_objext+set}" = set; then :
3995 $as_echo_n "(cached) " >&6
3997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
4008 rm -f conftest.o conftest.obj
4009 if { { ac_try
="$ac_compile"
4011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015 $as_echo "$ac_try_echo"; } >&5
4016 (eval "$ac_compile") 2>&5
4018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019 test $ac_status = 0; }; then :
4020 for ac_file in conftest.o conftest.obj conftest.*; do
4021 test -f "$ac_file" || continue;
4023 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4024 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4029 $as_echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4034 as_fn_error "cannot compute suffix of object files
: cannot compile
4035 See \
`config.log' for more details." "$LINENO" 5; }
4037 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4040 $as_echo "$ac_cv_objext" >&6; }
4041 OBJEXT=$ac_cv_objext
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4044 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4045 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4046 $as_echo_n "(cached) " >&6
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4062 if ac_fn_c_try_compile "$LINENO"; then :
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4072 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4073 if test $ac_compiler_gnu = yes; then
4078 ac_test_CFLAGS=${CFLAGS+set}
4079 ac_save_CFLAGS=$CFLAGS
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4081 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4082 if test "${ac_cv_prog_cc_g+set}" = set; then :
4083 $as_echo_n "(cached) " >&6
4085 ac_save_c_werror_flag=$ac_c_werror_flag
4086 ac_c_werror_flag=yes
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4100 if ac_fn_c_try_compile "$LINENO"; then :
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4115 if ac_fn_c_try_compile "$LINENO"; then :
4118 ac_c_werror_flag=$ac_save_c_werror_flag
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4131 if ac_fn_c_try_compile "$LINENO"; then :
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 ac_c_werror_flag=$ac_save_c_werror_flag
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4142 $as_echo "$ac_cv_prog_cc_g" >&6; }
4143 if test "$ac_test_CFLAGS" = set; then
4144 CFLAGS=$ac_save_CFLAGS
4145 elif test $ac_cv_prog_cc_g = yes; then
4146 if test "$GCC" = yes; then
4152 if test "$GCC" = yes; then
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4159 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4160 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4161 $as_echo_n "(cached) " >&6
4163 ac_cv_prog_cc_c89=no
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4169 #include <sys/types.h>
4170 #include <sys/stat.h>
4171 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4172 struct buf { int x; };
4173 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4174 static char *e (p, i)
4180 static char *f (char * (*g) (char **, int), char **p, ...)
4185 s = g (p, va_arg (v,int));
4190 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4191 function prototypes and stuff, but not '\xHH' hex character constants.
4192 These don't provoke an error unfortunately, instead are silently treated
4193 as 'x'. The following induces an error, until -std is added to get
4194 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4195 array size at least. It's necessary to write '\x00'==0 to get something
4196 that's true only with -std. */
4197 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4199 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4200 inside strings and character constants. */
4202 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4204 int test (int i, double x);
4205 struct s1 {int (*f) (int a);};
4206 struct s2 {int (*f) (double a);};
4207 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4213 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4218 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4219 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4221 CC="$ac_save_CC $ac_arg"
4222 if ac_fn_c_try_compile "$LINENO"; then :
4223 ac_cv_prog_cc_c89=$ac_arg
4225 rm -f core conftest.err conftest.$ac_objext
4226 test "x$ac_cv_prog_cc_c89" != "xno" && break
4228 rm -f conftest.$ac_ext
4233 case "x$ac_cv_prog_cc_c89" in
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4236 $as_echo "none needed" >&6; } ;;
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4239 $as_echo "unsupported" >&6; } ;;
4241 CC="$CC $ac_cv_prog_cc_c89"
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4243 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4245 if test "x$ac_cv_prog_cc_c89" != xno; then :
4250 ac_cpp='$CPP $CPPFLAGS'
4251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4255 if test "x$CC" != xcc; then
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4257 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4260 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4262 set dummy $CC; ac_cc=`$as_echo "$2" |
4263 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4264 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4265 $as_echo_n "(cached) " >&6
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4278 # Make sure it works both with $CC and with simple cc.
4279 # We do the test twice because some compilers refuse to overwrite an
4280 # existing .o file with -o, though they will create one.
4281 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4283 if { { case "(($ac_try" in
4284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4285 *) ac_try_echo
=$ac_try;;
4287 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4288 $as_echo "$ac_try_echo"; } >&5
4289 (eval "$ac_try") 2>&5
4291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4292 test $ac_status = 0; } &&
4293 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298 $as_echo "$ac_try_echo"; } >&5
4299 (eval "$ac_try") 2>&5
4301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302 test $ac_status = 0; };
4304 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4305 if test "x$CC" != xcc; then
4306 # Test first that cc exists at all.
4307 if { ac_try='cc -c conftest.$ac_ext >&5'
4308 { { case "(($ac_try" in
4309 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4310 *) ac_try_echo
=$ac_try;;
4312 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4313 $as_echo "$ac_try_echo"; } >&5
4314 (eval "$ac_try") 2>&5
4316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4317 test $ac_status = 0; }; }; then
4318 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4320 if { { case "(($ac_try" in
4321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4325 $as_echo "$ac_try_echo"; } >&5
4326 (eval "$ac_try") 2>&5
4328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4329 test $ac_status = 0; } &&
4330 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4332 *) ac_try_echo
=$ac_try;;
4334 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335 $as_echo "$ac_try_echo"; } >&5
4336 (eval "$ac_try") 2>&5
4338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339 test $ac_status = 0; };
4344 # cc exists but doesn't like -o.
4345 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4350 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4352 rm -f core conftest
*
4355 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4357 $as_echo "yes" >&6; }
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 $as_echo "no" >&6; }
4362 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4366 # expand $ac_aux_dir to an absolute path
4367 am_aux_dir
=`cd $ac_aux_dir && pwd`
4369 # FIXME: we rely on the cache variable name because
4370 # there is no other way.
4372 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4373 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4374 if test "$am_t" != yes; then
4375 # Losing compiler, so override with the script.
4376 # FIXME: It is wrong to rewrite CC.
4377 # But if we don't then we get into trouble of one sort or another.
4378 # A longer-term fix would be to have automake use am__CC in this case,
4379 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4380 CC
="$am_aux_dir/compile $CC"
4385 ac_cpp
='$CXXCPP $CPPFLAGS'
4386 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4389 if test -z "$CXX"; then
4390 if test -n "$CCC"; then
4393 if test -n "$ac_tool_prefix"; then
4394 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4396 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4397 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399 $as_echo_n "checking for $ac_word... " >&6; }
4400 if test "${ac_cv_prog_CXX+set}" = set; then :
4401 $as_echo_n "(cached) " >&6
4403 if test -n "$CXX"; then
4404 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4406 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4410 test -z "$as_dir" && as_dir
=.
4411 for ac_exec_ext
in '' $ac_executable_extensions; do
4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 if test -n "$CXX"; then
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4426 $as_echo "$CXX" >&6; }
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429 $as_echo "no" >&6; }
4433 test -n "$CXX" && break
4436 if test -z "$CXX"; then
4438 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4440 # Extract the first word of "$ac_prog", so it can be a program name with args.
4441 set dummy
$ac_prog; ac_word
=$2
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4443 $as_echo_n "checking for $ac_word... " >&6; }
4444 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4445 $as_echo_n "(cached) " >&6
4447 if test -n "$ac_ct_CXX"; then
4448 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4450 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4454 test -z "$as_dir" && as_dir
=.
4455 for ac_exec_ext
in '' $ac_executable_extensions; do
4456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4457 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4467 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4468 if test -n "$ac_ct_CXX"; then
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4470 $as_echo "$ac_ct_CXX" >&6; }
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473 $as_echo "no" >&6; }
4477 test -n "$ac_ct_CXX" && break
4480 if test "x$ac_ct_CXX" = x
; then
4483 case $cross_compiling:$ac_tool_warned in
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4487 ac_tool_warned
=yes ;;
4495 # Provide some information about the compiler.
4496 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4499 for ac_option
in --version -v -V -qversion; do
4500 { { ac_try
="$ac_compiler $ac_option >&5"
4502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4503 *) ac_try_echo=$ac_try;;
4505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4506 $as_echo "$ac_try_echo"; } >&5
4507 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4509 if test -s conftest.err; then
4511 ... rest of stderr output deleted ...
4512 10q' conftest.err >conftest.er1
4513 cat conftest.er1 >&5
4514 rm -f conftest.er1 conftest.err
4516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4517 test $ac_status = 0; }
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4521 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4522 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4523 $as_echo_n "(cached) " >&6
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4539 if ac_fn_cxx_try_compile "$LINENO"; then :
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4549 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4550 if test $ac_compiler_gnu = yes; then
4555 ac_test_CXXFLAGS=${CXXFLAGS+set}
4556 ac_save_CXXFLAGS=$CXXFLAGS
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4558 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4559 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4560 $as_echo_n "(cached) " >&6
4562 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4563 ac_cxx_werror_flag=yes
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4577 if ac_fn_cxx_try_compile "$LINENO"; then :
4578 ac_cv_prog_cxx_g=yes
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4592 if ac_fn_cxx_try_compile "$LINENO"; then :
4595 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4608 if ac_fn_cxx_try_compile "$LINENO"; then :
4609 ac_cv_prog_cxx_g=yes
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4619 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4620 if test "$ac_test_CXXFLAGS" = set; then
4621 CXXFLAGS=$ac_save_CXXFLAGS
4622 elif test $ac_cv_prog_cxx_g = yes; then
4623 if test "$GXX" = yes; then
4629 if test "$GXX" = yes; then
4636 ac_cpp='$CPP $CPPFLAGS'
4637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4644 if test -n "$ac_tool_prefix"; then
4645 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4646 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4652 if test -n "$GNATBIND"; then
4653 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 GNATBIND=$ac_cv_prog_GNATBIND
4673 if test -n "$GNATBIND"; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4675 $as_echo "$GNATBIND" >&6; }
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 $as_echo "no" >&6; }
4683 if test -z "$ac_cv_prog_GNATBIND"; then
4684 ac_ct_GNATBIND=$GNATBIND
4685 # Extract the first word of "gnatbind", so it can be a program name with args.
4686 set dummy gnatbind; ac_word=$2
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688 $as_echo_n "checking for $ac_word... " >&6; }
4689 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
4692 if test -n "$ac_ct_GNATBIND"; then
4693 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4702 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4713 if test -n "$ac_ct_GNATBIND"; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4715 $as_echo "$ac_ct_GNATBIND" >&6; }
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718 $as_echo "no" >&6; }
4721 if test "x$ac_ct_GNATBIND" = x; then
4724 case $cross_compiling:$ac_tool_warned in
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4728 ac_tool_warned=yes ;;
4730 GNATBIND=$ac_ct_GNATBIND
4733 GNATBIND="$ac_cv_prog_GNATBIND"
4736 if test -n "$ac_tool_prefix"; then
4737 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4738 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740 $as_echo_n "checking for $ac_word... " >&6; }
4741 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4742 $as_echo_n "(cached) " >&6
4744 if test -n "$GNATMAKE"; then
4745 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4754 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 GNATMAKE=$ac_cv_prog_GNATMAKE
4765 if test -n "$GNATMAKE"; then
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4767 $as_echo "$GNATMAKE" >&6; }
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4770 $as_echo "no" >&6; }
4775 if test -z "$ac_cv_prog_GNATMAKE"; then
4776 ac_ct_GNATMAKE=$GNATMAKE
4777 # Extract the first word of "gnatmake", so it can be a program name with args.
4778 set dummy gnatmake; ac_word=$2
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780 $as_echo_n "checking for $ac_word... " >&6; }
4781 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4782 $as_echo_n "(cached) " >&6
4784 if test -n "$ac_ct_GNATMAKE"; then
4785 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4794 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4805 if test -n "$ac_ct_GNATMAKE"; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4807 $as_echo "$ac_ct_GNATMAKE" >&6; }
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4813 if test "x$ac_ct_GNATMAKE" = x; then
4816 case $cross_compiling:$ac_tool_warned in
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4820 ac_tool_warned=yes ;;
4822 GNATMAKE=$ac_ct_GNATMAKE
4825 GNATMAKE="$ac_cv_prog_GNATMAKE"
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4829 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4830 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4831 $as_echo_n "(cached) " >&6
4833 cat >conftest.adb <<EOF
4834 procedure conftest is begin null; end conftest;
4836 acx_cv_cc_gcc_supports_ada=no
4837 # There is a bug in old released versions of GCC which causes the
4838 # driver to exit successfully when the appropriate language module
4839 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4840 # Therefore we must check for the error message as well as an
4841 # unsuccessful exit.
4842 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4843 # given a .adb file, but produce no object file. So we must check
4844 # if an object file was really produced to guard against this.
4845 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4846 if test x"$errors" = x && test -f conftest.$ac_objext; then
4847 acx_cv_cc_gcc_supports_ada=yes
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4852 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4854 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4861 # autoconf is lame and doesn't give us any substitution variable for this.
4862 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4863 NO_MINUS_C_MINUS_O=yes
4865 OUTPUT_OPTION='-o $@'
4870 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4871 # optimizations to be activated explicitly by the toplevel.
4873 */prev-gcc/xgcc*) ;;
4874 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4878 # Determine PICFLAG for target gnatlib.
4884 # PIC is the default on some targets or must not be used.
4886 # PIC is the default on this platform
4887 # Common symbols not allowed in MH_DYLIB files
4888 PICFLAG_FOR_TARGET=-fno-common
4891 # PIC is the default.
4894 # PIC is the default for 64-bit PA HP-UX.
4896 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4898 i[34567]86-*-interix3*)
4899 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4900 # Instead, we relocate shared libraries at runtime.
4902 i[34567]86-*-nto-qnx*)
4903 # QNX uses GNU C++, but need to define -shared option too, otherwise
4905 PICFLAG_FOR_TARGET='-fPIC -shared'
4907 i[34567]86-pc-msdosdjgpp*)
4908 # DJGPP does not support shared libraries at all.
4911 # On IA64 HP-UX, PIC is the default but the pic flag
4912 # sets the default TLS model and affects inlining.
4913 PICFLAG_FOR_TARGET=-fPIC
4916 # PIC is the default.
4918 rs6000-ibm-aix* | powerpc-ibm-aix*)
4919 # All AIX code is PIC.
4922 # Some targets support both -fPIC and -fpic, but prefer the latter.
4924 i[34567]86-*-* | x86_64-*-*)
4925 PICFLAG_FOR_TARGET=-fpic
4928 PICFLAG_FOR_TARGET=-fpic
4931 PICFLAG_FOR_TARGET=-fpic
4933 # FIXME: Override -fPIC default in libgcc only?
4934 sh-*-linux* | sh[2346lbe]*-*-linux*)
4935 PICFLAG_FOR_TARGET=-fpic
4937 # FIXME: Simplify to sh*-*-netbsd*?
4938 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4939 sh64-*-netbsd* | sh64l*-*-netbsd*)
4940 PICFLAG_FOR_TARGET=-fpic
4942 # Default to -fPIC unless specified otherwise.
4944 PICFLAG_FOR_TARGET=-fPIC
4948 # If the user explicitly uses -fpic/-fPIC, keep that.
4949 case "${CFLAGS_FOR_TARGET}" in
4951 PICFLAG_FOR_TARGET=-fpic
4954 PICFLAG_FOR_TARGET=-fPIC
4960 # -------------------------
4961 # Check C compiler features
4962 # -------------------------
4966 ac_cpp='$CPP $CPPFLAGS'
4967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4971 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4972 # On Suns, sometimes $CPP names a directory.
4973 if test -n "$CPP" && test -d "$CPP"; then
4976 if test -z "$CPP"; then
4977 if test "${ac_cv_prog_CPP+set}" = set; then :
4978 $as_echo_n "(cached) " >&6
4980 # Double quotes because CPP needs to be expanded
4981 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4984 for ac_c_preproc_warn_flag in '' yes
4986 # Use a header file that comes with gcc, so configuring glibc
4987 # with a fresh cross-compiler works.
4988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4989 # <limits.h> exists even on freestanding compilers.
4990 # On the NeXT, cc -E runs the code through the compiler's parser,
4991 # not just through cpp. "Syntax error" is here to catch this case.
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4995 # include <limits.h>
4997 # include <assert.h>
5001 if ac_fn_c_try_cpp "$LINENO"; then :
5004 # Broken: fails on valid input.
5007 rm -f conftest.err conftest.$ac_ext
5009 # OK, works on sane cases. Now check whether nonexistent headers
5010 # can be detected and how.
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5013 #include <ac_nonexistent.h>
5015 if ac_fn_c_try_cpp "$LINENO"; then :
5016 # Broken: success on invalid input.
5019 # Passes both tests.
5023 rm -f conftest.err conftest.$ac_ext
5026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5027 rm -f conftest.err conftest.
$ac_ext
5028 if $ac_preproc_ok; then :
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5041 $as_echo "$CPP" >&6; }
5043 for ac_c_preproc_warn_flag
in '' yes
5045 # Use a header file that comes with gcc, so configuring glibc
5046 # with a fresh cross-compiler works.
5047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5048 # <limits.h> exists even on freestanding compilers.
5049 # On the NeXT, cc -E runs the code through the compiler's parser,
5050 # not just through cpp. "Syntax error" is here to catch this case.
5051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5054 # include <limits.h>
5056 # include <assert.h>
5060 if ac_fn_c_try_cpp
"$LINENO"; then :
5063 # Broken: fails on valid input.
5066 rm -f conftest.err conftest.
$ac_ext
5068 # OK, works on sane cases. Now check whether nonexistent headers
5069 # can be detected and how.
5070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5072 #include <ac_nonexistent.h>
5074 if ac_fn_c_try_cpp
"$LINENO"; then :
5075 # Broken: success on invalid input.
5078 # Passes both tests.
5082 rm -f conftest.err conftest.
$ac_ext
5085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5086 rm -f conftest.err conftest.
$ac_ext
5087 if $ac_preproc_ok; then :
5090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5092 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5093 See \`config.log' for more details." "$LINENO" 5; }
5097 ac_cpp
='$CPP $CPPFLAGS'
5098 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5104 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5105 if test "${ac_cv_path_GREP+set}" = set; then :
5106 $as_echo_n "(cached) " >&6
5108 if test -z "$GREP"; then
5109 ac_path_GREP_found
=false
5110 # Loop through the user's path and test for each of PROGNAME-LIST
5111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5112 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5115 test -z "$as_dir" && as_dir
=.
5116 for ac_prog
in grep ggrep
; do
5117 for ac_exec_ext
in '' $ac_executable_extensions; do
5118 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5119 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5120 # Check for GNU ac_path_GREP and select it if it is found.
5121 # Check for GNU $ac_path_GREP
5122 case `"$ac_path_GREP" --version 2>&1` in
5124 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5127 $as_echo_n 0123456789 >"conftest.in"
5130 cat "conftest.in" "conftest.in" >"conftest.tmp"
5131 mv "conftest.tmp" "conftest.in"
5132 cp "conftest.in" "conftest.nl"
5133 $as_echo 'GREP' >> "conftest.nl"
5134 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5135 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5136 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5137 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5138 # Best one so far, save it but keep looking for a better one
5139 ac_cv_path_GREP
="$ac_path_GREP"
5140 ac_path_GREP_max
=$ac_count
5142 # 10*(2^10) chars as input seems more than enough
5143 test $ac_count -gt 10 && break
5145 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5148 $ac_path_GREP_found && break 3
5153 if test -z "$ac_cv_path_GREP"; then
5154 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5157 ac_cv_path_GREP
=$GREP
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5162 $as_echo "$ac_cv_path_GREP" >&6; }
5163 GREP
="$ac_cv_path_GREP"
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5167 $as_echo_n "checking for egrep... " >&6; }
5168 if test "${ac_cv_path_EGREP+set}" = set; then :
5169 $as_echo_n "(cached) " >&6
5171 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5172 then ac_cv_path_EGREP
="$GREP -E"
5174 if test -z "$EGREP"; then
5175 ac_path_EGREP_found
=false
5176 # Loop through the user's path and test for each of PROGNAME-LIST
5177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5178 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5181 test -z "$as_dir" && as_dir
=.
5182 for ac_prog
in egrep; do
5183 for ac_exec_ext
in '' $ac_executable_extensions; do
5184 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5185 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5186 # Check for GNU ac_path_EGREP and select it if it is found.
5187 # Check for GNU $ac_path_EGREP
5188 case `"$ac_path_EGREP" --version 2>&1` in
5190 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5193 $as_echo_n 0123456789 >"conftest.in"
5196 cat "conftest.in" "conftest.in" >"conftest.tmp"
5197 mv "conftest.tmp" "conftest.in"
5198 cp "conftest.in" "conftest.nl"
5199 $as_echo 'EGREP' >> "conftest.nl"
5200 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5201 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5202 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5203 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5204 # Best one so far, save it but keep looking for a better one
5205 ac_cv_path_EGREP
="$ac_path_EGREP"
5206 ac_path_EGREP_max
=$ac_count
5208 # 10*(2^10) chars as input seems more than enough
5209 test $ac_count -gt 10 && break
5211 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5214 $ac_path_EGREP_found && break 3
5219 if test -z "$ac_cv_path_EGREP"; then
5220 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5223 ac_cv_path_EGREP
=$EGREP
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5229 $as_echo "$ac_cv_path_EGREP" >&6; }
5230 EGREP
="$ac_cv_path_EGREP"
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5234 $as_echo_n "checking for ANSI C header files... " >&6; }
5235 if test "${ac_cv_header_stdc+set}" = set; then :
5236 $as_echo_n "(cached) " >&6
5238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h. */
5253 if ac_fn_c_try_compile
"$LINENO"; then :
5254 ac_cv_header_stdc
=yes
5256 ac_cv_header_stdc
=no
5258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5260 if test $ac_cv_header_stdc = yes; then
5261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5268 $EGREP "memchr" >/dev
/null
2>&1; then :
5271 ac_cv_header_stdc
=no
5277 if test $ac_cv_header_stdc = yes; then
5278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5285 $EGREP "free" >/dev
/null
2>&1; then :
5288 ac_cv_header_stdc
=no
5294 if test $ac_cv_header_stdc = yes; then
5295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5296 if test "$cross_compiling" = yes; then :
5299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h. */
5303 #if ((' ' & 0x0FF) == 0x020)
5304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5307 # define ISLOWER(c) \
5308 (('a' <= (c) && (c) <= 'i') \
5309 || ('j' <= (c) && (c) <= 'r') \
5310 || ('s' <= (c) && (c) <= 'z'))
5311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5319 for (i = 0; i < 256; i++)
5320 if (XOR (islower (i), ISLOWER (i))
5321 || toupper (i) != TOUPPER (i))
5326 if ac_fn_c_try_run
"$LINENO"; then :
5329 ac_cv_header_stdc
=no
5331 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5332 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5338 $as_echo "$ac_cv_header_stdc" >&6; }
5339 if test $ac_cv_header_stdc = yes; then
5341 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5345 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5346 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5347 inttypes.h stdint.h unistd.h
5349 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5350 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5352 eval as_val
=\$
$as_ac_Header
5353 if test "x$as_val" = x
""yes; then :
5354 cat >>confdefs.h
<<_ACEOF
5355 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5364 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5365 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5372 if test "$MINIX" = yes; then
5374 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5377 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5380 $as_echo "#define _MINIX 1" >>confdefs.h
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5386 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5387 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5388 $as_echo_n "(cached) " >&6
5390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5393 # define __EXTENSIONS__ 1
5394 $ac_includes_default
5403 if ac_fn_c_try_compile
"$LINENO"; then :
5404 ac_cv_safe_to_define___extensions__
=yes
5406 ac_cv_safe_to_define___extensions__
=no
5408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5411 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5412 test $ac_cv_safe_to_define___extensions__ = yes &&
5413 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5415 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5417 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5419 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5421 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5425 ac_cpp
='$CPP $CPPFLAGS'
5426 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5427 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5428 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5430 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5431 # On Suns, sometimes $CPP names a directory.
5432 if test -n "$CPP" && test -d "$CPP"; then
5435 if test -z "$CPP"; then
5436 if test "${ac_cv_prog_CPP+set}" = set; then :
5437 $as_echo_n "(cached) " >&6
5439 # Double quotes because CPP needs to be expanded
5440 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5443 for ac_c_preproc_warn_flag
in '' yes
5445 # Use a header file that comes with gcc, so configuring glibc
5446 # with a fresh cross-compiler works.
5447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5448 # <limits.h> exists even on freestanding compilers.
5449 # On the NeXT, cc -E runs the code through the compiler's parser,
5450 # not just through cpp. "Syntax error" is here to catch this case.
5451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h. */
5454 # include <limits.h>
5456 # include <assert.h>
5460 if ac_fn_c_try_cpp
"$LINENO"; then :
5463 # Broken: fails on valid input.
5466 rm -f conftest.err conftest.
$ac_ext
5468 # OK, works on sane cases. Now check whether nonexistent headers
5469 # can be detected and how.
5470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5472 #include <ac_nonexistent.h>
5474 if ac_fn_c_try_cpp
"$LINENO"; then :
5475 # Broken: success on invalid input.
5478 # Passes both tests.
5482 rm -f conftest.err conftest.
$ac_ext
5485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5486 rm -f conftest.err conftest.
$ac_ext
5487 if $ac_preproc_ok; then :
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5500 $as_echo "$CPP" >&6; }
5502 for ac_c_preproc_warn_flag
in '' yes
5504 # Use a header file that comes with gcc, so configuring glibc
5505 # with a fresh cross-compiler works.
5506 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5507 # <limits.h> exists even on freestanding compilers.
5508 # On the NeXT, cc -E runs the code through the compiler's parser,
5509 # not just through cpp. "Syntax error" is here to catch this case.
5510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5513 # include <limits.h>
5515 # include <assert.h>
5519 if ac_fn_c_try_cpp
"$LINENO"; then :
5522 # Broken: fails on valid input.
5525 rm -f conftest.err conftest.
$ac_ext
5527 # OK, works on sane cases. Now check whether nonexistent headers
5528 # can be detected and how.
5529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5531 #include <ac_nonexistent.h>
5533 if ac_fn_c_try_cpp
"$LINENO"; then :
5534 # Broken: success on invalid input.
5537 # Passes both tests.
5541 rm -f conftest.err conftest.
$ac_ext
5544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5545 rm -f conftest.err conftest.
$ac_ext
5546 if $ac_preproc_ok; then :
5549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5551 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5552 See \`config.log' for more details." "$LINENO" 5; }
5556 ac_cpp
='$CPP $CPPFLAGS'
5557 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5558 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5559 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5562 $as_echo_n "checking for inline... " >&6; }
5563 if test "${ac_cv_c_inline+set}" = set; then :
5564 $as_echo_n "(cached) " >&6
5567 for ac_kw
in inline __inline__ __inline
; do
5568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5572 static $ac_kw foo_t static_foo () {return 0; }
5573 $ac_kw foo_t foo () {return 0; }
5577 if ac_fn_c_try_compile
"$LINENO"; then :
5578 ac_cv_c_inline
=$ac_kw
5580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5581 test "$ac_cv_c_inline" != no
&& break
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5586 $as_echo "$ac_cv_c_inline" >&6; }
5588 case $ac_cv_c_inline in
5591 case $ac_cv_c_inline in
5593 *) ac_val
=$ac_cv_c_inline;;
5595 cat >>confdefs.h
<<_ACEOF
5597 #define inline $ac_val
5604 # Check whether --enable-largefile was given.
5605 if test "${enable_largefile+set}" = set; then :
5606 enableval
=$enable_largefile;
5609 if test "$enable_largefile" != no
; then
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5612 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5613 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5614 $as_echo_n "(cached) " >&6
5616 ac_cv_sys_largefile_CC
=no
5617 if test "$GCC" != yes; then
5620 # IRIX 6.2 and later do not support large files by default,
5621 # so use the C compiler's -n32 option if that helps.
5622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5623 /* end confdefs.h. */
5624 #include <sys/types.h>
5625 /* Check that off_t can represent 2**63 - 1 correctly.
5626 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5627 since some C++ compilers masquerading as C compilers
5628 incorrectly reject 9223372036854775807. */
5629 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5630 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5631 && LARGE_OFF_T % 2147483647 == 1)
5641 if ac_fn_c_try_compile
"$LINENO"; then :
5644 rm -f core conftest.err conftest.
$ac_objext
5646 if ac_fn_c_try_compile
"$LINENO"; then :
5647 ac_cv_sys_largefile_CC
=' -n32'; break
5649 rm -f core conftest.err conftest.
$ac_objext
5653 rm -f conftest.
$ac_ext
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5657 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5658 if test "$ac_cv_sys_largefile_CC" != no
; then
5659 CC
=$CC$ac_cv_sys_largefile_CC
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5663 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5664 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5665 $as_echo_n "(cached) " >&6
5668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5669 /* end confdefs.h. */
5670 #include <sys/types.h>
5671 /* Check that off_t can represent 2**63 - 1 correctly.
5672 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5673 since some C++ compilers masquerading as C compilers
5674 incorrectly reject 9223372036854775807. */
5675 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5676 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5677 && LARGE_OFF_T % 2147483647 == 1)
5687 if ac_fn_c_try_compile
"$LINENO"; then :
5688 ac_cv_sys_file_offset_bits
=no
; break
5690 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5693 #define _FILE_OFFSET_BITS 64
5694 #include <sys/types.h>
5695 /* Check that off_t can represent 2**63 - 1 correctly.
5696 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5697 since some C++ compilers masquerading as C compilers
5698 incorrectly reject 9223372036854775807. */
5699 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5700 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5701 && LARGE_OFF_T % 2147483647 == 1)
5711 if ac_fn_c_try_compile
"$LINENO"; then :
5712 ac_cv_sys_file_offset_bits
=64; break
5714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5715 ac_cv_sys_file_offset_bits
=unknown
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5720 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5721 case $ac_cv_sys_file_offset_bits in #(
5724 cat >>confdefs.h
<<_ACEOF
5725 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5730 if test $ac_cv_sys_file_offset_bits = unknown
; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5732 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5733 if test "${ac_cv_sys_large_files+set}" = set; then :
5734 $as_echo_n "(cached) " >&6
5737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5738 /* end confdefs.h. */
5739 #include <sys/types.h>
5740 /* Check that off_t can represent 2**63 - 1 correctly.
5741 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5742 since some C++ compilers masquerading as C compilers
5743 incorrectly reject 9223372036854775807. */
5744 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5745 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5746 && LARGE_OFF_T % 2147483647 == 1)
5756 if ac_fn_c_try_compile
"$LINENO"; then :
5757 ac_cv_sys_large_files
=no
; break
5759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762 #define _LARGE_FILES 1
5763 #include <sys/types.h>
5764 /* Check that off_t can represent 2**63 - 1 correctly.
5765 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5766 since some C++ compilers masquerading as C compilers
5767 incorrectly reject 9223372036854775807. */
5768 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5769 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5770 && LARGE_OFF_T % 2147483647 == 1)
5780 if ac_fn_c_try_compile
"$LINENO"; then :
5781 ac_cv_sys_large_files
=1; break
5783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5784 ac_cv_sys_large_files
=unknown
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5789 $as_echo "$ac_cv_sys_large_files" >&6; }
5790 case $ac_cv_sys_large_files in #(
5793 cat >>confdefs.h
<<_ACEOF
5794 #define _LARGE_FILES $ac_cv_sys_large_files
5803 # sizeof(char) is 1 by definition.
5804 # The cast to long int works around a bug in the HP C Compiler
5805 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5806 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5807 # This bug is HP SR number 8606223364.
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5809 $as_echo_n "checking size of void *... " >&6; }
5810 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
5813 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5816 if test "$ac_cv_type_void_p" = yes; then
5817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5819 { as_fn_set_status
77
5820 as_fn_error
"cannot compute sizeof (void *)
5821 See \`config.log' for more details." "$LINENO" 5; }; }
5823 ac_cv_sizeof_void_p
=0
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5829 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5833 cat >>confdefs.h
<<_ACEOF
5834 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5838 # The cast to long int works around a bug in the HP C Compiler
5839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5841 # This bug is HP SR number 8606223364.
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5843 $as_echo_n "checking size of short... " >&6; }
5844 if test "${ac_cv_sizeof_short+set}" = set; then :
5845 $as_echo_n "(cached) " >&6
5847 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5850 if test "$ac_cv_type_short" = yes; then
5851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5853 { as_fn_set_status
77
5854 as_fn_error
"cannot compute sizeof (short)
5855 See \`config.log' for more details." "$LINENO" 5; }; }
5857 ac_cv_sizeof_short
=0
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5863 $as_echo "$ac_cv_sizeof_short" >&6; }
5867 cat >>confdefs.h
<<_ACEOF
5868 #define SIZEOF_SHORT $ac_cv_sizeof_short
5872 # The cast to long int works around a bug in the HP C Compiler
5873 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5874 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5875 # This bug is HP SR number 8606223364.
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5877 $as_echo_n "checking size of int... " >&6; }
5878 if test "${ac_cv_sizeof_int+set}" = set; then :
5879 $as_echo_n "(cached) " >&6
5881 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5884 if test "$ac_cv_type_int" = yes; then
5885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5887 { as_fn_set_status
77
5888 as_fn_error
"cannot compute sizeof (int)
5889 See \`config.log' for more details." "$LINENO" 5; }; }
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5897 $as_echo "$ac_cv_sizeof_int" >&6; }
5901 cat >>confdefs.h
<<_ACEOF
5902 #define SIZEOF_INT $ac_cv_sizeof_int
5906 # The cast to long int works around a bug in the HP C Compiler
5907 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5908 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5909 # This bug is HP SR number 8606223364.
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5911 $as_echo_n "checking size of long... " >&6; }
5912 if test "${ac_cv_sizeof_long+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5915 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5918 if test "$ac_cv_type_long" = yes; then
5919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5921 { as_fn_set_status
77
5922 as_fn_error
"cannot compute sizeof (long)
5923 See \`config.log' for more details." "$LINENO" 5; }; }
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5931 $as_echo "$ac_cv_sizeof_long" >&6; }
5935 cat >>confdefs.h
<<_ACEOF
5936 #define SIZEOF_LONG $ac_cv_sizeof_long
5940 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5941 if test "x$ac_cv_type_long_long" = x
""yes; then :
5943 cat >>confdefs.h
<<_ACEOF
5944 #define HAVE_LONG_LONG 1
5947 # The cast to long int works around a bug in the HP C Compiler
5948 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5949 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5950 # This bug is HP SR number 8606223364.
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5952 $as_echo_n "checking size of long long... " >&6; }
5953 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5954 $as_echo_n "(cached) " >&6
5956 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5959 if test "$ac_cv_type_long_long" = yes; then
5960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5962 { as_fn_set_status
77
5963 as_fn_error
"cannot compute sizeof (long long)
5964 See \`config.log' for more details." "$LINENO" 5; }; }
5966 ac_cv_sizeof_long_long
=0
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5972 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5976 cat >>confdefs.h
<<_ACEOF
5977 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5983 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5984 if test "x$ac_cv_type___int64" = x
""yes; then :
5986 cat >>confdefs.h
<<_ACEOF
5987 #define HAVE___INT64 1
5990 # The cast to long int works around a bug in the HP C Compiler
5991 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5992 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5993 # This bug is HP SR number 8606223364.
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5995 $as_echo_n "checking size of __int64... " >&6; }
5996 if test "${ac_cv_sizeof___int64+set}" = set; then :
5997 $as_echo_n "(cached) " >&6
5999 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
6002 if test "$ac_cv_type___int64" = yes; then
6003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6005 { as_fn_set_status
77
6006 as_fn_error
"cannot compute sizeof (__int64)
6007 See \`config.log' for more details." "$LINENO" 5; }; }
6009 ac_cv_sizeof___int64
=0
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6015 $as_echo "$ac_cv_sizeof___int64" >&6; }
6019 cat >>confdefs.h
<<_ACEOF
6020 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6026 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6027 case $ac_cv_c_int8_t in #(
6031 cat >>confdefs.h
<<_ACEOF
6032 #define int8_t $ac_cv_c_int8_t
6037 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6038 case $ac_cv_c_int16_t in #(
6042 cat >>confdefs.h
<<_ACEOF
6043 #define int16_t $ac_cv_c_int16_t
6048 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6049 case $ac_cv_c_int32_t in #(
6053 cat >>confdefs.h
<<_ACEOF
6054 #define int32_t $ac_cv_c_int32_t
6059 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6060 case $ac_cv_c_int64_t in #(
6064 cat >>confdefs.h
<<_ACEOF
6065 #define int64_t $ac_cv_c_int64_t
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6072 $as_echo_n "checking for long long int... " >&6; }
6073 if test "${ac_cv_type_long_long_int+set}" = set; then :
6074 $as_echo_n "(cached) " >&6
6076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6077 /* end confdefs.h. */
6079 /* For now, do not test the preprocessor; as of 2007 there are too many
6080 implementations with broken preprocessors. Perhaps this can
6081 be revisited in 2012. In the meantime, code should not expect
6082 #if to work with literals wider than 32 bits. */
6083 /* Test literals. */
6084 long long int ll = 9223372036854775807ll;
6085 long long int nll = -9223372036854775807LL;
6086 unsigned long long int ull = 18446744073709551615ULL;
6087 /* Test constant expressions. */
6088 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6090 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6096 /* Test availability of runtime routines for shift and division. */
6097 long long int llmax = 9223372036854775807ll;
6098 unsigned long long int ullmax = 18446744073709551615ull;
6099 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6100 | (llmax / ll) | (llmax % ll)
6101 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6102 | (ullmax / ull) | (ullmax % ull));
6108 if ac_fn_c_try_link
"$LINENO"; then :
6109 if test "$cross_compiling" = yes; then :
6110 ac_cv_type_long_long_int
=yes
6112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6117 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6118 # define LLONG_MAX (HALF - 1 + HALF)
6123 long long int n = 1;
6127 long long int m = n << i;
6130 if (LLONG_MAX / 2 < m)
6138 if ac_fn_c_try_run
"$LINENO"; then :
6139 ac_cv_type_long_long_int
=yes
6141 ac_cv_type_long_long_int
=no
6143 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6144 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6148 ac_cv_type_long_long_int
=no
6150 rm -f core conftest.err conftest.
$ac_objext \
6151 conftest
$ac_exeext conftest.
$ac_ext
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6154 $as_echo "$ac_cv_type_long_long_int" >&6; }
6155 if test $ac_cv_type_long_long_int = yes; then
6157 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6163 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6164 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6166 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6169 test $ac_cv_type_long_long_int = yes \
6170 && ac_type
='long long int' \
6171 || ac_type
='long int'
6173 cat >>confdefs.h
<<_ACEOF
6174 #define intmax_t $ac_type
6181 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6182 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6184 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6187 for ac_type
in 'int' 'long int' 'long long int'; do
6188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h. */
6190 $ac_includes_default
6194 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6201 if ac_fn_c_try_compile
"$LINENO"; then :
6203 cat >>confdefs.h
<<_ACEOF
6204 #define intptr_t $ac_type
6209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6210 test -z "$ac_type" && break
6215 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6216 case $ac_cv_c_uint8_t in #(
6220 $as_echo "#define _UINT8_T 1" >>confdefs.h
6223 cat >>confdefs.h
<<_ACEOF
6224 #define uint8_t $ac_cv_c_uint8_t
6229 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6230 case $ac_cv_c_uint16_t in #(
6235 cat >>confdefs.h
<<_ACEOF
6236 #define uint16_t $ac_cv_c_uint16_t
6241 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6242 case $ac_cv_c_uint32_t in #(
6246 $as_echo "#define _UINT32_T 1" >>confdefs.h
6249 cat >>confdefs.h
<<_ACEOF
6250 #define uint32_t $ac_cv_c_uint32_t
6255 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6256 case $ac_cv_c_uint64_t in #(
6260 $as_echo "#define _UINT64_T 1" >>confdefs.h
6263 cat >>confdefs.h
<<_ACEOF
6264 #define uint64_t $ac_cv_c_uint64_t
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6271 $as_echo_n "checking for unsigned long long int... " >&6; }
6272 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6273 $as_echo_n "(cached) " >&6
6275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6278 /* For now, do not test the preprocessor; as of 2007 there are too many
6279 implementations with broken preprocessors. Perhaps this can
6280 be revisited in 2012. In the meantime, code should not expect
6281 #if to work with literals wider than 32 bits. */
6282 /* Test literals. */
6283 long long int ll = 9223372036854775807ll;
6284 long long int nll = -9223372036854775807LL;
6285 unsigned long long int ull = 18446744073709551615ULL;
6286 /* Test constant expressions. */
6287 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6289 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6295 /* Test availability of runtime routines for shift and division. */
6296 long long int llmax = 9223372036854775807ll;
6297 unsigned long long int ullmax = 18446744073709551615ull;
6298 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6299 | (llmax / ll) | (llmax % ll)
6300 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6301 | (ullmax / ull) | (ullmax % ull));
6307 if ac_fn_c_try_link
"$LINENO"; then :
6308 ac_cv_type_unsigned_long_long_int
=yes
6310 ac_cv_type_unsigned_long_long_int
=no
6312 rm -f core conftest.err conftest.
$ac_objext \
6313 conftest
$ac_exeext conftest.
$ac_ext
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6316 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6317 if test $ac_cv_type_unsigned_long_long_int = yes; then
6319 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6325 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6326 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6328 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6331 test $ac_cv_type_unsigned_long_long_int = yes \
6332 && ac_type
='unsigned long long int' \
6333 || ac_type
='unsigned long int'
6335 cat >>confdefs.h
<<_ACEOF
6336 #define uintmax_t $ac_type
6343 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6344 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6346 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6349 for ac_type
in 'unsigned int' 'unsigned long int' \
6350 'unsigned long long int'; do
6351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6352 /* end confdefs.h. */
6353 $ac_includes_default
6357 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6364 if ac_fn_c_try_compile
"$LINENO"; then :
6366 cat >>confdefs.h
<<_ACEOF
6367 #define uintptr_t $ac_type
6372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6373 test -z "$ac_type" && break
6391 # ---------------------
6392 # Warnings and checking
6393 # ---------------------
6395 # Check $CC warning features (if it's GCC).
6396 # We want to use -pedantic, but we don't want warnings about
6399 # * overlong strings
6400 # So, we only use -pedantic if we can disable those warnings.
6403 save_CFLAGS
="$CFLAGS"
6404 for option
in -W -Wall -Wwrite-strings -Wcast-qual; do
6405 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6408 $as_echo_n "checking whether $CC supports $option... " >&6; }
6409 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6410 $as_echo_n "(cached) " >&6
6413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6424 if ac_fn_c_try_compile
"$LINENO"; then :
6425 eval "$as_acx_Woption=yes"
6427 eval "$as_acx_Woption=no"
6429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6432 eval ac_res
=\$
$as_acx_Woption
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6434 $as_echo "$ac_res" >&6; }
6435 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6436 loose_warn
="$loose_warn${loose_warn:+ }$option"
6439 CFLAGS
="$save_CFLAGS"
6442 save_CFLAGS
="$CFLAGS"
6443 for option
in -Wstrict-prototypes -Wmissing-prototypes; do
6444 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6447 $as_echo_n "checking whether $CC supports $option... " >&6; }
6448 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6449 $as_echo_n "(cached) " >&6
6452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6463 if ac_fn_c_try_compile
"$LINENO"; then :
6464 eval "$as_acx_Woption=yes"
6466 eval "$as_acx_Woption=no"
6468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6471 eval ac_res
=\$
$as_acx_Woption
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6473 $as_echo "$ac_res" >&6; }
6474 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6475 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$option"
6478 CFLAGS
="$save_CFLAGS"
6481 save_CFLAGS
="$CFLAGS"
6482 for option
in -Wmissing-format-attribute; do
6483 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6486 $as_echo_n "checking whether $CC supports $option... " >&6; }
6487 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6488 $as_echo_n "(cached) " >&6
6491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h. */
6502 if ac_fn_c_try_compile
"$LINENO"; then :
6503 eval "$as_acx_Woption=yes"
6505 eval "$as_acx_Woption=no"
6507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6510 eval ac_res
=\$
$as_acx_Woption
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6512 $as_echo "$ac_res" >&6; }
6513 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6514 strict_warn
="$strict_warn${strict_warn:+ }$option"
6517 CFLAGS
="$save_CFLAGS"
6520 save_CFLAGS
="$CFLAGS"
6521 for option
in -Wold-style-definition -Wc++-compat; do
6522 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6525 $as_echo_n "checking whether $CC supports $option... " >&6; }
6526 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6527 $as_echo_n "(cached) " >&6
6530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h. */
6541 if ac_fn_c_try_compile
"$LINENO"; then :
6542 eval "$as_acx_Woption=yes"
6544 eval "$as_acx_Woption=no"
6546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6549 eval ac_res
=\$
$as_acx_Woption
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6551 $as_echo "$ac_res" >&6; }
6552 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6553 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$option"
6556 CFLAGS
="$save_CFLAGS"
6558 if test "$GCC" = yes; then :
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6560 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6561 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6562 $as_echo_n "(cached) " >&6
6564 save_CFLAGS
="$CFLAGS"
6565 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6577 if ac_fn_c_try_compile
"$LINENO"; then :
6578 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
6580 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
6582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6583 CFLAGS
="$save_CFLAGS"
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6586 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6587 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6588 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6593 # Check whether --enable-werror-always was given.
6594 if test "${enable_werror_always+set}" = set; then :
6595 enableval
=$enable_werror_always;
6597 enable_werror_always
=no
6600 if test $enable_werror_always = yes; then :
6601 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6606 # The above macros do nothing if the compiler is not GCC. However, the
6607 # Makefile has more goo to add other flags, so these variables are used
6608 # to enable warnings only for GCC.
6611 if test "x$GCC" = "xyes"; then
6612 warn_cflags
='$(GCC_WARN_CFLAGS)'
6613 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6618 # Enable expensive internal checks
6620 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6624 # Check whether --enable-checking was given.
6625 if test "${enable_checking+set}" = set; then :
6626 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6629 # Determine the default checks.
6630 if test x
$is_release = x
; then
6631 ac_checking_flags
=yes
6633 ac_checking_flags
=release
6637 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6638 for check
in release
$ac_checking_flags
6641 # these set all the flags to specific states
6642 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6643 ac_fold_checking
= ; ac_gc_checking
=1 ;
6644 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6645 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6646 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6647 ac_types_checking
=1 ;;
6648 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6649 ac_fold_checking
= ; ac_gc_checking
= ;
6650 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6651 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6652 ac_tree_checking
= ; ac_valgrind_checking
= ;
6653 ac_types_checking
= ;;
6654 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6655 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6656 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6657 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6658 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6659 ac_types_checking
=1 ;;
6660 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6661 ac_fold_checking
= ; ac_gc_checking
= ;
6662 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6663 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6664 ac_tree_checking
= ; ac_valgrind_checking
= ;
6665 ac_types_checking
= ;;
6666 # these enable particular checks
6667 assert
) ac_assert_checking
=1 ;;
6668 df
) ac_df_checking
=1 ;;
6669 fold) ac_fold_checking
=1 ;;
6670 gc
) ac_gc_checking
=1 ;;
6671 gcac
) ac_gc_always_collect
=1 ;;
6672 gimple
) ac_gimple_checking
=1 ;;
6673 misc
) ac_checking
=1 ;;
6674 rtl
) ac_rtl_checking
=1 ;;
6675 rtlflag
) ac_rtlflag_checking
=1 ;;
6676 runtime
) ac_runtime_checking
=1 ;;
6677 tree
) ac_tree_checking
=1 ;;
6678 types
) ac_types_checking
=1 ;;
6679 valgrind
) ac_valgrind_checking
=1 ;;
6680 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6686 if test x
$ac_checking != x
; then
6688 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6690 nocommon_flag
=-fno-common
6693 if test x
$ac_df_checking != x
; then
6695 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6698 if test x
$ac_assert_checking != x
; then
6700 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6703 if test x
$ac_gimple_checking != x
; then
6705 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6709 if test x
$ac_runtime_checking != x
; then
6711 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6714 if test x
$ac_tree_checking != x
; then
6716 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6718 TREEBROWSER
=tree-browser.o
6720 if test x
$ac_types_checking != x
; then
6722 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6726 if test x
$ac_rtl_checking != x
; then
6728 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6731 if test x
$ac_rtlflag_checking != x
; then
6733 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6736 if test x
$ac_gc_checking != x
; then
6738 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6741 if test x
$ac_gc_always_collect != x
; then
6743 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6746 if test x
$ac_fold_checking != x
; then
6748 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6751 valgrind_path_defines
=
6754 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6755 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6763 if test x
$ac_valgrind_checking != x
; then
6764 # It is certainly possible that there's valgrind but no valgrind.h.
6765 # GCC relies on making annotations so we must have both.
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6767 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6770 #include <valgrind/memcheck.h>
6771 #ifndef VALGRIND_DISCARD
6772 #error VALGRIND_DISCARD not defined
6775 if ac_fn_c_try_cpp
"$LINENO"; then :
6776 gcc_cv_header_valgrind_memcheck_h
=yes
6778 gcc_cv_header_valgrind_memcheck_h
=no
6780 rm -f conftest.err conftest.
$ac_ext
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6782 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6784 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6786 /* end confdefs.h. */
6787 #include <memcheck.h>
6788 #ifndef VALGRIND_DISCARD
6789 #error VALGRIND_DISCARD not defined
6792 if ac_fn_c_try_cpp
"$LINENO"; then :
6793 gcc_cv_header_memcheck_h
=yes
6795 gcc_cv_header_memcheck_h
=no
6797 rm -f conftest.err conftest.
$ac_ext
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6799 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6801 # Prepare PATH_SEPARATOR.
6802 # The user is always right.
6803 if test "${PATH_SEPARATOR+set}" != set; then
6804 echo "#! /bin/sh" >conf$$.sh
6805 echo "exit 0" >>conf$$.sh
6807 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6815 # Find out how to test for executable files. Don't use a zero-byte file,
6816 # as systems may use methods other than mode bits to determine executability.
6817 cat >conf$$.
file <<_ASEOF
6821 chmod +x conf$$.
file
6822 if test -x conf$$.
file >/dev
/null
2>&1; then
6823 ac_executable_p
="test -x"
6825 ac_executable_p
="test -f"
6829 # Extract the first word of "valgrind", so it can be a program name with args.
6830 set dummy valgrind
; ac_word
=$2
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832 $as_echo_n "checking for $ac_word... " >&6; }
6833 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6834 $as_echo_n "(cached) " >&6
6836 case "$valgrind_path" in
6838 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6841 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6842 for ac_dir
in $PATH; do
6844 test -z "$ac_dir" && ac_dir
=.
6845 for ac_exec_ext
in '' $ac_executable_extensions; do
6846 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6847 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6848 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6858 valgrind_path
="$ac_cv_path_valgrind_path"
6859 if test -n "$valgrind_path"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6861 $as_echo "$valgrind_path" >&6; }
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6867 if test "x$valgrind_path" = "x" \
6868 ||
(test $have_valgrind_h = no \
6869 && test $gcc_cv_header_memcheck_h = no \
6870 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6871 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6873 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6874 valgrind_command
="$valgrind_path -q"
6876 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6878 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6880 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6883 if test $gcc_cv_header_memcheck_h = yes; then
6885 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6892 # Enable code coverage collection
6893 # Check whether --enable-coverage was given.
6894 if test "${enable_coverage+set}" = set; then :
6895 enableval
=$enable_coverage; case "${enableval}" in
6897 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6900 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6903 # a.k.a. --disable-coverage
6907 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6916 # Check whether --enable-gather-detailed-mem-stats was given.
6917 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6918 enableval
=$enable_gather_detailed_mem_stats;
6920 enable_gather_detailed_mem_stats
=no
6923 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6925 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6929 # -------------------------------
6930 # Miscenalleous configure options
6931 # -------------------------------
6933 # See if we are building gcc with C++.
6934 # Check whether --enable-build-with-cxx was given.
6935 if test "${enable_build_with_cxx+set}" = set; then :
6936 enableval
=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX
=$enableval
6938 ENABLE_BUILD_WITH_CXX
=no
6942 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6944 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6950 # Check whether --with-stabs was given.
6951 if test "${with_stabs+set}" = set; then :
6952 withval
=$with_stabs; stabs
="$with_stabs"
6958 # Determine whether or not multilibs are enabled.
6959 # Check whether --enable-multilib was given.
6960 if test "${enable_multilib+set}" = set; then :
6961 enableval
=$enable_multilib;
6968 # Enable __cxa_atexit for C++.
6969 # Check whether --enable-__cxa_atexit was given.
6970 if test "${enable___cxa_atexit+set}" = set; then :
6971 enableval
=$enable___cxa_atexit;
6975 # Enable C extension for decimal float if target supports it.
6977 # Check whether --enable-decimal-float was given.
6978 if test "${enable_decimal_float+set}" = set; then :
6979 enableval
=$enable_decimal_float;
6980 case $enable_decimal_float in
6981 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
6982 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6983 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6989 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
6990 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
6992 enable_decimal_float
=yes
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6996 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6997 enable_decimal_float
=no
7004 # x86's use BID format instead of DPD
7005 case x
$enable_decimal_float in
7008 i?
86*-*-* | x86_64
*-*-*)
7009 enable_decimal_float
=bid
7012 enable_decimal_float
=dpd
7015 default_decimal_float
=$enable_decimal_float
7018 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7019 # dependency on libdecnumber.
7020 default_decimal_float
=dpd
7027 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7029 cat >>confdefs.h
<<_ACEOF
7030 #define ENABLE_DECIMAL_FLOAT $dfp
7034 # Use default_decimal_float for dependency.
7035 enable_decimal_float
=$default_decimal_float
7037 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7039 cat >>confdefs.h
<<_ACEOF
7040 #define ENABLE_DECIMAL_BID_FORMAT $bid
7044 # Enable C extension for fixed-point arithmetic.
7045 # Check whether --enable-fixed-point was given.
7046 if test "${enable_fixed_point+set}" = set; then :
7047 enableval
=$enable_fixed_point;
7052 enable_fixed_point
=yes
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7059 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7060 enable_fixed_point
=no
7063 enable_fixed_point
=yes
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7069 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7070 enable_fixed_point
=no
7078 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7080 cat >>confdefs.h
<<_ACEOF
7081 #define ENABLE_FIXED_POINT $fixedpoint
7086 # Pass with no value to take the default
7087 # Pass with a value to specify a thread package
7088 # Check whether --enable-threads was given.
7089 if test "${enable_threads+set}" = set; then :
7090 enableval
=$enable_threads;
7096 # Check whether --enable-tls was given.
7097 if test "${enable_tls+set}" = set; then :
7098 enableval
=$enable_tls;
7101 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7102 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7110 # Check whether --enable-objc-gc was given.
7111 if test "${enable_objc_gc+set}" = set; then :
7112 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7123 # Check whether --with-dwarf2 was given.
7124 if test "${with_dwarf2+set}" = set; then :
7125 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7131 # Check whether --enable-shared was given.
7132 if test "${enable_shared+set}" = set; then :
7133 enableval
=$enable_shared;
7134 case $enable_shared in
7138 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7139 for pkg
in $enableval; do
7140 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7155 # Check whether --with-build-sysroot was given.
7156 if test "${with_build_sysroot+set}" = set; then :
7157 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7158 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7161 SYSROOT_CFLAGS_FOR_TARGET
=
7167 # Check whether --with-sysroot was given.
7168 if test "${with_sysroot+set}" = set; then :
7169 withval
=$with_sysroot;
7170 case ${with_sysroot} in
7171 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7172 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7175 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7176 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7178 if test "x$prefix" = xNONE
; then
7179 test_prefix
=/usr
/local
7183 if test "x$exec_prefix" = xNONE
; then
7184 test_exec_prefix
=$test_prefix
7186 test_exec_prefix
=$exec_prefix
7188 case ${TARGET_SYSTEM_ROOT} in
7189 "${test_prefix}"|
"${test_prefix}/"*|\
7190 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7191 '${prefix}'|
'${prefix}/'*|\
7192 '${exec_prefix}'|
'${exec_prefix}/'*)
7193 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7194 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7201 TARGET_SYSTEM_ROOT_DEFINE
=
7202 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7211 # Check whether --with-specs was given.
7212 if test "${with_specs+set}" = set; then :
7213 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7223 # Check whether --with-pkgversion was given.
7224 if test "${with_pkgversion+set}" = set; then :
7225 withval
=$with_pkgversion; case "$withval" in
7226 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7228 *) PKGVERSION
="($withval) " ;;
7239 # Check whether --with-bugurl was given.
7240 if test "${with_bugurl+set}" = set; then :
7241 withval
=$with_bugurl; case "$withval" in
7242 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7245 *) BUGURL
="$withval"
7249 BUGURL
="http://gcc.gnu.org/bugs.html"
7259 REPORT_BUGS_TO
="<$BUGURL>"
7260 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7267 # Sanity check enable_languages in case someone does not run the toplevel
7268 # configure # script.
7269 # Check whether --enable-languages was given.
7270 if test "${enable_languages+set}" = set; then :
7271 enableval
=$enable_languages; case ,${enable_languages}, in
7273 # go safe -- we cannot be much sure without the toplevel
7275 # analysis of which target libs are present and usable
7279 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7284 enable_languages
=c
,${enable_languages}
7293 # Check whether --with-multilib-list was given.
7294 if test "${with_multilib_list+set}" = set; then :
7295 withval
=$with_multilib_list; :
7297 with_multilib_list
=default
7301 # -------------------------
7302 # Checks for other programs
7303 # -------------------------
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7306 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7308 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7309 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7310 $as_echo_n "(cached) " >&6
7312 cat >conftest.
make <<\_ACEOF
7315 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7317 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7318 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7320 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7322 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7326 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7328 $as_echo "yes" >&6; }
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }
7333 SET_MAKE
="MAKE=${MAKE-make}"
7337 # Find some useful tools
7338 for ac_prog
in gawk mawk nawk
awk
7340 # Extract the first word of "$ac_prog", so it can be a program name with args.
7341 set dummy
$ac_prog; ac_word
=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if test "${ac_cv_prog_AWK+set}" = set; then :
7345 $as_echo_n "(cached) " >&6
7347 if test -n "$AWK"; then
7348 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7354 test -z "$as_dir" && as_dir
=.
7355 for ac_exec_ext
in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 ac_cv_prog_AWK
="$ac_prog"
7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 if test -n "$AWK"; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7370 $as_echo "$AWK" >&6; }
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7377 test -n "$AWK" && break
7380 # We need awk to create options.c and options.h.
7381 # Bail out if it's missing.
7383 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7387 $as_echo_n "checking whether ln -s works... " >&6; }
7388 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7389 $as_echo_n "(cached) " >&6
7391 rm -f conftestdata_t
7392 echo >conftestdata_f
7393 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7395 gcc_cv_prog_LN_S
="ln -s"
7397 if ln conftestdata_f conftestdata_t
2>/dev
/null
7401 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7403 gcc_cv_prog_LN_S
="cp -p"
7409 rm -f conftestdata_f conftestdata_t
7412 LN_S
="$gcc_cv_prog_LN_S"
7413 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7415 $as_echo "yes" >&6; }
7417 if test "$gcc_cv_prog_LN_S" = "ln"; then
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7419 $as_echo "no, using ln" >&6; }
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7422 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7427 $as_echo_n "checking whether ln works... " >&6; }
7428 if test "${acx_cv_prog_LN+set}" = set; then :
7429 $as_echo_n "(cached) " >&6
7431 rm -f conftestdata_t
7432 echo >conftestdata_f
7433 if ln conftestdata_f conftestdata_t
2>/dev
/null
7439 rm -f conftestdata_f conftestdata_t
7442 if test $acx_cv_prog_LN = no
; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7445 $as_echo "no, using $LN" >&6; }
7447 LN
="$acx_cv_prog_LN"
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7449 $as_echo "yes" >&6; }
7452 if test -n "$ac_tool_prefix"; then
7453 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7454 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456 $as_echo_n "checking for $ac_word... " >&6; }
7457 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7458 $as_echo_n "(cached) " >&6
7460 if test -n "$RANLIB"; then
7461 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7463 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7467 test -z "$as_dir" && as_dir
=.
7468 for ac_exec_ext
in '' $ac_executable_extensions; do
7469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7470 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 RANLIB
=$ac_cv_prog_RANLIB
7481 if test -n "$RANLIB"; then
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7483 $as_echo "$RANLIB" >&6; }
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }
7491 if test -z "$ac_cv_prog_RANLIB"; then
7492 ac_ct_RANLIB
=$RANLIB
7493 # Extract the first word of "ranlib", so it can be a program name with args.
7494 set dummy ranlib
; ac_word
=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7498 $as_echo_n "(cached) " >&6
7500 if test -n "$ac_ct_RANLIB"; then
7501 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7503 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7507 test -z "$as_dir" && as_dir
=.
7508 for ac_exec_ext
in '' $ac_executable_extensions; do
7509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7510 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7521 if test -n "$ac_ct_RANLIB"; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7523 $as_echo "$ac_ct_RANLIB" >&6; }
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7529 if test "x$ac_ct_RANLIB" = x
; then
7532 case $cross_compiling:$ac_tool_warned in
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7536 ac_tool_warned
=yes ;;
7538 RANLIB
=$ac_ct_RANLIB
7541 RANLIB
="$ac_cv_prog_RANLIB"
7546 # By default, the Darwin ranlib will not treat common symbols as
7547 # definitions when building the archive table of contents. Other
7548 # ranlibs do that; pass an option to the Darwin ranlib that makes
7549 # it behave similarly.
7557 # Find a good install program. We prefer a C program (faster),
7558 # so one script is as good as another. But avoid the broken or
7559 # incompatible versions:
7560 # SysV /etc/install, /usr/sbin/install
7561 # SunOS /usr/etc/install
7562 # IRIX /sbin/install
7564 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7565 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7566 # ./install, which can be erroneously created by make from ./install.sh.
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7568 $as_echo_n "checking for a BSD compatible install... " >&6; }
7569 if test -z "$INSTALL"; then
7570 if test "${ac_cv_path_install+set}" = set; then :
7571 $as_echo_n "(cached) " >&6
7573 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7574 for ac_dir
in $PATH; do
7575 # Account for people who put trailing slashes in PATH elements.
7577 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7579 # OSF1 and SCO ODT 3.0 have their own names for install.
7580 for ac_prog
in ginstall scoinst
install; do
7581 if test -f $ac_dir/$ac_prog; then
7582 if test $ac_prog = install &&
7583 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7584 # AIX install. It has an incompatible calling convention.
7585 # OSF/1 installbsd also uses dspmsg, but is usable.
7588 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7599 if test "${ac_cv_path_install+set}" = set; then
7600 INSTALL
="$ac_cv_path_install"
7602 # As a last resort, use the slow shell script. We don't cache a
7603 # path for INSTALL within a source directory, because that will
7604 # break other packages using the cache if that directory is
7605 # removed, or if the path is relative.
7606 INSTALL
="$ac_install_sh"
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7610 $as_echo "$INSTALL" >&6; }
7612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7613 # It thinks the first close brace ends the variable substitution.
7614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7616 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7619 # See if cmp has --ignore-initial.
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7621 $as_echo_n "checking for cmp's capabilities... " >&6; }
7622 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7623 $as_echo_n "(cached) " >&6
7627 gcc_cv_prog_cmp_skip
=slowcompare
7628 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7629 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7632 gcc_cv_prog_cmp_skip
=gnucompare
7635 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7636 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7637 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7640 gcc_cv_prog_cmp_skip
=fastcompare
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7648 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7649 make_compare_target
=$gcc_cv_prog_cmp_skip
7653 # See if we have the mktemp command.
7654 # Extract the first word of "mktemp", so it can be a program name with args.
7655 set dummy mktemp
; ac_word
=$2
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657 $as_echo_n "checking for $ac_word... " >&6; }
7658 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7659 $as_echo_n "(cached) " >&6
7661 if test -n "$have_mktemp_command"; then
7662 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7668 test -z "$as_dir" && as_dir
=.
7669 for ac_exec_ext
in '' $ac_executable_extensions; do
7670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7671 ac_cv_prog_have_mktemp_command
="yes"
7672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7679 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7682 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7683 if test -n "$have_mktemp_command"; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7685 $as_echo "$have_mktemp_command" >&6; }
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688 $as_echo "no" >&6; }
7693 # See if makeinfo has been installed and is modern enough
7694 # that we can use it.
7696 # Extract the first word of "makeinfo", so it can be a program name with args.
7697 set dummy makeinfo
; ac_word
=$2
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699 $as_echo_n "checking for $ac_word... " >&6; }
7700 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7701 $as_echo_n "(cached) " >&6
7703 if test -n "$MAKEINFO"; then
7704 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7706 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7710 test -z "$as_dir" && as_dir
=.
7711 for ac_exec_ext
in '' $ac_executable_extensions; do
7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7713 ac_cv_prog_MAKEINFO
="makeinfo"
7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 MAKEINFO
=$ac_cv_prog_MAKEINFO
7724 if test -n "$MAKEINFO"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7726 $as_echo "$MAKEINFO" >&6; }
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7733 if test -n "$MAKEINFO"; then
7734 # Found it, now check the version.
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7736 $as_echo_n "checking for modern makeinfo... " >&6; }
7737 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7738 $as_echo_n "(cached) " >&6
7740 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7741 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7743 case $ac_prog_version in
7744 '') gcc_cv_prog_makeinfo_modern
=no
;;
7745 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7746 *) gcc_cv_prog_makeinfo_modern
=no
;;
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7751 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7753 gcc_cv_prog_makeinfo_modern
=no
7755 if test $gcc_cv_prog_makeinfo_modern = no
; then
7756 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7759 if test $gcc_cv_prog_makeinfo_modern = no
; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7761 *** Makeinfo is missing or too old.
7762 *** Info documentation will not be built." >&5
7763 $as_echo "$as_me: WARNING:
7764 *** Makeinfo is missing or too old.
7765 *** Info documentation will not be built." >&2;}
7772 # Is pod2man recent enough to regenerate manpages?
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7774 $as_echo_n "checking for recent Pod::Man... " >&6; }
7775 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7777 $as_echo "yes" >&6; }
7778 GENERATED_MANPAGES
=generated-manpages
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 $as_echo "no" >&6; }
7786 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7791 # Extract the first word of "$ac_prog", so it can be a program name with args.
7792 set dummy
$ac_prog; ac_word
=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if test "${ac_cv_prog_FLEX+set}" = set; then :
7796 $as_echo_n "(cached) " >&6
7798 if test -n "$FLEX"; then
7799 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7805 test -z "$as_dir" && as_dir
=.
7806 for ac_exec_ext
in '' $ac_executable_extensions; do
7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808 ac_cv_prog_FLEX
="$ac_prog"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 FLEX
=$ac_cv_prog_FLEX
7819 if test -n "$FLEX"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7821 $as_echo "$FLEX" >&6; }
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7828 test -n "$FLEX" && break
7830 test -n "$FLEX" || FLEX
="$MISSING flex"
7834 for ac_prog
in bison
7836 # Extract the first word of "$ac_prog", so it can be a program name with args.
7837 set dummy
$ac_prog; ac_word
=$2
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839 $as_echo_n "checking for $ac_word... " >&6; }
7840 if test "${ac_cv_prog_BISON+set}" = set; then :
7841 $as_echo_n "(cached) " >&6
7843 if test -n "$BISON"; then
7844 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7850 test -z "$as_dir" && as_dir
=.
7851 for ac_exec_ext
in '' $ac_executable_extensions; do
7852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7853 ac_cv_prog_BISON
="$ac_prog"
7854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 BISON
=$ac_cv_prog_BISON
7864 if test -n "$BISON"; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7866 $as_echo "$BISON" >&6; }
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7873 test -n "$BISON" && break
7875 test -n "$BISON" || BISON
="$MISSING bison"
7878 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7879 # check for build == host before using them.
7882 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7883 && test -d ..
/binutils
; then
7884 NM
='${objdir}/../binutils/nm-new'
7886 # Extract the first word of "nm", so it can be a program name with args.
7887 set dummy nm
; ac_word
=$2
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889 $as_echo_n "checking for $ac_word... " >&6; }
7890 if test "${ac_cv_prog_NM+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
7893 if test -n "$NM"; then
7894 ac_cv_prog_NM
="$NM" # Let the user override the test.
7896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7900 test -z "$as_dir" && as_dir
=.
7901 for ac_exec_ext
in '' $ac_executable_extensions; do
7902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7915 if test -n "$NM"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7917 $as_echo "$NM" >&6; }
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7927 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7928 && test -d ..
/binutils
; then
7929 AR
='${objdir}/../binutils/ar'
7931 # Extract the first word of "ar", so it can be a program name with args.
7932 set dummy
ar; ac_word
=$2
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934 $as_echo_n "checking for $ac_word... " >&6; }
7935 if test "${ac_cv_prog_AR+set}" = set; then :
7936 $as_echo_n "(cached) " >&6
7938 if test -n "$AR"; then
7939 ac_cv_prog_AR
="$AR" # Let the user override the test.
7941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7945 test -z "$as_dir" && as_dir
=.
7946 for ac_exec_ext
in '' $ac_executable_extensions; do
7947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7960 if test -n "$AR"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7962 $as_echo "$AR" >&6; }
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7972 # --------------------
7973 # Checks for C headers
7974 # --------------------
7976 # Need to reject headers which give warnings, so that the -Werror bootstrap
7977 # works later. *sigh* This needs to come before all header checks.
7979 ac_c_preproc_warn_flag
=yes
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7982 $as_echo_n "checking for ANSI C header files... " >&6; }
7983 if test "${ac_cv_header_stdc+set}" = set; then :
7984 $as_echo_n "(cached) " >&6
7986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
8001 if ac_fn_c_try_compile
"$LINENO"; then :
8002 ac_cv_header_stdc
=yes
8004 ac_cv_header_stdc
=no
8006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8008 if test $ac_cv_header_stdc = yes; then
8009 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h. */
8015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8016 $EGREP "memchr" >/dev
/null
2>&1; then :
8019 ac_cv_header_stdc
=no
8025 if test $ac_cv_header_stdc = yes; then
8026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8028 /* end confdefs.h. */
8032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8033 $EGREP "free" >/dev
/null
2>&1; then :
8036 ac_cv_header_stdc
=no
8042 if test $ac_cv_header_stdc = yes; then
8043 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8044 if test "$cross_compiling" = yes; then :
8047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8051 #if ((' ' & 0x0FF) == 0x020)
8052 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8053 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8055 # define ISLOWER(c) \
8056 (('a' <= (c) && (c) <= 'i') \
8057 || ('j' <= (c) && (c) <= 'r') \
8058 || ('s' <= (c) && (c) <= 'z'))
8059 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8062 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8067 for (i = 0; i < 256; i++)
8068 if (XOR (islower (i), ISLOWER (i))
8069 || toupper (i) != TOUPPER (i))
8074 if ac_fn_c_try_run
"$LINENO"; then :
8077 ac_cv_header_stdc
=no
8079 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8080 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8086 $as_echo "$ac_cv_header_stdc" >&6; }
8087 if test $ac_cv_header_stdc = yes; then
8089 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8094 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8095 if test "${ac_cv_header_time+set}" = set; then :
8096 $as_echo_n "(cached) " >&6
8098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h. */
8100 #include <sys/types.h>
8101 #include <sys/time.h>
8107 if ((struct tm *) 0)
8113 if ac_fn_c_try_compile
"$LINENO"; then :
8114 ac_cv_header_time
=yes
8116 ac_cv_header_time
=no
8118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8121 $as_echo "$ac_cv_header_time" >&6; }
8122 if test $ac_cv_header_time = yes; then
8124 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8129 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8130 if test "${gcc_cv_header_string+set}" = set; then :
8131 $as_echo_n "(cached) " >&6
8133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h. */
8136 #include <strings.h>
8145 if ac_fn_c_try_compile
"$LINENO"; then :
8146 gcc_cv_header_string
=yes
8148 gcc_cv_header_string
=no
8150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8153 $as_echo "$gcc_cv_header_string" >&6; }
8154 if test $gcc_cv_header_string = yes; then
8156 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8161 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8162 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8163 $as_echo_n "(cached) " >&6
8165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8167 #include <sys/types.h>
8168 #include <sys/wait.h>
8170 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8173 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8181 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8186 if ac_fn_c_try_compile
"$LINENO"; then :
8187 ac_cv_header_sys_wait_h
=yes
8189 ac_cv_header_sys_wait_h
=no
8191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8194 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8195 if test $ac_cv_header_sys_wait_h = yes; then
8197 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8201 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8202 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8203 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8204 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8206 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8207 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8208 eval as_val
=\$
$as_ac_Header
8209 if test "x$as_val" = x
""yes; then :
8210 cat >>confdefs.h
<<_ACEOF
8211 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8218 # Check for thread headers.
8219 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8220 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8226 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8227 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8234 # These tests can't be done till we know if we have limits.h.
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8236 $as_echo_n "checking for CHAR_BIT... " >&6; }
8237 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8238 $as_echo_n "(cached) " >&6
8240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8242 #ifdef HAVE_LIMITS_H
8249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8250 $EGREP "found" >/dev
/null
2>&1; then :
8251 gcc_cv_decl_char_bit
=yes
8253 gcc_cv_decl_char_bit
=no
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8260 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8261 if test $gcc_cv_decl_char_bit = no
; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8263 $as_echo_n "checking number of bits in a byte... " >&6; }
8264 if test "${gcc_cv_c_nbby+set}" = set; then :
8265 $as_echo_n "(cached) " >&6
8269 while test $i -lt 65; do
8270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8277 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8278 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8284 if ac_fn_c_try_compile
"$LINENO"; then :
8285 gcc_cv_c_nbby
=$i; break
8287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8290 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8294 $as_echo "$gcc_cv_c_nbby" >&6; }
8295 if test $gcc_cv_c_nbby = failed
; then
8296 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8299 cat >>confdefs.h
<<_ACEOF
8300 #define CHAR_BIT $gcc_cv_c_nbby
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8306 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8307 if test "${ac_cv_c_bigendian+set}" = set; then :
8308 $as_echo_n "(cached) " >&6
8310 ac_cv_c_bigendian
=unknown
8311 # See if we're dealing with a universal compiler.
8312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8313 /* end confdefs.h. */
8314 #ifndef __APPLE_CC__
8315 not a universal capable compiler
8320 if ac_fn_c_try_compile
"$LINENO"; then :
8322 # Check for potential -arch flags. It is not universal unless
8323 # there are at least two -arch flags with different values.
8326 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8327 if test -n "$ac_prev"; then
8329 i?
86 | x86_64 | ppc | ppc64
)
8330 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8333 ac_cv_c_bigendian
=universal
8339 elif test "x$ac_word" = "x-arch"; then
8344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8345 if test $ac_cv_c_bigendian = unknown
; then
8346 # See if sys/param.h defines the BYTE_ORDER macro.
8347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h. */
8349 #include <sys/types.h>
8350 #include <sys/param.h>
8355 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8356 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8365 if ac_fn_c_try_compile
"$LINENO"; then :
8366 # It does; now see whether it defined to BIG_ENDIAN or not.
8367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h. */
8369 #include <sys/types.h>
8370 #include <sys/param.h>
8375 #if BYTE_ORDER != BIG_ENDIAN
8383 if ac_fn_c_try_compile
"$LINENO"; then :
8384 ac_cv_c_bigendian
=yes
8386 ac_cv_c_bigendian
=no
8388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8392 if test $ac_cv_c_bigendian = unknown
; then
8393 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8395 /* end confdefs.h. */
8401 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8409 if ac_fn_c_try_compile
"$LINENO"; then :
8410 # It does; now see whether it defined to _BIG_ENDIAN or not.
8411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8412 /* end confdefs.h. */
8426 if ac_fn_c_try_compile
"$LINENO"; then :
8427 ac_cv_c_bigendian
=yes
8429 ac_cv_c_bigendian
=no
8431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8435 if test $ac_cv_c_bigendian = unknown
; then
8436 # Compile a test program.
8437 if test "$cross_compiling" = yes; then :
8438 # Try to guess by grepping values from an object file.
8439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8441 short int ascii_mm[] =
8442 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8443 short int ascii_ii[] =
8444 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8445 int use_ascii (int i) {
8446 return ascii_mm[i] + ascii_ii[i];
8448 short int ebcdic_ii[] =
8449 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8450 short int ebcdic_mm[] =
8451 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8452 int use_ebcdic (int i) {
8453 return ebcdic_mm[i] + ebcdic_ii[i];
8460 return use_ascii (foo) == use_ebcdic (foo);
8465 if ac_fn_c_try_compile
"$LINENO"; then :
8466 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8467 ac_cv_c_bigendian
=yes
8469 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8470 if test "$ac_cv_c_bigendian" = unknown
; then
8471 ac_cv_c_bigendian
=no
8473 # finding both strings is unlikely to happen, but who knows?
8474 ac_cv_c_bigendian
=unknown
8478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8482 $ac_includes_default
8487 /* Are we little or big endian? From Harbison&Steele. */
8491 char c[sizeof (long int)];
8494 return u.c[sizeof (long int) - 1] == 1;
8500 if ac_fn_c_try_run
"$LINENO"; then :
8501 ac_cv_c_bigendian
=no
8503 ac_cv_c_bigendian
=yes
8505 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8506 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8512 $as_echo "$ac_cv_c_bigendian" >&6; }
8513 case $ac_cv_c_bigendian in #(
8515 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8521 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8525 as_fn_error
"unknown endianness
8526 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8530 # ----------------------
8531 # Checks for C++ headers
8532 # ----------------------
8535 ac_cpp
='$CXXCPP $CPPFLAGS'
8536 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8537 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8538 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8540 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8541 if test -z "$CXXCPP"; then
8542 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8543 $as_echo_n "(cached) " >&6
8545 # Double quotes because CXXCPP needs to be expanded
8546 for CXXCPP
in "$CXX -E" "/lib/cpp"
8549 for ac_cxx_preproc_warn_flag
in '' yes
8551 # Use a header file that comes with gcc, so configuring glibc
8552 # with a fresh cross-compiler works.
8553 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8554 # <limits.h> exists even on freestanding compilers.
8555 # On the NeXT, cc -E runs the code through the compiler's parser,
8556 # not just through cpp. "Syntax error" is here to catch this case.
8557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8560 # include <limits.h>
8562 # include <assert.h>
8566 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8569 # Broken: fails on valid input.
8572 rm -f conftest.err conftest.
$ac_ext
8574 # OK, works on sane cases. Now check whether nonexistent headers
8575 # can be detected and how.
8576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8577 /* end confdefs.h. */
8578 #include <ac_nonexistent.h>
8580 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8581 # Broken: success on invalid input.
8584 # Passes both tests.
8588 rm -f conftest.err conftest.
$ac_ext
8591 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8592 rm -f conftest.err conftest.
$ac_ext
8593 if $ac_preproc_ok; then :
8598 ac_cv_prog_CXXCPP
=$CXXCPP
8601 CXXCPP
=$ac_cv_prog_CXXCPP
8603 ac_cv_prog_CXXCPP
=$CXXCPP
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8606 $as_echo "$CXXCPP" >&6; }
8608 for ac_cxx_preproc_warn_flag
in '' yes
8610 # Use a header file that comes with gcc, so configuring glibc
8611 # with a fresh cross-compiler works.
8612 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8613 # <limits.h> exists even on freestanding compilers.
8614 # On the NeXT, cc -E runs the code through the compiler's parser,
8615 # not just through cpp. "Syntax error" is here to catch this case.
8616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h. */
8619 # include <limits.h>
8621 # include <assert.h>
8625 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8628 # Broken: fails on valid input.
8631 rm -f conftest.err conftest.
$ac_ext
8633 # OK, works on sane cases. Now check whether nonexistent headers
8634 # can be detected and how.
8635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8637 #include <ac_nonexistent.h>
8639 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8640 # Broken: success on invalid input.
8643 # Passes both tests.
8647 rm -f conftest.err conftest.
$ac_ext
8650 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8651 rm -f conftest.err conftest.
$ac_ext
8652 if $ac_preproc_ok; then :
8655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8658 See \`config.log' for more details." >&5
8659 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8660 See \`config.log' for more details." >&2;}; }
8664 ac_cpp
='$CPP $CPPFLAGS'
8665 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8666 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8667 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8671 ac_cpp
='$CXXCPP $CPPFLAGS'
8672 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8673 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8674 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8679 for ac_header
in unordered_map
8681 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8682 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8683 cat >>confdefs.h
<<_ACEOF
8684 #define HAVE_UNORDERED_MAP 1
8690 for ac_header
in tr1/unordered_map
8692 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8693 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8694 cat >>confdefs.h
<<_ACEOF
8695 #define HAVE_TR1_UNORDERED_MAP 1
8701 for ac_header
in ext
/hash_map
8703 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8704 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8705 cat >>confdefs.h
<<_ACEOF
8706 #define HAVE_EXT_HASH_MAP 1
8714 ac_cpp
='$CPP $CPPFLAGS'
8715 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8716 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8717 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8725 # These libraries may be used by collect2.
8726 # We may need a special search path to get them linked.
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8728 $as_echo_n "checking for collect2 libraries... " >&6; }
8729 if test "${gcc_cv_collect2_libs+set}" = set; then :
8730 $as_echo_n "(cached) " >&6
8733 for libs
in '' -lld -lmld \
8734 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8735 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8739 /* end confdefs.h. */
8741 /* Override any GCC internal prototype to avoid an error.
8742 Use char because int might match the return type of a GCC
8743 builtin and then its argument prototype would still apply. */
8756 if ac_fn_c_try_link
"$LINENO"; then :
8757 gcc_cv_collect2_libs
="$libs"; break
8759 rm -f core conftest.err conftest.
$ac_objext \
8760 conftest
$ac_exeext conftest.
$ac_ext
8763 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8766 $as_echo "$gcc_cv_collect2_libs" >&6; }
8767 case $gcc_cv_collect2_libs in
8769 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8773 # When building Ada code on Alpha, we need exc_resume which is usually in
8774 # -lexc. So test for it.
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8778 $as_echo_n "checking for library containing exc_resume... " >&6; }
8779 if test "${ac_cv_search_exc_resume+set}" = set; then :
8780 $as_echo_n "(cached) " >&6
8782 ac_func_search_save_LIBS
=$LIBS
8783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8784 /* end confdefs.h. */
8786 /* Override any GCC internal prototype to avoid an error.
8787 Use char because int might match the return type of a GCC
8788 builtin and then its argument prototype would still apply. */
8796 return exc_resume ();
8801 for ac_lib
in '' exc
; do
8802 if test -z "$ac_lib"; then
8803 ac_res
="none required"
8806 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8808 if ac_fn_c_try_link
"$LINENO"; then :
8809 ac_cv_search_exc_resume
=$ac_res
8811 rm -f core conftest.err conftest.
$ac_objext \
8813 if test "${ac_cv_search_exc_resume+set}" = set; then :
8817 if test "${ac_cv_search_exc_resume+set}" = set; then :
8820 ac_cv_search_exc_resume
=no
8823 LIBS
=$ac_func_search_save_LIBS
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8826 $as_echo "$ac_cv_search_exc_resume" >&6; }
8827 ac_res
=$ac_cv_search_exc_resume
8828 if test "$ac_res" != no
; then :
8829 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8837 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8841 $as_echo_n "checking for library containing kstat_open... " >&6; }
8842 if test "${ac_cv_search_kstat_open+set}" = set; then :
8843 $as_echo_n "(cached) " >&6
8845 ac_func_search_save_LIBS
=$LIBS
8846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8847 /* end confdefs.h. */
8849 /* Override any GCC internal prototype to avoid an error.
8850 Use char because int might match the return type of a GCC
8851 builtin and then its argument prototype would still apply. */
8859 return kstat_open ();
8864 for ac_lib
in '' kstat
; do
8865 if test -z "$ac_lib"; then
8866 ac_res
="none required"
8869 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8871 if ac_fn_c_try_link
"$LINENO"; then :
8872 ac_cv_search_kstat_open
=$ac_res
8874 rm -f core conftest.err conftest.
$ac_objext \
8876 if test "${ac_cv_search_kstat_open+set}" = set; then :
8880 if test "${ac_cv_search_kstat_open+set}" = set; then :
8883 ac_cv_search_kstat_open
=no
8886 LIBS
=$ac_func_search_save_LIBS
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8889 $as_echo "$ac_cv_search_kstat_open" >&6; }
8890 ac_res
=$ac_cv_search_kstat_open
8891 if test "$ac_res" != no
; then :
8892 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8896 EXTRA_GCC_LIBS
="$LIBS"
8900 # Some systems put ldexp and frexp in libm instead of libc; assume
8901 # they're both in the same place. jcf-dump needs them.
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8905 $as_echo_n "checking for library containing ldexp... " >&6; }
8906 if test "${ac_cv_search_ldexp+set}" = set; then :
8907 $as_echo_n "(cached) " >&6
8909 ac_func_search_save_LIBS
=$LIBS
8910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h. */
8913 /* Override any GCC internal prototype to avoid an error.
8914 Use char because int might match the return type of a GCC
8915 builtin and then its argument prototype would still apply. */
8928 for ac_lib
in '' m
; do
8929 if test -z "$ac_lib"; then
8930 ac_res
="none required"
8933 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8935 if ac_fn_c_try_link
"$LINENO"; then :
8936 ac_cv_search_ldexp
=$ac_res
8938 rm -f core conftest.err conftest.
$ac_objext \
8940 if test "${ac_cv_search_ldexp+set}" = set; then :
8944 if test "${ac_cv_search_ldexp+set}" = set; then :
8947 ac_cv_search_ldexp
=no
8950 LIBS
=$ac_func_search_save_LIBS
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8953 $as_echo "$ac_cv_search_ldexp" >&6; }
8954 ac_res
=$ac_cv_search_ldexp
8955 if test "$ac_res" != no
; then :
8956 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8964 # Use <inttypes.h> only if it exists,
8965 # doesn't clash with <sys/types.h>, and declares intmax_t.
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8967 $as_echo_n "checking for inttypes.h... " >&6; }
8968 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8969 $as_echo_n "(cached) " >&6
8971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8972 /* end confdefs.h. */
8973 #include <sys/types.h>
8974 #include <inttypes.h>
8983 if ac_fn_c_try_compile
"$LINENO"; then :
8984 gcc_cv_header_inttypes_h
=yes
8986 gcc_cv_header_inttypes_h
=no
8988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8992 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8993 if test $gcc_cv_header_inttypes_h = yes; then
8995 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9001 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9002 sysconf strsignal getrusage nl_langinfo \
9003 gettimeofday mbstowcs wcswidth mmap setlocale \
9004 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
9006 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9007 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9008 eval as_val
=\$
$as_ac_var
9009 if test "x$as_val" = x
""yes; then :
9010 cat >>confdefs.h
<<_ACEOF
9011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9018 if test x
$ac_cv_func_mbstowcs = xyes
; then
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9020 $as_echo_n "checking whether mbstowcs works... " >&6; }
9021 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9022 $as_echo_n "(cached) " >&6
9024 if test "$cross_compiling" = yes; then :
9025 gcc_cv_func_mbstowcs_works
=yes
9027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9036 if ac_fn_c_try_run
"$LINENO"; then :
9037 gcc_cv_func_mbstowcs_works
=yes
9039 gcc_cv_func_mbstowcs_works
=no
9041 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9042 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9047 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9048 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9050 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9055 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9056 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9060 cat >>confdefs.h
<<_ACEOF
9066 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9067 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9071 cat >>confdefs.h
<<_ACEOF
9072 #define caddr_t char *
9079 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9080 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9081 gcc_header_sys_mman_h
=yes
9083 gcc_header_sys_mman_h
=no
9086 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9087 if test "x$ac_cv_func_mmap" = x
""yes; then :
9093 if test "$gcc_header_sys_mman_h" != yes \
9094 ||
test "$gcc_func_mmap" != yes; then
9095 gcc_cv_func_mmap_file
=no
9096 gcc_cv_func_mmap_dev_zero
=no
9097 gcc_cv_func_mmap_anon
=no
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9100 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9101 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9102 $as_echo_n "(cached) " >&6
9104 # Add a system to this blacklist if
9105 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9106 # memory area containing the same data that you'd get if you applied
9107 # read() to the same fd. The only system known to have a problem here
9108 # is VMS, where text files have record structure.
9111 gcc_cv_func_mmap_file
=no
;;
9113 gcc_cv_func_mmap_file
=yes;;
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9117 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9119 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9120 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9121 $as_echo_n "(cached) " >&6
9123 # Add a system to this blacklist if it has mmap() but /dev/zero
9124 # does not exist, or if mmapping /dev/zero does not give anonymous
9125 # zeroed pages with both the following properties:
9126 # 1. If you map N consecutive pages in with one call, and then
9127 # unmap any subset of those pages, the pages that were not
9128 # explicitly unmapped remain accessible.
9129 # 2. If you map two adjacent blocks of memory and then unmap them
9130 # both at once, they must both go away.
9131 # Systems known to be in this category are Windows (all variants),
9134 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9135 gcc_cv_func_mmap_dev_zero
=no
;;
9137 gcc_cv_func_mmap_dev_zero
=yes;;
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9141 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9143 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9145 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9146 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9147 $as_echo_n "(cached) " >&6
9149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9150 /* end confdefs.h. */
9151 #include <sys/types.h>
9152 #include <sys/mman.h>
9155 #ifndef MAP_ANONYMOUS
9156 #define MAP_ANONYMOUS MAP_ANON
9162 int n = MAP_ANONYMOUS;
9167 if ac_fn_c_try_compile
"$LINENO"; then :
9168 gcc_cv_decl_map_anon
=yes
9170 gcc_cv_decl_map_anon
=no
9172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9175 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9177 if test $gcc_cv_decl_map_anon = no
; then
9178 gcc_cv_func_mmap_anon
=no
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9181 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9182 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9183 $as_echo_n "(cached) " >&6
9185 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9186 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9187 # doesn't give anonymous zeroed pages with the same properties listed
9188 # above for use of /dev/zero.
9189 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9191 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9192 gcc_cv_func_mmap_anon
=no
;;
9194 gcc_cv_func_mmap_anon
=yes;;
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9198 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9202 if test $gcc_cv_func_mmap_file = yes; then
9204 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9207 if test $gcc_cv_func_mmap_dev_zero = yes; then
9209 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9212 if test $gcc_cv_func_mmap_anon = yes; then
9214 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9221 # Under VMS, vfork works very differently than on Unix. The standard test
9222 # won't work, and it isn't easily adaptable. It makes more sense to
9224 ac_cv_func_vfork_works
=yes
9227 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9228 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9232 cat >>confdefs.h
<<_ACEOF
9238 for ac_header
in vfork.h
9240 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9241 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9242 cat >>confdefs.h
<<_ACEOF
9243 #define HAVE_VFORK_H 1
9249 for ac_func
in fork vfork
9251 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9252 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9253 eval as_val
=\$
$as_ac_var
9254 if test "x$as_val" = x
""yes; then :
9255 cat >>confdefs.h
<<_ACEOF
9256 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9262 if test "x$ac_cv_func_fork" = xyes
; then
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9264 $as_echo_n "checking for working fork... " >&6; }
9265 if test "${ac_cv_func_fork_works+set}" = set; then :
9266 $as_echo_n "(cached) " >&6
9268 if test "$cross_compiling" = yes; then :
9269 ac_cv_func_fork_works
=cross
9271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9273 $ac_includes_default
9278 /* By Ruediger Kuhlmann. */
9285 if ac_fn_c_try_run
"$LINENO"; then :
9286 ac_cv_func_fork_works
=yes
9288 ac_cv_func_fork_works
=no
9290 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9291 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9296 $as_echo "$ac_cv_func_fork_works" >&6; }
9299 ac_cv_func_fork_works
=$ac_cv_func_fork
9301 if test "x$ac_cv_func_fork_works" = xcross
; then
9303 *-*-amigaos* |
*-*-msdosdjgpp*)
9304 # Override, as these systems have only a dummy fork() stub
9305 ac_cv_func_fork_works
=no
9308 ac_cv_func_fork_works
=yes
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9312 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9314 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9315 if test "x$ac_cv_func_vfork" = xyes
; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9317 $as_echo_n "checking for working vfork... " >&6; }
9318 if test "${ac_cv_func_vfork_works+set}" = set; then :
9319 $as_echo_n "(cached) " >&6
9321 if test "$cross_compiling" = yes; then :
9322 ac_cv_func_vfork_works
=cross
9324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h. */
9326 /* Thanks to Paul Eggert for this test. */
9327 $ac_includes_default
9328 #include <sys/wait.h>
9332 /* On some sparc systems, changes by the child to local and incoming
9333 argument registers are propagated back to the parent. The compiler
9334 is told about this with #include <vfork.h>, but some compilers
9335 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9336 static variable whose address is put into a register that is
9337 clobbered by the vfork. */
9340 sparc_address_test (int arg)
9342 sparc_address_test (arg) int arg;
9363 pid_t parent = getpid ();
9366 sparc_address_test (0);
9371 /* Here is another test for sparc vfork register problems. This
9372 test uses lots of local variables, at least as many local
9373 variables as main has allocated so far including compiler
9374 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9375 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9376 reuse the register of parent for one of the local variables,
9377 since it will think that parent can't possibly be used any more
9378 in this routine. Assigning to the local variable will thus
9379 munge parent in the parent process. */
9381 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9382 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9383 /* Convince the compiler that p..p7 are live; otherwise, it might
9384 use the same hardware register for all 8 local variables. */
9385 if (p != p1 || p != p2 || p != p3 || p != p4
9386 || p != p5 || p != p6 || p != p7)
9389 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9390 from child file descriptors. If the child closes a descriptor
9391 before it execs or exits, this munges the parent's descriptor
9392 as well. Test for this by closing stdout in the child. */
9393 _exit(close(fileno(stdout)) != 0);
9398 while (wait(&status) != child)
9401 /* Was there some problem with vforking? */
9404 /* Did the child fail? (This shouldn't happen.) */
9407 /* Did the vfork/compiler bug occur? */
9408 || parent != getpid()
9410 /* Did the file descriptor bug occur? */
9411 || fstat(fileno(stdout), &st) != 0
9416 if ac_fn_c_try_run
"$LINENO"; then :
9417 ac_cv_func_vfork_works
=yes
9419 ac_cv_func_vfork_works
=no
9421 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9422 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9427 $as_echo "$ac_cv_func_vfork_works" >&6; }
9430 if test "x$ac_cv_func_fork_works" = xcross
; then
9431 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9433 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9436 if test "x$ac_cv_func_vfork_works" = xyes
; then
9438 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9442 $as_echo "#define vfork fork" >>confdefs.h
9445 if test "x$ac_cv_func_fork_works" = xyes
; then
9447 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9452 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9453 # iconv() prototype.
9455 if test "X$prefix" = "XNONE"; then
9456 acl_final_prefix
="$ac_default_prefix"
9458 acl_final_prefix
="$prefix"
9460 if test "X$exec_prefix" = "XNONE"; then
9461 acl_final_exec_prefix
='${prefix}'
9463 acl_final_exec_prefix
="$exec_prefix"
9465 acl_save_prefix
="$prefix"
9466 prefix
="$acl_final_prefix"
9467 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9468 prefix
="$acl_save_prefix"
9471 # Check whether --with-gnu-ld was given.
9472 if test "${with_gnu_ld+set}" = set; then :
9473 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9478 # Prepare PATH_SEPARATOR.
9479 # The user is always right.
9480 if test "${PATH_SEPARATOR+set}" != set; then
9481 echo "#! /bin/sh" >conf$$.sh
9482 echo "exit 0" >>conf$$.sh
9484 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9492 if test "$GCC" = yes; then
9493 # Check if gcc -print-prog-name=ld gives a path.
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9495 $as_echo_n "checking for ld used by GCC... " >&6; }
9498 # gcc leaves a trailing carriage return which upsets mingw
9499 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9501 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9504 # Accept absolute paths.
9505 [\\/]* |
[A-Za-z
]:[\\/]*)
9506 re_direlt
='/[^/][^/]*/\.\./'
9507 # Canonicalize the path of ld
9508 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9509 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9510 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9512 test -z "$LD" && LD
="$ac_prog"
9515 # If it fails, then pretend we aren't using GCC.
9519 # If it is relative, then search for the first ld in PATH.
9523 elif test "$with_gnu_ld" = yes; then
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9525 $as_echo_n "checking for GNU ld... " >&6; }
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9528 $as_echo_n "checking for non-GNU ld... " >&6; }
9530 if test "${acl_cv_path_LD+set}" = set; then :
9531 $as_echo_n "(cached) " >&6
9533 if test -z "$LD"; then
9534 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9535 for ac_dir
in $PATH; do
9536 test -z "$ac_dir" && ac_dir
=.
9537 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9538 acl_cv_path_LD
="$ac_dir/$ac_prog"
9539 # Check to see if the program is GNU ld. I'd rather use --version,
9540 # but apparently some GNU ld's only accept -v.
9541 # Break only if it was the GNU/non-GNU ld that we prefer.
9542 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9543 test "$with_gnu_ld" != no
&& break
9545 test "$with_gnu_ld" != yes && break
9551 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9555 LD
="$acl_cv_path_LD"
9556 if test -n "$LD"; then
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9558 $as_echo "$LD" >&6; }
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 $as_echo "no" >&6; }
9563 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9565 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9566 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9567 $as_echo_n "(cached) " >&6
9569 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9570 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9571 acl_cv_prog_gnu_ld
=yes
9573 acl_cv_prog_gnu_ld
=no
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9577 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9578 with_gnu_ld
=$acl_cv_prog_gnu_ld
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9583 $as_echo_n "checking for shared library run path origin... " >&6; }
9584 if test "${acl_cv_rpath+set}" = set; then :
9585 $as_echo_n "(cached) " >&6
9588 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9589 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9596 $as_echo "$acl_cv_rpath" >&6; }
9598 libext
="$acl_cv_libext"
9599 shlibext
="$acl_cv_shlibext"
9600 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9601 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9602 hardcode_direct
="$acl_cv_hardcode_direct"
9603 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9604 # Check whether --enable-rpath was given.
9605 if test "${enable_rpath+set}" = set; then :
9606 enableval
=$enable_rpath; :
9620 acl_save_prefix
="$prefix"
9621 prefix
="$acl_final_prefix"
9622 acl_save_exec_prefix
="$exec_prefix"
9623 exec_prefix
="$acl_final_exec_prefix"
9625 eval additional_includedir
=\"$includedir\"
9626 eval additional_libdir
=\"$libdir\"
9628 exec_prefix
="$acl_save_exec_prefix"
9629 prefix
="$acl_save_prefix"
9632 # Check whether --with-libiconv-prefix was given.
9633 if test "${with_libiconv_prefix+set}" = set; then :
9634 withval
=$with_libiconv_prefix;
9635 if test "X$withval" = "Xno"; then
9638 if test "X$withval" = "X"; then
9640 acl_save_prefix
="$prefix"
9641 prefix
="$acl_final_prefix"
9642 acl_save_exec_prefix
="$exec_prefix"
9643 exec_prefix
="$acl_final_exec_prefix"
9645 eval additional_includedir
=\"$includedir\"
9646 eval additional_libdir
=\"$libdir\"
9648 exec_prefix
="$acl_save_exec_prefix"
9649 prefix
="$acl_save_prefix"
9652 additional_includedir
="$withval/include"
9653 additional_libdir
="$withval/lib"
9664 names_already_handled
=
9665 names_next_round
='iconv '
9666 while test -n "$names_next_round"; do
9667 names_this_round
="$names_next_round"
9669 for name
in $names_this_round; do
9671 for n
in $names_already_handled; do
9672 if test "$n" = "$name"; then
9677 if test -z "$already_handled"; then
9678 names_already_handled
="$names_already_handled $name"
9679 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9680 eval value
=\"\
$HAVE_LIB$uppername\"
9681 if test -n "$value"; then
9682 if test "$value" = yes; then
9683 eval value
=\"\
$LIB$uppername\"
9684 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9685 eval value
=\"\
$LTLIB$uppername\"
9686 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9695 if test $use_additional = yes; then
9696 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9697 found_dir
="$additional_libdir"
9698 found_so
="$additional_libdir/lib$name.$shlibext"
9699 if test -f "$additional_libdir/lib$name.la"; then
9700 found_la
="$additional_libdir/lib$name.la"
9703 if test -f "$additional_libdir/lib$name.$libext"; then
9704 found_dir
="$additional_libdir"
9705 found_a
="$additional_libdir/lib$name.$libext"
9706 if test -f "$additional_libdir/lib$name.la"; then
9707 found_la
="$additional_libdir/lib$name.la"
9712 if test "X$found_dir" = "X"; then
9713 for x
in $LDFLAGS $LTLIBICONV; do
9715 acl_save_prefix
="$prefix"
9716 prefix
="$acl_final_prefix"
9717 acl_save_exec_prefix
="$exec_prefix"
9718 exec_prefix
="$acl_final_exec_prefix"
9720 exec_prefix
="$acl_save_exec_prefix"
9721 prefix
="$acl_save_prefix"
9725 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9726 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9728 found_so
="$dir/lib$name.$shlibext"
9729 if test -f "$dir/lib$name.la"; then
9730 found_la
="$dir/lib$name.la"
9733 if test -f "$dir/lib$name.$libext"; then
9735 found_a
="$dir/lib$name.$libext"
9736 if test -f "$dir/lib$name.la"; then
9737 found_la
="$dir/lib$name.la"
9743 if test "X$found_dir" != "X"; then
9748 if test "X$found_dir" != "X"; then
9749 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9750 if test "X$found_so" != "X"; then
9751 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9752 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9755 for x
in $ltrpathdirs; do
9756 if test "X$x" = "X$found_dir"; then
9761 if test -z "$haveit"; then
9762 ltrpathdirs
="$ltrpathdirs $found_dir"
9764 if test "$hardcode_direct" = yes; then
9765 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9767 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9768 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9770 for x
in $rpathdirs; do
9771 if test "X$x" = "X$found_dir"; then
9776 if test -z "$haveit"; then
9777 rpathdirs
="$rpathdirs $found_dir"
9781 for x
in $LDFLAGS $LIBICONV; do
9783 acl_save_prefix
="$prefix"
9784 prefix
="$acl_final_prefix"
9785 acl_save_exec_prefix
="$exec_prefix"
9786 exec_prefix
="$acl_final_exec_prefix"
9788 exec_prefix
="$acl_save_exec_prefix"
9789 prefix
="$acl_save_prefix"
9791 if test "X$x" = "X-L$found_dir"; then
9796 if test -z "$haveit"; then
9797 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9799 if test "$hardcode_minus_L" != no
; then
9800 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9802 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9808 if test "X$found_a" != "X"; then
9809 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9811 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9814 additional_includedir
=
9815 case "$found_dir" in
9817 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9818 additional_includedir
="$basedir/include"
9821 if test "X$additional_includedir" != "X"; then
9822 if test "X$additional_includedir" != "X/usr/include"; then
9824 if test "X$additional_includedir" = "X/usr/local/include"; then
9825 if test -n "$GCC"; then
9827 linux
*) haveit
=yes;;
9831 if test -z "$haveit"; then
9832 for x
in $CPPFLAGS $INCICONV; do
9834 acl_save_prefix
="$prefix"
9835 prefix
="$acl_final_prefix"
9836 acl_save_exec_prefix
="$exec_prefix"
9837 exec_prefix
="$acl_final_exec_prefix"
9839 exec_prefix
="$acl_save_exec_prefix"
9840 prefix
="$acl_save_prefix"
9842 if test "X$x" = "X-I$additional_includedir"; then
9847 if test -z "$haveit"; then
9848 if test -d "$additional_includedir"; then
9849 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9855 if test -n "$found_la"; then
9856 save_libdir
="$libdir"
9858 */* |
*\\*) .
"$found_la" ;;
9859 *) .
"./$found_la" ;;
9861 libdir
="$save_libdir"
9862 for dep
in $dependency_libs; do
9865 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9866 if test "X$additional_libdir" != "X/usr/lib"; then
9868 if test "X$additional_libdir" = "X/usr/local/lib"; then
9869 if test -n "$GCC"; then
9871 linux
*) haveit
=yes;;
9875 if test -z "$haveit"; then
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$additional_libdir"; then
9892 if test -z "$haveit"; then
9893 if test -d "$additional_libdir"; then
9894 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9898 for x
in $LDFLAGS $LTLIBICONV; do
9900 acl_save_prefix
="$prefix"
9901 prefix
="$acl_final_prefix"
9902 acl_save_exec_prefix
="$exec_prefix"
9903 exec_prefix
="$acl_final_exec_prefix"
9905 exec_prefix
="$acl_save_exec_prefix"
9906 prefix
="$acl_save_prefix"
9908 if test "X$x" = "X-L$additional_libdir"; then
9913 if test -z "$haveit"; then
9914 if test -d "$additional_libdir"; then
9915 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9922 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9923 if test "$enable_rpath" != no
; then
9925 for x
in $rpathdirs; do
9926 if test "X$x" = "X$dir"; then
9931 if test -z "$haveit"; then
9932 rpathdirs
="$rpathdirs $dir"
9935 for x
in $ltrpathdirs; do
9936 if test "X$x" = "X$dir"; then
9941 if test -z "$haveit"; then
9942 ltrpathdirs
="$ltrpathdirs $dir"
9947 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9950 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9953 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9954 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9960 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9961 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9967 if test "X$rpathdirs" != "X"; then
9968 if test -n "$hardcode_libdir_separator"; then
9970 for found_dir
in $rpathdirs; do
9971 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9973 acl_save_libdir
="$libdir"
9975 eval flag
=\"$hardcode_libdir_flag_spec\"
9976 libdir
="$acl_save_libdir"
9977 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9979 for found_dir
in $rpathdirs; do
9980 acl_save_libdir
="$libdir"
9982 eval flag
=\"$hardcode_libdir_flag_spec\"
9983 libdir
="$acl_save_libdir"
9984 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9988 if test "X$ltrpathdirs" != "X"; then
9989 for found_dir
in $ltrpathdirs; do
9990 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9995 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
9997 ac_cpp
='$CXXCPP $CPPFLAGS'
9998 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9999 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10000 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10007 am_save_CPPFLAGS
="$CPPFLAGS"
10009 for element
in $INCICONV; do
10011 for x
in $CPPFLAGS; do
10013 acl_save_prefix
="$prefix"
10014 prefix
="$acl_final_prefix"
10015 acl_save_exec_prefix
="$exec_prefix"
10016 exec_prefix
="$acl_final_exec_prefix"
10018 exec_prefix
="$acl_save_exec_prefix"
10019 prefix
="$acl_save_prefix"
10021 if test "X$x" = "X$element"; then
10026 if test -z "$haveit"; then
10027 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10033 $as_echo_n "checking for iconv... " >&6; }
10034 if test "${am_cv_func_iconv+set}" = set; then :
10035 $as_echo_n "(cached) " >&6
10038 am_cv_func_iconv
="no, consider installing GNU libiconv"
10040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10041 /* end confdefs.h. */
10042 #include <stdlib.h>
10047 iconv_t cd = iconv_open("","");
10048 iconv(cd,NULL,NULL,NULL,NULL);
10054 if ac_fn_cxx_try_link
"$LINENO"; then :
10055 am_cv_func_iconv
=yes
10057 rm -f core conftest.err conftest.
$ac_objext \
10058 conftest
$ac_exeext conftest.
$ac_ext
10059 if test "$am_cv_func_iconv" != yes; then
10060 am_save_LIBS
="$LIBS"
10061 LIBS
="$LIBS $LIBICONV"
10062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10063 /* end confdefs.h. */
10064 #include <stdlib.h>
10069 iconv_t cd = iconv_open("","");
10070 iconv(cd,NULL,NULL,NULL,NULL);
10076 if ac_fn_cxx_try_link
"$LINENO"; then :
10077 am_cv_lib_iconv
=yes
10078 am_cv_func_iconv
=yes
10080 rm -f core conftest.err conftest.
$ac_objext \
10081 conftest
$ac_exeext conftest.
$ac_ext
10082 LIBS
="$am_save_LIBS"
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10087 $as_echo "$am_cv_func_iconv" >&6; }
10088 if test "$am_cv_func_iconv" = yes; then
10090 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10093 if test "$am_cv_lib_iconv" = yes; then
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10095 $as_echo_n "checking how to link with libiconv... " >&6; }
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10097 $as_echo "$LIBICONV" >&6; }
10099 CPPFLAGS
="$am_save_CPPFLAGS"
10106 if test "$am_cv_func_iconv" = yes; then
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10108 $as_echo_n "checking for iconv declaration... " >&6; }
10109 if test "${am_cv_proto_iconv+set}" = set; then :
10110 $as_echo_n "(cached) " >&6
10113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10114 /* end confdefs.h. */
10116 #include <stdlib.h>
10122 #if defined(__STDC__) || defined(__cplusplus)
10123 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10136 if ac_fn_cxx_try_compile
"$LINENO"; then :
10137 am_cv_proto_iconv_arg1
=""
10139 am_cv_proto_iconv_arg1
="const"
10141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10142 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);"
10145 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10147 }$am_cv_proto_iconv" >&5
10149 }$am_cv_proto_iconv" >&6; }
10151 cat >>confdefs.h
<<_ACEOF
10152 #define ICONV_CONST $am_cv_proto_iconv_arg1
10158 ac_cpp
='$CPP $CPPFLAGS'
10159 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10160 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10161 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10169 am_save_CPPFLAGS
="$CPPFLAGS"
10171 for element
in $INCICONV; do
10173 for x
in $CPPFLAGS; do
10175 acl_save_prefix
="$prefix"
10176 prefix
="$acl_final_prefix"
10177 acl_save_exec_prefix
="$exec_prefix"
10178 exec_prefix
="$acl_final_exec_prefix"
10180 exec_prefix
="$acl_save_exec_prefix"
10181 prefix
="$acl_save_prefix"
10183 if test "X$x" = "X$element"; then
10188 if test -z "$haveit"; then
10189 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10195 $as_echo_n "checking for iconv... " >&6; }
10196 if test "${am_cv_func_iconv+set}" = set; then :
10197 $as_echo_n "(cached) " >&6
10200 am_cv_func_iconv
="no, consider installing GNU libiconv"
10202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h. */
10204 #include <stdlib.h>
10209 iconv_t cd = iconv_open("","");
10210 iconv(cd,NULL,NULL,NULL,NULL);
10216 if ac_fn_c_try_link
"$LINENO"; then :
10217 am_cv_func_iconv
=yes
10219 rm -f core conftest.err conftest.
$ac_objext \
10220 conftest
$ac_exeext conftest.
$ac_ext
10221 if test "$am_cv_func_iconv" != yes; then
10222 am_save_LIBS
="$LIBS"
10223 LIBS
="$LIBS $LIBICONV"
10224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10225 /* end confdefs.h. */
10226 #include <stdlib.h>
10231 iconv_t cd = iconv_open("","");
10232 iconv(cd,NULL,NULL,NULL,NULL);
10238 if ac_fn_c_try_link
"$LINENO"; then :
10239 am_cv_lib_iconv
=yes
10240 am_cv_func_iconv
=yes
10242 rm -f core conftest.err conftest.
$ac_objext \
10243 conftest
$ac_exeext conftest.
$ac_ext
10244 LIBS
="$am_save_LIBS"
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10249 $as_echo "$am_cv_func_iconv" >&6; }
10250 if test "$am_cv_func_iconv" = yes; then
10252 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10255 if test "$am_cv_lib_iconv" = yes; then
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10257 $as_echo_n "checking how to link with libiconv... " >&6; }
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10259 $as_echo "$LIBICONV" >&6; }
10261 CPPFLAGS
="$am_save_CPPFLAGS"
10268 if test "$am_cv_func_iconv" = yes; then
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10270 $as_echo_n "checking for iconv declaration... " >&6; }
10271 if test "${am_cv_proto_iconv+set}" = set; then :
10272 $as_echo_n "(cached) " >&6
10275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10276 /* end confdefs.h. */
10278 #include <stdlib.h>
10284 #if defined(__STDC__) || defined(__cplusplus)
10285 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10298 if ac_fn_c_try_compile
"$LINENO"; then :
10299 am_cv_proto_iconv_arg1
=""
10301 am_cv_proto_iconv_arg1
="const"
10303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10304 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);"
10307 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10309 }$am_cv_proto_iconv" >&5
10311 }$am_cv_proto_iconv" >&6; }
10313 cat >>confdefs.h
<<_ACEOF
10314 #define ICONV_CONST $am_cv_proto_iconv_arg1
10321 # Until we have in-tree GNU iconv:
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10327 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10328 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10329 $as_echo_n "(cached) " >&6
10331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10332 /* end confdefs.h. */
10333 #include <locale.h>
10342 if ac_fn_c_try_link
"$LINENO"; then :
10343 am_cv_val_LC_MESSAGES
=yes
10345 am_cv_val_LC_MESSAGES
=no
10347 rm -f core conftest.err conftest.
$ac_objext \
10348 conftest
$ac_exeext conftest.
$ac_ext
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10351 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10352 if test $am_cv_val_LC_MESSAGES = yes; then
10354 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10361 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10362 if test "${am_cv_langinfo_codeset+set}" = set; then :
10363 $as_echo_n "(cached) " >&6
10365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10366 /* end confdefs.h. */
10367 #include <langinfo.h>
10371 char* cs = nl_langinfo(CODESET);
10376 if ac_fn_c_try_link
"$LINENO"; then :
10377 am_cv_langinfo_codeset
=yes
10379 am_cv_langinfo_codeset
=no
10381 rm -f core conftest.err conftest.
$ac_objext \
10382 conftest
$ac_exeext conftest.
$ac_ext
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10386 $as_echo "$am_cv_langinfo_codeset" >&6; }
10387 if test $am_cv_langinfo_codeset = yes; then
10389 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10394 # We will need to find libiberty.h and ansidecl.h
10395 saved_CFLAGS
="$CFLAGS"
10396 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10397 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10398 strsignal strstr strverscmp \
10399 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10400 free
basename getopt
clock getpagesize 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
10402 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10404 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10405 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10406 $as_echo_n "(cached) " >&6
10408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h. */
10411 #define $ac_tr_decl 1
10413 #include "ansidecl.h"
10414 #include "system.h"
10420 char *(*pfn) = (char *(*)) $ac_func ;
10426 if ac_fn_c_try_compile
"$LINENO"; then :
10427 eval "gcc_cv_have_decl_$ac_func=yes"
10429 eval "gcc_cv_have_decl_$ac_func=no"
10431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10434 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10436 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10437 #define $ac_tr_decl 1
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10443 #define $ac_tr_decl 0
10451 for ac_func
in getrlimit setrlimit getrusage
10453 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10455 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10456 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10457 $as_echo_n "(cached) " >&6
10459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10460 /* end confdefs.h. */
10462 #define $ac_tr_decl 1
10464 #include "ansidecl.h"
10465 #include "system.h"
10466 #ifdef HAVE_SYS_RESOURCE_H
10467 #include <sys/resource.h>
10475 char *(*pfn) = (char *(*)) $ac_func ;
10481 if ac_fn_c_try_compile
"$LINENO"; then :
10482 eval "gcc_cv_have_decl_$ac_func=yes"
10484 eval "gcc_cv_have_decl_$ac_func=no"
10486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10489 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10491 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10492 #define $ac_tr_decl 1
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10498 #define $ac_tr_decl 0
10506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10507 /* end confdefs.h. */
10509 #include "ansidecl.h"
10510 #include "system.h"
10511 #ifdef HAVE_SYS_RESOURCE_H
10512 #include <sys/resource.h>
10523 if ac_fn_c_try_compile
"$LINENO"; then :
10527 $as_echo "#define rlim_t long" >>confdefs.h
10530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10532 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10533 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10534 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10535 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10536 for ac_func
in ldgetname
10538 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10540 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10541 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10542 $as_echo_n "(cached) " >&6
10544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10547 #define $ac_tr_decl 1
10549 #include "ansidecl.h"
10550 #include "system.h"
10551 #ifdef HAVE_LDFCN_H
10562 char *(*pfn) = (char *(*)) $ac_func ;
10568 if ac_fn_c_try_compile
"$LINENO"; then :
10569 eval "gcc_cv_have_decl_$ac_func=yes"
10571 eval "gcc_cv_have_decl_$ac_func=no"
10573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10576 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10578 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10579 #define $ac_tr_decl 1
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10585 #define $ac_tr_decl 0
10593 for ac_func
in times
10595 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10597 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10598 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10599 $as_echo_n "(cached) " >&6
10601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10602 /* end confdefs.h. */
10604 #define $ac_tr_decl 1
10606 #include "ansidecl.h"
10607 #include "system.h"
10608 #ifdef HAVE_SYS_TIMES_H
10609 #include <sys/times.h>
10617 char *(*pfn) = (char *(*)) $ac_func ;
10623 if ac_fn_c_try_compile
"$LINENO"; then :
10624 eval "gcc_cv_have_decl_$ac_func=yes"
10626 eval "gcc_cv_have_decl_$ac_func=no"
10628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10631 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10633 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10634 #define $ac_tr_decl 1
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10639 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10640 #define $ac_tr_decl 0
10648 for ac_func
in sigaltstack
10650 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10652 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10653 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10654 $as_echo_n "(cached) " >&6
10656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10657 /* end confdefs.h. */
10659 #define $ac_tr_decl 1
10661 #include "ansidecl.h"
10662 #include "system.h"
10663 #include <signal.h>
10670 char *(*pfn) = (char *(*)) $ac_func ;
10676 if ac_fn_c_try_compile
"$LINENO"; then :
10677 eval "gcc_cv_have_decl_$ac_func=yes"
10679 eval "gcc_cv_have_decl_$ac_func=no"
10681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10684 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10686 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10687 #define $ac_tr_decl 1
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10692 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10693 #define $ac_tr_decl 0
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 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10778 CFLAGS
="$saved_CFLAGS"
10780 # Check whether --enable-initfini-array was given.
10781 if test "${enable_initfini_array+set}" = set; then :
10782 enableval
=$enable_initfini_array;
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10786 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10787 if test "${gcc_cv_initfini_array+set}" = set; then :
10788 $as_echo_n "(cached) " >&6
10790 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10791 if test "$cross_compiling" = yes; then :
10792 gcc_cv_initfini_array
=no
10794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h. */
10798 #error Not an ELF OS
10801 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10802 if it can be used. */
10804 int main (void) { return x; }
10805 int foo (void) { x = 0; }
10806 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10808 extern void abort ();
10818 void (*const init_array1005) ()
10819 __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10827 void (*const fini_array1005) ()
10828 __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10838 void (*const ctors1007) ()
10839 __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10848 void (*const dtors1007) ()
10849 __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
10859 void (*const init_array65530) ()
10860 __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
10865 if (count != 65530)
10869 void (*const fini_array65530) ()
10870 __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
10876 if (count != 65530)
10880 void (*const ctors65535) ()
10881 __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
10886 if (count != 65535)
10890 void (*const dtors65535) ()
10891 __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
10897 if (count != 65535)
10904 if ac_fn_c_try_run
"$LINENO"; then :
10905 gcc_cv_initfini_array
=yes
10907 gcc_cv_initfini_array
=no
10909 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10910 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
10915 $as_echo_n "checking cross compile... guessing... " >&6; }
10916 gcc_cv_initfini_array
=no
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10920 $as_echo "$gcc_cv_initfini_array" >&6; }
10921 enable_initfini_array
=$gcc_cv_initfini_array
10925 if test $enable_initfini_array = yes; then
10927 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10931 # mkdir takes a single argument on some systems.
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10933 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10934 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10935 $as_echo_n "(cached) " >&6
10937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10938 /* end confdefs.h. */
10940 #include <sys/types.h>
10941 #ifdef HAVE_SYS_STAT_H
10942 # include <sys/stat.h>
10944 #ifdef HAVE_UNISTD_H
10945 # include <unistd.h>
10947 #ifdef HAVE_DIRECT_H
10948 # include <direct.h>
10958 if ac_fn_c_try_compile
"$LINENO"; then :
10959 gcc_cv_mkdir_takes_one_arg
=no
10961 gcc_cv_mkdir_takes_one_arg
=yes
10963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10966 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10967 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10969 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10980 # With Setjmp/Longjmp based exception handling.
10981 # Check whether --enable-sjlj-exceptions was given.
10982 if test "${enable_sjlj_exceptions+set}" = set; then :
10983 enableval
=$enable_sjlj_exceptions; case $target in
10985 if test $enableval != yes; then
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10987 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10992 force_sjlj_exceptions
=yes
10996 force_sjlj_exceptions
=yes
11000 force_sjlj_exceptions
=no
11005 if test $force_sjlj_exceptions = yes; then
11006 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11008 cat >>confdefs.h
<<_ACEOF
11009 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11014 # --------------------------------------------------------
11015 # Build, host, and target specific configuration fragments
11016 # --------------------------------------------------------
11018 # Collect build-machine-specific information.
11019 .
${srcdir}/config.build
11021 # Collect host-machine-specific information.
11022 .
${srcdir}/config.
host
11026 # Collect target-machine-specific information.
11027 .
${srcdir}/config.gcc
11029 extra_objs
="${host_extra_objs} ${extra_objs}"
11030 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11032 # Default the target-machine variables that were not explicitly set.
11033 if test x
"$tm_file" = x
11034 then tm_file
=$cpu_type/$cpu_type.h
; fi
11036 if test x
"$extra_headers" = x
11037 then extra_headers
=; fi
11039 if test x
$md_file = x
11040 then md_file
=$cpu_type/$cpu_type.md
; fi
11042 if test x
$out_file = x
11043 then out_file
=$cpu_type/$cpu_type.c
; fi
11045 if test x
"$tmake_file" = x
11046 then tmake_file
=$cpu_type/t-
$cpu_type
11049 if test x
"$dwarf2" = xyes
11050 then tm_file
="$tm_file tm-dwarf2.h"
11053 # Say what files are being used for the output code and MD file.
11054 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11055 echo "Using \`$srcdir/config/$md_file' as machine description file."
11057 # If any of the xm_file variables contain nonexistent files, warn
11058 # about them and drop them.
11061 for x
in $build_xm_file; do
11062 if test -f $srcdir/config
/$x
11064 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11065 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11068 build_xm_file
="$bx"
11071 for x
in $host_xm_file; do
11072 if test -f $srcdir/config
/$x
11074 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11075 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11081 for x
in $xm_file; do
11082 if test -f $srcdir/config
/$x
11084 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11085 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11091 for f
in $tm_file; do
11094 if test $count = ax
; then
11095 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11097 echo "Using the following target machine macro files:"
11098 for f
in $tm_file; do
11099 echo " $srcdir/config/$f"
11103 if test x
$need_64bit_hwint = xyes
; then
11105 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11109 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11111 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11116 for f
in $host_xm_file; do
11119 if test $count = a
; then
11121 elif test $count = ax
; then
11122 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11124 echo "Using the following host machine macro files:"
11125 for f
in $host_xm_file; do
11126 echo " $srcdir/config/$f"
11129 echo "Using ${out_host_hook_obj} for host machine hooks."
11131 if test "$host_xm_file" != "$build_xm_file"; then
11133 for f
in $build_xm_file; do
11136 if test $count = a
; then
11138 elif test $count = ax
; then
11139 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11141 echo "Using the following build machine macro files:"
11142 for f
in $build_xm_file; do
11143 echo " $srcdir/config/$f"
11149 powerpc
*-*-darwin*)
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11151 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11152 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11153 $as_echo_n "(cached) " >&6
11155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h. */
11158 #include <sys/cdefs.h>
11159 #include <sys/signal.h>
11160 #include <ucontext.h>
11161 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11164 if ac_fn_c_try_compile
"$LINENO"; then :
11165 gcc_cv_mcontext_underscores
=no
11167 gcc_cv_mcontext_underscores
=yes
11169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11172 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11173 if test $gcc_cv_mcontext_underscores = yes; then
11175 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11185 # Check if a valid thread package
11186 case ${enable_threads} in
11189 target_thread_file
='single'
11193 target_thread_file
='single'
11195 aix | dce | lynx | mipssde | posix | rtems | \
11196 single | tpf | vxworks | win32
)
11197 target_thread_file
=${enable_threads}
11200 echo "${enable_threads} is an unknown thread package" 1>&2
11205 if test x
${thread_file} = x
; then
11206 # No thread file set by target-specific clauses in config.gcc,
11207 # so use file chosen by default logic above
11208 thread_file
=${target_thread_file}
11211 # Make gthr-default.h if we have a thread file.
11213 if test $thread_file != single
; then
11214 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
11215 if diff gthr-default.h-t gthr-default.h
2>/dev
/null
; then
11216 rm -f gthr-default.h-t
11218 mv -f gthr-default.h-t gthr-default.h
11220 gthread_flags
=-DHAVE_GTHR_DEFAULT
11229 if test x
$enable___cxa_atexit = xyes || \
11230 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11231 if test x
$host = x
$target; then
11233 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11234 # keyed to flag_use_cxa_atexit
11239 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11240 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11243 echo "__cxa_atexit can't be enabled on this target"
11249 # We can't check for __cxa_atexit when building a cross, so assume
11253 if test x
$use_cxa_atexit = xyes
; then
11255 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11260 # Look for a file containing extra machine modes.
11261 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11262 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11265 cat >>confdefs.h
<<_ACEOF
11266 #define EXTRA_MODES_FILE "config/$extra_modes"
11271 # Convert extra_options into a form suitable for Makefile use.
11274 for f
in $extra_options; do
11275 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11276 all_opt_files
="$all_opt_files $srcdir/config/$f"
11280 # auto-host.h is the file containing items generated by autoconf and is
11281 # the first file included by config.h.
11282 # If host=build, it is correct to have bconfig include auto-host.h
11283 # as well. If host!=build, we are in error and need to do more
11284 # work to find out the build config parameters.
11285 if test x
$host = x
$build
11287 build_auto
=auto-host.h
11289 # We create a subdir, then run autoconf in the subdir.
11290 # To prevent recursion we set host and build for the new
11291 # invocation of configure to the build for this invocation
11298 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11299 *) realsrcdir
=..
/${srcdir};;
11301 saved_CFLAGS
="${CFLAGS}"
11302 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11303 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11304 ${realsrcdir}/configure \
11305 --enable-languages=${enable_languages-all} \
11306 --target=$target_alias --host=$build_alias --build=$build_alias
11307 CFLAGS
="${saved_CFLAGS}"
11309 # We just finished tests for the build machine, so rename
11310 # the file auto-build.h in the gcc directory.
11311 mv auto-host.h ..
/auto-build.h
11314 build_auto
=auto-build.h
11318 tm_file
="${tm_file} defaults.h"
11319 tm_p_file
="${tm_p_file} tm-preds.h"
11320 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11321 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11322 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11323 # put this back in temporarily.
11324 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11330 # Compile in configure arguments.
11331 if test -f configargs.h
; then
11332 # Being re-configured.
11333 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11334 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11336 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11339 # Double all backslashes and backslash all quotes to turn
11340 # gcc_config_arguments into a C string.
11341 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11342 $gcc_config_arguments
11344 gcc_config_arguments_str
=`cat conftest.out`
11347 cat > configargs.h
<<EOF
11348 /* Generated automatically. */
11349 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11350 static const char thread_model[] = "$thread_file";
11352 static const struct {
11353 const char *name, *value;
11354 } configure_default_options[] = $configure_default_options;
11357 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11358 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11359 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11360 if test -f $srcdir/REVISION
; then
11361 gcc_REVISION
=`cat $srcdir/REVISION`
11365 cat > plugin-version.h
<<EOF
11366 #include "configargs.h"
11368 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11369 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11370 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11371 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11373 static char basever[] = "$gcc_BASEVER";
11374 static char datestamp[] = "$gcc_DATESTAMP";
11375 static char devphase[] = "$gcc_DEVPHASE";
11376 static char revision[] = "$gcc_REVISION";
11378 /* FIXME plugins: We should make the version information more precise.
11379 One way to do is to add a checksum. */
11381 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11382 devphase, revision,
11383 configuration_arguments};
11386 # Internationalization
11387 # If we haven't got the data from the intl directory,
11388 # assume NLS is disabled.
11397 if test -f ..
/intl
/config.intl
; then
11398 . ..
/intl
/config.intl
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11401 $as_echo_n "checking whether NLS is requested... " >&6; }
11402 if test x
"$USE_NLS" != xyes
; then
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404 $as_echo "no" >&6; }
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11407 $as_echo "yes" >&6; }
11409 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11413 $as_echo_n "checking for catalogs to be installed... " >&6; }
11414 # Look for .po and .gmo files in the source directory.
11417 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11418 # If there aren't any .gmo files the shell will give us the
11419 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11421 case "$cat" in *\
**)
11424 # The quadruple backslash is collapsed to a double backslash
11425 # by the backticks, then collapsed again by the double quotes,
11426 # leaving us with one backslash in the sed expression (right
11427 # before the dot that mustn't act as a wildcard).
11428 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11429 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11430 # The user is allowed to set LINGUAS to a list of languages to
11431 # install catalogs for. If it's empty that means "all of them."
11432 if test "x$LINGUAS" = x
; then
11433 CATALOGS
="$CATALOGS $cat"
11434 XLINGUAS
="$XLINGUAS $lang"
11436 case "$LINGUAS" in *$lang*)
11437 CATALOGS
="$CATALOGS $cat"
11438 XLINGUAS
="$XLINGUAS $lang"
11443 LINGUAS
="$XLINGUAS"
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11445 $as_echo "$LINGUAS" >&6; }
11458 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11459 # -liconv on the link line twice.
11460 case "$LIBINTL" in *$LIBICONV*)
11464 # Check whether --enable-secureplt was given.
11465 if test "${enable_secureplt+set}" = set; then :
11466 enableval
=$enable_secureplt;
11470 # Check whether --enable-leading-mingw64-underscores was given.
11471 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11472 enableval
=$enable_leading_mingw64_underscores;
11475 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11477 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11481 # Check whether --enable-cld was given.
11482 if test "${enable_cld+set}" = set; then :
11483 enableval
=$enable_cld;
11489 # Check whether --enable-frame-pointer was given.
11490 if test "${enable_frame_pointer+set}" = set; then :
11491 enableval
=$enable_frame_pointer;
11495 linux
* | darwin
[8912]*)
11496 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11498 enable_frame_pointer
=no
11501 enable_frame_pointer
=yes
11508 # Windows32 Registry support for specifying GCC installation paths.
11509 # Check whether --enable-win32-registry was given.
11510 if test "${enable_win32_registry+set}" = set; then :
11511 enableval
=$enable_win32_registry;
11516 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11517 if test "x$enable_win32_registry" != xno
; then
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11519 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11520 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11521 $as_echo_n "(cached) " >&6
11523 ac_func_search_save_LIBS
=$LIBS
11524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11525 /* end confdefs.h. */
11527 /* Override any GCC internal prototype to avoid an error.
11528 Use char because int might match the return type of a GCC
11529 builtin and then its argument prototype would still apply. */
11533 char RegOpenKeyExA ();
11537 return RegOpenKeyExA ();
11542 for ac_lib
in '' advapi32
; do
11543 if test -z "$ac_lib"; then
11544 ac_res
="none required"
11547 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11549 if ac_fn_c_try_link
"$LINENO"; then :
11550 ac_cv_search_RegOpenKeyExA
=$ac_res
11552 rm -f core conftest.err conftest.
$ac_objext \
11554 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11558 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11561 ac_cv_search_RegOpenKeyExA
=no
11563 rm conftest.
$ac_ext
11564 LIBS
=$ac_func_search_save_LIBS
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11567 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11568 ac_res
=$ac_cv_search_RegOpenKeyExA
11569 if test "$ac_res" != no
; then :
11570 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11573 enable_win32_registry
=no
11578 if test "x$enable_win32_registry" != xno
; then
11580 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11583 if test "x$enable_win32_registry" != xyes \
11584 && test "x$enable_win32_registry" != x
; then
11586 cat >>confdefs.h
<<_ACEOF
11587 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11595 # Get an absolute path to the GCC top-level source directory
11596 holddir
=`${PWDCMD-pwd}`
11598 topdir
=`${PWDCMD-pwd}`
11601 # Conditionalize the makefile for this host machine.
11603 for f
in ${host_xmake_file}
11605 if test -f ${srcdir}/config
/$f
11607 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11611 # Conditionalize the makefile for this target machine.
11613 for f
in ${tmake_file}
11615 if test -f ${srcdir}/config
/$f
11617 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11620 tmake_file
="${tmake_file_}"
11622 out_object_file
=`basename $out_file .c`.o
11623 common_out_object_file
=`basename $common_out_file .c`.o
11625 tm_file_list
="options.h"
11626 tm_include_list
="options.h insn-constants.h"
11627 for f
in $tm_file; do
11630 f
=`echo $f | sed 's/^..//'`
11631 tm_file_list
="${tm_file_list} $f"
11632 tm_include_list
="${tm_include_list} $f"
11635 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11636 tm_include_list
="${tm_include_list} $f"
11639 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11640 tm_include_list
="${tm_include_list} config/$f"
11645 libgcc_tm_file_list
=
11646 libgcc_tm_include_list
=
11647 for f
in $libgcc_tm_file; do
11648 libgcc_tm_file_list
="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11649 libgcc_tm_include_list
="${libgcc_tm_include_list} ../libgcc/config/$f"
11654 for f
in $tm_p_file; do
11657 tm_p_file_list
="${tm_p_file_list} $f"
11658 tm_p_include_list
="${tm_p_include_list} $f"
11661 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11662 tm_p_include_list
="${tm_p_include_list} config/$f"
11668 for f
in $xm_file; do
11671 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11672 xm_include_list
="${xm_include_list} $f"
11675 xm_file_list
="${xm_file_list} $f"
11676 xm_include_list
="${xm_include_list} $f"
11679 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11680 xm_include_list
="${xm_include_list} config/$f"
11686 host_xm_include_list
=
11687 for f
in $host_xm_file; do
11690 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11691 host_xm_include_list
="${host_xm_include_list} $f"
11694 host_xm_file_list
="${host_xm_file_list} $f"
11695 host_xm_include_list
="${host_xm_include_list} $f"
11698 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11699 host_xm_include_list
="${host_xm_include_list} config/$f"
11704 build_xm_file_list
=
11705 for f
in $build_xm_file; do
11708 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11709 build_xm_include_list
="${build_xm_include_list} $f"
11711 auto-build.h | auto-host.h
)
11712 build_xm_file_list
="${build_xm_file_list} $f"
11713 build_xm_include_list
="${build_xm_include_list} $f"
11716 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11717 build_xm_include_list
="${build_xm_include_list} config/$f"
11722 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11723 # cross-compiler which does not use the native headers and libraries.
11724 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11727 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11729 if test "x$with_build_sysroot" != x
; then
11730 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11732 # This value is used, even on a native system, because
11733 # CROSS_SYSTEM_HEADER_DIR is just
11734 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11735 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11738 if test x
$host != x
$target
11740 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11742 SYSTEM_HEADER_DIR
=$build_system_header_dir
11743 case "$host","$target" in
11744 # Darwin crosses can use the host system's libraries and headers,
11745 # because of the fat library support. Of course, it must be the
11746 # same version of Darwin on both sides. Allow the user to
11747 # just say --target=foo-darwin without a version number to mean
11748 # "the version on this system".
11749 *-*-darwin*,*-*-darwin*)
11750 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11751 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11752 if test $hostos = $targetos -o $targetos = darwin
; then
11754 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11759 i?
86-*-*,x86_64-
*-* \
11760 | powerpc
*-*-*,powerpc64
*-*-*)
11761 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11766 if test "x$with_headers" = x
; then
11773 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11774 SYSTEM_HEADER_DIR
=$build_system_header_dir
11777 # If this is a cross-compiler that does not
11778 # have its own set of headers then define
11781 # If this is using newlib, without having the headers available now,
11782 # then define inhibit_libc in LIBGCC2_CFLAGS.
11783 # This prevents libgcc2 from containing any code which requires libc
11785 : ${inhibit_libc=false}
11786 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11787 test x
$with_newlib = xyes
; } &&
11788 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
11793 # When building gcc with a cross-compiler, we need to adjust things so
11794 # that the generator programs are still built with the native compiler.
11795 # Also, we cannot run fixincludes.
11797 # These are the normal (build=host) settings:
11798 CC_FOR_BUILD
='$(CC)'
11799 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11800 BUILD_LDFLAGS
='$(LDFLAGS)'
11801 STMP_FIXINC
=stmp-fixinc
11803 # And these apply if build != host, or we are generating coverage data
11804 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11806 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11807 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11810 # Expand extra_headers to include complete path.
11811 # This substitutes for lots of t-* files.
11812 extra_headers_list
=
11813 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11814 for file in ${extra_headers} ; do
11815 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11818 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11819 if test x
"$use_gcc_tgmath" = xyes
11820 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11823 # Define collect2 in Makefile.
11824 case $host_can_use_collect2 in
11826 *) collect2
='collect2$(exeext)' ;;
11830 # Add a definition of USE_COLLECT2 if system wants one.
11831 case $use_collect2 in
11832 no
) use_collect2
= ;;
11835 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11836 xm_defines
="${xm_defines} USE_COLLECT2"
11837 case $host_can_use_collect2 in
11839 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11846 cat >>confdefs.h
<<_ACEOF
11847 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11851 # ---------------------------
11852 # Assembler & linker features
11853 # ---------------------------
11855 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11856 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11857 # However when ld-new is first executed from the build tree, libtool will
11858 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11859 # to the build tree. While doing this we need to use the previous-stage
11860 # linker, or we have an infinite loop. The presence of a shell script as
11861 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11862 # the gcc/collect-ld script. So we need to know how libtool works, or
11863 # exec-tool will fail.
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11869 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11874 macro_version
='2.2.7a'
11875 macro_revision
='1.3134'
11889 ltmain
="$ac_aux_dir/ltmain.sh"
11891 # Backslashify metacharacters that are still active within
11892 # double-quoted strings.
11893 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11895 # Same as above, but do not quote variable references.
11896 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11898 # Sed substitution to delay expansion of an escaped shell variable in a
11899 # double_quote_subst'ed string.
11900 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11902 # Sed substitution to delay expansion of an escaped single quote.
11903 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11905 # Sed substitution to avoid accidental globbing in evaled expressions
11906 no_glob_subst
='s/\*/\\\*/g'
11908 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11909 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11910 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11913 $as_echo_n "checking how to print strings... " >&6; }
11914 # Test print first, because it will be a builtin if present.
11915 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11916 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11918 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11921 # Use this function as a fallback that always works.
11922 func_fallback_echo ()
11924 eval 'cat <<_LTECHO_EOF
11928 ECHO='func_fallback_echo
'
11931 # func_echo_all arg...
11932 # Invoke $ECHO with all args, space-separated.
11939 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11940 $as_echo "printf" >&6; } ;;
11941 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11942 $as_echo "print -r" >&6; } ;;
11943 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11944 $as_echo "cat" >&6; } ;;
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11961 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11962 if test "${ac_cv_path_SED+set}" = set; then :
11963 $as_echo_n "(cached) " >&6
11965 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11966 for ac_i in 1 2 3 4 5 6 7; do
11967 ac_script="$ac_script$as_nl$ac_script"
11969 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11970 { ac_script=; unset ac_script;}
11971 if test -z "$SED"; then
11972 ac_path_SED_found=false
11973 # Loop through the user's path and
test for each of PROGNAME-LIST
11974 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11975 for as_dir
in $PATH
11978 test -z "$as_dir" && as_dir
=.
11979 for ac_prog
in sed gsed
; do
11980 for ac_exec_ext
in '' $ac_executable_extensions; do
11981 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11982 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11983 # Check for GNU ac_path_SED and select it if it is found.
11984 # Check for GNU $ac_path_SED
11985 case `"$ac_path_SED" --version 2>&1` in
11987 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11990 $as_echo_n 0123456789 >"conftest.in"
11993 cat "conftest.in" "conftest.in" >"conftest.tmp"
11994 mv "conftest.tmp" "conftest.in"
11995 cp "conftest.in" "conftest.nl"
11996 $as_echo '' >> "conftest.nl"
11997 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11998 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11999 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12000 if test $ac_count -gt ${ac_path_SED_max-0}; then
12001 # Best one so far, save it but keep looking for a better one
12002 ac_cv_path_SED
="$ac_path_SED"
12003 ac_path_SED_max
=$ac_count
12005 # 10*(2^10) chars as input seems more than enough
12006 test $ac_count -gt 10 && break
12008 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12011 $ac_path_SED_found && break 3
12016 if test -z "$ac_cv_path_SED"; then
12017 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12020 ac_cv_path_SED
=$SED
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12025 $as_echo "$ac_cv_path_SED" >&6; }
12026 SED
="$ac_cv_path_SED"
12029 test -z "$SED" && SED
=sed
12030 Xsed
="$SED -e 1s/^X//"
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12043 $as_echo_n "checking for fgrep... " >&6; }
12044 if test "${ac_cv_path_FGREP+set}" = set; then :
12045 $as_echo_n "(cached) " >&6
12047 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12048 then ac_cv_path_FGREP
="$GREP -F"
12050 if test -z "$FGREP"; then
12051 ac_path_FGREP_found
=false
12052 # Loop through the user's path and test for each of PROGNAME-LIST
12053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12054 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12057 test -z "$as_dir" && as_dir
=.
12058 for ac_prog
in fgrep
; do
12059 for ac_exec_ext
in '' $ac_executable_extensions; do
12060 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12061 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12062 # Check for GNU ac_path_FGREP and select it if it is found.
12063 # Check for GNU $ac_path_FGREP
12064 case `"$ac_path_FGREP" --version 2>&1` in
12066 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12069 $as_echo_n 0123456789 >"conftest.in"
12072 cat "conftest.in" "conftest.in" >"conftest.tmp"
12073 mv "conftest.tmp" "conftest.in"
12074 cp "conftest.in" "conftest.nl"
12075 $as_echo 'FGREP' >> "conftest.nl"
12076 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12077 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12078 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12079 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12080 # Best one so far, save it but keep looking for a better one
12081 ac_cv_path_FGREP
="$ac_path_FGREP"
12082 ac_path_FGREP_max
=$ac_count
12084 # 10*(2^10) chars as input seems more than enough
12085 test $ac_count -gt 10 && break
12087 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12090 $ac_path_FGREP_found && break 3
12095 if test -z "$ac_cv_path_FGREP"; then
12096 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12099 ac_cv_path_FGREP
=$FGREP
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12105 $as_echo "$ac_cv_path_FGREP" >&6; }
12106 FGREP
="$ac_cv_path_FGREP"
12109 test -z "$GREP" && GREP
=grep
12129 # Check whether --with-gnu-ld was given.
12130 if test "${with_gnu_ld+set}" = set; then :
12131 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12137 if test "$GCC" = yes; then
12138 # Check if gcc -print-prog-name=ld gives a path.
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12140 $as_echo_n "checking for ld used by $CC... " >&6; }
12143 # gcc leaves a trailing carriage return which upsets mingw
12144 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12146 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12149 # Accept absolute paths.
12151 re_direlt
='/[^/][^/]*/\.\./'
12152 # Canonicalize the pathname of ld
12153 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12154 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12155 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12157 test -z "$LD" && LD
="$ac_prog"
12160 # If it fails, then pretend we aren't using GCC.
12164 # If it is relative, then search for the first ld in PATH.
12165 with_gnu_ld
=unknown
12168 elif test "$with_gnu_ld" = yes; then
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12170 $as_echo_n "checking for GNU ld... " >&6; }
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12173 $as_echo_n "checking for non-GNU ld... " >&6; }
12175 if test "${lt_cv_path_LD+set}" = set; then :
12176 $as_echo_n "(cached) " >&6
12178 if test -z "$LD"; then
12179 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12180 for ac_dir
in $PATH; do
12182 test -z "$ac_dir" && ac_dir
=.
12183 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12184 lt_cv_path_LD
="$ac_dir/$ac_prog"
12185 # Check to see if the program is GNU ld. I'd rather use --version,
12186 # but apparently some variants of GNU ld only accept -v.
12187 # Break only if it was the GNU/non-GNU ld that we prefer.
12188 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12189 *GNU
* |
*'with BFD'*)
12190 test "$with_gnu_ld" != no
&& break
12193 test "$with_gnu_ld" != yes && break
12200 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12204 LD
="$lt_cv_path_LD"
12205 if test -n "$LD"; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12207 $as_echo "$LD" >&6; }
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210 $as_echo "no" >&6; }
12212 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12214 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12215 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12216 $as_echo_n "(cached) " >&6
12218 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12219 case `$LD -v 2>&1 </dev/null` in
12220 *GNU
* |
*'with BFD'*)
12221 lt_cv_prog_gnu_ld
=yes
12224 lt_cv_prog_gnu_ld
=no
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12229 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12230 with_gnu_ld
=$lt_cv_prog_gnu_ld
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12241 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12242 if test "${lt_cv_path_NM+set}" = set; then :
12243 $as_echo_n "(cached) " >&6
12245 if test -n "$NM"; then
12246 # Let the user override the test.
12247 lt_cv_path_NM
="$NM"
12249 lt_nm_to_check
="${ac_tool_prefix}nm"
12250 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12251 lt_nm_to_check
="$lt_nm_to_check nm"
12253 for lt_tmp_nm
in $lt_nm_to_check; do
12254 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12255 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12257 test -z "$ac_dir" && ac_dir
=.
12258 tmp_nm
="$ac_dir/$lt_tmp_nm"
12259 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12260 # Check to see if the nm accepts a BSD-compat flag.
12261 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12262 # nm: unknown option "B" ignored
12263 # Tru64's nm complains that /dev/null is an invalid object file
12264 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12265 */dev
/null
* |
*'Invalid file or object type'*)
12266 lt_cv_path_NM
="$tmp_nm -B"
12270 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12272 lt_cv_path_NM
="$tmp_nm -p"
12276 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12277 continue # so that we can try to find one that supports BSD flags
12286 : ${lt_cv_path_NM=no}
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12290 $as_echo "$lt_cv_path_NM" >&6; }
12291 if test "$lt_cv_path_NM" != "no"; then
12292 NM
="$lt_cv_path_NM"
12294 # Didn't find any BSD compatible name lister, look for dumpbin.
12295 if test -n "$DUMPBIN"; then :
12296 # Let the user override the test.
12298 if test -n "$ac_tool_prefix"; then
12299 for ac_prog
in dumpbin
"link -dump"
12301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12302 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12304 $as_echo_n "checking for $ac_word... " >&6; }
12305 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12306 $as_echo_n "(cached) " >&6
12308 if test -n "$DUMPBIN"; then
12309 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12312 for as_dir
in $PATH
12315 test -z "$as_dir" && as_dir
=.
12316 for ac_exec_ext
in '' $ac_executable_extensions; do
12317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12318 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12328 DUMPBIN
=$ac_cv_prog_DUMPBIN
12329 if test -n "$DUMPBIN"; then
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12331 $as_echo "$DUMPBIN" >&6; }
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334 $as_echo "no" >&6; }
12338 test -n "$DUMPBIN" && break
12341 if test -z "$DUMPBIN"; then
12342 ac_ct_DUMPBIN
=$DUMPBIN
12343 for ac_prog
in dumpbin
"link -dump"
12345 # Extract the first word of "$ac_prog", so it can be a program name with args.
12346 set dummy
$ac_prog; ac_word
=$2
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12348 $as_echo_n "checking for $ac_word... " >&6; }
12349 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12350 $as_echo_n "(cached) " >&6
12352 if test -n "$ac_ct_DUMPBIN"; then
12353 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12356 for as_dir
in $PATH
12359 test -z "$as_dir" && as_dir
=.
12360 for ac_exec_ext
in '' $ac_executable_extensions; do
12361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12362 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12372 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12373 if test -n "$ac_ct_DUMPBIN"; then
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12375 $as_echo "$ac_ct_DUMPBIN" >&6; }
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12382 test -n "$ac_ct_DUMPBIN" && break
12385 if test "x$ac_ct_DUMPBIN" = x
; then
12388 case $cross_compiling:$ac_tool_warned in
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12392 ac_tool_warned
=yes ;;
12394 DUMPBIN
=$ac_ct_DUMPBIN
12398 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12400 DUMPBIN
="$DUMPBIN -symbols"
12408 if test "$DUMPBIN" != ":"; then
12412 test -z "$NM" && NM
=nm
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12420 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12421 if test "${lt_cv_nm_interface+set}" = set; then :
12422 $as_echo_n "(cached) " >&6
12424 lt_cv_nm_interface
="BSD nm"
12425 echo "int some_variable = 0;" > conftest.
$ac_ext
12426 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12427 (eval "$ac_compile" 2>conftest.err
)
12428 cat conftest.err
>&5
12429 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12430 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12431 cat conftest.err
>&5
12432 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12433 cat conftest.out
>&5
12434 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12435 lt_cv_nm_interface
="MS dumpbin"
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12440 $as_echo "$lt_cv_nm_interface" >&6; }
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12443 $as_echo_n "checking whether ln -s works... " >&6; }
12445 if test "$LN_S" = "ln -s"; then
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12447 $as_echo "yes" >&6; }
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12450 $as_echo "no, using $LN_S" >&6; }
12453 # find the maximum length of command line arguments
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12455 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12456 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12457 $as_echo_n "(cached) " >&6
12464 # On DJGPP, this test can blow up pretty badly due to problems in libc
12465 # (any single argument exceeding 2000 bytes causes a buffer overrun
12466 # during glob expansion). Even if it were fixed, the result of this
12467 # check would be larger than it should be.
12468 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12472 # Under GNU Hurd, this test is not required because there is
12473 # no limit to the length of command line arguments.
12474 # Libtool will interpret -1 as no limit whatsoever
12475 lt_cv_sys_max_cmd_len
=-1;
12478 cygwin
* | mingw
* | cegcc
*)
12479 # On Win9x/ME, this test blows up -- it succeeds, but takes
12480 # about 5 minutes as the teststring grows exponentially.
12481 # Worse, since 9x/ME are not pre-emptively multitasking,
12482 # you end up with a "frozen" computer, even though with patience
12483 # the test eventually succeeds (with a max line length of 256k).
12484 # Instead, let's just punt: use the minimum linelength reported by
12485 # all of the supported platforms: 8192 (on NT/2K/XP).
12486 lt_cv_sys_max_cmd_len
=8192;
12490 # On MiNT this can take a long time and run out of memory.
12491 lt_cv_sys_max_cmd_len
=8192;
12495 # On AmigaOS with pdksh, this test takes hours, literally.
12496 # So we just punt and use a minimum line length of 8192.
12497 lt_cv_sys_max_cmd_len
=8192;
12500 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12501 # This has been around since 386BSD, at least. Likely further.
12502 if test -x /sbin
/sysctl
; then
12503 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12504 elif test -x /usr
/sbin
/sysctl
; then
12505 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12507 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12509 # And add a safety zone
12510 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12511 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12515 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12516 lt_cv_sys_max_cmd_len
=196608
12520 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12521 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12522 # nice to cause kernel panics so lets avoid the loop below.
12523 # First set a reasonable default.
12524 lt_cv_sys_max_cmd_len
=16384
12526 if test -x /sbin
/sysconfig
; then
12527 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12528 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12533 lt_cv_sys_max_cmd_len
=102400
12535 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12536 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12537 if test -n "$kargmax"; then
12538 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12540 lt_cv_sys_max_cmd_len
=32768
12544 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12545 if test -n "$lt_cv_sys_max_cmd_len"; then
12546 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12547 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12549 # Make teststring a little bigger before we do anything with it.
12550 # a 1K string should be a reasonable start.
12551 for i
in 1 2 3 4 5 6 7 8 ; do
12552 teststring
=$teststring$teststring
12554 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12555 # If test is not a shell built-in, we'll probably end up computing a
12556 # maximum length that is only half of the actual maximum length, but
12558 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12559 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12560 test $i != 17 # 1/2 MB should be enough
12563 teststring
=$teststring$teststring
12565 # Only check the string length outside the loop.
12566 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12568 # Add a significant safety factor because C++ compilers can tack on
12569 # massive amounts of additional arguments before passing them to the
12570 # linker. It appears as though 1/2 is a usable value.
12571 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12578 if test -n $lt_cv_sys_max_cmd_len ; then
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12580 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12583 $as_echo "none" >&6; }
12585 max_cmd_len
=$lt_cv_sys_max_cmd_len
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12597 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12598 # Try some XSI features
12600 ( _lt_dummy
="a/b/c"
12601 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12603 && eval 'test $(( 1 + 1 )) -eq 2 \
12604 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12607 $as_echo "$xsi_shell" >&6; }
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12611 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12613 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12615 && lt_shell_append=yes
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12617 $as_echo "$lt_shell_append" >&6; }
12620 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12630 # test EBCDIC or ASCII
12631 case `echo X|tr X '\101'` in
12632 A) # ASCII based system
12633 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12634 lt_SP2NL='tr \040 \012'
12635 lt_NL2SP='tr \015\012 \040\040'
12637 *) # EBCDIC based system
12638 lt_SP2NL='tr \100 \n'
12639 lt_NL2SP='tr \r\n \100\100'
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12652 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12653 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12654 $as_echo_n "(cached
) " >&6
12656 lt_cv_ld_reload_flag='-r'
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12659 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12660 reload_flag=$lt_cv_ld_reload_flag
12661 case $reload_flag in
12663 *) reload_flag=" $reload_flag" ;;
12665 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12668 if test "$GCC" = yes; then
12669 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12671 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12684 if test -n "$ac_tool_prefix"; then
12685 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12686 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12688 $as_echo_n "checking
for $ac_word...
" >&6; }
12689 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12690 $as_echo_n "(cached
) " >&6
12692 if test -n "$OBJDUMP"; then
12693 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12696 for as_dir in $PATH
12699 test -z "$as_dir" && as_dir=.
12700 for ac_exec_ext in '' $ac_executable_extensions; do
12701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12702 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12703 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12712 OBJDUMP=$ac_cv_prog_OBJDUMP
12713 if test -n "$OBJDUMP"; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12715 $as_echo "$OBJDUMP" >&6; }
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12718 $as_echo "no
" >&6; }
12723 if test -z "$ac_cv_prog_OBJDUMP"; then
12724 ac_ct_OBJDUMP=$OBJDUMP
12725 # Extract the first word of "objdump
", so it can be a program name with args.
12726 set dummy objdump; ac_word=$2
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12728 $as_echo_n "checking
for $ac_word...
" >&6; }
12729 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12730 $as_echo_n "(cached
) " >&6
12732 if test -n "$ac_ct_OBJDUMP"; then
12733 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736 for as_dir in $PATH
12739 test -z "$as_dir" && as_dir=.
12740 for ac_exec_ext in '' $ac_executable_extensions; do
12741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12742 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12743 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12752 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12753 if test -n "$ac_ct_OBJDUMP"; then
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12755 $as_echo "$ac_ct_OBJDUMP" >&6; }
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12758 $as_echo "no
" >&6; }
12761 if test "x
$ac_ct_OBJDUMP" = x; then
12764 case $cross_compiling:$ac_tool_warned in
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12767 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12768 ac_tool_warned=yes ;;
12770 OBJDUMP=$ac_ct_OBJDUMP
12773 OBJDUMP="$ac_cv_prog_OBJDUMP"
12776 test -z "$OBJDUMP" && OBJDUMP=objdump
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12787 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12788 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12789 $as_echo_n "(cached
) " >&6
12791 lt_cv_file_magic_cmd='$MAGIC_CMD'
12792 lt_cv_file_magic_test_file=
12793 lt_cv_deplibs_check_method='unknown'
12794 # Need to set the preceding variable on all platforms that support
12795 # interlibrary dependencies.
12796 # 'none' -- dependencies not supported.
12797 # `unknown' -- same as none, but documents that we really don't know.
12798 # 'pass_all' -- all dependencies passed with no checks.
12799 # 'test_compile' -- check by making test program.
12800 # 'file_magic [[regex]]' -- check by looking for files in library path
12801 # which responds to the $file_magic_cmd with a given extended regex.
12802 # If you have `file' or equivalent on your system and you're not sure
12803 # whether `pass_all' will *always* work, you probably want this one.
12807 lt_cv_deplibs_check_method=pass_all
12811 lt_cv_deplibs_check_method=pass_all
12815 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12816 lt_cv_file_magic_cmd='/usr/bin/file -L'
12817 lt_cv_file_magic_test_file=/shlib/libc.so
12821 # func_win32_libid is a shell function defined in ltmain.sh
12822 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12823 lt_cv_file_magic_cmd='func_win32_libid'
12827 # Base MSYS/MinGW do not provide the 'file' command needed by
12828 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12829 # unless we find 'file', for example because we are cross-compiling.
12830 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12831 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12832 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12833 lt_cv_file_magic_cmd='func_win32_libid'
12835 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12836 lt_cv_file_magic_cmd='$OBJDUMP -f'
12841 # use the weaker test based on 'objdump'. See mingw*.
12842 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12843 lt_cv_file_magic_cmd='$OBJDUMP -f'
12846 darwin* | rhapsody*)
12847 lt_cv_deplibs_check_method=pass_all
12850 freebsd* | dragonfly*)
12851 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12854 # Not sure whether the presence of OpenBSD here was a mistake.
12855 # Let's accept both of them until this is cleared up.
12856 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12857 lt_cv_file_magic_cmd=/usr/bin/file
12858 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12862 lt_cv_deplibs_check_method=pass_all
12867 lt_cv_deplibs_check_method=pass_all
12871 lt_cv_deplibs_check_method=pass_all
12874 hpux10.20* | hpux11*)
12875 lt_cv_file_magic_cmd=/usr/bin/file
12878 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12879 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12882 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]'
12883 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12886 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12887 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12893 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12897 irix5* | irix6* | nonstopux*)
12899 *-32|*"-32 ") libmagic=32-bit;;
12900 *-n32|*"-n32 ") libmagic=N32;;
12901 *-64|*"-64 ") libmagic=64-bit;;
12902 *) libmagic=never-match;;
12904 lt_cv_deplibs_check_method=pass_all
12907 # This must be Linux ELF.
12908 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12909 lt_cv_deplibs_check_method=pass_all
12913 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12914 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12916 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12921 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12922 lt_cv_file_magic_cmd=/usr/bin/file
12923 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12927 lt_cv_deplibs_check_method=pass_all
12931 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12932 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12934 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12938 osf3* | osf4* | osf5*)
12939 lt_cv_deplibs_check_method=pass_all
12943 lt_cv_deplibs_check_method=pass_all
12947 lt_cv_deplibs_check_method=pass_all
12950 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12951 lt_cv_deplibs_check_method=pass_all
12955 case $host_vendor in
12957 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]'
12958 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12961 lt_cv_deplibs_check_method=pass_all
12964 lt_cv_file_magic_cmd='/bin/file'
12965 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12968 lt_cv_file_magic_cmd='/bin/file'
12969 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12970 lt_cv_file_magic_test_file=/lib/libc.so
12973 lt_cv_deplibs_check_method=pass_all
12976 lt_cv_deplibs_check_method=pass_all
12982 lt_cv_deplibs_check_method=pass_all
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12988 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12989 file_magic_cmd=$lt_cv_file_magic_cmd
12990 deplibs_check_method=$lt_cv_deplibs_check_method
12991 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13004 if test -n "$ac_tool_prefix"; then
13005 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13006 set dummy ${ac_tool_prefix}ar; ac_word=$2
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13008 $as_echo_n "checking
for $ac_word...
" >&6; }
13009 if test "${ac_cv_prog_AR+set}" = set; then :
13010 $as_echo_n "(cached
) " >&6
13012 if test -n "$AR"; then
13013 ac_cv_prog_AR="$AR" # Let the user override the test.
13015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016 for as_dir in $PATH
13019 test -z "$as_dir" && as_dir=.
13020 for ac_exec_ext in '' $ac_executable_extensions; do
13021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13022 ac_cv_prog_AR="${ac_tool_prefix}ar"
13023 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13033 if test -n "$AR"; then
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13035 $as_echo "$AR" >&6; }
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13038 $as_echo "no
" >&6; }
13043 if test -z "$ac_cv_prog_AR"; then
13045 # Extract the first word of "ar", so it can be a program name with args.
13046 set dummy ar; ac_word=$2
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13048 $as_echo_n "checking
for $ac_word...
" >&6; }
13049 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13050 $as_echo_n "(cached
) " >&6
13052 if test -n "$ac_ct_AR"; then
13053 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13056 for as_dir in $PATH
13059 test -z "$as_dir" && as_dir=.
13060 for ac_exec_ext in '' $ac_executable_extensions; do
13061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13062 ac_cv_prog_ac_ct_AR="ar"
13063 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13072 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13073 if test -n "$ac_ct_AR"; then
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13075 $as_echo "$ac_ct_AR" >&6; }
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13078 $as_echo "no
" >&6; }
13081 if test "x
$ac_ct_AR" = x; then
13084 case $cross_compiling:$ac_tool_warned in
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13087 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13088 ac_tool_warned=yes ;;
13093 AR="$ac_cv_prog_AR"
13096 test -z "$AR" && AR=ar
13097 test -z "$AR_FLAGS" && AR_FLAGS=cru
13109 if test -n "$ac_tool_prefix"; then
13110 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13111 set dummy ${ac_tool_prefix}strip; ac_word=$2
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13113 $as_echo_n "checking
for $ac_word...
" >&6; }
13114 if test "${ac_cv_prog_STRIP+set}" = set; then :
13115 $as_echo_n "(cached
) " >&6
13117 if test -n "$STRIP"; then
13118 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13121 for as_dir in $PATH
13124 test -z "$as_dir" && as_dir=.
13125 for ac_exec_ext in '' $ac_executable_extensions; do
13126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13127 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13128 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13137 STRIP=$ac_cv_prog_STRIP
13138 if test -n "$STRIP"; then
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13140 $as_echo "$STRIP" >&6; }
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13143 $as_echo "no
" >&6; }
13148 if test -z "$ac_cv_prog_STRIP"; then
13150 # Extract the first word of "strip
", so it can be a program name with args.
13151 set dummy strip; ac_word=$2
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13153 $as_echo_n "checking
for $ac_word...
" >&6; }
13154 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13155 $as_echo_n "(cached
) " >&6
13157 if test -n "$ac_ct_STRIP"; then
13158 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13161 for as_dir in $PATH
13164 test -z "$as_dir" && as_dir=.
13165 for ac_exec_ext in '' $ac_executable_extensions; do
13166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13167 ac_cv_prog_ac_ct_STRIP="strip
"
13168 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13177 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13178 if test -n "$ac_ct_STRIP"; then
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13180 $as_echo "$ac_ct_STRIP" >&6; }
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13183 $as_echo "no
" >&6; }
13186 if test "x
$ac_ct_STRIP" = x; then
13189 case $cross_compiling:$ac_tool_warned in
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13192 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13193 ac_tool_warned=yes ;;
13198 STRIP="$ac_cv_prog_STRIP"
13201 test -z "$STRIP" && STRIP=:
13208 if test -n "$ac_tool_prefix"; then
13209 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13210 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13212 $as_echo_n "checking
for $ac_word...
" >&6; }
13213 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13214 $as_echo_n "(cached
) " >&6
13216 if test -n "$RANLIB"; then
13217 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220 for as_dir in $PATH
13223 test -z "$as_dir" && as_dir=.
13224 for ac_exec_ext in '' $ac_executable_extensions; do
13225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13226 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13227 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13236 RANLIB=$ac_cv_prog_RANLIB
13237 if test -n "$RANLIB"; then
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13239 $as_echo "$RANLIB" >&6; }
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13242 $as_echo "no
" >&6; }
13247 if test -z "$ac_cv_prog_RANLIB"; then
13248 ac_ct_RANLIB=$RANLIB
13249 # Extract the first word of "ranlib
", so it can be a program name with args.
13250 set dummy ranlib; ac_word=$2
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13252 $as_echo_n "checking
for $ac_word...
" >&6; }
13253 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13254 $as_echo_n "(cached
) " >&6
13256 if test -n "$ac_ct_RANLIB"; then
13257 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13260 for as_dir in $PATH
13263 test -z "$as_dir" && as_dir=.
13264 for ac_exec_ext in '' $ac_executable_extensions; do
13265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13266 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13267 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13276 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13277 if test -n "$ac_ct_RANLIB"; then
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13279 $as_echo "$ac_ct_RANLIB" >&6; }
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13282 $as_echo "no
" >&6; }
13285 if test "x
$ac_ct_RANLIB" = x; then
13288 case $cross_compiling:$ac_tool_warned in
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13291 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13292 ac_tool_warned=yes ;;
13294 RANLIB=$ac_ct_RANLIB
13297 RANLIB="$ac_cv_prog_RANLIB"
13300 test -z "$RANLIB" && RANLIB=:
13307 # Determine commands to create old-style static archives.
13308 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13309 old_postinstall_cmds='chmod 644 $oldlib'
13310 old_postuninstall_cmds=
13312 if test -n "$RANLIB"; then
13315 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13318 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13321 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13326 lock_old_archive_extraction=yes ;;
13328 lock_old_archive_extraction=no ;;
13369 # If no C compiler was specified, use CC.
13372 # If no C compiler flags were specified, use CFLAGS.
13373 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13375 # Allow CC to be a program name with arguments.
13379 # Check for command to grab the raw symbol name followed by C symbol from nm.
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13381 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13382 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13383 $as_echo_n "(cached
) " >&6
13386 # These are sane defaults that work on at least a few old systems.
13387 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13389 # Character class describing NM global symbol codes.
13390 symcode='[BCDEGRST]'
13392 # Regexp to match symbols that can be accessed directly from C.
13393 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13395 # Define system-specific variables.
13400 cygwin* | mingw* | pw32* | cegcc*)
13401 symcode='[ABCDGISTW]'
13404 if test "$host_cpu" = ia64; then
13405 symcode='[ABCDEGRST]'
13408 irix* | nonstopux*)
13409 symcode='[BCDEGRST]'
13412 symcode='[BCDEGQRST]'
13423 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13431 # If we're using GNU nm, then use its standard symbol codes.
13432 case `$NM -V 2>&1` in
13433 *GNU* | *'with BFD'*)
13434 symcode='[ABCDGIRSTW]' ;;
13437 # Transform an extracted symbol line into a proper C declaration.
13438 # Some systems (esp. on ia64) link data and code symbols differently,
13439 # so use this general approach.
13440 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13442 # Transform an extracted symbol line into symbol name and symbol address
13443 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13444 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'"
13446 # Handle CRLF in mingw tool chain
13450 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13454 # Try without a prefix underscore, then with it.
13455 for ac_symprfx in "" "_
"; do
13457 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13458 symxfrm="\\1 $ac_symprfx\\2 \\2"
13460 # Write the raw and C identifiers.
13461 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13462 # Fake it for dumpbin and say T for any non-static function
13463 # and D for any global variable.
13464 # Also find C++ and __fastcall symbols from MSVC++,
13465 # which start with @ or ?.
13466 lt_cv_sys_global_symbol_pipe="$AWK '"\
13467 " {last_section=section; section=\$ 3};"\
13468 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13469 " \$ 0!~/External *\|/{next};"\
13470 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13471 " {if(hide[section]) next};"\
13472 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13473 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13474 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13475 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13476 " ' prfx
=^
$ac_symprfx"
13478 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13481 # Check to see that the pipe works correctly.
13485 cat > conftest.$ac_ext <<_LT_EOF
13490 void nm_test_func(void);
13491 void nm_test_func(void){}
13495 int main(){nm_test_var='a';nm_test_func();return(0);}
13498 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13499 (eval $ac_compile) 2>&5
13501 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13502 test $ac_status = 0; }; then
13503 # Now try to grab the symbols.
13505 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13506 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13508 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13509 test $ac_status = 0; } && test -s "$nlist"; then
13510 # Try sorting and uniquifying the output.
13511 if sort "$nlist" | uniq > "$nlist"T; then
13512 mv -f "$nlist"T "$nlist"
13517 # Make sure that we snagged all the symbols we need.
13518 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13519 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13520 cat <<_LT_EOF > conftest.$ac_ext
13526 # Now generate the symbol file.
13527 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13529 cat <<_LT_EOF >> conftest.$ac_ext
13531 /* The mapping between symbol names and symbols. */
13536 lt__PROGRAM__LTX_preloaded_symbols[] =
13538 { "@PROGRAM@
", (void *) 0 },
13540 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13541 cat <<\_LT_EOF >> conftest.$ac_ext
13545 /* This works around a problem in FreeBSD linker */
13546 #ifdef FREEBSD_WORKAROUND
13547 static const void *lt_preloaded_setup() {
13548 return lt__PROGRAM__LTX_preloaded_symbols;
13556 # Now try linking the two files.
13557 mv conftest.$ac_objext conftstm.$ac_objext
13558 lt_save_LIBS="$LIBS"
13559 lt_save_CFLAGS="$CFLAGS"
13560 LIBS="conftstm.
$ac_objext"
13561 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13562 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13563 (eval $ac_link) 2>&5
13565 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13566 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13569 LIBS="$lt_save_LIBS"
13570 CFLAGS="$lt_save_CFLAGS"
13572 echo "cannot
find nm_test_func
in $nlist" >&5
13575 echo "cannot
find nm_test_var
in $nlist" >&5
13578 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13581 echo "$progname: failed program was
:" >&5
13582 cat conftest.$ac_ext >&5
13584 rm -rf conftest* conftst*
13586 # Do not use the global_symbol_pipe unless it works.
13587 if test "$pipe_works" = yes; then
13590 lt_cv_sys_global_symbol_pipe=
13596 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13597 lt_cv_sys_global_symbol_to_cdecl=
13599 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13601 $as_echo "failed
" >&6; }
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13604 $as_echo "ok
" >&6; }
13628 # Check whether --enable-libtool-lock was given.
13629 if test "${enable_libtool_lock+set}" = set; then :
13630 enableval=$enable_libtool_lock;
13633 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13635 # Some flags need to be propagated to the compiler or linker for good
13639 # Find out which ABI we are using.
13640 echo 'int i;' > conftest.$ac_ext
13641 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13642 (eval $ac_compile) 2>&5
13644 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13645 test $ac_status = 0; }; then
13646 case `/usr/bin/file conftest.$ac_objext` in
13648 HPUX_IA64_MODE="32"
13651 HPUX_IA64_MODE="64"
13658 # Find out which ABI we are using.
13659 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13660 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13661 (eval $ac_compile) 2>&5
13663 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13664 test $ac_status = 0; }; then
13665 if test "$lt_cv_prog_gnu_ld" = yes; then
13666 case `/usr/bin/file conftest.$ac_objext` in
13668 LD="${LD-ld} -melf32bsmip"
13671 LD="${LD-ld} -melf32bmipn32"
13674 LD="${LD-ld} -melf64bmip"
13678 case `/usr/bin/file conftest.$ac_objext` in
13694 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13695 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13696 # Find out which ABI we are using.
13697 echo 'int i;' > conftest.$ac_ext
13698 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13699 (eval $ac_compile) 2>&5
13701 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13702 test $ac_status = 0; }; then
13703 case `/usr/bin/file conftest.o` in
13706 x86_64-*kfreebsd*-gnu)
13707 LD="${LD-ld} -m elf_i386_fbsd
"
13710 LD="${LD-ld} -m elf_i386
"
13712 ppc64-*linux*|powerpc64-*linux*)
13713 LD="${LD-ld} -m elf32ppclinux
"
13716 LD="${LD-ld} -m elf_s390
"
13719 LD="${LD-ld} -m elf32_sparc
"
13725 x86_64-*kfreebsd*-gnu)
13726 LD="${LD-ld} -m elf_x86_64_fbsd
"
13729 LD="${LD-ld} -m elf_x86_64
"
13731 ppc*-*linux*|powerpc*-*linux*)
13732 LD="${LD-ld} -m elf64ppc
"
13734 s390*-*linux*|s390*-*tpf*)
13735 LD="${LD-ld} -m elf64_s390
"
13738 LD="${LD-ld} -m elf64_sparc
"
13748 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13749 SAVE_CFLAGS="$CFLAGS"
13750 CFLAGS="$CFLAGS -belf"
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13752 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13753 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13754 $as_echo_n "(cached
) " >&6
13757 ac_cpp='$CPP $CPPFLAGS'
13758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h. */
13773 if ac_fn_c_try_link "$LINENO"; then :
13774 lt_cv_cc_needs_belf=yes
13776 lt_cv_cc_needs_belf=no
13778 rm -f core conftest.err conftest.$ac_objext \
13779 conftest$ac_exeext conftest.$ac_ext
13781 ac_cpp='$CPP $CPPFLAGS'
13782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13788 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13789 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13790 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13791 CFLAGS="$SAVE_CFLAGS"
13795 # Find out which ABI we are using.
13796 echo 'int i;' > conftest.$ac_ext
13797 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13798 (eval $ac_compile) 2>&5
13800 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13801 test $ac_status = 0; }; then
13802 case `/usr/bin/file conftest.o` in
13804 case $lt_cv_prog_gnu_ld in
13805 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13807 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13819 need_locks="$enable_libtool_lock"
13823 rhapsody* | darwin*)
13824 if test -n "$ac_tool_prefix"; then
13825 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13826 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13828 $as_echo_n "checking
for $ac_word...
" >&6; }
13829 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13830 $as_echo_n "(cached
) " >&6
13832 if test -n "$DSYMUTIL"; then
13833 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13836 for as_dir in $PATH
13839 test -z "$as_dir" && as_dir=.
13840 for ac_exec_ext in '' $ac_executable_extensions; do
13841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13842 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13843 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13852 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13853 if test -n "$DSYMUTIL"; then
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13855 $as_echo "$DSYMUTIL" >&6; }
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13858 $as_echo "no
" >&6; }
13863 if test -z "$ac_cv_prog_DSYMUTIL"; then
13864 ac_ct_DSYMUTIL=$DSYMUTIL
13865 # Extract the first word of "dsymutil
", so it can be a program name with args.
13866 set dummy dsymutil; ac_word=$2
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13868 $as_echo_n "checking
for $ac_word...
" >&6; }
13869 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13870 $as_echo_n "(cached
) " >&6
13872 if test -n "$ac_ct_DSYMUTIL"; then
13873 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13876 for as_dir in $PATH
13879 test -z "$as_dir" && as_dir=.
13880 for ac_exec_ext in '' $ac_executable_extensions; do
13881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13882 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13883 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13892 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13893 if test -n "$ac_ct_DSYMUTIL"; then
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13895 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13898 $as_echo "no
" >&6; }
13901 if test "x
$ac_ct_DSYMUTIL" = x; then
13904 case $cross_compiling:$ac_tool_warned in
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13907 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13908 ac_tool_warned=yes ;;
13910 DSYMUTIL=$ac_ct_DSYMUTIL
13913 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13916 if test -n "$ac_tool_prefix"; then
13917 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13918 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13920 $as_echo_n "checking
for $ac_word...
" >&6; }
13921 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13922 $as_echo_n "(cached
) " >&6
13924 if test -n "$NMEDIT"; then
13925 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928 for as_dir in $PATH
13931 test -z "$as_dir" && as_dir=.
13932 for ac_exec_ext in '' $ac_executable_extensions; do
13933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13934 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13935 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13944 NMEDIT=$ac_cv_prog_NMEDIT
13945 if test -n "$NMEDIT"; then
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13947 $as_echo "$NMEDIT" >&6; }
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13950 $as_echo "no
" >&6; }
13955 if test -z "$ac_cv_prog_NMEDIT"; then
13956 ac_ct_NMEDIT=$NMEDIT
13957 # Extract the first word of "nmedit
", so it can be a program name with args.
13958 set dummy nmedit; ac_word=$2
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13960 $as_echo_n "checking
for $ac_word...
" >&6; }
13961 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13962 $as_echo_n "(cached
) " >&6
13964 if test -n "$ac_ct_NMEDIT"; then
13965 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13968 for as_dir in $PATH
13971 test -z "$as_dir" && as_dir=.
13972 for ac_exec_ext in '' $ac_executable_extensions; do
13973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13974 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13975 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13984 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13985 if test -n "$ac_ct_NMEDIT"; then
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13987 $as_echo "$ac_ct_NMEDIT" >&6; }
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13990 $as_echo "no
" >&6; }
13993 if test "x
$ac_ct_NMEDIT" = x; then
13996 case $cross_compiling:$ac_tool_warned in
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13999 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14000 ac_tool_warned=yes ;;
14002 NMEDIT=$ac_ct_NMEDIT
14005 NMEDIT="$ac_cv_prog_NMEDIT"
14008 if test -n "$ac_tool_prefix"; then
14009 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14010 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14012 $as_echo_n "checking
for $ac_word...
" >&6; }
14013 if test "${ac_cv_prog_LIPO+set}" = set; then :
14014 $as_echo_n "(cached
) " >&6
14016 if test -n "$LIPO"; then
14017 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14020 for as_dir in $PATH
14023 test -z "$as_dir" && as_dir=.
14024 for ac_exec_ext in '' $ac_executable_extensions; do
14025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14026 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14027 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14036 LIPO=$ac_cv_prog_LIPO
14037 if test -n "$LIPO"; then
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14039 $as_echo "$LIPO" >&6; }
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14042 $as_echo "no
" >&6; }
14047 if test -z "$ac_cv_prog_LIPO"; then
14049 # Extract the first word of "lipo
", so it can be a program name with args.
14050 set dummy lipo; ac_word=$2
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14052 $as_echo_n "checking
for $ac_word...
" >&6; }
14053 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14054 $as_echo_n "(cached
) " >&6
14056 if test -n "$ac_ct_LIPO"; then
14057 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14060 for as_dir in $PATH
14063 test -z "$as_dir" && as_dir=.
14064 for ac_exec_ext in '' $ac_executable_extensions; do
14065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14066 ac_cv_prog_ac_ct_LIPO="lipo
"
14067 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14076 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14077 if test -n "$ac_ct_LIPO"; then
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14079 $as_echo "$ac_ct_LIPO" >&6; }
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14082 $as_echo "no
" >&6; }
14085 if test "x
$ac_ct_LIPO" = x; then
14088 case $cross_compiling:$ac_tool_warned in
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14091 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14092 ac_tool_warned=yes ;;
14097 LIPO="$ac_cv_prog_LIPO"
14100 if test -n "$ac_tool_prefix"; then
14101 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14102 set dummy ${ac_tool_prefix}otool; ac_word=$2
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14104 $as_echo_n "checking
for $ac_word...
" >&6; }
14105 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14106 $as_echo_n "(cached
) " >&6
14108 if test -n "$OTOOL"; then
14109 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14112 for as_dir in $PATH
14115 test -z "$as_dir" && as_dir=.
14116 for ac_exec_ext in '' $ac_executable_extensions; do
14117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14118 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14119 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14128 OTOOL=$ac_cv_prog_OTOOL
14129 if test -n "$OTOOL"; then
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14131 $as_echo "$OTOOL" >&6; }
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14134 $as_echo "no
" >&6; }
14139 if test -z "$ac_cv_prog_OTOOL"; then
14141 # Extract the first word of "otool
", so it can be a program name with args.
14142 set dummy otool; ac_word=$2
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14144 $as_echo_n "checking
for $ac_word...
" >&6; }
14145 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14146 $as_echo_n "(cached
) " >&6
14148 if test -n "$ac_ct_OTOOL"; then
14149 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14152 for as_dir in $PATH
14155 test -z "$as_dir" && as_dir=.
14156 for ac_exec_ext in '' $ac_executable_extensions; do
14157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14158 ac_cv_prog_ac_ct_OTOOL="otool
"
14159 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14168 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14169 if test -n "$ac_ct_OTOOL"; then
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14171 $as_echo "$ac_ct_OTOOL" >&6; }
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14174 $as_echo "no
" >&6; }
14177 if test "x
$ac_ct_OTOOL" = x; then
14180 case $cross_compiling:$ac_tool_warned in
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14183 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14184 ac_tool_warned=yes ;;
14189 OTOOL="$ac_cv_prog_OTOOL"
14192 if test -n "$ac_tool_prefix"; then
14193 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14194 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14196 $as_echo_n "checking
for $ac_word...
" >&6; }
14197 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14198 $as_echo_n "(cached
) " >&6
14200 if test -n "$OTOOL64"; then
14201 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14204 for as_dir in $PATH
14207 test -z "$as_dir" && as_dir=.
14208 for ac_exec_ext in '' $ac_executable_extensions; do
14209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14210 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14211 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14220 OTOOL64=$ac_cv_prog_OTOOL64
14221 if test -n "$OTOOL64"; then
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14223 $as_echo "$OTOOL64" >&6; }
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14226 $as_echo "no
" >&6; }
14231 if test -z "$ac_cv_prog_OTOOL64"; then
14232 ac_ct_OTOOL64=$OTOOL64
14233 # Extract the first word of "otool64
", so it can be a program name with args.
14234 set dummy otool64; ac_word=$2
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14236 $as_echo_n "checking
for $ac_word...
" >&6; }
14237 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14238 $as_echo_n "(cached
) " >&6
14240 if test -n "$ac_ct_OTOOL64"; then
14241 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14244 for as_dir in $PATH
14247 test -z "$as_dir" && as_dir=.
14248 for ac_exec_ext in '' $ac_executable_extensions; do
14249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14250 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14251 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14260 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14261 if test -n "$ac_ct_OTOOL64"; then
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14263 $as_echo "$ac_ct_OTOOL64" >&6; }
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14266 $as_echo "no
" >&6; }
14269 if test "x
$ac_ct_OTOOL64" = x; then
14272 case $cross_compiling:$ac_tool_warned in
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14275 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14276 ac_tool_warned=yes ;;
14278 OTOOL64=$ac_ct_OTOOL64
14281 OTOOL64="$ac_cv_prog_OTOOL64"
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14311 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14312 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14313 $as_echo_n "(cached
) " >&6
14315 lt_cv_apple_cc_single_mod=no
14316 if test -z "${LT_MULTI_MODULE}"; then
14317 # By default we will add the -single_module flag. You can override
14318 # by either setting the environment variable LT_MULTI_MODULE
14319 # non-empty at configure time, or by adding -multi_module to the
14321 rm -rf libconftest.dylib*
14322 echo "int foo
(void
){return 1;}" > conftest.c
14323 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14324 -dynamiclib -Wl,-single_module conftest.c
" >&5
14325 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14326 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14328 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14329 lt_cv_apple_cc_single_mod=yes
14331 cat conftest.err >&5
14333 rm -rf libconftest.dylib*
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14338 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14340 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14341 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14342 $as_echo_n "(cached
) " >&6
14344 lt_cv_ld_exported_symbols_list=no
14345 save_LDFLAGS=$LDFLAGS
14346 echo "_main
" > conftest.sym
14347 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h. */
14359 if ac_fn_c_try_link "$LINENO"; then :
14360 lt_cv_ld_exported_symbols_list=yes
14362 lt_cv_ld_exported_symbols_list=no
14364 rm -f core conftest.err conftest.$ac_objext \
14365 conftest$ac_exeext conftest.$ac_ext
14366 LDFLAGS="$save_LDFLAGS"
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14370 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14372 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14373 if test "${lt_cv_ld_force_load+set}" = set; then :
14374 $as_echo_n "(cached
) " >&6
14376 lt_cv_ld_force_load=no
14377 cat > conftest.c << _LT_EOF
14378 int forced_loaded() { return 2;}
14380 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14381 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14382 echo "$AR cru libconftest.a conftest.o
" >&5
14383 $AR cru libconftest.a conftest.o 2>&5
14384 cat > conftest.c << _LT_EOF
14385 int main() { return 0;}
14387 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14388 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14390 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14391 lt_cv_ld_force_load=yes
14393 cat conftest.err >&5
14395 rm -f conftest.err libconftest.a conftest conftest.c
14396 rm -rf conftest.dSYM
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14400 $as_echo "$lt_cv_ld_force_load" >&6; }
14402 rhapsody* | darwin1.[012])
14403 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14405 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14406 darwin*) # darwin 5.x on
14407 # if running on 10.5 or later, the deployment target defaults
14408 # to the OS version, if on x86, and 10.4, the deployment
14409 # target defaults to 10.4. Don't you love it?
14410 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14411 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14412 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14414 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14416 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14420 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14421 _lt_dar_single_mod='$single_module'
14423 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14424 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14426 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14428 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14429 _lt_dsymutil='~$DSYMUTIL $lib || :'
14436 for ac_header in dlfcn.h
14438 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14439 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14440 cat >>confdefs.h <<_ACEOF
14441 #define HAVE_DLFCN_H 1
14458 enable_win32_dll=no
14461 # Check whether --enable-shared was given.
14462 if test "${enable_shared+set}" = set; then :
14463 enableval=$enable_shared; p=${PACKAGE-default}
14465 yes) enable_shared=yes ;;
14466 no) enable_shared=no ;;
14469 # Look at the argument we got. We use all the common list separators.
14470 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14471 for pkg in $enableval; do
14473 if test "X
$pkg" = "X
$p"; then
14492 # Check whether --enable-static was given.
14493 if test "${enable_static+set}" = set; then :
14494 enableval=$enable_static; p=${PACKAGE-default}
14496 yes) enable_static=yes ;;
14497 no) enable_static=no ;;
14500 # Look at the argument we got. We use all the common list separators.
14501 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14502 for pkg in $enableval; do
14504 if test "X
$pkg" = "X
$p"; then
14524 # Check whether --with-pic was given.
14525 if test "${with_pic+set}" = set; then :
14526 withval=$with_pic; pic_mode="$withval"
14532 test -z "$pic_mode" && pic_mode=default
14540 # Check whether --enable-fast-install was given.
14541 if test "${enable_fast_install+set}" = set; then :
14542 enableval=$enable_fast_install; p=${PACKAGE-default}
14544 yes) enable_fast_install=yes ;;
14545 no) enable_fast_install=no ;;
14547 enable_fast_install=no
14548 # Look at the argument we got. We use all the common list separators.
14549 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14550 for pkg in $enableval; do
14552 if test "X
$pkg" = "X
$p"; then
14553 enable_fast_install=yes
14560 enable_fast_install=yes
14573 # This can be used to rebuild libtool when needed
14574 LIBTOOL_DEPS="$ltmain"
14576 # Always use our own libtool.
14577 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14604 test -z "$LN_S" && LN_S="ln -s"
14619 if test -n "${ZSH_VERSION+set}" ; then
14620 setopt NO_GLOB_SUBST
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14624 $as_echo_n "checking
for objdir...
" >&6; }
14625 if test "${lt_cv_objdir+set}" = set; then :
14626 $as_echo_n "(cached
) " >&6
14628 rm -f .libs 2>/dev/null
14629 mkdir .libs 2>/dev/null
14630 if test -d .libs; then
14633 # MS-DOS does not allow filenames that begin with a dot.
14636 rmdir .libs 2>/dev/null
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14639 $as_echo "$lt_cv_objdir" >&6; }
14640 objdir=$lt_cv_objdir
14646 cat >>confdefs.h <<_ACEOF
14647 #define LT_OBJDIR "$lt_cv_objdir/"
14655 # AIX sometimes has problems with the GCC collect2 program. For some
14656 # reason, if we set the COLLECT_NAMES environment variable, the problems
14657 # vanish in a puff of smoke.
14658 if test "X
${COLLECT_NAMES+set}" != Xset; then
14660 export COLLECT_NAMES
14665 # Global variables:
14667 can_build_shared=yes
14669 # All known linkers require a `.a' archive for static linking (except MSVC,
14670 # which needs '.lib').
14673 with_gnu_ld="$lt_cv_prog_gnu_ld"
14676 old_CFLAGS="$CFLAGS"
14678 # Set sane defaults for various variables
14679 test -z "$CC" && CC=cc
14680 test -z "$LTCC" && LTCC=$CC
14681 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14682 test -z "$LD" && LD=ld
14683 test -z "$ac_objext" && ac_objext=o
14685 for cc_temp in $compiler""; do
14687 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14688 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14693 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14696 # Only perform the check for file, if the check method requires it
14697 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14698 case $deplibs_check_method in
14700 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14702 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14703 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14704 $as_echo_n "(cached
) " >&6
14708 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14711 lt_save_MAGIC_CMD="$MAGIC_CMD"
14712 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14713 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14714 for ac_dir in $ac_dummy; do
14716 test -z "$ac_dir" && ac_dir=.
14717 if test -f $ac_dir/${ac_tool_prefix}file; then
14718 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14719 if test -n "$file_magic_test_file"; then
14720 case $deplibs_check_method in
14722 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14723 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14724 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14725 $EGREP "$file_magic_regex" > /dev/null; then
14730 *** Warning: the command libtool uses to detect shared libraries,
14731 *** $file_magic_cmd, produces output that libtool cannot recognize.
14732 *** The result is that libtool may fail to recognize shared libraries
14733 *** as such. This will affect the creation of libtool libraries that
14734 *** depend on shared libraries, but programs linked with such libtool
14735 *** libraries will work regardless of this problem. Nevertheless, you
14736 *** may want to report the problem to your system manager and/or to
14737 *** bug-libtool@gnu.org
14747 MAGIC_CMD="$lt_save_MAGIC_CMD"
14752 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14753 if test -n "$MAGIC_CMD"; then
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14755 $as_echo "$MAGIC_CMD" >&6; }
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14758 $as_echo "no
" >&6; }
14765 if test -z "$lt_cv_path_MAGIC_CMD"; then
14766 if test -n "$ac_tool_prefix"; then
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14768 $as_echo_n "checking
for file...
" >&6; }
14769 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14770 $as_echo_n "(cached
) " >&6
14774 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14777 lt_save_MAGIC_CMD="$MAGIC_CMD"
14778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14779 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14780 for ac_dir in $ac_dummy; do
14782 test -z "$ac_dir" && ac_dir=.
14783 if test -f $ac_dir/file; then
14784 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14785 if test -n "$file_magic_test_file"; then
14786 case $deplibs_check_method in
14788 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14789 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14790 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14791 $EGREP "$file_magic_regex" > /dev/null; then
14796 *** Warning: the command libtool uses to detect shared libraries,
14797 *** $file_magic_cmd, produces output that libtool cannot recognize.
14798 *** The result is that libtool may fail to recognize shared libraries
14799 *** as such. This will affect the creation of libtool libraries that
14800 *** depend on shared libraries, but programs linked with such libtool
14801 *** libraries will work regardless of this problem. Nevertheless, you
14802 *** may want to report the problem to your system manager and/or to
14803 *** bug-libtool@gnu.org
14813 MAGIC_CMD="$lt_save_MAGIC_CMD"
14818 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14819 if test -n "$MAGIC_CMD"; then
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14821 $as_echo "$MAGIC_CMD" >&6; }
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14824 $as_echo "no
" >&6; }
14837 # Use C for the default configuration in the libtool script
14841 ac_cpp='$CPP $CPPFLAGS'
14842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14847 # Source file extension for C test sources.
14850 # Object file extension for compiled C test sources.
14854 # Code to be used in simple compile tests
14855 lt_simple_compile_test_code="int some_variable
= 0;"
14857 # Code to be used in simple link tests
14858 lt_simple_link_test_code='int main(){return(0);}'
14866 # If no C compiler was specified, use CC.
14869 # If no C compiler flags were specified, use CFLAGS.
14870 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14872 # Allow CC to be a program name with arguments.
14875 # Save the default compiler, since it gets overwritten when the other
14876 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14877 compiler_DEFAULT=$CC
14879 # save warnings/boilerplate of simple test code
14880 ac_outfile=conftest.$ac_objext
14881 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14882 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14883 _lt_compiler_boilerplate=`cat conftest.err`
14886 ac_outfile=conftest.$ac_objext
14887 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14888 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14889 _lt_linker_boilerplate=`cat conftest.err`
14894 ## There is no encapsulation within the following macros, do not change
14895 ## the running order or otherwise move them around unless you know exactly
14896 ## what you are doing...
14897 if test -n "$compiler"; then
14899 lt_prog_compiler_no_builtin_flag=
14901 if test "$GCC" = yes; then
14902 case $cc_basename in
14904 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14906 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14910 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14911 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14912 $as_echo_n "(cached
) " >&6
14914 lt_cv_prog_compiler_rtti_exceptions=no
14915 ac_outfile=conftest.$ac_objext
14916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14917 lt_compiler_flag="-fno-rtti -fno-exceptions"
14918 # Insert the option either (1) after the last *FLAGS variable, or
14919 # (2) before a word containing "conftest.
", or (3) at the end.
14920 # Note that $ac_compile itself does not contain backslashes and begins
14921 # with a dollar sign (not a hyphen), so the echo should work correctly.
14922 # The option is referenced via a variable to avoid confusing sed.
14923 lt_compile=`echo "$ac_compile" | $SED \
14924 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14925 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14926 -e 's:$: $lt_compiler_flag:'`
14927 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14928 (eval "$lt_compile" 2>conftest.err)
14930 cat conftest.err >&5
14931 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14932 if (exit $ac_status) && test -s "$ac_outfile"; then
14933 # The compiler can only warn and ignore the option if not recognized
14934 # So say no if there are warnings other than the usual output.
14935 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14936 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14937 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14938 lt_cv_prog_compiler_rtti_exceptions=yes
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14945 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14947 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14948 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14960 lt_prog_compiler_wl=
14961 lt_prog_compiler_pic=
14962 lt_prog_compiler_static=
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14965 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14967 if test "$GCC" = yes; then
14968 lt_prog_compiler_wl='-Wl,'
14969 lt_prog_compiler_static='-static'
14973 # All AIX code is PIC.
14974 if test "$host_cpu" = ia64; then
14975 # AIX 5 now supports IA64 processor
14976 lt_prog_compiler_static='-Bstatic'
14983 # see comment about AmigaOS4 .so support
14984 lt_prog_compiler_pic='-fPIC'
14987 # FIXME: we need at least 68020 code to build shared libraries, but
14988 # adding the `-m68020' flag to GCC prevents building anything better,
14990 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14995 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14996 # PIC is the default for these OSes.
14999 mingw* | cygwin* | pw32* | os2* | cegcc*)
15000 # This hack is so that the source file can tell whether it is being
15001 # built for inclusion in a dll (and should export symbols for example).
15002 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15003 # (--disable-auto-import) libraries
15004 lt_prog_compiler_pic='-DDLL_EXPORT'
15007 darwin* | rhapsody*)
15008 # PIC is the default on this platform
15009 # Common symbols not allowed in MH_DYLIB files
15010 lt_prog_compiler_pic='-fno-common'
15014 # PIC is the default for Haiku.
15015 # The "-static" flag exists, but is broken.
15016 lt_prog_compiler_static=
15020 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15021 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15022 # sets the default TLS model and affects inlining.
15028 lt_prog_compiler_pic='-fPIC'
15034 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15035 # Instead, we relocate shared libraries at runtime.
15039 # Just because we use GCC doesn't mean we suddenly get shared libraries
15040 # on systems that don't support them.
15041 lt_prog_compiler_can_build_shared=no
15046 # QNX uses GNU C++, but need to define -shared option too, otherwise
15047 # it will coredump.
15048 lt_prog_compiler_pic='-fPIC -shared'
15052 if test -d /usr/nec; then
15053 lt_prog_compiler_pic=-Kconform_pic
15058 lt_prog_compiler_pic='-fPIC'
15062 case $cc_basename in
15063 nvcc*) # Cuda Compiler Driver 2.2
15064 lt_prog_compiler_wl='-Xlinker '
15065 lt_prog_compiler_pic='-Xcompiler -fPIC'
15069 # PORTME Check for flag to pass linker flags through the system compiler.
15072 lt_prog_compiler_wl='-Wl,'
15073 if test "$host_cpu" = ia64; then
15074 # AIX 5 now supports IA64 processor
15075 lt_prog_compiler_static='-Bstatic'
15077 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15081 mingw* | cygwin* | pw32* | os2* | cegcc*)
15082 # This hack is so that the source file can tell whether it is being
15083 # built for inclusion in a dll (and should export symbols for example).
15084 lt_prog_compiler_pic='-DDLL_EXPORT'
15087 hpux9* | hpux10* | hpux11*)
15088 lt_prog_compiler_wl='-Wl,'
15089 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15090 # not for PA HP-UX.
15096 lt_prog_compiler_pic='+Z'
15099 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15100 lt_prog_compiler_static='${wl}-a ${wl}archive'
15103 irix5* | irix6* | nonstopux*)
15104 lt_prog_compiler_wl='-Wl,'
15105 # PIC (with -KPIC) is the default.
15106 lt_prog_compiler_static='-non_shared'
15109 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15110 case $cc_basename in
15111 # old Intel for x86_64 which still supported -KPIC.
15113 lt_prog_compiler_wl='-Wl,'
15114 lt_prog_compiler_pic='-KPIC'
15115 lt_prog_compiler_static='-static'
15117 # icc used to be incompatible with GCC.
15118 # ICC 10 doesn't accept -KPIC any more.
15120 lt_prog_compiler_wl='-Wl,'
15121 lt_prog_compiler_pic='-fPIC'
15122 lt_prog_compiler_static='-static'
15124 # Lahey Fortran 8.1.
15126 lt_prog_compiler_wl='-Wl,'
15127 lt_prog_compiler_pic='--shared'
15128 lt_prog_compiler_static='--static'
15130 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15131 # Portland Group compilers (*not* the Pentium gcc compiler,
15132 # which looks to be a dead project)
15133 lt_prog_compiler_wl='-Wl,'
15134 lt_prog_compiler_pic='-fpic'
15135 lt_prog_compiler_static='-Bstatic'
15138 lt_prog_compiler_wl='-Wl,'
15139 # All Alpha code is PIC.
15140 lt_prog_compiler_static='-non_shared'
15142 xl* | bgxl* | bgf* | mpixl*)
15143 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15144 lt_prog_compiler_wl='-Wl,'
15145 lt_prog_compiler_pic='-qpic'
15146 lt_prog_compiler_static='-qstaticlink'
15149 case `$CC -V 2>&1 | sed 5q` in
15150 *Sun\ F* | *Sun*Fortran*)
15151 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15152 lt_prog_compiler_pic='-KPIC'
15153 lt_prog_compiler_static='-Bstatic'
15154 lt_prog_compiler_wl=''
15158 lt_prog_compiler_pic='-KPIC'
15159 lt_prog_compiler_static='-Bstatic'
15160 lt_prog_compiler_wl='-Wl,'
15168 lt_prog_compiler_pic='-KPIC'
15169 lt_prog_compiler_static='-Bstatic'
15173 # QNX uses GNU C++, but need to define -shared option too, otherwise
15174 # it will coredump.
15175 lt_prog_compiler_pic='-fPIC -shared'
15178 osf3* | osf4* | osf5*)
15179 lt_prog_compiler_wl='-Wl,'
15180 # All OSF/1 code is PIC.
15181 lt_prog_compiler_static='-non_shared'
15185 lt_prog_compiler_static='-non_shared'
15189 lt_prog_compiler_pic='-KPIC'
15190 lt_prog_compiler_static='-Bstatic'
15191 case $cc_basename in
15192 f77* | f90* | f95*)
15193 lt_prog_compiler_wl='-Qoption ld ';;
15195 lt_prog_compiler_wl='-Wl,';;
15200 lt_prog_compiler_wl='-Qoption ld '
15201 lt_prog_compiler_pic='-PIC'
15202 lt_prog_compiler_static='-Bstatic'
15205 sysv4 | sysv4.2uw2* | sysv4.3*)
15206 lt_prog_compiler_wl='-Wl,'
15207 lt_prog_compiler_pic='-KPIC'
15208 lt_prog_compiler_static='-Bstatic'
15212 if test -d /usr/nec ;then
15213 lt_prog_compiler_pic='-Kconform_pic'
15214 lt_prog_compiler_static='-Bstatic'
15218 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15219 lt_prog_compiler_wl='-Wl,'
15220 lt_prog_compiler_pic='-KPIC'
15221 lt_prog_compiler_static='-Bstatic'
15225 lt_prog_compiler_wl='-Wl,'
15226 lt_prog_compiler_can_build_shared=no
15230 lt_prog_compiler_pic='-pic'
15231 lt_prog_compiler_static='-Bstatic'
15235 lt_prog_compiler_can_build_shared=no
15241 # For platforms which do not support PIC, -DPIC is meaningless:
15243 lt_prog_compiler_pic=
15246 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15250 $as_echo "$lt_prog_compiler_pic" >&6; }
15258 # Check to make sure the PIC flag actually works.
15260 if test -n "$lt_prog_compiler_pic"; then
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15262 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15263 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15264 $as_echo_n "(cached
) " >&6
15266 lt_cv_prog_compiler_pic_works=no
15267 ac_outfile=conftest.$ac_objext
15268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15269 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15270 # Insert the option either (1) after the last *FLAGS variable, or
15271 # (2) before a word containing "conftest.
", or (3) at the end.
15272 # Note that $ac_compile itself does not contain backslashes and begins
15273 # with a dollar sign (not a hyphen), so the echo should work correctly.
15274 # The option is referenced via a variable to avoid confusing sed.
15275 lt_compile=`echo "$ac_compile" | $SED \
15276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15278 -e 's:$: $lt_compiler_flag:'`
15279 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15280 (eval "$lt_compile" 2>conftest.err)
15282 cat conftest.err >&5
15283 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15284 if (exit $ac_status) && test -s "$ac_outfile"; then
15285 # The compiler can only warn and ignore the option if not recognized
15286 # So say no if there are warnings other than the usual output.
15287 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15288 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15289 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15290 lt_cv_prog_compiler_pic_works=yes
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15297 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15299 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15300 case $lt_prog_compiler_pic in
15302 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15305 lt_prog_compiler_pic=
15306 lt_prog_compiler_can_build_shared=no
15317 # Check to make sure the static flag actually works.
15319 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15321 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15322 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15323 $as_echo_n "(cached
) " >&6
15325 lt_cv_prog_compiler_static_works=no
15326 save_LDFLAGS="$LDFLAGS"
15327 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15328 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15329 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15330 # The linker can only warn and ignore the option if not recognized
15331 # So say no if there are warnings
15332 if test -s conftest.err; then
15333 # Append any errors to the config.log.
15334 cat conftest.err 1>&5
15335 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15337 if diff conftest.exp conftest.er2 >/dev/null; then
15338 lt_cv_prog_compiler_static_works=yes
15341 lt_cv_prog_compiler_static_works=yes
15345 LDFLAGS="$save_LDFLAGS"
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15349 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15351 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15354 lt_prog_compiler_static=
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15364 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15365 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15366 $as_echo_n "(cached
) " >&6
15368 lt_cv_prog_compiler_c_o=no
15369 $RM -r conftest 2>/dev/null
15373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15375 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15376 # Insert the option either (1) after the last *FLAGS variable, or
15377 # (2) before a word containing "conftest.
", or (3) at the end.
15378 # Note that $ac_compile itself does not contain backslashes and begins
15379 # with a dollar sign (not a hyphen), so the echo should work correctly.
15380 lt_compile=`echo "$ac_compile" | $SED \
15381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15383 -e 's:$: $lt_compiler_flag:'`
15384 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15385 (eval "$lt_compile" 2>out/conftest.err)
15387 cat out/conftest.err >&5
15388 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15389 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15391 # The compiler can only warn and ignore the option if not recognized
15392 # So say no if there are warnings
15393 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15394 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15395 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15396 lt_cv_prog_compiler_c_o=yes
15401 # SGI C++ compiler will create directory out/ii_files/ for
15402 # template instantiation
15403 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15404 $RM out/* && rmdir out
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15411 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15419 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15420 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15421 $as_echo_n "(cached
) " >&6
15423 lt_cv_prog_compiler_c_o=no
15424 $RM -r conftest 2>/dev/null
15428 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15430 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15431 # Insert the option either (1) after the last *FLAGS variable, or
15432 # (2) before a word containing "conftest.
", or (3) at the end.
15433 # Note that $ac_compile itself does not contain backslashes and begins
15434 # with a dollar sign (not a hyphen), so the echo should work correctly.
15435 lt_compile=`echo "$ac_compile" | $SED \
15436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15438 -e 's:$: $lt_compiler_flag:'`
15439 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15440 (eval "$lt_compile" 2>out/conftest.err)
15442 cat out/conftest.err >&5
15443 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15444 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15446 # The compiler can only warn and ignore the option if not recognized
15447 # So say no if there are warnings
15448 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15449 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15450 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15451 lt_cv_prog_compiler_c_o=yes
15456 # SGI C++ compiler will create directory out/ii_files/ for
15457 # template instantiation
15458 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15459 $RM out/* && rmdir out
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15466 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15471 hard_links="nottested
"
15472 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15473 # do not overwrite the value of need_locks provided by the user
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15475 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15478 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15480 ln conftest.a conftest.b 2>&5 || hard_links=no
15481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15483 $as_echo "$hard_links" >&6; }
15484 if test "$hard_links" = no; then
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15486 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15499 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15502 allow_undefined_flag=
15503 always_export_symbols=no
15505 archive_expsym_cmds=
15506 compiler_needs_object=no
15507 enable_shared_with_static_runtimes=no
15508 export_dynamic_flag_spec=
15509 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15510 hardcode_automatic=no
15512 hardcode_direct_absolute=no
15513 hardcode_libdir_flag_spec=
15514 hardcode_libdir_flag_spec_ld=
15515 hardcode_libdir_separator=
15516 hardcode_minus_L=no
15517 hardcode_shlibpath_var=unsupported
15519 link_all_deplibs=unknown
15521 module_expsym_cmds=
15522 old_archive_from_new_cmds=
15523 old_archive_from_expsyms_cmds=
15524 thread_safe_flag_spec=
15525 whole_archive_flag_spec=
15526 # include_expsyms should be a list of space-separated symbols to be *always*
15527 # included in the symbol list
15529 # exclude_expsyms can be an extended regexp of symbols to exclude
15530 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15531 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15532 # as well as any symbol that contains `d'.
15533 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15534 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15535 # platforms (ab)use it in PIC code, but their linkers get confused if
15536 # the symbol is explicitly referenced. Since portable code cannot
15537 # rely on this symbol name, it's probably fine to never include it in
15538 # preloaded symbol tables.
15539 # Exclude shared library initialization/finalization symbols.
15540 extract_expsyms_cmds=
15543 cygwin* | mingw* | pw32* | cegcc*)
15544 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15545 # When not using gcc, we currently assume that we are using
15546 # Microsoft Visual C++.
15547 if test "$GCC" != yes; then
15552 # we just hope/assume this is gcc and not c89 (= MSVC++)
15562 # On some targets, GNU ld is compatible enough with the native linker
15563 # that we're better off using the native interface for both.
15564 lt_use_gnu_ld_interface=no
15565 if test "$with_gnu_ld" = yes; then
15568 # The AIX port of GNU ld has always aspired to compatibility
15569 # with the native linker. However, as the warning in the GNU ld
15570 # block says, versions before 2.19.5* couldn't really create working
15571 # shared libraries, regardless of the interface used.
15572 case `$LD -v 2>&1` in
15573 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15574 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15575 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15577 lt_use_gnu_ld_interface=yes
15582 lt_use_gnu_ld_interface=yes
15587 if test "$lt_use_gnu_ld_interface" = yes; then
15588 # If archive_cmds runs LD, not CC, wlarc should be empty
15591 # Set some defaults for GNU ld with shared library support. These
15592 # are reset later if shared libraries are not supported. Putting them
15593 # here allows them to be overridden if necessary.
15594 runpath_var=LD_RUN_PATH
15595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15596 export_dynamic_flag_spec='${wl}--export-dynamic'
15597 # ancient GNU ld didn't support --whole-archive et. al.
15598 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15599 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15601 whole_archive_flag_spec=
15603 supports_anon_versioning=no
15604 case `$LD -v 2>&1` in
15605 *GNU\ gold*) supports_anon_versioning=yes ;;
15606 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15607 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15608 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15609 *\ 2.11.*) ;; # other 2.11 versions
15610 *) supports_anon_versioning=yes ;;
15613 # See if GNU ld supports shared libraries.
15616 # On AIX/PPC, the GNU linker is very broken
15617 if test "$host_cpu" != ia64; then
15621 *** Warning: the GNU linker, at least up to release 2.19, is reported
15622 *** to be unable to reliably create shared libraries on AIX.
15623 *** Therefore, libtool is disabling shared libraries support. If you
15624 *** really care for shared libraries, you may want to install binutils
15625 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15626 *** You will then need to restart the configuration process.
15635 # see comment about AmigaOS4 .so support
15636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15637 archive_expsym_cmds=''
15640 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)'
15641 hardcode_libdir_flag_spec
='-L$libdir'
15642 hardcode_minus_L
=yes
15648 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15649 allow_undefined_flag
=unsupported
15650 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15651 # support --undefined. This deserves some investigation. FIXME
15652 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15658 cygwin
* | mingw
* | pw32
* | cegcc
*)
15659 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15660 # as there is no search path for DLLs.
15661 hardcode_libdir_flag_spec
='-L$libdir'
15662 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15663 allow_undefined_flag
=unsupported
15664 always_export_symbols
=no
15665 enable_shared_with_static_runtimes
=yes
15666 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15668 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15669 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15670 # If the export-symbols file already is a .def file (1st line
15671 # is EXPORTS), use it as is; otherwise, prepend...
15672 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15673 cp $export_symbols $output_objdir/$soname.def;
15675 echo EXPORTS > $output_objdir/$soname.def;
15676 cat $export_symbols >> $output_objdir/$soname.def;
15678 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15685 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15686 link_all_deplibs
=yes
15691 hardcode_shlibpath_var
=no
15692 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15693 export_dynamic_flag_spec
='${wl}-E'
15694 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15695 # Instead, shared libraries are loaded at an image base (0x10000000 by
15696 # default) and relocated if they conflict, which is a slow very memory
15697 # consuming and fragmenting process. To avoid this, we pick a random,
15698 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15699 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15700 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15701 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'
15704 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15706 if test "$host_os" = linux-dietlibc
; then
15707 case $cc_basename in
15708 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15711 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15712 && test "$tmp_diet" = no
15715 tmp_sharedflag
='-shared'
15716 case $cc_basename,$host_cpu in
15717 pgcc
*) # Portland Group C compiler
15718 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'
15719 tmp_addflag
=' $pic_flag'
15721 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15722 # Portland Group f77 and f90 compilers
15723 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'
15724 tmp_addflag
=' $pic_flag -Mnomain' ;;
15725 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15726 tmp_addflag
=' -i_dynamic' ;;
15727 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15728 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15729 ifc
* | ifort
*) # Intel Fortran compiler
15730 tmp_addflag
=' -nofor_main' ;;
15731 lf95
*) # Lahey Fortran 8.1
15732 whole_archive_flag_spec
=
15733 tmp_sharedflag
='--shared' ;;
15734 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15735 tmp_sharedflag
='-qmkshrobj'
15737 nvcc
*) # Cuda Compiler Driver 2.2
15738 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'
15739 compiler_needs_object
=yes
15742 case `$CC -V 2>&1 | sed 5q` in
15743 *Sun\ C
*) # Sun C 5.9
15744 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'
15745 compiler_needs_object
=yes
15746 tmp_sharedflag
='-G' ;;
15747 *Sun\ F
*) # Sun Fortran 8.3
15748 tmp_sharedflag
='-G' ;;
15750 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15752 if test "x$supports_anon_versioning" = xyes
; then
15753 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15754 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15755 echo "local: *; };" >> $output_objdir/$libname.ver~
15756 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15759 case $cc_basename in
15760 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15761 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15762 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15763 hardcode_libdir_flag_spec
=
15764 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15765 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15766 if test "x$supports_anon_versioning" = xyes
; then
15767 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15768 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15769 echo "local: *; };" >> $output_objdir/$libname.ver~
15770 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15780 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15781 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15784 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15785 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15790 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15794 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15795 *** create shared libraries on Solaris systems. Therefore, libtool
15796 *** is disabling shared libraries support. We urge you to upgrade GNU
15797 *** binutils to release 2.9.1 or newer. Another option is to modify
15798 *** your PATH or compiler configuration so that the native linker is
15799 *** used, and then restart.
15802 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15803 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15804 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15810 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15811 case `$LD -v 2>&1` in
15812 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15816 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15817 *** reliably create shared libraries on SCO systems. Therefore, libtool
15818 *** is disabling shared libraries support. We urge you to upgrade GNU
15819 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15820 *** your PATH or compiler configuration so that the native linker is
15821 *** used, and then restart.
15826 # For security reasons, it is highly recommended that you always
15827 # use absolute paths for naming shared libraries, and exclude the
15828 # DT_RUNPATH tag from executables and libraries. But doing so
15829 # requires that you compile everything twice, which is a pain.
15830 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15831 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15832 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15833 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15842 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15844 hardcode_direct
=yes
15845 hardcode_shlibpath_var
=no
15849 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15850 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15851 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15858 if test "$ld_shlibs" = no
; then
15860 hardcode_libdir_flag_spec
=
15861 export_dynamic_flag_spec
=
15862 whole_archive_flag_spec
=
15865 # PORTME fill in a description of your system's linker (not GNU ld)
15868 allow_undefined_flag
=unsupported
15869 always_export_symbols
=yes
15870 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'
15871 # Note: this linker hardcodes the directories in LIBPATH if there
15872 # are no directories specified by -L.
15873 hardcode_minus_L
=yes
15874 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15875 # Neither direct hardcoding nor static linking is supported with a
15877 hardcode_direct
=unsupported
15882 if test "$host_cpu" = ia64
; then
15883 # On IA64, the linker does run time linking by default, so we don't
15884 # have to do anything special.
15885 aix_use_runtimelinking
=no
15886 exp_sym_flag
='-Bexport'
15889 # If we're using GNU nm, then we don't want the "-C" option.
15890 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15891 # Also, AIX nm treats weak defined symbols like other global
15892 # defined symbols, whereas GNU nm marks them as "W".
15893 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15894 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'
15896 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'
15898 aix_use_runtimelinking
=no
15900 # Test if we are trying to use run time linking or normal
15901 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15902 # need to do runtime linking.
15903 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15904 for ld_flag
in $LDFLAGS; do
15905 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15906 aix_use_runtimelinking
=yes
15913 exp_sym_flag
='-bexport'
15914 no_entry_flag
='-bnoentry'
15917 # When large executables or shared objects are built, AIX ld can
15918 # have problems creating the table of contents. If linking a library
15919 # or program results in "error TOC overflow" add -mminimal-toc to
15920 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15921 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15924 hardcode_direct
=yes
15925 hardcode_direct_absolute
=yes
15926 hardcode_libdir_separator
=':'
15927 link_all_deplibs
=yes
15928 file_list_spec
='${wl}-f,'
15930 if test "$GCC" = yes; then
15931 case $host_os in aix4.
[012]|aix4.
[012].
*)
15932 # We only want to do this on AIX 4.2 and lower, the check
15933 # below for broken collect2 doesn't work under 4.3+
15934 collect2name
=`${CC} -print-prog-name=collect2`
15935 if test -f "$collect2name" &&
15936 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15938 # We have reworked collect2
15941 # We have old collect2
15942 hardcode_direct
=unsupported
15943 # It fails to find uninstalled libraries when the uninstalled
15944 # path is not listed in the libpath. Setting hardcode_minus_L
15945 # to unsupported forces relinking
15946 hardcode_minus_L
=yes
15947 hardcode_libdir_flag_spec
='-L$libdir'
15948 hardcode_libdir_separator
=
15952 shared_flag
='-shared'
15953 if test "$aix_use_runtimelinking" = yes; then
15954 shared_flag
="$shared_flag "'${wl}-G'
15958 if test "$host_cpu" = ia64
; then
15959 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15960 # chokes on -Wl,-G. The following line is correct:
15963 if test "$aix_use_runtimelinking" = yes; then
15964 shared_flag
='${wl}-G'
15966 shared_flag
='${wl}-bM:SRE'
15971 export_dynamic_flag_spec
='${wl}-bexpall'
15972 # It seems that -bexpall does not export symbols beginning with
15973 # underscore (_), so it is better to generate a list of symbols to export.
15974 always_export_symbols
=yes
15975 if test "$aix_use_runtimelinking" = yes; then
15976 # Warning - without using the other runtime loading flags (-brtl),
15977 # -berok will link without error, but may produce a broken library.
15978 allow_undefined_flag
='-berok'
15979 # Determine the default libpath from the value encoded in an
15980 # empty executable.
15981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15982 /* end confdefs.h. */
15992 if ac_fn_c_try_link
"$LINENO"; then :
15994 lt_aix_libpath_sed
='
15995 /Import File Strings/,/^$/ {
16001 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16002 # Check for a 64-bit object if we didn't find anything.
16003 if test -z "$aix_libpath"; then
16004 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16007 rm -f core conftest.err conftest.
$ac_objext \
16008 conftest
$ac_exeext conftest.
$ac_ext
16009 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16011 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16012 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"
16014 if test "$host_cpu" = ia64
; then
16015 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16016 allow_undefined_flag
="-z nodefs"
16017 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"
16019 # Determine the default libpath from the value encoded in an
16020 # empty executable.
16021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16022 /* end confdefs.h. */
16032 if ac_fn_c_try_link
"$LINENO"; then :
16034 lt_aix_libpath_sed
='
16035 /Import File Strings/,/^$/ {
16041 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16042 # Check for a 64-bit object if we didn't find anything.
16043 if test -z "$aix_libpath"; then
16044 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16047 rm -f core conftest.err conftest.
$ac_objext \
16048 conftest
$ac_exeext conftest.
$ac_ext
16049 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16051 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16052 # Warning - without using the other run time loading flags,
16053 # -berok will link without error, but may produce a broken library.
16054 no_undefined_flag
=' ${wl}-bernotok'
16055 allow_undefined_flag
=' ${wl}-berok'
16056 if test "$with_gnu_ld" = yes; then
16057 # We only use this code for GNU lds that support --whole-archive.
16058 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16060 # Exported symbols can be pulled into shared objects from archives
16061 whole_archive_flag_spec
='$convenience'
16063 archive_cmds_need_lc
=yes
16064 # This is similar to how AIX traditionally builds its shared libraries.
16065 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'
16073 # see comment about AmigaOS4 .so support
16074 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16075 archive_expsym_cmds
=''
16078 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)'
16079 hardcode_libdir_flag_spec
='-L$libdir'
16080 hardcode_minus_L
=yes
16086 export_dynamic_flag_spec
=-rdynamic
16089 cygwin
* | mingw
* | pw32
* | cegcc
*)
16090 # When not using gcc, we currently assume that we are using
16091 # Microsoft Visual C++.
16092 # hardcode_libdir_flag_spec is actually meaningless, as there is
16093 # no search path for DLLs.
16094 hardcode_libdir_flag_spec
=' '
16095 allow_undefined_flag
=unsupported
16096 # Tell ltmain to make .lib files, not .a files.
16098 # Tell ltmain to make .dll files, not .so files.
16100 # FIXME: Setting linknames here is a bad hack.
16101 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16102 # The linker will automatically build a .lib file if we build a DLL.
16103 old_archive_from_new_cmds
='true'
16104 # FIXME: Should let the user specify the lib program.
16105 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16106 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16107 enable_shared_with_static_runtimes
=yes
16110 darwin
* | rhapsody
*)
16113 archive_cmds_need_lc
=no
16115 hardcode_automatic
=yes
16116 hardcode_shlibpath_var
=unsupported
16117 if test "$lt_cv_ld_force_load" = "yes"; then
16118 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\"`'
16120 whole_archive_flag_spec
=''
16122 link_all_deplibs
=yes
16123 allow_undefined_flag
="$_lt_dar_allow_undefined"
16124 case $cc_basename in
16125 ifort
*) _lt_dar_can_shared
=yes ;;
16126 *) _lt_dar_can_shared
=$GCC ;;
16128 if test "$_lt_dar_can_shared" = "yes"; then
16129 output_verbose_link_cmd
=func_echo_all
16130 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16131 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16132 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}"
16133 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}"
16142 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16143 hardcode_libdir_flag_spec
='-L$libdir'
16144 hardcode_shlibpath_var
=no
16147 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16148 # support. Future versions do this automatically, but an explicit c++rt0.o
16149 # does not break anything, and helps significantly (at the cost of a little
16152 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16153 hardcode_libdir_flag_spec
='-R$libdir'
16154 hardcode_direct
=yes
16155 hardcode_shlibpath_var
=no
16158 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16160 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16161 hardcode_direct
=yes
16162 hardcode_minus_L
=yes
16163 hardcode_shlibpath_var
=no
16166 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16167 freebsd
* | dragonfly
*)
16168 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16169 hardcode_libdir_flag_spec
='-R$libdir'
16170 hardcode_direct
=yes
16171 hardcode_shlibpath_var
=no
16175 if test "$GCC" = yes; then
16176 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'
16178 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'
16180 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16181 hardcode_libdir_separator
=:
16182 hardcode_direct
=yes
16184 # hardcode_minus_L: Not really in the search PATH,
16185 # but as the default location of the library.
16186 hardcode_minus_L
=yes
16187 export_dynamic_flag_spec
='${wl}-E'
16191 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16192 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16194 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16196 if test "$with_gnu_ld" = no
; then
16197 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16198 hardcode_libdir_flag_spec_ld
='+b $libdir'
16199 hardcode_libdir_separator
=:
16200 hardcode_direct
=yes
16201 hardcode_direct_absolute
=yes
16202 export_dynamic_flag_spec
='${wl}-E'
16203 # hardcode_minus_L: Not really in the search PATH,
16204 # but as the default location of the library.
16205 hardcode_minus_L
=yes
16210 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16213 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16216 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16219 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16225 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16228 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16232 # Older versions of the 11.00 compiler do not understand -b yet
16233 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16235 $as_echo_n "checking if $CC understands -b... " >&6; }
16236 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16237 $as_echo_n "(cached) " >&6
16239 lt_cv_prog_compiler__b
=no
16240 save_LDFLAGS
="$LDFLAGS"
16241 LDFLAGS
="$LDFLAGS -b"
16242 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16243 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16244 # The linker can only warn and ignore the option if not recognized
16245 # So say no if there are warnings
16246 if test -s conftest.err
; then
16247 # Append any errors to the config.log.
16248 cat conftest.err
1>&5
16249 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16250 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16251 if diff conftest.exp conftest.er2
>/dev
/null
; then
16252 lt_cv_prog_compiler__b
=yes
16255 lt_cv_prog_compiler__b
=yes
16259 LDFLAGS
="$save_LDFLAGS"
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16263 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16265 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16266 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16268 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16274 if test "$with_gnu_ld" = no
; then
16275 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16276 hardcode_libdir_separator
=:
16281 hardcode_shlibpath_var
=no
16284 hardcode_direct
=yes
16285 hardcode_direct_absolute
=yes
16286 export_dynamic_flag_spec
='${wl}-E'
16288 # hardcode_minus_L: Not really in the search PATH,
16289 # but as the default location of the library.
16290 hardcode_minus_L
=yes
16296 irix5
* | irix6
* | nonstopux
*)
16297 if test "$GCC" = yes; then
16298 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'
16299 # Try to use the -exported_symbol ld option, if it does not
16300 # work, assume that -exports_file does not work either and
16301 # implicitly export all symbols.
16302 save_LDFLAGS
="$LDFLAGS"
16303 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16305 /* end confdefs.h. */
16308 if ac_fn_c_try_link
"$LINENO"; then :
16309 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'
16312 rm -f core conftest.err conftest.
$ac_objext \
16313 conftest
$ac_exeext conftest.
$ac_ext
16314 LDFLAGS
="$save_LDFLAGS"
16316 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'
16317 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'
16319 archive_cmds_need_lc
='no'
16320 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16321 hardcode_libdir_separator
=:
16323 link_all_deplibs
=yes
16327 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16328 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16330 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16332 hardcode_libdir_flag_spec
='-R$libdir'
16333 hardcode_direct
=yes
16334 hardcode_shlibpath_var
=no
16338 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16339 hardcode_direct
=yes
16340 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16341 hardcode_libdir_separator
=:
16342 hardcode_shlibpath_var
=no
16349 if test -f /usr
/libexec
/ld.so
; then
16350 hardcode_direct
=yes
16351 hardcode_shlibpath_var
=no
16352 hardcode_direct_absolute
=yes
16353 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16354 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16355 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16356 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16357 export_dynamic_flag_spec
='${wl}-E'
16360 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16361 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16362 hardcode_libdir_flag_spec
='-R$libdir'
16365 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16366 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16376 hardcode_libdir_flag_spec
='-L$libdir'
16377 hardcode_minus_L
=yes
16378 allow_undefined_flag
=unsupported
16379 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'
16380 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16384 if test "$GCC" = yes; then
16385 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16386 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'
16388 allow_undefined_flag
=' -expect_unresolved \*'
16389 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'
16391 archive_cmds_need_lc
='no'
16392 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16393 hardcode_libdir_separator
=:
16396 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16397 if test "$GCC" = yes; then
16398 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16399 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'
16400 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16402 allow_undefined_flag
=' -expect_unresolved \*'
16403 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'
16404 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~
16405 $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'
16407 # Both c and cxx compiler support -rpath directly
16408 hardcode_libdir_flag_spec
='-rpath $libdir'
16410 archive_cmds_need_lc
='no'
16411 hardcode_libdir_separator
=:
16415 no_undefined_flag
=' -z defs'
16416 if test "$GCC" = yes; then
16418 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16419 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16420 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16422 case `$CC -V 2>&1` in
16425 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16426 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16427 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16431 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16432 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16433 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16437 hardcode_libdir_flag_spec
='-R$libdir'
16438 hardcode_shlibpath_var
=no
16440 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16442 # The compiler driver will combine and reorder linker options,
16443 # but understands `-z linker_flag'. GCC discards it without `$wl',
16444 # but is careful enough not to reorder.
16445 # Supported since Solaris 2.6 (maybe 2.5.1?)
16446 if test "$GCC" = yes; then
16447 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16449 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16453 link_all_deplibs
=yes
16457 if test "x$host_vendor" = xsequent
; then
16458 # Use $CC to link under sequent, because it throws in some extra .o
16459 # files that make .init and .fini sections work.
16460 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16462 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16464 hardcode_libdir_flag_spec
='-L$libdir'
16465 hardcode_direct
=yes
16466 hardcode_minus_L
=yes
16467 hardcode_shlibpath_var
=no
16471 case $host_vendor in
16473 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16474 hardcode_direct
=yes # is this really true???
16477 ## LD is ld it makes a PLAMLIB
16478 ## CC just makes a GrossModule.
16479 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16480 reload_cmds
='$CC -r -o $output$reload_objs'
16484 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16485 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16488 runpath_var
='LD_RUN_PATH'
16489 hardcode_shlibpath_var
=no
16493 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16494 hardcode_shlibpath_var
=no
16495 export_dynamic_flag_spec
='-Bexport'
16499 if test -d /usr
/nec
; then
16500 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16501 hardcode_shlibpath_var
=no
16502 runpath_var
=LD_RUN_PATH
16503 hardcode_runpath_var
=yes
16508 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16509 no_undefined_flag
='${wl}-z,text'
16510 archive_cmds_need_lc
=no
16511 hardcode_shlibpath_var
=no
16512 runpath_var
='LD_RUN_PATH'
16514 if test "$GCC" = yes; then
16515 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16516 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16518 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16519 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16523 sysv5
* | sco3.2v5
* | sco5v6
*)
16524 # Note: We can NOT use -z defs as we might desire, because we do not
16525 # link with -lc, and that would cause any symbols used from libc to
16526 # always be unresolved, which means just about no library would
16527 # ever link correctly. If we're not using GNU ld we use -z text
16528 # though, which does catch some bad symbols but isn't as heavy-handed
16530 no_undefined_flag
='${wl}-z,text'
16531 allow_undefined_flag
='${wl}-z,nodefs'
16532 archive_cmds_need_lc
=no
16533 hardcode_shlibpath_var
=no
16534 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16535 hardcode_libdir_separator
=':'
16536 link_all_deplibs
=yes
16537 export_dynamic_flag_spec
='${wl}-Bexport'
16538 runpath_var
='LD_RUN_PATH'
16540 if test "$GCC" = yes; then
16541 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16542 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16544 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16545 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16550 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16551 hardcode_libdir_flag_spec
='-L$libdir'
16552 hardcode_shlibpath_var
=no
16560 if test x
$host_vendor = xsni
; then
16562 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16563 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16570 $as_echo "$ld_shlibs" >&6; }
16571 test "$ld_shlibs" = no
&& can_build_shared
=no
16573 with_gnu_ld
=$with_gnu_ld
16590 # Do we need to explicitly link libc?
16592 case "x$archive_cmds_need_lc" in
16594 # Assume -lc should be added
16595 archive_cmds_need_lc
=yes
16597 if test "$enable_shared" = yes && test "$GCC" = yes; then
16598 case $archive_cmds in
16600 # FIXME: we may have to deal with multi-command sequences.
16603 # Test whether the compiler implicitly links with -lc since on some
16604 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16605 # to ld, don't add -lc before -lgcc.
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16607 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16608 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16609 $as_echo_n "(cached) " >&6
16612 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16615 (eval $ac_compile) 2>&5
16617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16618 test $ac_status = 0; } 2>conftest.err
; then
16621 libobjs
=conftest.
$ac_objext
16623 wl
=$lt_prog_compiler_wl
16624 pic_flag
=$lt_prog_compiler_pic
16630 lt_save_allow_undefined_flag
=$allow_undefined_flag
16631 allow_undefined_flag
=
16632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16633 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16636 test $ac_status = 0; }
16638 lt_cv_archive_cmds_need_lc
=no
16640 lt_cv_archive_cmds_need_lc
=yes
16642 allow_undefined_flag
=$lt_save_allow_undefined_flag
16644 cat conftest.err
1>&5
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16650 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16651 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16815 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16817 if test "$GCC" = yes; then
16819 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16820 *) lt_awk_arg
="/^libraries:/" ;;
16823 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16824 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16826 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16827 case $lt_search_path_spec in
16829 # if the path contains ";" then we assume it to be the separator
16830 # otherwise default to the standard path separator (i.e. ":") - it is
16831 # assumed that no part of a normal pathname contains ";" but that should
16832 # okay in the real world where ";" in dirpaths is itself problematic.
16833 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16836 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16839 # Ok, now we have the path, separated by spaces, we can step through it
16840 # and add multilib dir if necessary.
16841 lt_tmp_lt_search_path_spec
=
16842 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16843 for lt_sys_path
in $lt_search_path_spec; do
16844 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16845 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16847 test -d "$lt_sys_path" && \
16848 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16851 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16852 BEGIN {RS=" "; FS="/|\n";} {
16855 for (lt_i = NF; lt_i > 0; lt_i--) {
16856 if ($lt_i != "" && $lt_i != ".") {
16857 if ($lt_i == "..") {
16860 if (lt_count == 0) {
16861 lt_foo="/" $lt_i lt_foo;
16868 if (lt_foo != "") { lt_freq[lt_foo]++; }
16869 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16871 # AWK program above erroneously prepends '/' to C:/dos/paths
16874 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16875 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16877 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16879 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16881 library_names_spec
=
16882 libname_spec
='lib$name'
16886 postuninstall_cmds
=
16890 shlibpath_overrides_runpath
=unknown
16892 dynamic_linker
="$host_os ld.so"
16893 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16894 need_lib_prefix
=unknown
16895 hardcode_into_libs
=no
16897 # when you set need_version to no, make sure it does not cause -set_version
16898 # flags to be left without arguments
16899 need_version
=unknown
16904 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16905 shlibpath_var
=LIBPATH
16907 # AIX 3 has no versioning support, so we append a major version to the name.
16908 soname_spec
='${libname}${release}${shared_ext}$major'
16915 hardcode_into_libs
=yes
16916 if test "$host_cpu" = ia64
; then
16917 # AIX 5 supports IA64
16918 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16919 shlibpath_var
=LD_LIBRARY_PATH
16921 # With GCC up to 2.95.x, collect2 would create an import file
16922 # for dependence libraries. The import file would start with
16923 # the line `#! .'. This would cause the generated library to
16924 # depend on `.', always an invalid library. This was fixed in
16925 # development snapshots of GCC prior to 3.0.
16927 aix4 | aix4.
[01] | aix4.
[01].
*)
16928 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16930 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16933 can_build_shared
=no
16937 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16938 # soname into executable. Probably we can add versioning support to
16939 # collect2, so additional links can be useful in future.
16940 if test "$aix_use_runtimelinking" = yes; then
16941 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16942 # instead of lib<name>.a to let people know that these are not
16943 # typical AIX shared libraries.
16944 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16946 # We preserve .a as extension for shared libraries through AIX4.2
16947 # and later when we are not doing run time linking.
16948 library_names_spec
='${libname}${release}.a $libname.a'
16949 soname_spec
='${libname}${release}${shared_ext}$major'
16951 shlibpath_var
=LIBPATH
16958 # Since July 2007 AmigaOS4 officially supports .so libraries.
16959 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16960 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16963 library_names_spec
='$libname.ixlibrary $libname.a'
16964 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16965 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'
16971 library_names_spec
='${libname}${shared_ext}'
16972 dynamic_linker
="$host_os ld.so"
16973 shlibpath_var
=LIBRARY_PATH
16979 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16980 soname_spec
='${libname}${release}${shared_ext}$major'
16981 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16982 shlibpath_var
=LD_LIBRARY_PATH
16983 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16984 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16985 # the default ld.so.conf also contains /usr/contrib/lib and
16986 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16987 # libtool to hard-code these into programs
16990 cygwin
* | mingw
* | pw32
* | cegcc
*)
16991 version_type
=windows
16996 case $GCC,$host_os in
16997 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16998 library_names_spec
='$libname.dll.a'
16999 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17000 postinstall_cmds
='base_file=`basename \${file}`~
17001 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17002 dldir=$destdir/`dirname \$dlpath`~
17003 test -d \$dldir || mkdir -p \$dldir~
17004 $install_prog $dir/$dlname \$dldir/$dlname~
17005 chmod a+x \$dldir/$dlname~
17006 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17007 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17009 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17010 dlpath=$dir/\$dldll~
17012 shlibpath_overrides_runpath
=yes
17016 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17017 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17019 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17022 # MinGW DLLs use traditional 'lib' prefix
17023 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17026 # pw32 DLLs use 'pw' prefix rather than 'lib'
17027 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17033 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17036 dynamic_linker
='Win32 ld.exe'
17037 # FIXME: first we should search . and the directory the executable is in
17041 darwin
* | rhapsody
*)
17042 dynamic_linker
="$host_os dyld"
17043 version_type
=darwin
17046 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17047 soname_spec
='${libname}${release}${major}$shared_ext'
17048 shlibpath_overrides_runpath
=yes
17049 shlibpath_var
=DYLD_LIBRARY_PATH
17050 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17052 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17053 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17060 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17061 soname_spec
='${libname}${release}${shared_ext}$major'
17062 shlibpath_var
=LD_LIBRARY_PATH
17065 freebsd
* | dragonfly
*)
17066 # DragonFly does not have aout. When/if they implement a new
17067 # versioning mechanism, adjust this.
17068 if test -x /usr
/bin
/objformat
; then
17069 objformat
=`/usr/bin/objformat`
17072 freebsd
[123]*) objformat
=aout
;;
17073 *) objformat
=elf
;;
17076 version_type
=freebsd-
$objformat
17077 case $version_type in
17079 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17084 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17088 shlibpath_var
=LD_LIBRARY_PATH
17091 shlibpath_overrides_runpath
=yes
17093 freebsd3.
[01]* | freebsdelf3.
[01]*)
17094 shlibpath_overrides_runpath
=yes
17095 hardcode_into_libs
=yes
17097 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17098 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17099 shlibpath_overrides_runpath
=no
17100 hardcode_into_libs
=yes
17102 *) # from 4.6 on, and DragonFly
17103 shlibpath_overrides_runpath
=yes
17104 hardcode_into_libs
=yes
17113 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17114 soname_spec
='${libname}${release}${shared_ext}$major'
17115 shlibpath_var
=LD_LIBRARY_PATH
17116 hardcode_into_libs
=yes
17123 dynamic_linker
="$host_os runtime_loader"
17124 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17125 soname_spec
='${libname}${release}${shared_ext}$major'
17126 shlibpath_var
=LIBRARY_PATH
17127 shlibpath_overrides_runpath
=yes
17128 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17129 hardcode_into_libs
=yes
17132 hpux9
* | hpux10
* | hpux11
*)
17133 # Give a soname corresponding to the major version so that dld.sl refuses to
17134 # link against other versions.
17141 hardcode_into_libs
=yes
17142 dynamic_linker
="$host_os dld.so"
17143 shlibpath_var
=LD_LIBRARY_PATH
17144 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17145 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17146 soname_spec
='${libname}${release}${shared_ext}$major'
17147 if test "X$HPUX_IA64_MODE" = X32
; then
17148 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17150 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17152 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17156 hardcode_into_libs
=yes
17157 dynamic_linker
="$host_os dld.sl"
17158 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17159 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17160 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17161 soname_spec
='${libname}${release}${shared_ext}$major'
17162 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17163 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17167 dynamic_linker
="$host_os dld.sl"
17168 shlibpath_var
=SHLIB_PATH
17169 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17170 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17171 soname_spec
='${libname}${release}${shared_ext}$major'
17174 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17175 postinstall_cmds
='chmod 555 $lib'
17176 # or fails outright, so override atomically:
17177 install_override_mode
=555
17184 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17185 soname_spec
='${libname}${release}${shared_ext}$major'
17186 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17187 shlibpath_var
=LD_LIBRARY_PATH
17188 shlibpath_overrides_runpath
=no
17189 hardcode_into_libs
=yes
17192 irix5
* | irix6
* | nonstopux
*)
17194 nonstopux
*) version_type
=nonstopux
;;
17196 if test "$lt_cv_prog_gnu_ld" = yes; then
17204 soname_spec
='${libname}${release}${shared_ext}$major'
17205 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17207 irix5
* | nonstopux
*)
17208 libsuff
= shlibsuff
=
17211 case $LD in # libtool.m4 will add one of these switches to LD
17212 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17213 libsuff
= shlibsuff
= libmagic
=32-bit;;
17214 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17215 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17216 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17217 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17218 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17222 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17223 shlibpath_overrides_runpath
=no
17224 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17225 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17226 hardcode_into_libs
=yes
17229 # No shared lib support for Linux oldld, aout, or coff.
17230 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17234 # This must be Linux ELF.
17235 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17239 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17240 soname_spec
='${libname}${release}${shared_ext}$major'
17241 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17242 shlibpath_var
=LD_LIBRARY_PATH
17243 shlibpath_overrides_runpath
=no
17245 # Some binutils ld are patched to set DT_RUNPATH
17246 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17247 $as_echo_n "(cached) " >&6
17249 lt_cv_shlibpath_overrides_runpath
=no
17250 save_LDFLAGS
=$LDFLAGS
17251 save_libdir
=$libdir
17252 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17253 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17255 /* end confdefs.h. */
17265 if ac_fn_c_try_link
"$LINENO"; then :
17266 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17267 lt_cv_shlibpath_overrides_runpath
=yes
17270 rm -f core conftest.err conftest.
$ac_objext \
17271 conftest
$ac_exeext conftest.
$ac_ext
17272 LDFLAGS
=$save_LDFLAGS
17273 libdir
=$save_libdir
17277 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17279 # This implies no fast_install, which is unacceptable.
17280 # Some rework will be needed to allow for fast_install
17281 # before this can be enabled.
17282 hardcode_into_libs
=yes
17284 # Append ld.so.conf contents to the search path
17285 if test -f /etc
/ld.so.conf
; then
17286 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' ' '`
17287 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17290 # We used to test for /lib/ld.so.1 and disable shared libraries on
17291 # powerpc, because MkLinux only supported shared libraries with the
17292 # GNU dynamic linker. Since this was broken with cross compilers,
17293 # most powerpc-linux boxes support dynamic linking these days and
17294 # people can always --disable-shared, the test was removed, and we
17295 # assume the GNU/Linux dynamic linker is in use.
17296 dynamic_linker
='GNU/Linux ld.so'
17303 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17304 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17305 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17306 dynamic_linker
='NetBSD (a.out) ld.so'
17308 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17309 soname_spec
='${libname}${release}${shared_ext}$major'
17310 dynamic_linker
='NetBSD ld.elf_so'
17312 shlibpath_var
=LD_LIBRARY_PATH
17313 shlibpath_overrides_runpath
=yes
17314 hardcode_into_libs
=yes
17319 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17320 shlibpath_var
=LD_LIBRARY_PATH
17321 shlibpath_overrides_runpath
=yes
17328 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17329 soname_spec
='${libname}${release}${shared_ext}$major'
17330 shlibpath_var
=LD_LIBRARY_PATH
17331 shlibpath_overrides_runpath
=no
17332 hardcode_into_libs
=yes
17333 dynamic_linker
='ldqnx.so'
17338 sys_lib_dlsearch_path_spec
="/usr/lib"
17340 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17342 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17343 *) need_version
=no
;;
17345 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17346 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17347 shlibpath_var
=LD_LIBRARY_PATH
17348 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17350 openbsd2.
[89] | openbsd2.
[89].
*)
17351 shlibpath_overrides_runpath
=no
17354 shlibpath_overrides_runpath
=yes
17358 shlibpath_overrides_runpath
=yes
17363 libname_spec
='$name'
17366 library_names_spec
='$libname${shared_ext} $libname.a'
17367 dynamic_linker
='OS/2 ld.exe'
17368 shlibpath_var
=LIBPATH
17371 osf3
* | osf4
* | osf5
*)
17375 soname_spec
='${libname}${release}${shared_ext}$major'
17376 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17377 shlibpath_var
=LD_LIBRARY_PATH
17378 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17379 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17390 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17391 soname_spec
='${libname}${release}${shared_ext}$major'
17392 shlibpath_var
=LD_LIBRARY_PATH
17393 shlibpath_overrides_runpath
=yes
17394 hardcode_into_libs
=yes
17395 # ldd complains unless libraries are executable
17396 postinstall_cmds
='chmod +x $lib'
17401 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17402 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17403 shlibpath_var
=LD_LIBRARY_PATH
17404 shlibpath_overrides_runpath
=yes
17405 if test "$with_gnu_ld" = yes; then
17413 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17414 soname_spec
='${libname}${release}${shared_ext}$major'
17415 shlibpath_var
=LD_LIBRARY_PATH
17416 case $host_vendor in
17418 shlibpath_overrides_runpath
=no
17420 runpath_var
=LD_RUN_PATH
17428 shlibpath_overrides_runpath
=no
17429 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17435 if test -d /usr
/nec
;then
17437 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17438 soname_spec
='$libname${shared_ext}.$major'
17439 shlibpath_var
=LD_LIBRARY_PATH
17443 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17444 version_type
=freebsd-elf
17447 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17448 soname_spec
='${libname}${release}${shared_ext}$major'
17449 shlibpath_var
=LD_LIBRARY_PATH
17450 shlibpath_overrides_runpath
=yes
17451 hardcode_into_libs
=yes
17452 if test "$with_gnu_ld" = yes; then
17453 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17455 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17458 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17462 sys_lib_dlsearch_path_spec
='/usr/lib'
17466 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17470 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17471 shlibpath_var
=LD_LIBRARY_PATH
17472 shlibpath_overrides_runpath
=no
17473 hardcode_into_libs
=yes
17478 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17479 soname_spec
='${libname}${release}${shared_ext}$major'
17480 shlibpath_var
=LD_LIBRARY_PATH
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17488 $as_echo "$dynamic_linker" >&6; }
17489 test "$dynamic_linker" = no
&& can_build_shared
=no
17491 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17492 if test "$GCC" = yes; then
17493 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17496 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17497 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17499 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17500 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17595 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17597 if test -n "$hardcode_libdir_flag_spec" ||
17598 test -n "$runpath_var" ||
17599 test "X$hardcode_automatic" = "Xyes" ; then
17601 # We can hardcode non-existent directories.
17602 if test "$hardcode_direct" != no
&&
17603 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17604 # have to relink, otherwise we might link with an installed library
17605 # when we should be linking with a yet-to-be-installed one
17606 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17607 test "$hardcode_minus_L" != no
; then
17608 # Linking always hardcodes the temporary library directory.
17609 hardcode_action
=relink
17611 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17612 hardcode_action
=immediate
17615 # We cannot hardcode anything, or else we can only hardcode existing
17617 hardcode_action
=unsupported
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17620 $as_echo "$hardcode_action" >&6; }
17622 if test "$hardcode_action" = relink ||
17623 test "$inherit_rpath" = yes; then
17624 # Fast installation is not supported
17625 enable_fast_install
=no
17626 elif test "$shlibpath_overrides_runpath" = yes ||
17627 test "$enable_shared" = no
; then
17628 # Fast installation is not necessary
17629 enable_fast_install
=needless
17637 if test "x$enable_dlopen" != xyes
; then
17638 enable_dlopen
=unknown
17639 enable_dlopen_self
=unknown
17640 enable_dlopen_self_static
=unknown
17647 lt_cv_dlopen
="load_add_on"
17649 lt_cv_dlopen_self
=yes
17652 mingw
* | pw32
* | cegcc
*)
17653 lt_cv_dlopen
="LoadLibrary"
17658 lt_cv_dlopen
="dlopen"
17663 # if libdl is installed we need to link against it
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17665 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17666 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17667 $as_echo_n "(cached) " >&6
17669 ac_check_lib_save_LIBS
=$LIBS
17671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17672 /* end confdefs.h. */
17674 /* Override any GCC internal prototype to avoid an error.
17675 Use char because int might match the return type of a GCC
17676 builtin and then its argument prototype would still apply. */
17689 if ac_fn_c_try_link
"$LINENO"; then :
17690 ac_cv_lib_dl_dlopen
=yes
17692 ac_cv_lib_dl_dlopen
=no
17694 rm -f core conftest.err conftest.
$ac_objext \
17695 conftest
$ac_exeext conftest.
$ac_ext
17696 LIBS
=$ac_check_lib_save_LIBS
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17699 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17700 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17701 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17704 lt_cv_dlopen
="dyld"
17706 lt_cv_dlopen_self
=yes
17713 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17714 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17715 lt_cv_dlopen
="shl_load"
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17718 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17719 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17720 $as_echo_n "(cached) " >&6
17722 ac_check_lib_save_LIBS
=$LIBS
17724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17725 /* end confdefs.h. */
17727 /* Override any GCC internal prototype to avoid an error.
17728 Use char because int might match the return type of a GCC
17729 builtin and then its argument prototype would still apply. */
17737 return shl_load ();
17742 if ac_fn_c_try_link
"$LINENO"; then :
17743 ac_cv_lib_dld_shl_load
=yes
17745 ac_cv_lib_dld_shl_load
=no
17747 rm -f core conftest.err conftest.
$ac_objext \
17748 conftest
$ac_exeext conftest.
$ac_ext
17749 LIBS
=$ac_check_lib_save_LIBS
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17752 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17753 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17754 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17756 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17757 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17758 lt_cv_dlopen
="dlopen"
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17761 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17762 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17763 $as_echo_n "(cached) " >&6
17765 ac_check_lib_save_LIBS
=$LIBS
17767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17768 /* end confdefs.h. */
17770 /* Override any GCC internal prototype to avoid an error.
17771 Use char because int might match the return type of a GCC
17772 builtin and then its argument prototype would still apply. */
17785 if ac_fn_c_try_link
"$LINENO"; then :
17786 ac_cv_lib_dl_dlopen
=yes
17788 ac_cv_lib_dl_dlopen
=no
17790 rm -f core conftest.err conftest.
$ac_objext \
17791 conftest
$ac_exeext conftest.
$ac_ext
17792 LIBS
=$ac_check_lib_save_LIBS
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17795 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17796 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17797 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17800 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17801 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17802 $as_echo_n "(cached) " >&6
17804 ac_check_lib_save_LIBS
=$LIBS
17805 LIBS
="-lsvld $LIBS"
17806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17807 /* end confdefs.h. */
17809 /* Override any GCC internal prototype to avoid an error.
17810 Use char because int might match the return type of a GCC
17811 builtin and then its argument prototype would still apply. */
17824 if ac_fn_c_try_link
"$LINENO"; then :
17825 ac_cv_lib_svld_dlopen
=yes
17827 ac_cv_lib_svld_dlopen
=no
17829 rm -f core conftest.err conftest.
$ac_objext \
17830 conftest
$ac_exeext conftest.
$ac_ext
17831 LIBS
=$ac_check_lib_save_LIBS
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17834 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17835 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17836 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17839 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17840 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17841 $as_echo_n "(cached) " >&6
17843 ac_check_lib_save_LIBS
=$LIBS
17845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17846 /* end confdefs.h. */
17848 /* Override any GCC internal prototype to avoid an error.
17849 Use char because int might match the return type of a GCC
17850 builtin and then its argument prototype would still apply. */
17858 return dld_link ();
17863 if ac_fn_c_try_link
"$LINENO"; then :
17864 ac_cv_lib_dld_dld_link
=yes
17866 ac_cv_lib_dld_dld_link
=no
17868 rm -f core conftest.err conftest.
$ac_objext \
17869 conftest
$ac_exeext conftest.
$ac_ext
17870 LIBS
=$ac_check_lib_save_LIBS
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17873 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17874 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17875 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17896 if test "x$lt_cv_dlopen" != xno
; then
17902 case $lt_cv_dlopen in
17904 save_CPPFLAGS
="$CPPFLAGS"
17905 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17907 save_LDFLAGS
="$LDFLAGS"
17908 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17911 LIBS
="$lt_cv_dlopen_libs $LIBS"
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17914 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17915 if test "${lt_cv_dlopen_self+set}" = set; then :
17916 $as_echo_n "(cached) " >&6
17918 if test "$cross_compiling" = yes; then :
17919 lt_cv_dlopen_self
=cross
17921 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17922 lt_status
=$lt_dlunknown
17923 cat > conftest.
$ac_ext <<_LT_EOF
17924 #line 17924 "configure"
17925 #include "confdefs.h"
17934 # define LT_DLGLOBAL RTLD_GLOBAL
17937 # define LT_DLGLOBAL DL_GLOBAL
17939 # define LT_DLGLOBAL 0
17943 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17944 find out it does not work in some platform. */
17945 #ifndef LT_DLLAZY_OR_NOW
17947 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17950 # define LT_DLLAZY_OR_NOW DL_LAZY
17953 # define LT_DLLAZY_OR_NOW RTLD_NOW
17956 # define LT_DLLAZY_OR_NOW DL_NOW
17958 # define LT_DLLAZY_OR_NOW 0
17965 /* When -fvisbility=hidden is used, assume the code has been annotated
17966 correspondingly for the symbols needed. */
17967 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17968 void fnord () __attribute__((visibility("default")));
17971 void fnord () { int i=42; }
17974 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17975 int status = $lt_dlunknown;
17979 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17982 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17983 else puts (dlerror ());
17985 /* dlclose (self); */
17993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17994 (eval $ac_link) 2>&5
17996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17997 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17998 (.
/conftest
; exit; ) >&5 2>/dev
/null
18000 case x
$lt_status in
18001 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18002 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18003 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18006 # compilation failed
18007 lt_cv_dlopen_self
=no
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18015 $as_echo "$lt_cv_dlopen_self" >&6; }
18017 if test "x$lt_cv_dlopen_self" = xyes
; then
18018 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18020 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18021 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18022 $as_echo_n "(cached) " >&6
18024 if test "$cross_compiling" = yes; then :
18025 lt_cv_dlopen_self_static
=cross
18027 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18028 lt_status
=$lt_dlunknown
18029 cat > conftest.
$ac_ext <<_LT_EOF
18030 #line 18030 "configure"
18031 #include "confdefs.h"
18040 # define LT_DLGLOBAL RTLD_GLOBAL
18043 # define LT_DLGLOBAL DL_GLOBAL
18045 # define LT_DLGLOBAL 0
18049 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18050 find out it does not work in some platform. */
18051 #ifndef LT_DLLAZY_OR_NOW
18053 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18056 # define LT_DLLAZY_OR_NOW DL_LAZY
18059 # define LT_DLLAZY_OR_NOW RTLD_NOW
18062 # define LT_DLLAZY_OR_NOW DL_NOW
18064 # define LT_DLLAZY_OR_NOW 0
18071 /* When -fvisbility=hidden is used, assume the code has been annotated
18072 correspondingly for the symbols needed. */
18073 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18074 void fnord () __attribute__((visibility("default")));
18077 void fnord () { int i=42; }
18080 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18081 int status = $lt_dlunknown;
18085 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18088 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18089 else puts (dlerror ());
18091 /* dlclose (self); */
18099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18100 (eval $ac_link) 2>&5
18102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18103 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18104 (.
/conftest
; exit; ) >&5 2>/dev
/null
18106 case x
$lt_status in
18107 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18108 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18109 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18112 # compilation failed
18113 lt_cv_dlopen_self_static
=no
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18121 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18124 CPPFLAGS
="$save_CPPFLAGS"
18125 LDFLAGS
="$save_LDFLAGS"
18130 case $lt_cv_dlopen_self in
18131 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18132 *) enable_dlopen_self
=unknown
;;
18135 case $lt_cv_dlopen_self_static in
18136 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18137 *) enable_dlopen_self_static
=unknown
;;
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18160 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18161 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18162 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18163 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18165 $as_echo "yes" >&6; }
18167 # FIXME - insert some real tests, host_os isn't really good enough
18170 if test -n "$STRIP" ; then
18171 striplib
="$STRIP -x"
18172 old_striplib
="$STRIP -S"
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18174 $as_echo "yes" >&6; }
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18177 $as_echo "no" >&6; }
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18182 $as_echo "no" >&6; }
18198 # Report which library types will actually be built
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18200 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18202 $as_echo "$can_build_shared" >&6; }
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18205 $as_echo_n "checking whether to build shared libraries... " >&6; }
18206 test "$can_build_shared" = "no" && enable_shared
=no
18208 # On AIX, shared libraries and static libraries use the same namespace, and
18209 # are all built from PIC.
18212 test "$enable_shared" = yes && enable_static
=no
18213 if test -n "$RANLIB"; then
18214 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18215 postinstall_cmds
='$RANLIB $lib'
18220 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18221 test "$enable_shared" = yes && enable_static
=no
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18226 $as_echo "$enable_shared" >&6; }
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18229 $as_echo_n "checking whether to build static libraries... " >&6; }
18230 # Make sure either enable_shared or enable_static is yes.
18231 test "$enable_shared" = yes || enable_static
=yes
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18233 $as_echo "$enable_static" >&6; }
18240 ac_cpp
='$CPP $CPPFLAGS'
18241 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18242 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18243 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18247 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18248 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18249 (test "X$CXX" != "Xg++"))) ; then
18251 ac_cpp
='$CXXCPP $CPPFLAGS'
18252 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18253 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18254 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18256 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18257 if test -z "$CXXCPP"; then
18258 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18259 $as_echo_n "(cached) " >&6
18261 # Double quotes because CXXCPP needs to be expanded
18262 for CXXCPP
in "$CXX -E" "/lib/cpp"
18264 ac_preproc_ok
=false
18265 for ac_cxx_preproc_warn_flag
in '' yes
18267 # Use a header file that comes with gcc, so configuring glibc
18268 # with a fresh cross-compiler works.
18269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18270 # <limits.h> exists even on freestanding compilers.
18271 # On the NeXT, cc -E runs the code through the compiler's parser,
18272 # not just through cpp. "Syntax error" is here to catch this case.
18273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18274 /* end confdefs.h. */
18276 # include <limits.h>
18278 # include <assert.h>
18282 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18285 # Broken: fails on valid input.
18288 rm -f conftest.err conftest.
$ac_ext
18290 # OK, works on sane cases. Now check whether nonexistent headers
18291 # can be detected and how.
18292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18293 /* end confdefs.h. */
18294 #include <ac_nonexistent.h>
18296 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18297 # Broken: success on invalid input.
18300 # Passes both tests.
18304 rm -f conftest.err conftest.
$ac_ext
18307 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18308 rm -f conftest.err conftest.
$ac_ext
18309 if $ac_preproc_ok; then :
18314 ac_cv_prog_CXXCPP
=$CXXCPP
18317 CXXCPP
=$ac_cv_prog_CXXCPP
18319 ac_cv_prog_CXXCPP
=$CXXCPP
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18322 $as_echo "$CXXCPP" >&6; }
18323 ac_preproc_ok
=false
18324 for ac_cxx_preproc_warn_flag
in '' yes
18326 # Use a header file that comes with gcc, so configuring glibc
18327 # with a fresh cross-compiler works.
18328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18329 # <limits.h> exists even on freestanding compilers.
18330 # On the NeXT, cc -E runs the code through the compiler's parser,
18331 # not just through cpp. "Syntax error" is here to catch this case.
18332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18333 /* end confdefs.h. */
18335 # include <limits.h>
18337 # include <assert.h>
18341 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18344 # Broken: fails on valid input.
18347 rm -f conftest.err conftest.
$ac_ext
18349 # OK, works on sane cases. Now check whether nonexistent headers
18350 # can be detected and how.
18351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18352 /* end confdefs.h. */
18353 #include <ac_nonexistent.h>
18355 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18356 # Broken: success on invalid input.
18359 # Passes both tests.
18363 rm -f conftest.err conftest.
$ac_ext
18366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18367 rm -f conftest.err conftest.
$ac_ext
18368 if $ac_preproc_ok; then :
18371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18373 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18374 See \`config.log' for more details." "$LINENO" 5; }
18378 ac_cpp
='$CPP $CPPFLAGS'
18379 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18380 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18381 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18384 _lt_caught_CXX_error
=yes
18388 ac_cpp
='$CXXCPP $CPPFLAGS'
18389 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18390 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18391 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18393 archive_cmds_need_lc_CXX
=no
18394 allow_undefined_flag_CXX
=
18395 always_export_symbols_CXX
=no
18396 archive_expsym_cmds_CXX
=
18397 compiler_needs_object_CXX
=no
18398 export_dynamic_flag_spec_CXX
=
18399 hardcode_direct_CXX
=no
18400 hardcode_direct_absolute_CXX
=no
18401 hardcode_libdir_flag_spec_CXX
=
18402 hardcode_libdir_flag_spec_ld_CXX
=
18403 hardcode_libdir_separator_CXX
=
18404 hardcode_minus_L_CXX
=no
18405 hardcode_shlibpath_var_CXX
=unsupported
18406 hardcode_automatic_CXX
=no
18407 inherit_rpath_CXX
=no
18409 module_expsym_cmds_CXX
=
18410 link_all_deplibs_CXX
=unknown
18411 old_archive_cmds_CXX
=$old_archive_cmds
18412 reload_flag_CXX
=$reload_flag
18413 reload_cmds_CXX
=$reload_cmds
18414 no_undefined_flag_CXX
=
18415 whole_archive_flag_spec_CXX
=
18416 enable_shared_with_static_runtimes_CXX
=no
18418 # Source file extension for C++ test sources.
18421 # Object file extension for compiled C++ test sources.
18425 # No sense in running all these tests if we already determined that
18426 # the CXX compiler isn't working. Some variables (like enable_shared)
18427 # are currently assumed to apply to all compilers on this platform,
18428 # and will be corrupted by setting them based on a non-working compiler.
18429 if test "$_lt_caught_CXX_error" != yes; then
18430 # Code to be used in simple compile tests
18431 lt_simple_compile_test_code
="int some_variable = 0;"
18433 # Code to be used in simple link tests
18434 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18436 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18443 # If no C compiler was specified, use CC.
18446 # If no C compiler flags were specified, use CFLAGS.
18447 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18449 # Allow CC to be a program name with arguments.
18453 # save warnings/boilerplate of simple test code
18454 ac_outfile
=conftest.
$ac_objext
18455 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18456 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18457 _lt_compiler_boilerplate
=`cat conftest.err`
18460 ac_outfile
=conftest.
$ac_objext
18461 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18462 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18463 _lt_linker_boilerplate
=`cat conftest.err`
18467 # Allow CC to be a program name with arguments.
18472 lt_save_with_gnu_ld
=$with_gnu_ld
18473 lt_save_path_LD
=$lt_cv_path_LD
18474 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18475 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18477 $as_unset lt_cv_prog_gnu_ld
18479 if test -n "${lt_cv_path_LDCXX+set}"; then
18480 lt_cv_path_LD
=$lt_cv_path_LDCXX
18482 $as_unset lt_cv_path_LD
18484 test -z "${LDCXX+set}" || LD
=$LDCXX
18488 for cc_temp
in $compiler""; do
18490 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18491 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18496 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18499 if test -n "$compiler"; then
18500 # We don't want -fno-exception when compiling C++ code, so set the
18501 # no_builtin_flag separately
18502 if test "$GXX" = yes; then
18503 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18505 lt_prog_compiler_no_builtin_flag_CXX
=
18508 if test "$GXX" = yes; then
18509 # Set up default GNU C++ configuration
18513 # Check whether --with-gnu-ld was given.
18514 if test "${with_gnu_ld+set}" = set; then :
18515 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18521 if test "$GCC" = yes; then
18522 # Check if gcc -print-prog-name=ld gives a path.
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18524 $as_echo_n "checking for ld used by $CC... " >&6; }
18527 # gcc leaves a trailing carriage return which upsets mingw
18528 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18530 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18533 # Accept absolute paths.
18535 re_direlt
='/[^/][^/]*/\.\./'
18536 # Canonicalize the pathname of ld
18537 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18538 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18539 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18541 test -z "$LD" && LD
="$ac_prog"
18544 # If it fails, then pretend we aren't using GCC.
18548 # If it is relative, then search for the first ld in PATH.
18549 with_gnu_ld
=unknown
18552 elif test "$with_gnu_ld" = yes; then
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18554 $as_echo_n "checking for GNU ld... " >&6; }
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18557 $as_echo_n "checking for non-GNU ld... " >&6; }
18559 if test "${lt_cv_path_LD+set}" = set; then :
18560 $as_echo_n "(cached) " >&6
18562 if test -z "$LD"; then
18563 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18564 for ac_dir
in $PATH; do
18566 test -z "$ac_dir" && ac_dir
=.
18567 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18568 lt_cv_path_LD
="$ac_dir/$ac_prog"
18569 # Check to see if the program is GNU ld. I'd rather use --version,
18570 # but apparently some variants of GNU ld only accept -v.
18571 # Break only if it was the GNU/non-GNU ld that we prefer.
18572 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18573 *GNU
* |
*'with BFD'*)
18574 test "$with_gnu_ld" != no
&& break
18577 test "$with_gnu_ld" != yes && break
18584 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18588 LD
="$lt_cv_path_LD"
18589 if test -n "$LD"; then
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18591 $as_echo "$LD" >&6; }
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18594 $as_echo "no" >&6; }
18596 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18598 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18599 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18600 $as_echo_n "(cached) " >&6
18602 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18603 case `$LD -v 2>&1 </dev/null` in
18604 *GNU
* |
*'with BFD'*)
18605 lt_cv_prog_gnu_ld
=yes
18608 lt_cv_prog_gnu_ld
=no
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18613 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18614 with_gnu_ld
=$lt_cv_prog_gnu_ld
18622 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18623 # archiving commands below assume that GNU ld is being used.
18624 if test "$with_gnu_ld" = yes; then
18625 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18626 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'
18628 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18629 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18631 # If archive_cmds runs LD, not CC, wlarc should be empty
18632 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18633 # investigate it a little bit more. (MM)
18636 # ancient GNU ld didn't support --whole-archive et. al.
18637 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18638 $GREP 'no-whole-archive' > /dev
/null
; then
18639 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18641 whole_archive_flag_spec_CXX
=
18647 # A generic and very simple default shared library creation
18648 # command for GNU C++ for the case where it uses the native
18649 # linker, instead of GNU ld. If possible, this setting should
18650 # overridden to take advantage of the native linker features on
18651 # the platform it is being used on.
18652 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18655 # Commands to make compiler produce verbose output that lists
18656 # what "hidden" libraries, object files and flags are used when
18657 # linking a shared library.
18658 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18666 # PORTME: fill in a description of your system's C++ link characteristics
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18668 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18672 # FIXME: insert proper C++ library support
18676 if test "$host_cpu" = ia64
; then
18677 # On IA64, the linker does run time linking by default, so we don't
18678 # have to do anything special.
18679 aix_use_runtimelinking
=no
18680 exp_sym_flag
='-Bexport'
18683 aix_use_runtimelinking
=no
18685 # Test if we are trying to use run time linking or normal
18686 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18687 # need to do runtime linking.
18688 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18689 for ld_flag
in $LDFLAGS; do
18692 aix_use_runtimelinking
=yes
18700 exp_sym_flag
='-bexport'
18701 no_entry_flag
='-bnoentry'
18704 # When large executables or shared objects are built, AIX ld can
18705 # have problems creating the table of contents. If linking a library
18706 # or program results in "error TOC overflow" add -mminimal-toc to
18707 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18708 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18710 archive_cmds_CXX
=''
18711 hardcode_direct_CXX
=yes
18712 hardcode_direct_absolute_CXX
=yes
18713 hardcode_libdir_separator_CXX
=':'
18714 link_all_deplibs_CXX
=yes
18715 file_list_spec_CXX
='${wl}-f,'
18717 if test "$GXX" = yes; then
18718 case $host_os in aix4.
[012]|aix4.
[012].
*)
18719 # We only want to do this on AIX 4.2 and lower, the check
18720 # below for broken collect2 doesn't work under 4.3+
18721 collect2name
=`${CC} -print-prog-name=collect2`
18722 if test -f "$collect2name" &&
18723 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18725 # We have reworked collect2
18728 # We have old collect2
18729 hardcode_direct_CXX
=unsupported
18730 # It fails to find uninstalled libraries when the uninstalled
18731 # path is not listed in the libpath. Setting hardcode_minus_L
18732 # to unsupported forces relinking
18733 hardcode_minus_L_CXX
=yes
18734 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18735 hardcode_libdir_separator_CXX
=
18738 shared_flag
='-shared'
18739 if test "$aix_use_runtimelinking" = yes; then
18740 shared_flag
="$shared_flag "'${wl}-G'
18744 if test "$host_cpu" = ia64
; then
18745 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18746 # chokes on -Wl,-G. The following line is correct:
18749 if test "$aix_use_runtimelinking" = yes; then
18750 shared_flag
='${wl}-G'
18752 shared_flag
='${wl}-bM:SRE'
18757 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18758 # It seems that -bexpall does not export symbols beginning with
18759 # underscore (_), so it is better to generate a list of symbols to
18761 always_export_symbols_CXX
=yes
18762 if test "$aix_use_runtimelinking" = yes; then
18763 # Warning - without using the other runtime loading flags (-brtl),
18764 # -berok will link without error, but may produce a broken library.
18765 allow_undefined_flag_CXX
='-berok'
18766 # Determine the default libpath from the value encoded in an empty
18768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18769 /* end confdefs.h. */
18779 if ac_fn_cxx_try_link
"$LINENO"; then :
18781 lt_aix_libpath_sed
='
18782 /Import File Strings/,/^$/ {
18788 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18789 # Check for a 64-bit object if we didn't find anything.
18790 if test -z "$aix_libpath"; then
18791 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18794 rm -f core conftest.err conftest.
$ac_objext \
18795 conftest
$ac_exeext conftest.
$ac_ext
18796 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18798 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18800 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"
18802 if test "$host_cpu" = ia64
; then
18803 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18804 allow_undefined_flag_CXX
="-z nodefs"
18805 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"
18807 # Determine the default libpath from the value encoded in an
18808 # empty executable.
18809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18810 /* end confdefs.h. */
18820 if ac_fn_cxx_try_link
"$LINENO"; then :
18822 lt_aix_libpath_sed
='
18823 /Import File Strings/,/^$/ {
18829 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18830 # Check for a 64-bit object if we didn't find anything.
18831 if test -z "$aix_libpath"; then
18832 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18835 rm -f core conftest.err conftest.
$ac_objext \
18836 conftest
$ac_exeext conftest.
$ac_ext
18837 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18839 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18840 # Warning - without using the other run time loading flags,
18841 # -berok will link without error, but may produce a broken library.
18842 no_undefined_flag_CXX
=' ${wl}-bernotok'
18843 allow_undefined_flag_CXX
=' ${wl}-berok'
18844 if test "$with_gnu_ld" = yes; then
18845 # We only use this code for GNU lds that support --whole-archive.
18846 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18848 # Exported symbols can be pulled into shared objects from archives
18849 whole_archive_flag_spec_CXX
='$convenience'
18851 archive_cmds_need_lc_CXX
=yes
18852 # This is similar to how AIX traditionally builds its shared
18854 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'
18860 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18861 allow_undefined_flag_CXX
=unsupported
18862 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18863 # support --undefined. This deserves some investigation. FIXME
18864 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18871 case $cc_basename in
18873 # FIXME: insert proper C++ library support
18879 cygwin
* | mingw
* | pw32
* | cegcc
*)
18880 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18881 # as there is no search path for DLLs.
18882 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18883 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18884 allow_undefined_flag_CXX
=unsupported
18885 always_export_symbols_CXX
=no
18886 enable_shared_with_static_runtimes_CXX
=yes
18888 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18889 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'
18890 # If the export-symbols file already is a .def file (1st line
18891 # is EXPORTS), use it as is; otherwise, prepend...
18892 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18893 cp $export_symbols $output_objdir/$soname.def;
18895 echo EXPORTS > $output_objdir/$soname.def;
18896 cat $export_symbols >> $output_objdir/$soname.def;
18898 $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'
18903 darwin
* | rhapsody
*)
18906 archive_cmds_need_lc_CXX
=no
18907 hardcode_direct_CXX
=no
18908 hardcode_automatic_CXX
=yes
18909 hardcode_shlibpath_var_CXX
=unsupported
18910 if test "$lt_cv_ld_force_load" = "yes"; then
18911 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\"`'
18913 whole_archive_flag_spec_CXX
=''
18915 link_all_deplibs_CXX
=yes
18916 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18917 case $cc_basename in
18918 ifort
*) _lt_dar_can_shared
=yes ;;
18919 *) _lt_dar_can_shared
=$GCC ;;
18921 if test "$_lt_dar_can_shared" = "yes"; then
18922 output_verbose_link_cmd
=func_echo_all
18923 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}"
18924 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18925 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}"
18926 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}"
18927 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18928 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}"
18929 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}"
18939 case $cc_basename in
18941 # FIXME: insert proper C++ library support
18945 # Green Hills C++ Compiler
18946 # FIXME: insert proper C++ library support
18950 # FIXME: insert proper C++ library support
18957 # C++ shared libraries reported to be fairly broken before
18963 archive_cmds_need_lc_CXX
=no
18966 freebsd
* | dragonfly
*)
18967 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18976 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18977 link_all_deplibs_CXX
=yes
18981 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18982 hardcode_libdir_separator_CXX
=:
18983 export_dynamic_flag_spec_CXX
='${wl}-E'
18984 hardcode_direct_CXX
=yes
18985 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18986 # but as the default
18987 # location of the library.
18989 case $cc_basename in
18991 # FIXME: insert proper C++ library support
18995 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'
18996 # Commands to make compiler produce verbose output that lists
18997 # what "hidden" libraries, object files and flags are used when
18998 # linking a shared library.
19000 # There doesn't appear to be a way to prevent this compiler from
19001 # explicitly linking system object files so we need to strip them
19002 # from the output so that they don't get included in the library
19004 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"'
19007 if test "$GXX" = yes; then
19008 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'
19010 # FIXME: insert proper C++ library support
19018 if test $with_gnu_ld = no
; then
19019 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19020 hardcode_libdir_separator_CXX
=:
19026 export_dynamic_flag_spec_CXX
='${wl}-E'
19032 hardcode_direct_CXX
=no
19033 hardcode_shlibpath_var_CXX
=no
19036 hardcode_direct_CXX
=yes
19037 hardcode_direct_absolute_CXX
=yes
19038 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19039 # but as the default
19040 # location of the library.
19044 case $cc_basename in
19046 # FIXME: insert proper C++ library support
19052 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19055 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19058 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19061 # Commands to make compiler produce verbose output that lists
19062 # what "hidden" libraries, object files and flags are used when
19063 # linking a shared library.
19065 # There doesn't appear to be a way to prevent this compiler from
19066 # explicitly linking system object files so we need to strip them
19067 # from the output so that they don't get included in the library
19069 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"'
19072 if test "$GXX" = yes; then
19073 if test $with_gnu_ld = no
; then
19076 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19079 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19082 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'
19087 # FIXME: insert proper C++ library support
19095 hardcode_direct_CXX
=no
19096 hardcode_shlibpath_var_CXX
=no
19097 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19098 export_dynamic_flag_spec_CXX
='${wl}-E'
19099 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19100 # Instead, shared libraries are loaded at an image base (0x10000000 by
19101 # default) and relocated if they conflict, which is a slow very memory
19102 # consuming and fragmenting process. To avoid this, we pick a random,
19103 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19104 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19105 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'
19106 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'
19109 case $cc_basename in
19112 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'
19114 # Archives containing C++ object files must be created using
19115 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19116 # necessary to make sure instantiated templates are included
19118 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19121 if test "$GXX" = yes; then
19122 if test "$with_gnu_ld" = no
; then
19123 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'
19125 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'
19128 link_all_deplibs_CXX
=yes
19131 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19132 hardcode_libdir_separator_CXX
=:
19133 inherit_rpath_CXX
=yes
19136 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19137 case $cc_basename in
19139 # Kuck and Associates, Inc. (KAI) C++ Compiler
19141 # KCC will only create a shared library if the output file
19142 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19143 # to its proper name (with version) after linking.
19144 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'
19145 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'
19146 # Commands to make compiler produce verbose output that lists
19147 # what "hidden" libraries, object files and flags are used when
19148 # linking a shared library.
19150 # There doesn't appear to be a way to prevent this compiler from
19151 # explicitly linking system object files so we need to strip them
19152 # from the output so that they don't get included in the library
19154 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"'
19156 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19157 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19159 # Archives containing C++ object files must be created using
19160 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19161 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19166 # version 8.0 and above of icpc choke on multiply defined symbols
19167 # if we add $predep_objects and $postdep_objects, however 7.1 and
19168 # earlier do not add the objects themselves.
19169 case `$CC -V 2>&1` in
19171 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19172 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'
19174 *) # Version 8.0 or newer
19177 ia64
*) tmp_idyn
=' -i_dynamic';;
19179 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19180 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'
19183 archive_cmds_need_lc_CXX
=no
19184 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19185 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19186 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19189 # Portland Group C++ compiler
19191 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19192 prelink_cmds_CXX
='tpldir=Template.dir~
19194 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19195 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19196 old_archive_cmds_CXX
='tpldir=Template.dir~
19198 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19199 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19201 archive_cmds_CXX
='tpldir=Template.dir~
19203 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19204 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19205 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19207 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19208 $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'
19210 *) # Version 6 and above use weak symbols
19211 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19212 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'
19216 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19217 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19218 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'
19222 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19223 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'
19225 runpath_var
=LD_RUN_PATH
19226 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19227 hardcode_libdir_separator_CXX
=:
19229 # Commands to make compiler produce verbose output that lists
19230 # what "hidden" libraries, object files and flags are used when
19231 # linking a shared library.
19233 # There doesn't appear to be a way to prevent this compiler from
19234 # explicitly linking system object files so we need to strip them
19235 # from the output so that they don't get included in the library
19237 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'
19239 xl
* | mpixl
* | bgxl
*)
19240 # IBM XL 8.0 on PPC, with GNU ld
19241 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19242 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19243 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19244 if test "x$supports_anon_versioning" = xyes
; then
19245 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19246 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19247 echo "local: *; };" >> $output_objdir/$libname.ver~
19248 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19252 case `$CC -V 2>&1 | sed 5q` in
19255 no_undefined_flag_CXX
=' -zdefs'
19256 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19257 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'
19258 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19259 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'
19260 compiler_needs_object_CXX
=yes
19262 # Not sure whether something based on
19263 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19265 output_verbose_link_cmd
='func_echo_all'
19267 # Archives containing C++ object files must be created using
19268 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19269 # necessary to make sure instantiated templates are included
19271 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19279 # FIXME: insert proper C++ library support
19284 # FIXME: insert proper C++ library support
19289 case $cc_basename in
19291 # FIXME: insert proper C++ library support
19295 # FIXME: insert proper C++ library support
19302 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19303 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19305 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19306 hardcode_direct_CXX
=yes
19307 hardcode_shlibpath_var_CXX
=no
19309 # Workaround some broken pre-1.5 toolchains
19310 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19318 # C++ shared libraries are fairly broken
19323 if test -f /usr
/libexec
/ld.so
; then
19324 hardcode_direct_CXX
=yes
19325 hardcode_shlibpath_var_CXX
=no
19326 hardcode_direct_absolute_CXX
=yes
19327 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19328 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19329 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19330 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19331 export_dynamic_flag_spec_CXX
='${wl}-E'
19332 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19334 output_verbose_link_cmd
=func_echo_all
19340 osf3
* | osf4
* | osf5
*)
19341 case $cc_basename in
19343 # Kuck and Associates, Inc. (KAI) C++ Compiler
19345 # KCC will only create a shared library if the output file
19346 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19347 # to its proper name (with version) after linking.
19348 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'
19350 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19351 hardcode_libdir_separator_CXX
=:
19353 # Archives containing C++ object files must be created using
19354 # the KAI C++ compiler.
19356 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19357 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19361 # Rational C++ 2.4.1
19362 # FIXME: insert proper C++ library support
19368 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19369 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'
19370 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19373 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19374 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'
19375 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19376 echo "-hidden">> $lib.exp~
19377 $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~
19379 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19383 hardcode_libdir_separator_CXX
=:
19385 # Commands to make compiler produce verbose output that lists
19386 # what "hidden" libraries, object files and flags are used when
19387 # linking a shared library.
19389 # There doesn't appear to be a way to prevent this compiler from
19390 # explicitly linking system object files so we need to strip them
19391 # from the output so that they don't get included in the library
19393 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"'
19396 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19397 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19400 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'
19403 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'
19407 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19408 hardcode_libdir_separator_CXX
=:
19410 # Commands to make compiler produce verbose output that lists
19411 # what "hidden" libraries, object files and flags are used when
19412 # linking a shared library.
19413 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19416 # FIXME: insert proper C++ library support
19424 # FIXME: insert proper C++ library support
19429 case $cc_basename in
19432 # FIXME: insert proper C++ library support
19437 # FIXME: insert proper C++ library support
19441 # FIXME: insert proper C++ library support
19448 case $cc_basename in
19450 # Sun C++ 4.2, 5.x and Centerline C++
19451 archive_cmds_need_lc_CXX
=yes
19452 no_undefined_flag_CXX
=' -zdefs'
19453 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19454 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19455 $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'
19457 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19458 hardcode_shlibpath_var_CXX
=no
19460 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19462 # The compiler driver will combine and reorder linker options,
19463 # but understands `-z linker_flag'.
19464 # Supported since Solaris 2.6 (maybe 2.5.1?)
19465 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19468 link_all_deplibs_CXX
=yes
19470 output_verbose_link_cmd
='func_echo_all'
19472 # Archives containing C++ object files must be created using
19473 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19474 # necessary to make sure instantiated templates are included
19476 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19479 # Green Hills C++ Compiler
19480 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19482 # The C++ compiler must be used to create the archive.
19483 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19486 # GNU C++ compiler with Solaris linker
19487 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19488 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19489 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19490 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19491 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19492 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19494 # Commands to make compiler produce verbose output that lists
19495 # what "hidden" libraries, object files and flags are used when
19496 # linking a shared library.
19497 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19499 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19501 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19502 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19503 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19505 # Commands to make compiler produce verbose output that lists
19506 # what "hidden" libraries, object files and flags are used when
19507 # linking a shared library.
19508 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19511 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19513 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19515 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19523 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19524 no_undefined_flag_CXX
='${wl}-z,text'
19525 archive_cmds_need_lc_CXX
=no
19526 hardcode_shlibpath_var_CXX
=no
19527 runpath_var
='LD_RUN_PATH'
19529 case $cc_basename in
19531 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19532 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19535 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19536 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19541 sysv5
* | sco3.2v5
* | sco5v6
*)
19542 # Note: We can NOT use -z defs as we might desire, because we do not
19543 # link with -lc, and that would cause any symbols used from libc to
19544 # always be unresolved, which means just about no library would
19545 # ever link correctly. If we're not using GNU ld we use -z text
19546 # though, which does catch some bad symbols but isn't as heavy-handed
19548 no_undefined_flag_CXX
='${wl}-z,text'
19549 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19550 archive_cmds_need_lc_CXX
=no
19551 hardcode_shlibpath_var_CXX
=no
19552 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19553 hardcode_libdir_separator_CXX
=':'
19554 link_all_deplibs_CXX
=yes
19555 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19556 runpath_var
='LD_RUN_PATH'
19558 case $cc_basename in
19560 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19561 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19562 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19563 '"$old_archive_cmds_CXX"
19564 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19565 '"$reload_cmds_CXX"
19568 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19569 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19575 case $cc_basename in
19577 # NonStop-UX NCC 3.20
19578 # FIXME: insert proper C++ library support
19582 # FIXME: insert proper C++ library support
19589 # FIXME: insert proper C++ library support
19594 # FIXME: insert proper C++ library support
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19600 $as_echo "$ld_shlibs_CXX" >&6; }
19601 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19607 ## There is no encapsulation within the following macros, do not change
19608 ## the running order or otherwise move them around unless you know exactly
19609 ## what you are doing...
19610 # Dependencies to place before and after the object being linked:
19611 predep_objects_CXX
=
19612 postdep_objects_CXX
=
19615 compiler_lib_search_path_CXX
=
19617 cat > conftest.
$ac_ext <<_LT_EOF
19621 Foo (void) { a = 0; }
19627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19628 (eval $ac_compile) 2>&5
19630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19631 test $ac_status = 0; }; then
19632 # Parse the compiler output and extract the necessary
19633 # objects, libraries and library flags.
19635 # Sentinel used to keep track of whether or not we are before
19636 # the conftest object file.
19637 pre_test_object_deps_done
=no
19639 for p
in `eval "$output_verbose_link_cmd"`; do
19643 # Some compilers place space between "-{L,R}" and the path.
19644 # Remove the space.
19645 if test $p = "-L" ||
19646 test $p = "-R"; then
19653 if test "$pre_test_object_deps_done" = no
; then
19656 # Internal compiler library paths should come after those
19657 # provided the user. The postdeps already come after the
19658 # user supplied libs so there is no need to process them.
19659 if test -z "$compiler_lib_search_path_CXX"; then
19660 compiler_lib_search_path_CXX
="${prev}${p}"
19662 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19665 # The "-l" case would never come before the object being
19666 # linked, so don't bother handling this case.
19669 if test -z "$postdeps_CXX"; then
19670 postdeps_CXX
="${prev}${p}"
19672 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19678 # This assumes that the test object file only shows up
19679 # once in the compiler output.
19680 if test "$p" = "conftest.$objext"; then
19681 pre_test_object_deps_done
=yes
19685 if test "$pre_test_object_deps_done" = no
; then
19686 if test -z "$predep_objects_CXX"; then
19687 predep_objects_CXX
="$p"
19689 predep_objects_CXX
="$predep_objects_CXX $p"
19692 if test -z "$postdep_objects_CXX"; then
19693 postdep_objects_CXX
="$p"
19695 postdep_objects_CXX
="$postdep_objects_CXX $p"
19700 *) ;; # Ignore the rest.
19708 echo "libtool.m4: error: problem compiling CXX test program"
19711 $RM -f confest.
$objext
19713 # PORTME: override above test on systems where it is broken
19716 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19717 # hack all around it, let's just trust "g++" to DTRT.
19718 predep_objects_CXX
=
19719 postdep_objects_CXX
=
19724 case `$CC -V 2>&1 | sed 5q` in
19728 # The more standards-conforming stlport4 library is
19729 # incompatible with the Cstd library. Avoid specifying
19730 # it if it's in CXXFLAGS. Ignore libCrun as
19731 # -library=stlport4 depends on it.
19732 case " $CXX $CXXFLAGS " in
19733 *" -library=stlport4 "*)
19734 solaris_use_stlport4
=yes
19738 if test "$solaris_use_stlport4" != yes; then
19739 postdeps_CXX
='-library=Cstd -library=Crun'
19746 case $cc_basename in
19748 # The more standards-conforming stlport4 library is
19749 # incompatible with the Cstd library. Avoid specifying
19750 # it if it's in CXXFLAGS. Ignore libCrun as
19751 # -library=stlport4 depends on it.
19752 case " $CXX $CXXFLAGS " in
19753 *" -library=stlport4 "*)
19754 solaris_use_stlport4
=yes
19758 # Adding this requires a known-good setup of shared libraries for
19759 # Sun compiler versions before 5.6, else PIC objects from an old
19760 # archive will be linked into the output, leading to subtle bugs.
19761 if test "$solaris_use_stlport4" != yes; then
19762 postdeps_CXX
='-library=Cstd -library=Crun'
19770 case " $postdeps_CXX " in
19771 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19773 compiler_lib_search_dirs_CXX
=
19774 if test -n "${compiler_lib_search_path_CXX}"; then
19775 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19808 lt_prog_compiler_wl_CXX
=
19809 lt_prog_compiler_pic_CXX
=
19810 lt_prog_compiler_static_CXX
=
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19813 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19815 # C++ specific cases for pic, static, wl, etc.
19816 if test "$GXX" = yes; then
19817 lt_prog_compiler_wl_CXX
='-Wl,'
19818 lt_prog_compiler_static_CXX
='-static'
19822 # All AIX code is PIC.
19823 if test "$host_cpu" = ia64
; then
19824 # AIX 5 now supports IA64 processor
19825 lt_prog_compiler_static_CXX
='-Bstatic'
19832 # see comment about AmigaOS4 .so support
19833 lt_prog_compiler_pic_CXX
='-fPIC'
19836 # FIXME: we need at least 68020 code to build shared libraries, but
19837 # adding the `-m68020' flag to GCC prevents building anything better,
19839 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19844 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19845 # PIC is the default for these OSes.
19847 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19848 # This hack is so that the source file can tell whether it is being
19849 # built for inclusion in a dll (and should export symbols for example).
19850 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19851 # (--disable-auto-import) libraries
19852 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19854 darwin
* | rhapsody
*)
19855 # PIC is the default on this platform
19856 # Common symbols not allowed in MH_DYLIB files
19857 lt_prog_compiler_pic_CXX
='-fno-common'
19860 # DJGPP does not support shared libraries at all
19861 lt_prog_compiler_pic_CXX
=
19864 # PIC is the default for Haiku.
19865 # The "-static" flag exists, but is broken.
19866 lt_prog_compiler_static_CXX
=
19869 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19870 # Instead, we relocate shared libraries at runtime.
19873 if test -d /usr
/nec
; then
19874 lt_prog_compiler_pic_CXX
=-Kconform_pic
19878 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19879 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19880 # sets the default TLS model and affects inlining.
19885 lt_prog_compiler_pic_CXX
='-fPIC'
19890 # QNX uses GNU C++, but need to define -shared option too, otherwise
19891 # it will coredump.
19892 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19895 lt_prog_compiler_pic_CXX
='-fPIC'
19901 # All AIX code is PIC.
19902 if test "$host_cpu" = ia64
; then
19903 # AIX 5 now supports IA64 processor
19904 lt_prog_compiler_static_CXX
='-Bstatic'
19906 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19910 case $cc_basename in
19912 # Green Hills C++ Compiler
19913 # _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"
19918 case $cc_basename in
19920 lt_prog_compiler_pic_CXX
='-KPIC'
19923 # Green Hills C++ Compiler
19924 lt_prog_compiler_pic_CXX
='-pic'
19930 freebsd
* | dragonfly
*)
19931 # FreeBSD uses GNU C++
19933 hpux9
* | hpux10
* | hpux11
*)
19934 case $cc_basename in
19936 lt_prog_compiler_wl_CXX
='-Wl,'
19937 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19938 if test "$host_cpu" != ia64
; then
19939 lt_prog_compiler_pic_CXX
='+Z'
19943 lt_prog_compiler_wl_CXX
='-Wl,'
19944 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19950 lt_prog_compiler_pic_CXX
='+Z'
19959 # This is c89, which is MS Visual C++ (no shared libs)
19960 # Anyone wants to do a port?
19962 irix5
* | irix6
* | nonstopux
*)
19963 case $cc_basename in
19965 lt_prog_compiler_wl_CXX
='-Wl,'
19966 lt_prog_compiler_static_CXX
='-non_shared'
19967 # CC pic flag -KPIC is the default.
19973 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19974 case $cc_basename in
19977 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19978 lt_prog_compiler_pic_CXX
='-fPIC'
19981 # old Intel C++ for x86_64 which still supported -KPIC.
19982 lt_prog_compiler_wl_CXX
='-Wl,'
19983 lt_prog_compiler_pic_CXX
='-KPIC'
19984 lt_prog_compiler_static_CXX
='-static'
19987 # Intel C++, used to be incompatible with GCC.
19988 # ICC 10 doesn't accept -KPIC any more.
19989 lt_prog_compiler_wl_CXX
='-Wl,'
19990 lt_prog_compiler_pic_CXX
='-fPIC'
19991 lt_prog_compiler_static_CXX
='-static'
19994 # Portland Group C++ compiler
19995 lt_prog_compiler_wl_CXX
='-Wl,'
19996 lt_prog_compiler_pic_CXX
='-fpic'
19997 lt_prog_compiler_static_CXX
='-Bstatic'
20001 # Make sure the PIC flag is empty. It appears that all Alpha
20002 # Linux and Compaq Tru64 Unix objects are PIC.
20003 lt_prog_compiler_pic_CXX
=
20004 lt_prog_compiler_static_CXX
='-non_shared'
20006 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20007 # IBM XL 8.0, 9.0 on PPC and BlueGene
20008 lt_prog_compiler_wl_CXX
='-Wl,'
20009 lt_prog_compiler_pic_CXX
='-qpic'
20010 lt_prog_compiler_static_CXX
='-qstaticlink'
20013 case `$CC -V 2>&1 | sed 5q` in
20016 lt_prog_compiler_pic_CXX
='-KPIC'
20017 lt_prog_compiler_static_CXX
='-Bstatic'
20018 lt_prog_compiler_wl_CXX
='-Qoption ld '
20029 case $cc_basename in
20031 lt_prog_compiler_pic_CXX
='-W c,exportall'
20040 # QNX uses GNU C++, but need to define -shared option too, otherwise
20041 # it will coredump.
20042 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20044 osf3
* | osf4
* | osf5
*)
20045 case $cc_basename in
20047 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20050 # Rational C++ 2.4.1
20051 lt_prog_compiler_pic_CXX
='-pic'
20054 # Digital/Compaq C++
20055 lt_prog_compiler_wl_CXX
='-Wl,'
20056 # Make sure the PIC flag is empty. It appears that all Alpha
20057 # Linux and Compaq Tru64 Unix objects are PIC.
20058 lt_prog_compiler_pic_CXX
=
20059 lt_prog_compiler_static_CXX
='-non_shared'
20068 case $cc_basename in
20070 # Sun C++ 4.2, 5.x and Centerline C++
20071 lt_prog_compiler_pic_CXX
='-KPIC'
20072 lt_prog_compiler_static_CXX
='-Bstatic'
20073 lt_prog_compiler_wl_CXX
='-Qoption ld '
20076 # Green Hills C++ Compiler
20077 lt_prog_compiler_pic_CXX
='-PIC'
20084 case $cc_basename in
20087 lt_prog_compiler_pic_CXX
='-pic'
20088 lt_prog_compiler_static_CXX
='-Bstatic'
20092 lt_prog_compiler_pic_CXX
='-pic'
20098 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20099 case $cc_basename in
20101 lt_prog_compiler_wl_CXX
='-Wl,'
20102 lt_prog_compiler_pic_CXX
='-KPIC'
20103 lt_prog_compiler_static_CXX
='-Bstatic'
20108 case $cc_basename in
20110 # NonStop-UX NCC 3.20
20111 lt_prog_compiler_pic_CXX
='-KPIC'
20120 lt_prog_compiler_can_build_shared_CXX
=no
20126 # For platforms which do not support PIC, -DPIC is meaningless:
20128 lt_prog_compiler_pic_CXX
=
20131 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20135 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20140 # Check to make sure the PIC flag actually works.
20142 if test -n "$lt_prog_compiler_pic_CXX"; then
20143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20144 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20145 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20146 $as_echo_n "(cached) " >&6
20148 lt_cv_prog_compiler_pic_works_CXX
=no
20149 ac_outfile
=conftest.
$ac_objext
20150 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20151 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20152 # Insert the option either (1) after the last *FLAGS variable, or
20153 # (2) before a word containing "conftest.", or (3) at the end.
20154 # Note that $ac_compile itself does not contain backslashes and begins
20155 # with a dollar sign (not a hyphen), so the echo should work correctly.
20156 # The option is referenced via a variable to avoid confusing sed.
20157 lt_compile
=`echo "$ac_compile" | $SED \
20158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20160 -e 's:$: $lt_compiler_flag:'`
20161 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20162 (eval "$lt_compile" 2>conftest.err
)
20164 cat conftest.err
>&5
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 if (exit $ac_status) && test -s "$ac_outfile"; then
20167 # The compiler can only warn and ignore the option if not recognized
20168 # So say no if there are warnings other than the usual output.
20169 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20170 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20171 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20172 lt_cv_prog_compiler_pic_works_CXX
=yes
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20179 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20181 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20182 case $lt_prog_compiler_pic_CXX in
20184 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20187 lt_prog_compiler_pic_CXX
=
20188 lt_prog_compiler_can_build_shared_CXX
=no
20196 # Check to make sure the static flag actually works.
20198 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20200 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20201 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20202 $as_echo_n "(cached) " >&6
20204 lt_cv_prog_compiler_static_works_CXX
=no
20205 save_LDFLAGS
="$LDFLAGS"
20206 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20207 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20208 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20209 # The linker can only warn and ignore the option if not recognized
20210 # So say no if there are warnings
20211 if test -s conftest.err
; then
20212 # Append any errors to the config.log.
20213 cat conftest.err
1>&5
20214 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20215 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20216 if diff conftest.exp conftest.er2
>/dev
/null
; then
20217 lt_cv_prog_compiler_static_works_CXX
=yes
20220 lt_cv_prog_compiler_static_works_CXX
=yes
20224 LDFLAGS
="$save_LDFLAGS"
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20228 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20230 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20233 lt_prog_compiler_static_CXX
=
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20240 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20241 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20242 $as_echo_n "(cached) " >&6
20244 lt_cv_prog_compiler_c_o_CXX
=no
20245 $RM -r conftest
2>/dev
/null
20249 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20251 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20252 # Insert the option either (1) after the last *FLAGS variable, or
20253 # (2) before a word containing "conftest.", or (3) at the end.
20254 # Note that $ac_compile itself does not contain backslashes and begins
20255 # with a dollar sign (not a hyphen), so the echo should work correctly.
20256 lt_compile
=`echo "$ac_compile" | $SED \
20257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20259 -e 's:$: $lt_compiler_flag:'`
20260 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20261 (eval "$lt_compile" 2>out
/conftest.err
)
20263 cat out
/conftest.err
>&5
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20267 # The compiler can only warn and ignore the option if not recognized
20268 # So say no if there are warnings
20269 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20270 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20271 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20272 lt_cv_prog_compiler_c_o_CXX
=yes
20277 # SGI C++ compiler will create directory out/ii_files/ for
20278 # template instantiation
20279 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20280 $RM out
/* && rmdir out
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20287 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20292 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20293 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20294 $as_echo_n "(cached) " >&6
20296 lt_cv_prog_compiler_c_o_CXX
=no
20297 $RM -r conftest
2>/dev
/null
20301 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20303 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20304 # Insert the option either (1) after the last *FLAGS variable, or
20305 # (2) before a word containing "conftest.", or (3) at the end.
20306 # Note that $ac_compile itself does not contain backslashes and begins
20307 # with a dollar sign (not a hyphen), so the echo should work correctly.
20308 lt_compile
=`echo "$ac_compile" | $SED \
20309 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20311 -e 's:$: $lt_compiler_flag:'`
20312 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20313 (eval "$lt_compile" 2>out
/conftest.err
)
20315 cat out
/conftest.err
>&5
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20319 # The compiler can only warn and ignore the option if not recognized
20320 # So say no if there are warnings
20321 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20322 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20323 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20324 lt_cv_prog_compiler_c_o_CXX
=yes
20329 # SGI C++ compiler will create directory out/ii_files/ for
20330 # template instantiation
20331 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20332 $RM out
/* && rmdir out
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20339 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20344 hard_links
="nottested"
20345 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20346 # do not overwrite the value of need_locks provided by the user
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20348 $as_echo_n "checking if we can lock with hard links... " >&6; }
20351 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20353 ln conftest.a conftest.b
2>&5 || hard_links
=no
20354 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20356 $as_echo "$hard_links" >&6; }
20357 if test "$hard_links" = no
; then
20358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20359 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20369 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20371 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20374 # If we're using GNU nm, then we don't want the "-C" option.
20375 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20376 # Also, AIX nm treats weak defined symbols like other global defined
20377 # symbols, whereas GNU nm marks them as "W".
20378 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20379 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'
20381 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'
20385 export_symbols_cmds_CXX
="$ltdll_cmds"
20387 cygwin
* | mingw
* | cegcc
*)
20388 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'
20391 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20394 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20397 $as_echo "$ld_shlibs_CXX" >&6; }
20398 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20400 with_gnu_ld_CXX
=$with_gnu_ld
20408 # Do we need to explicitly link libc?
20410 case "x$archive_cmds_need_lc_CXX" in
20412 # Assume -lc should be added
20413 archive_cmds_need_lc_CXX
=yes
20415 if test "$enable_shared" = yes && test "$GCC" = yes; then
20416 case $archive_cmds_CXX in
20418 # FIXME: we may have to deal with multi-command sequences.
20421 # Test whether the compiler implicitly links with -lc since on some
20422 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20423 # to ld, don't add -lc before -lgcc.
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20425 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20426 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20427 $as_echo_n "(cached) " >&6
20430 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20433 (eval $ac_compile) 2>&5
20435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20436 test $ac_status = 0; } 2>conftest.err
; then
20439 libobjs
=conftest.
$ac_objext
20441 wl
=$lt_prog_compiler_wl_CXX
20442 pic_flag
=$lt_prog_compiler_pic_CXX
20448 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20449 allow_undefined_flag_CXX
=
20450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20451 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20454 test $ac_status = 0; }
20456 lt_cv_archive_cmds_need_lc_CXX
=no
20458 lt_cv_archive_cmds_need_lc_CXX
=yes
20460 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20462 cat conftest.err
1>&5
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20468 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20469 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20540 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20542 library_names_spec
=
20543 libname_spec
='lib$name'
20547 postuninstall_cmds
=
20551 shlibpath_overrides_runpath
=unknown
20553 dynamic_linker
="$host_os ld.so"
20554 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20555 need_lib_prefix
=unknown
20556 hardcode_into_libs
=no
20558 # when you set need_version to no, make sure it does not cause -set_version
20559 # flags to be left without arguments
20560 need_version
=unknown
20565 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20566 shlibpath_var
=LIBPATH
20568 # AIX 3 has no versioning support, so we append a major version to the name.
20569 soname_spec
='${libname}${release}${shared_ext}$major'
20576 hardcode_into_libs
=yes
20577 if test "$host_cpu" = ia64
; then
20578 # AIX 5 supports IA64
20579 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20580 shlibpath_var
=LD_LIBRARY_PATH
20582 # With GCC up to 2.95.x, collect2 would create an import file
20583 # for dependence libraries. The import file would start with
20584 # the line `#! .'. This would cause the generated library to
20585 # depend on `.', always an invalid library. This was fixed in
20586 # development snapshots of GCC prior to 3.0.
20588 aix4 | aix4.
[01] | aix4.
[01].
*)
20589 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20591 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20594 can_build_shared
=no
20598 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20599 # soname into executable. Probably we can add versioning support to
20600 # collect2, so additional links can be useful in future.
20601 if test "$aix_use_runtimelinking" = yes; then
20602 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20603 # instead of lib<name>.a to let people know that these are not
20604 # typical AIX shared libraries.
20605 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20607 # We preserve .a as extension for shared libraries through AIX4.2
20608 # and later when we are not doing run time linking.
20609 library_names_spec
='${libname}${release}.a $libname.a'
20610 soname_spec
='${libname}${release}${shared_ext}$major'
20612 shlibpath_var
=LIBPATH
20619 # Since July 2007 AmigaOS4 officially supports .so libraries.
20620 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20621 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20624 library_names_spec
='$libname.ixlibrary $libname.a'
20625 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20626 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'
20632 library_names_spec
='${libname}${shared_ext}'
20633 dynamic_linker
="$host_os ld.so"
20634 shlibpath_var
=LIBRARY_PATH
20640 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20641 soname_spec
='${libname}${release}${shared_ext}$major'
20642 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20643 shlibpath_var
=LD_LIBRARY_PATH
20644 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20645 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20646 # the default ld.so.conf also contains /usr/contrib/lib and
20647 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20648 # libtool to hard-code these into programs
20651 cygwin
* | mingw
* | pw32
* | cegcc
*)
20652 version_type
=windows
20657 case $GCC,$host_os in
20658 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20659 library_names_spec
='$libname.dll.a'
20660 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20661 postinstall_cmds
='base_file=`basename \${file}`~
20662 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20663 dldir=$destdir/`dirname \$dlpath`~
20664 test -d \$dldir || mkdir -p \$dldir~
20665 $install_prog $dir/$dlname \$dldir/$dlname~
20666 chmod a+x \$dldir/$dlname~
20667 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20668 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20670 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20671 dlpath=$dir/\$dldll~
20673 shlibpath_overrides_runpath
=yes
20677 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20678 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20682 # MinGW DLLs use traditional 'lib' prefix
20683 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20686 # pw32 DLLs use 'pw' prefix rather than 'lib'
20687 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20693 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20696 dynamic_linker
='Win32 ld.exe'
20697 # FIXME: first we should search . and the directory the executable is in
20701 darwin
* | rhapsody
*)
20702 dynamic_linker
="$host_os dyld"
20703 version_type
=darwin
20706 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20707 soname_spec
='${libname}${release}${major}$shared_ext'
20708 shlibpath_overrides_runpath
=yes
20709 shlibpath_var
=DYLD_LIBRARY_PATH
20710 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20712 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20719 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20720 soname_spec
='${libname}${release}${shared_ext}$major'
20721 shlibpath_var
=LD_LIBRARY_PATH
20724 freebsd
* | dragonfly
*)
20725 # DragonFly does not have aout. When/if they implement a new
20726 # versioning mechanism, adjust this.
20727 if test -x /usr
/bin
/objformat
; then
20728 objformat
=`/usr/bin/objformat`
20731 freebsd
[123]*) objformat
=aout
;;
20732 *) objformat
=elf
;;
20735 version_type
=freebsd-
$objformat
20736 case $version_type in
20738 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20743 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20747 shlibpath_var
=LD_LIBRARY_PATH
20750 shlibpath_overrides_runpath
=yes
20752 freebsd3.
[01]* | freebsdelf3.
[01]*)
20753 shlibpath_overrides_runpath
=yes
20754 hardcode_into_libs
=yes
20756 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20757 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20758 shlibpath_overrides_runpath
=no
20759 hardcode_into_libs
=yes
20761 *) # from 4.6 on, and DragonFly
20762 shlibpath_overrides_runpath
=yes
20763 hardcode_into_libs
=yes
20772 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20773 soname_spec
='${libname}${release}${shared_ext}$major'
20774 shlibpath_var
=LD_LIBRARY_PATH
20775 hardcode_into_libs
=yes
20782 dynamic_linker
="$host_os runtime_loader"
20783 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20784 soname_spec
='${libname}${release}${shared_ext}$major'
20785 shlibpath_var
=LIBRARY_PATH
20786 shlibpath_overrides_runpath
=yes
20787 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20788 hardcode_into_libs
=yes
20791 hpux9
* | hpux10
* | hpux11
*)
20792 # Give a soname corresponding to the major version so that dld.sl refuses to
20793 # link against other versions.
20800 hardcode_into_libs
=yes
20801 dynamic_linker
="$host_os dld.so"
20802 shlibpath_var
=LD_LIBRARY_PATH
20803 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20804 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20805 soname_spec
='${libname}${release}${shared_ext}$major'
20806 if test "X$HPUX_IA64_MODE" = X32
; then
20807 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20809 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20811 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20815 hardcode_into_libs
=yes
20816 dynamic_linker
="$host_os dld.sl"
20817 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20818 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20819 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20820 soname_spec
='${libname}${release}${shared_ext}$major'
20821 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20822 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20826 dynamic_linker
="$host_os dld.sl"
20827 shlibpath_var
=SHLIB_PATH
20828 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20829 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20830 soname_spec
='${libname}${release}${shared_ext}$major'
20833 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20834 postinstall_cmds
='chmod 555 $lib'
20835 # or fails outright, so override atomically:
20836 install_override_mode
=555
20843 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20844 soname_spec
='${libname}${release}${shared_ext}$major'
20845 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20846 shlibpath_var
=LD_LIBRARY_PATH
20847 shlibpath_overrides_runpath
=no
20848 hardcode_into_libs
=yes
20851 irix5
* | irix6
* | nonstopux
*)
20853 nonstopux
*) version_type
=nonstopux
;;
20855 if test "$lt_cv_prog_gnu_ld" = yes; then
20863 soname_spec
='${libname}${release}${shared_ext}$major'
20864 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20866 irix5
* | nonstopux
*)
20867 libsuff
= shlibsuff
=
20870 case $LD in # libtool.m4 will add one of these switches to LD
20871 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20872 libsuff
= shlibsuff
= libmagic
=32-bit;;
20873 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20874 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20875 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20876 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20877 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20881 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20882 shlibpath_overrides_runpath
=no
20883 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20884 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20885 hardcode_into_libs
=yes
20888 # No shared lib support for Linux oldld, aout, or coff.
20889 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20893 # This must be Linux ELF.
20894 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20898 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20899 soname_spec
='${libname}${release}${shared_ext}$major'
20900 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20901 shlibpath_var
=LD_LIBRARY_PATH
20902 shlibpath_overrides_runpath
=no
20904 # Some binutils ld are patched to set DT_RUNPATH
20905 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20906 $as_echo_n "(cached) " >&6
20908 lt_cv_shlibpath_overrides_runpath
=no
20909 save_LDFLAGS
=$LDFLAGS
20910 save_libdir
=$libdir
20911 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20912 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20914 /* end confdefs.h. */
20924 if ac_fn_cxx_try_link
"$LINENO"; then :
20925 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20926 lt_cv_shlibpath_overrides_runpath
=yes
20929 rm -f core conftest.err conftest.
$ac_objext \
20930 conftest
$ac_exeext conftest.
$ac_ext
20931 LDFLAGS
=$save_LDFLAGS
20932 libdir
=$save_libdir
20936 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20938 # This implies no fast_install, which is unacceptable.
20939 # Some rework will be needed to allow for fast_install
20940 # before this can be enabled.
20941 hardcode_into_libs
=yes
20943 # Append ld.so.conf contents to the search path
20944 if test -f /etc
/ld.so.conf
; then
20945 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' ' '`
20946 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20949 # We used to test for /lib/ld.so.1 and disable shared libraries on
20950 # powerpc, because MkLinux only supported shared libraries with the
20951 # GNU dynamic linker. Since this was broken with cross compilers,
20952 # most powerpc-linux boxes support dynamic linking these days and
20953 # people can always --disable-shared, the test was removed, and we
20954 # assume the GNU/Linux dynamic linker is in use.
20955 dynamic_linker
='GNU/Linux ld.so'
20962 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20963 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20964 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20965 dynamic_linker
='NetBSD (a.out) ld.so'
20967 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20968 soname_spec
='${libname}${release}${shared_ext}$major'
20969 dynamic_linker
='NetBSD ld.elf_so'
20971 shlibpath_var
=LD_LIBRARY_PATH
20972 shlibpath_overrides_runpath
=yes
20973 hardcode_into_libs
=yes
20978 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20979 shlibpath_var
=LD_LIBRARY_PATH
20980 shlibpath_overrides_runpath
=yes
20987 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20988 soname_spec
='${libname}${release}${shared_ext}$major'
20989 shlibpath_var
=LD_LIBRARY_PATH
20990 shlibpath_overrides_runpath
=no
20991 hardcode_into_libs
=yes
20992 dynamic_linker
='ldqnx.so'
20997 sys_lib_dlsearch_path_spec
="/usr/lib"
20999 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21001 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21002 *) need_version
=no
;;
21004 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21005 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21006 shlibpath_var
=LD_LIBRARY_PATH
21007 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21009 openbsd2.
[89] | openbsd2.
[89].
*)
21010 shlibpath_overrides_runpath
=no
21013 shlibpath_overrides_runpath
=yes
21017 shlibpath_overrides_runpath
=yes
21022 libname_spec
='$name'
21025 library_names_spec
='$libname${shared_ext} $libname.a'
21026 dynamic_linker
='OS/2 ld.exe'
21027 shlibpath_var
=LIBPATH
21030 osf3
* | osf4
* | osf5
*)
21034 soname_spec
='${libname}${release}${shared_ext}$major'
21035 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21036 shlibpath_var
=LD_LIBRARY_PATH
21037 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21038 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21049 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21050 soname_spec
='${libname}${release}${shared_ext}$major'
21051 shlibpath_var
=LD_LIBRARY_PATH
21052 shlibpath_overrides_runpath
=yes
21053 hardcode_into_libs
=yes
21054 # ldd complains unless libraries are executable
21055 postinstall_cmds
='chmod +x $lib'
21060 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21061 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21062 shlibpath_var
=LD_LIBRARY_PATH
21063 shlibpath_overrides_runpath
=yes
21064 if test "$with_gnu_ld" = yes; then
21072 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21073 soname_spec
='${libname}${release}${shared_ext}$major'
21074 shlibpath_var
=LD_LIBRARY_PATH
21075 case $host_vendor in
21077 shlibpath_overrides_runpath
=no
21079 runpath_var
=LD_RUN_PATH
21087 shlibpath_overrides_runpath
=no
21088 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21094 if test -d /usr
/nec
;then
21096 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21097 soname_spec
='$libname${shared_ext}.$major'
21098 shlibpath_var
=LD_LIBRARY_PATH
21102 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21103 version_type
=freebsd-elf
21106 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21107 soname_spec
='${libname}${release}${shared_ext}$major'
21108 shlibpath_var
=LD_LIBRARY_PATH
21109 shlibpath_overrides_runpath
=yes
21110 hardcode_into_libs
=yes
21111 if test "$with_gnu_ld" = yes; then
21112 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21114 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21117 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21121 sys_lib_dlsearch_path_spec
='/usr/lib'
21125 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21129 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21130 shlibpath_var
=LD_LIBRARY_PATH
21131 shlibpath_overrides_runpath
=no
21132 hardcode_into_libs
=yes
21137 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21138 soname_spec
='${libname}${release}${shared_ext}$major'
21139 shlibpath_var
=LD_LIBRARY_PATH
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21147 $as_echo "$dynamic_linker" >&6; }
21148 test "$dynamic_linker" = no
&& can_build_shared
=no
21150 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21151 if test "$GCC" = yes; then
21152 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21155 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21156 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21158 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21159 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21200 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21201 hardcode_action_CXX
=
21202 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21203 test -n "$runpath_var_CXX" ||
21204 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21206 # We can hardcode non-existent directories.
21207 if test "$hardcode_direct_CXX" != no
&&
21208 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21209 # have to relink, otherwise we might link with an installed library
21210 # when we should be linking with a yet-to-be-installed one
21211 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21212 test "$hardcode_minus_L_CXX" != no
; then
21213 # Linking always hardcodes the temporary library directory.
21214 hardcode_action_CXX
=relink
21216 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21217 hardcode_action_CXX
=immediate
21220 # We cannot hardcode anything, or else we can only hardcode existing
21222 hardcode_action_CXX
=unsupported
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21225 $as_echo "$hardcode_action_CXX" >&6; }
21227 if test "$hardcode_action_CXX" = relink ||
21228 test "$inherit_rpath_CXX" = yes; then
21229 # Fast installation is not supported
21230 enable_fast_install
=no
21231 elif test "$shlibpath_overrides_runpath" = yes ||
21232 test "$enable_shared" = no
; then
21233 # Fast installation is not necessary
21234 enable_fast_install
=needless
21243 fi # test -n "$compiler"
21249 with_gnu_ld
=$lt_save_with_gnu_ld
21250 lt_cv_path_LDCXX
=$lt_cv_path_LD
21251 lt_cv_path_LD
=$lt_save_path_LD
21252 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21253 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21254 fi # test "$_lt_caught_CXX_error" != yes
21257 ac_cpp
='$CPP $CPPFLAGS'
21258 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21259 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21260 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21277 # Only expand once:
21283 # Identify the assembler which will work hand-in-glove with the newly
21284 # built GCC, so that we can examine its features. This is the assembler
21285 # which will be driven by the driver program.
21287 # If build != host, and we aren't building gas in-tree, we identify a
21288 # build->target assembler and hope that it will have the same features
21289 # as the host->target assembler we'll be using.
21290 gcc_cv_gas_major_version
=
21291 gcc_cv_gas_minor_version
=
21292 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21294 if test "${gcc_cv_as+set}" = set; then :
21298 if test -x "$DEFAULT_ASSEMBLER"; then
21299 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21300 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21301 && test -f ..
/gas
/Makefile \
21302 && test x
$build = x
$host; then
21303 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21304 elif test -x as
$build_exeext; then
21305 # Build using assembler in the current directory.
21306 gcc_cv_as
=.
/as
$build_exeext
21307 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21308 gcc_cv_as
="$AS_FOR_TARGET"
21310 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21311 set dummy
$AS_FOR_TARGET; ac_word
=$2
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21313 $as_echo_n "checking for $ac_word... " >&6; }
21314 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21315 $as_echo_n "(cached) " >&6
21319 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21323 for as_dir
in $PATH
21326 test -z "$as_dir" && as_dir
=.
21327 for ac_exec_ext
in '' $ac_executable_extensions; do
21328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21329 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21340 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21341 if test -n "$gcc_cv_as"; then
21342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21343 $as_echo "$gcc_cv_as" >&6; }
21345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21346 $as_echo "no" >&6; }
21353 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21355 case "$ORIGINAL_AS_FOR_TARGET" in
21356 .
/as | .
/as
$build_exeext) ;;
21357 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21362 $as_echo_n "checking what assembler to use... " >&6; }
21363 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21364 # Single tree build which includes gas. We want to prefer it
21365 # over whatever linker top-level may have detected, since
21366 # we'll use what we're building after installation anyway.
21367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21368 $as_echo "newly built gas" >&6; }
21370 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21371 for f
in $gcc_cv_as_bfd_srcdir/configure \
21372 $gcc_cv_as_gas_srcdir/configure \
21373 $gcc_cv_as_gas_srcdir/configure.
in \
21374 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21375 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21376 if test x
$gcc_cv_gas_version != x
; then
21380 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21381 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21382 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21383 case $gcc_cv_gas_patch_version in
21384 "") gcc_cv_gas_patch_version
="0" ;;
21386 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21387 + $gcc_cv_gas_minor_version \) \* 1000 \
21388 + $gcc_cv_gas_patch_version`
21390 in_tree_gas_is_elf
=no
21391 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21392 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21393 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21395 in_tree_gas_is_elf
=yes
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21399 $as_echo "$gcc_cv_as" >&6; }
21403 # Identify the linker which will work hand-in-glove with the newly
21404 # built GCC, so that we can examine its features. This is the linker
21405 # which will be driven by the driver program.
21407 # If build != host, and we aren't building gas in-tree, we identify a
21408 # build->target linker and hope that it will have the same features
21409 # as the host->target linker we'll be using.
21410 gcc_cv_gld_major_version
=
21411 gcc_cv_gld_minor_version
=
21412 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21413 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21415 if test "${gcc_cv_ld+set}" = set; then :
21419 if test -x "$DEFAULT_LINKER"; then
21420 gcc_cv_ld
="$DEFAULT_LINKER"
21421 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21422 && test -f ..
/ld
/Makefile \
21423 && test x
$build = x
$host; then
21424 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21425 elif test -x collect-ld
$build_exeext; then
21426 # Build using linker in the current directory.
21427 gcc_cv_ld
=.
/collect-ld
$build_exeext
21428 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21429 gcc_cv_ld
="$LD_FOR_TARGET"
21431 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21432 set dummy
$LD_FOR_TARGET; ac_word
=$2
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21434 $as_echo_n "checking for $ac_word... " >&6; }
21435 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21436 $as_echo_n "(cached) " >&6
21440 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21444 for as_dir
in $PATH
21447 test -z "$as_dir" && as_dir
=.
21448 for ac_exec_ext
in '' $ac_executable_extensions; do
21449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21450 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21461 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21462 if test -n "$gcc_cv_ld"; then
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21464 $as_echo "$gcc_cv_ld" >&6; }
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21467 $as_echo "no" >&6; }
21474 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21475 PLUGIN_LD
=`basename $gcc_cv_ld`
21477 # Check whether --with-plugin-ld was given.
21478 if test "${with_plugin_ld+set}" = set; then :
21479 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21480 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21481 PLUGIN_LD
="$withval"
21487 cat >>confdefs.h
<<_ACEOF
21488 #define PLUGIN_LD "$PLUGIN_LD"
21492 # Check to see if we are using gold instead of ld
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21494 $as_echo_n "checking whether we are using gold... " >&6; }
21496 if test x
$gcc_cv_ld != x
; then
21497 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21498 |
grep "GNU gold" > /dev
/null
; then
21502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21503 $as_echo "$ld_is_gold" >&6; }
21505 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21507 case "$ORIGINAL_LD_FOR_TARGET" in
21508 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21509 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21514 $as_echo_n "checking what linker to use... " >&6; }
21515 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21516 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21517 # Single tree build which includes ld. We want to prefer it
21518 # over whatever linker top-level may have detected, since
21519 # we'll use what we're building after installation anyway.
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21521 $as_echo "newly built ld" >&6; }
21523 in_tree_ld_is_elf
=no
21524 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21525 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21526 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21527 in_tree_ld_is_elf
=yes
21528 elif test "$ld_is_gold" = yes; then
21529 in_tree_ld_is_elf
=yes
21531 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
21533 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21534 if test x
$gcc_cv_gld_version != x
; then
21538 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21539 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21542 $as_echo "$gcc_cv_ld" >&6; }
21546 # Figure out what nm we will be using.
21547 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21548 if test "${gcc_cv_nm+set}" = set; then :
21552 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21553 && test -f ..
/binutils
/Makefile \
21554 && test x
$build = x
$host; then
21555 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21556 elif test -x nm
$build_exeext; then
21557 gcc_cv_nm
=.
/nm
$build_exeext
21558 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21559 gcc_cv_nm
="$NM_FOR_TARGET"
21561 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21562 set dummy
$NM_FOR_TARGET; ac_word
=$2
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21564 $as_echo_n "checking for $ac_word... " >&6; }
21565 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21566 $as_echo_n "(cached) " >&6
21570 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21574 for as_dir
in $PATH
21577 test -z "$as_dir" && as_dir
=.
21578 for ac_exec_ext
in '' $ac_executable_extensions; do
21579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21580 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21591 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21592 if test -n "$gcc_cv_nm"; then
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21594 $as_echo "$gcc_cv_nm" >&6; }
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21597 $as_echo "no" >&6; }
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21605 $as_echo_n "checking what nm to use... " >&6; }
21606 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21607 # Single tree build which includes binutils.
21608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21609 $as_echo "newly built nm" >&6; }
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21613 $as_echo "$gcc_cv_nm" >&6; }
21617 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21619 case "$ORIGINAL_NM_FOR_TARGET" in
21620 .
/nm | .
/nm
$build_exeext) ;;
21621 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21626 # Figure out what objdump we will be using.
21627 if test "${gcc_cv_objdump+set}" = set; then :
21631 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21632 && test -f ..
/binutils
/Makefile \
21633 && test x
$build = x
$host; then
21634 # Single tree build which includes binutils.
21635 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21636 elif test -x objdump
$build_exeext; then
21637 gcc_cv_objdump
=.
/objdump
$build_exeext
21638 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21639 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21641 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21642 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21644 $as_echo_n "checking for $ac_word... " >&6; }
21645 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21646 $as_echo_n "(cached) " >&6
21648 case $gcc_cv_objdump in
21650 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21653 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21654 for as_dir
in $PATH
21657 test -z "$as_dir" && as_dir
=.
21658 for ac_exec_ext
in '' $ac_executable_extensions; do
21659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21660 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21671 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21672 if test -n "$gcc_cv_objdump"; then
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21674 $as_echo "$gcc_cv_objdump" >&6; }
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21677 $as_echo "no" >&6; }
21684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21685 $as_echo_n "checking what objdump to use... " >&6; }
21686 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21687 # Single tree build which includes binutils.
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21689 $as_echo "newly built objdump" >&6; }
21690 elif test x
$gcc_cv_objdump = x
; then
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21692 $as_echo "not found" >&6; }
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21695 $as_echo "$gcc_cv_objdump" >&6; }
21698 # Figure out what readelf we will be using.
21699 if test "${gcc_cv_readelf+set}" = set; then :
21703 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21704 && test -f ..
/binutils
/Makefile \
21705 && test x
$build = x
$host; then
21706 # Single tree build which includes binutils.
21707 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21708 elif test -x readelf
$build_exeext; then
21709 gcc_cv_readelf
=.
/readelf
$build_exeext
21711 # Extract the first word of "readelf", so it can be a program name with args.
21712 set dummy readelf
; ac_word
=$2
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21714 $as_echo_n "checking for $ac_word... " >&6; }
21715 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21716 $as_echo_n "(cached) " >&6
21718 case $gcc_cv_readelf in
21720 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21724 for as_dir
in $PATH
21727 test -z "$as_dir" && as_dir
=.
21728 for ac_exec_ext
in '' $ac_executable_extensions; do
21729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21730 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21741 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21742 if test -n "$gcc_cv_readelf"; then
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21744 $as_echo "$gcc_cv_readelf" >&6; }
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21747 $as_echo "no" >&6; }
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21755 $as_echo_n "checking what readelf to use... " >&6; }
21756 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21757 # Single tree build which includes binutils.
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21759 $as_echo "newly built readelf" >&6; }
21760 elif test x
$gcc_cv_readelf = x
; then
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21762 $as_echo "not found" >&6; }
21764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21765 $as_echo "$gcc_cv_readelf" >&6; }
21768 # Figure out what assembler alignment features are present.
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21770 $as_echo_n "checking assembler flags... " >&6; }
21771 if test "${gcc_cv_as_flags+set}" = set; then :
21772 $as_echo_n "(cached) " >&6
21775 i
[34567]86-*-linux*)
21776 gcc_cv_as_flags
="--32"
21778 powerpc
*-*-darwin*)
21779 gcc_cv_as_flags
="-arch ppc"
21782 gcc_cv_as_flags
=" "
21786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21787 $as_echo "$gcc_cv_as_flags" >&6; }
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21790 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21791 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21792 $as_echo_n "(cached) " >&6
21794 gcc_cv_as_balign_and_p2align
=no
21795 if test $in_tree_gas = yes; then
21796 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21797 then gcc_cv_as_balign_and_p2align
=yes
21799 elif test x
$gcc_cv_as != x
; then
21800 $as_echo '.balign 4
21801 .p2align 2' > conftest.s
21802 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21804 (eval $ac_try) 2>&5
21806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21807 test $ac_status = 0; }; }
21809 gcc_cv_as_balign_and_p2align
=yes
21811 echo "configure: failed program was" >&5
21814 rm -f conftest.o conftest.s
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21818 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21819 if test $gcc_cv_as_balign_and_p2align = yes; then
21821 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21826 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21827 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21828 $as_echo_n "(cached) " >&6
21830 gcc_cv_as_max_skip_p2align
=no
21831 if test $in_tree_gas = yes; then
21832 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21833 then gcc_cv_as_max_skip_p2align
=yes
21835 elif test x
$gcc_cv_as != x
; then
21836 $as_echo '.p2align 4,,7' > conftest.s
21837 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21839 (eval $ac_try) 2>&5
21841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21842 test $ac_status = 0; }; }
21844 gcc_cv_as_max_skip_p2align
=yes
21846 echo "configure: failed program was" >&5
21849 rm -f conftest.o conftest.s
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21853 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21854 if test $gcc_cv_as_max_skip_p2align = yes; then
21856 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21861 $as_echo_n "checking assembler for .literal16... " >&6; }
21862 if test "${gcc_cv_as_literal16+set}" = set; then :
21863 $as_echo_n "(cached) " >&6
21865 gcc_cv_as_literal16
=no
21866 if test $in_tree_gas = yes; then
21867 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21868 then gcc_cv_as_literal16
=yes
21870 elif test x
$gcc_cv_as != x
; then
21871 $as_echo '.literal16' > conftest.s
21872 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21874 (eval $ac_try) 2>&5
21876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21877 test $ac_status = 0; }; }
21879 gcc_cv_as_literal16
=yes
21881 echo "configure: failed program was" >&5
21884 rm -f conftest.o conftest.s
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21888 $as_echo "$gcc_cv_as_literal16" >&6; }
21889 if test $gcc_cv_as_literal16 = yes; then
21891 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21896 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21897 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21898 $as_echo_n "(cached) " >&6
21900 gcc_cv_as_subsection_m1
=no
21901 if test $in_tree_gas = yes; then
21902 if test $in_tree_gas_is_elf = yes \
21903 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21904 then gcc_cv_as_subsection_m1
=yes
21906 elif test x
$gcc_cv_as != x
; then
21907 $as_echo 'conftest_label1: .word 0
21909 conftest_label2: .word 0
21910 .previous' > 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 if test x
$gcc_cv_nm != x
; then
21919 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21920 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21921 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21923 else gcc_cv_as_subsection_m1
=yes
21925 rm -f conftest.nm1 conftest.nm2
21928 echo "configure: failed program was" >&5
21931 rm -f conftest.o conftest.s
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21935 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21936 if test $gcc_cv_as_subsection_m1 = yes; then
21938 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21943 $as_echo_n "checking assembler for .weak... " >&6; }
21944 if test "${gcc_cv_as_weak+set}" = set; then :
21945 $as_echo_n "(cached) " >&6
21948 if test $in_tree_gas = yes; then
21949 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21950 then gcc_cv_as_weak
=yes
21952 elif test x
$gcc_cv_as != x
; then
21953 $as_echo ' .weak foobar' > conftest.s
21954 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21956 (eval $ac_try) 2>&5
21958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21959 test $ac_status = 0; }; }
21963 echo "configure: failed program was" >&5
21966 rm -f conftest.o conftest.s
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21970 $as_echo "$gcc_cv_as_weak" >&6; }
21971 if test $gcc_cv_as_weak = yes; then
21973 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21978 $as_echo_n "checking assembler for .weakref... " >&6; }
21979 if test "${gcc_cv_as_weakref+set}" = set; then :
21980 $as_echo_n "(cached) " >&6
21982 gcc_cv_as_weakref
=no
21983 if test $in_tree_gas = yes; then
21984 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21985 then gcc_cv_as_weakref
=yes
21987 elif test x
$gcc_cv_as != x
; then
21988 $as_echo ' .weakref foobar, barfnot' > conftest.s
21989 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21991 (eval $ac_try) 2>&5
21993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21994 test $ac_status = 0; }; }
21996 gcc_cv_as_weakref
=yes
21998 echo "configure: failed program was" >&5
22001 rm -f conftest.o conftest.s
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22005 $as_echo "$gcc_cv_as_weakref" >&6; }
22006 if test $gcc_cv_as_weakref = yes; then
22008 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22013 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22014 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22015 $as_echo_n "(cached) " >&6
22017 gcc_cv_as_nsubspa_comdat
=no
22018 if test $in_tree_gas = yes; then
22019 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22020 then gcc_cv_as_nsubspa_comdat
=yes
22022 elif test x
$gcc_cv_as != x
; then
22023 $as_echo ' .SPACE $TEXT$
22024 .NSUBSPA $CODE$,COMDAT' > conftest.s
22025 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22027 (eval $ac_try) 2>&5
22029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22030 test $ac_status = 0; }; }
22032 gcc_cv_as_nsubspa_comdat
=yes
22034 echo "configure: failed program was" >&5
22037 rm -f conftest.o conftest.s
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22041 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22042 if test $gcc_cv_as_nsubspa_comdat = yes; then
22044 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22048 # .hidden needs to be supported in both the assembler and the linker,
22049 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22050 # This is irritatingly difficult to feature test for; we have to check the
22051 # date string after the version number. If we've got an in-tree
22052 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22054 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22056 $as_echo_n "checking assembler for .hidden... " >&6; }
22057 if test "${gcc_cv_as_hidden+set}" = set; then :
22058 $as_echo_n "(cached) " >&6
22060 gcc_cv_as_hidden
=no
22061 if test $in_tree_gas = yes; then
22062 if test $in_tree_gas_is_elf = yes \
22063 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22064 then gcc_cv_as_hidden
=yes
22066 elif test x
$gcc_cv_as != x
; then
22067 $as_echo ' .hidden foobar
22068 foobar:' > conftest.s
22069 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22071 (eval $ac_try) 2>&5
22073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22074 test $ac_status = 0; }; }
22077 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22078 # STV_HIDDEN, so disable .hidden support if so.
22079 case "${target}" in
22080 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22081 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
22082 cat > conftest.s
<<EOF
22087 .set default,hidden
22089 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22090 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
22091 grep '\.hidden default' > /dev
/null
; then
22092 gcc_cv_as_hidden
=no
22094 gcc_cv_as_hidden
=yes
22097 # Assume bug is present if objdump is missing.
22098 gcc_cv_as_hidden
=no
22102 gcc_cv_as_hidden
=yes
22106 echo "configure: failed program was" >&5
22109 rm -f conftest.o conftest.s
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22113 $as_echo "$gcc_cv_as_hidden" >&6; }
22115 case "${target}" in
22117 # Darwin as has some visibility support, though with a different syntax.
22118 gcc_cv_as_hidden
=yes
22122 # gnu_indirect_function type is an extension proposed at
22123 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22124 # selection of function implementation
22125 # Check whether --enable-gnu-indirect-function was given.
22126 if test "${enable_gnu_indirect_function+set}" = set; then :
22127 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22129 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22130 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22133 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22136 if test x
$enable_gnu_indirect_function = xyes
; then
22138 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22142 if test $in_tree_ld != yes ; then
22143 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22144 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22145 if test x
"$ld_is_gold" = xyes
; then
22146 # GNU gold --version looks like this:
22148 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22150 # We extract the binutils version which is more familiar and specific
22151 # than the gold version.
22152 ld_vers
=`echo $ld_ver | sed -n \
22153 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22155 # GNU ld --version looks like this:
22157 # GNU ld (GNU Binutils) 2.21.51.20110225
22158 ld_vers
=`echo $ld_ver | sed -n \
22159 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22161 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'`
22162 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22163 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22164 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22166 case "${target}" in
22169 # Solaris 2 ld -V output looks like this for a regular version:
22171 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22173 # but test versions add stuff at the end:
22175 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22177 ld_ver
=`$gcc_cv_ld -V 2>&1`
22178 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22179 ld_vers
=`echo $ld_ver | sed -n \
22180 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22181 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22182 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22190 $as_echo_n "checking linker for .hidden support... " >&6; }
22191 if test "${gcc_cv_ld_hidden+set}" = set; then :
22192 $as_echo_n "(cached) " >&6
22194 if test $in_tree_ld = yes ; then
22195 gcc_cv_ld_hidden
=no
22196 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 \
22197 && test $in_tree_ld_is_elf = yes; then
22198 gcc_cv_ld_hidden
=yes
22201 gcc_cv_ld_hidden
=yes
22202 if test x
"$ld_is_gold" = xyes
; then
22204 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22205 if test 0"$ld_date" -lt 20020404; then
22206 if test -n "$ld_date"; then
22207 # If there was date string, but was earlier than 2002-04-04, fail
22208 gcc_cv_ld_hidden
=no
22209 elif test -z "$ld_vers"; then
22210 # If there was no date string nor ld version number, something is wrong
22211 gcc_cv_ld_hidden
=no
22213 test -z "$ld_vers_patch" && ld_vers_patch
=0
22214 if test "$ld_vers_major" -lt 2; then
22215 gcc_cv_ld_hidden
=no
22216 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22217 gcc_cv_ld_hidden
="no"
22218 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22219 gcc_cv_ld_hidden
=no
22224 case "${target}" in
22226 # Darwin ld has some visibility support.
22227 gcc_cv_ld_hidden
=yes
22229 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22230 gcc_cv_ld_hidden
=yes
22233 # .hidden support was backported to Solaris 8, starting with ld
22235 if test "$ld_vers_minor" -ge 276; then
22236 gcc_cv_ld_hidden
=yes
22238 gcc_cv_ld_hidden
=no
22241 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
22242 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22243 # .symbolic was only added in Solaris 9 12/02.
22244 gcc_cv_ld_hidden
=yes
22247 gcc_cv_ld_hidden
=no
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22254 $as_echo "$gcc_cv_ld_hidden" >&6; }
22255 libgcc_visibility
=no
22258 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22259 libgcc_visibility
=yes
22261 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22266 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22267 gcc_cv_ld_ro_rw_mix
=unknown
22268 if test $in_tree_ld = yes ; then
22269 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 \
22270 && test $in_tree_ld_is_elf = yes; then
22271 gcc_cv_ld_ro_rw_mix
=read-write
22273 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22274 echo '.section myfoosect, "a"' > conftest1.s
22275 echo '.section myfoosect, "aw"' > conftest2.s
22276 echo '.byte 1' >> conftest2.s
22277 echo '.section myfoosect, "a"' > conftest3.s
22278 echo '.byte 0' >> conftest3.s
22279 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22280 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22281 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22282 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22283 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22284 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22285 | sed -e '/myfoosect/!d' -e N`
22286 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22287 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22288 gcc_cv_ld_ro_rw_mix
=read-only
22290 gcc_cv_ld_ro_rw_mix
=read-write
22294 rm -f conftest.
* conftest
[123].
*
22296 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22298 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22302 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22304 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22306 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22307 if test "${gcc_cv_as_leb128+set}" = set; then :
22308 $as_echo_n "(cached) " >&6
22310 gcc_cv_as_leb128
=no
22311 if test $in_tree_gas = yes; then
22312 if test $in_tree_gas_is_elf = yes \
22313 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22314 then gcc_cv_as_leb128
=yes
22316 elif test x
$gcc_cv_as != x
; then
22323 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22325 (eval $ac_try) 2>&5
22327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22328 test $ac_status = 0; }; }
22330 # GAS versions before 2.11 do not support uleb128,
22331 # despite appearing to.
22332 # ??? There exists an elf-specific test that will crash
22333 # the assembler. Perhaps it's better to figure out whether
22334 # arbitrary sections are supported and try the test.
22335 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22336 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22337 as_vers
=`echo $as_ver | sed -n \
22338 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22339 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22340 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22341 if test $as_major -eq 2 && test $as_minor -lt 11
22343 else gcc_cv_as_leb128
=yes
22347 echo "configure: failed program was" >&5
22350 rm -f conftest.o conftest.s
22353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22354 $as_echo "$gcc_cv_as_leb128" >&6; }
22355 if test $gcc_cv_as_leb128 = yes; then
22357 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22361 # Check if we have assembler support for unwind directives.
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22363 $as_echo_n "checking assembler for cfi directives... " >&6; }
22364 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22365 $as_echo_n "(cached) " >&6
22367 gcc_cv_as_cfi_directive
=no
22368 if test x
$gcc_cv_as != x
; then
22374 .cfi_escape 1, 2, 3, 4, 5
22375 .cfi_endproc' > conftest.s
22376 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22378 (eval $ac_try) 2>&5
22380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22381 test $ac_status = 0; }; }
22385 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22386 # read-only and read-write sections, we need to make sure that the
22387 # assembler used emits read-write .eh_frame sections.
22388 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22389 if test "x$gcc_cv_objdump" != x
; then
22390 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22391 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22392 gcc_cv_as_cfi_directive
=no
22395 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22396 # On Solaris/x86, make sure that GCC and gas agree on using
22397 # read-only .eh_frame sections for 64-bit.
22398 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22399 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22400 sed -e /.eh_frame
/!d
-e N | \
22401 grep READONLY
> /dev
/null
; then
22402 gcc_cv_as_cfi_directive
=yes
22404 gcc_cv_as_cfi_directive
=no
22408 gcc_cv_as_cfi_directive
=yes
22413 # no objdump, err on the side of caution
22414 gcc_cv_as_cfi_directive
=no
22417 gcc_cv_as_cfi_directive
=yes
22421 gcc_cv_as_cfi_directive
=yes
22425 echo "configure: failed program was" >&5
22428 rm -f conftest.o conftest.s
22431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22432 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22434 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22436 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22437 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22438 $as_echo_n "(cached) " >&6
22440 gcc_cv_as_cfi_advance_working
=no
22441 if test x
$gcc_cv_as != x
; then
22444 .cfi_adjust_cfa_offset 64
22446 .cfi_adjust_cfa_offset 128
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; }; }
22456 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22457 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22458 gcc_cv_as_cfi_advance_working
=yes
22462 echo "configure: failed program was" >&5
22465 rm -f conftest.o conftest.s
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22469 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22472 # no objdump, err on the side of caution
22473 gcc_cv_as_cfi_advance_working
=no
22477 cat >>confdefs.h
<<_ACEOF
22478 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22479 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22485 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22486 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22487 $as_echo_n "(cached) " >&6
22489 gcc_cv_as_cfi_personality_directive
=no
22490 if test x
$gcc_cv_as != x
; then
22493 .cfi_personality 0, symbol
22494 .cfi_endproc' > conftest.s
22495 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22497 (eval $ac_try) 2>&5
22499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22500 test $ac_status = 0; }; }
22502 gcc_cv_as_cfi_personality_directive
=yes
22504 echo "configure: failed program was" >&5
22507 rm -f conftest.o conftest.s
22510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22511 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22514 cat >>confdefs.h
<<_ACEOF
22515 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22516 then echo 1; else echo 0; fi`
22520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22521 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22522 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22523 $as_echo_n "(cached) " >&6
22525 gcc_cv_as_cfi_sections_directive
=no
22526 if test x
$gcc_cv_as != x
; then
22528 .cfi_sections .debug_frame, .eh_frame
22530 .cfi_endproc' > conftest.s
22531 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22533 (eval $ac_try) 2>&5
22535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22536 test $ac_status = 0; }; }
22539 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22540 # Need to check that we generated the correct relocation for the
22541 # .debug_frame section. This was fixed for binutils 2.21.
22542 gcc_cv_as_cfi_sections_directive
=no
22543 if test "x$gcc_cv_objdump" != x
; then
22544 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22545 grep secrel
> /dev
/null
; then
22546 gcc_cv_as_cfi_sections_directive
=yes
22551 gcc_cv_as_cfi_sections_directive
=yes
22555 echo "configure: failed program was" >&5
22558 rm -f conftest.o conftest.s
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22562 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22566 cat >>confdefs.h
<<_ACEOF
22567 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22568 then echo 1; else echo 0; fi`
22572 # GAS versions up to and including 2.11.0 may mis-optimize
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22575 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22576 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22577 $as_echo_n "(cached) " >&6
22579 gcc_cv_as_eh_frame
=no
22580 if test $in_tree_gas = yes; then
22581 if test $in_tree_gas_is_elf = yes \
22582 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22583 then gcc_cv_as_eh_frame
=yes
22585 elif test x
$gcc_cv_as != x
; then
22592 .section .eh_frame,"aw",@progbits
22594 .4byte .LECIE1-.LSCIE1
22608 .4byte .LEFDE1-.LASFDE1
22610 .4byte .LASFDE1-__FRAME_BEGIN__
22617 .LEFDE1:' > conftest.s
22618 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22620 (eval $ac_try) 2>&5
22622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22623 test $ac_status = 0; }; }
22625 cat > conftest.lit
<<EOF
22626 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22627 0010 01000000 12000000 18000000 00000000 ................
22628 0020 08000000 04080000 0044 .........D
22630 cat > conftest.big
<<EOF
22631 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22632 0010 00000001 00000012 00000018 00000000 ................
22633 0020 00000008 04000000 0844 .........D
22635 # If the assembler didn't choke, and we can objdump,
22636 # and we got the correct data, then succeed.
22637 # The text in the here-document typically retains its unix-style line
22638 # endings, while the output of objdump will use host line endings.
22639 # Therefore, use diff -b for the comparisons.
22640 if test x
$gcc_cv_objdump != x \
22641 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22642 |
tail -3 > conftest.got \
22643 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22644 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22646 gcc_cv_as_eh_frame
=yes
22647 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22649 (eval $ac_try) 2>&5
22651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22652 test $ac_status = 0; }; }; then
22653 gcc_cv_as_eh_frame
=buggy
22655 # Uh oh, what do we do now?
22656 gcc_cv_as_eh_frame
=no
22659 echo "configure: failed program was" >&5
22662 rm -f conftest.o conftest.s
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22666 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22669 if test $gcc_cv_as_eh_frame = buggy
; then
22671 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22676 $as_echo_n "checking assembler for section merging support... " >&6; }
22677 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22678 $as_echo_n "(cached) " >&6
22680 gcc_cv_as_shf_merge
=no
22681 if test $in_tree_gas = yes; then
22682 if test $in_tree_gas_is_elf = yes \
22683 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22684 then gcc_cv_as_shf_merge
=yes
22686 elif test x
$gcc_cv_as != x
; then
22687 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22688 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22690 (eval $ac_try) 2>&5
22692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22693 test $ac_status = 0; }; }
22695 gcc_cv_as_shf_merge
=yes
22697 echo "configure: failed program was" >&5
22700 rm -f conftest.o conftest.s
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22704 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22706 if test $gcc_cv_as_shf_merge = no
; then
22707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22708 $as_echo_n "checking assembler for section merging support... " >&6; }
22709 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22710 $as_echo_n "(cached) " >&6
22712 gcc_cv_as_shf_merge
=no
22713 if test $in_tree_gas = yes; then
22714 if test $in_tree_gas_is_elf = yes \
22715 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22716 then gcc_cv_as_shf_merge
=yes
22718 elif test x
$gcc_cv_as != x
; then
22719 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22720 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22722 (eval $ac_try) 2>&5
22724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22725 test $ac_status = 0; }; }
22727 gcc_cv_as_shf_merge
=yes
22729 echo "configure: failed program was" >&5
22732 rm -f conftest.o conftest.s
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22736 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22740 cat >>confdefs.h
<<_ACEOF
22741 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22746 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22747 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22748 $as_echo_n "(cached) " >&6
22750 gcc_cv_as_comdat_group
=no
22751 if test $in_tree_gas = yes; then
22752 if test $in_tree_gas_is_elf = yes \
22753 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22754 then gcc_cv_as_comdat_group
=yes
22756 elif test x
$gcc_cv_as != x
; then
22757 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22758 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22760 (eval $ac_try) 2>&5
22762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22763 test $ac_status = 0; }; }
22765 gcc_cv_as_comdat_group
=yes
22767 echo "configure: failed program was" >&5
22770 rm -f conftest.o conftest.s
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22774 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22776 if test $gcc_cv_as_comdat_group = yes; then
22777 gcc_cv_as_comdat_group_percent
=no
22778 gcc_cv_as_comdat_group_group
=no
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22781 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22782 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22783 $as_echo_n "(cached) " >&6
22785 gcc_cv_as_comdat_group_percent
=no
22786 if test $in_tree_gas = yes; then
22787 if test $in_tree_gas_is_elf = yes \
22788 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22789 then gcc_cv_as_comdat_group_percent
=yes
22791 elif test x
$gcc_cv_as != x
; then
22792 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22793 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22795 (eval $ac_try) 2>&5
22797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22798 test $ac_status = 0; }; }
22800 gcc_cv_as_comdat_group_percent
=yes
22802 echo "configure: failed program was" >&5
22805 rm -f conftest.o conftest.s
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22809 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22811 if test $gcc_cv_as_comdat_group_percent = yes; then
22812 gcc_cv_as_comdat_group_group
=no
22814 case "${target}" in
22815 # Sun as uses a completely different syntax.
22817 case "${target}" in
22818 sparc
*-*-solaris2*)
22820 .group foo,".text%foo",#comdat
22821 .section ".text%foo", #alloc,#execinstr,#progbits
22826 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
22828 .group foo,.text%foo,#comdat
22829 .section .text%foo, "ax", @progbits
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22836 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22837 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22838 $as_echo_n "(cached) " >&6
22840 gcc_cv_as_comdat_group_group
=no
22841 if test x
$gcc_cv_as != x
; then
22842 $as_echo "$conftest_s" > conftest.s
22843 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22845 (eval $ac_try) 2>&5
22847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22848 test $ac_status = 0; }; }
22850 gcc_cv_as_comdat_group_group
=yes
22852 echo "configure: failed program was" >&5
22855 rm -f conftest.o conftest.s
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22859 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22865 if test x
"$ld_is_gold" = xyes
; then
22867 elif test $in_tree_ld = yes ; then
22869 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 \
22870 && test $in_tree_ld_is_elf = yes; then
22873 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22875 if test 0"$ld_date" -lt 20050308; then
22876 if test -n "$ld_date"; then
22877 # If there was date string, but was earlier than 2005-03-08, fail
22879 elif test "$ld_vers_major" -lt 2; then
22881 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22886 case "${target}" in
22887 *-*-solaris2.1
[1-9]*)
22889 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22890 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22893 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22894 # least ld version 1.2267.
22895 if test "$ld_vers_major" -gt 1; then
22897 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
22899 elif test "$ld_vers_minor" -ge 2267; then
22904 # Assume linkers other than GNU ld don't support COMDAT group.
22909 # Allow overriding the automatic COMDAT group tests above.
22910 # Check whether --enable-comdat was given.
22911 if test "${enable_comdat+set}" = set; then :
22912 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
22915 if test $comdat_group = no
; then
22916 gcc_cv_as_comdat_group
=no
22917 gcc_cv_as_comdat_group_percent
=no
22918 gcc_cv_as_comdat_group_group
=no
22921 cat >>confdefs.h
<<_ACEOF
22922 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22923 || test $gcc_cv_as_comdat_group_percent = yes \
22924 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22929 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22930 if test "${gcc_cv_as_discriminator+set}" = set; then :
22931 $as_echo_n "(cached) " >&6
22933 gcc_cv_as_discriminator
=no
22934 if test $in_tree_gas = yes; then
22935 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22936 then gcc_cv_as_discriminator
=yes
22938 elif test x
$gcc_cv_as != x
; then
22941 .loc 1 1 0 discriminator 1' > conftest.s
22942 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22944 (eval $ac_try) 2>&5
22946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22947 test $ac_status = 0; }; }
22949 gcc_cv_as_discriminator
=yes
22951 echo "configure: failed program was" >&5
22954 rm -f conftest.o conftest.s
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22958 $as_echo "$gcc_cv_as_discriminator" >&6; }
22959 if test $gcc_cv_as_discriminator = yes; then
22961 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22965 # Thread-local storage - the check is heavily parameterized.
22973 .section ".tdata","awT",@progbits
22976 ldq $27,__tls_get_addr($29) !literal!1
22977 lda $16,foo($29) !tlsgd!1
22978 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22979 ldq $27,__tls_get_addr($29) !literal!2
22980 lda $16,foo($29) !tlsldm!2
22981 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22982 ldq $1,foo($29) !gotdtprel
22983 ldah $2,foo($29) !dtprelhi
22984 lda $3,foo($2) !dtprello
22985 lda $4,foo($29) !dtprel
22986 ldq $1,foo($29) !gottprel
22987 ldah $2,foo($29) !tprelhi
22988 lda $3,foo($2) !tprello
22989 lda $4,foo($29) !tprel'
22992 tls_as_opt
=--fatal-warnings
22994 cris-
*-*|crisv32-
*-*)
22996 .section ".tdata","awT",@progbits
23003 tls_as_opt
=--fatal-warnings
23007 .section ".tdata","awT",@progbits
23010 call #gettlsoff(x)'
23019 .section ".tdata","awT",@progbits
23023 addil LT%foo-$tls_gdidx$,gp
23024 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23027 addil LT%foo-$tls_ldidx$,gp
23029 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23030 addil LR%foo-$tls_dtpoff$,%ret0
23031 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23033 addil LT%foo-$tls_ieoff$,gp
23034 ldw RT%foo-$tls_ieoff$(%r1),%t2
23037 addil LR%foo-$tls_leoff$,%t1
23038 ldo RR%foo-$tls_leoff$(%r1),%t2'
23041 tls_as_opt
=--fatal-warnings
23045 .section ".tdata","awT",%progbits
23048 .word foo(gottpoff)
23056 i
[34567]86-*-* | x86_64-
*-solaris2.1
[0-9]*)
23058 i
[34567]86-*-solaris2.
*)
23060 tga_func
=___tls_get_addr
23062 x86_64-
*-solaris2.1
[0-9]*)
23064 tga_func
=__tls_get_addr
23070 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23072 .section .tdata,"awt",@progbits'
23076 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23080 .section ".tdata","awT",@progbits'
23083 tls_as_opt
="--fatal-warnings"
23085 conftest_s
="$conftest_s
23089 leal foo@tlsgd(,%ebx,1), %eax
23090 leal foo@tlsldm(%ebx), %eax
23091 leal foo@dtpoff(%eax), %edx
23092 movl foo@gottpoff(%ebx), %eax
23093 subl foo@gottpoff(%ebx), %eax
23094 addl foo@gotntpoff(%ebx), %eax
23095 movl foo@indntpoff, %eax
23096 movl \$foo@tpoff, %eax
23097 subl \$foo@tpoff, %eax
23098 leal foo@ntpoff(%ecx), %eax"
23102 .section ".tdata","awT",@progbits
23106 leaq foo@TLSGD(%rip), %rdi
23107 leaq foo@TLSLD(%rip), %rdi
23108 leaq foo@DTPOFF(%rax), %rdx
23109 movq foo@GOTTPOFF(%rip), %rax
23110 movq $foo@TPOFF, %rax'
23113 tls_as_opt
=--fatal-warnings
23117 .section ".tdata","awT",@progbits
23120 addl r16 = @ltoff(@dtpmod(foo#)), gp
23121 addl r17 = @ltoff(@dtprel(foo#)), gp
23122 addl r18 = @ltoff(@tprel(foo#)), gp
23123 addl r19 = @dtprel(foo#), gp
23124 adds r21 = @dtprel(foo#), r13
23125 movl r23 = @dtprel(foo#)
23126 addl r20 = @tprel(foo#), gp
23127 adds r22 = @tprel(foo#), r13
23128 movl r24 = @tprel(foo#)'
23131 tls_as_opt
=--fatal-warnings
23135 .section .tdata,"awT",@progbits
23139 addiu $4, $28, %tlsgd(x)
23140 addiu $4, $28, %tlsldm(x)
23141 lui $4, %dtprel_hi(x)
23142 addiu $4, $4, %dtprel_lo(x)
23143 lw $4, %gottprel(x)($28)
23144 lui $4, %tprel_hi(x)
23145 addiu $4, $4, %tprel_lo(x)'
23148 tls_as_opt
='-32 --fatal-warnings'
23152 .section .tdata,"awT",@progbits
23157 move.l x@TLSGD(%a5),%a0
23158 move.l x@TLSLDM(%a5),%a0
23159 move.l x@TLSLDO(%a5),%a0
23160 move.l x@TLSIE(%a5),%a0
23161 move.l x@TLSLE(%a5),%a0'
23164 tls_as_opt
='--fatal-warnings'
23168 .section ".tdata","awT",@progbits
23176 addi 3,31,ld0@got@tlsgd
23178 addi 3,31,x1@got@tlsld
23181 addis 9,3,x2@dtprel@ha
23182 addi 9,9,x2@dtprel@l
23183 lwz 9,x3@got@tprel(31)
23186 addis 9,2,x2@tprel@ha
23187 addi 9,9,x2@tprel@l'
23190 tls_as_opt
="-a32 --fatal-warnings"
23194 .section ".tdata","awT",@progbits
23202 addi 3,2,ld0@got@tlsgd
23208 addi 3,2,x1@got@tlsld
23214 addis 9,3,x2@dtprel@ha
23215 addi 9,9,x2@dtprel@l
23218 ld 9,x3@got@dtprel(2)
23224 tls_as_opt
="-a64 --fatal-warnings"
23228 .section ".tdata","awT",@progbits
23235 .long foo@GOTNTPOFF
23236 .long foo@INDNTPOFF
23237 l %r1,foo@GOTNTPOFF(%r12)
23238 l %r1,0(%r1):tls_load:foo
23239 bas %r14,0(%r1,%r13):tls_gdcall:foo
23240 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23243 tls_as_opt
="-m31 --fatal-warnings"
23247 .section ".tdata","awT",@progbits
23254 .quad foo@GOTNTPOFF
23255 lg %r1,foo@GOTNTPOFF(%r12)
23256 larl %r1,foo@INDNTPOFF
23257 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23258 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23261 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23263 sh-
*-* | sh
[34]-*-*)
23265 .section ".tdata","awT",@progbits
23275 tls_as_opt
=--fatal-warnings
23279 sparc
*-sun-solaris2.
*)
23281 tga_func
=__tls_get_addr
23287 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23289 .section ".tdata",#alloc,#write,#tls'
23294 .section ".tdata","awT",@progbits'
23297 tls_as_opt
="-32 --fatal-warnings"
23299 conftest_s
="$conftest_s
23302 sethi %tgd_hi22(foo), %o0
23303 add %o0, %tgd_lo10(foo), %o1
23304 add %l7, %o1, %o0, %tgd_add(foo)
23305 call __tls_get_addr, %tgd_call(foo)
23306 sethi %tldm_hi22(foo), %l1
23307 add %l1, %tldm_lo10(foo), %l2
23308 add %l7, %l2, %o0, %tldm_add(foo)
23309 call __tls_get_addr, %tldm_call(foo)
23310 sethi %tldo_hix22(foo), %l3
23311 xor %l3, %tldo_lox10(foo), %l4
23312 add %o0, %l4, %l5, %tldo_add(foo)
23313 sethi %tie_hi22(foo), %o3
23314 add %o3, %tie_lo10(foo), %o3
23315 ld [%l7 + %o3], %o2, %tie_ld(foo)
23316 add %g7, %o2, %o4, %tie_add(foo)
23317 sethi %tle_hix22(foo), %l1
23318 xor %l1, %tle_lox10(foo), %o5
23319 ld [%g7 + %o5], %o1"
23323 .section ".tdata","awT",@progbits
23326 movi a8, foo@TLSFUNC
23327 movi a10, foo@TLSARG
23328 callx8.tls a8, foo@TLSCALL'
23334 if test "x$enable_tls" = xno
; then
23335 : # TLS explicitly disabled.
23336 elif test "x$enable_tls" = xyes
; then
23337 set_have_as_tls
=yes # TLS explicitly enabled.
23338 elif test -z "$tls_first_major"; then
23339 : # If we don't have a check, assume no support.
23341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23342 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23343 if test "${gcc_cv_as_tls+set}" = set; then :
23344 $as_echo_n "(cached) " >&6
23347 if test $in_tree_gas = yes; then
23348 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23349 then gcc_cv_as_tls
=yes
23351 elif test x
$gcc_cv_as != x
; then
23352 $as_echo "$conftest_s" > conftest.s
23353 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23355 (eval $ac_try) 2>&5
23357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23358 test $ac_status = 0; }; }
23362 echo "configure: failed program was" >&5
23365 rm -f conftest.o conftest.s
23368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23369 $as_echo "$gcc_cv_as_tls" >&6; }
23370 if test $gcc_cv_as_tls = yes; then
23371 set_have_as_tls
=yes
23376 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23377 # with TLS support are in use, native TLS cannot work.
23381 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23382 # gld with TLS support are in use, native TLS cannot work.
23385 # TLS was introduced in the Solaris 9 FCS release and backported to
23386 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23387 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23388 # ld and GCC don't support any longer.
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23391 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23393 # Check ld and ld.so.1 TLS support.
23394 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23395 # Assume all interesting versions of GNU ld have TLS support.
23396 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23400 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23402 min_tls_ld_vers_minor
=280
23404 # Solaris 8/SPARC ld has TLS support since version 1.272.
23405 sparc
*-*-solaris2.8
)
23406 min_tls_ld_vers_minor
=272
23408 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23410 min_tls_ld_vers_minor
=374
23412 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23413 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
23414 min_tls_ld_vers_minor
=343
23417 if test "$ld_vers_major" -gt 1 || \
23418 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23425 $as_echo "$ld_tls_support" >&6; }
23428 save_LDFLAGS
="$LDFLAGS"
23432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23433 $as_echo_n "checking alternate thread library... " >&6; }
23435 # TLS support was backported to Solaris 8 patches, but only lives in
23436 # the alternate thread library which became the default in Solaris 9.
23437 # We want to always use that, irrespective of TLS support.
23439 # Take multilib subdir into account. There's no spec to handle
23440 # this. The 64 symlink exists since Solaris 8.
23441 lwp_dir
=/usr
/lib
/lwp
23442 lwp_spec
="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23443 LDFLAGS
="-L$lwp_dir -R$lwp_dir"
23450 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23452 cat >>confdefs.h
<<_ACEOF
23453 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23457 $as_echo "$lwp_dir" >&6; }
23459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23460 $as_echo_n "checking library containing $tga_func... " >&6; }
23461 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23462 # (32-bit x86) only lived in libthread, so check for that. Keep
23463 # set_have_as_tls if found, disable if not.
23464 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23466 $as_echo_n "checking for library containing $tga_func... " >&6; }
23467 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23468 $as_echo_n "(cached) " >&6
23470 ac_func_search_save_LIBS
=$LIBS
23471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23472 /* end confdefs.h. */
23474 /* Override any GCC internal prototype to avoid an error.
23475 Use char because int might match the return type of a GCC
23476 builtin and then its argument prototype would still apply. */
23484 return $tga_func ();
23489 for ac_lib
in '' thread
; do
23490 if test -z "$ac_lib"; then
23491 ac_res
="none required"
23494 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
23496 if ac_fn_c_try_link
"$LINENO"; then :
23497 eval "$as_ac_Search=\$ac_res"
23499 rm -f core conftest.err conftest.
$ac_objext \
23501 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23505 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23508 eval "$as_ac_Search=no"
23510 rm conftest.
$ac_ext
23511 LIBS
=$ac_func_search_save_LIBS
23513 eval ac_res
=\$
$as_ac_Search
23514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23515 $as_echo "$ac_res" >&6; }
23516 eval ac_res
=\$
$as_ac_Search
23517 if test "$ac_res" != no
; then :
23518 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
23524 # Clear LIBS if we cannot support TLS.
23525 if test $set_have_as_tls = no
; then
23528 # Always define LIB_TLS_SPEC, even without TLS support.
23530 cat >>confdefs.h
<<_ACEOF
23531 #define LIB_TLS_SPEC "$LIBS"
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23535 $as_echo "$LIBS" >&6; }
23538 LDFLAGS
="$save_LDFLAGS"
23541 if test $set_have_as_tls = yes ; then
23543 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23547 # Target-specific assembler checks.
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23550 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23551 gcc_cv_ld_static_dynamic
=no
23552 gcc_cv_ld_static_option
='-Bstatic'
23553 gcc_cv_ld_dynamic_option
='-Bdynamic'
23554 if test $in_tree_ld = yes ; then
23555 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
23556 gcc_cv_ld_static_dynamic
=yes
23558 elif test x
$gcc_cv_ld != x
; then
23559 # Check if linker supports -Bstatic/-Bdynamic option
23560 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23561 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23562 gcc_cv_ld_static_dynamic
=yes
23565 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23567 gcc_cv_ld_static_dynamic
=yes
23568 gcc_cv_ld_static_option
="-noso"
23569 gcc_cv_ld_dynamic_option
="-so_archive"
23571 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23573 gcc_cv_ld_static_dynamic
=yes
23575 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23577 gcc_cv_ld_static_dynamic
=yes
23582 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23584 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23587 cat >>confdefs.h
<<_ACEOF
23588 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23592 cat >>confdefs.h
<<_ACEOF
23593 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23598 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23600 if test x
"$demangler_in_ld" = xyes
; then
23601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23602 $as_echo_n "checking linker --demangle support... " >&6; }
23603 gcc_cv_ld_demangle
=no
23604 if test $in_tree_ld = yes; then
23605 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 \
23606 gcc_cv_ld_demangle
=yes
23608 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23609 # Check if the GNU linker supports --demangle option
23610 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23611 gcc_cv_ld_demangle
=yes
23614 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23616 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23620 $as_echo "$gcc_cv_ld_demangle" >&6; }
23623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23624 $as_echo_n "checking linker plugin support... " >&6; }
23625 gcc_cv_lto_plugin
=0
23626 if test -f liblto_plugin.la
; then
23627 save_ld_ver
="$ld_ver"
23628 save_ld_vers_major
="$ld_vers_major"
23629 save_ld_vers_minor
="$ld_vers_minor"
23630 save_ld_is_gold
="$ld_is_gold"
23634 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23636 # FIXME: ld_is_gold?
23637 ld_vers_major
="$gcc_cv_gld_major_version"
23638 ld_vers_minor
="$gcc_cv_gld_minor_version"
23640 # Determine plugin linker version.
23641 # FIXME: Partial duplicate from above, generalize.
23642 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23643 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23644 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23646 ld_vers
=`echo $ld_ver | sed -n \
23647 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23649 ld_vers
=`echo $ld_ver | sed -n \
23650 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23652 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23653 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23657 # Determine plugin support.
23658 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23659 # Require GNU ld or gold 2.21+ for plugin support by default.
23660 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23661 gcc_cv_lto_plugin
=2
23662 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23663 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23664 gcc_cv_lto_plugin
=1
23668 ld_ver
="$save_ld_ver"
23669 ld_vers_major
="$save_ld_vers_major"
23670 ld_vers_minor
="$save_ld_vers_minor"
23671 ld_is_gold
="$save_ld_is_gold"
23674 cat >>confdefs.h
<<_ACEOF
23675 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23679 $as_echo "$gcc_cv_lto_plugin" >&6; }
23682 # All TARGET_ABI_OSF targets.
23683 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
23684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23685 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23686 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23687 $as_echo_n "(cached) " >&6
23689 gcc_cv_as_alpha_explicit_relocs
=no
23690 if test $in_tree_gas = yes; then
23691 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23692 then gcc_cv_as_alpha_explicit_relocs
=yes
23694 elif test x
$gcc_cv_as != x
; then
23695 $as_echo ' .set nomacro
23697 extbl $3, $2, $3 !lituse_bytoff!1
23698 ldq $2, a($29) !literal!1
23699 ldq $4, b($29) !literal!2
23700 ldq_u $3, 0($2) !lituse_base!1
23701 ldq $27, f($29) !literal!5
23702 jsr $26, ($27), f !lituse_jsr!5
23703 ldah $29, 0($26) !gpdisp!3
23704 lda $0, c($29) !gprel
23705 ldah $1, d($29) !gprelhigh
23706 lda $1, d($1) !gprellow
23707 lda $29, 0($29) !gpdisp!3' > conftest.s
23708 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23710 (eval $ac_try) 2>&5
23712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23713 test $ac_status = 0; }; }
23715 gcc_cv_as_alpha_explicit_relocs
=yes
23717 echo "configure: failed program was" >&5
23720 rm -f conftest.o conftest.s
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23724 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23725 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23727 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23731 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23732 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23733 $as_echo_n "(cached) " >&6
23735 gcc_cv_as_alpha_jsrdirect_relocs
=no
23736 if test $in_tree_gas = yes; then
23737 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23738 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
23740 elif test x
$gcc_cv_as != x
; then
23741 $as_echo ' .set nomacro
23743 ldq $27, a($29) !literal!1
23744 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23745 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23747 (eval $ac_try) 2>&5
23749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23750 test $ac_status = 0; }; }
23752 gcc_cv_as_alpha_jsrdirect_relocs
=yes
23754 echo "configure: failed program was" >&5
23757 rm -f conftest.o conftest.s
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23761 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23762 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23764 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23771 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23772 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23773 $as_echo_n "(cached) " >&6
23775 gcc_cv_as_cris_no_mul_bug
=no
23776 if test $in_tree_gas = yes; then
23777 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23778 then gcc_cv_as_cris_no_mul_bug
=yes
23780 elif test x
$gcc_cv_as != x
; then
23781 $as_echo '.text' > conftest.s
23782 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23784 (eval $ac_try) 2>&5
23786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23787 test $ac_status = 0; }; }
23789 gcc_cv_as_cris_no_mul_bug
=yes
23791 echo "configure: failed program was" >&5
23794 rm -f conftest.o conftest.s
23797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23798 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23799 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23801 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23808 $as_echo_n "checking assembler for .register... " >&6; }
23809 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23810 $as_echo_n "(cached) " >&6
23812 gcc_cv_as_sparc_register_op
=no
23813 if test x
$gcc_cv_as != x
; then
23814 $as_echo '.register %g2, #scratch' > 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_sparc_register_op
=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_sparc_register_op" >&5
23831 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23832 if test $gcc_cv_as_sparc_register_op = yes; then
23834 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23839 $as_echo_n "checking assembler for -relax option... " >&6; }
23840 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23841 $as_echo_n "(cached) " >&6
23843 gcc_cv_as_sparc_relax
=no
23844 if test x
$gcc_cv_as != x
; then
23845 $as_echo '.text' > conftest.s
23846 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23848 (eval $ac_try) 2>&5
23850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23851 test $ac_status = 0; }; }
23853 gcc_cv_as_sparc_relax
=yes
23855 echo "configure: failed program was" >&5
23858 rm -f conftest.o conftest.s
23861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23862 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23863 if test $gcc_cv_as_sparc_relax = yes; then
23865 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23870 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23871 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23872 $as_echo_n "(cached) " >&6
23874 gcc_cv_as_sparc_gotdata_op
=no
23875 if test x
$gcc_cv_as != x
; then
23881 sethi %gdop_hix22(foo), %g1
23882 xor %g1, %gdop_lox10(foo), %g1
23883 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23884 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23886 (eval $ac_try) 2>&5
23888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23889 test $ac_status = 0; }; }
23891 if test x
$gcc_cv_ld != x \
23892 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
23893 if test x
$gcc_cv_objdump != x
; then
23894 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
23895 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
23896 gcc_cv_as_sparc_gotdata_op
=no
23898 gcc_cv_as_sparc_gotdata_op
=yes
23904 echo "configure: failed program was" >&5
23907 rm -f conftest.o conftest.s
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23911 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23912 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23914 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23919 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23920 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23921 $as_echo_n "(cached) " >&6
23923 gcc_cv_as_sparc_ua_pcrel
=no
23924 if test x
$gcc_cv_as != x
; then
23931 .uaword %r_disp32(foo)' > conftest.s
23932 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23934 (eval $ac_try) 2>&5
23936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23937 test $ac_status = 0; }; }
23939 if test x
$gcc_cv_ld != x \
23940 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
23941 gcc_cv_as_sparc_ua_pcrel
=yes
23945 echo "configure: failed program was" >&5
23948 rm -f conftest.o conftest.s
23951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23952 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23953 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23955 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23959 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23960 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23961 $as_echo_n "(cached) " >&6
23963 gcc_cv_as_sparc_ua_pcrel_hidden
=no
23964 if test x
$gcc_cv_as != x
; then
23968 .uaword %r_disp32(foo)
23969 .byte 0x32, 0x33, 0x34
23973 .skip 4' > conftest.s
23974 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23976 (eval $ac_try) 2>&5
23978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23979 test $ac_status = 0; }; }
23981 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
23982 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
23983 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
23984 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
23985 if $gcc_cv_objdump -R conftest
2> /dev
/null \
23986 |
grep 'DISP32' > /dev
/null
2>&1; then
23989 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
23994 echo "configure: failed program was" >&5
23997 rm -f conftest.o conftest.s
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24001 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24002 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24004 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24008 fi # unaligned pcrel relocs
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24011 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24012 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24013 $as_echo_n "(cached) " >&6
24015 gcc_cv_as_sparc_offsetable_lo10
=no
24016 if test x
$gcc_cv_as != x
; then
24018 or %g1, %lo(ab) + 12, %g1
24019 or %g1, %lo(ab + 12), %g1' > conftest.s
24020 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24022 (eval $ac_try) 2>&5
24024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24025 test $ac_status = 0; }; }
24027 if test x
$gcc_cv_objdump != x \
24028 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24029 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24030 gcc_cv_as_sparc_offsetable_lo10
=yes
24033 echo "configure: failed program was" >&5
24036 rm -f conftest.o conftest.s
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24040 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24041 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24043 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24048 i
[34567]86-*-* | x86_64-
*-*)
24051 # Full C++ conformance when using a shared libstdc++-v3 requires some
24052 # support from the Cygwin DLL, which in more recent versions exports
24053 # wrappers to aid in interposing and redirecting operators new, delete,
24054 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24055 # are configuring for a version of Cygwin that exports the wrappers.
24056 if test x
$host = x
$target; then
24057 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24058 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24059 gcc_ac_cygwin_dll_wrappers
=yes
24061 gcc_ac_cygwin_dll_wrappers
=no
24065 # Can't check presence of libc functions during cross-compile, so
24066 # we just have to assume we're building for an up-to-date target.
24067 gcc_ac_cygwin_dll_wrappers
=yes
24070 cat >>confdefs.h
<<_ACEOF
24071 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24076 cygwin
* | pe | mingw32
*)
24077 # Recent binutils allows the three-operand form of ".comm" on PE. This
24078 # definition is used unconditionally to initialise the default state of
24079 # the target option variable that governs usage of the feature.
24080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24081 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24082 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24083 $as_echo_n "(cached) " >&6
24085 gcc_cv_as_comm_has_align
=no
24086 if test $in_tree_gas = yes; then
24087 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24088 then gcc_cv_as_comm_has_align
=yes
24090 elif test x
$gcc_cv_as != x
; then
24091 $as_echo '.comm foo,1,32' > conftest.s
24092 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24094 (eval $ac_try) 2>&5
24096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24097 test $ac_status = 0; }; }
24099 gcc_cv_as_comm_has_align
=yes
24101 echo "configure: failed program was" >&5
24104 rm -f conftest.o conftest.s
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24108 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24111 cat >>confdefs.h
<<_ACEOF
24112 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24115 # Used for DWARF 2 in PE
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24117 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24118 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24119 $as_echo_n "(cached) " >&6
24121 gcc_cv_as_ix86_pe_secrel32
=no
24122 if test $in_tree_gas = yes; then
24123 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24124 then gcc_cv_as_ix86_pe_secrel32
=yes
24126 elif test x
$gcc_cv_as != x
; then
24130 .secrel32 foo' > conftest.s
24131 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24133 (eval $ac_try) 2>&5
24135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24136 test $ac_status = 0; }; }
24138 if test x
$gcc_cv_ld != x \
24139 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24140 gcc_cv_as_ix86_pe_secrel32
=yes
24144 echo "configure: failed program was" >&5
24147 rm -f conftest.o conftest.s
24150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24151 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24152 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24154 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24157 # Test if the assembler supports the extended form of the .section
24158 # directive that specifies section alignment. LTO support uses this,
24159 # but normally only after installation, so we warn but don't fail the
24160 # configure if LTO is enabled but the assembler does not support it.
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24162 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24163 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24164 $as_echo_n "(cached) " >&6
24166 gcc_cv_as_section_has_align
=no
24167 if test $in_tree_gas = yes; then
24168 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24169 then gcc_cv_as_section_has_align
=yes
24171 elif test x
$gcc_cv_as != x
; then
24172 $as_echo '.section lto_test,"dr0"' > conftest.s
24173 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24175 (eval $ac_try) 2>&5
24177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24178 test $ac_status = 0; }; }
24180 gcc_cv_as_section_has_align
=yes
24182 echo "configure: failed program was" >&5
24185 rm -f conftest.o conftest.s
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24189 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24191 if test x
$gcc_cv_as_section_has_align != xyes
; then
24192 case ",$enable_languages," in
24194 { $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
24195 $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;}
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24203 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24204 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24205 $as_echo_n "(cached) " >&6
24207 gcc_cv_as_ix86_filds
=no
24208 if test x
$gcc_cv_as != x
; then
24209 $as_echo 'filds mem; fists mem' > conftest.s
24210 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24212 (eval $ac_try) 2>&5
24214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24215 test $ac_status = 0; }; }
24217 gcc_cv_as_ix86_filds
=yes
24219 echo "configure: failed program was" >&5
24222 rm -f conftest.o conftest.s
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24226 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24227 if test $gcc_cv_as_ix86_filds = yes; then
24229 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24234 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24235 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24236 $as_echo_n "(cached) " >&6
24238 gcc_cv_as_ix86_fildq
=no
24239 if test x
$gcc_cv_as != x
; then
24240 $as_echo 'fildq mem; fistpq mem' > conftest.s
24241 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24243 (eval $ac_try) 2>&5
24245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24246 test $ac_status = 0; }; }
24248 gcc_cv_as_ix86_fildq
=yes
24250 echo "configure: failed program was" >&5
24253 rm -f conftest.o conftest.s
24256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24257 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24258 if test $gcc_cv_as_ix86_fildq = yes; then
24260 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24265 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24266 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24267 $as_echo_n "(cached) " >&6
24269 gcc_cv_as_ix86_cmov_sun_syntax
=no
24270 if test x
$gcc_cv_as != x
; then
24271 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24272 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24274 (eval $ac_try) 2>&5
24276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24277 test $ac_status = 0; }; }
24279 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24281 echo "configure: failed program was" >&5
24284 rm -f conftest.o conftest.s
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24288 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24289 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24291 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24296 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24297 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24298 $as_echo_n "(cached) " >&6
24300 gcc_cv_as_ix86_ffreep
=no
24301 if test x
$gcc_cv_as != x
; then
24302 $as_echo 'ffreep %st(1)' > conftest.s
24303 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24305 (eval $ac_try) 2>&5
24307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24308 test $ac_status = 0; }; }
24310 gcc_cv_as_ix86_ffreep
=yes
24312 echo "configure: failed program was" >&5
24315 rm -f conftest.o conftest.s
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24319 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24320 if test $gcc_cv_as_ix86_ffreep = yes; then
24322 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24327 $as_echo_n "checking assembler for .quad directive... " >&6; }
24328 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24329 $as_echo_n "(cached) " >&6
24331 gcc_cv_as_ix86_quad
=no
24332 if test x
$gcc_cv_as != x
; then
24333 $as_echo '.quad 0' > conftest.s
24334 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24336 (eval $ac_try) 2>&5
24338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24339 test $ac_status = 0; }; }
24341 gcc_cv_as_ix86_quad
=yes
24343 echo "configure: failed program was" >&5
24346 rm -f conftest.o conftest.s
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24350 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24351 if test $gcc_cv_as_ix86_quad = yes; then
24353 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24358 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24359 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24360 $as_echo_n "(cached) " >&6
24362 gcc_cv_as_ix86_sahf
=no
24363 if test x
$gcc_cv_as != x
; then
24366 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24368 (eval $ac_try) 2>&5
24370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24371 test $ac_status = 0; }; }
24373 gcc_cv_as_ix86_sahf
=yes
24375 echo "configure: failed program was" >&5
24378 rm -f conftest.o conftest.s
24381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24382 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24383 if test $gcc_cv_as_ix86_sahf = yes; then
24385 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24390 $as_echo_n "checking assembler for swap suffix... " >&6; }
24391 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24392 $as_echo_n "(cached) " >&6
24394 gcc_cv_as_ix86_swap
=no
24395 if test x
$gcc_cv_as != x
; then
24396 $as_echo 'movl.s %esp, %ebp' > conftest.s
24397 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24399 (eval $ac_try) 2>&5
24401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24402 test $ac_status = 0; }; }
24404 gcc_cv_as_ix86_swap
=yes
24406 echo "configure: failed program was" >&5
24409 rm -f conftest.o conftest.s
24412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24413 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24414 if test $gcc_cv_as_ix86_swap = yes; then
24416 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24421 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24422 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24423 $as_echo_n "(cached) " >&6
24425 gcc_cv_as_ix86_diff_sect_delta
=no
24426 if test x
$gcc_cv_as != x
; then
24427 $as_echo '.section .rodata
24433 .L2: nop' > conftest.s
24434 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24436 (eval $ac_try) 2>&5
24438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24439 test $ac_status = 0; }; }
24441 gcc_cv_as_ix86_diff_sect_delta
=yes
24443 echo "configure: failed program was" >&5
24446 rm -f conftest.o conftest.s
24449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24450 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24451 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24453 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24457 # These two are used unconditionally by i386.[ch]; it is to be defined
24458 # to 1 if the feature is present, 0 otherwise.
24459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24460 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24461 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24462 $as_echo_n "(cached) " >&6
24464 gcc_cv_as_ix86_gotoff_in_data
=no
24465 if test $in_tree_gas = yes; then
24466 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24467 then gcc_cv_as_ix86_gotoff_in_data
=yes
24469 elif test x
$gcc_cv_as != x
; then
24474 .long .L0@GOTOFF' > conftest.s
24475 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24477 (eval $ac_try) 2>&5
24479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24480 test $ac_status = 0; }; }
24482 gcc_cv_as_ix86_gotoff_in_data
=yes
24484 echo "configure: failed program was" >&5
24487 rm -f conftest.o conftest.s
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24491 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24494 cat >>confdefs.h
<<_ACEOF
24495 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24500 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24501 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24502 $as_echo_n "(cached) " >&6
24504 gcc_cv_as_ix86_rep_lock_prefix
=no
24505 if test x
$gcc_cv_as != x
; then
24506 $as_echo 'rep movsl
24507 lock addl %edi, (%eax,%esi)
24508 lock orl $0, (%esp)' > conftest.s
24509 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24511 (eval $ac_try) 2>&5
24513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24514 test $ac_status = 0; }; }
24516 gcc_cv_as_ix86_rep_lock_prefix
=yes
24518 echo "configure: failed program was" >&5
24521 rm -f conftest.o conftest.s
24524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24525 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24526 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24528 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24533 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24534 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24535 $as_echo_n "(cached) " >&6
24537 gcc_cv_as_ix86_tlsgdplt
=no
24538 if test x
$gcc_cv_as != x
; then
24539 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24540 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24542 (eval $ac_try) 2>&5
24544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24545 test $ac_status = 0; }; }
24547 gcc_cv_as_ix86_tlsgdplt
=yes
24549 echo "configure: failed program was" >&5
24552 rm -f conftest.o conftest.s
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24556 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24557 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24559 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24564 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24565 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24566 $as_echo_n "(cached) " >&6
24568 gcc_cv_as_ix86_tlsldmplt
=no
24569 if test x
$gcc_cv_as != x
; then
24570 $as_echo 'call tls_ld@tlsldmplt' > conftest.s
24571 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24573 (eval $ac_try) 2>&5
24575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24576 test $ac_status = 0; }; }
24578 gcc_cv_as_ix86_tlsldmplt
=yes
24580 echo "configure: failed program was" >&5
24583 rm -f conftest.o conftest.s
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24587 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24588 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24590 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24598 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24599 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24600 $as_echo_n "(cached) " >&6
24602 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
24603 if test $in_tree_gas = yes; then
24604 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24605 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24607 elif test x
$gcc_cv_as != x
; then
24609 addl r15 = @ltoffx(x#), gp
24611 ld8.mov r16 = [r15], x#' > conftest.s
24612 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24614 (eval $ac_try) 2>&5
24616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24617 test $ac_status = 0; }; }
24619 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
24621 echo "configure: failed program was" >&5
24624 rm -f conftest.o conftest.s
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24628 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24629 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24631 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24639 *-*-aix*) conftest_s
=' .machine "pwr5"
24643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24644 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24645 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24646 $as_echo_n "(cached) " >&6
24648 gcc_cv_as_machine_directive
=no
24649 if test x
$gcc_cv_as != x
; then
24650 $as_echo ' .machine ppc7400' > conftest.s
24651 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24653 (eval $ac_try) 2>&5
24655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24656 test $ac_status = 0; }; }
24658 gcc_cv_as_machine_directive
=yes
24660 echo "configure: failed program was" >&5
24663 rm -f conftest.o conftest.s
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24667 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24669 if test x
$gcc_cv_as_machine_directive != xyes
; then
24670 echo "*** This target requires an assembler supporting \".machine\"" >&2
24671 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
24672 test x
$build = x
$target && exit 1
24676 *) conftest_s
=' .machine power4
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24682 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24683 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24684 $as_echo_n "(cached) " >&6
24686 gcc_cv_as_powerpc_mfcrf
=no
24687 if test $in_tree_gas = yes; then
24688 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24689 then gcc_cv_as_powerpc_mfcrf
=yes
24691 elif test x
$gcc_cv_as != x
; then
24692 $as_echo "$conftest_s" > conftest.s
24693 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24695 (eval $ac_try) 2>&5
24697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24698 test $ac_status = 0; }; }
24700 gcc_cv_as_powerpc_mfcrf
=yes
24702 echo "configure: failed program was" >&5
24705 rm -f conftest.o conftest.s
24708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24709 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24710 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24712 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24717 *-*-aix*) conftest_s
=' .machine "pwr5"
24720 *) conftest_s
=' .machine power5
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24726 $as_echo_n "checking assembler for popcntb support... " >&6; }
24727 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24728 $as_echo_n "(cached) " >&6
24730 gcc_cv_as_powerpc_popcntb
=no
24731 if test $in_tree_gas = yes; then
24732 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24733 then gcc_cv_as_powerpc_popcntb
=yes
24735 elif test x
$gcc_cv_as != x
; then
24736 $as_echo "$conftest_s" > conftest.s
24737 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24739 (eval $ac_try) 2>&5
24741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24742 test $ac_status = 0; }; }
24744 gcc_cv_as_powerpc_popcntb
=yes
24746 echo "configure: failed program was" >&5
24749 rm -f conftest.o conftest.s
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24753 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24754 if test $gcc_cv_as_powerpc_popcntb = yes; then
24756 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24761 *-*-aix*) conftest_s
=' .machine "pwr5x"
24764 *) conftest_s
=' .machine power5
24769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24770 $as_echo_n "checking assembler for fp round support... " >&6; }
24771 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24772 $as_echo_n "(cached) " >&6
24774 gcc_cv_as_powerpc_fprnd
=no
24775 if test $in_tree_gas = yes; then
24776 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24777 then gcc_cv_as_powerpc_fprnd
=yes
24779 elif test x
$gcc_cv_as != x
; then
24780 $as_echo "$conftest_s" > conftest.s
24781 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24783 (eval $ac_try) 2>&5
24785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24786 test $ac_status = 0; }; }
24788 gcc_cv_as_powerpc_fprnd
=yes
24790 echo "configure: failed program was" >&5
24793 rm -f conftest.o conftest.s
24796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24797 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24798 if test $gcc_cv_as_powerpc_fprnd = yes; then
24800 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24805 *-*-aix*) conftest_s
=' .machine "pwr6"
24808 *) conftest_s
=' .machine power6
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24814 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24815 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24816 $as_echo_n "(cached) " >&6
24818 gcc_cv_as_powerpc_mfpgpr
=no
24819 if test $in_tree_gas = yes; then
24820 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24821 then gcc_cv_as_powerpc_mfpgpr
=yes
24823 elif test x
$gcc_cv_as != x
; then
24824 $as_echo "$conftest_s" > conftest.s
24825 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24827 (eval $ac_try) 2>&5
24829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24830 test $ac_status = 0; }; }
24832 gcc_cv_as_powerpc_mfpgpr
=yes
24834 echo "configure: failed program was" >&5
24837 rm -f conftest.o conftest.s
24840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24841 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24842 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24844 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24849 *-*-aix*) conftest_s
=' .csect .text[PR]
24851 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24855 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24856 *) conftest_s
=' .text
24858 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24862 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24863 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24864 $as_echo_n "(cached) " >&6
24866 gcc_cv_as_powerpc_rel16
=no
24867 if test $in_tree_gas = yes; then
24868 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24869 then gcc_cv_as_powerpc_rel16
=yes
24871 elif test x
$gcc_cv_as != x
; then
24872 $as_echo "$conftest_s" > conftest.s
24873 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24875 (eval $ac_try) 2>&5
24877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24878 test $ac_status = 0; }; }
24880 gcc_cv_as_powerpc_rel16
=yes
24882 echo "configure: failed program was" >&5
24885 rm -f conftest.o conftest.s
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24889 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24890 if test $gcc_cv_as_powerpc_rel16 = yes; then
24892 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24897 *-*-aix*) conftest_s
=' .machine "pwr6"
24900 *) conftest_s
=' .machine power6
24905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24906 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24907 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24908 $as_echo_n "(cached) " >&6
24910 gcc_cv_as_powerpc_cmpb
=no
24911 if test $in_tree_gas = yes; then
24912 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24913 then gcc_cv_as_powerpc_cmpb
=yes
24915 elif test x
$gcc_cv_as != x
; then
24916 $as_echo "$conftest_s" > conftest.s
24917 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24919 (eval $ac_try) 2>&5
24921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24922 test $ac_status = 0; }; }
24924 gcc_cv_as_powerpc_cmpb
=yes
24926 echo "configure: failed program was" >&5
24929 rm -f conftest.o conftest.s
24932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24933 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24934 if test $gcc_cv_as_powerpc_cmpb = yes; then
24936 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24941 *-*-aix*) conftest_s
=' .machine "pwr6"
24944 *) conftest_s
=' .machine power6
24949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24950 $as_echo_n "checking assembler for decimal float support... " >&6; }
24951 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24952 $as_echo_n "(cached) " >&6
24954 gcc_cv_as_powerpc_dfp
=no
24955 if test $in_tree_gas = yes; then
24956 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24957 then gcc_cv_as_powerpc_dfp
=yes
24959 elif test x
$gcc_cv_as != x
; then
24960 $as_echo "$conftest_s" > conftest.s
24961 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24963 (eval $ac_try) 2>&5
24965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24966 test $ac_status = 0; }; }
24968 gcc_cv_as_powerpc_dfp
=yes
24970 echo "configure: failed program was" >&5
24973 rm -f conftest.o conftest.s
24976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24977 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24978 if test $gcc_cv_as_powerpc_dfp = yes; then
24980 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24985 *-*-aix*) conftest_s
=' .machine "pwr7"
24988 *) conftest_s
=' .machine power7
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24994 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24995 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24996 $as_echo_n "(cached) " >&6
24998 gcc_cv_as_powerpc_vsx
=no
24999 if test $in_tree_gas = yes; then
25000 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25001 then gcc_cv_as_powerpc_vsx
=yes
25003 elif test x
$gcc_cv_as != x
; then
25004 $as_echo "$conftest_s" > conftest.s
25005 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25007 (eval $ac_try) 2>&5
25009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25010 test $ac_status = 0; }; }
25012 gcc_cv_as_powerpc_vsx
=yes
25014 echo "configure: failed program was" >&5
25017 rm -f conftest.o conftest.s
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25021 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25022 if test $gcc_cv_as_powerpc_vsx = yes; then
25024 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25029 *-*-aix*) conftest_s
=' .machine "pwr7"
25032 *) conftest_s
=' .machine power7
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25038 $as_echo_n "checking assembler for popcntd support... " >&6; }
25039 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25040 $as_echo_n "(cached) " >&6
25042 gcc_cv_as_powerpc_popcntd
=no
25043 if test $in_tree_gas = yes; then
25044 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25045 then gcc_cv_as_powerpc_popcntd
=yes
25047 elif test x
$gcc_cv_as != x
; then
25048 $as_echo "$conftest_s" > conftest.s
25049 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25051 (eval $ac_try) 2>&5
25053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25054 test $ac_status = 0; }; }
25056 gcc_cv_as_powerpc_popcntd
=yes
25058 echo "configure: failed program was" >&5
25061 rm -f conftest.o conftest.s
25064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25065 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25066 if test $gcc_cv_as_powerpc_popcntd = yes; then
25068 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25073 *-*-aix*) conftest_s
=' .csect .text[PR]
25075 *) conftest_s
=' .text
25079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25080 $as_echo_n "checking assembler for lwsync support... " >&6; }
25081 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25082 $as_echo_n "(cached) " >&6
25084 gcc_cv_as_powerpc_lwsync
=no
25085 if test $in_tree_gas = yes; then
25086 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25087 then gcc_cv_as_powerpc_lwsync
=yes
25089 elif test x
$gcc_cv_as != x
; then
25090 $as_echo "$conftest_s" > conftest.s
25091 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25093 (eval $ac_try) 2>&5
25095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25096 test $ac_status = 0; }; }
25098 gcc_cv_as_powerpc_lwsync
=yes
25100 echo "configure: failed program was" >&5
25103 rm -f conftest.o conftest.s
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25107 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25108 if test $gcc_cv_as_powerpc_lwsync = yes; then
25110 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25115 *-*-aix*) conftest_s
=' .machine "476"
25118 *) conftest_s
=' .machine "476"
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25124 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25125 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25126 $as_echo_n "(cached) " >&6
25128 gcc_cv_as_powerpc_dci
=no
25129 if test $in_tree_gas = yes; then
25130 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25131 then gcc_cv_as_powerpc_dci
=yes
25133 elif test x
$gcc_cv_as != x
; then
25134 $as_echo "$conftest_s" > conftest.s
25135 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25137 (eval $ac_try) 2>&5
25139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25140 test $ac_status = 0; }; }
25142 gcc_cv_as_powerpc_dci
=yes
25144 echo "configure: failed program was" >&5
25147 rm -f conftest.o conftest.s
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25151 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25152 if test $gcc_cv_as_powerpc_dci = yes; then
25154 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25159 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25160 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25161 $as_echo_n "(cached) " >&6
25163 gcc_cv_as_powerpc_gnu_attribute
=no
25164 if test $in_tree_gas = yes; then
25165 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25166 then gcc_cv_as_powerpc_gnu_attribute
=yes
25168 elif test x
$gcc_cv_as != x
; then
25169 $as_echo '.gnu_attribute 4,1' > conftest.s
25170 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25172 (eval $ac_try) 2>&5
25174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25175 test $ac_status = 0; }; }
25177 gcc_cv_as_powerpc_gnu_attribute
=yes
25179 echo "configure: failed program was" >&5
25182 rm -f conftest.o conftest.s
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25186 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25187 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25189 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25194 $as_echo_n "checking assembler for tls marker support... " >&6; }
25195 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25196 $as_echo_n "(cached) " >&6
25198 gcc_cv_as_powerpc_tls_markers
=no
25199 if test $in_tree_gas = yes; then
25200 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25201 then gcc_cv_as_powerpc_tls_markers
=yes
25203 elif test x
$gcc_cv_as != x
; then
25204 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25205 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25207 (eval $ac_try) 2>&5
25209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25210 test $ac_status = 0; }; }
25212 gcc_cv_as_powerpc_tls_markers
=yes
25214 echo "configure: failed program was" >&5
25217 rm -f conftest.o conftest.s
25220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25221 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25222 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25224 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25231 $as_echo_n "checking assembler for .ref support... " >&6; }
25232 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25233 $as_echo_n "(cached) " >&6
25235 gcc_cv_as_aix_ref
=no
25236 if test $in_tree_gas = yes; then
25237 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25240 elif test x
$gcc_cv_as != x
; then
25241 $as_echo ' .csect stuff[rw]
25247 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -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_aix_ref
=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_aix_ref" >&5
25263 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25264 if test $gcc_cv_as_aix_ref = yes; then
25266 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25275 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25276 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25277 $as_echo_n "(cached) " >&6
25279 gcc_cv_as_mips_explicit_relocs
=no
25280 if test $in_tree_gas = yes; then
25281 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25282 then gcc_cv_as_mips_explicit_relocs
=yes
25284 elif test x
$gcc_cv_as != x
; then
25285 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25286 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25288 (eval $ac_try) 2>&5
25290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25291 test $ac_status = 0; }; }
25293 gcc_cv_as_mips_explicit_relocs
=yes
25295 echo "configure: failed program was" >&5
25298 rm -f conftest.o conftest.s
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25302 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25303 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25304 if test x
$target_cpu_default = x
25305 then target_cpu_default
=MASK_EXPLICIT_RELOCS
25306 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25310 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25311 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25312 $as_echo_n "(cached) " >&6
25314 gcc_cv_as_mips_no_shared
=no
25315 if test $in_tree_gas = yes; then
25316 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25317 then gcc_cv_as_mips_no_shared
=yes
25319 elif test x
$gcc_cv_as != x
; then
25320 $as_echo 'nop' > conftest.s
25321 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25323 (eval $ac_try) 2>&5
25325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25326 test $ac_status = 0; }; }
25328 gcc_cv_as_mips_no_shared
=yes
25330 echo "configure: failed program was" >&5
25333 rm -f conftest.o conftest.s
25336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25337 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25338 if test $gcc_cv_as_mips_no_shared = yes; then
25340 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25345 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25346 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25347 $as_echo_n "(cached) " >&6
25349 gcc_cv_as_mips_gnu_attribute
=no
25350 if test $in_tree_gas = yes; then
25351 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25352 then gcc_cv_as_mips_gnu_attribute
=yes
25354 elif test x
$gcc_cv_as != x
; then
25355 $as_echo '.gnu_attribute 4,1' > conftest.s
25356 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25358 (eval $ac_try) 2>&5
25360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25361 test $ac_status = 0; }; }
25363 gcc_cv_as_mips_gnu_attribute
=yes
25365 echo "configure: failed program was" >&5
25368 rm -f conftest.o conftest.s
25371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25372 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25373 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25375 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25380 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25381 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25382 $as_echo_n "(cached) " >&6
25384 gcc_cv_as_mips_dtprelword
=no
25385 if test $in_tree_gas = yes; then
25386 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25387 then gcc_cv_as_mips_dtprelword
=yes
25389 elif test x
$gcc_cv_as != x
; then
25390 $as_echo '.section .tdata,"awT",@progbits
25394 .dtprelword x+0x8000' > conftest.s
25395 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25397 (eval $ac_try) 2>&5
25399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25400 test $ac_status = 0; }; }
25402 gcc_cv_as_mips_dtprelword
=yes
25404 echo "configure: failed program was" >&5
25407 rm -f conftest.o conftest.s
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25411 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25412 if test $gcc_cv_as_mips_dtprelword = yes; then
25414 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25419 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25420 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25421 $as_echo_n "(cached) " >&6
25423 gcc_cv_as_mips_dspr1_mult
=no
25424 if test x
$gcc_cv_as != x
; then
25425 $as_echo ' .set mips32r2
25433 multu $ac3,$4,$5' > conftest.s
25434 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25436 (eval $ac_try) 2>&5
25438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25439 test $ac_status = 0; }; }
25441 gcc_cv_as_mips_dspr1_mult
=yes
25443 echo "configure: failed program was" >&5
25446 rm -f conftest.o conftest.s
25449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25450 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25451 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25453 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25458 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25459 gcc_cv_as_ld_jalr_reloc
=no
25460 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25461 if test $in_tree_ld = yes ; then
25462 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 \
25463 && test $in_tree_ld_is_elf = yes; then
25464 gcc_cv_as_ld_jalr_reloc
=yes
25466 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25467 echo ' .ent x' > conftest.s
25468 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25469 echo ' ld $25,%call16(y)($28)' >> conftest.s
25470 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25471 echo '1: jalr $25' >> conftest.s
25472 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25473 echo '1: jalr $25' >> conftest.s
25474 echo ' .end x' >> conftest.s
25475 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
25476 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
25477 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
25478 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
25479 gcc_cv_as_ld_jalr_reloc
=yes
25485 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25486 if test x
$target_cpu_default = x
; then
25487 target_cpu_default
=MASK_RELAX_PIC_CALLS
25489 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25493 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25496 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25497 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25498 $as_echo_n "(cached) " >&6
25500 gcc_cv_ld_mips_personality_relaxation
=no
25501 if test $in_tree_ld = yes ; then
25502 if test "$gcc_cv_gld_major_version" -eq 2 \
25503 -a "$gcc_cv_gld_minor_version" -ge 21 \
25504 -o "$gcc_cv_gld_major_version" -gt 2; then
25505 gcc_cv_ld_mips_personality_relaxation
=yes
25507 elif test x
$gcc_cv_as != x \
25508 -a x
$gcc_cv_ld != x \
25509 -a x
$gcc_cv_readelf != x
; then
25510 cat > conftest.s
<<EOF
25512 .cfi_personality 0x80,indirect_ptr
25519 .section .data,"aw",@progbits
25523 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
25524 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
25525 if $gcc_cv_readelf -d conftest
2>&1 \
25526 |
grep TEXTREL
> /dev
/null
2>&1; then
25528 elif $gcc_cv_readelf --relocs conftest
2>&1 \
25529 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
25532 gcc_cv_ld_mips_personality_relaxation
=yes
25536 rm -f conftest.s conftest.o conftest
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25539 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25540 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
25542 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25548 # Mips and HP-UX need the GNU assembler.
25549 # Linux on IA64 might be able to use the Intel assembler.
25552 mips
*-*-* |
*-*-hpux* )
25553 if test x
$gas_flag = xyes \
25554 ||
test x
"$host" != x
"$build" \
25555 ||
test ! -x "$gcc_cv_as" \
25556 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
25559 echo "*** This configuration requires the GNU assembler" >&2
25565 # ??? Not all targets support dwarf2 debug_line, even within a version
25566 # of gas. Moreover, we need to emit a valid instruction to trigger any
25567 # info to the output file. So, as supported targets are added to gas 2.11,
25568 # add some instruction here to (also) show we expect this might work.
25569 # ??? Once 2.11 is released, probably need to add first known working
25570 # version to the per-target configury.
25571 case "$cpu_type" in
25572 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25573 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa
)
25583 if test x
"$insn" != x
; then
25585 .file 1 \"conftest.s\"
25588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25589 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25590 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25591 $as_echo_n "(cached) " >&6
25593 gcc_cv_as_dwarf2_debug_line
=no
25594 if test $in_tree_gas = yes; then
25595 if test $in_tree_gas_is_elf = yes \
25596 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25597 then gcc_cv_as_dwarf2_debug_line
=yes
25599 elif test x
$gcc_cv_as != x
; then
25600 $as_echo "$conftest_s" > conftest.s
25601 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25603 (eval $ac_try) 2>&5
25605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25606 test $ac_status = 0; }; }
25608 if test x
$gcc_cv_objdump != x \
25609 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
25610 |
grep debug_line
> /dev
/null
2>&1; then
25611 gcc_cv_as_dwarf2_debug_line
=yes
25614 echo "configure: failed program was" >&5
25617 rm -f conftest.o conftest.s
25620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25621 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25624 # The .debug_line file table must be in the exact order that
25625 # we specified the files, since these indices are also used
25626 # by DW_AT_decl_file. Approximate this test by testing if
25627 # the assembler bitches if the same index is assigned twice.
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25629 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25630 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25631 $as_echo_n "(cached) " >&6
25633 gcc_cv_as_dwarf2_file_buggy
=no
25634 if test x
$gcc_cv_as != x
; then
25635 $as_echo ' .file 1 "foo.s"
25636 .file 1 "bar.s"' > conftest.s
25637 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25639 (eval $ac_try) 2>&5
25641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25642 test $ac_status = 0; }; }
25644 gcc_cv_as_dwarf2_file_buggy
=yes
25646 echo "configure: failed program was" >&5
25649 rm -f conftest.o conftest.s
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25653 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25656 if test $gcc_cv_as_dwarf2_debug_line = yes \
25657 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
25659 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25664 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25665 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25666 $as_echo_n "(cached) " >&6
25668 gcc_cv_as_gdwarf2_flag
=no
25669 if test $in_tree_gas = yes; then
25670 if test $in_tree_gas_is_elf = yes \
25671 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25672 then gcc_cv_as_gdwarf2_flag
=yes
25674 elif test x
$gcc_cv_as != x
; then
25675 $as_echo "$insn" > conftest.s
25676 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25678 (eval $ac_try) 2>&5
25680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25681 test $ac_status = 0; }; }
25683 gcc_cv_as_gdwarf2_flag
=yes
25685 echo "configure: failed program was" >&5
25688 rm -f conftest.o conftest.s
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25692 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25693 if test $gcc_cv_as_gdwarf2_flag = yes; then
25695 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25700 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25701 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25702 $as_echo_n "(cached) " >&6
25704 gcc_cv_as_gstabs_flag
=no
25705 if test $in_tree_gas = yes; then
25706 if test $in_tree_gas_is_elf = yes \
25707 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25708 then gcc_cv_as_gstabs_flag
=yes
25710 elif test x
$gcc_cv_as != x
; then
25711 $as_echo "$insn" > conftest.s
25712 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25714 (eval $ac_try) 2>&5
25716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25717 test $ac_status = 0; }; }
25719 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25720 # and warns about it, but still exits successfully. So check for
25722 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25724 (eval $ac_try) 2>&5
25726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25727 test $ac_status = 0; }; }
25729 else gcc_cv_as_gstabs_flag
=yes
25732 echo "configure: failed program was" >&5
25735 rm -f conftest.o conftest.s
25738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25739 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25740 if test $gcc_cv_as_gstabs_flag = yes; then
25742 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25747 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25748 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25749 $as_echo_n "(cached) " >&6
25751 gcc_cv_as_debug_prefix_map_flag
=no
25752 if test $in_tree_gas = yes; then
25753 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25754 then gcc_cv_as_debug_prefix_map_flag
=yes
25756 elif test x
$gcc_cv_as != x
; then
25757 $as_echo "$insn" > conftest.s
25758 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25760 (eval $ac_try) 2>&5
25762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25763 test $ac_status = 0; }; }
25765 gcc_cv_as_debug_prefix_map_flag
=yes
25767 echo "configure: failed program was" >&5
25770 rm -f conftest.o conftest.s
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25774 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25775 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25777 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25783 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25784 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25785 $as_echo_n "(cached) " >&6
25787 gcc_cv_as_lcomm_with_alignment
=no
25788 if test x
$gcc_cv_as != x
; then
25789 $as_echo '.lcomm bar,4,16' > conftest.s
25790 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25792 (eval $ac_try) 2>&5
25794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25795 test $ac_status = 0; }; }
25797 gcc_cv_as_lcomm_with_alignment
=yes
25799 echo "configure: failed program was" >&5
25802 rm -f conftest.o conftest.s
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25806 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25807 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25809 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25813 # Check whether --enable-gnu-unique-object was given.
25814 if test "${enable_gnu_unique_object+set}" = set; then :
25815 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25817 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25818 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25822 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25823 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25824 $as_echo_n "(cached) " >&6
25826 gcc_cv_as_gnu_unique_object
=no
25827 if test $in_tree_gas = yes; then
25828 if test $in_tree_gas_is_elf = yes \
25829 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25830 then gcc_cv_as_gnu_unique_object
=yes
25832 elif test x
$gcc_cv_as != x
; then
25833 $as_echo '.type foo, @gnu_unique_object' > conftest.s
25834 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25836 (eval $ac_try) 2>&5
25838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25839 test $ac_status = 0; }; }
25841 gcc_cv_as_gnu_unique_object
=yes
25843 echo "configure: failed program was" >&5
25846 rm -f conftest.o conftest.s
25849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25850 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25851 if test $gcc_cv_as_gnu_unique_object = yes; then
25852 # Also check for ld.so support, i.e. glibc 2.11 or higher.
25853 if test x
$host = x
$build -a x
$host = x
$target &&
25854 ldd
--version 2>/dev
/null
&&
25855 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25856 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
25857 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25858 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
25859 if test "$glibcnum" -ge 2011 ; then
25860 enable_gnu_unique_object
=yes
25866 if test x
$enable_gnu_unique_object = xyes
; then
25868 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25873 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25874 if test "${gcc_cv_as_line_zero+set}" = set; then :
25875 $as_echo_n "(cached) " >&6
25877 gcc_cv_as_line_zero
=no
25878 if test $in_tree_gas = yes; then
25879 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25880 then gcc_cv_as_line_zero
=yes
25882 elif test "x$gcc_cv_as" != x
; then
25883 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25884 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25886 (eval $ac_try) 2>&5
25888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25889 test $ac_status = 0; }; } &&
25890 test "x`cat conftest.out`" = x
25892 gcc_cv_as_line_zero
=yes
25894 echo "configure: failed program was" >&5
25896 echo "configure: error output was" >&5
25897 cat conftest.out
>&5
25899 rm -f conftest.o conftest.s conftest.out
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25903 $as_echo "$gcc_cv_as_line_zero" >&6; }
25904 if test "x$gcc_cv_as_line_zero" = xyes
; then
25906 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25911 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25912 gcc_cv_ld_eh_frame_hdr
=no
25913 if test $in_tree_ld = yes ; then
25914 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 \
25915 && test $in_tree_ld_is_elf = yes; then
25916 gcc_cv_ld_eh_frame_hdr
=yes
25918 elif test x
$gcc_cv_ld != x
; then
25919 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25920 # Check if linker supports --eh-frame-hdr option
25921 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
25922 gcc_cv_ld_eh_frame_hdr
=yes
25927 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25928 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
25929 gcc_cv_ld_eh_frame_hdr
=yes
25936 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
25938 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25942 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25945 $as_echo_n "checking linker position independent executable support... " >&6; }
25947 if test $in_tree_ld = yes ; then
25948 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 \
25949 && test $in_tree_ld_is_elf = yes; then
25952 elif test x
$gcc_cv_ld != x
; then
25953 # Check if linker supports -pie option
25954 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
25958 if test x
"$gcc_cv_ld_pie" = xyes
; then
25960 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25964 $as_echo "$gcc_cv_ld_pie" >&6; }
25966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25967 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25968 gcc_cv_ld_eh_gc_sections
=no
25969 if test $in_tree_ld = yes ; then
25970 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 \
25971 && test $in_tree_ld_is_elf = yes; then
25972 gcc_cv_ld_eh_gc_sections
=yes
25974 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
25975 cat > conftest.s
<<EOF
25978 .type _start, @function
25981 .size _start, .-_start
25982 .section .text.foo,"ax",@progbits
25983 .type foo, @function
25987 .section .gcc_except_table.foo,"a",@progbits
25990 .section .eh_frame,"a",@progbits
25993 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
25994 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
25995 |
grep "gc-sections option ignored" > /dev
/null
; then
25996 gcc_cv_ld_eh_gc_sections
=no
25997 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
25998 |
grep gcc_except_table
> /dev
/null
; then
25999 gcc_cv_ld_eh_gc_sections
=yes
26000 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26001 if test x
$gcc_cv_as_comdat_group != xyes
; then
26002 gcc_cv_ld_eh_gc_sections
=no
26003 cat > conftest.s
<<EOF
26006 .type _start, @function
26009 .size _start, .-_start
26010 .section .gnu.linkonce.t.foo,"ax",@progbits
26011 .type foo, @function
26015 .section .gcc_except_table.foo,"a",@progbits
26018 .section .eh_frame,"a",@progbits
26021 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26022 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26023 |
grep "gc-sections option ignored" > /dev
/null
; then
26024 gcc_cv_ld_eh_gc_sections
=no
26025 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26026 |
grep gcc_except_table
> /dev
/null
; then
26027 gcc_cv_ld_eh_gc_sections
=yes
26033 rm -f conftest.s conftest.o conftest
26037 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26038 gcc_cv_ld_eh_gc_sections
=no
26041 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26043 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26047 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26050 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26051 gcc_cv_ld_eh_gc_sections_bug
=no
26052 if test $in_tree_ld = yes ; then
26053 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 \
26054 && test $in_tree_ld_is_elf = yes; then
26055 gcc_cv_ld_eh_gc_sections_bug
=yes
26057 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
26058 gcc_cv_ld_eh_gc_sections_bug
=yes
26059 cat > conftest.s
<<EOF
26062 .type _start, @function
26065 .size _start, .-_start
26066 .section .text.startup.foo,"ax",@progbits
26067 .type foo, @function
26071 .section .gcc_except_table.foo,"a",@progbits
26074 .section .eh_frame,"a",@progbits
26077 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26078 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26079 |
grep "gc-sections option ignored" > /dev
/null
; then
26081 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26082 |
grep gcc_except_table
> /dev
/null
; then
26083 gcc_cv_ld_eh_gc_sections_bug
=no
26086 rm -f conftest.s conftest.o conftest
26088 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
26090 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26094 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26101 $as_echo_n "checking linker --as-needed support... " >&6; }
26102 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26103 $as_echo_n "(cached) " >&6
26105 gcc_cv_ld_as_needed
=no
26106 if test $in_tree_ld = yes ; then
26107 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 \
26108 && test $in_tree_ld_is_elf = yes; then
26109 gcc_cv_ld_as_needed
=yes
26111 elif test x
$gcc_cv_ld != x
; then
26112 # Check if linker supports --as-needed and --no-as-needed options
26113 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
26114 gcc_cv_ld_as_needed
=yes
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26120 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26121 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
26123 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26127 case "$target:$tm_file" in
26128 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
26129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26130 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26131 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26132 $as_echo_n "(cached) " >&6
26134 gcc_cv_ld_no_dot_syms
=no
26135 if test $in_tree_ld = yes ; then
26136 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
26137 gcc_cv_ld_no_dot_syms
=yes
26139 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26140 cat > conftest1.s
<<EOF
26144 cat > conftest2.s
<<EOF
26145 .section ".opd","aw"
26148 .type foo,@function
26150 .quad .LEfoo,.TOC.@tocbase,0
26156 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
26157 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
26158 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
26159 gcc_cv_ld_no_dot_syms
=yes
26161 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26166 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26167 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
26169 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26174 $as_echo_n "checking linker large toc support... " >&6; }
26175 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26176 $as_echo_n "(cached) " >&6
26178 gcc_cv_ld_large_toc
=no
26179 if test $in_tree_ld = yes ; then
26180 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
26181 gcc_cv_ld_large_toc
=yes
26183 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
26184 cat > conftest.s
<<EOF
26185 .section ".tbss","awT",@nobits
26191 addis 9,13,ie0@got@tprel@ha
26192 ld 9,ie0@got@tprel@l(9)
26194 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
26195 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
26196 gcc_cv_ld_large_toc
=yes
26198 rm -f conftest conftest.o conftest.s
26202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26203 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26204 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
26206 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26213 $as_echo_n "checking linker --build-id support... " >&6; }
26214 if test "${gcc_cv_ld_buildid+set}" = set; then :
26215 $as_echo_n "(cached) " >&6
26217 gcc_cv_ld_buildid
=no
26218 if test $in_tree_ld = yes ; then
26219 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26220 "$gcc_cv_gld_minor_version" -ge 18 -o \
26221 "$gcc_cv_gld_major_version" -gt 2 \
26222 && test $in_tree_ld_is_elf = yes; then
26223 gcc_cv_ld_buildid
=yes
26225 elif test x
$gcc_cv_ld != x
; then
26226 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
26227 gcc_cv_ld_buildid
=yes
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26232 $as_echo "$gcc_cv_ld_buildid" >&6; }
26233 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26235 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26239 # Check whether --enable-linker-build-id was given.
26240 if test "${enable_linker_build_id+set}" = set; then :
26241 enableval
=$enable_linker_build_id;
26243 enable_linker_build_id
=no
26247 if test x
"$enable_linker_build_id" = xyes
; then
26248 if test x
"$gcc_cv_ld_buildid" = xyes
; then
26250 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26254 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26258 # In binutils 2.21, GNU ld gained support for new emulations fully
26259 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26261 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26262 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26263 $as_echo_n "(cached) " >&6
26265 gcc_cv_ld_sol2_emulation
=no
26266 if test $in_tree_ld = yes ; then
26267 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26268 "$gcc_cv_gld_minor_version" -ge 21 -o \
26269 "$gcc_cv_gld_major_version" -gt 2 \
26270 && test $in_tree_ld_is_elf = yes; then
26271 gcc_cv_ld_sol2_emulation
=yes
26273 elif test x
$gcc_cv_ld != x
; then
26274 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
26275 grep _sol2
> /dev
/null
; then
26276 gcc_cv_ld_sol2_emulation
=yes
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26281 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26282 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
26284 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26289 $as_echo_n "checking linker --sysroot support... " >&6; }
26290 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26291 $as_echo_n "(cached) " >&6
26293 gcc_cv_ld_sysroot
=no
26294 if test $in_tree_ld = yes ; then
26295 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
26296 gcc_cv_ld_sysroot
=yes
26298 elif test x
$gcc_cv_ld != x
; then
26299 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
26300 gcc_cv_ld_sysroot
=yes
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26305 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26306 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
26308 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26312 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26313 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26314 && test "$prefix" != "NONE"; then
26316 cat >>confdefs.h
<<_ACEOF
26317 #define PREFIX_INCLUDE_DIR "$prefix/include"
26322 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
26323 if test "x$with_headers" != x
; then
26324 target_header_dir
=$with_headers
26325 elif test "x$with_sysroot" = x
; then
26326 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
26327 elif test "x$with_build_sysroot" != "x"; then
26328 target_header_dir
="${with_build_sysroot}/usr/include"
26329 elif test "x$with_sysroot" = xyes
; then
26330 target_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
26332 target_header_dir
="${with_sysroot}/usr/include"
26335 target_header_dir
=/usr
/include
26338 # Test for stack protector support in target C library.
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26340 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26341 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26342 $as_echo_n "(cached) " >&6
26344 gcc_cv_libc_provides_ssp
=no
26346 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
26347 # glibc 2.4 and later provides __stack_chk_fail and
26348 # either __stack_chk_guard, or TLS access to stack guard canary.
26349 if test -f $target_header_dir/features.h \
26350 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26351 $target_header_dir/features.h
> /dev
/null
; then
26352 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26353 $target_header_dir/features.h
> /dev
/null
; then
26354 gcc_cv_libc_provides_ssp
=yes
26355 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26356 $target_header_dir/features.h
> /dev
/null \
26357 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26358 $target_header_dir/features.h
> /dev
/null
; then
26359 gcc_cv_libc_provides_ssp
=yes
26360 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26361 $target_header_dir/features.h
> /dev
/null
&& \
26362 test -f $target_header_dir/bits
/uClibc_config.h
&& \
26363 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26364 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
26365 gcc_cv_libc_provides_ssp
=yes
26370 # Avoid complicated tests (see
26371 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26372 # simply assert that glibc does provide this, which is true for all
26373 # realistically usable GNU/Hurd configurations.
26374 gcc_cv_libc_provides_ssp
=yes;;
26375 *-*-darwin* |
*-*-freebsd*)
26376 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26377 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
26378 gcc_cv_libc_provides_ssp
=yes
26380 echo "no __stack_chk_fail on this target"
26384 *) gcc_cv_libc_provides_ssp
=no
;;
26387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26388 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26390 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
26392 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26396 # Test for <sys/sdt.h> on the target.
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26399 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26401 if test -f $target_header_dir/sys
/sdt.h
; then
26403 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26407 $as_echo "$have_sys_sdt_h" >&6; }
26409 # Check if TFmode long double should be used by default or not.
26410 # Some glibc targets used DFmode long double, but with glibc 2.4
26411 # and later they can use TFmode.
26413 powerpc
*-*-linux* | \
26414 sparc
*-*-linux* | \
26418 # Check whether --with-long-double-128 was given.
26419 if test "${with_long_double_128+set}" = set; then :
26420 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
26422 gcc_cv_target_ldbl128
=no
26423 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26424 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
26425 && gcc_cv_target_ldbl128
=yes
26431 if test x
$gcc_cv_target_ldbl128 = xyes
; then
26433 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26438 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26439 gcc_cv_target_dl_iterate_phdr
=unknown
26442 # <link.h> needs both a dl_iterate_phdr declaration and support for
26443 # compilation with largefile support.
26444 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
26445 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
26446 gcc_cv_target_dl_iterate_phdr
=yes
26448 gcc_cv_target_dl_iterate_phdr
=no
26453 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
26455 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26459 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26461 # Find out what GC implementation we want, or may, use.
26463 # Check whether --with-gc was given.
26464 if test "${with_gc+set}" = set; then :
26465 withval
=$with_gc; case "$withval" in
26472 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26476 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
26484 echo "Using $GGC for garbage collection."
26486 # Libraries to use on the host. This will normally be set by the top
26487 # level Makefile. Here we simply capture the value for our Makefile.
26488 if test -z "${HOST_LIBS+set}"; then
26493 # Use the system's zlib library.
26495 zlibinc
="-I\$(srcdir)/../zlib"
26497 # Check whether --with-system-zlib was given.
26498 if test "${with_system_zlib+set}" = set; then :
26499 withval
=$with_system_zlib; zlibdir
=
26508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26509 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26510 # Check whether --enable-maintainer-mode was given.
26511 if test "${enable_maintainer_mode+set}" = set; then :
26512 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26519 $as_echo "$maintainer_mode" >&6; }
26521 if test "$maintainer_mode" = "yes"; then
26531 # Make empty files to contain the specs and options for each language.
26532 # Then add #include lines to for a compiler that has specs and/or options.
26538 # These (without "all_") are set in each config-lang.in.
26539 # `language' must be a single word so is spelled singularly.
26542 all_outputs
='Makefile'
26543 # List of language makefile fragments.
26544 all_lang_makefrags
=
26545 # Additional files for gengtype
26546 all_gtfiles
="$target_gtfiles"
26548 # These are the languages that are set in --enable-languages,
26549 # and are available in the GCC tree.
26550 all_selected_languages
=
26552 # Add the language fragments.
26553 # Languages are added via two mechanisms. Some information must be
26554 # recorded in makefile variables, these are defined in config-lang.in.
26555 # We accumulate them and plug them into the main Makefile.
26556 # The other mechanism is a set of hooks for each of the main targets
26557 # like `clean', `install', etc.
26559 language_hooks
="Make-hooks"
26561 for lang
in ${srcdir}/*/config-lang.
in
26563 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26565 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26566 if test "x$lang_alias" = x
26568 echo "$lang doesn't set \$language." 1>&2
26571 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26572 subdirs
="$subdirs $subdir"
26574 # $gcc_subdir is where the gcc integration files are to be found
26575 # for a language, both for internal compiler purposes (compiler
26576 # sources implementing front-end to GCC tree converters), and for
26577 # build infrastructure purposes (Make-lang.in, etc.)
26579 # This will be <subdir> (relative to $srcdir) if a line like
26580 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26581 # is found in <langdir>/config-lang.in, and will remain <langdir>
26584 # Except for the language alias (fetched above), the regular
26585 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26586 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26587 # only this and the language alias.
26589 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26590 if [ "$gcc_subdir" = "" ]; then
26591 gcc_subdir
="$subdir"
26594 case ",$enable_languages," in
26596 all_selected_languages
="$all_selected_languages $lang_alias"
26597 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
26598 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26609 .
${srcdir}/$gcc_subdir/config-lang.
in
26610 if test "x$language" = x
26612 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26617 case ",$enable_languages," in
26618 *,$lang_alias,*) ;;
26620 for i
in $subdir_requires; do
26621 test -f "${srcdir}/$i/config-lang.in" && continue
26629 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26630 if test -f $srcdir/$gcc_subdir/lang.opt
; then
26631 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26632 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26634 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
26635 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26637 all_languages
="$all_languages $language"
26638 all_compilers
="$all_compilers $compilers"
26639 all_outputs
="$all_outputs $outputs"
26640 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
26641 case ",$enable_languages," in
26644 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26653 # Pick up gtfiles for c
26655 .
${srcdir}/c-config-lang.
in
26656 all_gtfiles
="$all_gtfiles [c] $gtfiles"
26659 for language
in $all_selected_languages
26661 check_languages
="$check_languages check-$language"
26664 # We link each language in with a set of hooks, reached indirectly via
26665 # lang.${target}. Only do so for selected languages.
26669 target_list
="all.cross start.encap rest.encap tags \
26670 install-common install-man install-info install-pdf install-html dvi \
26671 pdf html uninstall info man srcextra srcman srcinfo \
26672 mostlyclean clean distclean maintainer-clean install-plugin"
26674 for t
in $target_list
26677 for lang
in $all_selected_languages
26681 echo "lang.$t: $x" >> Make-hooks
26685 # Option include files
26688 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
26689 option_includes
="option-includes.mk"
26698 echo "dir ." > .gdbinit
26699 echo "dir ${srcdir}" >> .gdbinit
26700 if test x
$gdb_needs_out_file_path = xyes
26702 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26704 if test "x$subdirs" != x
; then
26707 echo "dir ${srcdir}/$s" >> .gdbinit
26710 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26712 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26716 # Find a directory in which to install a shared libgcc.
26718 # Check whether --enable-version-specific-runtime-libs was given.
26719 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26720 enableval
=$enable_version_specific_runtime_libs;
26725 # Check whether --with-slibdir was given.
26726 if test "${with_slibdir+set}" = set; then :
26727 withval
=$with_slibdir; slibdir
="$with_slibdir"
26729 if test "${enable_version_specific_runtime_libs+set}" = set; then
26730 slibdir
='$(libsubdir)'
26731 elif test "$host" != "$target"; then
26732 slibdir
='$(build_tooldir)/lib'
26734 slibdir
='$(libdir)'
26740 # Substitute configuration variables
26808 if test x
${build} = x
${host} ; then
26809 if test x
${host} = x
${target} ; then
26810 echo "Links are now set up to build a native compiler for ${target}." 1>&2
26812 echo "Links are now set up to build a cross-compiler" 1>&2
26813 echo " from ${host} to ${target}." 1>&2
26816 if test x
${host} = x
${target} ; then
26817 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26818 echo " for ${target}." 1>&2
26820 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26821 echo " from ${host} to ${target}." 1>&2
26833 if test "x${CLOOGLIBS}" != "x" ; then
26835 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26839 # Check for plugin support
26840 # Check whether --enable-plugin was given.
26841 if test "${enable_plugin+set}" = set; then :
26842 enableval
=$enable_plugin; enable_plugin
=$enableval
26844 enable_plugin
=yes; default_plugin
=yes
26852 if test x
$build = x
$host; then
26853 export_sym_check
="nm${exeext} -g"
26854 elif test x
$host = x
$target; then
26855 export_sym_check
="$gcc_cv_nm -g"
26861 if test x
$build = x
$host; then
26862 export_sym_check
="objdump${exeext} -T"
26863 elif test x
$host = x
$target; then
26864 export_sym_check
="$gcc_cv_objdump -T"
26871 if test x
"$enable_plugin" = x
"yes"; then
26873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26874 $as_echo_n "checking for exported symbols... " >&6; }
26875 if test "x$export_sym_check" != x
; then
26876 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26877 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
26878 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
26879 : # No need to use a flag
26880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26881 $as_echo "yes" >&6; }
26883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26884 $as_echo "yes" >&6; }
26885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26886 $as_echo_n "checking for -rdynamic... " >&6; }
26887 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
26888 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
26889 plugin_rdynamic
=yes
26890 pluginlibs
="-rdynamic"
26895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26896 $as_echo "$plugin_rdynamic" >&6; }
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26900 $as_echo "unable to check" >&6; }
26905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26906 $as_echo_n "checking for library containing dlopen... " >&6; }
26907 if test "${ac_cv_search_dlopen+set}" = set; then :
26908 $as_echo_n "(cached) " >&6
26910 ac_func_search_save_LIBS
=$LIBS
26911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26912 /* end confdefs.h. */
26914 /* Override any GCC internal prototype to avoid an error.
26915 Use char because int might match the return type of a GCC
26916 builtin and then its argument prototype would still apply. */
26929 for ac_lib
in '' dl
; do
26930 if test -z "$ac_lib"; then
26931 ac_res
="none required"
26934 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26936 if ac_fn_c_try_link
"$LINENO"; then :
26937 ac_cv_search_dlopen
=$ac_res
26939 rm -f core conftest.err conftest.
$ac_objext \
26941 if test "${ac_cv_search_dlopen+set}" = set; then :
26945 if test "${ac_cv_search_dlopen+set}" = set; then :
26948 ac_cv_search_dlopen
=no
26950 rm conftest.
$ac_ext
26951 LIBS
=$ac_func_search_save_LIBS
26953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26954 $as_echo "$ac_cv_search_dlopen" >&6; }
26955 ac_res
=$ac_cv_search_dlopen
26956 if test "$ac_res" != no
; then :
26957 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26961 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
26962 pluginlibs
="$pluginlibs -ldl"
26966 # Check that we can build shared objects with -fPIC -shared
26967 saved_LDFLAGS
="$LDFLAGS"
26968 saved_CFLAGS
="$CFLAGS"
26971 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26972 CFLAGS
="$CFLAGS -fPIC"
26973 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
26976 CFLAGS
="$CFLAGS -fPIC"
26977 LDFLAGS
="$LDFLAGS -fPIC -shared"
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26981 $as_echo_n "checking for -fPIC -shared... " >&6; }
26982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26983 /* end confdefs.h. */
26993 if ac_fn_c_try_link
"$LINENO"; then :
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26995 $as_echo "yes" >&6; }; have_pic_shared
=yes
26997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26998 $as_echo "no" >&6; }; have_pic_shared
=no
27000 rm -f core conftest.err conftest.
$ac_objext \
27001 conftest
$ac_exeext conftest.
$ac_ext
27002 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
27006 LDFLAGS
="$saved_LDFLAGS"
27007 CFLAGS
="$saved_CFLAGS"
27009 # If plugin support had been requested but not available, fail.
27010 if test x
"$enable_plugin" = x
"no" ; then
27011 if test x
"$default_plugin" != x
"yes"; then
27013 Building GCC with plugin support requires a host that supports
27014 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27021 if test x
"$enable_plugin" = x
"yes"; then
27023 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27028 # Check whether --enable-libquadmath-support was given.
27029 if test "${enable_libquadmath_support+set}" = set; then :
27030 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
27032 ENABLE_LIBQUADMATH_SUPPORT
=yes
27035 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27037 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27042 # Specify what hash style to use by default.
27044 # Check whether --with-linker-hash-style was given.
27045 if test "${with_linker_hash_style+set}" = set; then :
27046 withval
=$with_linker_hash_style; case x
"$withval" in
27048 LINKER_HASH_STYLE
=sysv
27051 LINKER_HASH_STYLE
=gnu
27054 LINKER_HASH_STYLE
=both
27057 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27061 LINKER_HASH_STYLE
=''
27064 if test x
"${LINKER_HASH_STYLE}" != x
; then
27066 cat >>confdefs.h
<<_ACEOF
27067 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27072 # Configure the subdirectories
27073 # AC_CONFIG_SUBDIRS($subdirs)
27075 # Create the Makefile
27076 # and configure language subdirectories
27077 ac_config_files
="$ac_config_files $all_outputs"
27080 ac_config_commands
="$ac_config_commands default"
27082 cat >confcache
<<\_ACEOF
27083 # This file is a shell script that caches the results of configure
27084 # tests run on this system so they can be shared between configure
27085 # scripts and configure runs, see configure's option --config-cache.
27086 # It is not useful on other systems. If it contains results you don't
27087 # want to keep, you may remove or edit it.
27089 # config.status only pays attention to the cache file if you give it
27090 # the --recheck option to rerun configure.
27092 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27093 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27094 # following values.
27098 # The following way of writing the cache mishandles newlines in values,
27099 # but we know of no workaround that is simple, portable, and efficient.
27100 # So, we kill variables containing newlines.
27101 # Ultrix sh set writes to stderr and can't be redirected directly,
27102 # and sets the high bit in the cache file unless we assign to the vars.
27104 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27105 eval ac_val
=\$
$ac_var
27109 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27110 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27113 _ | IFS | as_nl
) ;; #(
27114 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27115 *) { eval $ac_var=; unset $ac_var;} ;;
27121 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27122 *${as_nl}ac_space
=\
*)
27123 # `set' does not quote correctly, so add quotes: double-quote
27124 # substitution turns \\\\ into \\, and sed turns \\ into \.
27127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27130 # `set' quotes correctly as required by POSIX, so do not add quotes.
27131 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27140 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27142 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27144 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27145 if test -w "$cache_file"; then
27146 test "x$cache_file" != "x/dev/null" &&
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27148 $as_echo "$as_me: updating cache $cache_file" >&6;}
27149 cat confcache
>$cache_file
27151 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27152 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27157 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27158 # Let make expand exec_prefix.
27159 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27161 DEFS
=-DHAVE_CONFIG_H
27165 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27166 # 1. Remove the extension, and $U if already installed.
27167 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27168 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27169 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27170 # will be set to the directory where LIBOBJS objects are built.
27171 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27172 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
27174 LIBOBJS
=$ac_libobjs
27176 LTLIBOBJS
=$ac_ltlibobjs
27181 : ${CONFIG_STATUS=./config.status}
27183 ac_clean_files_save
=$ac_clean_files
27184 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27185 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27186 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27188 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27190 # Generated by $as_me.
27191 # Run this file to recreate the current configuration.
27192 # Compiler output produced by configure, useful for debugging
27193 # configure, is in config.log if it exists.
27196 ac_cs_recheck=false
27199 SHELL=\${CONFIG_SHELL-$SHELL}
27202 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
27203 ## -------------------- ##
27204 ## M4sh Initialization. ##
27205 ## -------------------- ##
27207 # Be more Bourne compatible
27208 DUALCASE
=1; export DUALCASE
# for MKS sh
27209 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
27212 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27213 # is contrary to our usage. Disable this feature.
27214 alias -g '${1+"$@"}'='"$@"'
27215 setopt NO_GLOB_SUBST
27217 case `(set -o) 2>/dev/null` in #(
27229 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27230 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27231 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27232 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27233 # Prefer a ksh shell builtin over an external printf program on Solaris,
27234 # but without wasting forks for bash or zsh.
27235 if test -z "$BASH_VERSION$ZSH_VERSION" \
27236 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27237 as_echo='print
-r --'
27238 as_echo_n='print
-rn --'
27239 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27240 as_echo='printf %s
\n'
27241 as_echo_n='printf %s
'
27243 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27244 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27245 as_echo_n='/usr
/ucb
/echo -n'
27247 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27248 as_echo_n_body='eval
27252 expr "X$arg" : "X\\(.*\\)$as_nl";
27253 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27255 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27257 export as_echo_n_body
27258 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27260 export as_echo_body
27261 as_echo='sh
-c $as_echo_body as_echo
'
27264 # The user is always right.
27265 if test "${PATH_SEPARATOR+set}" != set; then
27267 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27268 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27275 # We need space, tab and new line, in precisely that order. Quoting is
27276 # there to prevent editors from complaining about space-tab.
27277 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27278 # splitting by setting IFS to empty value.)
27281 # Find who we are. Look in the path if we contain no directory separator.
27283 *[\\/]* ) as_myself=$0 ;;
27284 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27285 for as_dir in $PATH
27288 test -z "$as_dir" && as_dir=.
27289 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27295 # We did not find ourselves, most probably we were run as `sh COMMAND'
27296 # in which case we are not to be found in the path.
27297 if test "x$as_myself" = x
; then
27300 if test ! -f "$as_myself"; then
27301 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27305 # Unset variables that we do not need and which cause bugs (e.g. in
27306 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27307 # suppresses any "Segmentation fault" message there. '((' could
27308 # trigger a bug in pdksh 5.2.14.
27309 for as_var
in BASH_ENV ENV MAIL MAILPATH
27310 do eval test x\
${$as_var+set} = xset \
27311 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
27324 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
27327 # as_fn_error ERROR [LINENO LOG_FD]
27328 # ---------------------------------
27329 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27330 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27331 # script with status $?, using 1 if that was 0.
27334 as_status
=$?
; test $as_status -eq 0 && as_status
=1
27336 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
27337 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27339 $as_echo "$as_me: error: $1" >&2
27340 as_fn_exit
$as_status
27344 # as_fn_set_status STATUS
27345 # -----------------------
27346 # Set $? to STATUS, without forking.
27347 as_fn_set_status
()
27350 } # as_fn_set_status
27352 # as_fn_exit STATUS
27353 # -----------------
27354 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27358 as_fn_set_status
$1
27364 # Portably unset VAR.
27367 { eval $1=; unset $1;}
27369 as_unset
=as_fn_unset
27370 # as_fn_append VAR VALUE
27371 # ----------------------
27372 # Append the text in VALUE to the end of the definition contained in VAR. Take
27373 # advantage of any shell optimizations that allow amortized linear growth over
27374 # repeated appends, instead of the typical quadratic growth present in naive
27376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
27377 eval 'as_fn_append ()
27388 # as_fn_arith ARG...
27389 # ------------------
27390 # Perform arithmetic evaluation on the ARGs, and store the result in the
27391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27392 # must be portable across $(()) and expr.
27393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
27394 eval 'as_fn_arith ()
27401 as_val
=`expr "$@" || test $? -eq 1`
27406 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27407 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27413 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27414 as_basename
=basename
27419 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27425 as_me
=`$as_basename -- "$0" ||
27426 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27427 X"$0" : 'X\(//\)$' \| \
27428 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27430 sed '/^.*\/\([^/][^/]*\)\/*$/{
27444 # Avoid depending upon Character Ranges.
27445 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27446 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27447 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27448 as_cr_digits
='0123456789'
27449 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27451 ECHO_C
= ECHO_N
= ECHO_T
=
27452 case `echo -n x` in #(((((
27454 case `echo 'xy\c'` in
27455 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27457 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
27464 rm -f conf$$ conf$$.exe conf$$.
file
27465 if test -d conf$$.dir
; then
27466 rm -f conf$$.dir
/conf$$.
file
27469 mkdir conf$$.dir
2>/dev
/null
27471 if (echo >conf$$.
file) 2>/dev
/null
; then
27472 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27474 # ... but there are two gotchas:
27475 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27476 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27477 # In both cases, we have to default to `cp -p'.
27478 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27480 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27488 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27489 rmdir conf$$.dir
2>/dev
/null
27494 # Create "$as_dir" as a directory, including parents if necessary.
27499 -*) as_dir
=.
/$as_dir;;
27501 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
27505 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27506 *) as_qdir
=$as_dir;;
27508 as_dirs
="'$as_qdir' $as_dirs"
27509 as_dir
=`$as_dirname -- "$as_dir" ||
27510 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27511 X"$as_dir" : 'X\(//\)[^/]' \| \
27512 X"$as_dir" : 'X\(//\)$' \| \
27513 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27514 $as_echo X"$as_dir" |
27515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27519 /^X\(\/\/\)[^/].*/{
27532 test -d "$as_dir" && break
27534 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27535 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
27539 if mkdir
-p .
2>/dev
/null
; then
27540 as_mkdir_p
='mkdir -p "$as_dir"'
27542 test -d .
/-p && rmdir .
/-p
27546 if test -x / >/dev
/null
2>&1; then
27547 as_test_x
='test -x'
27549 if ls -dL / >/dev
/null
2>&1; then
27556 if test -d "$1"; then
27562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27563 ???[sx]*):;;*)false;;esac;fi
27567 as_executable_p
=$as_test_x
27569 # Sed expression to map a string onto a valid CPP name.
27570 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27572 # Sed expression to map a string onto a valid variable name.
27573 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27577 ## ----------------------------------- ##
27578 ## Main body of $CONFIG_STATUS script. ##
27579 ## ----------------------------------- ##
27581 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
27583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27584 # Save the log message, to keep $0 and so on meaningful, and to
27585 # report actual input values of CONFIG_FILES etc. instead of their
27586 # values after options handling.
27588 This file was extended by $as_me, which was
27589 generated by GNU Autoconf 2.64. Invocation command line was
27591 CONFIG_FILES = $CONFIG_FILES
27592 CONFIG_HEADERS = $CONFIG_HEADERS
27593 CONFIG_LINKS = $CONFIG_LINKS
27594 CONFIG_COMMANDS = $CONFIG_COMMANDS
27597 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27602 case $ac_config_files in *"
27603 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27606 case $ac_config_headers in *"
27607 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27612 # Files that config.status was made for.
27613 config_files="$ac_config_files"
27614 config_headers="$ac_config_headers"
27615 config_commands="$ac_config_commands"
27619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27621 \`$as_me' instantiates files and other configuration actions
27622 from templates according to the current configuration. Unless the files
27623 and actions are specified as TAGs, all are instantiated by default.
27625 Usage: $0 [OPTION]... [TAG]...
27627 -h, --help print this help, then exit
27628 -V, --version print version number and configuration settings, then exit
27629 -q, --quiet, --silent
27630 do not print progress messages
27631 -d, --debug don't remove temporary files
27632 --recheck update $as_me by reconfiguring in the same conditions
27633 --file=FILE[:TEMPLATE]
27634 instantiate the configuration file FILE
27635 --header=FILE[:TEMPLATE]
27636 instantiate the configuration header FILE
27638 Configuration files:
27641 Configuration headers:
27644 Configuration commands:
27647 Report bugs to the package provider."
27650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27653 configured by $0, generated by GNU Autoconf 2.64,
27654 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27656 Copyright (C) 2009 Free Software Foundation, Inc.
27657 This config.status script is free software; the Free Software Foundation
27658 gives unlimited permission to copy, distribute and modify it."
27663 test -n "\$AWK" || AWK=awk
27666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27667 # The default lists apply if the user does not specify any file.
27673 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27674 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27685 # Handling of the options.
27686 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27688 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27689 $as_echo "$ac_cs_version"; exit ;;
27690 --debug |
--debu |
--deb |
--de |
--d |
-d )
27692 --file |
--fil |
--fi |
--f )
27695 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27697 as_fn_append CONFIG_FILES
" '$ac_optarg'"
27698 ac_need_defaults
=false
;;
27699 --header |
--heade |
--head |
--hea )
27702 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27704 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
27705 ac_need_defaults
=false
;;
27707 # Conflict between --help and --header
27708 as_fn_error
"ambiguous option: \`$1'
27709 Try \`$0 --help' for more information.";;
27710 --help |
--hel |
-h )
27711 $as_echo "$ac_cs_usage"; exit ;;
27712 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27713 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27716 # This is an error.
27717 -*) as_fn_error
"unrecognized option: \`$1'
27718 Try \`$0 --help' for more information." ;;
27720 *) as_fn_append ac_config_targets
" $1"
27721 ac_need_defaults
=false
;;
27727 ac_configure_extra_args
=
27729 if $ac_cs_silent; then
27731 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27736 if \$ac_cs_recheck; then
27737 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27739 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27740 CONFIG_SHELL='$SHELL'
27741 export CONFIG_SHELL
27746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27750 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27751 ## Running $as_me. ##
27757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27767 # Handling of arguments.
27768 for ac_config_target
in $ac_config_targets
27770 case $ac_config_target in
27771 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
27772 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
27773 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27774 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
27775 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
27776 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27778 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27783 # If the user did not use the arguments to specify the items to instantiate,
27784 # then the envvar interface is used. Set only those that are not.
27785 # We use the long form for the default assignment because of an extremely
27786 # bizarre bug on SunOS 4.1.3.
27787 if $ac_need_defaults; then
27788 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27789 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27790 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27793 # Have a temporary directory for convenience. Make it in the build tree
27794 # simply because there is no reason against having it here, and in addition,
27795 # creating and moving files from /tmp can sometimes cause problems.
27796 # Hook for its removal unless debugging.
27797 # Note that there is a small window in which the directory will not be cleaned:
27798 # after its creation but before its name has been assigned to `$tmp'.
27802 trap 'exit_status=$?
27803 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27805 trap 'as_fn_exit 1' 1 2 13 15
27807 # Create a (secure) tmp directory for tmp files.
27810 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27811 test -n "$tmp" && test -d "$tmp"
27814 tmp
=.
/conf$$
-$RANDOM
27815 (umask 077 && mkdir
"$tmp")
27816 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
27818 # Set up the scripts for CONFIG_FILES section.
27819 # No need to generate them if there are no CONFIG_FILES.
27820 # This happens for instance with `./config.status config.h'.
27821 if test -n "$CONFIG_FILES"; then
27823 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
27824 ac_cs_awk_getline
=:
27825 ac_cs_awk_pipe_init
=
27826 ac_cs_awk_read_file
='
27827 while ((getline aline < (F[key])) > 0)
27830 ac_cs_awk_pipe_fini
=
27832 ac_cs_awk_getline
=false
27833 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
27834 ac_cs_awk_read_file
='
27836 print "cat " F[key] " &&"
27837 '$ac_cs_awk_pipe_init
27838 # The final `:' finishes the AND list.
27839 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
27841 ac_cr
=`echo X | tr X '\015'`
27842 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27843 # But we know of no other shell where ac_cr would be empty at this
27844 # point, so we can use a bashism as a fallback.
27845 if test "x$ac_cr" = x
; then
27846 eval ac_cr
=\$
\'\\r
\'
27848 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27849 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27852 ac_cs_awk_cr
=$ac_cr
27855 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27858 # Create commands to substitute file output variables.
27860 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27861 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27862 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
27865 } >conf$
$files.sh
&&
27866 . .
/conf$
$files.sh ||
27867 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
27868 rm -f conf$
$files.sh
27871 echo "cat >conf$$subs.awk <<_ACEOF" &&
27872 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27874 } >conf$$subs.sh ||
27875 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27876 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27878 for ac_last_try in false false false false false :; do
27879 . ./conf$$subs.sh ||
27880 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27882 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
27883 if test $ac_delim_n = $ac_delim_num; then
27885 elif $ac_last_try; then
27886 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
27888 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27891 rm -f conf$$subs.sh
27893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27894 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
27898 s/^/S["/; s
/!.
*/"]=/
27908 s/\(.\{148\}\).*/\1/
27910 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27915 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27922 s/\(.\{148\}\).*/\1/
27924 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27928 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27933 ' <conf$$subs.awk | sed '
27938 ' >>$CONFIG_STATUS || ac_write_fail=1
27939 rm -f conf$$subs.awk
27940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27942 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
27943 for (key in S) S_is_set[key] = 1
27945 \$ac_cs_awk_pipe_init
27949 nfields = split(line, field, "@
")
27951 len = length(field[1])
27952 for (i = 2; i < nfields; i++) {
27954 keylen = length(key)
27955 if (S_is_set[key]) {
27957 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27958 len += length(value) + length(field[++i])
27963 if (nfields == 3 && !substed) {
27965 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27966 \$ac_cs_awk_read_file
27972 \$ac_cs_awk_pipe_fini
27975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27976 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27977 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27980 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27981 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
27984 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27985 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27986 # trailing colons and then remove the whole line if VPATH becomes empty
27987 # (actually we leave an empty line to preserve line numbers).
27988 if test "x
$srcdir" = x.; then
27989 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27990 s/:*\$(srcdir):*/:/
27991 s/:*\${srcdir}:*/:/
27993 s/^\([^=]*=[ ]*\):*/\1/
27999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28000 fi # test -n "$CONFIG_FILES"
28002 # Set up the scripts for CONFIG_HEADERS section.
28003 # No need to generate them if there are no CONFIG_HEADERS.
28004 # This happens for instance with `./config.status Makefile'.
28005 if test -n "$CONFIG_HEADERS"; then
28006 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28010 # Transform confdefs.h into an awk script `defines.awk', embedded as
28011 # here-document in config.status, that substitutes the proper values into
28012 # config.h.in to produce config.h.
28014 # Create a delimiter string that does not exist in confdefs.h, to ease
28015 # handling of long lines.
28017 for ac_last_try in false false :; do
28018 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28019 if test -z "$ac_t"; then
28021 elif $ac_last_try; then
28022 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
28024 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28028 # For the awk script, D is an array of macro values keyed by name,
28029 # likewise P contains macro parameters if any. Preserve backslash
28030 # newline sequences.
28032 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28034 s/.\{148\}/&'"$ac_delim"'/g
28037 s/^[ ]*#[ ]*define[ ][ ]*/ /
28044 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28046 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28050 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28051 D["\
1"]=" \
3\\\\\\n
"\\/p
28053 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28058 s/.\{148\}/&'"$ac_delim"'/g
28063 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28066 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28068 ' <confdefs.h | sed '
28069 s/'"$ac_delim"'/"\\\
28070 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28073 for (key in D) D_is_set[key] = 1
28076 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28078 split(line, arg, " ")
28079 if (arg[1] == "#") {
28083 defundef
= substr
(arg
[1], 2)
28086 split(mac1
, mac2
, "(") #)
28088 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28089 if (D_is_set
[macro
]) {
28090 # Preserve the white space surrounding the "#".
28091 print prefix
"define", macro P
[macro
] D
[macro
]
28094 # Replace #undef with comments. This is necessary, for example,
28095 # in the case of _POSIX_SOURCE, which is predefined and required
28096 # on some systems where configure will not decide to define it.
28097 if (defundef
== "undef") {
28098 print
"/*", prefix defundef
, macro
, "*/"
28106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28107 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
28108 fi # test -n "$CONFIG_HEADERS"
28111 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28116 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28118 case $ac_mode$ac_tag in
28120 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
28121 :[FH
]-) ac_tag
=-:-;;
28122 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28139 -) ac_f
="$tmp/stdin";;
28140 *) # Look for the file first in the build tree, then in the source tree
28141 # (if the path is not absolute). The absolute path cannot be DOS-style,
28142 # because $ac_f cannot contain `:'.
28146 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28148 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
28150 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28151 as_fn_append ac_file_inputs
" '$ac_f'"
28154 # Let's still pretend it is `configure' which instantiates (i.e., don't
28155 # use $as_me), people would be surprised to read:
28156 # /* config.h. Generated by config.status. */
28157 configure_input
='Generated from '`
28158 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28160 if test x
"$ac_file" != x-
; then
28161 configure_input
="$ac_file. $configure_input"
28162 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28163 $as_echo "$as_me: creating $ac_file" >&6;}
28165 # Neutralize special characters interpreted by sed in replacement strings.
28166 case $configure_input in #(
28167 *\
&* |
*\|
* |
*\\* )
28168 ac_sed_conf_input
=`$as_echo "$configure_input" |
28169 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28170 *) ac_sed_conf_input
=$configure_input;;
28174 *:-:* |
*:-) cat >"$tmp/stdin" \
28175 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
28180 ac_dir
=`$as_dirname -- "$ac_file" ||
28181 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28182 X"$ac_file" : 'X\(//\)[^/]' \| \
28183 X"$ac_file" : 'X\(//\)$' \| \
28184 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28185 $as_echo X"$ac_file" |
28186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28190 /^X\(\/\/\)[^/].*/{
28203 as_dir
="$ac_dir"; as_fn_mkdir_p
28207 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28209 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28210 # A ".." for each directory in $ac_dir_suffix.
28211 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28212 case $ac_top_builddir_sub in
28213 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28214 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28217 ac_abs_top_builddir
=$ac_pwd
28218 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28219 # for backward compatibility:
28220 ac_top_builddir
=$ac_top_build_prefix
28223 .
) # We are building in place.
28225 ac_top_srcdir
=$ac_top_builddir_sub
28226 ac_abs_top_srcdir
=$ac_pwd ;;
28227 [\\/]* | ?
:[\\/]* ) # Absolute name.
28228 ac_srcdir
=$srcdir$ac_dir_suffix;
28229 ac_top_srcdir
=$srcdir
28230 ac_abs_top_srcdir
=$srcdir ;;
28231 *) # Relative name.
28232 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28233 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28234 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28236 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28248 # If the template does not know about datarootdir, expand it.
28249 # FIXME: This hack should be removed a few years after 2.60.
28250 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28261 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28262 *datarootdir
*) ac_datarootdir_seen
=yes;;
28263 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28265 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28268 ac_datarootdir_hack='
28269 s&@datadir@&$datadir&g
28270 s&@docdir@&$docdir&g
28271 s&@infodir@&$infodir&g
28272 s&@localedir@&$localedir&g
28273 s&@mandir@&$mandir&g
28274 s&\\\${datarootdir}&$datarootdir&g' ;;
28278 # Neutralize VPATH when `$srcdir' = `.'.
28279 # Shell code in configure.ac might set extrasub.
28280 # FIXME: do we really want to maintain this feature?
28281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28282 ac_sed_extra="$ac_vpsub
28285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28287 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28288 s|@configure_input@|
$ac_sed_conf_input|
;t t
28289 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28290 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28291 s
&@srcdir@
&$ac_srcdir&;t t
28292 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28293 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28294 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28295 s
&@builddir@
&$ac_builddir&;t t
28296 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28297 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28298 $ac_datarootdir_hack
28300 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28301 if $ac_cs_awk_getline; then
28302 $AWK -f "$tmp/subs.
awk"
28304 $AWK -f "$tmp/subs.
awk" | $SHELL
28306 || as_fn_error "could not create
$ac_file" "$LINENO" 5
28308 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28309 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28310 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28312 which seems to be undefined. Please make sure it is defined." >&5
28313 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28314 which seems to be undefined. Please make sure it is defined." >&2;}
28318 -) cat "$tmp/out" && rm -f "$tmp/out";;
28319 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28321 || as_fn_error "could not create $ac_file" "$LINENO" 5
28327 if test x"$ac_file" != x-; then
28329 $as_echo "/* $configure_input */" \
28330 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28331 } >"$tmp/config.h" \
28332 || as_fn_error "could not create $ac_file" "$LINENO" 5
28333 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28334 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28335 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28338 mv "$tmp/config.h" "$ac_file" \
28339 || as_fn_error "could not create $ac_file" "$LINENO" 5
28342 $as_echo "/* $configure_input */" \
28343 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28344 || as_fn_error "could not create -" "$LINENO" 5
28348 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28349 $as_echo "$as_me: executing $ac_file commands" >&6;}
28354 case $ac_file$ac_mode in
28355 "as":F) chmod +x as ;;
28356 "collect-ld":F) chmod +x collect-ld ;;
28357 "nm":F) chmod +x nm ;;
28359 case ${CONFIG_HEADERS} in
28360 *auto-host.h:config.in*)
28363 # Make sure all the subdirs exist.
28364 for d in $subdirs doc build common c-family
28366 test -d $d || mkdir $d
28376 ac_clean_files=$ac_clean_files_save
28378 test $ac_write_fail = 0 ||
28379 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28382 # configure is writing to config.log, and then calls config.status.
28383 # config.status does its own redirection, appending to config.log.
28384 # Unfortunately, on DOS this fails, as config.log is still kept open
28385 # by configure, so config.status won't be able to
write to it
; its
28386 # output is simply discarded. So we exec the FD to /dev/null,
28387 # effectively closing config.log, so it can be properly (re)opened and
28388 # appended to by config.status. When coming back to configure, we
28389 # need to make the FD available again.
28390 if test "$no_create" != yes; then
28392 ac_config_status_args
=
28393 test "$silent" = yes &&
28394 ac_config_status_args
="$ac_config_status_args --quiet"
28396 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28398 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28399 # would make configure fail if this is the last instruction.
28400 $ac_cs_success || as_fn_exit $?
28402 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28404 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}